PageSourceSearch

https://www.brawley-ca.gov/build/assets/app-e7d40d83.js

js brawley-ca.gov collected 2026-10-02 17:18:11 UTC 2,993,718 bytes, 2,398 lines download raw bytes

1var Mz=Object.defineProperty;var kz=Object.getPrototypeOf;var Pz=Reflect.get;var Iz=(De,_e,Ae)=>_e in De?Mz(De,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):De[_e]=Ae;var Mr=(De,_e,Ae)=>(Iz(De,typeof _e!="symbol"?_e+"":_e,Ae),Ae),l3=(De,_e,Ae)=>{if(!_e.has(De))throw TypeError("Cannot "+Ae)};var mi=(De,_e,Ae)=>(l3(De,_e,"read from private field"),Ae?Ae.call(De):_e.get(De)),Oi=(De,_e,Ae)=>{if(_e.has(De))throw TypeError("Cannot add the same private member more than once");_e instanceof WeakSet?_e.add(De):_e.set(De,Ae)},Qn=(De,_e,Ae,ke)=>(l3(De,_e,"write to private field"),ke?ke.call(De,Ae):_e.set(De,Ae),Ae);var DR=(De,_e,Ae,ke)=>({set _(Le){Qn(De,_e,Le,Ae)},get _(){return mi(De,_e,ke)}}),Bi=(De,_e,Ae)=>(l3(De,_e,"access private method"),Ae),c3=(De,_e,Ae)=>Pz(kz(De),Ae,_e);const scriptRel="modulepreload",assetsURL=function(De){return"/build/"+De},seen={},__vitePreload=function(_e,Ae,ke){if(!Ae||Ae.length===0)return _e();const Le=document.getElementsByTagName("link");return Promise.all(Ae.map(Fe=>{if(Fe=assetsURL(Fe),Fe in seen)return;seen[Fe]=!0;const Ve=Fe.endsWith(".css"),Ie=Ve?'[rel="stylesheet"]':"";if(!!ke)for(let $e=Le.length-1;$e>=0;$e--){const qe=Le[$e];if(qe.href===Fe&&(!Ve||qe.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${Fe}"]${Ie}`))return;const Ke=document.createElement("link");if(Ke.rel=Ve?"stylesheet":scriptRel,Ve||(Ke.as="script",Ke.crossOrigin=""),Ke.href=Fe,document.head.appendChild(Ke),Ve)return new Promise(($e,qe)=>{Ke.addEventListener("load",$e),Ke.addEventListener("error",()=>qe(new Error(`Unable to preload CSS for ${Fe}`)))})})).then(()=>_e()).catch(Fe=>{const Ve=new Event("vite:preloadError",{cancelable:!0});if(Ve.payload=Fe,window.dispatchEvent(Ve),!Ve.defaultPrevented)throw Fe})};var flushPending=!1,flushing=!1,queue=[],lastFlushedIndex=-1;function scheduler(De){queueJob(De)}function queueJob(De){queue.includes(De)||queue.push(De),queueFlush()}function dequeueJob(De){let _e=queue.indexOf(De);_e!==-1&&_e>lastFlushedIndex&&queue.splice(_e,1)}function queueFlush(){!flushing&&!flushPending&&(flushPending=!0,queueMicrotask(flushJobs))}function flushJobs(){flushPending=!1,flushing=!0;for(let De=0;De<queue.length;De++)queue[De](),lastFlushedIndex=De;queue.length=0,lastFlushedIndex=-1,flushing=!1}var reactive,effect$2,release,raw,shouldSchedule=!0;function disableEffectScheduling(De){shouldSchedule=!1,De(),shouldSchedule=!0}function setReactivityEngine(De){reactive=De.reactive,release=De.release,effect$2=_e=>De.effect(_e,{scheduler:Ae=>{shouldSchedule?scheduler(Ae):Ae()}}),raw=De.raw}function overrideEffect(De){effect$2=De}function elementBoundEffect(De){let _e=()=>{};return[ke=>{let Le=effect$2(ke);return De._x_effects||(De._x_effects=new Set,De._x_runEffects=()=>{De._x_effects.forEach(Fe=>Fe())}),De._x_effects.add(Le),_e=()=>{Le!==void 0&&(De._x_effects.delete(Le),release(Le))},Le},()=>{_e()}]}function watch(De,_e){let Ae=!0,ke,Le=effect$2(()=>{let Fe=De();JSON.stringify(Fe),Ae?ke=Fe:queueMicrotask(()=>{_e(Fe,ke),ke=Fe}),Ae=!1});return()=>release(Le)}var onAttributeAddeds=[],onElRemoveds=[],onElAddeds=[];function onElAdded(De){onElAddeds.push(De)}function onElRemoved(De,_e){typeof _e=="function"?(De._x_cleanups||(De._x_cleanups=[]),De._x_cleanups.push(_e)):(_e=De,onElRemoveds.push(_e))}function onAttributesAdded(De){onAttributeAddeds.push(De)}function onAttributeRemoved(De,_e,Ae){De._x_attributeCleanups||(De._x_attributeCleanups={}),De._x_attributeCleanups[_e]||(De._x_attributeCleanups[_e]=[]),De._x_attributeCleanups[_e].push(Ae)}function cleanupAttributes(De,_e){De._x_attributeCleanups&&Object.entries(De._x_attributeCleanups).forEach(([Ae,ke])=>{(_e===void 0||_e.includes(Ae))&&(ke.forEach(Le=>Le()),delete De._x_attributeCleanups[Ae])})}function cleanupElement(De){var _e,Ae;for((_e=De._x_effects)==null||_e.forEach(dequeueJob);(Ae=De._x_cleanups)!=null&&Ae.length;)De._x_cleanups.pop()()}var observer=new MutationObserver(onMutate),currentlyObserving=!1;function startObservingMutations(){observer.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),currentlyObserving=!0}function stopObservingMutations(){flushObserver(),observer.disconnect(),currentlyObserving=!1}var queuedMutations=[];function flushObserver(){let De=observer.takeRecords();queuedMutations.push(()=>De.length>0&&onMutate(De));let _e=queuedMutations.length;queueMicrotask(()=>
vendor: 26,339 bytes, lines 1-5
1{if(queuedMutations.length===_e)for(;queuedMutations.length>0;)queuedMutations.shift()()})}function mutateDom(De){if(!currentlyObserving)return De();stopObservingMutations();let _e=De();return startObservingMutations(),_e}var isCollecting=!1,deferredMutations=[];function deferMutations(){isCollecting=!0}function flushAndStopDeferringMutations(){isCollecting=!1,onMutate(deferredMutations),deferredMutations=[]}function onMutate(De){if(isCollecting){deferredMutations=deferredMutations.concat(De);return}let _e=[],Ae=new Set,ke=new Map,Le=new Map;for(let Fe=0;Fe<De.length;Fe++)if(!De[Fe].target._x_ignoreMutationObserver&&(De[Fe].type==="childList"&&(De[Fe].removedNodes.forEach(Ve=>{Ve.nodeType===1&&Ve._x_marker&&Ae.add(Ve)}),De[Fe].addedNodes.forEach(Ve=>{if(Ve.nodeType===1){if(Ae.has(Ve)){Ae.delete(Ve);return}Ve._x_marker||_e.push(Ve)}})),De[Fe].type==="attributes")){let Ve=De[Fe].target,Ie=De[Fe].attributeName,je=De[Fe].oldValue,Ke=()=>{ke.has(Ve)||ke.set(Ve,[]),ke.get(Ve).push({name:Ie,value:Ve.getAttribute(Ie)})},$e=()=>{Le.has(Ve)||Le.set(Ve,[]),Le.get(Ve).push(Ie)};Ve.hasAttribute(Ie)&&je===null?Ke():Ve.hasAttribute(Ie)?($e(),Ke()):$e()}Le.forEach((Fe,Ve)=>{cleanupAttributes(Ve,Fe)}),ke.forEach((Fe,Ve)=>{onAttributeAddeds.forEach(Ie=>Ie(Ve,Fe))});for(let Fe of Ae)_e.some(Ve=>Ve.contains(Fe))||onElRemoveds.forEach(Ve=>Ve(Fe));for(let Fe of _e)Fe.isConnected&&onElAddeds.forEach(Ve=>Ve(Fe));_e=null,Ae=null,ke=null,Le=null}function scope(De){return mergeProxies(closestDataStack(De))}function addScopeToNode(De,_e,Ae){return De._x_dataStack=[_e,...closestDataStack(Ae||De)],()=>{De._x_dataStack=De._x_dataStack.filter(ke=>ke!==_e)}}function closestDataStack(De){return De._x_dataStack?De._x_dataStack:typeof ShadowRoot=="function"&&De instanceof ShadowRoot?closestDataStack(De.host):De.parentNode?closestDataStack(De.parentNode):[]}function mergeProxies(De){return new Proxy({objects:De},mergeProxyTrap)}var mergeProxyTrap={ownKeys({objects:De}){return Array.from(new Set(De.flatMap(_e=>Object.keys(_e))))},has({objects:De},_e){return _e==Symbol.unscopables?!1:De.some(Ae=>Object.prototype.hasOwnProperty.call(Ae,_e)||Reflect.has(Ae,_e))},get({objects:De},_e,Ae){return _e=="toJSON"?collapseProxies:Reflect.get(De.find(ke=>Reflect.has(ke,_e))||{},_e,Ae)},set({objects:De},_e,Ae,ke){const Le=De.find(Ve=>Object.prototype.hasOwnProperty.call(Ve,_e))||De[De.length-1],Fe=Object.getOwnPropertyDescriptor(Le,_e);return Fe!=null&&Fe.set&&(Fe!=null&&Fe.get)?Fe.set.call(ke,Ae)||!0:Reflect.set(Le,_e,Ae)}};function collapseProxies(){return Reflect.ownKeys(this).reduce((_e,Ae)=>(_e[Ae]=Reflect.get(this,Ae),_e),{})}function initInterceptors(De){let _e=ke=>typeof ke=="object"&&!Array.isArray(ke)&&ke!==null,Ae=(ke,Le="")=>{Object.entries(Object.getOwnPropertyDescriptors(ke)).forEach(([Fe,{value:Ve,enumerable:Ie}])=>{if(Ie===!1||Ve===void 0||typeof Ve=="object"&&Ve!==null&&Ve.__v_skip)return;let je=Le===""?Fe:`${Le}.${Fe}`;typeof Ve=="object"&&Ve!==null&&Ve._x_interceptor?ke[Fe]=Ve.initialize(De,je,Fe):_e(Ve)&&Ve!==ke&&!(Ve instanceof Element)&&Ae(Ve,je)})};return Ae(De)}function interceptor(De,_e=()=>{}){let Ae={initialValue:void 0,_x_interceptor:!0,initialize(ke,Le,Fe){return De(this.initialValue,()=>get(ke,Le),Ve=>set(ke,Le,Ve),Le,Fe)}};return _e(Ae),ke=>{if(typeof ke=="object"&&ke!==null&&ke._x_interceptor){let Le=Ae.initialize.bind(Ae);Ae.initialize=(Fe,Ve,Ie)=>{let je=ke.initialize(Fe,Ve,Ie);return Ae.initialValue=je,Le(Fe,Ve,Ie)}}else Ae.initialValue=ke;return Ae}}function get(De,_e){return _e.split(".").reduce((Ae,ke)=>Ae[ke],De)}function set(De,_e,Ae){if(typeof _e=="string"&&(_e=_e.split(".")),_e.length===1)De[_e[0]]=Ae;else{if(_e.length===0)throw error;return De[_e[0]]||(De[_e[0]]={}),set(De[_e[0]],_e.slice(1),Ae)}}var magics={};function magic(De,_e){magics[De]=_e}function injectMagics(De,_e){let Ae=getUtilities(_e);return Object.entries(magics).forEach(([ke,Le])=>{Object.defineProperty(De,`$${ke}`,{get(){return Le(_e,Ae)},enumerable:!1})}),De}function getUtilities(De){let[_e,Ae]=getElementBoundUtilities(De),ke={interceptor,..._e};return onElRemoved(De,Ae),ke}function tryCatch(De,_e,Ae,...ke){try{return Ae(...ke)}catch(Le){handleError$1(Le,De,_e)}}function handleError$1(...De){return errorHandler(...De)}var errorHandler=normalErrorHandler;function setErrorHandler(De){errorHandler=De}function normalErrorHandler(De,_e,Ae=void 0){De=Object.assign(De??{message:"No error message given."},{el:_e,expression:Ae}),console.warn(`Alpine Expression Error: ${De.message}
2
3${Ae?'Expression: "'+Ae+`"
4
5`:""}`,_e),setTimeout(()=>{throw De},0)}var shouldAutoEvaluateFunctions=!0;function dontAutoEvaluateFunctions(De){let _e=shouldAutoEvaluateFunctions;shouldAutoEvaluateFunctions=!1;let Ae=De();return shouldAutoEvaluateFunctions=_e,Ae}function evaluate$1(De,_e,Ae={}){let ke;return evaluateLater(De,_e)(Le=>ke=Le,Ae),ke}function evaluateLater(...De){return theEvaluatorFunction(...De)}var theEvaluatorFunction=normalEvaluator;function setEvaluator(De){theEvaluatorFunction=De}function normalEvaluator(De,_e){let Ae={};injectMagics(Ae,De);let ke=[Ae,...closestDataStack(De)],Le=typeof _e=="function"?generateEvaluatorFromFunction(ke,_e):generateEvaluatorFromString(ke,_e,De);return tryCatch.bind(null,De,_e,Le)}function generateEvaluatorFromFunction(De,_e){return(Ae=()=>{},{scope:ke={},params:Le=[],context:Fe}={})=>{let Ve=_e.apply(mergeProxies([ke,...De]),Le);runIfTypeOfFunction(Ae,Ve)}}var evaluatorMemo={};function generateFunctionFromString(De,_e){if(evaluatorMemo[De])return evaluatorMemo[De];let Ae=Object.getPrototypeOf(async function(){}).constructor,ke=/^[\n\s]*if.*\(.*\)/.test(De.trim())||/^(let|const)\s/.test(De.trim())?`(async()=>{ ${De} })()`:De,Fe=(()=>{try{let Ve=new Ae(["__self","scope"],`with (scope) { __self.result = ${ke} }; __self.finished = true; return __self.result;`);return Object.defineProperty(Ve,"name",{value:`[Alpine] ${De}`}),Ve}catch(Ve){return handleError$1(Ve,_e,De),Promise.resolve()}})();return evaluatorMemo[De]=Fe,Fe}function generateEvaluatorFromString(De,_e,Ae){let ke=generateFunctionFromString(_e,Ae);return(Le=()=>{},{scope:Fe={},params:Ve=[],context:Ie}={})=>{ke.result=void 0,ke.finished=!1;let je=mergeProxies([Fe,...De]);if(typeof ke=="function"){let Ke=ke.call(Ie,ke,je).catch($e=>handleError$1($e,Ae,_e));ke.finished?(runIfTypeOfFunction(Le,ke.result,je,Ve,Ae),ke.result=void 0):Ke.then($e=>{runIfTypeOfFunction(Le,$e,je,Ve,Ae)}).catch($e=>handleError$1($e,Ae,_e)).finally(()=>ke.result=void 0)}}}function runIfTypeOfFunction(De,_e,Ae,ke,Le){if(shouldAutoEvaluateFunctions&&typeof _e=="function"){let Fe=_e.apply(Ae,ke);Fe instanceof Promise?Fe.then(Ve=>runIfTypeOfFunction(De,Ve,Ae,ke)).catch(Ve=>handleError$1(Ve,Le,_e)):De(Fe)}else typeof _e=="object"&&_e instanceof Promise?_e.then(Fe=>De(Fe)):De(_e)}var prefixAsString="x-";function prefix(De=""){return prefixAsString+De}function setPrefix(De){prefixAsString=De}var directiveHandlers={};function directive(De,_e){return directiveHandlers[De]=_e,{before(Ae){if(!directiveHandlers[Ae]){console.warn(String.raw`Cannot find directive \`${Ae}\`. \`${De}\` will use the default order of execution`);return}const ke=directiveOrder.indexOf(Ae);directiveOrder.splice(ke>=0?ke:directiveOrder.indexOf("DEFAULT"),0,De)}}}function directiveExists(De){return Object.keys(directiveHandlers).includes(De)}function directives(De,_e,Ae){if(_e=Array.from(_e),De._x_virtualDirectives){let Fe=Object.entries(De._x_virtualDirectives).map(([Ie,je])=>({name:Ie,value:je})),Ve=attributesOnly(Fe);Fe=Fe.map(Ie=>Ve.find(je=>je.name===Ie.name)?{name:`x-bind:${Ie.name}`,value:`"${Ie.value}"`}:Ie),_e=_e.concat(Fe)}let ke={};return _e.map(toTransformedAttributes((Fe,Ve)=>ke[Fe]=Ve)).filter(outNonAlpineAttributes).map(toParsedDirectives(ke,Ae)).sort(byPriority).map(Fe=>getDirectiveHandler(De,Fe))}function attributesOnly(De){return Array.from(De).map(toTransformedAttributes()).filter(_e=>!outNonAlpineAttributes(_e))}var isDeferringHandlers=!1,directiveHandlerStacks=new Map,currentHandlerStackKey=Symbol();function deferHandlingDirectives(De){isDeferringHandlers=!0;let _e=Symbol();currentHandlerStackKey=_e,directiveHandlerStacks.set(_e,[]);let Ae=()=>{for(;directiveHandlerStacks.get(_e).length;)directiveHandlerStacks.get(_e).shift()();directiveHandlerStacks.delete(_e)},ke=()=>{isDeferringHandlers=!1,Ae()};De(Ae),ke()}function getElementBoundUtilities(De){let _e=[],Ae=Ie=>_e.push(Ie),[ke,Le]=elementBoundEffect(De);return _e.push(Le),[{Alpine:alpine_default,effect:ke,cleanup:Ae,evaluateLater:evaluateLater.bind(evaluateLater,De),evaluate:evaluate$1.bind(evaluate$1,De)},()=>_e.forEach(Ie=>Ie())]}function getDirectiveHandler(De,_e){let Ae=()=>{},ke=directiveHandlers[_e.type]||Ae,[Le,Fe]=getElementBoundUtilities(De);onAttributeRemoved(De,_e.original,Fe);let Ve=()=>{De._x_ignore||De._x_ignoreSelf||(ke.inline&&ke.inline(De,_e,Le),ke=ke.bind(ke,De,_e,Le),isDeferringHandlers?directiveHandlerStacks.get(currentHandlerStackKey).push(ke):ke())};return Ve.runCleanups=Fe,Ve}var startingWith=(De,_e)=>({name:Ae,value:ke})=>(Ae.startsWith(De)&&(Ae=Ae.replace(De,_e)),{name:Ae,value:ke}),into=De=>De;function toTransformedAttributes(De=()=>{}){return({name:_e,value:Ae})=>{let{name:ke,value:Le}=attributeTransformers.reduce((Fe,Ve)=>Ve(Fe),{name:_e,value:Ae});return ke!==_e&&De(ke,_e),{name:ke,value:Le}}}var attributeTransformers=[];function mapAttributes(De){attributeTransformers.push(De)}function outNonAlpineAttributes({name:De}){return alpineAttributeRegex().test(De)}var alpineAttributeRegex=()=>new RegExp(`^${prefixAsString}([^:^.]+)\\b`);function toParsedDirectives(De,_e){return({name:Ae,value:ke})=>{let Le=Ae.match(alpineAttributeRegex()),Fe=Ae.match(/:([a-zA-Z0-9\-_:]+)/),Ve=Ae.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],Ie=_e||De[Ae]||Ae;return{type:Le?Le[1]:null,value:Fe?Fe[1]:null,modifiers:Ve.map(je=>je.replace(".","")),expression:ke,original:Ie}}}var DEFAULT="DEFAULT",directiveOrder=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",DEFAULT,"teleport"];function byPriority(De,_e){let Ae=directiveOrder.indexOf(De.type)===-1?DEFAULT:De.type,ke=directiveOrder.indexOf(_e.type)===-1?DEFAULT:_e.type;return directiveOrder.indexOf(Ae)-directiveOrder.indexOf(ke)}function dispatch(De,_e,Ae={}){De.dispatchEvent(new CustomEvent(_e,{detail:Ae,bubbles:!0,composed:!0,cancelable:!0}))}function walk(De,_e){if(typeof ShadowRoot=="function"&&De instanceof ShadowRoot){Array.from(De.children).forEach(Le=>walk(Le,_e));return}let Ae=!1;if(_e(De,()=>Ae=!0),Ae)return;let ke=De.firstElementChild;for(;ke;)walk(ke,_e),ke=ke.nextElementSibling}function warn(De,..._e){console.warn(`Alpine Warning: ${De}`,..._e)}var started=!1;function start(){started&&warn("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),started=!0,document.body||warn("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),dispatch(document,"alpine:init"),dispatch(document,"alpine:initializing"),startObservingMutations(),onElAdded(_e=>initTree(_e,walk)),onElRemoved(_e=>destroyTree(_e)),onAttributesAdded((_e,Ae)=>{directives(_e,Ae).forEach(ke=>ke())});let De=_e=>!closestRoot(_e.parentElement,!0);Array.from(document.querySelectorAll(allSelectors().join(","))).filter(De).forEach(_e=>{initTree(_e)}),dispatch(document,"alpine:initialized"),setTimeout(()=>{warnAboutMissingPlugins()})}var rootSelectorCallbacks=[],initSelectorCallbacks=[];function rootSelectors(){return rootSelectorCallbacks.map(De=>De())}function allSelectors(){return rootSelectorCallbacks.concat(initSelectorCallbacks).map(De=>De())}function addRootSelector(De){rootSelectorCallbacks.push(De)}function addInitSelector(De){initSelectorCallbacks.push(De)}function closestRoot(De,_e=!1){return findClosest(De,Ae=>{if((_e?allSelectors():rootSelectors()).some(Le=>Ae.matches(Le)))return!0})}function findClosest(De,_e){if(De){if(_e(De))return De;if(De._x_teleportBack&&(De=De._x_teleportBack),!!De.parentElement)return findClosest(De.parentElement,_e)}}function isRoot(De){return rootSelectors().some(_e=>De.matches(_e))}var initInterceptors2=[];function interceptInit(De){initInterceptors2.push(De)}var markerDispenser=1;function initTree(De,_e=walk,Ae=()=>{}){findClosest(De,ke=>ke._x_ignore)||deferHandlingDirectives(()=>{_e(De,(ke,Le)=>{ke._x_marker||(Ae(ke,Le),initInterceptors2.forEach(Fe=>Fe(ke,Le)),directives(ke,ke.attributes).forEach(Fe=>Fe()),ke._x_ignore||(ke._x_marker=markerDispenser++),ke._x_ignore&&Le())})})}function destroyTree(De,_e=walk){_e(De,Ae=>{cleanupElement(Ae),cleanupAttributes(Ae),delete Ae._x_marker})}function warnAboutMissingPlugins(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([_e,Ae,ke])=>{directiveExists(Ae)||ke.some(Le=>{if(document.querySelector(Le))return warn(`found "${Le}", but missing ${_e} plugin`),!0})})}var tickStack=[],isHolding=!1;function nextTick$1(De=()=>{}){return queueMicrotask(()=>{isHolding||setTimeout(()=>{releaseNextTicks()})}),new Promise(_e=>{tickStack.push(()=>{De(),_e()})})}function releaseNextTicks(){for(isHolding=!1;tickStack.length;)tickStack.shift()()}function holdNextTicks(){isHolding=!0}function setClasses(De,_e){return Array.isArray(_e)?setClassesFromString(De,_e.join(" ")):typeof _e=="object"&&_e!==null?setClassesFromObject(De,_e):typeof _e=="function"?setClasses(De,_e()):setClassesFromString(De,_e)}function setClassesFromString(De,_e){let Ae=Le=>Le.split(" ").filter(Fe=>!De.classList.contains(Fe)).filter(Boolean),ke=Le=>(De.classList.add(...Le),()=>{De.classList.remove(...Le)});return _e=_e===!0?_e="":_e||"",ke(Ae(_e))}function setClassesFromObject(De,_e){let Ae=Ie=>Ie.split(" ").filter(Boolean),ke=Object.entries(_e).flatMap(([Ie,je])=>je?Ae(Ie):!1).filter(Boolean),Le=Object.entries(_e).flatMap(([Ie,je])=>je?!1:Ae(Ie)).filter(Boolean),Fe=[],Ve=[];return Le.forEach(Ie=>{De.classList.contains(Ie)&&(De.classList.remove(Ie),Ve.push(Ie))}),ke.forEach(Ie=>{De.classList.contains(Ie)||(De.classList.add(Ie),Fe.push(Ie))}),()=>{Ve.forEach(Ie=>De.classList.add(Ie)),Fe.forEach(Ie=>De.classList.remove(Ie))}}function setStyles(De,_e){return typeof _e=="object"&&_e!==null?setStylesFromObject(De,_e):setStylesFromString(De,_e)}function setStylesFromObject(De,_e){let Ae={};return Object.entries(_e).forEach(([ke,Le])=>{Ae[ke]=De.style[ke],ke.startsWith("--")||(ke=kebabCase(ke)),De.style.setProperty(ke,Le)}),setTimeout(()=>{De.style.length===0&&De.removeAttribute("style")}),()=>{setStyles(De,Ae)}}function setStylesFromString(De,_e){let Ae=De.getAttribute("style",_e);return De.setAttribute("style",_e),()=>{De.setAttribute("style",Ae||"")}}function kebabCase(De){return De.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function once(De,_e=()=>{}){let Ae=!1;return function(){Ae?_e.apply(this,arguments):(Ae=!0,De.apply(this,arguments))}}directive("transition",(De,{value:_e,modifiers:Ae,expression:ke},{evaluate:Le})=>{typeof ke=="function"&&(ke=Le(ke)),ke!==!1&&(!ke||typeof ke=="boolean"?registerTransitionsFromHelper(De,Ae,_e):registerTransitionsFromClassString(De,ke,_e))});function registerTransitionsFromClassString(De,_e,Ae){registerTransitionObject(De,setClasses,""),{enter:Le=>{De._x_transition.enter.during=Le},"enter-start":Le=>{De._x_transition.enter.start=Le},"enter-end":Le=>{De._x_transition.enter.end=Le},leave:Le=>{De._x_transition.leave.during=Le},"leave-start":Le=>{De._x_transition.leave.start=Le},"leave-end":Le=>{De._x_transition.leave.end=Le}}[Ae](_e)}function registerTransitionsFromHelper(De,_e,Ae){registerTransitionObject(De,setStyles);let ke=!_e.includes("in")&&!_e.includes("out")&&!Ae,Le=ke||_e.includes("in")||["enter"].includes(Ae),Fe=ke||_e.includes("out")||["leave"].includes(Ae);_e.includes("in")&&!ke&&(_e=_e.filter((hi,Ei)=>Ei<_e.indexOf("out"))),_e.includes("out")&&!ke&&(_e=_e.filter((hi,Ei)=>Ei>_e.indexOf("out")));let Ve=!_e.includes("opacity")&&!_e.includes("scale"),Ie=Ve||_e.includes("opacity"),je=Ve||_e.includes("scale"),Ke=Ie?0:1,$e=je?modifierValue$1(_e,"scale",95)/100:1,qe=modifierValue$1(_e,"delay",0)/1e3,ci=modifierValue$1(_e,"origin","center"),gi="opacity, transform",Ai=modifierValue$1(_e,"duration",150)/1e3,oi=modifierValue$1(_e,"duration",75)/1e3,ii="cubic-bezier(0.4, 0.0, 0.2, 1)";Le&&(De._x_transition.enter.during={transformOrigin:ci,transitionDelay:`${qe}s`,transitionProperty:gi,transitionDuration:`${Ai}s`,transitionTimingFunction:ii},De._x_transition.enter.start={opacity:Ke,transform:`scale(${$e})`},De._x_transition.enter.end={opacity:1,transform:"scale(1)"}),Fe&&(De._x_transition.leave.during={transformOrigin:ci,transitionDelay:`${qe}s`,transitionProperty:gi,transitionDuration:`${oi}s`,transitionTimingFunction:ii},De._x_transition.leave.start={opacity:1,transform:"scale(1)"},De._x_transition.leave.end={opacity:Ke,transform:`scale(${$e})`})}function registerTransitionObject(De,_e,Ae={}){De._x_transition||(De._x_transition={enter:{during:Ae,start:Ae,end:Ae},leave:{during:Ae,start:Ae,end:Ae},in(ke=()=>{},Le=()=>{}){transition$1(De,_e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},ke,Le)},out(ke=()=>{},Le=()=>{}){transition$1(De,_e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},ke,Le)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(De,_e,Ae,ke){const Le=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let Fe=()=>Le(Ae);if(_e){De._x_transition&&(De._x_transition.enter||De._x_transition.leave)?De._x_transition.enter&&(Object.entries(De._x_transition.enter.during).length||Object.entries(De._x_transition.enter.start).length||Object.entries(De._x_transition.enter.end).length)?De._x_transition.in(Ae):Fe():De._x_transition?De._x_transition.in(Ae):Fe();return}De._x_hidePromise=De._x_transition?new Promise((Ve,Ie)=>{De._x_transition.out(()=>{},()=>Ve(ke)),De._x_transitioning&&De._x_transitioning.beforeCancel(()=>Ie({isFromCancelledTransition:!0}))}):Promise.resolve(ke),queueMicrotask(()=>{let Ve=closestHide(De);Ve?(Ve._x_hideChildren||(Ve._x_hideChildren=[]),Ve._x_hideChildren.push(De)):Le(()=>{let Ie=je=>{let Ke=Promise.all([je._x_hidePromise,...(je._x_hideChildren||[]).map(Ie)]).then(([$e])=>$e==null?void 0:$e());return delete je._x_hidePromise,delete je._x_hideChildren,Ke};Ie(De).catch(je=>{if(!je.isFromCancelledTransition)throw je})})})};function closestHide(De){let _e=De.parentNode;if(_e)return _e._x_hidePromise?_e:closestHide(_e)}function transition$1(De,_e,{during:Ae,start:ke,end:Le}={},Fe=()=>{},Ve=()=>{}){if(De._x_transitioning&&De._x_transitioning.cancel(),Object.keys(Ae).length===0&&Object.keys(ke).length===0&&Object.keys(Le).length===0){Fe(),Ve();return}let Ie,je,Ke;performTransition(De,{start(){Ie=_e(De,ke)},during(){je=_e(De,Ae)},before:Fe,end(){Ie(),Ke=_e(De,Le)},after:Ve,cleanup(){je(),Ke()}})}function performTransition(De,_e){let Ae,ke,Le,Fe=once(()=>{mutateDom(()=>{Ae=!0,ke||_e.before(),Le||(_e.end(),releaseNextTicks()),_e.after(),De.isConnected&&_e.cleanup(),delete De._x_transitioning})});De._x_transitioning={beforeCancels:[],beforeCancel(Ve){this.beforeCancels.push(Ve)},cancel:once(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();Fe()}),finish:Fe},mutateDom(()=>{_e.start(),_e.during()}),holdNextTicks(),requestAnimationFrame(()=>{if(Ae)return;let Ve=Number(getComputedStyle(De).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,Ie=Number(getComputedStyle(De).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;Ve===0&&(Ve=Number(getComputedStyle(De).animationDuration.replace("s",""))*1e3),mutateDom(()=>{_e.before()}),ke=!0,requestAnimationFrame(()=>{Ae||(mutateDom(()=>{_e.end()}),releaseNextTicks(),setTimeout(De._x_transitioning.finish,Ve+Ie),Le=!0)})})}function modifierValue$1(De,_e,Ae){if(De.indexOf(_e)===-1)return Ae;const ke=De[De.indexOf(_e)+1];if(!ke||_e==="scale"&&isNaN(ke))return Ae;if(_e==="duration"||_e==="delay"){let Le=ke.match(/([0-9]+)ms/);if(Le)return Le[1]}return _e==="origin"&&["top","right","left","center","bottom"].includes(De[De.indexOf(_e)+2])?[ke,De[De.indexOf(_e)+2]].join(" "):ke}var isCloning=!1;function skipDuringClone(De,_e=()=>{}){return(...Ae)=>isCloning?_e(...Ae):De(...Ae)}function onlyDuringClone(De){return(..._e)=>isCloning&&De(..._e)}var interceptors=[];function interceptClone(De){interceptors.push(De)}function cloneNode(De,_e){interceptors.forEach(Ae=>Ae(De,_e)),isCloning=!0,dontRegisterReactiveSideEffects(()=>{initTree(_e,(Ae,ke)=>{ke(Ae,()=>{})})}),isCloning=!1}var isCloningLegacy=!1;function clone(De,_e){_e._x_dataStack||(_e._x_dataStack=De._x_dataStack),isCloning=!0,isCloningLegacy=!0,dontRegisterReactiveSideEffects(()=>{cloneTree(_e)}),isCloning=!1,isCloningLegacy=!1}function cloneTree(De){let _e=!1;initTree(De,(ke,Le)=>{walk(ke,(Fe,Ve)=>{if(_e&&isRoot(Fe))return Ve();_e=!0,Le(Fe,Ve)})})}function dontRegisterReactiveSideEffects(De){let _e=effect$2;overrideEffect((Ae,ke)=>{let Le=_e(Ae);return release(Le),()=>{}}),De(),overrideEffect(_e)}function bind(De,_e,Ae,ke=[]){switch(De._x_bindings||(De._x_bindings=reactive({})),De._x_bindings[_e]=Ae,_e=ke.includes("camel")?camelCase(_e):_e,_e){case"value":bindInputValue(De,Ae);break;case"style":bindStyles(De,Ae);break;case"class":bindClasses(De,Ae);break;case"selected":case"checked":bindAttributeAndProperty(De,_e,Ae);break;default:bindAttribute(De,_e,Ae);break}}function bindInputValue(De,_e){if(isRadio$1(De))De.attributes.value===void 0&&(De.value=_e),window.fromModel&&(typeof _e=="boolean"?De.checked=safeParseBoolean(De.value)===_e:De.checked=checkedAttrLooseCompare(De.value,_e));else if(isCheckbox(De))Number.isInteger(_e)?De.value=_e:!Array.isArray(_e)&&typeof _e!="boolean"&&![null,void 0].includes(_e)?De.value=String(_e):Array.isArray(_e)?De.checked=_e.some(Ae=>checkedAttrLooseCompare(Ae,De.value)):De.checked=!!_e;else if(De.tagName==="SELECT")updateSelect(De,_e);else{if(De.value===_e)return;De.value=_e===void 0?"":_e}}function bindClasses(De,_e){De._x_undoAddedClasses&&De._x_undoAddedClasses(),De._x_undoAddedClasses=setClasses(De,_e)}function bindStyles(De,_e){De._x_undoAddedStyles&&De._x_undoAddedStyles(),De._x_undoAddedStyles=setStyles(De,_e)}function bindAttributeAndProperty(De,_e,Ae){bindAttribute(De,_e,Ae),setPropertyIfChanged(De,_e,Ae)}function bindAttribute(De,_e,Ae){[null,void 0,!1].includes(Ae)&&attributeShouldntBePreservedIfFalsy(_e)?De.removeAttribute(_e):(isBooleanAttr(_e)&&(Ae=_e),setIfChanged(De,_e,Ae))}function setIfChanged(De,_e,Ae){De.getAttribute(_e)!=Ae&&De.setAttribute(_e,Ae)}function setPropertyIfChanged(De,_e,Ae){De[_e]!==Ae&&(De[_e]=Ae)}function updateSelect(De,_e){const Ae=[].concat(_e).map(ke=>ke+"");Array.from(De.options).forEach(ke=>{ke.selected=Ae.includes(ke.value)})}function camelCase(De){return De.toLowerCase().replace(/-(\w)/g,(_e,Ae)=>Ae.toUpperCase())}function checkedAttrLooseCompare(De,_e){return De==_e}function safeParseBoolean(De){return[1,"1","true","on","yes",!0].includes(De)?!0:[0,"0","false","off","no",!1].includes(De)?!1:De?!!De:null}var booleanAttributes=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function isBooleanAttr(De){return booleanAttributes.has(De)}function attributeShouldntBePreservedIfFalsy(De){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(De)}function getBinding(De,_e,Ae){return De._x_bindings&&De._x_bindings[_e]!==void 0?De._x_bindings[_e]:getAttributeBinding(De,_e,Ae)}function extractProp(De,_e,Ae,ke=!0){if(De._x_bindings&&De._x_bindings[_e]!==void 0)return De._x_bindings[_e];if(De._x_inlineBindings&&De._x_inlineBindings[_e]!==void 0){let Le=De._x_inlineBindings[_e];return Le.extract=ke,dontAutoEvaluateFunctions(()=>evaluate$1(De,Le.expression))}return getAttributeBinding(De,_e,Ae)}function getAttributeBinding(De,_e,Ae){let ke=De.getAttribute(_e);return ke===null?typeof Ae=="function"?Ae():Ae:ke===""?!0:isBooleanAttr(_e)?!![_e,"true"].includes(ke):ke}function isCheckbox(De){return De.type==="checkbox"||De.localName==="ui-checkbox"||De.localName==="ui-switch"}function isRadio$1(De){return De.type==="radio"||De.localName==="ui-radio"}function debounce$1(De,_e){let Ae;return function(){const ke=this,Le=arguments,Fe=function(){Ae=null,De.apply(ke,Le)};clearTimeout(Ae),Ae=setTimeout(Fe,_e)}}function throttle$1(De,_e){let Ae;return function(){let ke=this,Le=arguments;Ae||(De.apply(ke,Le),Ae=!0,setTimeout(()=>Ae=!1,_e))}}function entangle({get:De,set:_e},{get:Ae,set:ke}){let Le=!0,Fe,Ve=effect$2(()=>{let Ie=De(),je=Ae();if(Le)ke(cloneIfObject(Ie)),Le=!1;else{let Ke=JSON.stringify(Ie),$e=JSON.stringify(je);Ke!==Fe?ke(cloneIfObject(Ie)):Ke!==$e&&_e(cloneIfObject(je))}Fe=JSON.stringify(De()),JSON.stringify(Ae())});return()=>{release(Ve)}}function cloneIfObject(De){return typeof De=="object"?JSON.parse(JSON.stringify(De)):De}function plugin(De){(Array.isArray(De)?De:[De]).forEach(Ae=>Ae(alpine_default))}var stores={},isReactive=!1;function store(De,_e){if(isReactive||(stores=reactive(stores),isReactive=!0),_e===void 0)return stores[De];stores[De]=_e,initInterceptors(stores[De]),typeof _e=="object"&&_e!==null&&_e.hasOwnProperty("init")&&typeof _e.init=="function"&&stores[De].init()}function getStores(){return stores}var binds={};function bind2(De,_e){let Ae=typeof _e!="function"?()=>_e:_e;return De instanceof Element?applyBindingsObject(De,Ae()):(binds[De]=Ae,()=>{})}function injectBindingProviders(De){return Object.entries(binds).forEach(([_e,Ae])=>{Object.defineProperty(De,_e,{get(){return(...ke)=>Ae(...ke)}})}),De}function applyBindingsObject(De,_e,Ae){let ke=[];for(;ke.length;)ke.pop()();let Le=Object.entries(_e).map(([Ve,Ie])=>({name:Ve,value:Ie})),Fe=attributesOnly(Le);return Le=Le.map(Ve=>Fe.find(Ie=>Ie.name===Ve.name)?{name:`x-bind:${Ve.name}`,value:`"${Ve.value}"`}:Ve),directives(De,Le,Ae).map(Ve=>{ke.push(Ve.runCleanups),Ve()}),()=>{for(;ke.length;)ke.pop()()}}var datas={};function data(De,_e){datas[De]=_e}function injectDataProviders(De,_e){return Object.entries(datas).forEac
5h(([Ae,ke])=>{Object.defineProperty(De,Ae,{get(){return(...Le)=>ke.bind(_e)(...Le)},enumerable:!1})}),De}var Alpine={get reactive(){return reactive},get release(){return release},get effect(){return effect$2},get raw(){return raw},version:"3.15.2",flushAndStopDeferringMutations,dontAutoEvaluateFunctions,disableEffectScheduling,startObservingMutations,stopObservingMutations,setReactivityEngine,onAttributeRemoved,onAttributesAdded,closestDataStack,skipDuringClone,onlyDuringClone,addRootSelector,addInitSelector,setErrorHandler,interceptClone,addScopeToNode,deferMutations,mapAttributes,evaluateLater,interceptInit,setEvaluator,mergeProxies,extractProp,findClosest,onElRemoved,closestRoot,destroyTree,interceptor,transition:transition$1,setStyles,mutateDom,directive,entangle,throttle:throttle$1,debounce:debounce$1,evaluate:evaluate$1,initTree,nextTick:nextTick$1,prefixed:prefix,prefix:setPrefix,plugin,magic,store,start,clone,cloneNode,bound:getBinding,$data:scope,watch,walk,data,bind:bind2},alpine_default=Alpine;function makeMap(De,_e){const Ae=Object.create(null),ke=De.split(",");for(let Le=0;Le<ke.length;Le++)Ae[ke[Le]]=!0;return _e?Le=>!!Ae[Le.toLowerCase()]:Le=>!!Ae[Le]}var EMPTY_OBJ=Object.freeze({}),hasOwnProperty$1=Object.prototype.hasOwnProperty,hasOwn=(De,_e)=>hasOwnProperty$1.call(De,_e),isArray$1=Array.isArray,isMap=De=>toTypeString(De)==="[object Map]",isString$1=De=>typeof De=="string",isSymbol=De=>typeof De=="symbol",isObject$3=De=>De!==null&&typeof De=="object",objectToString=Object.prototype.toString,toTypeString=De=>objectToString.call(De),toRawType=De=>toTypeString(De).slice(8,-1),isIntegerKey=De=>isString$1(De)&&De!=="NaN"&&De[0]!=="-"&&""+parseInt(De,10)===De,cacheStringFunction=De=>{const _e=Object.create(null);return Ae=>_e[Ae]||(_e[Ae]=De(Ae))},capitalize=cacheStringFunction(De=>De.charAt(0).toUpperCase()+De.slice(1)),hasChanged=(De,_e)=>De!==_e&&(De===De||_e===_e),targetMap=new WeakMap,effectStack=[],activeEffect,ITERATE_KEY=Symbol("iterate"),MAP_KEY_ITERATE_KEY=Symbol("Map key iterate");function isEffect(De){return De&&De._isEffect===!0}
5function effect2(De,_e=EMPTY_OBJ){isEffect(De)&&(De=De.raw);const Ae=createReactiveEffect(De,_e);return _e.lazy||Ae(),Ae}function stop(De){De.active&&(cleanup$1(De),De.options.onStop&&De.options.onStop(),De.active=!1)}var uid=0;function createReactiveEffect(De,_e){const Ae=function(){if(!Ae.active)return De();if(!effectStack.includes(Ae)){cleanup$1(Ae);try{return enableTracking(),effectStack.push(Ae),activeEffect=Ae,De()}finally{effectStack.pop(),resetTracking(),activeEffect=effectStack[effectStack.length-1]}}};return Ae.id=uid++,Ae.allowRecurse=!!_e.allowRecurse,Ae._isEffect=!0,Ae.active=!0,Ae.raw=De,Ae.deps=[],Ae.options=_e,Ae}function cleanup$1(De){const{deps:_e}=De;if(_e.length){for(let Ae=0;Ae<_e.length;Ae++)_e[Ae].delete(De);_e.length=0}}var shouldTrack=!0,trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function enableTracking(){trackStack.push(shouldTrack),shouldTrack=!0}function resetTracking(){const De=trackStack.pop();shouldTrack=De===void 0?!0:De}function track(De,_e,Ae){if(!shouldTrack||activeEffect===void 0)return;let ke=targetMap.get(De);ke||targetMap.set(De,ke=new Map);let Le=ke.get(Ae);Le||ke.set(Ae,Le=new Set),Le.has(activeEffect)||(Le.add(activeEffect),activeEffect.deps.push(Le),activeEffect.options.onTrack&&activeEffect.options.onTrack({effect:activeEffect,target:De,type:_e,key:Ae}))}function trigger(De,_e,Ae,ke,Le,Fe){const Ve=targetMap.get(De);if(!Ve)return;const Ie=new Set,je=$e=>{$e&&$e.forEach(qe=>{(qe!==activeEffect||qe.allowRecurse)&&Ie.add(qe)})};if(_e==="clear")Ve.forEach(je);else if(Ae==="length"&&isArray$1(De))Ve.forEach(($e,qe)=>{(qe==="length"||qe>=ke)&&je($e)});else switch(Ae!==void 0&&je(Ve.get(Ae)),_e){case"add":isArray$1(De)?isIntegerKey(Ae)&&je(Ve.get("length")):(je(Ve.get(ITERATE_KEY)),isMap(De)&&je(Ve.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$1(De)||(je(Ve.get(ITERATE_KEY)),isMap(De)&&je(Ve.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(De)&&je(Ve.get(ITERATE_KEY));break}const Ke=$e=>{$e.options.onTrigger&&$e.options.onTrigger({effect:$e,target:De,key:Ae,type:_e,newValue:ke,oldValue:Le,oldTarget:Fe}),$e.options.scheduler?$e.options.scheduler($e):$e()};Ie.forEach(Ke)}var isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).map(De=>Symbol[De]).filter(isSymbol)),get2=createGetter(),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const De={};return["includes","indexOf","lastIndexOf"].forEach(_e=>{De[_e]=function(...Ae){const ke=toRaw(this);for(let Fe=0,Ve=this.length;Fe<Ve;Fe++)track(ke,"get",Fe+"");const Le=ke[_e](...Ae);return Le===-1||Le===!1?ke[_e](...Ae.map(toRaw)):Le}}),["push","pop","shift","unshift","splice"].forEach(_e=>{De[_e]=function(...Ae){pauseTracking();const ke=toRaw(this)[_e].apply(this,Ae);return resetTracking(),ke}}),De}function createGetter(De=!1,_e=!1){return function(ke,Le,Fe){if(Le==="__v_isReactive")return!De;if(Le==="__v_isReadonly")return De;if(Le==="__v_raw"&&Fe===(De?_e?shallowReadonlyMap:readonlyMap:_e?shallowReactiveMap:reactiveMap).get(ke))return ke;const Ve=isArray$1(ke);if(!De&&Ve&&hasOwn(arrayInstrumentations,Le))return Reflect.get(arrayInstrumentations,Le,Fe);const Ie=Reflect.get(ke,Le,Fe);return(isSymbol(Le)?builtInSymbols.has(Le):isNonTrackableKeys(Le))||(De||track(ke,"get",Le),_e)?Ie:isRef(Ie)?!Ve||!isIntegerKey(Le)?Ie.value:Ie:isObject$3(Ie)?De?readonly(Ie):reactive2(Ie):Ie}}var set2=createSetter();function createSetter(De=!1){return function(Ae,ke,Le,Fe){let Ve=Ae[ke];if(!De&&(Le=toRaw(Le),Ve=toRaw(Ve),!isArray$1(Ae)&&isRef(Ve)&&!isRef(Le)))return Ve.value=Le,!0;const Ie=isArray$1(Ae)&&isIntegerKey(ke)?Number(ke)<Ae.length:hasOwn(Ae,ke),je=Reflect.set(Ae,ke,Le,Fe);return Ae===toRaw(Fe)&&(Ie?hasChanged(Le,Ve)&&trigger(Ae,"set",ke,Le,Ve):trigger(Ae,"add",ke,Le)),je}}function deleteProperty(De,_e){const Ae=hasOwn(De,_e),ke=De[_e],Le=Reflect.deleteProperty(De,_e);return Le&&Ae&&trigger(De,"delete",_e,void 0,ke),Le}function has(De,_e){const Ae=Reflect.has(De,_e);
5return(!isSymbol(_e)||!builtInSymbols.has(_e))&&track(De,"has",_e),Ae}function ownKeys$1(De){return track(De,"iterate",isArray$1(De)?"length":ITERATE_KEY),Reflect.ownKeys(De)}var mutableHandlers={get:get2,set:set2,deleteProperty,has,ownKeys:ownKeys$1},readonlyHandlers={get:readonlyGet,set(De,_e){return console.warn(`Set operation on key "${String(_e)}" failed: target is readonly.`,De),!0},deleteProperty(De,_e){return console.warn(`Delete operation on key "${String(_e)}" failed: target is readonly.`,De),!0}},toReactive=De=>isObject$3(De)?reactive2(De):De,toReadonly=De=>isObject$3(De)?readonly(De):De,toShallow=De=>De,getProto=De=>Reflect.getPrototypeOf(De);function get$1(De,_e,Ae=!1,ke=!1){De=De.__v_raw;const Le=toRaw(De),Fe=toRaw(_e);_e!==Fe&&!Ae&&track(Le,"get",_e),!Ae&&track(Le,"get",Fe);const{has:Ve}=getProto(Le),Ie=ke?toShallow:Ae?toReadonly:toReactive;if(Ve.call(Le,_e))return Ie(De.get(_e));if(Ve.call(Le,Fe))return Ie(De.get(Fe));De!==Le&&De.get(_e)}function has$1(De,_e=!1){const Ae=this.__v_raw,ke=toRaw(Ae),Le=toRaw(De);return De!==Le&&!_e&&track(ke,"has",De),!_e&&track(ke,"has",Le),De===Le?Ae.has(De):Ae.has(De)||Ae.has(Le)}function size$2(De,_e=!1){return De=De.__v_raw,!_e&&track(toRaw(De),"iterate",ITERATE_KEY),Reflect.get(De,"size",De)}function add(De){De=toRaw(De);const _e=toRaw(this);return getProto(_e).has.call(_e,De)||(_e.add(De),trigger(_e,"add",De,De)),this}function set$1(De,_e){_e=toRaw(_e);const Ae=toRaw(this),{has:ke,get:Le}=getProto(Ae);let Fe=ke.call(Ae,De);Fe?checkIdentityKeys(Ae,ke,De):(De=toRaw(De),Fe=ke.call(Ae,De));const Ve=Le.call(Ae,De);return Ae.set(De,_e),Fe?hasChanged(_e,Ve)&&trigger(Ae,"set",De,_e,Ve):trigger(Ae,"add",De,_e),this}function deleteEntry(De){const _e=toRaw(this),{has:Ae,get:ke}=getProto(_e);let Le=Ae.call(_e,De);Le?checkIdentityKeys(_e,Ae,De):(De=toRaw(De),Le=Ae.call(_e,De));const Fe=ke?ke.call(_e,De):void 0,Ve=_e.delete(De);return Le&&trigger(_e,"delete",De,void 0,Fe),Ve}function clear(){const De=toRaw(this),_e=De.size!==0,Ae=isMap(De)?new Map(De):new Set(De),ke=De.clear();return _e&&trigger(De,"clear",void 0,void 0,Ae),ke}function createForEach(De,_e){return function(ke,Le){const Fe=this,Ve=Fe.__v_raw,Ie=toRaw(Ve),je=_e?toShallow:De?toReadonly:toReactive;return!De&&track(Ie,"iterate",ITERATE_KEY),Ve.forEach((Ke,$e)=>ke.call(Le,je(Ke),je($e),Fe))}}function createIterableMethod(De,_e,Ae){return function(...ke){const Le=this.__v_raw,Fe=toRaw(Le),Ve=isMap(Fe),Ie=De==="entries"||De===Symbol.iterator&&Ve,je=De==="keys"&&Ve,Ke=Le[De](...ke),$e=Ae?toShallow:_e?toReadonly:toReactive;return!_e&&track(Fe,"iterate",je?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:qe,done:ci}=Ke.next();return ci?{value:qe,done:ci}:{value:Ie?[$e(qe[0]),$e(qe[1])]:$e(qe),done:ci}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(De){return function(..._e){{const Ae=_e[0]?`on key "${_e[0]}" `:"";console.warn(`${capitalize(De)} operation ${Ae}failed: target is readonly.`,toRaw(this))}return De==="delete"?!1:this}}function createInstrumentations(){const De={get(Fe){return get$1(this,Fe)},get size(){return size$2(this)},has:has$1,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},_e={get(Fe){return get$1(this,Fe,!1,!0)},get size(){return size$2(this)},has:has$1,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},Ae={get(Fe){return get$1(this,Fe,!0)},get size(){return size$2(this,!0)},has(Fe){return has$1.call(this,Fe,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},ke={get(Fe){return get$1(this,Fe,!0,!0)},get size(){return size$2(this,!0)},has(Fe){return has$1.call(this,Fe,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(Fe=>{De[Fe]=createIterableMethod(Fe,!1,!1),Ae[Fe]=createIterableMethod(Fe,!0,!1),_e[Fe]=createIterableMethod(Fe,!1,!0),ke[Fe]=createIterableMethod(Fe,!0,!0)}),[De,Ae,_e,ke]}var[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(De,_e){const Ae=_e?De?shallowReadonlyInstrumentations:shallowInstrumentations:De?readonlyInstrumentations:mutableInstrumentations;return(ke,Le,Fe)=>Le==="__v_isReactive"?!De:Le==="__v_isReadonly"?De:Le==="__v_raw"?ke:Reflect.get(hasOwn(Ae,Le)&&Le in ke?Ae:ke,Le,Fe)}var mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)};function checkIdentityKeys(De,_e,Ae){const ke=toRaw(Ae);if(ke!==Ae&&_e.call(De,ke)){const Le=toRawType(De);console.warn(`Reactive ${Le} contains both the raw and reactive versions of the same object${Le==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(De){switch(De){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(De){return De.__v_skip||!Object.isExtensible(De)?0:targetTypeMap(toRawType(De))}function reactive2(De){return De&&De.__v_isReadonly?De:createReactiveObject(De,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function readonly(De){return createReactiveObject(De,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(De,_e,Ae,ke,Le){if(!isObject$3(De))return console.warn(`value cannot be made reactive: ${String(De)}`),De;if(De.__v_raw&&!(_e&&De.__v_isReactive))return De;const Fe=Le.get(De);
vendor: 10,941 bytes, line 5
5if(Fe)return Fe;const Ve=getTargetType(De);if(Ve===0)return De;const Ie=new Proxy(De,Ve===2?ke:Ae);return Le.set(De,Ie),Ie}function toRaw(De){return De&&toRaw(De.__v_raw)||De}function isRef(De){return!!(De&&De.__v_isRef===!0)}magic("nextTick",()=>nextTick$1);magic("dispatch",De=>dispatch.bind(dispatch,De));magic("watch",(De,{evaluateLater:_e,cleanup:Ae})=>(ke,Le)=>{let Fe=_e(ke),Ie=watch(()=>{let je;return Fe(Ke=>je=Ke),je},Le);Ae(Ie)});magic("store",getStores);magic("data",De=>scope(De));magic("root",De=>closestRoot(De));magic("refs",De=>(De._x_refs_proxy||(De._x_refs_proxy=mergeProxies(getArrayOfRefObject(De))),De._x_refs_proxy));function getArrayOfRefObject(De){let _e=[];return findClosest(De,Ae=>{Ae._x_refs&&_e.push(Ae._x_refs)}),_e}var globalIdMemo={};function findAndIncrementId(De){return globalIdMemo[De]||(globalIdMemo[De]=0),++globalIdMemo[De]}function closestIdRoot(De,_e){return findClosest(De,Ae=>{if(Ae._x_ids&&Ae._x_ids[_e])return!0})}function setIdRoot(De,_e){De._x_ids||(De._x_ids={}),De._x_ids[_e]||(De._x_ids[_e]=findAndIncrementId(_e))}magic("id",(De,{cleanup:_e})=>(Ae,ke=null)=>{let Le=`${Ae}${ke?`-${ke}`:""}`;return cacheIdByNameOnElement(De,Le,_e,()=>{let Fe=closestIdRoot(De,Ae),Ve=Fe?Fe._x_ids[Ae]:findAndIncrementId(Ae);return ke?`${Ae}-${Ve}-${ke}`:`${Ae}-${Ve}`})});interceptClone((De,_e)=>{De._x_id&&(_e._x_id=De._x_id)});function cacheIdByNameOnElement(De,_e,Ae,ke){if(De._x_id||(De._x_id={}),De._x_id[_e])return De._x_id[_e];let Le=ke();return De._x_id[_e]=Le,Ae(()=>{delete De._x_id[_e]}),Le}magic("el",De=>De);warnMissingPluginMagic("Focus","focus","focus");warnMissingPluginMagic("Persist","persist","persist");function warnMissingPluginMagic(De,_e,Ae){magic(_e,ke=>warn(`You can't use [$${_e}] without first installing the "${De}" plugin here: https://alpinejs.dev/plugins/${Ae}`,ke))}directive("modelable",(De,{expression:_e},{effect:Ae,evaluateLater:ke,cleanup:Le})=>{let Fe=ke(_e),Ve=()=>{let $e;return Fe(qe=>$e=qe),$e},Ie=ke(`${_e} = __placeholder`),je=$e=>Ie(()=>{},{scope:{__placeholder:$e}}),Ke=Ve();je(Ke),queueMicrotask(()=>{if(!De._x_model)return;De._x_removeModelListeners.default();let $e=De._x_model.get,qe=De._x_model.set,ci=entangle({get(){return $e()},set(gi){qe(gi)}},{get(){return Ve()},set(gi){je(gi)}});Le(ci)})});directive("teleport",(De,{modifiers:_e,expression:Ae},{cleanup:ke})=>{De.tagName.toLowerCase()!=="template"&&warn("x-teleport can only be used on a <template> tag",De);let Le=getTarget(Ae),Fe=De.content.cloneNode(!0).firstElementChild;De._x_teleport=Fe,Fe._x_teleportBack=De,De.setAttribute("data-teleport-template",!0),Fe.setAttribute("data-teleport-target",!0),De._x_forwardEvents&&De._x_forwardEvents.forEach(Ie=>{Fe.addEventListener(Ie,je=>{je.stopPropagation(),De.dispatchEvent(new je.constructor(je.type,je))})}),addScopeToNode(Fe,{},De);let Ve=(Ie,je,Ke)=>{Ke.includes("prepend")?je.parentNode.insertBefore(Ie,je):Ke.includes("append")?je.parentNode.insertBefore(Ie,je.nextSibling):je.appendChild(Ie)};mutateDom(()=>{Ve(Fe,Le,_e),skipDuringClone(()=>{initTree(Fe)})()}),De._x_teleportPutBack=()=>{let Ie=getTarget(Ae);mutateDom(()=>{Ve(De._x_teleport,Ie,_e)})},ke(()=>mutateDom(()=>{Fe.remove(),destroyTree(Fe)}))});var teleportContainerDuringClone=document.createElement("div");function getTarget(De){let _e=skipDuringClone(()=>document.querySelector(De),()=>teleportContainerDuringClone)();return _e||warn(`Cannot find x-teleport element for selector: "${De}"`),_e}var handler=()=>{};handler.inline=(De,{modifiers:_e},{cleanup:Ae})=>{_e.includes("self")?De._x_ignoreSelf=!0:De._x_ignore=!0,Ae(()=>{_e.includes("self")?delete De._x_ignoreSelf:delete De._x_ignore})};directive("ignore",handler);directive("effect",skipDuringClone((De,{expression:_e},{effect:Ae})=>{Ae(evaluateLater(De,_e))}));function on(De,_e,Ae,ke){let Le=De,Fe=je=>ke(je),Ve={},Ie=(je,Ke)=>$e=>Ke(je,$e);if(Ae.includes("dot")&&(_e=dotSyntax(_e)),Ae.includes("camel")&&(_e=camelCase2(_e)),Ae.includes("passive")&&(Ve.passive=!0),Ae.includes("capture")&&(Ve.capture=!0),Ae.includes("window")&&(Le=window),Ae.includes("document")&&(Le=document),Ae.includes("debounce")){let je=Ae[Ae.indexOf("debounce")+1]||"invalid-wait",Ke=isNumeric(je.split("ms")[0])?Number(je.split("ms")[0]):250;Fe=debounce$1(Fe,Ke)}if(Ae.includes("throttle")){let je=Ae[Ae.indexOf("throttle")+1]||"invalid-wait",Ke=isNumeric(je.split("ms")[0])?Number(je.split("ms")[0]):250;Fe=throttle$1(Fe,Ke)}return Ae.includes("prevent")&&(Fe=Ie(Fe,(je,Ke)=>{Ke.preventDefault(),je(Ke)})),Ae.includes("stop")&&(Fe=Ie(Fe,(je,Ke)=>{Ke.stopPropagation(),je(Ke)})),Ae.includes("once")&&(Fe=Ie(Fe,(je,Ke)=>{je(Ke),Le.removeEventListener(_e,Fe,Ve)})),(Ae.includes("away")||Ae.includes("outside"))&&(Le=document,Fe=Ie(Fe,(je,Ke)=>{De.contains(Ke.target)||Ke.target.isConnected!==!1&&(De.offsetWidth<1&&De.offsetHeight<1||De._x_isShown!==!1&&je(Ke))})),Ae.includes("self")&&(Fe=Ie(Fe,(je,Ke)=>{Ke.target===De&&je(Ke)})),(isKeyEvent(_e)||isClickEvent(_e))&&(Fe=Ie(Fe,(je,Ke)=>{isListeningForASpecificKeyThatHasntBeenPressed(Ke,Ae)||je(Ke)})),Le.addEventListener(_e,Fe,Ve),()=>{Le.removeEventListener(_e,Fe,Ve)}}function dotSyntax(De){return De.replace(/-/g,".")}function camelCase2(De){return De.toLowerCase().replace(/-(\w)/g,(_e,Ae)=>Ae.toUpperCase())}function isNumeric(De){return!Array.isArray(De)&&!isNaN(De)}function kebabCase2(De){return[" ","_"].includes(De)?De:De.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function isKeyEvent(De){return["keydown","keyup"].includes(De)}function isClickEvent(De){return["contextmenu","click","mouse"].some(_e=>De.includes(_e))}function isListeningForASpecificKeyThatHasntBeenPressed(De,_e){let Ae=_e.filter(Fe=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll"].includes(Fe));if(Ae.includes("debounce")){let Fe=Ae.indexOf("debounce");Ae.splice(Fe,isNumeric((Ae[Fe+1]||"invalid-wait").split("ms")[0])?2:1)}if(Ae.includes("throttle")){let Fe=Ae.indexOf("throttle");Ae.splice(Fe,isNumeric((Ae[Fe+1]||"invalid-wait").split("ms")[0])?2:1)}if(Ae.length===0||Ae.length===1&&keyToModifiers(De.key).includes(Ae[0]))return!1;const Le=["ctrl","shift","alt","meta","cmd","super"].filter(Fe=>Ae.includes(Fe));return Ae=Ae.filter(Fe=>!Le.includes(Fe)),!(Le.length>0&&Le.filter(Ve=>((Ve==="cmd"||Ve==="super")&&(Ve="meta"),De[`${Ve}Key`])).length===Le.length&&(isClickEvent(De.type)||keyToModifiers(De.key).includes(Ae[0])))}function keyToModifiers(De){if(!De)return[];De=kebabCase2(De);let _e={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return _e[De]=De,Object.keys(_e).map(Ae=>{if(_e[Ae]===De)return Ae}).filter(Ae=>Ae)}directive("model",(De,{modifiers:_e,expression:Ae},{effect:ke,cleanup:Le})=>{let Fe=De;_e.includes("parent")&&(Fe=De.parentNode);let Ve=evaluateLater(Fe,Ae),Ie;typeof Ae=="string"?Ie=evaluateLater(Fe,`${Ae} = __placeholder`):typeof Ae=="function"&&typeof Ae()=="string"?Ie=evaluateLater(Fe,`${Ae()} = __placeholder`):Ie=()=>{};let je=()=>{let ci;return Ve(gi=>ci=gi),isGetterSetter(ci)?ci.get():ci},Ke=ci=>{let gi;Ve(Ai=>gi=Ai),isGetterSetter(gi)?gi.set(ci):Ie(()=>{},{scope:{__placeholder:ci}})};typeof Ae=="string"&&De.type==="radio"&&mutateDom(()=>{De.hasAttribute("name")||De.setAttribute("name",Ae)});let $e=De.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(De.type)||_e.includes("lazy")?"change":"input",qe=isCloning?()=>{}:on(De,$e,_e,ci=>{Ke(getInputValue(De,_e,ci,je()))});if(_e.includes("fill")&&([void 0,null,""].includes(je())||isCheckbox(De)&&Array.isArray(je())||De.tagName.toLowerCase()==="select"&&De.multiple)&&Ke(getInputValue(De,_e,{target:De},je())),De._x_removeModelListeners||(De._x_removeModelListeners={}),De._x_removeModelListeners.default=qe,Le(()=>De._x_removeModelListeners.default()),De.form){let ci=on(De.form,"reset",[],gi=>{nextTick$1(()=>De._x_model&&De._x_model.set(getInputValue(De,_e,{target:De},je())))});Le(()=>ci())}De._x_model={get(){return je()},set(ci){Ke(ci)}},De._x_forceModelUpdate=ci=>{ci===void 0&&typeof Ae=="string"&&Ae.match(/\./)&&(ci=""),window.fromModel=!0,mutateDom(()=>bind(De,"value",ci)),delete window.fromModel},ke(()=>{let ci=je();_e.includes("unintrusive")&&document.activeElement.isSameNode(De)||De._x_forceModelUpdate(ci)})});function getInputValue(De,_e,Ae,ke){return mutateDom(()=>{if(Ae instanceof CustomEvent&&Ae.detail!==void 0)return Ae.detail!==null&&Ae.detail!==void 0?Ae.detail:Ae.target.value;if(isCheckbox(De))if(Array.isArray(ke)){let Le=null;return _e.includes("number")?Le=safeParseNumber(Ae.target.value):_e.includes("boolean")?Le=safeParseBoolean(Ae.target.value):Le=Ae.target.value,Ae.target.checked?ke.includes(Le)?ke:ke.concat([Le]):ke.filter(Fe=>!checkedAttrLooseCompare2(Fe,Le))}else return Ae.target.checked;else{if(De.tagName.toLowerCase()==="select"&&De.multiple)return _e.includes("number")?Array.from(Ae.target.selectedOptions).map(Le=>{let Fe=Le.value||Le.text;return safeParseNumber(Fe)}):_e.includes("boolean")?Array.from(Ae.target.selectedOptions).map(Le=>{let Fe=Le.value||Le.text;return safeParseBoolean(Fe)}):Array.from(Ae.target.selectedOptions).map(Le=>Le.value||Le.text);{let Le;return isRadio$1(De)?Ae.target.checked?Le=Ae.target.value:Le=ke:Le=Ae.target.value,_e.includes("number")?safeParseNumber(Le):_e.includes("boolean")?safeParseBoolean(Le):_e.includes("trim")?Le.trim():Le}}})}function safeParseNumber(De){let _e=De?parseFloat(De):null;return isNumeric2(_e)?_e:De}function checkedAttrLooseCompare2(De,_e){return De==_e}function isNumeric2(De){return!Array.isArray(De)&&!isNaN(De)}function isGetterSetter(De){return De!==null&&typeof De=="object"&&typeof De.get=="function"&&typeof De.set=="function"}directive("cloak",De=>queueMicrotask(()=>mutateDom(()=>De.removeAttribute(prefix("cloak")))));addInitSelector(()=>`[${prefix("init")}]`);directive("init",skipDuringClone((De,{expression:_e},{evaluate:Ae})=>typeof _e=="string"?!!_e.trim()&&Ae(_e,{},!1):Ae(_e,{},!1)));directive("text",(De,{expression:_e},{effect:Ae,evaluateLater:ke})=>{let Le=ke(_e);Ae(()=>{Le(Fe=>{mutateDom(()=>{De.textContent=Fe})})})});directive("html",(De,{expression:_e},{effect:Ae,evaluateLater:ke})=>{let Le=ke(_e);Ae(()=>{Le(Fe=>{mutateDom(()=>{De.innerHTML=Fe,De._x_ignoreSelf=!0,initTree(De),delete De._x_ignoreSelf})})})});mapAttributes(startingWith(":",into(prefix("bind:"))));var handler2=(De,{value:_e,modifiers:Ae,expression:ke,original:Le},{effect:Fe,cleanup:Ve})=>{if(!_e){let je={};injectBindingProviders(je),evaluateLater(De,ke)($e=>{applyBindingsObject(De,$e,Le)},{scope:je});return}if(_e==="key")return storeKeyForXFor(De,ke);if(De._x_inlineBindings&&De._x_inlineBindings[_e]&&De._x_inlineBindings[_e].extract)return;let Ie=evaluateLater(De,ke);Fe(()=>Ie(je=>{je===void 0&&typeof ke=="string"&&ke.match(/\./)&&(je=""),mutateDom(()=>
5bind(De,_e,je,Ae))})),Ve(()=>{De._x_undoAddedClasses&&De._x_undoAddedClasses(),De._x_undoAddedStyles&&De._x_undoAddedStyles()})};handler2.inline=(De,{value:_e,modifiers:Ae,expression:ke})=>{_e&&(De._x_inlineBindings||(De._x_inlineBindings={}),De._x_inlineBindings[_e]={expression:ke,extract:!1})};directive("bind",handler2);function storeKeyForXFor(De,_e){De._x_keyExpression=_e}addRootSelector(()=>`[${prefix("data")}]`);directive("data",(De,{expression:_e},{cleanup:Ae})=>{if(shouldSkipRegisteringDataDuringClone(De))return;_e=_e===""?"{}":_e;let ke={};injectMagics(ke,De);let Le={};injectDataProviders(Le,ke);let Fe=evaluate$1(De,_e,{scope:Le});(Fe===void 0||Fe===!0)&&(Fe={}),injectMagics(Fe,De);let Ve=reactive(Fe);initInterceptors(Ve);let Ie=addScopeToNode(De,Ve);Ve.init&&evaluate$1(De,Ve.init),Ae(()=>{Ve.destroy&&evaluate$1(De,Ve.destroy),Ie()})});interceptClone((De,_e)=>{De._x_dataStack&&(_e._x_dataStack=De._x_dataStack,_e.setAttribute("data-has-alpine-state",!0))});function shouldSkipRegisteringDataDuringClone(De){return isCloning?isCloningLegacy?!0:De.hasAttribute("data-has-alpine-state"):!1}directive("show",(De,{modifiers:_e,expression:Ae},{effect:ke})=>{let Le=evaluateLater(De,Ae);De._x_doHide||(De._x_doHide=()=>{mutateDom(()=>{De.style.setProperty("display","none",_e.includes("important")?"important":void 0)})}),De._x_doShow||(De._x_doShow=()=>{mutateDom(()=>{De.style.length===1&&De.style.display==="none"?De.removeAttribute("style"):De.style.removeProperty("display")})});let Fe=()=>{De._x_doHide(),De._x_isShown=!1},Ve=()=>{De._x_doShow(),De._x_isShown=!0},Ie=()=>setTimeout(Ve),je=once(qe=>qe?Ve():Fe(),qe=>{typeof De._x_toggleAndCascadeWithTransitions=="function"?De._x_toggleAndCascadeWithTransitions(De,qe,Ve,Fe):qe?Ie():Fe()}),Ke,$e=!0;ke(()=>Le(qe=>{!$e&&qe===Ke||(_e.includes("immediate")&&(qe?Ie():Fe()),je(qe),Ke=qe,$e=!1)}))});directive("for",(De,{expression:_e},{effect:Ae,cleanup:ke})=>{let Le=parseForExpression(_e),Fe=evaluateLater(De,Le.items),Ve=evaluateLater(De,De._x_keyExpression||"index");De._x_prevKeys=[],De._x_lookup={},Ae(()=>loop$1(De,Le,Fe,Ve)),ke(()=>{Object.values(De._x_lookup).forEach(Ie=>mutateDom(()=>{destroyTree(Ie),Ie.remove()})),delete De._x_prevKeys,delete De._x_lookup})});function loop$1(De,_e,Ae,ke){let Le=Ve=>typeof Ve=="object"&&!Array.isArray(Ve),Fe=De;Ae(Ve=>{isNumeric3(Ve)&&Ve>=0&&(Ve=Array.from(Array(Ve).keys(),ii=>ii+1)),Ve===void 0&&(Ve=[]);let Ie=De._x_lookup,je=De._x_prevKeys,Ke=[],$e=[];if(Le(Ve))Ve=Object.entries(Ve).map(([ii,hi])=>{let Ei=getIterationScopeVariables(_e,hi,ii,Ve);ke(Li=>{$e.includes(Li)&&warn("Duplicate key on x-for",De),$e.push(Li)},{scope:{index:ii,...Ei}}),Ke.push(Ei)});else for(let ii=0;ii<Ve.length;ii++){let hi=getIterationScopeVariables(_e,Ve[ii],ii,Ve);ke(Ei=>{$e.includes(Ei)&&warn("Duplicate key on x-for",De),$e.push(Ei)},{scope:{index:ii,...hi}}),Ke.push(hi)}let qe=[],ci=[],gi=[],Ai=[];for(let ii=0;ii<je.length;ii++){let hi=je[ii];$e.indexOf(hi)===-1&&gi.push(hi)}je=je.filter(ii=>!gi.includes(ii));let oi="template";for(let ii=0;ii<$e.length;ii++){let hi=$e[ii],Ei=je.indexOf(hi);if(Ei===-1)je.splice(ii,0,hi),qe.push([oi,ii]);else if(Ei!==ii){let Li=je.splice(ii,1)[0],Di=je.splice(Ei-1,1)[0];je.splice(ii,0,Di),je.splice(Ei,0,Li),ci.push([Li,Di])}else Ai.push(hi);oi=hi}for(let ii=0;ii<gi.length;ii++){let hi=gi[ii];hi in Ie&&(mutateDom(()=>{destroyTree(Ie[hi]),Ie[hi].remove()}),delete Ie[hi])}for(let ii=0;ii<ci.length;ii++){let[hi,Ei]=ci[ii],Li=Ie[hi],Di=Ie[Ei],zi=document.createElement("div");mutateDom(()=>{Di||warn('x-for ":key" is undefined or invalid',Fe,Ei,Ie),Di.after(zi),Li.after(Di),Di._x_currentIfEl&&Di.after(Di._x_currentIfEl),zi.before(Li),Li._x_currentIfEl&&Li.after(Li._x_currentIfEl),zi.remove()}),Di._x_refreshXForScope(Ke[$e.indexOf(Ei)])}for(let ii=0;ii<qe.length;ii++){let[hi,Ei]=qe[ii],Li=hi==="template"?Fe:Ie[hi];Li._x_currentIfEl&&(Li=Li._x_currentIfEl);let Di=Ke[Ei],zi=$e[Ei],an=document.importNode(Fe.content,!0).firstElementChild,Je=reactive(Di);addScopeToNode(an,Je,Fe),an._x_refreshXForScope=fi=>{Object.entries(fi).forEach(([Gi,fn])=>{Je[Gi]=fn})},mutateDom(()=>{Li.after(an),skipDuringClone(()=>initTree(an))()}),typeof zi=="object"&&warn("x-for key cannot be an object, it must be a string or an integer",Fe),Ie[zi]=an}for(let ii=0;ii<Ai.length;ii++)Ie[Ai[ii]]._x_refreshXForScope(Ke[$e.indexOf(Ai[ii])]);Fe._x_prevKeys=$e})}function parseForExpression(De){let _e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ae=/^\s*\(|\)\s*$/g,ke=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Le=De.match(ke);if(!Le)return;let Fe={};Fe.items=Le[2].trim();let Ve=Le[1].replace(Ae,"").trim(),Ie=Ve.match(_e);return Ie?(Fe.item=Ve.replace(_e,"").trim(),Fe.index=Ie[1].trim(),Ie[2]&&(Fe.collection=Ie[2].trim())):Fe.item=Ve,Fe}function getIterationScopeVariables(De,_e,Ae,ke){let Le={};return/^\[.*\]$/.test(De.item)&&Array.isArray(_e)?De.item.replace("[","").replace("]","").split(",").map(Ve=>
5Ve.trim()).forEach((Ve,Ie)=>{Le[Ve]=_e[Ie]}):/^\{.*\}$/.test(De.item)&&!Array.isArray(_e)&&typeof _e=="object"?De.item.replace("{","").replace("}","").split(",").map(Ve=>Ve.trim()).forEach(Ve=>{Le[Ve]=_e[Ve]}):Le[De.item]=_e,De.index&&(Le[De.index]=Ae),De.collection&&(Le[De.collection]=ke),Le}function isNumeric3(De){return!Array.isArray(De)&&!isNaN(De)}function handler3(){}handler3.inline=(De,{expression:_e},{cleanup:Ae})=>{let ke=closestRoot(De);ke._x_refs||(ke._x_refs={}),ke._x_refs[_e]=De,Ae(()=>delete ke._x_refs[_e])};directive("ref",handler3);directive("if",(De,{expression:_e},{effect:Ae,cleanup:ke})=>{De.tagName.toLowerCase()!=="template"&&warn("x-if can only be used on a <template> tag",De);let Le=evaluateLater(De,_e),Fe=()=>{if(De._x_currentIfEl)return De._x_currentIfEl;let Ie=De.content.cloneNode(!0).firstElementChild;return addScopeToNode(Ie,{},De),mutateDom(()=>{De.after(Ie),skipDuringClone(()=>initTree(Ie))()}),De._x_currentIfEl=Ie,De._x_undoIf=()=>{mutateDom(()=>{destroyTree(Ie),Ie.remove()}),delete De._x_currentIfEl},Ie},Ve=()=>{De._x_undoIf&&(De._x_undoIf(),delete De._x_undoIf)};Ae(()=>Le(Ie=>{Ie?Fe():Ve()})),ke(()=>De._x_undoIf&&De._x_undoIf())});directive("id",(De,{expression:_e},{evaluate:Ae})=>{Ae(_e).forEach(Le=>setIdRoot(De,Le))});interceptClone((De,_e)=>{De._x_ids&&(_e._x_ids=De._x_ids)});mapAttributes(startingWith("@",into(prefix("on:"))));directive("on",skipDuringClone((De,{value:_e,modifiers:Ae,expression:ke},{cleanup:Le})=>{let Fe=ke?evaluateLater(De,ke):()=>{};De.tagName.toLowerCase()==="template"&&(De._x_forwardEvents||(De._x_forwardEvents=[]),De._x_forwardEvents.includes(_e)||De._x_forwardEvents.push(_e));let Ve=on(De,_e,Ae,Ie=>{Fe(()=>{},{scope:{$event:Ie},params:[Ie]})});Le(()=>Ve())}));warnMissingPluginDirective("Collapse","collapse","collapse");warnMissingPluginDirective("Intersect","intersect","intersect");warnMissingPluginDirective("Focus","trap","focus");warnMissingPluginDirective("Mask","mask","mask");function warnMissingPluginDirective(De,_e,Ae){directive(_e,ke=>warn(`You can't use [x-${_e}] without first installing the "${De}" plugin here: https://alpinejs.dev/plugins/${Ae}`,ke))}alpine_default.setEvaluator(normalEvaluator);alpine_default.setReactivityEngine({reactive:reactive2,effect:effect2,release:stop,raw:toRaw});var src_default$2=alpine_default,module_default$2=src_default$2;function src_default$1(De){De.directive("collapse",_e),_e.inline=(Ae,{modifiers:ke})=>{ke.includes("min")&&(Ae._x_doShow=()=>{},Ae._x_doHide=()=>{})};function _e(Ae,{modifiers:ke}){let Le=modifierValue(ke,"duration",250)/1e3,Fe=modifierValue(ke,"min",0),Ve=!ke.includes("min");Ae._x_isShown||(Ae.style.height=`${Fe}px`),!Ae._x_isShown&&Ve&&(Ae.hidden=!0),Ae._x_isShown||(Ae.style.overflow="hidden");let Ie=(Ke,$e)=>{let qe=De.setStyles(Ke,$e);return $e.height?()=>{}:qe},je={transitionProperty:"height",transitionDuration:`${Le}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};Ae._x_transition={in(Ke=()=>{},$e=()=>{}){Ve&&(Ae.hidden=!1),Ve&&(Ae.style.display=null);let qe=Ae.getBoundingClientRect().height;Ae.style.height="auto";let ci=Ae.getBoundingClientRect().height;qe===ci&&(qe=Fe),De.transition(Ae,De.setStyles,{during:je,start:{height:qe+"px"},end:{height:ci+"px"}},()=>Ae._x_isShown=!0,()=>{Math.abs(Ae.getBoundingClientRect().height-ci)<1&&(Ae.style.overflow=null)})},out(Ke=()=>{},$e=()=>{}){let qe=Ae.getBoundingClientRect().height;De.transition(Ae,Ie,{during:je,start:{height:qe+"px"},end:{height:Fe+"px"}},()=>Ae.style.overflow="hidden",()=>{Ae._x_isShown=!1,Ae.style.height==`${Fe}px`&&Ve&&(Ae.style.display="none",Ae.hidden=!0)})}}}}function modifierValue(De,_e,Ae){if(De.indexOf(_e)===-1)return Ae;const ke=De[De.indexOf(_e)+1];if(!ke)return Ae;if(_e==="duration"){let Le=ke.match(/([0-9]+)ms/);if(Le)return Le[1]}if(_e==="min"){let Le=ke.match(/([0-9]+)px/);if(Le)return Le[1]}return ke}var module_default$1=src_default$1,candidateSelectors=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],candidateSelector=candidateSelectors.join(","),NoElement=typeof Element>"u",matches=NoElement?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,getRootNode=!NoElement&&Element.prototype.getRootNode?function(De){return De.getRootNode()}:function(De){return De.ownerDocument},getCandidates=function(_e,Ae,ke){var Le=Array.prototype.slice.apply(_e.querySelectorAll(candidateSelector));return Ae&&matches.call(_e,candidateSelector)&&Le.unshift(_e),Le=Le.filter(ke),Le}
vendor: 4,139 bytes, line 5
5,getCandidatesIteratively=function De(_e,Ae,ke){for(var Le=[],Fe=Array.from(_e);Fe.length;){var Ve=Fe.shift();if(Ve.tagName==="SLOT"){var Ie=Ve.assignedElements(),je=Ie.length?Ie:Ve.children,Ke=De(je,!0,ke);ke.flatten?Le.push.apply(Le,Ke):Le.push({scope:Ve,candidates:Ke})}else{var $e=matches.call(Ve,candidateSelector);$e&&ke.filter(Ve)&&(Ae||!_e.includes(Ve))&&Le.push(Ve);var qe=Ve.shadowRoot||typeof ke.getShadowRoot=="function"&&ke.getShadowRoot(Ve),ci=!ke.shadowRootFilter||ke.shadowRootFilter(Ve);if(qe&&ci){var gi=De(qe===!0?Ve.children:qe.children,!0,ke);ke.flatten?Le.push.apply(Le,gi):Le.push({scope:Ve,candidates:gi})}else Fe.unshift.apply(Fe,Ve.children)}}return Le},getTabindex=function(_e,Ae){return _e.tabIndex<0&&(Ae||/^(AUDIO|VIDEO|DETAILS)$/.test(_e.tagName)||_e.isContentEditable)&&isNaN(parseInt(_e.getAttribute("tabindex"),10))?0:_e.tabIndex},sortOrderedTabbables=function(_e,Ae){return _e.tabIndex===Ae.tabIndex?_e.documentOrder-Ae.documentOrder:_e.tabIndex-Ae.tabIndex},isInput=function(_e){return _e.tagName==="INPUT"},isHiddenInput=function(_e){return isInput(_e)&&_e.type==="hidden"},isDetailsWithSummary=function(_e){var Ae=_e.tagName==="DETAILS"&&Array.prototype.slice.apply(_e.children).some(function(ke){return ke.tagName==="SUMMARY"});return Ae},getCheckedRadio=function(_e,Ae){for(var ke=0;ke<_e.length;ke++)if(_e[ke].checked&&_e[ke].form===Ae)return _e[ke]},isTabbableRadio=function(_e){if(!_e.name)return!0;var Ae=_e.form||getRootNode(_e),ke=function(Ie){return Ae.querySelectorAll('input[type="radio"][name="'+Ie+'"]')},Le;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")Le=ke(window.CSS.escape(_e.name));else try{Le=ke(_e.name)}catch(Ve){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",Ve.message),!1}var Fe=getCheckedRadio(Le,_e.form);return!Fe||Fe===_e},isRadio=function(_e){return isInput(_e)&&_e.type==="radio"},isNonTabbableRadio=function(_e){return isRadio(_e)&&!isTabbableRadio(_e)},isZeroArea=function(_e){var Ae=_e.getBoundingClientRect(),ke=Ae.width,Le=Ae.height;return ke===0&&Le===0},isHidden=function(_e,Ae){var ke=Ae.displayCheck,Le=Ae.getShadowRoot;if(getComputedStyle(_e).visibility==="hidden")return!0;var Fe=matches.call(_e,"details>summary:first-of-type"),Ve=Fe?_e.parentElement:_e;if(matches.call(Ve,"details:not([open]) *"))return!0;var Ie=getRootNode(_e).host,je=(Ie==null?void 0:Ie.ownerDocument.contains(Ie))||_e.ownerDocument.contains(_e);if(!ke||ke==="full"){if(typeof Le=="function"){for(var Ke=_e;_e;){var $e=_e.parentElement,qe=getRootNode(_e);if($e&&!$e.shadowRoot&&Le($e)===!0)return isZeroArea(_e);_e.assignedSlot?_e=_e.assignedSlot:!$e&&qe!==_e.ownerDocument?_e=qe.host:_e=$e}_e=Ke}if(je)return!_e.getClientRects().length}else if(ke==="non-zero-area")return isZeroArea(_e);return!1},isDisabledFromFieldset=function(_e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(_e.tagName))for(var Ae=_e.parentElement;Ae;){if(Ae.tagName==="FIELDSET"&&Ae.disabled){for(var ke=0;ke<Ae.children.length;ke++){var Le=Ae.children.item(ke);if(Le.tagName==="LEGEND")return matches.call(Ae,"fieldset[disabled] *")?!0:!Le.contains(_e)}return!0}Ae=Ae.parentElement}return!1},isNodeMatchingSelectorFocusable=function(_e,Ae){return!(Ae.disabled||isHiddenInput(Ae)||isHidden(Ae,_e)||isDetailsWithSummary(Ae)||isDisabledFromFieldset(Ae))},isNodeMatchingSelectorTabbable=function(_e,Ae){return!(isNonTabbableRadio(Ae)||getTabindex(Ae)<0||!isNodeMatchingSelectorFocusable(_e,Ae))},isValidShadowRootTabbable=function(_e){var Ae=parseInt(_e.getAttribute("tabindex"),10);return!!(isNaN(Ae)||Ae>=0)},sortByOrder=function De(_e){var Ae=[],ke=[];return _e.forEach(function(Le,Fe){var Ve=!!Le.scope,Ie=Ve?Le.scope:Le,je=getTabindex(Ie,Ve),Ke=Ve?De(Le.candidates):Ie;je===0?Ve?Ae.push.apply(Ae,Ke):Ae.push(Ie):ke.push({documentOrder:Fe,tabIndex:je,item:Le,isScope:Ve,content:Ke})}),ke.sort(sortOrderedTabbables).reduce(function(Le,Fe){return Fe.isScope?Le.push.apply(Le,Fe.content):Le.push(Fe.content),Le},[]).concat(Ae)},tabbable=function(_e,Ae){Ae=Ae||{};var ke;
vendor: 5,448 bytes, line 5
5return Ae.getShadowRoot?ke=getCandidatesIteratively([_e],Ae.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,Ae),flatten:!1,getShadowRoot:Ae.getShadowRoot,shadowRootFilter:isValidShadowRootTabbable}):ke=getCandidates(_e,Ae.includeContainer,isNodeMatchingSelectorTabbable.bind(null,Ae)),sortByOrder(ke)},focusable=function(_e,Ae){Ae=Ae||{};var ke;return Ae.getShadowRoot?ke=getCandidatesIteratively([_e],Ae.includeContainer,{filter:isNodeMatchingSelectorFocusable.bind(null,Ae),flatten:!0,getShadowRoot:Ae.getShadowRoot}):ke=getCandidates(_e,Ae.includeContainer,isNodeMatchingSelectorFocusable.bind(null,Ae)),ke},isTabbable=function(_e,Ae){if(Ae=Ae||{},!_e)throw new Error("No node provided");return matches.call(_e,candidateSelector)===!1?!1:isNodeMatchingSelectorTabbable(Ae,_e)},focusableCandidateSelector=candidateSelectors.concat("iframe").join(","),isFocusable=function(_e,Ae){if(Ae=Ae||{},!_e)throw new Error("No node provided");return matches.call(_e,focusableCandidateSelector)===!1?!1:isNodeMatchingSelectorFocusable(Ae,_e)};function ownKeys(De,_e){var Ae=Object.keys(De);if(Object.getOwnPropertySymbols){var ke=Object.getOwnPropertySymbols(De);_e&&(ke=ke.filter(function(Le){return Object.getOwnPropertyDescriptor(De,Le).enumerable})),Ae.push.apply(Ae,ke)}return Ae}function _objectSpread2(De){for(var _e=1;_e<arguments.length;_e++){var Ae=arguments[_e]!=null?arguments[_e]:{};_e%2?ownKeys(Object(Ae),!0).forEach(function(ke){_defineProperty(De,ke,Ae[ke])}):Object.getOwnPropertyDescriptors?Object.defineProperties(De,Object.getOwnPropertyDescriptors(Ae)):ownKeys(Object(Ae)).forEach(function(ke){Object.defineProperty(De,ke,Object.getOwnPropertyDescriptor(Ae,ke))})}return De}function _defineProperty(De,_e,Ae){return _e in De?Object.defineProperty(De,_e,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):De[_e]=Ae,De}var activeFocusTraps=function(){var De=[];return{activateTrap:function(Ae){if(De.length>0){var ke=De[De.length-1];ke!==Ae&&ke.pause()}var Le=De.indexOf(Ae);Le===-1||De.splice(Le,1),De.push(Ae)},deactivateTrap:function(Ae){var ke=De.indexOf(Ae);ke!==-1&&De.splice(ke,1),De.length>0&&De[De.length-1].unpause()}}}(),isSelectableInput=function(_e){return _e.tagName&&_e.tagName.toLowerCase()==="input"&&typeof _e.select=="function"},isEscapeEvent=function(_e){return _e.key==="Escape"||_e.key==="Esc"||_e.keyCode===27},isTabEvent=function(_e){return _e.key==="Tab"||_e.keyCode===9},delay=function(_e){return setTimeout(_e,0)},findIndex=function(_e,Ae){var ke=-1;return _e.every(function(Le,Fe){return Ae(Le)?(ke=Fe,!1):!0}),ke},valueOrHandler=function(_e){for(var Ae=arguments.length,ke=new Array(Ae>1?Ae-1:0),Le=1;Le<Ae;Le++)ke[Le-1]=arguments[Le];return typeof _e=="function"?_e.apply(void 0,ke):_e},getActualTarget=function(_e){return _e.target.shadowRoot&&typeof _e.composedPath=="function"?_e.composedPath()[0]:_e.target},createFocusTrap=function(_e,Ae){var ke=(Ae==null?void 0:Ae.document)||document,Le=_objectSpread2({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},Ae),Fe={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},Ve,Ie=function(an,Je,fi){return an&&an[Je]!==void 0?an[Je]:Le[fi||Je]},je=function(an){return Fe.containerGroups.findIndex(function(Je){var fi=Je.container,Gi=Je.tabbableNodes;return fi.contains(an)||Gi.find(function(fn){return fn===an})})},Ke=function(an){var Je=Le[an];if(typeof Je=="function"){for(var fi=arguments.length,Gi=new Array(fi>1?fi-1:0),fn=1;fn<fi;fn++)Gi[fn-1]=arguments[fn];Je=Je.apply(void 0,Gi)}if(Je===!0&&(Je=void 0),!Je){if(Je===void 0||Je===!1)return Je;throw new Error("`".concat(an,"` was specified but was not a node, or did not return a node"))}var cn=Je;if(typeof Je=="string"&&(cn=ke.querySelector(Je),!cn))throw new Error("`".concat(an,"` as selector refers to no known node"));return cn},$e=function(){var an=Ke("initialFocus");if(an===!1)return!1;if(an===void 0)if(je(ke.activeElement)>=0)an=ke.activeElement;else{var Je=Fe.tabbableGroups[0],fi=Je&&Je.firstTabbableNode;an=fi||Ke("fallbackFocus")}if(!an)throw new Error("Your focus-trap needs to have at least one focusable element");return an},qe=function(){if(Fe.containerGroups=Fe.containers.map(function(an){var Je=tabbable(an,Le.tabbableOptions),fi=focusable(an,Le.tabbableOptions);return{container:an,tabbableNodes:Je,focusableNodes:fi,firstTabbableNode:Je.length>0?Je[0]:null,lastTabbableNode:Je.length>0?Je[Je.length-1]:null,nextTabbableNode:function(fn){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Tn=fi.findIndex(function(Sn){return Sn===fn});if(!(Tn<0))return cn?fi.slice(Tn+1).find(function(Sn){return isTabbable(Sn,Le.tabbableOptions)}):fi.slice(0,Tn).reverse().find(function(Sn){return isTabbable(Sn,Le.tabbableOptions)})}}}),Fe.tabbableGroups=Fe.containerGroups.filter(function(an){return an.tabbableNodes.length>0}),Fe.tabbableGroups.length<=0&&!Ke("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},ci=function zi(an){if(an!==!1&&an!==ke.activeElement){if(!an||!an.focus){zi($e());return}an.focus({preventScroll:!!Le.preventScroll}),Fe.mostRecentlyFocusedNode=an,isSelectableInput(an)&&an.select()}},gi=function(an){var Je=Ke("setReturnFocus",an);return Je||(Je===!1?!1:an)},Ai=function(an){var Je=getActualTarget(an);if(!(je(Je)>
5=0)){if(valueOrHandler(Le.clickOutsideDeactivates,an)){Ve.deactivate({returnFocus:Le.returnFocusOnDeactivate&&!isFocusable(Je,Le.tabbableOptions)});return}valueOrHandler(Le.allowOutsideClick,an)||an.preventDefault()}},oi=function(an){var Je=getActualTarget(an),fi=je(Je)>=0;fi||Je instanceof Document?fi&&(Fe.mostRecentlyFocusedNode=Je):(an.stopImmediatePropagation(),ci(Fe.mostRecentlyFocusedNode||$e()))},ii=function(an){var Je=getActualTarget(an);qe();var fi=null;if(Fe.tabbableGroups.length>0){var Gi=je(Je),fn=Gi>=0?Fe.containerGroups[Gi]:void 0;if(Gi<0)an.shiftKey?fi=Fe.tabbableGroups[Fe.tabbableGroups.length-1].lastTabbableNode:fi=Fe.tabbableGroups[0].firstTabbableNode;else if(an.shiftKey){var cn=findIndex(Fe.tabbableGroups,function(er){var Hn=er.firstTabbableNode;return Je===Hn});if(cn<0&&(fn.container===Je||isFocusable(Je,Le.tabbableOptions)&&!isTabbable(Je,Le.tabbableOptions)&&!fn.nextTabbableNode(Je,!1))&&(cn=Gi),cn>=0){var Tn=cn===0?Fe.tabbableGroups.length-1:cn-1,Sn=Fe.tabbableGroups[Tn];fi=Sn.lastTabbableNode}}else{var Cn=findIndex(Fe.tabbableGroups,function(er){var Hn=er.lastTabbableNode;return Je===Hn});if(Cn<0&&(fn.container===Je||isFocusable(Je,Le.tabbableOptions)&&!isTabbable(Je,Le.tabbableOptions)&&!fn.nextTabbableNode(Je))&&(Cn=Gi),Cn>=0){var tr=Cn===Fe.tabbableGroups.length-1?0:Cn+1,xr=Fe.tabbableGroups[tr];fi=xr.firstTabbableNode}}}else fi=Ke("fallbackFocus");fi&&(an.preventDefault(),ci(fi))},hi=function(an){if(isEscapeEvent(an)&&valueOrHandler(Le.escapeDeactivates,an)!==!1){an.preventDefault(),Ve.deactivate();return}if(isTabEvent(an)){ii(an);return}},Ei=function(an){var Je=getActualTarget(an);je(Je)>=0||valueOrHandler(Le.clickOutsideDeactivates,an)||valueOrHandler(Le.allowOutsideClick,an)||(an.preventDefault(),an.stopImmediatePropagation())},Li=function(){if(Fe.active)return activeFocusTraps.activateTrap(Ve),Fe.delayInitialFocusTimer=Le.delayInitialFocus?delay(function(){ci($e())}):ci($e()),ke.addEventListener("focusin",oi,!0),ke.addEventListener("mousedown",Ai,{capture:!0,passive:!1}),ke.addEventListener("touchstart",Ai,{capture:!0,passive:!1}),ke.addEventListener("click",Ei,{capture:!0,passive:!1}),ke.addEventListener("keydown",hi,{capture:!0,passive:!1}),Ve},Di=function(){if(Fe.active)return ke.removeEventListener("focusin",oi,!0),ke.removeEventListener("mousedown",Ai,!0),ke.removeEventListener("touchstart",Ai,!0),ke.removeEventListener("click",Ei,!0),ke.removeEventListener("keydown",hi,!0),Ve};return Ve={get active(){return Fe.active},get paused(){return Fe.paused},activate:function(an){if(Fe.active)return this;var Je=Ie(an,"onActivate"),fi=Ie(an,"onPostActivate"),Gi=Ie(an,"checkCanFocusTrap");Gi||qe(),Fe.active=!0,Fe.paused=!1,Fe.nodeFocusedBeforeActivation=ke.activeElement,Je&&Je();var fn=function(){Gi&&qe(),Li(),fi&&fi()};return Gi?(Gi(Fe.containers.concat()).then(fn,fn),this):(fn(),this)},deactivate:function(an){if(!Fe.active)return this;var Je=_objectSpread2({onDeactivate:Le.onDeactivate,onPostDeactivate:Le.onPostDeactivate,checkCanReturnFocus:Le.checkCanReturnFocus},an);clearTimeout(Fe.delayInitialFocusTimer),Fe.delayInitialFocusTimer=void 0,Di(),Fe.active=!1,Fe.paused=!1,activeFocusTraps.deactivateTrap(Ve);var fi=Ie(Je,"onDeactivate"),Gi=Ie(Je,"onPostDeactivate"),fn=Ie(Je,"checkCanReturnFocus"),cn=Ie(Je,"returnFocus","returnFocusOnDeactivate");fi&&fi();var Tn=function(){delay(function(){cn&&ci(gi(Fe.nodeFocusedBeforeActivation)),Gi&&Gi()})};return cn&&fn?(fn(gi(Fe.nodeFocusedBeforeActivation)).then(Tn,Tn),this):(Tn(),this)},pause:function(){return Fe.paused||!Fe.active?this:(Fe.paused=!0,Di(),this)},unpause:function(){return!Fe.paused||!Fe.active?this:(Fe.paused=!1,qe(),Li(),this)},updateContainerElements:function(an){var Je=[].concat(an).filter(Boolean);return Fe.containers=Je.map(function(fi){return typeof fi=="string"?ke.querySelector(fi):fi}),Fe.active&&qe(),this}},Ve.updateContainerElements(_e),Ve};function src_default(De){let _e,Ae;window.addEventListener("focusin",()=>{_e=Ae,Ae=document.activeElement}),De.magic("focus",ke=>{let Le=ke;return{__noscroll:!1,__wrapAround:!1,within(Fe){return Le=Fe,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(Fe){return isFocusable(Fe)},previouslyFocused(){return _e},lastFocused(){return _e},focused(){return Ae},focusables(){return Array.isArray(Le)?Le:focusable(Le,{displayCheck:"none"})},all(){return this.focusables()},isFirst(Fe){let Ve=this.all();return Ve[0]&&Ve[0].isSameNode(Fe)},isLast(Fe){let Ve=this.all();return Ve.length&&Ve.slice(-1)[0].isSameNode(Fe)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let Fe=this.all(),Ve=document.activeElement;if(Fe.indexOf(Ve)!==-1)return this.__wrapAround&&Fe.indexOf(Ve)===Fe.length-1?Fe[0]:Fe[Fe.indexOf(Ve)+1]},getPrevious(){let Fe=this.all(),Ve=document.activeElement;if(Fe.indexOf(Ve)!==-1)return this.__wrapAround&&Fe.indexOf(Ve)===0?Fe.slice(-1)[0]:Fe[Fe.indexOf(Ve)-1]},first(){this.focus(this.getFirst())},last(){this.focus(this.getLast())},next(){this.focus(this.getNext())},previous(){this.focus(this.getPrevious())},prev(){return this.previous()},focus(Fe){Fe&&setTimeout(()=>{Fe.hasAttribute("tabindex")||Fe.setAttribute("tabindex","0"),Fe.focus({preventScroll:this.__noscroll})})}}}),De.directive("trap",De.skipDuringClone((ke,{expression:Le,modifiers:Fe},{effect:Ve,evaluateLater:Ie,cleanup:je})=>{let Ke=Ie(Le),$e=!1,qe={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>ke},ci=()=>{};if(Fe.includes("noautofocus"))qe.initialFocus=!1;else{let ii=ke.querySelector("[autofocus]");ii&&(qe.initialFocus=ii)}Fe.includes("inert")&&(qe.onPostActivate=()=>{De.nextTick(()=>{ci=setInert(ke)})});let gi=createFocusTrap(ke,qe),Ai=()=>{};const oi=()=>{ci(),ci=()=>{},Ai(),Ai=()=>{}
5,gi.deactivate({returnFocus:!Fe.includes("noreturn")})};Ve(()=>Ke(ii=>{$e!==ii&&(ii&&!$e&&(Fe.includes("noscroll")&&(Ai=disableScrolling()),setTimeout(()=>{gi.activate()},15)),!ii&&$e&&oi(),$e=!!ii)})),je(oi)},(ke,{expression:Le,modifiers:Fe},{evaluate:Ve})=>{Fe.includes("inert")&&Ve(Le)&&setInert(ke)}))}function setInert(De){let _e=[];return crawlSiblingsUp(De,Ae=>{let ke=Ae.hasAttribute("aria-hidden");Ae.setAttribute("aria-hidden","true"),_e.push(()=>ke||Ae.removeAttribute("aria-hidden"))}),()=>{for(;_e.length;)_e.pop()()}}function crawlSiblingsUp(De,_e){De.isSameNode(document.body)||!De.parentNode||Array.from(De.parentNode.children).forEach(Ae=>{Ae.isSameNode(De)?crawlSiblingsUp(De.parentNode,_e):_e(Ae)})}function disableScrolling(){let De=document.documentElement.style.overflow,_e=document.documentElement.style.paddingRight,Ae=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${Ae}px`,()=>{document.documentElement.style.overflow=De,document.documentElement.style.paddingRight=_e}}var module_default=src_default;/*! Bundled license information:
6
7tabbable/dist/index.esm.js:
8  (*!
9  * tabbable 5.3.3
10  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
11  *)
12
13focus-trap/dist/focus-trap.esm.js:
14  (*!
15  * focus-trap 6.9.4
16  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
17  *)
18*/var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(De){return De&&De.__esModule&&Object.prototype.hasOwnProperty.call(De,"default")?De.default:De}var lodash={exports:{}};/**
19 * @license
20 * Lodash <https://lodash.com/>
21 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
22 * Released under MIT license <https://lodash.com/license>
23 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
24 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
25 */lodash.exports;(function(De,_e){(function(){var Ae,ke="4.17.21",Le=200,Fe="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",Ve="Expected a function",Ie="Invalid `variable` option passed into `_.template`",je="__lodash_hash_undefined__",Ke=500,$e="__lodash_placeholder__",qe=1,ci=2,gi=4,Ai=1,oi=2,ii=1,hi=2,Ei=4,Li=8,Di=16,zi=32,an=64,Je=128,fi=256,Gi=512,fn=30,cn="...",Tn=800,Sn=16,Cn=1,tr=2,xr=3,er=1/0,Hn=9007199254740991,Er=17976931348623157e292,os=0/0,wi=4294967295,Zi=wi-1,Qi=wi>>>1,Hi=[["ary",Je],["bind",ii],["bindKey",hi],["curry",Li],["curryRight",Di],["flip",Gi],["partial",zi],["partialRight",an],["rearg",fi]],vn="[object Arguments]",zn="[object Array]",ji="[object AsyncFunction]",hr="[object Boolean]",Ri="[object Date]",xs="[object DOMException]",Ue="[object Error]",bi="[object Function]",Ii="[object GeneratorFunction]",Ji="[object Map]",Mn="[object Number]",En="[object Null]",Fn="[object Object]",Cr="[object Promise]",_r="[object Proxy]",Or="[object RegExp]",_s="[object Set]",so="[object String]",Ls="[object Symbol]",go="[object Undefined]",As="[object WeakMap]",no="[object WeakSet]",Ws="[object ArrayBuffer]",ro="[object DataView]",qs="[object Float32Array]",hs="[object Float64Array]",Nr="[object Int8Array]",ea="[object Int16Array]",$a="[object Int32Array]",ao="[object Uint8Array]",Do="[object Uint8ClampedArray]",el="[object Uint16Array]",Fa="[object Uint32Array]",cl=/\b__p \+= '';/g,Zn=/\b(__p \+=) '' \+/g,bn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xn=/&(?:amp|lt|gt|quot|#39);/g,Yn=/[&<>"']/g,or=RegExp(xn.source),yr=RegExp(Yn.source),Rr=/<%-([\s\S]+?)%>/g,kr=/<%([\s\S]+?)%>/g,br=/<%=([\s\S]+?)%>/g,jr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bs=/^\w*$/,Fs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wr=/[\\^$.*+?()[\]{}|]/g,gs=RegExp(wr.source),Es=/^\s+/,Hs=/\s/,xo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wo=/\{\n\/\* \[wrapped with (.+)\] \*/,ga=/,? & /,_a=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tl=/[()=,{}\[\]\/\s]/,Lo=/\\(\\)?/g,za=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ul=/\w*$/,Ba=/^[-+]0x[0-9a-f]+$/i,dl=/^0b[01]+$/i,lu=/^\[object .+?Constructor\]$/,dp=/^0o[0-7]+$/i,ca=/^(?:0|[1-9]\d*)$/,hp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,188 bytes, line 25
257f]/g,ld=/($^)/,Id=/['\n\r\u2028\u2029\\]/g,xu="\\ud800-\\udfff",wu="\\u0300-\\u036f",Ru="\\ufe20-\\ufe2f",kc="\\u20d0-\\u20ff",Rd=wu+Ru+kc,Zu="\\u2700-\\u27bf",Gc="a-z\\xdf-\\xf6\\xf8-\\xff",rh="\\xac\\xb1\\xd7\\xf7",rs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ou="\\u2000-\\u206f",hl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",il="A-Z\\xc0-\\xd6\\xd8-\\xde",_c="\\ufe0e\\ufe0f",sc=rh+rs+Ou+hl,jl="['’]",sh="["+xu+"]",oa="["+sc+"]",js="["+Rd+"]",Zo="\\d+",$o="["+Zu+"]",bc="["+Gc+"]",cu="[^"+xu+sc+Zo+Zu+Gc+il+"]",Po="\\ud83c[\\udffb-\\udfff]",ja="(?:"+js+"|"+Po+")",Od="[^"+xu+"]",Pc="(?:\\ud83c[\\udde6-\\uddff]){2}",xc="[\\ud800-\\udbff][\\udc00-\\udfff]",Ma="["+il+"]",uu="\\u200d",Aa="(?:"+bc+"|"+cu+")",jc="(?:"+Ma+"|"+cu+")",Ph="(?:"+jl+"(?:d|ll|m|re|s|t|ve))?",Yu="(?:"+jl+"(?:D|LL|M|RE|S|T|VE))?",pp=ja+"?",Ld="["+_c+"]?",Ih="(?:"+uu+"(?:"+[Od,Pc,xc].join("|")+")"+Ld+pp+")*",cd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",oh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",oc=Ld+pp+Ih,aa="(?:"+[$o,Pc,xc].join("|")+")"+oc,fp="(?:"+[Od+js+"?",js,Pc,xc,sh].join("|")+")",Rh=RegExp(jl,"g"),Wc=RegExp(js,"g"),qc=RegExp(Po+"(?="+Po+")|"+fp+oc,"g"),Wp=RegExp([Ma+"?"+bc+"+"+Ph+"(?="+[oa,Ma,"$"].join("|")+")",jc+"+"+Yu+"(?="+[oa,Ma+Aa,"$"].join("|")+")",Ma+"?"+Aa+"+"+Ph,Ma+"+"+Yu,oh,cd,Zo,aa].join("|"),"g"),Oh=RegExp("["+uu+xu+Rd+_c+"]"),bl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lh=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],mp=-1,ka={};ka[qs]=ka[hs]=ka[Nr]=ka[ea]=ka[$a]=ka[ao]=ka[Do]=ka[el]=ka[Fa]=!0,ka[vn]=ka[zn]=ka[Ws]=ka[hr]=ka[ro]=ka[Ri]=ka[Ue]=ka[bi]=ka[Ji]=ka[Mn]=ka[Fn]=ka[Or]=ka[_s]=ka[so]=ka[As]=!1;var jo={};jo[vn]=jo[zn]=jo[Ws]=jo[ro]=jo[hr]=jo[Ri]=jo[qs]=jo[hs]=jo[Nr]=jo[ea]=jo[$a]=jo[Ji]=jo[Mn]=jo[Fn]=jo[Or]=jo[_s]=jo[so]=jo[Ls]=jo[ao]=jo[Do]=jo[el]=jo[Fa]=!0,jo[Ue]=jo[bi]=jo[As]=!1;var qp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},$h={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xl={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Su={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fh=parseFloat,Sf=parseInt,du=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ah=typeof self=="object"&&self&&self.Object===Object&&self,ya=du||ah||Function("return this")(),Lu=_e&&!_e.nodeType&&_e,ac=Lu&&!0&&De&&!De.nodeType&&De,wc=ac&&ac.exports===Lu,$d=wc&&du.process,zl=function(){try{var Un=ac&&ac.require&&ac.require("util").t
vendor: 13,810 bytes, line 25
25ypes;return Un||$d&&$d.binding&&$d.binding("util")}catch{}}(),pi=zl&&zl.isArrayBuffer,Ci=zl&&zl.isDate,Ui=zl&&zl.isMap,Ki=zl&&zl.isRegExp,mn=zl&&zl.isSet,yn=zl&&zl.isTypedArray;function An(Un,Ar,Tr){switch(Tr.length){case 0:return Un.call(Ar);case 1:return Un.call(Ar,Tr[0]);case 2:return Un.call(Ar,Tr[0],Tr[1]);case 3:return Un.call(Ar,Tr[0],Tr[1],Tr[2])}return Un.apply(Ar,Tr)}function ur(Un,Ar,Tr,fs){for(var ws=-1,yo=Un==null?0:Un.length;++ws<yo;){var vo=Un[ws];Ar(fs,vo,Tr(vo),Un)}return fs}function Kn(Un,Ar){for(var Tr=-1,fs=Un==null?0:Un.length;++Tr<fs&&Ar(Un[Tr],Tr,Un)!==!1;);return Un}function Br(Un,Ar){for(var Tr=Un==null?0:Un.length;Tr--&&Ar(Un[Tr],Tr,Un)!==!1;);return Un}function ls(Un,Ar){for(var Tr=-1,fs=Un==null?0:Un.length;++Tr<fs;)if(!Ar(Un[Tr],Tr,Un))return!1;return!0}function ps(Un,Ar){for(var Tr=-1,fs=Un==null?0:Un.length,ws=0,yo=[];++Tr<fs;){var vo=Un[Tr];Ar(vo,Tr,Un)&&(yo[ws++]=vo)}return yo}function Kr(Un,Ar){var Tr=Un==null?0:Un.length;return!!Tr&&Na(Un,Ar,0)>-1}function Ns(Un,Ar,Tr){for(var fs=-1,ws=Un==null?0:Un.length;++fs<ws;)if(Tr(Ar,Un[fs]))return!0;return!1}function co(Un,Ar){for(var Tr=-1,fs=Un==null?0:Un.length,ws=Array(fs);++Tr<fs;)ws[Tr]=Ar(Un[Tr],Tr,Un);return ws}function Fo(Un,Ar){for(var Tr=-1,fs=Ar.length,ws=Un.length;++Tr<fs;)Un[ws+Tr]=Ar[Tr];return Un}function Vo(Un,Ar,Tr,fs){var ws=-1,yo=Un==null?0:Un.length;for(fs&&yo&&(Tr=Un[++ws]);++ws<yo;)Tr=Ar(Tr,Un[ws],ws,Un);return Tr}function Dl(Un,Ar,Tr,fs){var ws=Un==null?0:Un.length;for(fs&&ws&&(Tr=Un[--ws]);ws--;)Tr=Ar(Tr,Un[ws],ws,Un);return Tr}function Wa(Un,Ar){for(var Tr=-1,fs=Un==null?0:Un.length;++Tr<fs;)if(Ar(Un[Tr],Tr,Un))return!0;return!1}var Sc=qo("length");function qa(Un){return Un.split("")}function Wo(Un){return Un.match(_a)||[]}function Xc(Un,Ar,Tr){var fs;return Tr(Un,function(ws,yo,vo){if(Ar(ws,yo,vo))return fs=yo,!1}),fs}function zo(Un,Ar,Tr,fs){for(var ws=Un.length,yo=Tr+(fs?1:-1);fs?yo--:++yo<ws;)if(Ar(Un[yo],yo,Un))return yo;return-1}function Na(Un,Ar,Tr){return Ar===Ar?sm(Un,Ar,Tr):zo(Un,ud,Tr)}function hu(Un,Ar,Tr,fs){for(var ws=Tr-1,yo=Un.length;++ws<yo;)if(fs(Un[ws],Ar))return ws;return-1}function ud(Un){return Un!==Un}function Ic(Un,Ar){var Tr=Un==null?0:Un.length;return Tr?Ml(Un,Ar)/Tr:os}function qo(Un){return function(Ar){return Ar==null?Ae:Ar[Un]}}function lc(Un){return function(Ar){return Un==null?Ae:Un[Ar]}}function $u(Un,Ar,Tr,fs,ws){return ws(Un,function(yo,vo,uo){Tr=fs?(fs=!1,yo):Ar(Tr,yo,vo,uo)}),Tr}function Zc(Un,Ar){var Tr=Un.length;for(Un.sort(Ar);Tr--;)Un[Tr]=Un[Tr].value;return Un}function Ml(Un,Ar){for(var Tr,fs=-1,ws=Un.length;++fs<ws;){var yo=Ar(Un[fs]);yo!==Ae&&(Tr=Tr===Ae?yo:Tr+yo)}return Tr}function Tu(Un,Ar){for(var Tr=-1,fs=Array(Un);++Tr<Un;)fs[Tr]=Ar(Tr);return fs}function Kl(Un,Ar){return co(Ar,function(Tr){return[Tr,Un[Tr]]})}function Tc(Un){return Un&&Un.slice(0,Jc(Un)+1).replace(Es,"")}function pu(Un){return function(Ar){return Un(Ar)}}function Xp(Un,Ar){return co(Ar,function(Tr){return Un[Tr]})}function lh(Un,Ar){return Un.has(Ar)}function xa(Un,Ar){for(var Tr=-1,fs=Un.length;++Tr<fs&&Na(Ar,Un[Tr],0)>-1;);return Tr}function Fu(Un,Ar){for(var Tr=Un.length;Tr--&&Na(Ar,Un[Tr],0)>-1;);return Tr}function Rc(Un,Ar){for(var Tr=Un.length,fs=0;Tr--;)Un[Tr]===Ar&&++fs;return fs}var Fd=lc(qp),Tf=lc($h);function Ef(Un){return"\\"+Su[Un]}function zd(Un,Ar){return Un==null?Ae:Un[Ar]}function Bl(Un){return Oh.test(Un)}function Bd(Un){return bl.test(Un)}function Yc(Un){for(var Ar,Tr=[];!(Ar=Un.next()).done;)Tr.push(Ar.value);return Tr}function zh(Un){var Ar=-1,Tr=Array(Un.size);return Un.forEach(function(fs,ws){Tr[++Ar]=[ws,fs]}),Tr}function Ec(Un,Ar){return function(Tr){return Un(Ar(Tr))}}function Kc(Un,Ar){for(var Tr=-1,fs=Un.length,ws=0,yo=[];++Tr<fs;){var vo=Un[Tr];(vo===Ar||vo===$e)&&(Un[Tr]=$e,yo[ws++]=Tr)}return yo}function dd(Un){var Ar=-1,Tr=Array(Un.size);return Un.forEach(function(fs){Tr[++Ar]=fs}),Tr}function ch(Un){var Ar=-1,Tr=Array(Un.size);return Un.forEach(function(fs){Tr[++Ar]=[fs,fs]}),Tr}function sm(Un,Ar,Tr){for(var fs=Tr-1,ws=Un.length;++fs<ws;)if(Un[fs]===Ar)return fs;return-1}function Nd(Un,Ar,Tr){for(var fs=Tr+1;fs--;)if(Un[fs]===Ar)return fs;return fs}function Ku(Un){return Bl(Un)?gp(Un):Sc(Un)}function Jl(Un){return Bl(Un)?nr(Un):qa(Un)}function Jc(Un){for(var Ar=Un.length;Ar--&&Hs.test(Un.charAt(Ar)););return Ar}var Vd=lc(xl);function gp(Un){for(var Ar=qc.lastIndex=0;qc.test(Un);)++Ar;return Ar}function nr(Un){return Un.match(qc)||[]}function Ir(Un){return Un.match(Wp)||[]}var Yr=function Un(Ar){Ar=Ar==null?ya:is.defaults(ya.Object(),Ar,is.pick(ya,Lh));var Tr=Ar.Array,fs=Ar.Date,ws=Ar.Error,yo=Ar.Function,vo=Ar.Math,uo=Ar.Object,ua=Ar.RegExp,To=Ar.String,Ho=Ar.TypeError,Oa=Tr.prototype,Xa=yo.prototype,Nl=uo.prototype,Oc=Ar["__core-js_shared__"],Ql=Xa.toString,Bo=Nl.hasOwnProperty,Ju=0,yp=function(){var Xe=/[^.]+$/.exec(Oc&&Oc.keys&&Oc.keys.IE_PROTO||"");return Xe?"Symbol(src)_1."+Xe:""}(),da=Nl.toString,Bh=Ql.call(uo),vp=ya._,Cf=ua("^"+Ql.call(Bo).replace(wr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nh=wc?Ar.Buffer:Ae,la=Ar.Symbol,hd=Ar.Uint8Array,jm=Nh?Nh.allocUnsafe:Ae,_p=Ec(uo.getPrototypeOf,uo),bp=uo.create,om=Nl.propertyIsEnumerable,Vh=Oa.splice,Hd=la?la.isConcatSpreadable:Ae,pd=la?la.iterator:Ae,Qu=la?la.toStringTag:Ae,Ud=function(){try{var Xe=Op(uo,"defineProperty");return Xe({},"",{}),Xe}catch{}}(),xp=Ar.clearTimeout!==ya.clearTimeout&&Ar.clearTimeout,Hh=fs&&fs.now!==ya.Date.now&&fs.now,Af=Ar.setTimeout!==ya.setTimeout&&Ar.setTimeout,ed=vo.ceil,wp=vo.floor,Uh=uo.getOwnPropertySymbols,Ys=Nh?Nh.isBuffer:Ae,kl=Ar.isFinite,Wm=Oa.join,Zp=Ec(uo.keys,uo),Pl=vo.max,Ta=vo.min,Df=fs.now,am=Ar.parseInt,lm=vo.random,Gh=Oa.reverse,zu=Op(Ar,"DataView"),Gd=Op(Ar,"Map"),fd=Op(Ar,"Promise"),uh=Op(Ar,"Set"),jd=Op(Ar,"WeakMap"),Yp=Op(uo,"create"),Wd=jd&&new jd,dh={},Sp=ki(zu),Kp=ki(Gd),md=ki(fd),Tp=ki(uh),jh=ki(jd),Ep=la?la.prototype:Ae,Cp=Ep?Ep.valueOf:Ae,Mf=Ep?Ep.toString:Ae;function Rn(Xe){if(fc(Xe)&&!ma(Xe)&&!(Xe instanceof ta)){if(Xe instanceof Lc)return Xe;if(Bo.call(Xe,"__wrapped__"))return Vi(Xe)}return new Lc(Xe)}var Bu=function(){function Xe(){}return function(ri){if(!nc(ri))return{};if(bp)return bp(ri);Xe.prototype=ri;var Ti=new Xe;return Xe.prototype=Ae,Ti}}();function Ap(){}function Lc(Xe,ri){this.__wrapped__=Xe,this.__actions__=[],this.__chain__=!!ri,this.__index__=0,this.__values__=Ae}Rn.templateSettings={escape:Rr,evaluate:kr,interpolate:br,variable:"",imports:{_:Rn}},Rn.prototype=Ap.prototype,Rn.prototype.constructor=Rn,Lc.prototype=Bu(Ap.prototype),Lc.prototype.constructor=Lc;function ta(Xe){this.__wrapped__=Xe,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=wi,this.__views__=[]}function qm(){var Xe=new ta(this.__wrapped__);return Xe.__actions__=ec(this.__actions__),Xe.__dir__=this.__dir__,Xe.__filtered__=this.__filtered__,Xe.__iteratees__=ec(this.__iteratees__),Xe.__takeCount__=this.__takeCount__,Xe.__views__=ec(this.__views__),Xe}function Jp(){if(this.__filtered__){var Xe=new ta(this);Xe.__dir__=-1,Xe.__filtered__=!0}else Xe=this.clone(),Xe.__dir__*=-1;return Xe}function kf(){var Xe=this.__wrapped__.value(),ri=this.__dir__,Ti=ma(Xe),Yi=ri<0,wn=Ti?Xe.length:0,Nn=oy(0,wn,this.__views__),cr=Nn.start,Dr=Nn.end,Hr=Dr-cr,Rs=Yi?Dr:cr-1,Os=this.__iteratees__,Vs=Os.length,mo=0,Ao=Ta(Hr,this.__takeCount__);if(!Ti||!Yi&&wn==Hr&&Ao==Hr)return mh(Xe,this.__actions__);var Uo=[];e:for(;Hr--&&mo<Ao;){Rs+=ri;for(var Sa=-1,Go=Xe[Rs];++Sa<Vs;){var Ra=Os[Sa],Ua=Ra.iteratee,eh=Ra.type,Mc=Ua(Go);if(eh==tr)Go=Mc;else if(!Mc){if(eh==Cn)continue e;break e}}Uo[mo++]=Go}return Uo}ta.prototype=Bu(Ap.prototype),ta.prototype.constructor=ta;function hh(Xe){var ri=-1,Ti=Xe==null?0:Xe.length;for(this.clear();++ri<Ti;){var Yi=Xe[ri];this.set(Yi[0],Yi[1])}}function $c(){this.__data__=Yp?Yp(null):{},this.size=0}function Ng(Xe){var ri=this.has(Xe)&&delete this.__data__[Xe];return this.size-=ri?1:0,ri}function Pf(Xe){var ri=this.__data__;if(Yp){var Ti=ri[Xe];return Ti===je?Ae:Ti}return Bo.call(ri,Xe)?ri[Xe]:Ae}function Vg(Xe){var ri=this.__data__;return Yp?ri[Xe]!==Ae:Bo.call(ri,Xe)}function Hg(Xe,ri){var Ti=this.__data__;return this.size+=this.has(Xe)?0:1,Ti[Xe]=Yp&&ri===Ae?je:ri,this}hh.prototype.clear=$c,hh.prototype.delete=Ng,hh.prototype.get=Pf,hh.prototype.has=Vg,hh.prototype.set=Hg;function Vl(Xe){var ri=-1,Ti=Xe==null?0:Xe.length;for(this.clear();++ri<Ti;){var Yi=Xe[ri];this.set(Yi[0],Yi[1])}}function qd(){this.__data__=[],this.size=0}function Dp(Xe){var ri=this.__data__,Ti=Ge(ri,Xe);if(Ti<0)return!1;var Yi=ri.length-1;return Ti==Yi?ri.pop():Vh.call(ri,Ti,1),--this.size,!0}function Nu(Xe){var ri=this.__data__,Ti=Ge(ri,Xe);return Ti<0?Ae:ri[Ti][1]}function fu(Xe){return Ge(this.__data__,Xe)>-1}function Xd(Xe,ri){var Ti=this.__data__,Yi=Ge(Ti,Xe);return Yi<0?(++this.size,Ti.push([Xe,ri])):Ti[Yi][1]=ri,this}Vl.prototype.clear=qd,Vl.prototype.delete=Dp,Vl.prototype.get=Nu,Vl.prototype.has=fu,Vl.prototype.set=Xd;function mu(Xe){var ri=-1,Ti=Xe==null?0:Xe.length;for(this.clear();++ri<Ti;){var Yi=Xe[ri];this.set(Yi[0],Yi[1])}}function to(){this.size=0,this.__data__={hash:new hh,map:new(Gd||Vl),string:new hh}}function Qp(Xe){var ri=Bf(this,Xe).delete(Xe);return this.size-=ri?1:0,ri}function cm(Xe){return Bf(this,Xe).get(Xe)}function Qc(Xe){return Bf(this,Xe).has(Xe)}function ph(Xe,ri){var Ti=Bf(this,Xe),Yi=Ti.size;return Ti.set(Xe,ri),this.size+=Ti.size==Yi?0:1,this}mu.prototype.clear=to,mu.prototype.delete=Qp,mu.prototype.get=cm,mu.prototype.has=Qc,mu.prototype.set=ph;function Gs(Xe){var ri=-1,Ti=Xe==null?0:Xe.length;for(this.__data__=new mu;++ri<Ti;)this.add(Xe[ri])}function um(Xe){return this.__data__.set(Xe,je),this}function Ug(Xe){return this.__data__.has(Xe)}Gs.prototype.add=Gs.prototype.push=um,Gs.prototype.has=Ug;function Eu(Xe){var ri=this.__data__=new Vl(Xe);this.size=ri.size}function If(){this.__data__=new Vl,this.size=0}function Gg(Xe){var ri=this.__data__,Ti=ri.delete(Xe);return this.size=ri.size,Ti}function dm(Xe){return this.__data__.get(Xe)}function ef(Xe){return this.__data__.has(Xe)}function Vu(Xe,ri){var Ti=this.__data__;if(Ti instanceof Vl){var Yi=Ti.__data__;if(!Gd||Yi.length<Le-1)return Yi.push([Xe,ri]),this.size=++Ti.size,this;Ti=this.__data__=new mu(Yi)}return Ti.set(Xe,ri),this.size=Ti.size,this}Eu.prototype.clear=If,Eu.prototype.delete=Gg,Eu.prototype.get=dm,Eu.prototype.has=ef,Eu.prototype.set=Vu;function td(Xe,ri){var Ti=ma(Xe),Yi=!Ti&&_f(Xe),wn=!Ti&&!Yi&&jf(Xe),Nn=!Ti&&!Yi&&!wn&&bf(Xe),cr=Ti||Yi||wn||Nn,Dr=cr?Tu(Xe.length,To):[],Hr=Dr.length;for(var Rs in Xe)(ri||Bo.call(Xe,Rs))&&!(cr&&(Rs=="length"||wn&&(Rs=="offset"||Rs=="parent")||Nn&&(Rs=="buffer"||Rs=="byteLength"||Rs=="byteOffset")||Ac(Rs,Hr)))&&Dr.push(Rs);return Dr}function Rf(Xe){var ri=Xe.length;return ri?Xe[yd(0,ri-1)]:Ae}function Wh(Xe,ri){return di(ec(Xe),Fi(ri,0,Xe.length))}function qh(Xe){return di(ec(Xe))}function Ze(Xe,ri,Ti){(Ti!==Ae&&!zp(Xe[ri],Ti)||Ti===Ae&&!(ri in Xe))&&Si(Xe,ri,Ti)}function Ne(Xe,ri,Ti){var Yi=Xe[ri];(!(Bo.call(Xe,ri)&&zp(Yi,Ti))||Ti===Ae&&!(ri in Xe))&&Si(Xe,ri,Ti)}function Ge(Xe,ri){for(var Ti=Xe.length;Ti--;)if(zp(Xe[Ti][0],ri))return Ti;return-1}function Qe(Xe,ri,Ti,Yi){return On(Xe,function(wn,Nn,cr){ri(Yi,wn,Ti(wn),cr)}),Yi}function ai(Xe,ri){return Xe&&nl(ri,bu(ri),Xe)}function ui(Xe,ri){return Xe&&nl(ri,Mu(ri),Xe)}function Si(Xe,ri,Ti){ri=="__proto__"&&Ud?Ud(Xe,ri,{configurable:!0,enumerable:!0,value:Ti,writable:!0}):Xe[ri]=Ti}function Mi(Xe,ri){for(var Ti=-1,Yi=ri.length,wn=Tr(Yi),Nn=Xe==null;++Ti<Yi;)wn[Ti]=Nn?Ae:jv(Xe,ri[Ti]);return wn}function Fi(Xe,ri,Ti){return Xe===Xe&&(Ti!==Ae&&(Xe=Xe<=Ti?Xe:Ti),ri!==Ae&&(Xe=Xe>=ri?Xe:ri)),Xe}function qi(Xe,ri,Ti,Yi,wn,Nn){var cr,Dr=ri&qe,Hr=ri&ci,Rs=ri&gi;if(Ti&&(cr=wn?Ti(Xe,Yi,wn,Nn):Ti(Xe)),cr!==Ae)return cr;if(!nc(Xe))return Xe;var Os=ma(Xe);if(Os){if(cr=ay(Xe),!Dr)return ec(Xe,cr)}else{var Vs=uc(Xe),mo=Vs==bi||Vs==Ii;if(jf(Xe))return Of(Xe,Dr);if(Vs==Fn||Vs==vn||mo&&!wn){if(cr=Hr||mo?{}:Wu(Xe),!Dr)return Hr?fm(Xe,ui(cr,Xe)):qg(Xe,ai(cr,Xe))}else{if(!jo[Vs])return wn?Xe:{};cr=O1(Xe,Vs,Dr)}}Nn||(Nn=new Eu);var Ao=Nn.get(Xe);if(Ao)return Ao;Nn.set(Xe,cr),ng(Xe)?Xe.forEach(function(Go){cr.add(qi(Go,ri,Ti,Go,Xe,Nn))}):PS(Xe)&&Xe.forEach(function(Go,Ra){cr.set(Ra,qi(Go,ri,Ti,Ra,Xe,Nn))});var Uo=Rs?Hr?Rp:Ym:Hr?Mu:bu,Sa=Os?Ae:Uo(Xe);return Kn(Sa||Xe,function(Go,Ra){Sa&&(Ra=Go,Go=Xe[Ra]),Ne(cr,Ra,qi(Go,ri,Ti,Ra,Xe,Nn))}),cr}function Xi(Xe){var ri=bu(Xe);return function(Ti){return hn(Ti,Xe,ri)}}function hn(Xe,ri,Ti){var Yi=Ti.length;if(Xe==null)return!Yi;for(Xe=uo(Xe);Yi--;){var wn=Ti[Yi],Nn=ri[wn],cr=Xe[wn];if(cr===Ae&&!(wn in Xe)||!Nn(cr))return!1}return!0}function Dn(Xe,ri,Ti){if(typeof Xe!="function")throw new Ho(Ve);return Yh(function(){Xe.apply(Ae,Ti)},ri)}function In(Xe,ri,Ti,Yi){var wn=-1,Nn=Kr,cr=!0,Dr=Xe.length,Hr=[],Rs=ri.length;if(!Dr)return Hr;Ti&&(ri=co(ri,pu(Ti))),Yi?(Nn=Ns,cr=!1):ri.length>=Le&&(Nn=lh,cr=!1,ri=new Gs(ri));e:for(;++wn<Dr;){var Os=Xe[wn],Vs=Ti==null?Os:Ti(Os);if(Os=Yi||Os!==0?Os:0,cr&&Vs===Vs){for(var mo=Rs;mo--;)if(ri[mo]===Vs)continue e;Hr.push(Os)}else Nn(ri,Vs,Yi)||Hr.push(Os)}return Hr}var On=bd(dr),Bn=bd($r,!0);function Vn(Xe,ri){var Ti=!0;return On(Xe,function(Yi,wn,Nn){return Ti=!!ri(Yi,wn,Nn),Ti}),Ti}function pn(Xe,ri,Ti){for(var Yi=-1,wn=Xe.length;++Yi<wn;){var Nn=Xe[Yi],cr=ri(Nn);if(cr!=null&&(Dr===Ae?cr===cr&&!Th(cr):Ti(cr,Dr)))var Dr=cr,Hr=Nn}return Hr}function Pn(Xe,ri,Ti,Yi){var wn=Xe.length;for(Ti=ba(Ti),Ti<0&&(Ti=-Ti>wn?0:wn+Ti),Yi=Yi===Ae||Yi>wn?wn:ba(Yi),Yi<0&&(Yi+=wn),Yi=Ti>Yi?0:G1(Yi);Ti<Yi;)Xe[Ti++]=ri;return Xe}function Jn(Xe,ri){var Ti=[];return On(Xe,function(Yi,wn,Nn){ri(Yi,wn,Nn)&&Ti.push(Yi)}),Ti}function qn(Xe,ri,Ti,Yi,wn){var Nn=-1,cr=Xe.length;for(Ti||(Ti=ym),wn||(wn=[]);++Nn<cr;){var Dr=Xe[Nn];ri>0&&Ti(Dr)?ri>
vendor: 6,273 bytes, line 25
251?qn(Dr,ri-1,Ti,Yi,wn):Fo(wn,Dr):Yi||(wn[wn.length]=Dr)}return wn}var gr=sf(),vr=sf(!0);function dr(Xe,ri){return Xe&&gr(Xe,ri,bu)}function $r(Xe,ri){return Xe&&vr(Xe,ri,bu)}function Pr(Xe,ri){return ps(ri,function(Ti){return ep(Xe[Ti])})}function Vr(Xe,ri){ri=yu(ri,Xe);for(var Ti=0,Yi=ri.length;Xe!=null&&Ti<Yi;)Xe=Xe[_i(ri[Ti++])];return Ti&&Ti==Yi?Xe:Ae}function Ds(Xe,ri,Ti){var Yi=ri(Xe);return ma(Xe)?Yi:Fo(Yi,Ti(Xe))}function zr(Xe){return Xe==null?Xe===Ae?go:En:Qu&&Qu in uo(Xe)?sy(Xe):cy(Xe)}function cs(Xe,ri){return Xe>ri}function Xr(Xe,ri){return Xe!=null&&Bo.call(Xe,ri)}function ss(Xe,ri){return Xe!=null&&ri in uo(Xe)}function Lr(Xe,ri,Ti){return Xe>=Ta(ri,Ti)&&Xe<Pl(ri,Ti)}function ns(Xe,ri,Ti){for(var Yi=Ti?Ns:Kr,wn=Xe[0].length,Nn=Xe.length,cr=Nn,Dr=Tr(Nn),Hr=1/0,Rs=[];cr--;){var Os=Xe[cr];cr&&ri&&(Os=co(Os,pu(ri))),Hr=Ta(Os.length,Hr),Dr[cr]=!Ti&&(ri||wn>=120&&Os.length>=120)?new Gs(cr&&Os):Ae}Os=Xe[0];var Vs=-1,mo=Dr[0];e:for(;++Vs<wn&&Rs.length<Hr;){var Ao=Os[Vs],Uo=ri?ri(Ao):Ao;if(Ao=Ti||Ao!==0?Ao:0,!(mo?lh(mo,Uo):Yi(Rs,Uo,Ti))){for(cr=Nn;--cr;){var Sa=Dr[cr];if(!(Sa?lh(Sa,Uo):Yi(Xe[cr],Uo,Ti)))continue e}mo&&mo.push(Uo),Rs.push(Ao)}}return Rs}function Ss(Xe,ri,Ti,Yi){return dr(Xe,function(wn,Nn,cr){ri(Yi,Ti(wn),Nn,cr)}),Yi}function ds(Xe,ri,Ti){ri=yu(ri,Xe),Xe=La(Xe,ri);var Yi=Xe==null?Xe:Xe[_i(Eo(ri))];return Yi==null?Ae:An(Yi,Xe,Ti)}function Is(Xe){return fc(Xe)&&zr(Xe)==vn}function ho(Xe){return fc(Xe)&&zr(Xe)==Ws}function ko(Xe){return fc(Xe)&&zr(Xe)==Ri}function Js(Xe,ri,Ti,Yi,wn){return Xe===ri?!0:Xe==null||ri==null||!fc(Xe)&&!fc(ri)?Xe!==Xe&&ri!==ri:_o(Xe,ri,Ti,Yi,Js,wn)}function _o(Xe,ri,Ti,Yi,wn,Nn){var cr=ma(Xe),Dr=ma(ri),Hr=cr?zn:uc(Xe),Rs=Dr?zn:uc(ri);Hr=Hr==vn?Fn:Hr,Rs=Rs==vn?Fn:Rs;var Os=Hr==Fn,Vs=Rs==Fn,mo=Hr==Rs;if(mo&&jf(Xe)){if(!jf(ri))return!1;cr=!0,Os=!1}if(mo&&!Os)return Nn||(Nn=new Eu),cr||bf(Xe)?Sd(Xe,ri,Ti,Yi,wn,Nn):Zm(Xe,ri,Hr,Ti,Yi,wn,Nn);if(!(Ti&Ai)){var Ao=Os&&Bo.call(Xe,"__wrapped__"),Uo=Vs&&Bo.call(ri,"__wrapped__");if(Ao||Uo){var Sa=Ao?Xe.value():Xe,Go=Uo?ri.value():ri;return Nn||(Nn=new Eu),wn(Sa,Go,Ti,Yi,Nn)}}return mo?(Nn||(Nn=new Eu),uf(Xe,ri,Ti,Yi,wn,Nn)):!1}function ia(Xe){return fc(Xe)&&uc(Xe)==Ji}function No(Xe,ri,Ti,Yi){var wn=Ti.length,Nn=wn,cr=!Yi;if(Xe==null)return!Nn;for(Xe=uo(Xe);wn--;){var Dr=Ti[wn];if(cr&&Dr[2]?Dr[1]!==Xe[Dr[0]]:!(Dr[0]in Xe))return!1}for(;++wn<Nn;){Dr=Ti[wn];var Hr=Dr[0],Rs=Xe[Hr],Os=Dr[1];if(cr&&Dr[2]){if(Rs===Ae&&!(Hr in Xe))return!1}else{var Vs=new Eu;if(Yi)var mo=Yi(Rs,Os,Hr,Xe,ri,Vs);if(!(mo===Ae?Js(Os,Rs,Ai|oi,Yi,Vs):mo))return!1}}return!0}function lo(Xe){if(!nc(Xe)||Mv(Xe))return!1;var ri=ep(Xe)?Cf:lu;return ri.test(ki(Xe))}function Ea(Xe){return fc(Xe)&&zr(Xe)==Or}function Va(Xe){return fc(Xe)&&uc(Xe)==_s}function Pa(Xe){return fc(Xe)&&by(Xe.length)&&!!ka[zr(Xe)]}function ha(Xe){return typeof Xe=="function"?Xe:Xe==null?ku:typeof Xe=="object"?ma(Xe)?Ha(Xe[0],Xe[1]):rl(Xe):sT(Xe)}function Hl(Xe){if(!Au(Xe))return Zp(Xe);var ri=[];for(var Ti in uo(Xe))Bo.call(Xe,Ti)&&Ti!="constructor"&&ri.push(Ti);return ri}function Wl(Xe){if(!nc(Xe))return Jg(Xe);var ri=Au(Xe),Ti=[];for(var Yi in Xe)Yi=="constructor"&&(ri||!Bo.call(Xe,Yi))||Ti.push(Yi);return Ti}function gu(Xe,ri){return Xe<ri}function Hu(Xe,ri){var Ti=-1,Yi=Du(Xe)?Tr(Xe.length):[];return On(Xe,function(wn,Nn,cr){Yi[++Ti]=ri(wn,Nn,cr)}),Yi}function rl(Xe){var ri=Jm(Xe);return ri.length==1&&ri[0][2]?ly(ri[0][0],ri[0][1]):function(Ti){return Ti===Xe||No(Ti,Xe,ri)}}function Ha(Xe,ri){return tg(Xe)&&Lp(ri)?ly(_i(Xe),ri):function(Ti){var Yi=jv(Ti,Xe);return Yi===Ae&&Yi===ri?qu(Ti,Xe):Js(ri,Yi,Ai|oi)}}function Yo(Xe,ri,Ti,Yi,wn){Xe!==ri&&gr(ri,function(Nn,cr){if(wn||(wn=new Eu),nc(Nn))wl(Xe,ri,cr,Ti,Yo,Yi,wn);else{var Dr=Yi?Yi(_u(Xe,cr),Nn,cr+"",Xe,ri,wn):Ae;Dr===Ae&&(Dr=Nn),Ze(Xe,cr,Dr)}},Mu)}function wl(Xe,ri,Ti,Yi,wn,Nn,cr){var Dr=_u(Xe,Ti),Hr=_u(ri,Ti),Rs=cr.get(Hr);if(Rs){Ze(Xe,Ti,Rs);return}var Os=Nn?Nn(Dr,Hr,Ti+"",Xe,ri,cr):Ae,Vs=Os===Ae;if(Vs){var mo=ma(Hr),Ao=!mo&&jf(Hr),Uo=!mo&&!Ao&&bf(Hr);Os=Hr,mo||Ao||Uo?ma(Dr)?Os=Dr:Ul(Dr)?Os=ec(Dr):Ao?(Vs=!1,Os=Of(Hr,!0)):Uo?(Vs=!1,Os=Wg(Hr,!0)):Os=[]:Cd(Hr)||_f(Hr)?(Os=Dr,_f(Dr)?Os=rg(Dr):(!nc(Dr)||ep(Dr))&&(Os=Wu(Hr))):Vs=!1}Vs&&(cr.set(Hr,Os),wn(Os,Hr,Yi,Nn,cr),cr.delete(Hr)),Ze(Xe,Ti,Os)}function pl(Xe,ri){var Ti=Xe.length;if(Ti)return ri+=ri<0?Ti:0,Ac(ri,Ti)?Xe[ri]:Ae}function Za(Xe,ri,Ti){ri.length?ri=co(ri,function(Nn){return ma(Nn)?function(cr){return Vr(cr,Nn.length===1?Nn[0]:Nn)}:Nn}):ri=[ku];var Yi=-1;ri=co(ri,pu(Ro()));var wn=Hu(Xe,function(Nn,cr,Dr){var Hr=co(ri,function(Rs){return Rs(Nn)});return{criteria:Hr,index:++Yi,value:Nn}});return Zc(wn,function(Nn,cr){return Il(Nn,cr,Ti)})}function Cc(Xe,ri){return Mp(Xe,ri,function(Ti,Yi){return qu(Xe,Yi)})}function Mp(Xe,ri,Ti){for(var Yi=-1,wn=ri.length,Nn={};++Yi<wn;){var cr=ri[Yi],Dr=Vr(Xe,cr);Ti(Dr,cr)&&hm(Nn,yu(cr,Xe),Dr)}return Nn}function Cu(Xe){return function(ri){return Vr(ri,Xe)}}function gd(Xe,ri,Ti,Yi){var wn=Yi?hu:Na,Nn=-1,cr=ri.length,Dr=Xe;for(Xe===ri&&(ri=ec(ri)),Ti&&(Dr=co(Xe,pu(Ti)));++Nn<cr;)for(var Hr=0,Rs=ri[Nn],Os=Ti?Ti(Rs):Rs;(Hr=wn(Dr,Os,Hr,Yi))>-1;)Dr!==Xe&&Vh.call(Dr,Hr,1),Vh.call(Xe,Hr,1);return Xe}function Uu(Xe,ri){for(var Ti=Xe?ri.length:0,Yi=Ti-1;Ti--;){var wn=ri[Ti];if(Ti==Yi||wn!==Nn){var Nn=wn;Ac(wn)?Vh.call(Xe,wn,1):ey(Xe,wn)}}return Xe}function yd(Xe,ri){return Xe+wp(lm()*(ri-Xe+1))}function kp(Xe,ri,Ti,Yi){for(var wn=-1,Nn=Pl(ed((ri-Xe)/(Ti||1)),0),cr=Tr(Nn);Nn--;)cr[Yi?Nn:++wn]=Xe,Xe+=Ti;return cr}function Gu(Xe,ri){var Ti="";if(!Xe||ri<1||ri>Hn)return Ti;do ri%2&&(Ti+=Xe),ri=wp(ri/2),ri&&(Xe+=Xe);while(ri);return Ti}function Oo(Xe,ri){return _m(pf(Xe,ri,ku),Xe+"")}function Xh(Xe){return Rf(sg(Xe))}function Av(Xe,ri){var Ti=sg(Xe);return di(Ti,Fi(ri,0,Ti.length))}function hm(Xe,ri,Ti,Yi){if(!nc(Xe))return Xe;ri=yu(ri,Xe);for(var wn=-1,Nn=ri.length,cr=Nn-1,Dr=Xe;Dr!=null&&++wn<Nn;){var Hr=_i(ri[wn]),Rs=Ti;if(Hr==="__proto__"||Hr==="constructor"||Hr==="prototype")return Xe;if(wn!=cr){var Os=Dr[Hr];Rs=Yi?Yi(Os,Hr,Dr):Ae,Rs===Ae&&(Rs=nc(Os)?Os:Ac(ri[wn+1])?[]:{})}Ne(Dr,Hr,Rs),Dr=Dr[Hr]}return Xe}var Q0=Wd?function(Xe,ri){return Wd.set(Xe,ri),Xe}:ku,tf=Ud?function(Xe,ri){return Ud(Xe,"toString",{configurable:!0,enumerable:!1,value:nb(ri),writable:!0})}:ku;function Zd(Xe){return di(sg(Xe))}
vendor: 16,125 bytes, lines 25-27
25function nd(Xe,ri,Ti){var Yi=-1,wn=Xe.length;ri<0&&(ri=-ri>wn?0:wn+ri),Ti=Ti>wn?wn:Ti,Ti<0&&(Ti+=wn),wn=ri>Ti?0:Ti-ri>>>0,ri>>>=0;for(var Nn=Tr(wn);++Yi<wn;)Nn[Yi]=Xe[Yi+ri];return Nn}function jg(Xe,ri){var Ti;return On(Xe,function(Yi,wn,Nn){return Ti=ri(Yi,wn,Nn),!Ti}),!!Ti}function nf(Xe,ri,Ti){var Yi=0,wn=Xe==null?Yi:Xe.length;if(typeof ri=="number"&&ri===ri&&wn<=Qi){for(;Yi<wn;){var Nn=Yi+wn>>>1,cr=Xe[Nn];cr!==null&&!Th(cr)&&(Ti?cr<=ri:cr<ri)?Yi=Nn+1:wn=Nn}return wn}return Yd(Xe,ri,ku,Ti)}function Yd(Xe,ri,Ti,Yi){var wn=0,Nn=Xe==null?0:Xe.length;if(Nn===0)return 0;ri=Ti(ri);for(var cr=ri!==ri,Dr=ri===null,Hr=Th(ri),Rs=ri===Ae;wn<Nn;){var Os=wp((wn+Nn)/2),Vs=Ti(Xe[Os]),mo=Vs!==Ae,Ao=Vs===null,Uo=Vs===Vs,Sa=Th(Vs);if(cr)var Go=Yi||Uo;else Rs?Go=Uo&&(Yi||mo):Dr?Go=Uo&&mo&&(Yi||!Ao):Hr?Go=Uo&&mo&&!Ao&&(Yi||!Sa):Ao||Sa?Go=!1:Go=Yi?Vs<=ri:Vs<ri;Go?wn=Os+1:Nn=Os}return Ta(Nn,Zi)}function pm(Xe,ri){for(var Ti=-1,Yi=Xe.length,wn=0,Nn=[];++Ti<Yi;){var cr=Xe[Ti],Dr=ri?ri(cr):cr;if(!Ti||!zp(Dr,Hr)){var Hr=Dr;Nn[wn++]=cr===0?0:cr}}return Nn}function cc(Xe){return typeof Xe=="number"?Xe:Th(Xe)?os:+Xe}function Ya(Xe){if(typeof Xe=="string")return Xe;if(ma(Xe))return co(Xe,Ya)+"";if(Th(Xe))return Mf?Mf.call(Xe):"";var ri=Xe+"";return ri=="0"&&1/Xe==-er?"-0":ri}function Fc(Xe,ri,Ti){var Yi=-1,wn=Kr,Nn=Xe.length,cr=!0,Dr=[],Hr=Dr;if(Ti)cr=!1,wn=Ns;else if(Nn>=Le){var Rs=ri?null:vu(Xe);if(Rs)return dd(Rs);cr=!1,wn=lh,Hr=new Gs}else Hr=ri?[]:Dr;e:for(;++Yi<Nn;){var Os=Xe[Yi],Vs=ri?ri(Os):Os;if(Os=Ti||Os!==0?Os:0,cr&&Vs===Vs){for(var mo=Hr.length;mo--;)if(Hr[mo]===Vs)continue e;ri&&Hr.push(Vs),Dr.push(Os)}else wn(Hr,Vs,Ti)||(Hr!==Dr&&Hr.push(Vs),Dr.push(Os))}return Dr}function ey(Xe,ri){return ri=yu(ri,Xe),Xe=La(Xe,ri),Xe==null||delete Xe[_i(Eo(ri))]}function ty(Xe,ri,Ti,Yi){return hm(Xe,ri,Ti(Vr(Xe,ri)),Yi)}function fh(Xe,ri,Ti,Yi){for(var wn=Xe.length,Nn=Yi?wn:-1;(Yi?Nn--:++Nn<wn)&&ri(Xe[Nn],Nn,Xe););return Ti?nd(Xe,Yi?0:Nn,Yi?Nn+1:wn):nd(Xe,Yi?Nn+1:0,Yi?wn:Nn)}function mh(Xe,ri){var Ti=Xe;return Ti instanceof ta&&(Ti=Ti.value()),Vo(ri,function(Yi,wn){return wn.func.apply(wn.thisArg,Fo([Yi],wn.args))},Ti)}function Pp(Xe,ri,Ti){var Yi=Xe.length;if(Yi<2)return Yi?Fc(Xe[0]):[];for(var wn=-1,Nn=Tr(Yi);++wn<Yi;)for(var cr=Xe[wn],Dr=-1;++Dr<Yi;)Dr!=wn&&(Nn[wn]=In(Nn[wn]||cr,Xe[Dr],ri,Ti));return Fc(qn(Nn,1),ri,Ti)}function gh(Xe,ri,Ti){for(var Yi=-1,wn=Xe.length,Nn=ri.length,cr={};++Yi<wn;){var Dr=Yi<Nn?ri[Yi]:Ae;Ti(cr,Xe[Yi],Dr)}return cr}function eu(Xe){return Ul(Xe)?Xe:[]}function yh(Xe){return typeof Xe=="function"?Xe:ku}function yu(Xe,ri){return ma(Xe)?Xe:tg(Xe,ri)?[Xe]:vi(ml(Xe))}var Ip=Oo;function Kd(Xe,ri,Ti){var Yi=Xe.length;return Ti=Ti===Ae?Yi:Ti,!ri&&Ti>=Yi?Xe:nd(Xe,ri,Ti)}var rf=xp||function(Xe){return ya.clearTimeout(Xe)};function Of(Xe,ri){if(ri)return Xe.slice();var Ti=Xe.length,Yi=jm?jm(Ti):new Xe.constructor(Ti);return Xe.copy(Yi),Yi}function ql(Xe){var ri=new Xe.constructor(Xe.byteLength);return new hd(ri).set(new hd(Xe)),ri}function iy(Xe,ri){var Ti=ri?ql(Xe.buffer):Xe.buffer;return new Xe.constructor(Ti,Xe.byteOffset,Xe.byteLength)}function vd(Xe){var ri=new Xe.constructor(Xe.source,ul.exec(Xe));return ri.lastIndex=Xe.lastIndex,ri}function vh(Xe){return Cp?uo(Cp.call(Xe)):{}}function Wg(Xe,ri){var Ti=ri?ql(Xe.buffer):Xe.buffer;return new Xe.constructor(Ti,Xe.byteOffset,Xe.length)}function Dv(Xe,ri){if(Xe!==ri){var Ti=Xe!==Ae,Yi=Xe===null,wn=Xe===Xe,Nn=Th(Xe),cr=ri!==Ae,Dr=ri===null,Hr=ri===ri,Rs=Th(ri);if(!Dr&&!Rs&&!Nn&&Xe>ri||Nn&&cr&&Hr&&!Dr&&!Rs||Yi&&cr&&Hr||!Ti&&Hr||!wn)return 1;if(!Yi&&!Nn&&!Rs&&Xe<ri||Rs&&Ti&&wn&&!Yi&&!Nn||Dr&&Ti&&wn||!cr&&wn||!Hr)return-1}return 0}function Il(Xe,ri,Ti){for(var Yi=-1,wn=Xe.criteria,Nn=ri.criteria,cr=wn.length,Dr=Ti.length;++Yi<cr;){var Hr=Dv(wn[Yi],Nn[Yi]);if(Hr){if(Yi>=Dr)return Hr;var Rs=Ti[Yi];return Hr*(Rs=="desc"?-1:1)}}return Xe.index-ri.index}function So(Xe,ri,Ti,Yi){for(var wn=-1,Nn=Xe.length,cr=Ti.length,Dr=-1,Hr=ri.length,Rs=Pl(Nn-cr,0),Os=Tr(Hr+Rs),Vs=!Yi;++Dr<Hr;)Os[Dr]=ri[Dr];for(;++wn<cr;)(Vs||wn<Nn)&&(Os[Ti[wn]]=Xe[wn]);for(;Rs--;)Os[Dr++]=Xe[wn++];return Os}function _h(Xe,ri,Ti,Yi){for(var wn=-1,Nn=Xe.length,cr=-1,Dr=Ti.length,Hr=-1,Rs=ri.length,Os=Pl(Nn-Dr,0),Vs=Tr(Os+Rs),mo=!Yi;++wn<Os;)Vs[wn]=Xe[wn];for(var Ao=wn;++Hr<Rs;)Vs[Ao+Hr]=ri[Hr];for(;++cr<Dr;)(mo||wn<Nn)&&(Vs[Ao+Ti[cr]]=Xe[wn++]);return Vs}function ec(Xe,ri){var Ti=-1,Yi=Xe.length;for(ri||(ri=Tr(Yi));++Ti<Yi;)ri[Ti]=Xe[Ti];return ri}function nl(Xe,ri,Ti,Yi){var wn=!Ti;Ti||(Ti={});for(var Nn=-1,cr=ri.length;++Nn<cr;){var Dr=ri[Nn],Hr=Yi?Yi(Ti[Dr],Xe[Dr],Dr,Ti,Xe):Ae;Hr===Ae&&(Hr=Xe[Dr]),wn?Si(Ti,Dr,Hr):Ne(Ti,Dr,Hr)}return Ti}function qg(Xe,ri){return nl(Xe,hf(Xe),ri)}function fm(Xe,ri){return nl(Xe,Qm(Xe),ri)}function ju(Xe,ri){return function(Ti,Yi){var wn=ma(Ti)?ur:Qe,Nn=ri?ri():{};return wn(Ti,Xe,Ro(Yi,2),Nn)}}function _d(Xe){return Oo(function(ri,Ti){var Yi=-1,wn=Ti.length,Nn=wn>1?Ti[wn-1]:Ae,cr=wn>2?Ti[2]:Ae;for(Nn=Xe.length>3&&typeof Nn=="function"?(wn--,Nn):Ae,cr&&Sl(Ti[0],Ti[1],cr)&&(Nn=wn<3?Ae:Nn,wn=1),ri=uo(ri);++Yi<wn;){var Dr=Ti[Yi];Dr&&Xe(ri,Dr,Yi,Nn)}return ri})}function bd(Xe,ri){return function(Ti,Yi){if(Ti==null)return Ti;if(!Du(Ti))return Xe(Ti,Yi);for(var wn=Ti.length,Nn=ri?wn:-1,cr=uo(Ti);(ri?Nn--:++Nn<wn)&&Yi(cr[Nn],Nn,cr)!==!1;);return Ti}}function sf(Xe){return function(ri,Ti,Yi){for(var wn=-1,Nn=uo(ri),cr=Yi(ri),Dr=cr.length;Dr--;){var Hr=cr[Xe?Dr:++wn];if(Ti(Nn[Hr],Hr,Nn)===!1)break}return ri}}function of(Xe,ri,Ti){var Yi=ri&ii,wn=af(Xe);function Nn(){var cr=this&&this!==ya&&this instanceof Nn?wn:Xe;return cr.apply(Yi?Ti:this,arguments)}return Nn}function Xm(Xe){return function(ri){ri=ml(ri);var Ti=Bl(ri)?Jl(ri):Ae,Yi=Ti?Ti[0]:ri.charAt(0),wn=Ti?Kd(Ti,1).join(""):ri.slice(1);return Yi[Xe]()+wn}}function bh(Xe){return function(ri){return Vo(Ty(Q1(ri).replace(Rh,"")),Xe,"")}}function af(Xe){return function(){var ri=arguments;switch(ri.length){case 0:return new Xe;case 1:return new Xe(ri[0]);case 2:return new Xe(ri[0],ri[1]);case 3:return new Xe(ri[0],ri[1],ri[2]);case 4:return new Xe(ri[0],ri[1],ri[2],ri[3]);case 5:return new Xe(ri[0],ri[1],ri[2],ri[3],ri[4]);case 6:return new Xe(ri[0],ri[1],ri[2],ri[3],ri[4],ri[5]);case 7:return new Xe(ri[0],ri[1],ri[2],ri[3],ri[4],ri[5],ri[6])}var Ti=Bu(Xe.prototype),Yi=Xe.apply(Ti,ri);return nc(Yi)?Yi:Ti}}function mm(Xe,ri,Ti){var Yi=af(Xe);function wn(){for(var Nn=arguments.length,cr=Tr(Nn),Dr=Nn,Hr=df(wn);Dr--;)cr[Dr]=arguments[Dr];var Rs=Nn<3&&cr[0]!==Hr&&cr[Nn-1]!==Hr?[]:Kc(cr,Hr);if(Nn-=Rs.length,Nn<Ti)return tu(Xe,ri,Lf,wn.placeholder,Ae,cr,Rs,Ae,Ae,Ti-Nn);var Os=this&&this!==ya&&this instanceof wn?Yi:Xe;return An(Os,this,cr)}return wn}function ny(Xe){return function(ri,Ti,Yi){var wn=uo(ri);if(!Du(ri)){var Nn=Ro(Ti,3);ri=bu(ri),Ti=function(Dr){return Nn(wn[Dr],Dr,wn)}}var cr=Xe(ri,Ti,Yi);return cr>-1?wn[Nn?ri[cr]:cr]:Ae}}function Xg(Xe){return Jd(function(ri){var Ti=ri.length,Yi=Ti,wn=Lc.prototype.thru;for(Xe&&ri.reverse();Yi--;){var Nn=ri[Yi];if(typeof Nn!="function")throw new Ho(Ve);if(wn&&!cr&&Km(Nn)=="wrapper")var cr=new Lc([],!0)}for(Yi=cr?Yi:Ti;++Yi<Ti;){Nn=ri[Yi];var Dr=Km(Nn),Hr=Dr=="wrapper"?Zg(Nn):Ae;Hr&&Yg(Hr[0])&&Hr[1]==(Je|Li|zi|fi)&&!Hr[4].length&&Hr[9]==1?cr=cr[Km(Hr[0])].apply(cr,Hr[3]):cr=Nn.length==1&&Yg(Nn)?cr[Dr]():cr.thru(Nn)}return function(){var Rs=arguments,Os=Rs[0];if(cr&&Rs.length==1&&ma(Os))return cr.plant(Os).value();for(var Vs=0,mo=Ti?ri[Vs].apply(this,Rs):Os;++Vs<Ti;)mo=ri[Vs].call(this,mo);return mo}})}function Lf(Xe,ri,Ti,Yi,wn,Nn,cr,Dr,Hr,Rs){var Os=ri&Je,Vs=ri&ii,mo=ri&hi,Ao=ri&(Li|Di),Uo=ri&Gi,Sa=mo?Ae:af(Xe);function Go(){for(var Ra=arguments.length,Ua=Tr(Ra),eh=Ra;eh--;)Ua[eh]=arguments[eh];if(Ao)var Mc=df(Go),th=Rc(Ua,Mc);if(Yi&&(Ua=So(Ua,Yi,wn,Ao)),Nn&&(Ua=_h(Ua,Nn,cr,Ao)),Ra-=th,Ao&&Ra<Rs){var zc=Kc(Ua,Mc);return tu(Xe,ri,Lf,Go.placeholder,Ti,Ua,zc,Dr,Hr,Rs-Ra)}var Vp=Vs?Ti:this,tp=mo?Vp[Xe]:Xe;return Ra=Ua.length,Dr?Ua=ff(Ua,Dr):Uo&&Ra>1&&Ua.reverse(),Os&&Hr<Ra&&(Ua.length=Hr),this&&this!==ya&&this instanceof Go&&(tp=Sa||af(tp)),tp.apply(Vp,Ua)}return Go}function gm(Xe,ri){return function(Ti,Yi){return Ss(Ti,Xe,ri(Yi),{})}}function xd(Xe,ri){return function(Ti,Yi){var wn;if(Ti===Ae&&Yi===Ae)return ri;if(Ti!==Ae&&(wn=Ti),Yi!==Ae){if(wn===Ae)return Yi;typeof Ti=="string"||typeof Yi=="string"?(Ti=Ya(Ti),Yi=Ya(Yi)):(Ti=cc(Ti),Yi=cc(Yi)),wn=Xe(Ti,Yi)}return wn}}function Rl(Xe){return Jd(function(ri){return ri=co(ri,pu(Ro())),Oo(function(Ti){var Yi=this;return Xe(ri,function(wn){return An(wn,Yi,Ti)})})})}function $f(Xe,ri){ri=ri===Ae?" ":Ya(ri);var Ti=ri.length;if(Ti<2)return Ti?Gu(ri,Xe):ri;var Yi=Gu(ri,ed(Xe/Ku(ri)));return Bl(ri)?Kd(Jl(Yi),0,Xe).join(""):Yi.slice(0,Xe)}function ry(Xe,ri,Ti,Yi){var wn=ri&ii,Nn=af(Xe);function cr(){for(var Dr=-1,Hr=arguments.length,Rs=-1,Os=Yi.length,Vs=Tr(Os+Hr),mo=this&&this!==ya&&this instanceof cr?Nn:Xe;++Rs<Os;)Vs[Rs]=Yi[Rs];for(;Hr--;)Vs[Rs++]=arguments[++Dr];return An(mo,wn?Ti:this,Vs)}return cr}function Ff(Xe){return function(ri,Ti,Yi){return Yi&&typeof Yi!="number"&&Sl(ri,Ti,Yi)&&(Ti=Yi=Ae),ri=Bp(ri),Ti===Ae?(Ti=ri,ri=0):Ti=Bp(Ti),Yi=Yi===Ae?ri<Ti?1:-1:Bp(Yi),kp(ri,Ti,Yi,Xe)}}function Zh(Xe){return function(ri,Ti){return typeof ri=="string"&&typeof Ti=="string"||(ri=su(ri),Ti=su(Ti)),Xe(ri,Ti)}}function tu(Xe,ri,Ti,Yi,wn,Nn,cr,Dr,Hr,Rs){var Os=ri&Li,Vs=Os?cr:Ae,mo=Os?Ae:cr,Ao=Os?Nn:Ae,Uo=Os?Ae:Nn;ri|=Os?zi:an,ri&=~(Os?an:zi),ri&Ei||(ri&=~(ii|hi));var Sa=[Xe,ri,wn,Ao,Vs,Uo,mo,Dr,Hr,Rs],Go=Ti.apply(Ae,Sa);return Yg(Xe)&&Qg(Go,Sa),Go.placeholder=Yi,ti(Go,Xe,ri)}function lf(Xe){var ri=vo[Xe];return function(Ti,Yi){if(Ti=su(Ti),Yi=Yi==null?0:Ta(ba(Yi),292),Yi&&kl(Ti)){var wn=(ml(Ti)+"e").split("e"),Nn=ri(wn[0]+"e"+(+wn[1]+Yi));return wn=(ml(Nn)+"e").split("e"),+(wn[0]+"e"+(+wn[1]-Yi))}return ri(Ti)}}var vu=uh&&1/dd(new uh([,-0]))[1]==er?function(Xe){return new uh(Xe)}:rb;function rd(Xe){return function(ri){var Ti=uc(ri);return Ti==Ji?zh(ri):Ti==_s?ch(ri):Kl(ri,Xe(ri))}}function wd(Xe,ri,Ti,Yi,wn,Nn,cr,Dr){var Hr=ri&hi;if(!Hr&&typeof Xe!="function")throw new Ho(Ve);var Rs=Yi?Yi.length:0;if(Rs||(ri&=~(zi|an),Yi=wn=Ae),cr=cr===Ae?cr:Pl(ba(cr),0),Dr=Dr===Ae?Dr:ba(Dr),Rs-=wn?wn.length:0,ri&an){var Os=Yi,Vs=wn;Yi=wn=Ae}var mo=Hr?Ae:Zg(Xe),Ao=[Xe,ri,Ti,Yi,wn,Os,Vs,Nn,cr,Dr];if(mo&&L1(Ao,mo),Xe=Ao[0],ri=Ao[1],Ti=Ao[2],Yi=Ao[3],wn=Ao[4],Dr=Ao[9]=Ao[9]===Ae?Hr?0:Xe.length:Pl(Ao[9]-Rs,0),!Dr&&ri&(Li|Di)&&(ri&=~(Li|Di)),!ri||ri==ii)var Uo=of(Xe,ri,Ti);else ri==Li||ri==Di?Uo=mm(Xe,ri,Dr):(ri==zi||ri==(ii|zi))&&!wn.length?Uo=ry(Xe,ri,Ti,Yi):Uo=Lf.apply(Ae,Ao);var Sa=mo?Q0:Qg;return ti(Sa(Uo,Ao),Xe,ri)}function Ol(Xe,ri,Ti,Yi){return Xe===Ae||zp(Xe,Nl[Ti])&&!Bo.call(Yi,Ti)?ri:Xe}function zf(Xe,ri,Ti,Yi,wn,Nn){return nc(Xe)&&nc(ri)&&(Nn.set(ri,Xe),Yo(Xe,ri,Ae,zf,Nn),Nn.delete(ri)),Xe}function cf(Xe){return Cd(Xe)?Ae:Xe}function Sd(Xe,ri,Ti,Yi,wn,Nn){var cr=Ti&Ai,Dr=Xe.length,Hr=ri.length;if(Dr!=Hr&&!(cr&&Hr>Dr))return!1;var Rs=Nn.get(Xe),Os=Nn.get(ri);if(Rs&&Os)return Rs==ri&&Os==Xe;var Vs=-1,mo=!0,Ao=Ti&oi?new Gs:Ae;for(Nn.set(Xe,ri),Nn.set(ri,Xe);++Vs<Dr;){var Uo=Xe[Vs],Sa=ri[Vs];if(Yi)var Go=cr?Yi(Sa,Uo,Vs,ri,Xe,Nn):Yi(Uo,Sa,Vs,Xe,ri,Nn);if(Go!==Ae){if(Go)continue;mo=!1;break}if(Ao){if(!Wa(ri,function(Ra,Ua){if(!lh(Ao,Ua)&&(Uo===Ra||wn(Uo,Ra,Ti,Yi,Nn)))return Ao.push(Ua)})){mo=!1;break}}else if(!(Uo===Sa||wn(Uo,Sa,Ti,Yi,Nn))){mo=!1;break}}return Nn.delete(Xe),Nn.delete(ri),mo}function Zm(Xe,ri,Ti,Yi,wn,Nn,cr){switch(Ti){case ro:if(Xe.byteLength!=ri.byteLength||Xe.byteOffset!=ri.byteOffset)return!1;Xe=Xe.buffer,ri=ri.buffer;case Ws:return!(Xe.byteLength!=ri.byteLength||!Nn(new hd(Xe),new hd(ri)));case hr:case Ri:case Mn:return zp(+Xe,+ri);case Ue:return Xe.name==ri.name&&Xe.message==ri.message;case Or:case so:return Xe==ri+"";case Ji:var Dr=zh;case _s:var Hr=Yi&Ai;if(Dr||(Dr=dd),Xe.size!=ri.size&&!Hr)return!1;var Rs=cr.get(Xe);if(Rs)return Rs==ri;Yi|=oi,cr.set(Xe,ri);var Os=Sd(Dr(Xe),Dr(ri),Yi,wn,Nn,cr);return cr.delete(Xe),Os;case Ls:if(Cp)return Cp.call(Xe)==Cp.call(ri)}return!1}function uf(Xe,ri,Ti,Yi,wn,Nn){var cr=Ti&Ai,Dr=Ym(Xe),Hr=Dr.length,Rs=Ym(ri),Os=Rs.length;if(Hr!=Os&&!cr)return!1;for(var Vs=Hr;Vs--;){var mo=Dr[Vs];if(!(cr?mo in ri:Bo.call(ri,mo)))return!1}var Ao=Nn.get(Xe),Uo=Nn.get(ri);if(Ao&&Uo)return Ao==ri&&Uo==Xe;var Sa=!0;Nn.set(Xe,ri),Nn.set(ri,Xe);for(var Go=cr;++Vs<Hr;){mo=Dr[Vs];var Ra=Xe[mo],Ua=ri[mo];if(Yi)var eh=cr?Yi(Ua,Ra,mo,ri,Xe,Nn):Yi(Ra,Ua,mo,Xe,ri,Nn);if(!(eh===Ae?Ra===Ua||wn(Ra,Ua,Ti,Yi,Nn):eh)){Sa=!1;break}Go||(Go=mo=="constructor")}if(Sa&&!Go){var Mc=Xe.constructor,th=ri.constructor;Mc!=th&&"constructor"in Xe&&"constructor"in ri&&!(typeof Mc=="function"&&Mc instanceof Mc&&typeof th=="function"&&th instanceof th)&&(Sa=!1)}return Nn.delete(Xe),Nn.delete(ri),Sa}function Jd(Xe){return _m(pf(Xe,Ae,qr),Xe+"")}function Ym(Xe){return Ds(Xe,bu,hf)}function Rp(Xe){return Ds(Xe,Mu,Qm)}var Zg=Wd?function(Xe){return Wd.get(Xe)}:rb;function Km(Xe){for(var ri=Xe.name+"",Ti=dh[ri],Yi=Bo.call(dh,ri)?Ti.length:0;Yi--;){var wn=Ti[Yi],Nn=wn.func;if(Nn==null||Nn==Xe)return wn.name}return ri}function df(Xe){var ri=Bo.call(Rn,"placeholder")?Rn:Xe;return ri.placeholder}function Ro(){var Xe=Rn.iteratee||ag;return Xe=Xe===ag?ha:Xe,arguments.length?Xe(arguments[0],arguments[1]):Xe}function Bf(Xe,ri){var Ti=Xe.__data__;return vm(ri)?Ti[typeof ri=="string"?"string":"hash"]:Ti.map}function Jm(Xe){for(var ri=bu(Xe),Ti=ri.length;Ti--;){var Yi=ri[Ti],wn=Xe[Yi];ri[Ti]=[Yi,wn,Lp(wn)]}return ri}function Op(Xe,ri){var Ti=zd(Xe,ri);return lo(Ti)?Ti:Ae}function sy(Xe){var ri=Bo.call(Xe,Qu),Ti=Xe[Qu];try{Xe[Qu]=Ae;var Yi=!0}catch{}var wn=da.call(Xe);return Yi&&(ri?Xe[Qu]=Ti:delete Xe[Qu]),wn}var hf=Uh?function(Xe){return Xe==null?[]:(Xe=uo(Xe),ps(Uh(Xe),function(ri){return om.call(Xe,ri)}))}:sb,Qm=Uh?function(Xe){for(var ri=[];Xe;)Fo(ri,hf(Xe)),Xe=_p(Xe);return ri}:sb,uc=zr;(zu&&uc(new zu(new ArrayBuffer(1)))!=ro||Gd&&uc(new Gd)!=Ji||fd&&uc(fd.resolve())!=Cr||uh&&uc(new uh)!=_s||jd&&uc(new jd)!=As)&&(uc=function(Xe){var ri=zr(Xe),Ti=ri==Fn?Xe.constructor:Ae,Yi=Ti?ki(Ti):"";if(Yi)switch(Yi){case Sp:return ro;case Kp:return Ji;case md:return Cr;case Tp:return _s;case jh:return As}return ri});function oy(Xe,ri,Ti){for(var Yi=-1,wn=Ti.length;++Yi<wn;){var Nn=Ti[Yi],cr=Nn.size;switch(Nn.type){case"drop":Xe+=cr;break;case"dropRight":ri-=cr;break;case"take":ri=Ta(ri,Xe+cr);break;case"takeRight":Xe=Pl(Xe,ri-cr);break}}return{start:Xe,end:ri}}function tc(Xe){var ri=Xe.match(wo);return ri?ri[1].split(ga):[]}function eg(Xe,ri,Ti){ri=yu(ri,Xe);for(var Yi=-1,wn=ri.length,Nn=!1;++Yi<wn;){var cr=_i(ri[Yi]);if(!(Nn=Xe!=null&&Ti(Xe,cr)))break;Xe=Xe[cr]}return Nn||++Yi!=wn?Nn:(wn=Xe==null?0:Xe.length,!!wn&&by(wn)&&Ac(cr,wn)&&(ma(Xe)||_f(Xe)))}function ay(Xe){var ri=Xe.length,Ti=new Xe.constructor(ri);return ri&&typeof Xe[0]=="string"&&Bo.call(Xe,"index")&&(Ti.index=Xe.index,Ti.input=Xe.input),Ti}function Wu(Xe){return typeof Xe.constructor=="function"&&!Au(Xe)?Bu(_p(Xe)):{}}function O1(Xe,ri,Ti){var Yi=Xe.constructor;switch(ri){case Ws:return ql(Xe);case hr:case Ri:return new Yi(+Xe);case ro:return iy(Xe,Ti);case qs:case hs:case Nr:case ea:case $a:case ao:case Do:case el:case Fa:return Wg(Xe,Ti);case Ji:return new Yi;case Mn:case so:return new Yi(Xe);case Or:return vd(Xe);case _s:return new Yi;case Ls:return vh(Xe)}}function Nf(Xe,ri){var Ti=ri.length;if(!Ti)return Xe;var Yi=Ti-1;return ri[Yi]=(Ti>1?"& ":"")+ri[Yi],ri=ri.join(Ti>2?", ":" "),Xe.replace(xo,`{
26/* [wrapped with `+ri+`] */
27`)}function ym(Xe){return ma(Xe)||_f(Xe)||!!(Hd&&Xe&&Xe[Hd])}function Ac(Xe,ri){var Ti=typeof Xe;return ri=ri??Hn,!!ri&&(Ti=="number"||Ti!="symbol"&&ca.test(Xe))&&Xe>-1&&Xe%1==0&&Xe<ri}function Sl(Xe,ri,Ti){if(!nc(Ti))return!1;var Yi=typeof ri;return(Yi=="number"?Du(Ti)&&Ac(ri,Ti.length):Yi=="string"&&ri in Ti)?zp(Ti[ri],Xe):!1}function tg(Xe,ri){if(ma(Xe))return!1;var Ti=typeof Xe;return Ti=="number"||Ti=="symbol"||Ti=="boolean"||Xe==null||Th(Xe)?!0:bs.test(Xe)||!jr.test(Xe)||ri!=null&&Xe in uo(ri)}function vm(Xe){var ri=typeof Xe;return ri=="string"||ri=="number"||ri=="symbol"||ri=="boolean"?Xe!=="__proto__":Xe===null}function Yg(Xe){var ri=Km(Xe),Ti=Rn[ri];if(typeof Ti!="function"||!(ri in ta.prototype))return!1;
vendor: 1,862 bytes, line 27
27if(Xe===Ti)return!0;var Yi=Zg(Ti);return!!Yi&&Xe===Yi[0]}function Mv(Xe){return!!yp&&yp in Xe}var Kg=Oc?ep:ob;function Au(Xe){var ri=Xe&&Xe.constructor,Ti=typeof ri=="function"&&ri.prototype||Nl;return Xe===Ti}function Lp(Xe){return Xe===Xe&&!nc(Xe)}function ly(Xe,ri){return function(Ti){return Ti==null?!1:Ti[Xe]===ri&&(ri!==Ae||Xe in uo(Ti))}}function xh(Xe){var ri=Fv(Xe,function(Yi){return Ti.size===Ke&&Ti.clear(),Yi}),Ti=ri.cache;return ri}function L1(Xe,ri){var Ti=Xe[1],Yi=ri[1],wn=Ti|Yi,Nn=wn<(ii|hi|Je),cr=Yi==Je&&Ti==Li||Yi==Je&&Ti==fi&&Xe[7].length<=ri[8]||Yi==(Je|fi)&&ri[7].length<=ri[8]&&Ti==Li;if(!(Nn||cr))return Xe;Yi&ii&&(Xe[2]=ri[2],wn|=Ti&ii?0:Ei);var Dr=ri[3];if(Dr){var Hr=Xe[3];Xe[3]=Hr?So(Hr,Dr,ri[4]):Dr,Xe[4]=Hr?Kc(Xe[3],$e):ri[4]}return Dr=ri[5],Dr&&(Hr=Xe[5],Xe[5]=Hr?_h(Hr,Dr,ri[6]):Dr,Xe[6]=Hr?Kc(Xe[5],$e):ri[6]),Dr=ri[7],Dr&&(Xe[7]=Dr),Yi&Je&&(Xe[8]=Xe[8]==null?ri[8]:Ta(Xe[8],ri[8])),Xe[9]==null&&(Xe[9]=ri[9]),Xe[0]=ri[0],Xe[1]=wn,Xe}function Jg(Xe){var ri=[];if(Xe!=null)for(var Ti in uo(Xe))ri.push(Ti);return ri}function cy(Xe){return da.call(Xe)}function pf(Xe,ri,Ti){return ri=Pl(ri===Ae?Xe.length-1:ri,0),function(){for(var Yi=arguments,wn=-1,Nn=Pl(Yi.length-ri,0),cr=Tr(Nn);++wn<Nn;)cr[wn]=Yi[ri+wn];wn=-1;for(var Dr=Tr(ri+1);++wn<ri;)Dr[wn]=Yi[wn];return Dr[ri]=Ti(cr),An(Xe,this,Dr)}}function La(Xe,ri){return ri.length<2?Xe:Vr(Xe,nd(ri,0,-1))}function ff(Xe,ri){for(var Ti=Xe.length,Yi=Ta(ri.length,Ti),wn=ec(Xe);Yi--;){var Nn=ri[Yi];Xe[Yi]=Ac(Nn,Ti)?wn[Nn]:Ae}return Xe}function _u(Xe,ri){if(!(ri==="constructor"&&typeof Xe[ri]=="function")&&ri!="__proto__")return Xe[ri]}var Qg=si(Q0),Yh=Af||function(Xe,ri){return ya.setTimeout(Xe,ri)},_m=si(tf);function ti(Xe,ri,Ti){var Yi=ri+"";return _m(Xe,Nf(Yi,$i(tc(Yi),Ti)))}function si(Xe){var ri=0,Ti=0;return function(){var Yi=Df(),wn=Sn-(Yi-Ti);if(Ti=Yi,wn>0){if(++ri>
vendor: 17,264 bytes, line 27
27=Tn)return arguments[0]}else ri=0;return Xe.apply(Ae,arguments)}}function di(Xe,ri){var Ti=-1,Yi=Xe.length,wn=Yi-1;for(ri=ri===Ae?Yi:ri;++Ti<ri;){var Nn=yd(Ti,wn),cr=Xe[Nn];Xe[Nn]=Xe[Ti],Xe[Ti]=cr}return Xe.length=ri,Xe}var vi=xh(function(Xe){var ri=[];return Xe.charCodeAt(0)===46&&ri.push(""),Xe.replace(Fs,function(Ti,Yi,wn,Nn){ri.push(wn?Nn.replace(Lo,"$1"):Yi||Ti)}),ri});function _i(Xe){if(typeof Xe=="string"||Th(Xe))return Xe;var ri=Xe+"";return ri=="0"&&1/Xe==-er?"-0":ri}function ki(Xe){if(Xe!=null){try{return Ql.call(Xe)}catch{}try{return Xe+""}catch{}}return""}function $i(Xe,ri){return Kn(Hi,function(Ti){var Yi="_."+Ti[0];ri&Ti[1]&&!Kr(Xe,Yi)&&Xe.push(Yi)}),Xe.sort()}function Vi(Xe){if(Xe instanceof ta)return Xe.clone();var ri=new Lc(Xe.__wrapped__,Xe.__chain__);return ri.__actions__=ec(Xe.__actions__),ri.__index__=Xe.__index__,ri.__values__=Xe.__values__,ri}function sn(Xe,ri,Ti){(Ti?Sl(Xe,ri,Ti):ri===Ae)?ri=1:ri=Pl(ba(ri),0);var Yi=Xe==null?0:Xe.length;if(!Yi||ri<1)return[];for(var wn=0,Nn=0,cr=Tr(ed(Yi/ri));wn<Yi;)cr[Nn++]=nd(Xe,wn,wn+=ri);return cr}function dn(Xe){for(var ri=-1,Ti=Xe==null?0:Xe.length,Yi=0,wn=[];++ri<Ti;){var Nn=Xe[ri];Nn&&(wn[Yi++]=Nn)}return wn}function ln(){var Xe=arguments.length;if(!Xe)return[];for(var ri=Tr(Xe-1),Ti=arguments[0],Yi=Xe;Yi--;)ri[Yi-1]=arguments[Yi];return Fo(ma(Ti)?ec(Ti):[Ti],qn(ri,1))}var _n=Oo(function(Xe,ri){return Ul(Xe)?In(Xe,qn(ri,1,Ul,!0)):[]}),$n=Oo(function(Xe,ri){var Ti=Eo(ri);return Ul(Ti)&&(Ti=Ae),Ul(Xe)?In(Xe,qn(ri,1,Ul,!0),Ro(Ti,2)):[]}),Ln=Oo(function(Xe,ri){var Ti=Eo(ri);return Ul(Ti)&&(Ti=Ae),Ul(Xe)?In(Xe,qn(ri,1,Ul,!0),Ae,Ti):[]});function Sr(Xe,ri,Ti){var Yi=Xe==null?0:Xe.length;return Yi?(ri=Ti||ri===Ae?1:ba(ri),nd(Xe,ri<0?0:ri,Yi)):[]}function lr(Xe,ri,Ti){var Yi=Xe==null?0:Xe.length;return Yi?(ri=Ti||ri===Ae?1:ba(ri),ri=Yi-ri,nd(Xe,0,ri<0?0:ri)):[]}function Gn(Xe,ri){return Xe&&Xe.length?fh(Xe,Ro(ri,3),!0,!0):[]}function mr(Xe,ri){return Xe&&Xe.length?fh(Xe,Ro(ri,3),!0):[]}function rr(Xe,ri,Ti,Yi){var wn=Xe==null?0:Xe.length;return wn?(Ti&&typeof Ti!="number"&&Sl(Xe,ri,Ti)&&(Ti=0,Yi=wn),Pn(Xe,ri,Ti,Yi)):[]}function ir(Xe,ri,Ti){var Yi=Xe==null?0:Xe.length;if(!Yi)return-1;var wn=Ti==null?0:ba(Ti);return wn<0&&(wn=Pl(Yi+wn,0)),zo(Xe,Ro(ri,3),wn)}function Fr(Xe,ri,Ti){var Yi=Xe==null?0:Xe.length;if(!Yi)return-1;var wn=Yi-1;return Ti!==Ae&&(wn=ba(Ti),wn=Ti<0?Pl(Yi+wn,0):Ta(wn,Yi-1)),zo(Xe,Ro(ri,3),wn,!0)}function qr(Xe){var ri=Xe==null?0:Xe.length;return ri?qn(Xe,1):[]}function Jr(Xe){var ri=Xe==null?0:Xe.length;return ri?qn(Xe,er):[]}function Wr(Xe,ri){var Ti=Xe==null?0:Xe.length;return Ti?(ri=ri===Ae?1:ba(ri),qn(Xe,ri)):[]}function Ms(Xe){for(var ri=-1,Ti=Xe==null?0:Xe.length,Yi={};++ri<Ti;){var wn=Xe[ri];Yi[wn[0]]=wn[1]}return Yi}function Ps(Xe){return Xe&&Xe.length?Xe[0]:Ae}function Xs(Xe,ri,Ti){var Yi=Xe==null?0:Xe.length;if(!Yi)return-1;var wn=Ti==null?0:ba(Ti);return wn<0&&(wn=Pl(Yi+wn,0)),Na(Xe,ri,wn)}function eo(Xe){var ri=Xe==null?0:Xe.length;return ri?nd(Xe,0,-1):[]}var oo=Oo(function(Xe){var ri=co(Xe,eu);return ri.length&&ri[0]===Xe[0]?ns(ri):[]}),Cs=Oo(function(Xe){var ri=Eo(Xe),Ti=co(Xe,eu);return ri===Eo(Ti)?ri=Ae:Ti.pop(),Ti.length&&Ti[0]===Xe[0]?ns(Ti,Ro(ri,2)):[]}),Zs=Oo(function(Xe){var ri=Eo(Xe),Ti=co(Xe,eu);return ri=typeof ri=="function"?ri:Ae,ri&&Ti.pop(),Ti.length&&Ti[0]===Xe[0]?ns(Ti,Ae,ri):[]});function Io(Xe,ri){return Xe==null?"":Wm.call(Xe,ri)}function Eo(Xe){var ri=Xe==null?0:Xe.length;return ri?Xe[ri-1]:Ae}function pa(Xe,ri,Ti){var Yi=Xe==null?0:Xe.length;if(!Yi)return-1;var wn=Yi;return Ti!==Ae&&(wn=ba(Ti),wn=wn<0?Pl(Yi+wn,0):Ta(wn,Yi-1)),ri===ri?Nd(Xe,ri,wn):zo(Xe,ud,wn,!0)}function Ia(Xe,ri){return Xe&&Xe.length?pl(Xe,ba(ri)):Ae}var Da=Oo(Ka);function Ka(Xe,ri){return Xe&&Xe.length&&ri&&ri.length?gd(Xe,ri):Xe}function wa(Xe,ri,Ti){return Xe&&Xe.length&&ri&&ri.length?gd(Xe,ri,Ro(Ti,2)):Xe}function fl(Xe,ri,Ti){return Xe&&Xe.length&&ri&&ri.length?gd(Xe,ri,Ae,Ti):Xe}var Tl=Jd(function(Xe,ri){var Ti=Xe==null?0:Xe.length,Yi=Mi(Xe,ri);return Uu(Xe,co(ri,function(wn){return Ac(wn,Ti)?+wn:wn}).sort(Dv)),Yi});function Ll(Xe,ri){var Ti=[];if(!(Xe&&Xe.length))return Ti;var Yi=-1,wn=[],Nn=Xe.length;for(ri=Ro(ri,3);++Yi<Nn;){var cr=Xe[Yi];ri(cr,Yi,Xe)&&(Ti.push(cr),wn.push(Yi))}return Uu(Xe,wn),Ti}function Ca(Xe){return Xe==null?Xe:Gh.call(Xe)}function dc(Xe,ri,Ti){var Yi=Xe==null?0:Xe.length;return Yi?(Ti&&typeof Ti!="number"&&Sl(Xe,ri,Ti)?(ri=0,Ti=Yi):(ri=ri==null?0:ba(ri),Ti=Ti===Ae?Yi:ba(Ti)),nd(Xe,ri,Ti)):[]}function $p(Xe,ri){return nf(Xe,ri)}function Xl(Xe,ri,Ti){return Yd(Xe,ri,Ro(Ti,2))}function ic(Xe,ri){var Ti=Xe==null?0:Xe.length;if(Ti){var Yi=nf(Xe,ri);if(Yi<Ti&&zp(Xe[Yi],ri))return Yi}return-1}function Kh(Xe,ri){return nf(Xe,ri,!0)}function Xn(Xe,ri,Ti){return Yd(Xe,ri,Ro(Ti,2),!0)}function iu(Xe,ri){var Ti=Xe==null?0:Xe.length;if(Ti){var Yi=nf(Xe,ri,!0)-1;if(zp(Xe[Yi],ri))return Yi}return-1}function e0(Xe){return Xe&&Xe.length?pm(Xe):[]}function uy(Xe,ri){return Xe&&Xe.length?pm(Xe,Ro(ri,2)):[]}function Fp(Xe){var ri=Xe==null?0:Xe.length;return ri?nd(Xe,1,ri):[]}function kv(Xe,ri,Ti){return Xe&&Xe.length?(ri=Ti||ri===Ae?1:ba(ri),nd(Xe,0,ri<0?0:ri)):[]}function dy(Xe,ri,Ti){var Yi=Xe==null?0:Xe.length;return Yi?(ri=Ti||ri===Ae?1:ba(ri),ri=Yi-ri,nd(Xe,ri<0?0:ri,Yi)):[]}function Pv(Xe,ri){return Xe&&Xe.length?fh(Xe,Ro(ri,3),!1,!0):[]}function Iv(Xe,ri){return Xe&&Xe.length?fh(Xe,Ro(ri,3)):[]}var hy=Oo(function(Xe){return Fc(qn(Xe,1,Ul,!0))}),wh=Oo(function(Xe){var ri=Eo(Xe);return Ul(ri)&&(ri=Ae),Fc(qn(Xe,1,Ul,!0),Ro(ri,2))}),Dc=Oo(function(Xe){var ri=Eo(Xe);return ri=typeof ri=="function"?ri:Ae,Fc(qn(Xe,1,Ul,!0),Ae,ri)});function Vf(Xe){return Xe&&Xe.length?Fc(Xe):[]}function Qd(Xe,ri){return Xe&&Xe.length?Fc(Xe,Ro(ri,2)):[]}function fa(Xe,ri){return ri=typeof ri=="function"?ri:Ae,Xe&&Xe.length?Fc(Xe,Ae,ri):[]}function t0(Xe){if(!(Xe&&Xe.length))return[];var ri=0;return Xe=ps(Xe,function(Ti){if(Ul(Ti))return ri=Pl(Ti.length,ri),!0}),Tu(ri,function(Ti){return co(Xe,qo(Ti))})}function Td(Xe,ri){if(!(Xe&&Xe.length))return[];var Ti=t0(Xe);return ri==null?Ti:co(Ti,function(Yi){return An(ri,Ae,Yi)})}var Hf=Oo(function(Xe,ri){return Ul(Xe)?In(Xe,ri):[]}),py=Oo(function(Xe){return Pp(ps(Xe,Ul))}),fy=Oo(function(Xe){var ri=Eo(Xe);return Ul(ri)&&(ri=Ae),Pp(ps(Xe,Ul),Ro(ri,2))}),my=Oo(function(Xe){var ri=Eo(Xe);return ri=typeof ri=="function"?ri:Ae,Pp(ps(Xe,Ul),Ae,ri)}),i0=Oo(t0);function n0(Xe,ri){return gh(Xe||[],ri||[],Ne)}function mf(Xe,ri){return gh(Xe||[],ri||[],hm)}var yf=Oo(function(Xe){var ri=Xe.length,Ti=ri>1?Xe[ri-1]:Ae;return Ti=typeof Ti=="function"?(Xe.pop(),Ti):Ae,Td(Xe,Ti)});function bm(Xe){var ri=Rn(Xe);return ri.__chain__=!0,ri}function $1(Xe,ri){return ri(Xe),Xe}function vf(Xe,ri){return ri(Xe)}var Uf=Jd(function(Xe){var ri=Xe.length,Ti=ri?Xe[0]:0,Yi=this.__wrapped__,wn=function(Nn){return Mi(Nn,Xe)};return ri>1||this.__actions__.length||!(Yi instanceof ta)||!Ac(Ti)?this.thru(wn):(Yi=Yi.slice(Ti,+Ti+(ri?1:0)),Yi.__actions__.push({func:vf,args:[wn],thisArg:Ae}),new Lc(Yi,this.__chain__).thru(function(Nn){return ri&&!Nn.length&&Nn.push(Ae),Nn}))});function ig(){return bm(this)}function Sh(){return new Lc(this.value(),this.__chain__)}function r0(){this.__values__===Ae&&(this.__values__=ol(this.value()));var Xe=this.__index__>=this.__values__.length,ri=Xe?Ae:this.__values__[this.__index__++];return{done:Xe,value:ri}}function s0(){return this}function Rv(Xe){for(var ri,Ti=this;Ti instanceof Ap;){var Yi=Vi(Ti);Yi.__index__=0,Yi.__values__=Ae,ri?wn.__wrapped__=Yi:ri=Yi;var wn=Yi;Ti=Ti.__wrapped__}return wn.__wrapped__=Xe,ri}function Ur(){var Xe=this.__wrapped__;if(Xe instanceof ta){var ri=Xe;return this.__actions__.length&&(ri=new ta(this)),ri=ri.reverse(),ri.__actions__.push({func:vf,args:[Ca],thisArg:Ae}),new Lc(ri,this.__chain__)}return this.thru(Ca)}function Ts(){return mh(this.__wrapped__,this.__actions__)}var es=ju(function(Xe,ri,Ti){Bo.call(Xe,Ti)?++Xe[Ti]:Si(Xe,Ti,1)});function Us(Xe,ri,Ti){var Yi=ma(Xe)?ls:Vn;return Ti&&Sl(Xe,ri,Ti)&&(ri=Ae),Yi(Xe,Ro(ri,3))}function io(Xe,ri){var Ti=ma(Xe)?ps:Jn;return Ti(Xe,Ro(ri,3))}var po=ny(ir),bo=ny(Fr);function na(Xe,ri){return qn(pc(Xe,ri),1)}function Xo(Xe,ri){return qn(pc(Xe,ri),er)}function sl(Xe,ri,Ti){return Ti=Ti===Ae?1:ba(Ti),qn(pc(Xe,ri),Ti)}function hc(Xe,ri){var Ti=ma(Xe)?Kn:On;return Ti(Xe,Ro(ri,3))}function Ja(Xe,ri){var Ti=ma(Xe)?Br:Bn;return Ti(Xe,Ro(ri,3))}var Zl=ju(function(Xe,ri,Ti){Bo.call(Xe,Ti)?Xe[Ti].push(ri):Si(Xe,Ti,[ri])});function nu(Xe,ri,Ti,Yi){Xe=Du(Xe)?Xe:sg(Xe),Ti=Ti&&!Yi?ba(Ti):0;var wn=Xe.length;return Ti<0&&(Ti=Pl(wn+Ti,0)),Vv(Xe)?Ti<=wn&&Xe.indexOf(ri,Ti)>-1:!!wn&&Na(Xe,ri,Ti)>-1}var Jh=Oo(function(Xe,ri,Ti){var Yi=-1,wn=typeof ri=="function",Nn=Du(Xe)?Tr(Xe.length):[];return On(Xe,function(cr){Nn[++Yi]=wn?An(ri,cr,Ti):ds(cr,ri,Ti)}),Nn}),Qh=ju(function(Xe,ri,Ti){Si(Xe,Ti,ri)});function pc(Xe,ri){var Ti=ma(Xe)?co:Hu;return Ti(Xe,Ro(ri,3))}function Ed(Xe,ri,Ti,Yi){return Xe==null?[]:(ma(ri)||(ri=ri==null?[]:[ri]),Ti=Yi?Ae:Ti,ma(Ti)||(Ti=Ti==null?[]:[Ti]),Za(Xe,ri,Ti))}var Gf=ju(function(Xe,ri,Ti){Xe[Ti?0:1].push(ri)},function(){return[[],[]]});function F1(Xe,ri,Ti){var Yi=ma(Xe)?Vo:$u,wn=arguments.length<3;return Yi(Xe,Ro(ri,4),Ti,wn,On)}function z1(Xe,ri,Ti){var Yi=ma(Xe)?Dl:$u,wn=arguments.length<3;return Yi(Xe,Ro(ri,4),Ti,wn,Bn)}function B1(Xe,ri){var Ti=ma(Xe)?ps:Jn;return Ti(Xe,o0(Ro(ri,3)))}function Ov(Xe){var ri=ma(Xe)?Rf:Xh;return ri(Xe)}function Wk(Xe,ri,Ti){(Ti?Sl(Xe,ri,Ti):ri===Ae)?ri=1:ri=ba(ri);var Yi=ma(Xe)?Wh:Av;return Yi(Xe,ri)}function qk(Xe){var ri=ma(Xe)?qh:Zd;return ri(Xe)}function Xk(Xe){if(Xe==null)return 0;if(Du(Xe))return Vv(Xe)?Ku(Xe):Xe.length;var ri=uc(Xe);return ri==Ji||ri==_s?Xe.size:Hl(Xe).length}function Zk(Xe,ri,Ti){var Yi=ma(Xe)?Wa:jg;return Ti&&Sl(Xe,ri,Ti)&&(ri=Ae),Yi(Xe,Ro(ri,3))}var Yk=Oo(function(Xe,ri){if(Xe==null)return[];var Ti=ri.length;return Ti>1&&Sl(Xe,ri[0],ri[1])?ri=[]:Ti>2&&Sl(ri[0],ri[1],ri[2])&&(ri=[ri[0]]),Za(Xe,qn(ri,1),[])}),Lv=Hh||function(){return ya.Date.now()};function $v(Xe,ri){if(typeof ri!="function")throw new Ho(Ve);return Xe=ba(Xe),function(){if(--Xe<1)return ri.apply(this,arguments)}}function fS(Xe,ri,Ti){return ri=Ti?Ae:ri,ri=Xe&&ri==null?Xe.length:ri,wd(Xe,Je,Ae,Ae,Ae,Ae,ri)}function N1(Xe,ri){var Ti;if(typeof ri!="function")throw new Ho(Ve);return Xe=ba(Xe),function(){return--Xe>0&&(Ti=ri.apply(this,arguments)),Xe<=1&&(ri=Ae),Ti}}var xm=Oo(function(Xe,ri,Ti){var Yi=ii;if(Ti.length){var wn=Kc(Ti,df(xm));Yi|=zi}return wd(Xe,Yi,ri,Ti,wn)}),mS=Oo(function(Xe,ri,Ti){var Yi=ii|hi;if(Ti.length){var wn=Kc(Ti,df(mS));Yi|=zi}return wd(ri,Yi,Xe,Ti,wn)});function gS(Xe,ri,Ti){ri=Ti?Ae:ri;var Yi=wd(Xe,Li,Ae,Ae,Ae,Ae,Ae,ri);return Yi.placeholder=gS.placeholder,Yi}function yS(Xe,ri,Ti){ri=Ti?Ae:ri;var Yi=wd(Xe,Di,Ae,Ae,Ae,Ae,Ae,ri);return Yi.placeholder=yS.placeholder,Yi}function V1(Xe,ri,Ti){var Yi,wn,Nn,cr,Dr,Hr,Rs=0,Os=!1,Vs=!1,mo=!0;if(typeof Xe!="function")throw new Ho(Ve);ri=su(ri)||0,nc(Ti)&&(Os=!!Ti.leading,Vs="maxWait"in Ti,Nn=Vs?Pl(su(Ti.maxWait)||0,ri):Nn,mo="trailing"in Ti?!!Ti.trailing:mo);function Ao(zc){var Vp=Yi,tp=wn;return Yi=wn=Ae,Rs=zc,cr=Xe.apply(tp,Vp),cr}function Uo(zc){return Rs=zc,Dr=Yh(Ra,ri),Os?Ao(zc):cr}function Sa(zc){var Vp=zc-Hr,tp=zc-Rs,uT=ri-Vp;return Vs?Ta(uT,Nn-tp):uT}function Go(zc){var Vp=zc-Hr,tp=zc-Rs;return Hr===Ae||Vp>=ri||Vp<0||Vs&&tp>=Nn}function Ra(){var zc=Lv();if(Go(zc))return Ua(zc);Dr=Yh(Ra,Sa(zc))}function Ua(zc){return Dr=Ae,mo&&Yi?Ao(zc):(Yi=wn=Ae,cr)}function eh(){Dr!==Ae&&rf(Dr),Rs=0,Yi=Hr=wn=Dr=Ae}function Mc(){return Dr===Ae?cr:Ua(Lv())}function th(){var zc=Lv(),Vp=Go(zc);if(Yi=arguments,wn=this,Hr=zc,Vp){if(Dr===Ae)return Uo(Hr);if(Vs)return rf(Dr),Dr=Yh(Ra,ri),Ao(Hr)}return Dr===Ae&&(Dr=Yh(Ra,ri)),cr}return th.cancel=eh,th.flush=Mc,th}var vS=Oo(function(Xe,ri){return Dn(Xe,1,ri)}),Kk=Oo(function(Xe,ri,Ti){return Dn(Xe,su(ri)||0,Ti)});function Jk(Xe){return wd(Xe,Gi)}function Fv(Xe,ri){if(typeof Xe!="function"||ri!=null&&typeof ri!="function")throw new Ho(Ve);var Ti=function(){var Yi=arguments,wn=ri?ri.apply(this,Yi):Yi[0],Nn=Ti.cache;if(Nn.has(wn))return Nn.get(wn);var cr=Xe.apply(this,Yi);return Ti.cache=Nn.set(wn,cr)||Nn,cr};return Ti.cache=new(Fv.Cache||mu),Ti}Fv.Cache=mu;function o0(Xe){if(typeof Xe!="function")throw new Ho(Ve);return function(){var ri=arguments;switch(ri.length){case 0:return!Xe.call(this);case 1:return!Xe.call(this,ri[0]);case 2:return!Xe.call(this,ri[0],ri[1]);case 3:return!Xe.call(this,ri[0],ri[1],ri[2])}return!Xe.apply(this,ri)}}function zv(Xe){return N1(2,Xe)}var Bv=Ip(function(Xe,ri){ri=ri.length==1&&ma(ri[0])?co(ri[0],pu(Ro())):co(qn(ri,1),pu(Ro()));var Ti=ri.length;return Oo(function(Yi){for(var wn=-1,Nn=Ta(Yi.length,Ti);++wn<Nn;)Yi[wn]=ri[wn].call(this,Yi[wn]);return An(Xe,this,Yi)})}),H1=Oo(function(Xe,ri){var Ti=Kc(ri,df(H1));return wd(Xe,zi,Ae,ri,Ti)}),_S=Oo(function(Xe,ri){var Ti=Kc(ri,df(_S));return wd(Xe,an,Ae,ri,Ti)}),gy=Jd(function(Xe,ri){return wd(Xe,fi,Ae,Ae,Ae,ri)});function yy(Xe,ri){if(typeof Xe!="function")throw new Ho(Ve);return ri=ri===Ae?ri:ba(ri),Oo(Xe,ri)}function bS(Xe,ri){if(typeof Xe!="function")throw new Ho(Ve);return ri=ri==null?0:Pl(ba(ri),0),Oo(function(Ti){var Yi=Ti[ri],wn=Kd(Ti,0,ri);return Yi&&Fo(wn,Yi),An(Xe,this,wn)})}function vy(Xe,ri,Ti){var Yi=!0,wn=!0;if(typeof Xe!="function")throw new Ho(Ve);return nc(Ti)&&(Yi="leading"in Ti?!!Ti.leading:Yi,wn="trailing"in Ti?!!Ti.trailing:wn),V1(Xe,ri,{leading:Yi,maxWait:ri,trailing:wn})}function xS(Xe){return fS(Xe,1)}function Qk(Xe,ri){return H1(yh(ri),Xe)}function wS(){if(!arguments.length)return[];var Xe=arguments[0];return ma(Xe)?Xe:[Xe]}function SS(Xe){return qi(Xe,gi)}function TS(Xe,ri){return ri=typeof ri=="function"?ri:Ae,qi(Xe,gi,ri)}function ES(Xe){return qi(Xe,qe|gi)}function CS(Xe,ri){return ri=typeof ri=="function"?ri:Ae,qi(Xe,qe|gi,ri)}function AS(Xe,ri){return ri==null||hn(Xe,ri,bu(ri))}function zp(Xe,ri){return Xe===ri||Xe!==Xe&&ri!==ri}var eP=Zh(cs),DS=Zh(function(Xe,ri){return Xe>=ri}),_f=Is(function(){return arguments}())?Is:function(Xe){return fc(Xe)&&Bo.call(Xe,"callee")&&!om.call(Xe,"callee")},ma=Tr.isArray,sd=pi?pu(pi):ho;function Du(Xe){return Xe!=null&&by(Xe.length)&&!ep(Xe)}function Ul(Xe){return fc(Xe)&&Du(Xe)}function _y(Xe){return Xe===!0||Xe===!1||fc(Xe)&&zr(Xe)==hr}var jf=Ys||ob,MS=Ci?pu(Ci):ko;function tP(Xe){return fc(Xe)&&Xe.nodeType===1&&!Cd(Xe)}function iP(Xe){if(Xe==null)return!0;if(Du(Xe)&&(ma(Xe)||typeof Xe=="string"||typeof Xe.splice=="function"||jf(Xe)||bf(Xe)||_f(Xe)))return!Xe.length;var ri=uc(Xe);if(ri==Ji||ri==_s)return!Xe.size;if(Au(Xe))return!Hl(Xe).length;for(var Ti in Xe)if(Bo.call(Xe,Ti))return!1;return!0}function nP(Xe,ri){return Js(Xe,ri)}function rP(Xe,ri,Ti){Ti=typeof Ti=="function"?Ti:Ae;var Yi=Ti?Ti(Xe,ri):Ae;return Yi===Ae?Js(Xe,ri,Ae,Ti):!!Yi}function U1(Xe){if(!fc(Xe))return!1;var ri=zr(Xe);return ri==Ue||ri==xs||typeof Xe.message=="string"&&typeof Xe.name=="string"&&!Cd(Xe)}function sP(Xe){return typeof Xe=="number"&&kl(Xe)}function ep(Xe){if(!nc(Xe))return!1;var ri=zr(Xe);return ri==bi||ri==Ii||ri==ji||ri==_r}function kS(Xe){return typeof Xe=="number"&&Xe==ba(Xe)}function by(Xe){return typeof Xe=="number"&&Xe>-1&&Xe%1==0&&Xe<=Hn}function nc(Xe){var ri=typeof Xe;return Xe!=null&&(ri=="object"||ri=="function")}function fc(Xe){return Xe!=null&&typeof Xe=="object"}var PS=Ui?pu(Ui):ia;function oP(Xe,ri){return Xe===ri||No(Xe,ri,Jm(ri))}function aP(Xe,ri,Ti){return Ti=typeof Ti=="function"?Ti:Ae,No(Xe,ri,Jm(ri),Ti)}function lP(Xe){return ru(Xe)&&Xe!=+Xe}function cP(Xe){if(Kg(Xe))throw new ws(Fe);return lo(Xe)}function IS(Xe){return Xe===null}function uP(Xe){return Xe==null}function ru(Xe){return typeof Xe=="number"||fc(Xe)&&zr(Xe)==Mn}function Cd(Xe){if(!fc(Xe)||zr(Xe)!=Fn)return!1;var ri=_p(Xe);if(ri===null)return!0;var Ti=Bo.call(ri,"constructor")&&ri.constructor;return typeof Ti=="function"&&Ti instanceof Ti&&Ql.call(Ti)==Bh}var xy=Ki?pu(Ki):Ea;function Nv(Xe){return kS(Xe)&&Xe>=-Hn&&Xe<=Hn}var ng=mn?pu(mn):Va;function Vv(Xe){return typeof Xe=="string"||!ma(Xe)&&fc(Xe)&&zr(Xe)==so}function Th(Xe){return typeof Xe=="symbol"||fc(Xe)&&zr(Xe)==Ls}var bf=yn?pu(yn):Pa;function dP(Xe){return Xe===Ae}function hP(Xe){return fc(Xe)&&uc(Xe)==As}function RS(Xe){return fc(Xe)&&zr(Xe)==no}var OS=Zh(gu),LS=Zh(function(Xe,ri){return Xe<=ri});function ol(Xe){if(!Xe)return[];if(Du(Xe))return Vv(Xe)?Jl(Xe):ec(Xe);if(pd&&Xe[pd])return Yc(Xe[pd]());var ri=uc(Xe),Ti=ri==Ji?zh:ri==_s?dd:sg;return Ti(Xe)}function Bp(Xe){if(!Xe)return Xe===0?Xe:0;if(Xe=su(Xe),Xe===er||Xe===-er){var ri=Xe<0?-1:1;return ri*Er}return Xe===Xe?Xe:0}function ba(Xe){var ri=Bp(Xe),Ti=ri%1;return ri===ri?Ti?ri-Ti:ri:0}function G1(Xe){return Xe?Fi(ba(Xe),0,wi):0}function su(Xe){if(typeof Xe=="number")return Xe;if(Th(Xe))return os;if(nc(Xe)){var ri=typeof Xe.valueOf=="function"?Xe.valueOf():Xe;Xe=nc(ri)?ri+"":ri}if(typeof Xe!="string")return Xe===0?Xe:+Xe;Xe=Tc(Xe);var Ti=dl.test(Xe);return Ti||dp.test(Xe)?Sf(Xe.slice(2),Ti?2:8):Ba.test(Xe)?os:+Xe}function rg(Xe){return nl(Xe,Mu(Xe))}function $S(Xe){return Xe?Fi(ba(Xe),-Hn,Hn):Xe===0?Xe:0}function ml(Xe){return Xe==null?"":Ya(Xe)}var pP=_d(function(Xe,ri){if(Au(ri)||Du(ri)){nl(ri,bu(ri),Xe);return}for(var Ti in ri)Bo.call(ri,Ti)&&Ne(Xe,Ti,ri[Ti])}),FS=_d(function(Xe,ri){nl(ri,Mu(ri),Xe)}
vendor: 18,218 bytes, lines 27-44
27),Hv=_d(function(Xe,ri,Ti,Yi){nl(ri,Mu(ri),Xe,Yi)}),fP=_d(function(Xe,ri,Ti,Yi){nl(ri,bu(ri),Xe,Yi)}),mP=Jd(Mi);function gP(Xe,ri){var Ti=Bu(Xe);return ri==null?Ti:ai(Ti,ri)}var yP=Oo(function(Xe,ri){Xe=uo(Xe);var Ti=-1,Yi=ri.length,wn=Yi>2?ri[2]:Ae;for(wn&&Sl(ri[0],ri[1],wn)&&(Yi=1);++Ti<Yi;)for(var Nn=ri[Ti],cr=Mu(Nn),Dr=-1,Hr=cr.length;++Dr<Hr;){var Rs=cr[Dr],Os=Xe[Rs];(Os===Ae||zp(Os,Nl[Rs])&&!Bo.call(Xe,Rs))&&(Xe[Rs]=Nn[Rs])}return Xe}),vP=Oo(function(Xe){return Xe.push(Ae,zf),An(NS,Ae,Xe)});function Uv(Xe,ri){return Xc(Xe,Ro(ri,3),dr)}function a0(Xe,ri){return Xc(Xe,Ro(ri,3),$r)}function zS(Xe,ri){return Xe==null?Xe:gr(Xe,Ro(ri,3),Mu)}function Gv(Xe,ri){return Xe==null?Xe:vr(Xe,Ro(ri,3),Mu)}function j1(Xe,ri){return Xe&&dr(Xe,Ro(ri,3))}function _P(Xe,ri){return Xe&&$r(Xe,Ro(ri,3))}function bP(Xe){return Xe==null?[]:Pr(Xe,bu(Xe))}function xP(Xe){return Xe==null?[]:Pr(Xe,Mu(Xe))}function jv(Xe,ri,Ti){var Yi=Xe==null?Ae:Vr(Xe,ri);return Yi===Ae?Ti:Yi}function W1(Xe,ri){return Xe!=null&&eg(Xe,ri,Xr)}function qu(Xe,ri){return Xe!=null&&eg(Xe,ri,ss)}var q1=gm(function(Xe,ri,Ti){ri!=null&&typeof ri.toString!="function"&&(ri=da.call(ri)),Xe[ri]=Ti},nb(ku)),BS=gm(function(Xe,ri,Ti){ri!=null&&typeof ri.toString!="function"&&(ri=da.call(ri)),Bo.call(Xe,ri)?Xe[ri].push(Ti):Xe[ri]=[Ti]},Ro),Eh=Oo(ds);function bu(Xe){return Du(Xe)?td(Xe):Hl(Xe)}function Mu(Xe){return Du(Xe)?td(Xe,!0):Wl(Xe)}function l0(Xe,ri){var Ti={};return ri=Ro(ri,3),dr(Xe,function(Yi,wn,Nn){Si(Ti,ri(Yi,wn,Nn),Yi)}),Ti}function X1(Xe,ri){var Ti={};return ri=Ro(ri,3),dr(Xe,function(Yi,wn,Nn){Si(Ti,wn,ri(Yi,wn,Nn))}),Ti}var Wv=_d(function(Xe,ri,Ti){Yo(Xe,ri,Ti)}),NS=_d(function(Xe,ri,Ti,Yi){Yo(Xe,ri,Ti,Yi)}),VS=Jd(function(Xe,ri){var Ti={};if(Xe==null)return Ti;var Yi=!1;ri=co(ri,function(Nn){return Nn=yu(Nn,Xe),Yi||(Yi=Nn.length>1),Nn}),nl(Xe,Rp(Xe),Ti),Yi&&(Ti=qi(Ti,qe|ci|gi,cf));for(var wn=ri.length;wn--;)ey(Ti,ri[wn]);return Ti});function HS(Xe,ri){return Z1(Xe,o0(Ro(ri)))}var wP=Jd(function(Xe,ri){return Xe==null?{}:Cc(Xe,ri)});function Z1(Xe,ri){if(Xe==null)return{};var Ti=co(Rp(Xe),function(Yi){return[Yi]});return ri=Ro(ri),Mp(Xe,Ti,function(Yi,wn){return ri(Yi,wn[0])})}function US(Xe,ri,Ti){ri=yu(ri,Xe);var Yi=-1,wn=ri.length;for(wn||(wn=1,Xe=Ae);++Yi<wn;){var Nn=Xe==null?Ae:Xe[_i(ri[Yi])];Nn===Ae&&(Yi=wn,Nn=Ti),Xe=ep(Nn)?Nn.call(Xe):Nn}return Xe}function Y1(Xe,ri,Ti){return Xe==null?Xe:hm(Xe,ri,Ti)}function GS(Xe,ri,Ti,Yi){return Yi=typeof Yi=="function"?Yi:Ae,Xe==null?Xe:hm(Xe,ri,Ti,Yi)}var jS=rd(bu),K1=rd(Mu);function Wf(Xe,ri,Ti){var Yi=ma(Xe),wn=Yi||jf(Xe)||bf(Xe);if(ri=Ro(ri,4),Ti==null){var Nn=Xe&&Xe.constructor;wn?Ti=Yi?new Nn:[]:nc(Xe)?Ti=ep(Nn)?Bu(_p(Xe)):{}:Ti={}}return(wn?Kn:dr)(Xe,function(cr,Dr,Hr){return ri(Ti,cr,Dr,Hr)}),Ti}function WS(Xe,ri){return Xe==null?!0:ey(Xe,ri)}function qS(Xe,ri,Ti){return Xe==null?Xe:ty(Xe,ri,yh(Ti))}function XS(Xe,ri,Ti,Yi){return Yi=typeof Yi=="function"?Yi:Ae,Xe==null?Xe:ty(Xe,ri,yh(Ti),Yi)}function sg(Xe){return Xe==null?[]:Xp(Xe,bu(Xe))}function SP(Xe){return Xe==null?[]:Xp(Xe,Mu(Xe))}function TP(Xe,ri,Ti){return Ti===Ae&&(Ti=ri,ri=Ae),Ti!==Ae&&(Ti=su(Ti),Ti=Ti===Ti?Ti:0),ri!==Ae&&(ri=su(ri),ri=ri===ri?ri:0),Fi(su(Xe),ri,Ti)}function ZS(Xe,ri,Ti){return ri=Bp(ri),Ti===Ae?(Ti=ri,ri=0):Ti=Bp(Ti),Xe=su(Xe),Lr(Xe,ri,Ti)}function YS(Xe,ri,Ti){if(Ti&&typeof Ti!="boolean"&&Sl(Xe,ri,Ti)&&(ri=Ti=Ae),Ti===Ae&&(typeof ri=="boolean"?(Ti=ri,ri=Ae):typeof Xe=="boolean"&&(Ti=Xe,Xe=Ae)),Xe===Ae&&ri===Ae?(Xe=0,ri=1):(Xe=Bp(Xe),ri===Ae?(ri=Xe,Xe=0):ri=Bp(ri)),Xe>ri){var Yi=Xe;Xe=ri,ri=Yi}if(Ti||Xe%1||ri%1){var wn=lm();return Ta(Xe+wn*(ri-Xe+Fh("1e-"+((wn+"").length-1))),ri)}return yd(Xe,ri)}var wy=bh(function(Xe,ri,Ti){return ri=ri.toLowerCase(),Xe+(Ti?J1(ri):ri)});function J1(Xe){return Yv(ml(Xe).toLowerCase())}function Q1(Xe){return Xe=ml(Xe),Xe&&Xe.replace(hp,Fd).replace(Wc,"")}function Np(Xe,ri,Ti){Xe=ml(Xe),ri=Ya(ri);var Yi=Xe.length;Ti=Ti===Ae?Yi:Fi(ba(Ti),0,Yi);var wn=Ti;return Ti-=ri.length,Ti>=0&&Xe.slice(Ti,wn)==ri}function eb(Xe){return Xe=ml(Xe),Xe&&yr.test(Xe)?Xe.replace(Yn,Tf):Xe}function c0(Xe){return Xe=ml(Xe),Xe&&gs.test(Xe)?Xe.replace(wr,"\\$&"):Xe}var u0=bh(function(Xe,ri,Ti){return Xe+(Ti?"-":"")+ri.toLowerCase()}),KS=bh(function(Xe,ri,Ti){return Xe+(Ti?" ":"")+ri.toLowerCase()}),qv=Xm("toLowerCase");function JS(Xe,ri,Ti){Xe=ml(Xe),ri=ba(ri);var Yi=ri?Ku(Xe):0;if(!ri||Yi>=ri)return Xe;var wn=(ri-Yi)/2;return $f(wp(wn),Ti)+Xe+$f(ed(wn),Ti)}function Xv(Xe,ri,Ti){Xe=ml(Xe),ri=ba(ri);var Yi=ri?Ku(Xe):0;return ri&&Yi<ri?Xe+$f(ri-Yi,Ti):Xe}function Zv(Xe,ri,Ti){Xe=ml(Xe),ri=ba(ri);var Yi=ri?Ku(Xe):0;return ri&&Yi<ri?$f(ri-Yi,Ti)+Xe:Xe}function EP(Xe,ri,Ti){return Ti||ri==null?ri=0:ri&&(ri=+ri),am(ml(Xe).replace(Es,""),ri||0)}function CP(Xe,ri,Ti){return(Ti?Sl(Xe,ri,Ti):ri===Ae)?ri=1:ri=ba(ri),Gu(ml(Xe),ri)}function AP(){var Xe=arguments,ri=ml(Xe[0]);return Xe.length<3?ri:ri.replace(Xe[1],Xe[2])}var DP=bh(function(Xe,ri,Ti){return Xe+(Ti?"_":"")+ri.toLowerCase()});function MP(Xe,ri,Ti){return Ti&&typeof Ti!="number"&&Sl(Xe,ri,Ti)&&(ri=Ti=Ae),Ti=Ti===Ae?wi:Ti>>>0,Ti?(Xe=ml(Xe),Xe&&(typeof ri=="string"||ri!=null&&!xy(ri))&&(ri=Ya(ri),!ri&&Bl(Xe))?Kd(Jl(Xe),0,Ti):Xe.split(ri,Ti)):[]}var d0=bh(function(Xe,ri,Ti){return Xe+(Ti?" ":"")+Yv(ri)});function h0(Xe,ri,Ti){return Xe=ml(Xe),Ti=Ti==null?0:Fi(ba(Ti),0,Xe.length),ri=Ya(ri),Xe.slice(Ti,Ti+ri.length)==ri}function tb(Xe,ri,Ti){var Yi=Rn.templateSettings;Ti&&Sl(Xe,ri,Ti)&&(ri=Ae),Xe=ml(Xe),ri=Hv({},ri,Yi,Ol);var wn=Hv({},ri.imports,Yi.imports,Ol),Nn=bu(wn),cr=Xp(wn,Nn),Dr,Hr,Rs=0,Os=ri.interpolate||ld,Vs="__p += '",mo=ua((ri.escape||ld).source+"|"+Os.source+"|"+(Os===br?za:ld).source+"|"+(ri.evaluate||ld).source+"|$","g"),Ao="//# sourceURL="+(Bo.call(ri,"sourceURL")?(ri.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++mp+"]")+`
28`;Xe.replace(mo,function(Go,Ra,Ua,eh,Mc,th){return Ua||(Ua=eh),Vs+=Xe.slice(Rs,th).replace(Id,Ef),Ra&&(Dr=!0,Vs+=`' +
29__e(`+Ra+`) +
30'`),Mc&&(Hr=!0,Vs+=`';
31`+Mc+`;
32__p += '`),Ua&&(Vs+=`' +
33((__t = (`+Ua+`)) == null ? '' : __t) +
34'`),Rs=th+Go.length,Go}),Vs+=`';
35`;var Uo=Bo.call(ri,"variable")&&ri.variable;if(!Uo)Vs=`with (obj) {
36`+Vs+`
37}
38`;else if(tl.test(Uo))throw new ws(Ie);Vs=(Hr?Vs.replace(cl,""):Vs).replace(Zn,"$1").replace(bn,"$1;"),Vs="function("+(Uo||"obj")+`) {
39`+(Uo?"":`obj || (obj = {});
40`)+"var __t, __p = ''"+(Dr?", __e = _.escape":"")+(Hr?`, __j = Array.prototype.join;
41function print() { __p += __j.call(arguments, '') }
42`:`;
43`)+Vs+`return __p
44}`;var Sa=Kv(function(){return yo(Nn,Ao+"return "+Vs).apply(Ae,cr)});if(Sa.source=Vs,U1(Sa))throw Sa;return Sa}function kP(Xe){return ml(Xe).toLowerCase()}function QS(Xe){return ml(Xe).toUpperCase()}function PP(Xe,ri,Ti){if(Xe=ml(Xe),Xe&&(Ti||ri===Ae))return Tc(Xe);if(!Xe||!(ri=Ya(ri)))return Xe;var Yi=Jl(Xe),wn=Jl(ri),Nn=xa(Yi,wn),cr=Fu(Yi,wn)+1;return Kd(Yi,Nn,cr).join("")}function ib(Xe,ri,Ti){if(Xe=ml(Xe),Xe&&(Ti||ri===Ae))return Xe.slice(0,Jc(Xe)+1);if(!Xe||!(ri=Ya(ri)))return Xe;var Yi=Jl(Xe),wn=Fu(Yi,Jl(ri))+1;return Kd(Yi,0,wn).join("")}function IP(Xe,ri,Ti){if(Xe=ml(Xe),Xe&&(Ti||ri===Ae))return Xe.replace(Es,"");if(!Xe||!(ri=Ya(ri)))return Xe;var Yi=Jl(Xe),wn=xa(Yi,Jl(ri));return Kd(Yi,wn).join("")}function Sy(Xe,ri){var Ti=fn,Yi=cn;if(nc(ri)){var wn="separator"in ri?ri.separator:wn;Ti="length"in ri?ba(ri.length):Ti,Yi="omission"in ri?Ya(ri.omission):Yi}Xe=ml(Xe);var Nn=Xe.length;if(Bl(Xe)){var cr=Jl(Xe);Nn=cr.length}if(Ti>=Nn)return Xe;var Dr=Ti-Ku(Yi);if(Dr<1)return Yi;var Hr=cr?Kd(cr,0,Dr).join(""):Xe.slice(0,Dr);if(wn===Ae)return Hr+Yi;if(cr&&(Dr+=Hr.length-Dr),xy(wn)){if(Xe.slice(Dr).search(wn)){var Rs,Os=Hr;for(wn.global||(wn=ua(wn.source,ml(ul.exec(wn))+"g")),wn.lastIndex=0;Rs=wn.exec(Os);)var Vs=Rs.index;Hr=Hr.slice(0,Vs===Ae?Dr:Vs)}}else if(Xe.indexOf(Ya(wn),Dr)!=Dr){var mo=Hr.lastIndexOf(wn);mo>-1&&(Hr=Hr.slice(0,mo))}return Hr+Yi}function wm(Xe){return Xe=ml(Xe),Xe&&or.test(Xe)?Xe.replace(xn,Vd):Xe}var eT=bh(function(Xe,ri,Ti){return Xe+(Ti?" ":"")+ri.toUpperCase()}),Yv=Xm("toUpperCase");function Ty(Xe,ri,Ti){return Xe=ml(Xe),ri=Ti?Ae:ri,ri===Ae?Bd(Xe)?Ir(Xe):Wo(Xe):Xe.match(ri)||[]}var Kv=Oo(function(Xe,ri){try{return An(Xe,Ae,ri)}catch(Ti){return U1(Ti)?Ti:new ws(Ti)}}),RP=Jd(function(Xe,ri){return Kn(ri,function(Ti){Ti=_i(Ti),Si(Xe,Ti,xm(Xe[Ti],Xe))}),Xe});function tT(Xe){var ri=Xe==null?0:Xe.length,Ti=Ro();return Xe=ri?co(Xe,function(Yi){if(typeof Yi[1]!="function")throw new Ho(Ve);return[Ti(Yi[0]),Yi[1]]}):[],Oo(function(Yi){for(var wn=-1;++wn<ri;){var Nn=Xe[wn];if(An(Nn[0],this,Yi))return An(Nn[1],this,Yi)}})}function og(Xe){return Xi(qi(Xe,qe))}function nb(Xe){return function(){return Xe}}function Sm(Xe,ri){return Xe==null||Xe!==Xe?ri:Xe}var OP=Xg(),Ey=Xg(!0);function ku(Xe){return Xe}function ag(Xe){return ha(typeof Xe=="function"?Xe:qi(Xe,qe))}function Cy(Xe){return rl(qi(Xe,qe))}function Jv(Xe,ri){return Ha(Xe,qi(ri,qe))}var LP=Oo(function(Xe,ri){return function(Ti){return ds(Ti,Xe,ri)}}),$P=Oo(function(Xe,ri){return function(Ti){return ds(Xe,Ti,ri)}});function Tm(Xe,ri,Ti){var Yi=bu(ri),wn=Pr(ri,Yi);Ti==null&&!(nc(ri)&&(wn.length||!Yi.length))&&(Ti=ri,ri=Xe,Xe=this,wn=Pr(ri,bu(ri)));var Nn=!(nc(Ti)&&"chain"in Ti)||!!Ti.chain,cr=ep(Xe);return Kn(wn,function(Dr){var Hr=ri[Dr];Xe[Dr]=Hr,cr&&(Xe.prototype[Dr]=function(){var Rs=this.__chain__;if(Nn||Rs){var Os=Xe(this.__wrapped__),Vs=Os.__actions__=ec(this.__actions__);return Vs.push({func:Hr,args:arguments,thisArg:Xe}),Os.__chain__=Rs,Os}return Hr.apply(Xe,Fo([this.value()],arguments))})}),Xe}function Qv(){return ya._===this&&(ya._=vp),this}function rb(){}function iT(Xe){return Xe=ba(Xe),Oo(function(ri){return pl(ri,Xe)})}var nT=Rl(co),FP=Rl(ls),rT=Rl(Wa);function sT(Xe){return tg(Xe)?qo(_i(Xe)):Cu(Xe)}function oT(Xe){return function(ri){return Xe==null?Ae:Vr(Xe,ri)}}var zP=Ff(),aT=Ff(!0);function sb(){return[]}function ob(){return!1}function e_(){return{}}function t_(){return""}function i_(){return!0}function BP(Xe,ri){if(Xe=ba(Xe),Xe<1||Xe>Hn)return[];var Ti=wi,Yi=Ta(Xe,wi);ri=Ro(ri),Xe-=wi;for(var wn=Tu(Yi,ri);++Ti<Xe;)ri(Ti);return wn}function ab(Xe){return ma(Xe)?co(Xe,_i):Th(Xe)?[Xe]:ec(vi(ml(Xe)))}function lb(Xe){var ri=++Ju;return ml(Xe)+ri}var Em=xd(function(Xe,ri){return Xe+ri},0),NP=lf("ceil"),cb=xd(function(Xe,ri){return Xe/ri},1),lT=lf("floor");function n_(Xe){return Xe&&Xe.length?pn(Xe,ku,cs):Ae}function VP(Xe,ri){return Xe&&Xe.length?pn(Xe,Ro(ri,2),cs):Ae}function HP(Xe){return Ic(Xe,ku)}function UP(Xe,ri){return Ic(Xe,Ro(ri,2))}function GP(Xe){return Xe&&Xe.length?pn(Xe,ku,gu):Ae}function ub(Xe,ri){return Xe&&Xe.length?pn(Xe,Ro(ri,2),gu):Ae}var jP=xd(function(Xe,ri){return Xe*ri},1),Ay=lf("round"),WP=xd(function(Xe,ri){return Xe-ri},0);function qP(Xe){return Xe&&Xe.length?Ml(Xe,ku):0}function cT(Xe,ri){return Xe&&Xe.length?Ml(Xe,Ro(ri,2)):0}return Rn.after=$v,Rn.ary=fS,Rn.assign=pP,Rn.assignIn=FS,Rn.assignInWith=Hv,Rn.assignWith=fP,Rn.at=mP,Rn.before=N1,Rn.bind=xm,Rn.bindAll=RP,Rn.bindKey=mS,Rn.castArray=wS,Rn.chain=bm,Rn.chunk=sn,Rn.compact=dn,Rn.concat=ln,Rn.cond=tT,Rn.conforms=og,Rn.constant=nb,Rn.countBy=es,Rn.create=gP,Rn.curry=gS,Rn.curryRight=yS,Rn.debounce=V1,Rn.defaults=yP,Rn.defaultsDeep=vP,Rn.defer=vS,Rn.delay=Kk,Rn.difference=_n,Rn.differenceBy=$n,Rn.differenceWith=Ln,Rn.drop=Sr,Rn.dropRight=lr,Rn.dropRightWhile=Gn,Rn.dropWhile=mr,Rn.fill=rr,Rn.filter=io,Rn.flatMap=na,Rn.flatMapDeep=Xo,Rn.flatMapDepth=sl,Rn.flatten=qr,Rn.flattenDeep=Jr,Rn.flattenDepth=Wr,Rn.flip=Jk,Rn.flow=OP,Rn.flowRight=Ey,Rn.fromPairs=Ms,Rn.functions=bP,Rn.functionsIn=xP,Rn.groupBy=Zl,Rn.initial=eo,Rn.intersection=oo,Rn.intersectionBy=Cs,Rn.intersectionWith=Zs,Rn.invert=q1,Rn.invertBy=BS,Rn.invokeMap=Jh,Rn.iteratee=ag,Rn.keyBy=Qh,Rn.keys=bu,Rn.keysIn=Mu,Rn.map=pc,Rn.mapKeys=l0,Rn.mapValues=X1,Rn.matches=Cy,Rn.matchesProperty=Jv,Rn.memoize=Fv,Rn.merge=Wv,Rn.mergeWith=NS,Rn.method=LP,Rn.methodOf=$P,Rn.mixin=Tm,Rn.negate=o0,Rn.nthArg=iT,Rn.omit=VS,Rn.omitBy=HS,Rn.once=zv,Rn.orderBy=Ed,Rn.over=nT,Rn.overArgs=Bv,Rn.overEvery=FP,Rn.overSome=rT,Rn.partial=H1,Rn.partialRight=_S,Rn.partition=Gf,Rn.pick=wP,Rn.pickBy=Z1,Rn.property=sT,Rn.propertyOf=oT,Rn.pull=Da,Rn.pullAll=Ka,Rn.pullAllBy=wa,Rn.pullAllWith=fl,Rn.pullAt=Tl,Rn.range=zP,Rn.rangeRight=aT,Rn.rearg=gy,Rn.reject=B1,Rn.remove=Ll,Rn.rest=yy,Rn.reverse=Ca,Rn.sampleSize=Wk,Rn.set=Y1,Rn.setWith=GS,Rn.shuffle=qk,Rn.slice=dc,Rn.sortBy=Yk,Rn.sortedUniq=e0,Rn.sortedUniqBy=uy,Rn.split=MP,Rn.spread=bS,Rn.tail=Fp,Rn.take=kv,Rn.takeRight=dy,Rn.takeRightWhile=Pv,Rn.takeWhile=Iv,Rn.tap=$1,Rn.throttle=vy,Rn.thru=vf,Rn.toArray=ol,Rn.toPairs=jS,Rn.toPairsIn=K1,Rn.toPath=ab,Rn.toPlainObject=rg,Rn.transform=Wf,Rn.unary=xS,Rn.union=hy,Rn.unionBy=wh,Rn.unionWith=Dc,Rn.uniq=Vf,Rn.uniqBy=Qd,Rn.uniqWith=fa,Rn.unset=WS,Rn.unzip=t0,Rn.unzipWith=Td,Rn.update=qS,Rn.updateWith=XS,Rn.values=sg,Rn.valuesIn=SP,Rn.without=Hf,Rn.words=Ty,Rn.wrap=Qk,Rn.xor=py,Rn.xorBy=fy,Rn.xorWith=my,Rn.zip=i0,Rn.zipObject=n0,Rn.zipObjectDeep=mf,Rn.zipWith=yf,Rn.entries=jS,Rn.entriesIn=K1,Rn.extend=FS,Rn.extendWith=Hv,Tm(Rn,Rn),Rn.add=Em,Rn.attempt=Kv,Rn.camelCase=wy,Rn.capitalize=J1,Rn.ceil=NP,Rn.clamp=TP,Rn.clone=SS,Rn.cloneDeep=ES,Rn.cloneDeepWith=CS,Rn.cloneWith=TS,Rn.conformsTo=AS,Rn.deburr=Q1,Rn.defaultTo=Sm,Rn.divide=cb,Rn.endsWith=Np,Rn.eq=zp,Rn.escape=eb,Rn.escapeRegExp=c0,Rn.every=Us,Rn.find=po,Rn.findIndex=ir,Rn.findKey=Uv,Rn.findLast=bo,Rn.findLastIndex=Fr,Rn.findLastKey=a0,Rn.floor=lT,Rn.forEach=hc,Rn.forEachRight=Ja,Rn.forIn=zS,Rn.forInRight=Gv,Rn.forOwn=j1,Rn.forOwnRight=_P,Rn.get=jv,Rn.gt=eP,Rn.gte=DS,Rn.has=W1,Rn.hasIn=qu,Rn.head=Ps,Rn.identity=ku,Rn.includes=nu,Rn.indexOf=Xs,Rn.inRange=ZS,Rn.invoke=Eh,Rn.isArguments=_f,Rn.isArray=ma,Rn.isArrayBuffer=sd,Rn.isArrayLike=Du,Rn.isArrayLikeObject=Ul,Rn.isBoolean=_y,Rn.isBuffer=jf,Rn.isDate=MS,Rn.isElement=tP,Rn.isEmpty=iP,Rn.isEqual=nP,Rn.isEqualWith=rP,Rn.isError=U1,Rn.isFinite=sP,Rn.isFunction=ep,Rn.isInteger=kS,Rn.isLength=by,Rn.isMap=PS,Rn.isMatch=oP,Rn.isMatchWith=aP,Rn.isNaN=lP,Rn.isNative=cP,Rn.isNil=uP,Rn.isNull=IS,Rn.isNumber=ru,Rn.isObject=nc,Rn.isObjectLike=fc,Rn.isPlainObject=Cd,Rn.isRegExp=xy,Rn.isSafeInteger=Nv,Rn.isSet=ng,Rn.isString=Vv,Rn.isSymbol=Th,Rn.isTypedArray=bf,Rn.isUndefined=dP,Rn.isWeakMap=hP,Rn.isWeakSet=RS,Rn.join=Io,Rn.kebabCase=u0,Rn.last=Eo,Rn.lastIndexOf=pa,Rn.lowerCase=KS,Rn.lowerFirst=qv,Rn.lt=OS,Rn.lte=LS,Rn.max=n_,Rn.maxBy=VP,Rn.mean=HP,Rn.meanBy=UP,Rn.min=GP,Rn.minBy=ub,Rn.stubArray=sb,Rn.stubFalse=ob,Rn.stubObject=e_,Rn.stubString=t_,Rn.stubTrue=i_,Rn.multiply=jP,Rn.nth=Ia,Rn.noConflict=Qv,Rn.noop=rb,Rn.now=Lv,Rn.pad=JS,Rn.padEnd=Xv,Rn.padStart=Zv,Rn.parseInt=EP,Rn.random=YS,Rn.reduce=F1,Rn.reduceRight=z1,Rn.repeat=CP,Rn.replace=AP,Rn.result=US,Rn.round=Ay,Rn.runInContext=Un,Rn.sample=Ov,Rn.size=Xk,Rn.snakeCase=DP,Rn.some=Zk,Rn.sortedIndex=$p,Rn.sortedIndexBy=Xl,Rn.sortedIndexOf=ic,Rn.sortedLastIndex=Kh,Rn.sortedLastIndexBy=Xn,Rn.sortedLastIndexOf=iu,Rn.startCase=d0,Rn.startsWith=h0,Rn.subtract=WP,Rn.sum=qP,Rn.sumBy=cT,Rn.template=tb,Rn.times=BP,Rn.toFinite=Bp,Rn.toInteger=ba,Rn.toLength=G1,Rn.toLower=kP,Rn.toNumber=su,Rn.toSafeInteger=$S,Rn.toString=ml,Rn.toUpper=QS,Rn.trim=PP,Rn.trimEnd=ib,Rn.trimStart=IP,Rn.truncate=Sy,Rn.unescape=wm,Rn.uniqueId=lb,Rn.upperCase=eT,Rn.upperFirst=Yv,Rn.each=hc,Rn.eachRight=Ja,Rn.first=Ps,Tm(Rn,function(){var Xe={};return dr(Rn,function(ri,Ti){Bo.call(Rn.prototype,Ti)||(Xe[Ti]=ri)}),Xe}(),{chain:!1}),Rn.VERSION=ke,Kn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(Xe){Rn[Xe].placeholder=Rn}),Kn(["drop","take"],function(Xe,ri){ta.prototype[Xe]=function(Ti){Ti=Ti===Ae?1:Pl(ba(Ti),0);var Yi=this.__filtered__&&!ri?new ta(this):this.clone();return Yi.__filtered__?Yi.__takeCount__=Ta(Ti,Yi.__takeCount__):Yi.__views__.push({size:Ta(Ti,wi),type:Xe+(Yi.__dir__<0?"Right":"")}),Yi},ta.prototype[Xe+"Right"]=function(Ti){return this.reverse()[Xe](Ti).reverse()}}),Kn(["filter","map","takeWhile"],function(Xe,ri){var Ti=ri+1,Yi=Ti==Cn||Ti==xr;ta.prototype[Xe]=function(wn){var Nn=this.clone();return Nn.__iteratees__.push({iteratee:Ro(wn,3),type:Ti}),Nn.__filtered__=Nn.__filtered__||Yi,Nn}}),Kn(["head","last"],function(Xe,ri){var Ti="take"+(ri?"Right":"");ta.prototype[Xe]=function(){return this[Ti](1).value()[0]}}),Kn(["initial","tail"],function(Xe,ri){var Ti="drop"+(ri?"":"Right");ta.prototype[Xe]=function(){return this.__filtered__?new ta(this):this[Ti](1)}}),ta.prototype.compact=function(){return this.filter(ku)},ta.prototype.find=function(Xe){return this.filter(Xe).head()},ta.prototype.findLast=function(Xe){return this.reverse().find(Xe)},ta.prototype.invokeMap=Oo(function(Xe,ri){return typeof Xe=="function"?new ta(this):this.map(function(Ti){return ds(Ti,Xe,ri)})}),ta.prototype.reject=function(Xe){return this.filter(o0(Ro(Xe)))},ta.prototype.slice=function(Xe,ri){Xe=ba(Xe);var Ti=this;return Ti.__filtered__&&(Xe>0||ri<0)?new ta(Ti):(Xe<0?Ti=Ti.takeRight(-Xe):Xe&&(Ti=Ti.drop(Xe)),ri!==Ae&&(ri=ba(ri),Ti=ri<0?Ti.dropRight(-ri):Ti.take(ri-Xe)),Ti)},ta.prototype.takeRightWhile=function(Xe){return this.reverse().takeWhile(Xe).reverse()},ta.prototype.toArray=function(){return this.take(wi)},dr(ta.prototype,function(Xe,ri){var Ti=/^(?:filter|find|map|reject)|While$/.test(ri),Yi=/^(?:head|last)$/.test(ri),wn=Rn[Yi?"take"+(ri=="last"?"Right":""):ri],Nn=Yi||/^find/.test(ri);wn&&(Rn.prototype[ri]=function(){var cr=this.__wrapped__,Dr=Yi?[1]:arguments,Hr=cr instanceof ta,Rs=Dr[0],Os=Hr||ma(cr),Vs=function(Ra){var Ua=wn.apply(Rn,Fo([Ra],Dr));return Yi&&mo?Ua[0]:Ua};Os&&Ti&&typeof Rs=="function"&&Rs.length!=1&&(Hr=Os=!1);var mo=this.__chain__,Ao=!!this.__actions__.length,Uo=Nn&&!mo,Sa=Hr&&!Ao;if(!Nn&&Os){cr=Sa?cr:new ta(this);var Go=Xe.apply(cr,Dr);return Go.__actions__.push({func:vf,args:[Vs],thisArg:Ae}),new Lc(Go,mo)}return Uo&&Sa?Xe.apply(this,Dr):(Go=this.thru(Vs),Uo?Yi?Go.value()[0]:Go.value():Go)})}),Kn(["pop","push","shift","sort","splice","unshift"],function(Xe){var ri=Oa[Xe],Ti=/^(?:push|sort|unshift)$/.test(Xe)?"tap":"thru",Yi=/^(?:pop|shift)$/.test(Xe);Rn.prototype[Xe]=function(){var wn=arguments;if(Yi&&!this.__chain__){var Nn=this.value();return ri.apply(ma(Nn)?Nn:[],wn)}return this[Ti](function(cr){return ri.apply(ma(cr)?cr:[],wn)})}}),dr(ta.prototype,function(Xe,ri){var Ti=Rn[ri];if(Ti){var Yi=Ti.name+"";
44Bo.call(dh,Yi)||(dh[Yi]=[]),dh[Yi].push({name:ri,func:Ti})}}),dh[Lf(Ae,hi).name]=[{name:"wrapper",func:Ae}],ta.prototype.clone=qm,ta.prototype.reverse=Jp,ta.prototype.value=kf,Rn.prototype.at=Uf,Rn.prototype.chain=ig,Rn.prototype.commit=Sh,Rn.prototype.next=r0,Rn.prototype.plant=Rv,Rn.prototype.reverse=Ur,Rn.prototype.toJSON=Rn.prototype.valueOf=Rn.prototype.value=Ts,Rn.prototype.first=Rn.prototype.head,pd&&(Rn.prototype[pd]=s0),Rn},is=Yr();ac?((ac.exports=is)._=is,Lu._=is):ya._=is}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const _$3=getDefaultExportFromCjs(lodashExports);function accordion(De={}){return{active:[],multiple:!1,init:function(){this.active=(De==null?void 0:De.active)??[],this.multiple=(De==null?void 0:De.multiple)??!1},activeIncludes:function(_e){return _$3.includes(this.active,_e)},toggleActive:function(_e){return this.activeIncludes(_e)||this.multiple?this.active=_$3.xor(this.active,[_e]):this.active=[_e]}}}var n$5,l$6,u$3,i$5,t$5,r$5,o$6,f$3,e$7,c$4={},s$4=[],a$4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h$4(De,_e){for(var Ae in _e)De[Ae]=_e[Ae];return De}function v$3(De){var _e=De.parentNode;_e&&_e.removeChild(De)}function y$2(De,_e,Ae){var ke,Le,Fe,Ve={};for(Fe in _e)Fe=="key"?ke=_e[Fe]:Fe=="ref"?Le=_e[Fe]:Ve[Fe]=_e[Fe];if(arguments.length>2&&(Ve.children=arguments.length>3?n$5.call(arguments,2):Ae),typeof De=="function"&&De.defaultProps!=null)for(Fe in De.defaultProps)Ve[Fe]===void 0&&(Ve[Fe]=De.defaultProps[Fe]);return p$2(De,Ve,ke,Le,null)}function p$2(De,_e,Ae,ke,Le){var Fe={type:De,props:_e,key:Ae,ref:ke,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Le??++u$3};return Le==null&&l$6.vnode!=null&&l$6.vnode(Fe),Fe}function d$2(){return{current:null}}function _$2(De){return De.children}function k$3(De,_e,Ae,ke,Le){var Fe;for(Fe in Ae)Fe==="children"||Fe==="key"||Fe in _e||g$4(De,Fe,null,Ae[Fe],ke);for(Fe in _e)Le&&typeof _e[Fe]!="function"||Fe==="children"||Fe==="key"||Fe==="value"||Fe==="checked"||Ae[Fe]===_e[Fe]||g$4(De,Fe,_e[Fe],Ae[Fe],ke)}function b$2(De,_e,Ae){_e[0]==="-"?De.setProperty(_e,Ae??""):De[_e]=Ae==null?"":typeof Ae!="number"||a$4.test(_e)?Ae:Ae+"px"}function g$4(De,_e,Ae,ke,Le){var Fe;e:if(_e==="style")if(typeof Ae=="string")De.style.cssText=Ae;else{if(typeof ke=="string"&&(De.style.cssText=ke=""),ke)for(_e in ke)Ae&&_e in Ae||b$2(De.style,_e,"");if(Ae)for(_e in Ae)ke&&Ae[_e]===ke[_e]||b$2(De.style,_e,Ae[_e])}else if(_e[0]==="o"&&_e[1]==="n")Fe=_e!==(_e=_e.replace(/Capture$/,"")),_e=_e.toLowerCase()in De?_e.toLowerCase().slice(2):_e.slice(2),De.l||(De.l={}),De.l[_e+Fe]=Ae,Ae?ke||De.addEventListener(_e,Fe?w$4:m$3,Fe):De.removeEventListener(_e,Fe?w$4:m$3,Fe);else if(_e!=="dangerouslySetInnerHTML"){if(Le)_e=_e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(_e!=="width"&&_e!=="height"&&_e!=="href"&&_e!=="list"&&_e!=="form"&&_e!=="tabIndex"&&_e!=="download"&&_e in De)try{De[_e]=Ae??"";break e}catch{}typeof Ae=="function"||(Ae==null||Ae===!1&&_e.indexOf("-")==-1?De.removeAttribute(_e):De.setAttribute(_e,Ae))}}function m$3(De){t$5=!0;try{return this.l[De.type+!1](l$6.event?l$6.event(De):De)}finally{t$5=!1}}function w$4(De){t$5=!0;try{return this.l[De.type+!0](l$6.event?l$6.event(De):De)}finally{t$5=!1}}function x$4(De,_e){this.props=De,this.context=_e}function A$2(De,_e){if(_e==null)return De.__?A$2(De.__,De.__.__k.indexOf(De)+1):null;for(var Ae;_e<De.__k.length;_e++)if((Ae=De.__k[_e])!=null&&Ae.__e!=null)return Ae.__e;return typeof De.type=="function"?A$2(De):null}function P$3(De){var _e,Ae;if((De=De.__)!=null&&De.__c!=null){for(De.__e=De.__c.base=null,_e=0;_e<De.__k.length;_e++)if((Ae=De.__k[_e])!=null&&Ae.__e!=null){De.__e=De.__c.base=Ae.__e;break}return P$3(De)}}function C$3(De){t$5?setTimeout(De):f$3(De)}function T$3(De){(!De.__d&&(De.__d=!0)&&r$5.push(De)&&!$$4.__r++||o$6!==l$6.debounceRendering)&&((o$6=l$6.debounceRendering)||C$3)($$4)}function $$4(){var De,_e,Ae,ke,Le,Fe,Ve,Ie;for(r$5.sort(function(je,Ke){return je.__v.__b-Ke.__v.__b});De=r$5.shift();)De.__d&&(_e=r$5.length,ke=void 0,Le=void 0,Ve=(Fe=(Ae=De).__v).__e,(Ie=Ae.__P)&&(ke=[],(Le=h$4({},Fe)).__v=Fe.__v+1,M$2(Ie,Fe,Le,Ae.__n,Ie.ownerSVGElement!==void 0,Fe.__h!=null?[Ve]:null,ke,Ve??A$2(Fe),Fe.__h),N$2(ke,Fe),Fe.__e!=Ve&&P$3(Fe)),r$5.length>_e&&r$5.sort(function(je,Ke){return je.__v.__b-Ke.__v.__b}));$$4.__r=0}function H$3(De,_e,Ae,ke,Le,Fe,Ve,Ie,je,Ke){var $e,qe,ci,gi,Ai,oi,ii,hi=ke&&ke.__k||s$4,Ei=hi.length;for(Ae.__k=[],$e=0;$e<_e.length;$e++)if((gi=Ae.__k[$e]=(gi=_e[$e])==null||typeof gi=="boolean"?null:typeof gi=="string"||typeof gi=="number"||typeof gi=="bigint"?p$2(null,gi,null,null,gi):Array.isArray(gi)?p$2(_$2,{children:gi},null,null,null):gi.__b>0?p$2(gi.type,gi.props,gi.key,gi.ref?gi.ref:null,gi.__v):gi)!=null){if(gi.__=Ae,gi.__b=Ae.__b+1,(ci=
vendor: 16,937 bytes, line 44
44hi[$e])===null||ci&&gi.key==ci.key&&gi.type===ci.type)hi[$e]=void 0;else for(qe=0;qe<Ei;qe++){if((ci=hi[qe])&&gi.key==ci.key&&gi.type===ci.type){hi[qe]=void 0;break}ci=null}M$2(De,gi,ci=ci||c$4,Le,Fe,Ve,Ie,je,Ke),Ai=gi.__e,(qe=gi.ref)&&ci.ref!=qe&&(ii||(ii=[]),ci.ref&&ii.push(ci.ref,null,gi),ii.push(qe,gi.__c||Ai,gi)),Ai!=null?(oi==null&&(oi=Ai),typeof gi.type=="function"&&gi.__k===ci.__k?gi.__d=je=I$3(gi,je,De):je=z$3(De,gi,ci,hi,Ai,je),typeof Ae.type=="function"&&(Ae.__d=je)):je&&ci.__e==je&&je.parentNode!=De&&(je=A$2(ci))}for(Ae.__e=oi,$e=Ei;$e--;)hi[$e]!=null&&(typeof Ae.type=="function"&&hi[$e].__e!=null&&hi[$e].__e==Ae.__d&&(Ae.__d=L$3(ke).nextSibling),q$1(hi[$e],hi[$e]));if(ii)for($e=0;$e<ii.length;$e++)S$2(ii[$e],ii[++$e],ii[++$e])}function I$3(De,_e,Ae){for(var ke,Le=De.__k,Fe=0;Le&&Fe<Le.length;Fe++)(ke=Le[Fe])&&(ke.__=De,_e=typeof ke.type=="function"?I$3(ke,_e,Ae):z$3(Ae,ke,ke,Le,ke.__e,_e));return _e}function j$3(De,_e){return _e=_e||[],De==null||typeof De=="boolean"||(Array.isArray(De)?De.some(function(Ae){j$3(Ae,_e)}):_e.push(De)),_e}function z$3(De,_e,Ae,ke,Le,Fe){var Ve,Ie,je;if(_e.__d!==void 0)Ve=_e.__d,_e.__d=void 0;else if(Ae==null||Le!=Fe||Le.parentNode==null)e:if(Fe==null||Fe.parentNode!==De)De.appendChild(Le),Ve=null;else{for(Ie=Fe,je=0;(Ie=Ie.nextSibling)&&je<ke.length;je+=1)if(Ie==Le)break e;De.insertBefore(Le,Fe),Ve=Fe}return Ve!==void 0?Ve:Le.nextSibling}function L$3(De){var _e,Ae,ke;if(De.type==null||typeof De.type=="string")return De.__e;if(De.__k){for(_e=De.__k.length-1;_e>=0;_e--)if((Ae=De.__k[_e])&&(ke=L$3(Ae)))return ke}return null}function M$2(De,_e,Ae,ke,Le,Fe,Ve,Ie,je){var Ke,$e,qe,ci,gi,Ai,oi,ii,hi,Ei,Li,Di,zi,an,Je,fi=_e.type;if(_e.constructor!==void 0)return null;Ae.__h!=null&&(je=Ae.__h,Ie=_e.__e=Ae.__e,_e.__h=null,Fe=[Ie]),(Ke=l$6.__b)&&Ke(_e);try{e:if(typeof fi=="function"){if(ii=_e.props,hi=(Ke=fi.contextType)&&ke[Ke.__c],Ei=Ke?hi?hi.props.value:Ke.__:ke,Ae.__c?oi=($e=_e.__c=Ae.__c).__=$e.__E:("prototype"in fi&&fi.prototype.render?_e.__c=$e=new fi(ii,Ei):(_e.__c=$e=new x$4(ii,Ei),$e.constructor=fi,$e.render=B$3),hi&&hi.sub($e),$e.props=ii,$e.state||($e.state={}),$e.context=Ei,$e.__n=ke,qe=$e.__d=!0,$e.__h=[],$e._sb=[]),$e.__s==null&&($e.__s=$e.state),fi.getDerivedStateFromProps!=null&&($e.__s==$e.state&&($e.__s=h$4({},$e.__s)),h$4($e.__s,fi.getDerivedStateFromProps(ii,$e.__s))),ci=$e.props,gi=$e.state,$e.__v=_e,qe)fi.getDerivedStateFromProps==null&&$e.componentWillMount!=null&&$e.componentWillMount(),$e.componentDidMount!=null&&$e.__h.push($e.componentDidMount);else{if(fi.getDerivedStateFromProps==null&&ii!==ci&&$e.componentWillReceiveProps!=null&&$e.componentWillReceiveProps(ii,Ei),!$e.__e&&$e.shouldComponentUpdate!=null&&$e.shouldComponentUpdate(ii,$e.__s,Ei)===!1||_e.__v===Ae.__v){for(_e.__v!==Ae.__v&&($e.props=ii,$e.state=$e.__s,$e.__d=!1),_e.__e=Ae.__e,_e.__k=Ae.__k,_e.__k.forEach(function(Gi){Gi&&(Gi.__=_e)}),Li=0;Li<$e._sb.length;Li++)$e.__h.push($e._sb[Li]);$e._sb=[],$e.__h.length&&Ve.push($e);break e}$e.componentWillUpdate!=null&&$e.componentWillUpdate(ii,$e.__s,Ei),$e.componentDidUpdate!=null&&$e.__h.push(function(){$e.componentDidUpdate(ci,gi,Ai)})}if($e.context=Ei,$e.props=ii,$e.__P=De,Di=l$6.__r,zi=0,"prototype"in fi&&fi.prototype.render){for($e.state=$e.__s,$e.__d=!1,Di&&Di(_e),Ke=$e.render($e.props,$e.state,$e.context),an=0;an<$e._sb.length;an++)$e.__h.push($e._sb[an]);$e._sb=[]}else do $e.__d=!1,Di&&Di(_e),Ke=$e.render($e.props,$e.state,$e.context),$e.state=$e.__s;while($e.__d&&++zi<25);$e.state=$e.__s,$e.getChildContext!=null&&(ke=h$4(h$4({},ke),$e.getChildContext())),qe||$e.getSnapshotBeforeUpdate==null||(Ai=$e.getSnapshotBeforeUpdate(ci,gi)),Je=Ke!=null&&Ke.type===_$2&&Ke.key==null?Ke.props.children:Ke,H$3(De,Array.isArray(Je)?Je:[Je],_e,Ae,ke,Le,Fe,Ve,Ie,je),$e.base=_e.__e,_e.__h=null,$e.__h.length&&Ve.push($e),oi&&($e.__E=$e.__=null),$e.__e=!1}else Fe==null&&_e.__v===Ae.__v?(_e.__k=Ae.__k,_e.__e=Ae.__e):_e.__e=O$1(Ae.__e,_e,Ae,ke,Le,Fe,Ve,je);(Ke=l$6.diffed)&&Ke(_e)}catch(Gi){_e.__v=null,(je||Fe!=null)&&(_e.__e=Ie,_e.__h=!!je,Fe[Fe.indexOf(Ie)]=null),l$6.__e(Gi,_e,Ae)}}function N$2(De,_e){l$6.__c&&l$6.__c(_e,De),De.some(function(Ae){try{De=Ae.__h,Ae.__h=[],De.some(function(ke){ke.call(Ae)})}catch(ke){l$6.__e(ke,Ae.__v)}})}function O$1(De,_e,Ae,ke,Le,Fe,Ve,Ie){var je,Ke,$e,qe=Ae.props,ci=_e.props,gi=_e.type,Ai=0;if(gi==="svg"&&(Le=!0),Fe!=null){for(;Ai<Fe.length;Ai++)if((je=Fe[Ai])&&"setAttribute"in je==!!gi&&(gi?je.localName===gi:je.nodeType===3)){De=je,Fe[Ai]=null;break}}if(De==null){if(gi===null)return document.createTextNode(ci);De=Le?document.createElementNS("http://www.w3.org/2000/svg",gi):document.createElement(gi,ci.is&&ci),Fe=null,Ie=!1}if(gi===null)qe===ci||Ie&&De.data===ci||(De.data=ci);else{if(Fe=Fe&&n$5.call(De.childNodes),Ke=(qe=Ae.props||c$4).dangerouslySetInnerHTML,$e=ci.dangerouslySetInnerHTML,!Ie){if(Fe!=null)for(qe={},Ai=0;Ai<De.attributes.length;Ai++)qe[De.attributes[Ai].name]=De.attributes[Ai].value;($e||Ke)&&($e&&(Ke&&$e.__html==Ke.__html||$e.__html===De.innerHTML)||(De.innerHTML=$e&&$e.__html||""))}if(k$3(De,ci,qe,Le,Ie),$e)_e.__k=[];else if(Ai=_e.props.children,H$3(De,Array.isArray(Ai)?Ai:[Ai],_e,Ae,ke,Le&&gi!=="foreignObject",Fe,Ve,Fe?Fe[0]:Ae.__k&&A$2(Ae,0),Ie),Fe!=null)for(Ai=Fe.length;Ai--;)Fe[Ai]!=null&&v$3(Fe[Ai]);Ie||("value"in ci&&(Ai=ci.value)!==void 0&&(Ai!==De.value||gi==="progress"&&!Ai||gi==="option"&&Ai!==qe.value)&&g$4(De,"value",Ai,qe.value,!1),"checked"in ci&&(Ai=ci.checked)!==void 0&&Ai!==De.checked&&g$4(De,"checked",Ai,qe.checked,!1))}return De}function S$2(De,_e,Ae){try{typeof De=="function"?De(_e):De.current=_e}catch(ke){l$6.__e(ke,Ae)}}function q$1(De,_e,Ae){var ke,Le;if(l$6.unmount&&l$6.unmount(De),(ke=De.ref)&&(ke.current&&ke.current!==De.__e||S$2(ke,null,_e)),(ke=De.__c)!=null){if(ke.componentWillUnmount)try{ke.componentWillUnmount()}catch(Fe){l$6.__e(Fe,_e)}ke.base=ke.__P=null,De.__c=void 0}if(ke=De.__k)for(Le=0;Le<ke.length;Le++)ke[Le]&&q$1(ke[Le],_e,Ae||typeof De.type!="function");Ae||De.__e==null||v$3(De.__e),De.__=De.__e=De.__d=void 0}function B$3(De,_e,Ae){return this.constructor(De,Ae)}function D$3(De,_e,Ae){var ke,Le,Fe;l$6.__&&l$6.__(De,_e),Le=(ke=typeof Ae=="function")?null:Ae&&Ae.__k||_e.__k,Fe=[],M$2(_e,De=(!ke&&Ae||_e).__k=y$2(_$2,null,[De]),Le||c$4,c$4,_e.ownerSVGElement!==void 0,!ke&&Ae?[Ae]:Le?null:_e.firstChild?n$5.call(_e.childNodes):null,Fe,!ke&&Ae?Ae:Le?Le.__e:_e.firstChild,ke),N$2(Fe,De)}function G$2(De,_e){var Ae={__c:_e="__cC"+e$7++,__:De,Consumer:function(ke,Le){return ke.children(Le)},Provider:function(ke){var Le,Fe;return this.getChildContext||(Le=[],(Fe={})[_e]=this,this.getChildContext=function(){return Fe},this.shouldComponentUpdate=function(Ve){this.props.value!==Ve.value&&Le.some(function(Ie){Ie.__e=!0,T$3(Ie)})},this.sub=function(Ve){Le.push(Ve);var Ie=Ve.componentWillUnmount;Ve.componentWillUnmount=function(){Le.splice(Le.indexOf(Ve),1),Ie&&Ie.call(Ve)}}),ke.children}};return Ae.Provider.__=Ae.Consumer.contextType=Ae}n$5=s$4.slice,l$6={__e:function(De,_e,Ae,ke){for(var Le,Fe,Ve;_e=_e.__;)if((Le=_e.__c)&&!Le.__)try{if((Fe=Le.constructor)&&Fe.getDerivedStateFromError!=null&&(Le.setState(Fe.getDerivedStateFromError(De)),Ve=Le.__d),Le.componentDidCatch!=null&&(Le.componentDidCatch(De,ke||{}),Ve=Le.__d),Ve)return Le.__E=Le}catch(Ie){De=Ie}throw De}},u$3=0,i$5=function(De){return De!=null&&De.constructor===void 0},t$5=!1,x$4.prototype.setState=function(De,_e){var Ae;Ae=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=h$4({},this.state),typeof De=="function"&&(De=De(h$4({},Ae),this.props)),De&&h$4(Ae,De),De!=null&&this.__v&&(_e&&this._sb.push(_e),T$3(this))},x$4.prototype.forceUpdate=function(De){this.__v&&(this.__e=!0,De&&this.__h.push(De),T$3(this))},x$4.prototype.render=_$2,r$5=[],f$3=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$$4.__r=0,e$7=0;var r$4,u$2,i$4,f$2=[],c$3=[],e$6=l$6.__b,a$3=l$6.__r,v$2=l$6.diffed,l$5=l$6.__c,m$2=l$6.unmount;function b$1(){for(var De;De=f$2.shift();)if(De.__P&&De.__H)try{De.__H.__h.forEach(k$2),De.__H.__h.forEach(w$3),De.__H.__h=[]}catch(_e){De.__H.__h=[],l$6.__e(_e,De.__v)}}l$6.__b=function(De){r$4=null,e$6&&e$6(De)},l$6.__r=function(De){a$3&&a$3(De);var _e=(r$4=De.__c).__H;_e&&(u$2===r$4?(_e.__h=[],r$4.__h=[],_e.__.forEach(function(Ae){Ae.__N&&(Ae.__=Ae.__N),Ae.__V=c$3,Ae.__N=Ae.i=void 0})):(_e.__h.forEach(k$2),_e.__h.forEach(w$3),_e.__h=[])),u$2=r$4},l$6.diffed=function(De){v$2&&v$2(De);var _e=De.__c;_e&&_e.__H&&(_e.__H.__h.length&&(f$2.push(_e)!==1&&i$4===l$6.requestAnimationFrame||((i$4=l$6.requestAnimationFrame)||j$2)(b$1)),_e.__H.__.forEach(function(Ae){Ae.i&&(Ae.__H=Ae.i),Ae.__V!==c$3&&(Ae.__=Ae.__V),Ae.i=void 0,Ae.__V=c$3})),u$2=r$4=null},l$6.__c=function(De,_e){_e.some(function(Ae){try{Ae.__h.forEach(k$2),Ae.__h=Ae.__h.filter(function(ke){return!ke.__||w$3(ke)})}catch(ke){_e.some(function(Le){Le.__h&&(Le.__h=[])}),_e=[],l$6.__e(ke,Ae.__v)}}),l$5&&l$5(De,_e)},l$6.unmount=function(De){m$2&&m$2(De);var _e,Ae=De.__c;Ae&&Ae.__H&&(Ae.__H.__.forEach(function(ke){try{k$2(ke)}catch(Le){_e=Le}}),Ae.__H=void 0,_e&&l$6.__e(_e,Ae.__v))};var g$3=typeof requestAnimationFrame=="function";function j$2(De){var _e,Ae=function(){clearTimeout(ke),g$3&&cancelAnimationFrame(_e),setTimeout(De)},ke=setTimeout(Ae,100);g$3&&(_e=requestAnimationFrame(Ae))}function k$2(De){var _e=r$4,Ae=De.__c;typeof Ae=="function"&&(De.__c=void 0,Ae()),r$4=_e}function w$3(De){var _e=r$4;De.__c=De.__(),r$4=_e}function g$2(De,_e){for(var Ae in _e)De[Ae]=_e[Ae];return De}function C$2(De,_e){for(var Ae in De)if(Ae!=="__source"&&!(Ae in _e))return!0;for(var ke in _e)if(ke!=="__source"&&De[ke]!==_e[ke])return!0;return!1}function w$2(De){this.props=De}(w$2.prototype=new x$4).isPureReactComponent=!0,w$2.prototype.shouldComponentUpdate=function(De,_e){return C$2(this.props,De)||C$2(this.state,_e)};var x$3=l$6.__b;l$6.__b=function(De){De.type&&De.type.__f&&De.ref&&(De.props.ref=De.ref,De.ref=null),x$3&&x$3(De)};var T$2=l$6.__e;l$6.__e=function(De,_e,Ae,ke){if(De.then){for(var Le,Fe=_e;Fe=Fe.__;)if((Le=Fe.__c)&&Le.__c)return _e.__e==null&&(_e.__e=Ae.__e,_e.__k=Ae.__k),Le.__c(De,_e)}T$2(De,_e,Ae,ke)};var I$2=l$6.unmount;function L$2(De,_e,Ae){return De&&(De.__c&&De.__c.__H&&(De.__c.__H.__.forEach(function(ke){typeof ke.__c=="function"&&ke.__c()}),De.__c.__H=null),(De=g$2({},De)).__c!=null&&(De.__c.__P===Ae&&(De.__c.__P=_e),De.__c=null),De.__k=De.__k&&De.__k.map(function(ke){return L$2(ke,_e,Ae)})),De}function U$1(De,_e,Ae){return De&&(De.__v=null,De.__k=De.__k&&De.__k.map(function(ke){return U$1(ke,_e,Ae)}),De.__c&&De.__c.__P===_e&&(De.__e&&Ae.insertBefore(De.__e,De.__d),De.__c.__e=!0,De.__c.__P=Ae)),De}function D$2(){this.__u=0,this.t=null,this.__b=null}function F$1(De){var _e=De.__.__c;return _e&&_e.__a&&_e.__a(De)}function V$2(){this.u=null,this.o=null}l$6.unmount=function(De){var _e=De.__c;_e&&_e.__R&&_e.__R(),_e&&De.__h===!0&&(De.type=null),I$2&&I$2(De)},(D$2.prototype=new x$4).__c=function(De,_e){var Ae=_e.__c,ke=this;ke.t==null&&(ke.t=[]),ke.t.push(Ae);var Le=F$1(ke.__v),Fe=!1,Ve=function(){Fe||(Fe=!0,Ae.__R=null,Le?Le(Ie):Ie())};Ae.__R=Ve;var Ie=function(){if(!--ke.__u){if(ke.state.__a){var Ke=ke.state.__a;ke.__v.__k[0]=U$1(Ke,Ke.__c.__P,Ke.__c.__O)}var $e;for(ke.setState({__a:ke.__b=null});$e=ke.t.pop();)$e.forceUpdate()}},je=_e.__h===!0;ke.__u++||je||ke.setState({__a:ke.__b=ke.__v.__k[0]}),De.then(Ve,Ve)},D$2.prototype.componentWillUnmount=function(){this.t=[]},D$2.prototype.render=function(De,_e){if(this.__b){if(this.__v.__k){var Ae=document.createElement("div"),ke=this.__v.__k[0].__c;this.__v.__k[0]=L$2(this.__b,Ae,ke.__O=ke.__P)}this.__b=null}var Le=_e.__a&&y$2(_$2,null,De.fallback);return Le&&(Le.__h=null),[y$2(_$2,null,_e.__a?null:De.children),Le]};var W$1=function(De,_e,Ae){if(++Ae[1]===Ae[0]&&De.o.delete(_e),De.props.revealOrder&&(De.props.revealOrder[0]!=="t"||!De.o.size))for(Ae=De.u;Ae;){for(;Ae.length>3;)Ae.pop()();if(Ae[1]<Ae[0])break;De.u=Ae=Ae[2]}};function P$2(De){return this.getChildContext=function(){return De.context},De.children}function $$3(De){var _e=this,Ae=De.i;_e.componentWillUnmount=function(){D$3(null,_e.l),_e.l=null,_e.i=null},_e.i&&_e.i!==Ae&&_e.componentWillUnmount(),De.__v?(_e.l||(_e.i=Ae,_e.l={nodeType:1,parentNode:Ae,childNodes:[],appendChild:function(ke){this.childNodes.push(ke),_e.i.appendChild(ke)},insertBefore:function(ke,Le){this.childNodes.push(ke),_e.i.appendChild(ke)},removeChild:function(ke){this.childNodes.splice(this.childNodes.indexOf(ke)>>>1,1),_e.i.removeChild(ke)}}),D$3(y$2(P$2,{context:_e.context},De.__v),_e.l)):_e.l&&_e.componentWillUnmount()}function j$1(De,_e){var Ae=y$2($$3,{__v:De,i:_e});return Ae.containerInfo=_e,Ae}(V$2.prototype=new x$4).__a=function(De){var _e=this,Ae=F$1(_e.__v),ke=_e.o.get(De);return ke[0]++,function(Le){var Fe=function(){_e.props.revealOrder?(ke.push(Le),W$1(_e,De,ke)):Le()};Ae?Ae(Fe):Fe()}},V$2.prototype.render=function(De){this.u=null,this.o=new Map;var _e=j$3(De.children);De.revealOrder&&De.revealOrder[0]==="b"&&_e.reverse();for(var Ae=_e.length;Ae--;)this.o.set(_e[Ae],this.u=[1,0,this.u]);return De.children},V$2.prototype.componentDidUpdate=V$2.prototype.componentDidMount=function(){var De=this;this.o.forEach(function(_e,Ae){W$1(De,Ae,_e)})};var z$2=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,B$2=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H$2=typeof document<"u",Z$2=function(De){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(De)};x$4.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(De){Object.defineProperty(x$4.prototype,De,{configurable:!0,get:function(){return this["UNSAFE_"+De]},set:function(_e){Object.defineProperty(this,De,{configurable:!0,writable:!0,value:_e})}})});var G$1=l$6.event;function J$1(){}function K$1(){return this.cancelBubble}function Q$1(){return this.defaultPrevented}l$6.event=function(De){return G$1&&(De=G$1(De)),De.persist=J$1,De.isPropagationStopped=K$1,De.isDefaultPrevented=Q$1,De.nativeEvent=De};var nn={configurable:!0,get:function(){return this.class}},tn=l$6.vnode;l$6.vnode=function(De){var _e=De.type,Ae=De.props,ke=Ae;if(typeof _e=="string"){var Le=_e.indexOf("-")===-1;for(var Fe in ke={},Ae){var Ve=Ae[Fe];H$2&&Fe==="children"&&_e==="noscript"||Fe==="value"&&"defaultValue"in Ae&&Ve==null||(Fe==="defaultValue"&&"value"in Ae&&Ae.value==null?Fe="value":Fe==="download"&&Ve===!0?Ve="":/ondoubleclick/i.test(Fe)?Fe="ondblclick":/^onchange(textarea|input)/i.test(Fe+_e)&&!Z$2(Ae.type)?Fe="oninput":/^onfocus$/i.test(Fe)?Fe="onfocusin":/^onblur$/i.test(Fe)?Fe="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(Fe)?Fe=Fe.toLowerCase():Le&&B$2.test(Fe)?Fe=Fe.replace(/[A-Z0-9]/g,"-$&").toLowerCase():Ve===null&&(Ve=void 0),/^oninput$/i.test(Fe)&&(Fe=Fe.toLowerCase(),ke[Fe]&&(Fe="oninputCapture")),ke[Fe]=Ve)}_e=="select"&&ke.multiple&&Array.isArray(ke.value)&&(ke.value=j$3(Ae.children).forEach(function(Ie){Ie.props.selected=ke.value.indexOf(Ie.props.value)!=-1})),_e=="select"&&ke.defaultValue!=null&&(ke.value=j$3(Ae.children).forEach(function(Ie){Ie.props.selected=ke.multiple?ke.defaultValue.indexOf(Ie.props.value)!=-1:ke.defaultValue==Ie.props.value})),De.props=ke,Ae.class!=Ae.className&&(nn.enumerable="className"in Ae,Ae.className!=null&&(ke.class=Ae.className),Object.defineProperty(ke,"className",nn))}De.$$typeof=z$2,tn&&tn(De)};var en=l$6.__r;l$6.__r=function(De){en&&en(De),De.__c};const styleTexts=[],styleEls=new Map;function injectStyles(De){styleTexts.push(De),styleEls.forEach(_e=>{appendStylesTo(_e,De)})}function ensureElHasStyles(De){De.isConnected&&De.getRootNode&&registerStylesRoot(De.getRootNode())}function registerStylesRoot(De){let _e=styleEls.get(De);if(!_e||!_e.isConnected){if(_e=De.querySelector("style[data-fullcalendar]"),!_e){_e=document.createElement("style"),_e.setAttribute("data-fullcalendar","");const Ae=getNonceValue();Ae&&(_e.nonce=Ae);const ke=De===document?document.head:De,Le=De===document?ke.querySelector("script,link[rel=stylesheet],link[as=style],style"):ke.firstChild;ke.insertBefore(_e,Le)}styleEls.set(De,_e),hydrateStylesRoot(_e)}}function hydrateStylesRoot(De){for(const _e of styleTexts)appendStylesTo(De,_e)}function appendStylesTo(De,_e){const{sheet:Ae}=De,ke=Ae.cssRules.length;_e.split("}").forEach((Le,Fe)=>{Le=Le.trim(),Le&&Ae.insertRule(Le+"}",ke+Fe)})}let queriedNonceValue;function getNonceValue(){return queriedNonceValue===void 0&&(queriedNonceValue=queryNonceValue()),queriedNonceValue}function queryNonceValue(){const De=document.querySelector('meta[name="csp-nonce"]');if(De&&De.hasAttribute("content"))return De.getAttribute("content");
44const _e=document.querySelector("script[nonce]");return _e&&_e.nonce||""}typeof document<"u"&&registerStylesRoot(document);var css_248z$2
vendor: 14,303 bytes, line 44
44=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';
vendor: 72,888 bytes, line 44
44injectStyles(css_248z$2);class DelayedRunner{constructor(_e){this.drainedOption=_e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(_e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),_e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),_e))}pause(_e=""){let{pauseDepths:Ae}=this;Ae[_e]=(Ae[_e]||0)+1,this.clearTimeout()}resume(_e="",Ae){let{pauseDepths:ke}=this;_e in ke&&(Ae?delete ke[_e]:(ke[_e]-=1,ke[_e]<=0&&delete ke[_e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function removeElement(De){De.parentNode&&De.parentNode.removeChild(De)}function elementClosest(De,_e){if(De.closest)return De.closest(_e);if(!document.documentElement.contains(De))return null;do{if(elementMatches(De,_e))return De;De=De.parentElement||De.parentNode}while(De!==null&&De.nodeType===1);return null}function elementMatches(De,_e){return(De.matches||De.matchesSelector||De.msMatchesSelector).call(De,_e)}function findElements(De,_e){let Ae=De instanceof HTMLElement?[De]:De,ke=[];for(let Le=0;Le<Ae.length;Le+=1){let Fe=Ae[Le].querySelectorAll(_e);for(let Ve=0;Ve<Fe.length;Ve+=1)ke.push(Fe[Ve])}return ke}const PIXEL_PROP_RE=/(top|left|right|bottom|width|height)$/i;function applyStyle(De,_e){for(let Ae in _e)applyStyleProp(De,Ae,_e[Ae])}function applyStyleProp(De,_e,Ae){Ae==null?De.style[_e]="":typeof Ae=="number"&&PIXEL_PROP_RE.test(_e)?De.style[_e]=`${Ae}px`:De.style[_e]=Ae}function getEventTargetViaRoot(De){var _e,Ae;return(Ae=(_e=De.composedPath)===null||_e===void 0?void 0:_e.call(De)[0])!==null&&Ae!==void 0?Ae:De.target}let guid$1=0;function getUniqueDomId(){return guid$1+=1,"fc-dom-"+guid$1}function buildDelegationHandler(De,_e){return Ae=>{let ke=elementClosest(Ae.target,De);ke&&_e.call(ke,Ae,ke)}}function listenBySelector(De,_e,Ae,ke){let Le=buildDelegationHandler(Ae,ke);return De.addEventListener(_e,Le),()=>{De.removeEventListener(_e,Le)}}function listenToHoverBySelector(De,_e,Ae,ke){let Le;return listenBySelector(De,"mouseover",_e,(Fe,Ve)=>{if(Ve!==Le){Le=Ve,Ae(Fe,Ve);let Ie=je=>{Le=null,ke(je,Ve),Ve.removeEventListener("mouseleave",Ie)};Ve.addEventListener("mouseleave",Ie)}})}function createAriaClickAttrs(De){return Object.assign({onClick:De},createAriaKeyboardAttrs(De))}function createAriaKeyboardAttrs(De){return{tabIndex:0,onKeyDown(_e){(_e.key==="Enter"||_e.key===" ")&&(De(_e),_e.preventDefault())}}}let guidNumber=0;function guid(){return guidNumber+=1,String(guidNumber)}function parseFieldSpecs(De){let _e=[],Ae=[],ke,Le;for(typeof De=="string"?Ae=De.split(/\s*,\s*/):typeof De=="function"?Ae=[De]:Array.isArray(De)&&(Ae=De),ke=0;ke<Ae.length;ke+=1)Le=Ae[ke],typeof Le=="string"?_e.push(Le.charAt(0)==="-"?{field:Le.substring(1),order:-1}:{field:Le,order:1}):typeof Le=="function"&&_e.push({func:Le});return _e}function compareByFieldSpecs(De,_e,Ae){let ke,Le;for(ke=0;ke<Ae.length;ke+=1)if(Le=compareByFieldSpec(De,_e,Ae[ke]),Le)return Le;return 0}function compareByFieldSpec(De,_e,Ae){return Ae.func?Ae.func(De,_e):flexibleCompare(De[Ae.field],_e[Ae.field])*(Ae.order||1)}function flexibleCompare(De,_e){return!De&&!_e?0:_e==null?-1:De==null?1:typeof De=="string"||typeof _e=="string"?String(De).localeCompare(String(_e)):De-_e}function padStart(De,_e){let Ae=String(De);return"000".substr(0,_e-Ae.length)+Ae}function formatWithOrdinals(De,_e,Ae){return typeof De=="function"?De(..._e):typeof De=="string"?_e.reduce((ke,Le,Fe)=>ke.replace("$"+Fe,Le||""),De):Ae}function isInt(De){return De%1===0}function computeSmallestCellWidth(De){let _e=De.querySelector(".fc-scrollgrid-shrink-frame"),Ae=De.querySelector(".fc-scrollgrid-shrink-cushion");if(!_e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!Ae)throw new Error("needs fc-scrollgrid-shrink-cushion className");return De.getBoundingClientRect().width-_e.getBoundingClientRect().width+Ae.getBoundingClientRect().width}const PARSE_RE=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function createDuration(De,_e){return typeof De=="string"?parseString(De):typeof De=="object"&&De?parseObject(De):typeof De=="number"?parseObject({[_e||"milliseconds"]:De}):null}function parseString(De){let _e=PARSE_RE.exec(De);if(_e){let Ae=_e[1]?-1:1;return{years:0,months:0,days:Ae*(_e[2]?parseInt(_e[2],10):0),milliseconds:Ae*((_e[3]?parseInt(_e[3],10):0)*60*60*1e3+(_e[4]?parseInt(_e[4],10):0)*60*1e3+(_e[5]?parseInt(_e[5],10):0)*1e3+(_e[6]?parseInt(_e[6],10):0))}}return null}function parseObject(De){let _e={years:De.years||De.year||0,months:De.months||De.month||0,days:De.days||De.day||0,milliseconds:(De.hours||De.hour||0)*60*60*1e3+(De.minutes||De.minute||0)*60*1e3+(De.seconds||De.second||0)*1e3+(De.milliseconds||De.millisecond||De.ms||0)},Ae=De.weeks||De.week;return Ae&&(_e.days+=Ae*7,_e.specifiedWeeks=!0),_e}function durationsEqual(De,_e){return De.years===_e.years&&De.months===_e.months&&De.days===_e.days&&De.milliseconds===_e.milliseconds}function subtractDurations(De,_e){return{years:De.years-_e.years,months:De.months-_e.months,days:De.days-_e.days,milliseconds:De.milliseconds-_e.milliseconds}}function asRoughYears(De){return asRoughDays(De)/365}function asRoughMonths(De){return asRoughDays(De)/30}function asRoughDays(De){return asRoughMs(De)/864e5}function asRoughMs(De){return De.years*(365*864e5)+De.months*(30*864e5)+De.days*864e5+De.milliseconds}function greatestDurationDenominator(De){let _e=De.milliseconds;if(_e){if(_e%1e3!==0)return{unit:"millisecond",value:_e};if(_e%(1e3*60)!==0)return{unit:"second",value:_e/1e3};if(_e%(1e3*60*60)!==0)return{unit:"minute",value:_e/(1e3*60)};if(_e)return{unit:"hour",value:_e/(1e3*60*60)}}return De.days?De.specifiedWeeks&&De.days%7===0?{unit:"week",value:De.days/7}:{unit:"day",value:De.days}:De.months?{unit:"month",value:De.months}:De.years?{unit:"year",value:De.years}:{unit:"millisecond",value:0}}function isArraysEqual(De,_e,Ae){if(De===_e)return!0;let ke=De.length,Le;if(ke!==_e.length)return!1;for(Le=0;Le<ke;Le+=1)if(!(Ae?Ae(De[Le],_e[Le]):De[Le]===_e[Le]))return!1;return!0}const DAY_IDS=["sun","mon","tue","wed","thu","fri","sat"];function addWeeks(De,_e){let Ae=dateToUtcArray(De);return Ae[2]+=_e*7,arrayToUtcDate(Ae)}function addDays(De,_e){let Ae=dateToUtcArray(De);return Ae[2]+=_e,arrayToUtcDate(Ae)}function addMs(De,_e){let Ae=dateToUtcArray(De);return Ae[6]+=_e,arrayToUtcDate(Ae)}function diffWeeks(De,_e){return diffDays(De,_e)/7}function diffDays(De,_e){return(_e.valueOf()-De.valueOf())/(1e3*60*60*24)}function diffHours(De,_e){return(_e.valueOf()-De.valueOf())/(1e3*60*60)}function diffMinutes(De,_e){return(_e.valueOf()-De.valueOf())/(1e3*60)}function diffSeconds(De,_e){return(_e.valueOf()-De.valueOf())/1e3}function diffDayAndTime(De,_e){let Ae=startOfDay(De),ke=startOfDay(_e);return{years:0,months:0,days:Math.round(diffDays(Ae,ke)),milliseconds:_e.valueOf()-ke.valueOf()-(De.valueOf()-Ae.valueOf())}}function diffWholeWeeks(De,_e){let Ae=diffWholeDays(De,_e);return Ae!==null&&Ae%7===0?Ae/7:null}function diffWholeDays(De,_e){return timeAsMs(De)===timeAsMs(_e)?Math.round(diffDays(De,_e)):null}function startOfDay(De){return arrayToUtcDate([De.getUTCFullYear(),De.getUTCMonth(),De.getUTCDate()])}function startOfHour(De){return arrayToUtcDate([De.getUTCFullYear(),De.getUTCMonth(),De.getUTCDate(),De.getUTCHours()])}function startOfMinute(De){return arrayToUtcDate([De.getUTCFullYear(),De.getUTCMonth(),De.getUTCDate(),De.getUTCHours(),De.getUTCMinutes()])}function startOfSecond(De){return arrayToUtcDate([De.getUTCFullYear(),De.getUTCMonth(),De.getUTCDate(),De.getUTCHours(),De.getUTCMinutes(),De.getUTCSeconds()])}function weekOfYear(De,_e,Ae){let ke=De.getUTCFullYear(),Le=weekOfGivenYear(De,ke,_e,Ae);if(Le<1)return weekOfGivenYear(De,ke-1,_e,Ae);let Fe=weekOfGivenYear(De,ke+1,_e,Ae);return Fe>=1?Math.min(Le,Fe):Le}function weekOfGivenYear(De,_e,Ae,ke){let Le=arrayToUtcDate([_e,0,1+firstWeekOffset(_e,Ae,ke)]),Fe=startOfDay(De),Ve=Math.round(diffDays(Le,Fe));return Math.floor(Ve/7)+1}function firstWeekOffset(De,_e,Ae){let ke=7+_e-Ae;return-((7+arrayToUtcDate([De,0,ke]).getUTCDay()-_e)%7)+ke-1}function dateToLocalArray(De){return[De.getFullYear(),De.getMonth(),De.getDate(),De.getHours(),De.getMinutes(),De.getSeconds(),De.getMilliseconds()]}function arrayToLocalDate(De){return new Date(De[0],De[1]||0,De[2]==null?1:De[2],De[3]||0,De[4]||0,De[5]||0)}function dateToUtcArray(De){return[De.getUTCFullYear(),De.getUTCMonth(),De.getUTCDate(),De.getUTCHours(),De.getUTCMinutes(),De.getUTCSeconds(),De.getUTCMilliseconds()]}function arrayToUtcDate(De){return De.length===1&&(De=De.concat([0])),new Date(Date.UTC(...De))}function isValidDate(De){return!isNaN(De.valueOf())}function timeAsMs(De){return De.getUTCHours()*1e3*60*60+De.getUTCMinutes()*1e3*60+De.getUTCSeconds()*1e3+De.getUTCMilliseconds()}function buildIsoString(De,_e,Ae=!1){let ke=De.toISOString();return ke=ke.replace(".000",""),Ae&&(ke=ke.replace("T00:00:00Z","")),ke.length>10&&(_e==null?ke=ke.replace("Z",""):_e!==0&&(ke=ke.replace("Z",formatTimeZoneOffset(_e,!0)))),ke}function formatDayString(De){return De.toISOString().replace(/T.*$/,"")}function formatIsoMonthStr(De){return De.toISOString().match(/^\d{4}-\d{2}/)[0]}function formatTimeZoneOffset(De,_e=!1){let Ae=De<0?"-":"+",ke=Math.abs(De),Le=Math.floor(ke/60),Fe=Math.round(ke%60);return _e?`${Ae+padStart(Le,2)}:${padStart(Fe,2)}`:`GMT${Ae}${Le}${Fe?`:${padStart(Fe,2)}`:""}`}function memoize(De,_e,Ae){let ke,Le;return function(...Fe){if(!ke)Le=De.apply(this,Fe);else if(!isArraysEqual(ke,Fe)){Ae&&Ae(Le);let Ve=De.apply(this,Fe);(!_e||!_e(Ve,Le))&&(Le=Ve)}return ke=Fe,Le}}function memoizeObjArg(De,_e,Ae){let ke,Le;return Fe=>{if(!ke)Le=De.call(this,Fe);else if(!isPropsEqual(ke,Fe)){Ae&&Ae(Le);let Ve=De.call(this,Fe);(!_e||!_e(Ve,Le))&&(Le=Ve)}return ke=Fe,Le}}const EXTENDED_SETTINGS_AND_SEVERITIES={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},STANDARD_DATE_PROP_SEVERITIES={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},MERIDIEM_RE=/\s*([ap])\.?m\.?/i,COMMA_RE=/,/g,MULTI_SPACE_RE=/\s+/g,LTR_RE=/\u200e/g,UTC_RE=/UTC|GMT/;class NativeFormatter{constructor(_e){let Ae={},ke={},Le=9;for(let Fe in _e)Fe in EXTENDED_SETTINGS_AND_SEVERITIES?(ke[Fe]=_e[Fe],EXTENDED_SETTINGS_AND_SEVERITIES[Fe]<9&&(Le=Math.min(EXTENDED_SETTINGS_AND_SEVERITIES[Fe],Le))):(Ae[Fe]=_e[Fe],Fe in STANDARD_DATE_PROP_SEVERITIES&&(Le=Math.min(STANDARD_DATE_PROP_SEVERITIES[Fe],Le)));this.standardDateProps=Ae,this.extendedSettings=ke,this.smallestUnitNum=Le,this.buildFormattingFunc=memoize(buildFormattingFunc)}format(_e,Ae){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,Ae)(_e)}formatRange(_e,Ae,ke,Le){let{standardDateProps:Fe,extendedSettings:Ve}=this,Ie=computeMarkerDiffSeverity(_e.marker,Ae.marker,ke.calendarSystem);if(!Ie)return this.format(_e,ke);let je=Ie;je>1&&(Fe.year==="numeric"||Fe.year==="2-digit")&&(Fe.month==="numeric"||Fe.month==="2-digit")&&(Fe.day==="numeric"||Fe.day==="2-digit")&&(je=1);let Ke=this.format(_e,ke),$e=this.format(Ae,ke);if(Ke===$e)return Ke;let qe=computePartialFormattingOptions(Fe,je),ci=buildFormattingFunc(qe,Ve,ke),gi=ci(_e),Ai=ci(Ae),oi=findCommonInsertion(Ke,gi,$e,Ai),ii=Ve.separator||Le||ke.defaultSeparator||"";return oi?oi.before+gi+ii+Ai+oi.after:Ke+ii+$e}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function buildFormattingFunc(De,_e,Ae){let ke=Object.keys(De).length;return ke===1&&De.timeZoneName==="short"?Le=>formatTimeZoneOffset(Le.timeZoneOffset):ke===0&&_e.week?Le=>formatWeekNumber(Ae.computeWeekNumber(Le.marker),Ae.weekText,Ae.weekTextLong,Ae.locale,_e.week):buildNativeFormattingFunc(De,_e,Ae)}function buildNativeFormattingFunc(De,_e,Ae){De=Object.assign({},De),_e=Object.assign({},_e),sanitizeSettings(De,_e),De.timeZone="UTC";let ke=new Intl.DateTimeFormat(Ae.locale.codes,De),Le;if(_e.omitZeroMinute){let Fe=Object.assign({},De);delete Fe.minute,Le=new Intl.DateTimeFormat(Ae.locale.codes,Fe)}return Fe=>{let{marker:Ve}=Fe,Ie;Le&&!Ve.getUTCMinutes()?Ie=Le:Ie=ke;let je=Ie.format(Ve);return postProcess(je,Fe,De,_e,Ae)}}function sanitizeSettings(De,_e){De.timeZoneName&&(De.hour||(De.hour="2-digit"),De.minute||(De.minute="2-digit")),De.timeZoneName==="long"&&(De.timeZoneName="short"),_e.omitZeroMinute&&(De.second||De.millisecond)&&delete _e.omitZeroMinute}function postProcess(De,_e,Ae,ke,Le){return De=De.replace(LTR_RE,""),Ae.timeZoneName==="short"&&(De=injectTzoStr(De,Le.timeZone==="UTC"||_e.timeZoneOffset==null?"UTC":formatTimeZoneOffset(_e.timeZoneOffset))),ke.omitCommas&&(De=De.replace(COMMA_RE,"").trim()),ke.omitZeroMinute&&(De=De.replace(":00","")),ke.meridiem===!1?De=De.replace(MERIDIEM_RE,"").trim():ke.meridiem==="narrow"?De=De.replace(MERIDIEM_RE,(Fe,Ve)=>Ve.toLocaleLowerCase()):ke.meridiem==="short"?De=De.replace(MERIDIEM_RE,(Fe,Ve)=>`${Ve.toLocaleLowerCase()}m`):ke.meridiem==="lowercase"&&(De=De.replace(MERIDIEM_RE,Fe=>Fe.toLocaleLowerCase())),De=De.replace(MULTI_SPACE_RE," "),De=De.trim(),De}function injectTzoStr(De,_e){let Ae=!1;return De=De.replace(UTC_RE,()=>(Ae=!0,_e)),Ae||(De+=` ${_e}`),De}function formatWeekNumber(De,_e,Ae,ke,Le){let Fe=[];return Le==="long"?Fe.push(Ae):(Le==="short"||Le==="narrow")&&Fe.push(_e),(Le==="long"||Le==="short")&&Fe.push(" "),Fe.push(ke.simpleNumberFormat.format(De)),ke.options.direction==="rtl"&&Fe.reverse(),Fe.join("")}function computeMarkerDiffSeverity(De,_e,Ae){return Ae.getMarkerYear(De)!==Ae.getMarkerYear(_e)?5:Ae.getMarkerMonth(De)!==Ae.getMarkerMonth(_e)?4:Ae.getMarkerDay(De)!==Ae.getMarkerDay(_e)?2:timeAsMs(De)!==timeAsMs(_e)?1:0}function computePartialFormattingOptions(De,_e){let Ae={};for(let ke in De)(!(ke in STANDARD_DATE_PROP_SEVERITIES)||STANDARD_DATE_PROP_SEVERITIES[ke]<=_e)&&(Ae[ke]=De[ke]);return Ae}function findCommonInsertion(De,_e,Ae,ke){let Le=0;for(;Le<De.length;){let Fe=De.indexOf(_e,Le);if(Fe===-1)break;let Ve=De.substr(0,Fe);Le=Fe+_e.length;let Ie=De.substr(Le),je=0;for(;je<Ae.length;){let Ke=Ae.indexOf(ke,je);if(Ke===-1)break;let $e=Ae.substr(0,Ke);je=Ke+ke.length;let qe=Ae.substr(je);if(Ve===$e&&Ie===qe)return{before:Ve,after:Ie}}}return null}function expandZonedMarker(De,_e){let Ae=_e.markerToArray(De.marker);return{marker:De.marker,timeZoneOffset:De.timeZoneOffset,array:Ae,year:Ae[0],month:Ae[1],day:Ae[2],hour:Ae[3],minute:Ae[4],second:Ae[5],millisecond:Ae[6]}}function createVerboseFormattingArg(De,_e,Ae,ke){let Le=expandZonedMarker(De,Ae.calendarSystem),Fe=_e?expandZonedMarker(_e,Ae.calendarSystem):null;return{date:Le,start:Le,end:Fe,timeZone:Ae.timeZone,localeCodes:Ae.locale.codes,defaultSeparator:ke||Ae.defaultSeparator}}class CmdFormatter{constructor(_e){this.cmdStr=_e}format(_e,Ae,ke){return Ae.cmdFormatter(this.cmdStr,createVerboseFormattingArg(_e,null,Ae,ke))}formatRange(_e,Ae,ke,Le){return ke.cmdFormatter(this.cmdStr,createVerboseFormattingArg(_e,Ae,ke,Le))}}class FuncFormatter{constructor(_e){this.func=_e}format(_e,Ae,ke){return this.func(createVerboseFormattingArg(_e,null,Ae,ke))}formatRange(_e,Ae,ke,Le){return this.func(createVerboseFormattingArg(_e,Ae,ke,Le))}}function createFormatter(De){return typeof De=="object"&&De?new NativeFormatter(De):typeof De=="string"?new CmdFormatter(De):typeof De=="function"?new FuncFormatter(De):null}const BASE_OPTION_REFINERS={navLinkDayClick:identity,navLinkWeekClick:identity,duration:createDuration,bootstrapFontAwesome:identity,buttonIcons:identity,customButtons:identity,defaultAllDayEventDuration:createDuration,defaultTimedEventDuration:createDuration,nextDayThreshold:createDuration,scrollTime:createDuration,scrollTimeReset:Boolean,slotMinTime:createDuration,slotMaxTime:createDuration,dayPopoverFormat:createFormatter,slotDuration:createDuration,snapDuration:createDuration,headerToolbar:identity,footerToolbar:identity,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:createFormatter,dayHeaderClassNames:identity,dayHeaderContent:identity,dayHeaderDidMount:identity,dayHeaderWillUnmount:identity,dayCellClassNames:identity,dayCellContent:identity,dayCellDidMount:identity,dayCellWillUnmount:identity,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:identity,weekNumbers:Boolean,weekNumberClassNames:identity,weekNumberContent:identity,weekNumberDidMount:identity,weekNumberWillUnmount:identity,editable:Boolean,viewClassNames:identity,viewDidMount:identity,viewWillUnmount:identity,nowIndicator:Boolean,nowIndicatorSnap:identity,nowIndicatorClassNames:identity,nowIndicatorContent:identity,nowIndicatorDidMount:identity,nowIndicatorWillUnmount:identity,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:identity,locale:identity,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:identity,eventOrder:parseFieldSpecs,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:identity,contentHeight:identity,direction:String,weekNumberFormat:createFormatter,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:identity,initialDate:identity,now:identity,eventDataTransform:identity,stickyHeaderDates:identity,stickyFooterScrollbar:identity,viewHeight:identity,defaultAllDay:Boolean,eventSourceFailure:identity,eventSourceSuccess:identity,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:identity,eventConstraint:identity,eventAllow:identity,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:identity,eventContent:identity,eventDidMount:identity,eventWillUnmount:identity,selectConstraint:identity,selectOverlap:identity,selectAllow:identity,droppable:Boolean,unselectCancel:String,slotLabelFormat:identity,slotLaneClassNames:identity,slotLaneContent:identity,slotLaneDidMount:identity,slotLaneWillUnmount:identity,slotLabelClassNames:identity,slotLabelContent:identity,slotLabelDidMount:identity,slotLabelWillUnmount:identity,dayMaxEvents:identity,dayMaxEventRows:identity,dayMinWidth:Number,slotLabelInterval:createDuration,allDayText:String,allDayClassNames:identity,allDayContent:identity,allDayDidMount:identity,allDayWillUnmount:identity,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:createFormatter,rerenderDelay:Number,moreLinkText:identity,moreLinkHint:identity,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:identity,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:createDuration,hiddenDays:identity,fixedWeekCount:Boolean,validRange:identity,visibleRange:identity,titleFormat:identity,eventInteractive:Boolean,noEventsText:String,viewHint:identity,navLinkHint:identity,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:identity,moreLinkClassNames:identity,moreLinkContent:identity,moreLinkDidMount:identity,moreLinkWillUnmount:identity,monthStartFormat:createFormatter,handleCustomRendering:identity,customRenderingMetaMap:identity,customRenderingReplaces:Boolean},BASE_OPTION_DEFAULTS={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},CALENDAR_LISTENER_REFINERS={datesSet:identity,eventsSet:identity,eventAdd:identity,eventChange:identity,eventRemove:identity,windowResize:identity,eventClick:identity,eventMouseEnter:identity,eventMouseLeave:identity,select:identity,unselect:identity,loading:identity,_unmount:identity,_beforeprint:identity,_afterprint:identity,_noEventDrop:identity,_noEventResize:identity,_resize:identity,_scrollRequest:identity},CALENDAR_OPTION_REFINERS={buttonText:identity,buttonHints:identity,views:identity,plugins:identity,initialEvents:identity,events:identity,eventSources:identity},COMPLEX_OPTION_COMPARATORS={headerToolbar:isMaybeObjectsEqual,footerToolbar:isMaybeObjectsEqual,buttonText:isMaybeObjectsEqual,buttonHints:isMaybeObjectsEqual,buttonIcons:isMaybeObjectsEqual,dateIncrement:isMaybeObjectsEqual,plugins:isMaybeArraysEqual,events:isMaybeArraysEqual,eventSources:isMaybeArraysEqual,resources:isMaybeArraysEqual};function isMaybeObjectsEqual(De,_e){return typeof De=="object"&&typeof _e=="object"&&De&&_e?isPropsEqual(De,_e):De===_e}function isMaybeArraysEqual(De,_e){return Array.isArray(De)&&Array.isArray(_e)?isArraysEqual(De,_e):De===_e}const VIEW_OPTION_REFINERS={type:String,component:identity,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:identity,usesMinMaxTime:Boolean,classNames:identity,content:identity,didMount:identity,willUnmount:identity};function mergeRawOptions(De){return mergeProps(De,COMPLEX_OPTION_COMPARATORS)}function refineProps(De,_e){let Ae={},ke={};for(let Le in _e)Le in De&&(Ae[Le]=_e[Le](De[Le]));for(let Le in De)Le in _e||(ke[Le]=De[Le]);return{refined:Ae,extra:ke}}function identity(De){return De}const{hasOwnProperty}=Object.prototype;function mergeProps(De,_e){let Ae={};if(_e){for(let ke in _e)if(_e[ke]===isMaybeObjectsEqual){let Le=[];for(let Fe=De.length-1;Fe>=0;Fe-=1){let Ve=De[Fe][ke];if(typeof Ve=="object"&&Ve)Le.unshift(Ve);else if(Ve!==void 0){Ae[ke]=Ve;break}}Le.length&&(Ae[ke]=mergeProps(Le))}}for(let ke=De.length-1;ke>=0;ke-=1){let Le=De[ke];for(let Fe in Le)Fe in Ae||(Ae[Fe]=Le[Fe])}return Ae}function filterHash(De,_e){let Ae={};for(let ke in De)_e(De[ke],ke)&&(Ae[ke]=De[ke]);return Ae}function mapHash(De,_e){let Ae={};for(let ke in De)Ae[ke]=_e(De[ke],ke);return Ae}function arrayToHash(De){let _e={};for(let Ae of De)_e[Ae]=!0;return _e}function hashValuesToArray(De){let _e=[];for(let Ae in De)_e.push(De[Ae]);return _e}function isPropsEqual(De,_e){if(De===_e)return!0;for(let Ae in De)if(hasOwnProperty.call(De,Ae)&&!(Ae in _e))return!1;for(let Ae in _e)if(hasOwnProperty.call(_e,Ae)&&De[Ae]!==_e[Ae])return!1;return!0}const HANDLER_RE=/^on[A-Z]/;function isNonHandlerPropsEqual(De,_e){const Ae=getUnequalProps(De,_e);for(let ke of Ae)if(!HANDLER_RE.test(ke))return!1;return!0}function getUnequalProps(De,_e){let Ae=[];for(let ke in De)hasOwnProperty.call(De,ke)&&(ke in _e||Ae.push(ke));for(let ke in _e)hasOwnProperty.call(_e,ke)&&De[ke]!==_e[ke]&&Ae.push(ke);return Ae}function compareObjs(De,_e,Ae={}){if(De===_e)return!0;for(let ke in _e)if(!(ke in De&&isObjValsEqual(De[ke],_e[ke],Ae[ke])))return!1;for(let ke in De)if(!(ke in _e))return!1;return!0}function isObjValsEqual(De,_e,Ae){return De===_e||Ae===!0?!0:Ae?Ae(De,_e):!1}function collectFromHash(De,_e=0,Ae,ke=1){let Le=[];Ae==null&&(Ae=Object.keys(De).length);for(let Fe=_e;Fe<Ae;Fe+=ke){let Ve=De[Fe];Ve!==void 0&&Le.push(Ve)}return Le}let calendarSystemClassMap={};function registerCalendarSystem(De,_e){calendarSystemClassMap[De]=_e}function createCalendarSystem(De){return new calendarSystemClassMap[De]}class GregorianCalendarSystem{getMarkerYear(_e){return _e.getUTCFullYear()}getMarkerMonth(_e){return _e.getUTCMonth()}getMarkerDay(_e){return _e.getUTCDate()}arrayToMarker(_e){return arrayToUtcDate(_e)}markerToArray(_e){return dateToUtcArray(_e)}}registerCalendarSystem("gregory",GregorianCalendarSystem);const ISO_RE=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function parse(De){let _e=ISO_RE.exec(De);if(_e){let Ae=new Date(Date.UTC(Number(_e[1]),_e[3]?Number(_e[3])-1:0,Number(_e[5]||1),Number(_e[7]||0),Number(_e[8]||0),Number(_e[10]||0),_e[12]?+`0.${_e[12]}`*1e3:0));if(isValidDate(Ae)){let ke=null;return _e[13]&&(ke=(_e[15]==="-"?-1:1)*(Number(_e[16]||0)*60+Number(_e[18]||0))),{marker:Ae,isTimeUnspecified:!_e[6],timeZoneOffset:ke}}}return null}class DateEnv{constructor(_e){let Ae=this.timeZone=_e.timeZone,ke=Ae!=="local"&&Ae!=="UTC";_e.namedTimeZoneImpl&&ke&&(this.namedTimeZoneImpl=new _e.namedTimeZoneImpl(Ae)),this.canComputeOffset=!!(!ke||this.namedTimeZoneImpl),this.calendarSystem=createCalendarSystem(_e.calendarSystem),this.locale=_e.locale,this.weekDow=_e.locale.week.dow,this.weekDoy=_e.locale.week.doy,_e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof _e.firstDay=="number"&&(this.weekDow=_e.firstDay),typeof _e.weekNumberCalculation=="function"&&(this.weekNumberFunc=_e.weekNumberCalculation),this.weekText=_e.weekText!=null?_e.weekText:_e.locale.options.weekText,this.weekTextLong=(_e.weekTextLong!=null?_e.weekTextLong:_e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=_e.cmdFormatter,this.defaultSeparator=_e.defaultSeparator}createMarker(_e){let Ae=this.createMarkerMeta(_e);return Ae===null?null:Ae.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):arrayToUtcDate(dateToLocalArray(new Date))}createMarkerMeta(_e){if(typeof _e=="string")return this.parse(_e);let Ae=null;return typeof _e=="number"?Ae=this.timestampToMarker(_e):_e instanceof Date?(_e=_e.valueOf(),isNaN(_e)||(Ae=this.timestampToMarker(_e))):Array.isArray(_e)&&(Ae=arrayToUtcDate(_e)),Ae===null||!isValidDate(Ae)?null:{marker:Ae,isTimeUnspecified:!1,forcedTzo:null}}parse(_e){let Ae=parse(_e);if(Ae===null)return null;let{marker:ke}=Ae,Le=null;return Ae.timeZoneOffset!==null&&(this.canComputeOffset?ke=this.timestampToMarker(ke.valueOf()-Ae.timeZoneOffset*60*1e3):Le=Ae.timeZoneOffset),{marker:ke,isTimeUnspecified:Ae.isTimeUnspecified,forcedTzo:Le}}getYear(_e){return this.calendarSystem.getMarkerYear(_e)}getMonth(_e){return this.calendarSystem.getMarkerMonth(_e)}getDay(_e){return this.calendarSystem.getMarkerDay(_e)}add(_e,Ae){let ke=this.calendarSystem.markerToArray(_e);return ke[0]+=Ae.years,ke[1]+=Ae.months,ke[2]+=Ae.days,ke[6]+=Ae.milliseconds,this.calendarSystem.arrayToMarker(ke)}subtract(_e,Ae){let ke=this.calendarSystem.markerToArray(_e);return ke[0]-=Ae.years,ke[1]-=Ae.months,ke[2]-=Ae.days,ke[6]-=Ae.milliseconds,this.calendarSystem.arrayToMarker(ke)}addYears(_e,Ae){let ke=this.calendarSystem.markerToArray(_e);return ke[0]+=Ae,this.calendarSystem.arrayToMarker(ke)}addMonths(_e,Ae){let ke=this.calendarSystem.markerToArray(_e);return ke[1]+=Ae,this.calendarSystem.arrayToMarker(ke)}diffWholeYears(_e,Ae){let{calendarSystem:ke}=this;return timeAsMs(_e)===timeAsMs(Ae)&&ke.getMarkerDay(_e)===ke.getMarkerDay(Ae)&&ke.getMarkerMonth(_e)===ke.getMarkerMonth(Ae)?ke.getMarkerYear(Ae)-ke.getMarkerYear(_e):null}diffWholeMonths(_e,Ae){let{calendarSystem:ke}=this;return timeAsMs(_e)===timeAsMs(Ae)&&ke.getMarkerDay(_e)===ke.getMarkerDay(Ae)?ke.getMarkerMonth(Ae)-ke.getMarkerMonth(_e)+(ke.getMarkerYear(Ae)-ke.getMarkerYear(_e))*12:null}greatestWholeUnit(_e,Ae){let ke=this.diffWholeYears(_e,Ae);return ke!==null?{unit:"year",value:ke}:(ke=this.diffWholeMonths(_e,Ae),ke!==null?{unit:"month",value:ke}:(ke=diffWholeWeeks(_e,Ae),ke!==null?{unit:"week",value:ke}:(ke=diffWholeDays(_e,Ae),ke!==null?{unit:"day",value:ke}:(ke=diffHours(_e,Ae),isInt(ke)?{unit:"hour",value:ke}:(ke=diffMinutes(_e,Ae),isInt(ke)?{unit:"minute",value:ke}:(ke=diffSeconds(_e,Ae),isInt(ke)?{unit:"second",value:ke}:{unit:"millisecond",value:Ae.valueOf()-_e.valueOf()}))))))}countDurationsBetween(_e,Ae,ke){let Le;return ke.years&&(Le=this.diffWholeYears(_e,Ae),Le!==null)?Le/asRoughYears(ke):ke.months&&(Le=this.diffWholeMonths(_e,Ae),Le!==null)?Le/asRoughMonths(ke):ke.days&&(Le=diffWholeDays(_e,Ae),Le!==null)?Le/asRoughDays(ke):(Ae.valueOf()-_e.valueOf())/asRoughMs(ke)}startOf(_e,Ae){return Ae==="year"?this.startOfYear(_e):Ae==="month"?this.startOfMonth(_e):Ae==="week"?this.startOfWeek(_e):Ae==="day"?startOfDay(_e):Ae==="hour"?startOfHour(_e):Ae==="minute"?startOfMinute(_e):Ae==="second"?startOfSecond(_e):null}startOfYear(_e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(_e)])}startOfMonth(_e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(_e),this.calendarSystem.getMarkerMonth(_e)])}startOfWeek(_e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(_e),this.calendarSystem.getMarkerMonth(_e),_e.getUTCDate()-(_e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(_e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(_e)):weekOfYear(_e,this.weekDow,this.weekDoy)}format(_e,Ae,ke={}){return Ae.format({marker:_e,timeZoneOffset:ke.forcedTzo!=null?ke.forcedTzo:this.offsetForMarker(_e)},this)}formatRange(_e,Ae,ke,Le={}){return Le.isEndExclusive&&(Ae=addMs(Ae,-1)),ke.formatRange({marker:_e,timeZoneOffset:Le.forcedStartTzo!=null?Le.forcedStartTzo:this.offsetForMarker(_e)},{marker:Ae,timeZoneOffset:Le.forcedEndTzo!=null?Le.forcedEndTzo:this.offsetForMarker(Ae)},this,Le.defaultSeparator)}formatIso(_e,Ae={}){let ke=null;return Ae.omitTimeZoneOffset||(Ae.forcedTzo!=null?ke=Ae.forcedTzo:ke=this.offsetForMarker(_e)),buildIsoString(_e,ke,Ae.omitTime)}timestampToMarker(_e){return this.timeZone==="local"?arrayToUtcDate(dateToLocalArray(new Date(_e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(_e):arrayToUtcDate(this.namedTimeZoneImpl.timestampToArray(_e))}offsetForMarker(_e){return this.timeZone==="local"?-arrayToLocalDate(dateToUtcArray(_e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(_e)):null}toDate(_e,Ae){return this.timeZone==="local"?arrayToLocalDate(dateToUtcArray(_e)):this.timeZone==="UTC"?new Date(_e.valueOf()):this.namedTimeZoneImpl?new Date(_e.valueOf()-this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(_e))*1e3*60):new Date(_e.valueOf()-(Ae||0))}}class Theme{constructor(_e){this.iconOverrideOption&&this.setIconOverride(_e[this.iconOverrideOption])}setIconOverride(_e){let Ae,ke;if(typeof _e=="object"&&_e){Ae=Object.assign({},this.iconClasses);for(ke in _e)Ae[ke]=this.applyIconOverridePrefix(_e[ke]);this.iconClasses=Ae}else _e===!1&&(this.iconClasses={})}applyIconOverridePrefix(_e){let Ae=this.iconOverridePrefix;return Ae&&_e.indexOf(Ae)!==0&&(_e=Ae+_e),_e}getClass(_e){return this.classes[_e]||""}getIconClass(_e,Ae){let ke;return Ae&&this.rtlIconClasses?ke=this.rtlIconClasses[_e]||this.iconClasses[_e]:ke=this.iconClasses[_e],ke?`${this.baseIconClass} ${ke}`:""}getCustomButtonIconClass(_e){let Ae;return this.iconOverrideCustomButtonOption&&(Ae=_e[this.iconOverrideCustomButtonOption],Ae)?`${this.baseIconClass} ${this.applyIconOverridePrefix(Ae)}`:""}}Theme.prototype.classes={};Theme.prototype.iconClasses={};Theme.prototype.baseIconClass="";Theme.prototype.iconOverridePrefix="";function flushSync(De){De();let _e=l$6.debounceRendering,Ae=[];function ke(Le){Ae.push(Le)}for(l$6.debounceRendering=ke,D$3(y$2(FakeComponent,{}),document.createElement("div"));Ae.length;)Ae.shift()();l$6.debounceRendering=_e}class FakeComponent extends x$4{render(){return y$2("div",{})}componentDidMount(){this.setState({})}}function createContext$1(De){let _e=G$2(De),Ae=_e.Provider;return _e.Provider=function(){let ke=!this.getChildContext,Le=Ae.apply(this,arguments);if(ke){let Fe=[];this.shouldComponentUpdate=Ve=>{this.props.value!==Ve.value&&Fe.forEach(Ie=>{Ie.context=Ve.value,Ie.forceUpdate()})},this.sub=Ve=>{Fe.push(Ve);let Ie=Ve.componentWillUnmount;Ve.componentWillUnmount=()=>{Fe.splice(Fe.indexOf(Ve),1),Ie&&Ie.call(Ve)}}}return Le},_e}class ScrollResponder{constructor(_e,Ae,ke,Le){this.execFunc=_e,this.emitter=Ae,this.scrollTime=ke,this.scrollTimeReset=Le,this.handleScrollRequest=Fe=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},Fe),this.drain()},Ae.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(_e){_e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const ViewContextType=createContext$1({});function buildViewContext(De,_e,Ae,ke,Le,Fe,Ve,Ie,je,Ke,$e,qe,ci,gi){return{dateEnv:Le,nowManager:Fe,options:Ae,pluginHooks:Ie,emitter:$e,dispatch:je,getCurrentData:Ke,calendarApi:qe,viewSpec:De,viewApi:_e,dateProfileGenerator:ke,theme:Ve,isRtl:Ae.direction==="rtl",addResizeHandler(Ai){$e.on("_resize",Ai)},removeResizeHandler(Ai){$e.off("_resize",Ai)},createScrollResponder(Ai){return new ScrollResponder(Ai,$e,createDuration(Ae.scrollTime),Ae.scrollTimeReset)},registerInteractiveComponent:ci,unregisterInteractiveComponent:gi}}class PureComponent extends x$4{shouldComponentUpdate(_e,Ae){return!compareObjs(this.props,_e,this.propEquality)||!compareObjs(this.state,Ae,this.stateEquality)}safeSetState(_e){compareObjs(this.state,Object.assign(Object.assign({},this.state),_e),this.stateEquality)||this.setState(_e)}}PureComponent.addPropsEquality=addPropsEquality;PureComponent.addStateEquality=addStateEquality;PureComponent.contextType=ViewContextType;PureComponent.prototype.propEquality={};PureComponent.prototype.stateEquality={};class BaseComponent extends PureComponent{}BaseComponent.contextType=ViewContextType;function addPropsEquality(De){let _e=Object.create(this.prototype.propEquality);Object.assign(_e,De),this.prototype.propEquality=_e}function addStateEquality(De){let _e=Object.create(this.prototype.stateEquality);Object.assign(_e,De),this.prototype.stateEquality=_e}function setRef(De,_e){typeof De=="function"?De(_e):De&&(De.current=_e)}class ContentInjector extends BaseComponent{constructor(){super(...arguments),this.id=guid(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=_e=>{const{options:Ae}=this.context,{generatorName:ke}=this.props;(!Ae.customRenderingReplaces||!hasCustomRenderingHandler(ke,Ae))&&this.updateElRef(_e)},this.updateElRef=_e=>{this.props.elRef&&setRef(this.props.elRef,_e)}}render(){const{props:_e,context:Ae}=this,{options:ke}=Ae,{customGenerator:Le,defaultGenerator:Fe,renderProps:Ve}=_e,Ie=buildElAttrs(_e,[],this.handleEl);let je=!1,Ke,$e=[],qe;if(Le!=null){const ci=typeof Le=="function"?Le(Ve,y$2):Le;if(ci===!0)je=!0;else{const gi=ci&&typeof ci=="object";gi&&"html"in ci?Ie.dangerouslySetInnerHTML={__html:ci.html}:gi&&"domNodes"in ci?$e=Array.prototype.slice.call(ci.domNodes):(gi?i$5(ci):typeof ci!="function")?Ke=ci:qe=ci}}else je=!hasCustomRenderingHandler(_e.generatorName,ke);return je&&Fe&&(Ke=Fe(Ve)),this.queuedDomNodes=$e,this.currentGeneratorMeta=qe,y$2(_e.elTag,Ie,Ke)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(_e){var Ae;const{props:ke,context:Le}=this,{handleCustomRendering:Fe,customRenderingMetaMap:Ve}=Le.options;if(Fe){const Ie=(Ae=this.currentGeneratorMeta)!==null&&Ae!==void 0?Ae:Ve==null?void 0:Ve[ke.generatorName];Ie&&Fe(Object.assign(Object.assign({id:this.id,isActive:_e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:Ie},ke),{elClasses:(ke.elClasses||[]).filter(isTruthy)}))}}applyQueueudDomNodes(){const{queuedDomNodes:_e,currentDomNodes:Ae}=this,ke=this.base;if(!isArraysEqual(_e,Ae)){Ae.forEach(removeElement);for(let Le of _e)ke.appendChild(Le);this.currentDomNodes=_e}}}ContentInjector.addPropsEquality({elClasses:isArraysEqual,elStyle:isPropsEqual,elAttrs:isNonHandlerPropsEqual,renderProps:isPropsEqual});function hasCustomRenderingHandler(De,_e){var Ae;return!!(_e.handleCustomRendering&&De&&(!((Ae=_e.customRenderingMetaMap)===null||Ae===void 0)&&Ae[De]))}function buildElAttrs(De,_e,Ae){const ke=Object.assign(Object.assign({},De.elAttrs),{ref:Ae});return(De.elClasses||_e)&&(ke.className=(De.elClasses||[]).concat(_e||[]).concat(ke.className||[]).filter(Boolean).join(" ")),De.elStyle&&(ke.style=De.elStyle),ke}function isTruthy(De){return!!De}const RenderId=createContext$1(0);class ContentContainer extends x$4{constructor(){super(...arguments),this.InnerContent=InnerContentInjector.bind(void 0,this),this.handleEl=_e=>{this.el=_e,this.props.elRef&&(setRef(this.props.elRef,_e),_e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:_e}=this,Ae=generateClassNames(_e.classNameGenerator,_e.renderProps);if(_e.children){const ke=buildElAttrs(_e,Ae,this.handleEl),Le=_e.children(this.InnerContent,_e.renderProps,ke);return _e.elTag?y$2(_e.elTag,ke,Le):Le}else return y$2(ContentInjector,Object.assign(Object.assign({},_e),{elRef:this.handleEl,elTag:_e.elTag||"div",elClasses:(_e.elClasses||[]).concat(Ae),renderId:this.context}))}componentDidMount(){var _e,Ae;this.el?(Ae=(_e=this.props).didMount)===null||Ae===void 0||Ae.call(_e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var _e,Ae;(Ae=(_e=this.props).willUnmount)===null||Ae===void 0||Ae.call(_e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}ContentContainer.contextType=RenderId;function InnerContentInjector(De,_e){const Ae=De.props;return y$2(ContentInjector,Object.assign({renderProps:Ae.renderProps,generatorName:Ae.generatorName,customGenerator:Ae.customGenerator,defaultGenerator:Ae.defaultGenerator,renderId:De.context},_e))}function generateClassNames(De,_e){const Ae=typeof De=="function"?De(_e):De||[];return typeof Ae=="string"?[Ae]:Ae}class ViewContainer extends BaseComponent{render(){let{props:_e,context:Ae}=this,{options:ke}=Ae,Le={view:Ae.viewApi};return y$2(ContentContainer,{elRef:_e.elRef,elTag:_e.elTag||"div",elAttrs:_e.elAttrs,elClasses:[...buildViewClassNames(_e.viewSpec),..._e.elClasses||[]],elStyle:_e.elStyle,renderProps:Le,classNameGenerator:ke.viewClassNames,generatorName:void 0,didMount:ke.viewDidMount,willUnmount:ke.viewWillUnmount},()=>_e.children)}}function buildViewClassNames(De){return[`fc-${De.type}-view`,"fc-view"]}function parseRange(De,_e){let Ae=null,ke=null;return De.start&&(Ae=_e.createMarker(De.start)),De.end&&(ke=_e.createMarker(De.end)),!Ae&&!ke||Ae&&ke&&ke<Ae?null:{start:Ae,end:ke}}function invertRanges(De,_e){let Ae=[],{start:ke}=_e,Le,Fe;for(De.sort(compareRanges),Le=0;Le<De.length;Le+=1)Fe=De[Le],Fe.start>ke&&Ae.push({start:ke,end:Fe.start}),Fe.end>ke&&(ke=Fe.end);return ke<_e.end&&Ae.push({start:ke,end:_e.end}),Ae}function compareRanges(De,_e){return De.start.valueOf()-_e.start.valueOf()}function intersectRanges(De,_e){let{start:Ae,end:ke}=De,Le=null;return _e.start!==null&&(Ae===null?Ae=_e.start:Ae=new Date(Math.max(Ae.valueOf(),_e.start.valueOf()))),_e.end!=null&&(ke===null?ke=_e.end:ke=new Date(Math.min(ke.valueOf(),_e.end.valueOf()))),(Ae===null||ke===null||Ae<ke)&&(Le={start:Ae,end:ke}),Le}function rangesIntersect(De,_e){return(De.end===null||_e.start===null||De.end>_e.start)&&(De.start===null||_e.end===null||De.start<_e.end)}function rangeContainsMarker(De,_e){return(De.start===null||_e>=De.start)&&(De.end===null||_e<De.end)}function constrainMarkerToRange(De,_e){return _e.start!=null&&De<_e.start?_e.start:_e.end!=null&&De>=_e.end?new Date(_e.end.valueOf()-1):De}function computeAlignedDayRange(De){let _e=Math.floor(diffDays(De.start,De.end))||1,Ae=startOfDay(De.start),ke=addDays(Ae,_e);return{start:Ae,end:ke}}function computeVisibleDayRange(De,_e=createDuration(0)){let Ae=null,ke=null;if(De.end){ke=startOfDay(De.end);let Le=De.end.valueOf()-ke.valueOf();Le&&Le>=asRoughMs(_e)&&(ke=addDays(ke,1))}return De.start&&(Ae=startOfDay(De.start),ke&&ke<=Ae&&(ke=addDays(Ae,1))),{start:Ae,end:ke}}function isMultiDayRange(De){let _e=computeVisibleDayRange(De);return diffDays(_e.start,_e.end)>1}function diffDates(De,_e,Ae,ke){return ke==="year"?createDuration(Ae.diffWholeYears(De,_e),"year"):ke==="month"?createDuration(Ae.diffWholeMonths(De,_e),"month"):diffDayAndTime(De,_e)}class DateProfileGenerator{constructor(_e){this.props=_e,this.initHiddenDays()}buildPrev(_e,Ae,ke){let{dateEnv:Le}=this.props,Fe=Le.subtract(Le.startOf(Ae,_e.currentRangeUnit),_e.dateIncrement);return this.build(Fe,-1,ke)}buildNext(_e,Ae,ke){let{dateEnv:Le}=this.props,Fe=Le.add(Le.startOf(Ae,_e.currentRangeUnit),_e.dateIncrement);return this.build(Fe,1,ke)}build(_e,Ae,ke=!0){let{props:Le}=this,Fe,Ve,Ie,je,Ke,$e;return Fe=this.buildValidRange(),Fe=this.trimHiddenDays(Fe),ke&&(_e=constrainMarkerToRange(_e,Fe)),Ve=this.buildCurrentRangeInfo(_e,Ae),Ie=/^(year|month|week|day)$/.test(Ve.unit),je=this.buildRenderRange(this.trimHiddenDays(Ve.range),Ve.unit,Ie),je=this.trimHiddenDays(je),Ke=je,Le.showNonCurrentDates||(Ke=intersectRanges(Ke,Ve.range)),Ke=this.adjustActiveRange(Ke),Ke=intersectRanges(Ke,Fe),$e=rangesIntersect(Ve.range,Fe),rangeContainsMarker(je,_e)||(_e=je.start),{currentDate:_e,validRange:Fe,currentRange:Ve.range,currentRangeUnit:Ve.unit,isRangeAllDay:Ie,activeRange:Ke,renderRange:je,slotMinTime:Le.slotMinTime,slotMaxTime:Le.slotMaxTime,isValid:$e,dateIncrement:this.buildDateIncrement(Ve.duration)}}buildValidRange(){let _e=this.props.validRangeInput,Ae=typeof _e=="function"?_e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):_e;return this.refineRange(Ae)||{start:null,end:null}}buildCurrentRangeInfo(_e,Ae){let{props:ke}=this,Le=null,Fe=null,Ve=null,Ie;return ke.duration?(Le=ke.duration,Fe=ke.durationUnit,Ve=this.buildRangeFromDuration(_e,Ae,Le,Fe)):(Ie=this.props.dayCount)?(Fe="day",Ve=this.buildRangeFromDayCount(_e,Ae,Ie)):(Ve=this.buildCustomVisibleRange(_e))?Fe=ke.dateEnv.greatestWholeUnit(Ve.start,Ve.end).unit:(Le=this.getFallbackDuration(),Fe=greatestDurationDenominator(Le).unit,Ve=this.buildRangeFromDuration(_e,Ae,Le,Fe)),{duration:Le,unit:Fe,range:Ve}}getFallbackDuration(){return createDuration({day:1})}adjustActiveRange(_e){let{dateEnv:Ae,usesMinMaxTime:ke,slotMinTime:Le,slotMaxTime:Fe}=this.props,{start:Ve,end:Ie}=_e;return ke&&(asRoughDays(Le)<0&&(Ve=startOfDay(Ve),Ve=Ae.add(Ve,Le)),asRoughDays(Fe)>1&&(Ie=startOfDay(Ie),Ie=addDays(Ie,-1),Ie=Ae.add(Ie,Fe))),{start:Ve,end:Ie}}buildRangeFromDuration(_e,Ae,ke,Le){let{dateEnv:Fe,dateAlignment:Ve}=this.props,Ie,je,Ke;if(!Ve){let{dateIncrement:qe}=this.props;qe&&asRoughMs(qe)<asRoughMs(ke)?Ve=greatestDurationDenominator(qe).unit:Ve=Le}asRoughDays(ke)<=1&&this.isHiddenDay(Ie)&&(Ie=this.skipHiddenDays(Ie,Ae),Ie=startOfDay(Ie));function $e(){Ie=Fe.startOf(_e,Ve),je=Fe.add(Ie,ke),Ke={start:Ie,end:je}}return $e(),this.trimHiddenDays(Ke)||(_e=this.skipHiddenDays(_e,Ae),$e()),Ke}buildRangeFromDayCount(_e,Ae,ke){let{dateEnv:Le,dateAlignment:Fe}=this.props,Ve=0,Ie=_e,je;Fe&&(Ie=Le.startOf(Ie,Fe)),Ie=startOfDay(Ie),Ie=this.skipHiddenDays(Ie,Ae),je=Ie;do je=addDays(je,1),this.isHiddenDay(je)||(Ve+=1);while(Ve<ke);return{start:Ie,end:je}}buildCustomVisibleRange(_e){let{props:Ae}=this,ke=Ae.visibleRangeInput,Le=typeof ke=="function"?ke.call(Ae.calendarApi,Ae.dateEnv.toDate(_e)):ke,Fe=this.refineRange(Le);return Fe&&(Fe.start==null||Fe.end==null)?null:Fe}buildRenderRange(_e,Ae,ke){return _e}buildDateIncrement(_e){let{dateIncrement:Ae}=this.props,ke;return Ae||((ke=this.props.dateAlignment)?createDuration(1,ke):_e||createDuration({days:1}))}refineRange(_e){if(_e){let Ae=parseRange(_e,this.props.dateEnv);return Ae&&(Ae=computeVisibleDayRange(Ae)),Ae}return null}initHiddenDays(){let _e=this.props.hiddenDays||[],Ae=[],ke=0,Le;for(this.props.weekends===!1&&_e.push(0,6),Le=0;Le<7;Le+=1)(Ae[Le]=_e.indexOf(Le)!==-1)||(ke+=1);if(!ke)throw new Error("invalid hiddenDays");this.isHiddenDayHash=Ae}trimHiddenDays(_e){let{start:Ae,end:ke}=_e;return Ae&&(Ae=this.skipHiddenDays(Ae)),ke&&(ke=this.skipHiddenDays(ke,-1,!0)),Ae==null||ke==null||Ae<ke?{start:Ae,end:ke}:null}isHiddenDay(_e){return _e instanceof Date&&(_e=_e.getUTCDay()),this.isHiddenDayHash[_e]}skipHiddenDays(_e,Ae=1,ke=!1){for(;this.isHiddenDayHash[(_e.getUTCDay()+(ke?Ae:0)+7)%7];)_e=addDays(_e,Ae);return _e}}function createEventInstance(De,_e,Ae,ke){return{instanceId:guid(),defId:De,range:_e,forcedStartTzo:Ae??null,forcedEndTzo:ke??null}}function parseRecurring(De,_e,Ae,ke){for(let Le=0;Le<ke.length;Le+=1){let Fe=ke[Le].parse(De,Ae);if(Fe){let{allDay:Ve}=De;return Ve==null&&(Ve=_e,Ve==null&&(Ve=Fe.allDayGuess,Ve==null&&(Ve=!1))),{allDay:Ve,duration:Fe.duration,typeData:Fe.typeData,typeId:Le}}}return null}function expandRecurring(De,_e,Ae){let{dateEnv:ke,pluginHooks:Le,options:Fe}=Ae,{defs:Ve,instances:Ie}=De;Ie=filterHash(Ie,je=>!Ve[je.defId].recurringDef);for(let je in Ve){let Ke=Ve[je];if(Ke.recurringDef){let{duration:$e}=Ke.recurringDef;$e||($e=Ke.allDay?Fe.defaultAllDayEventDuration:Fe.defaultTimedEventDuration);let qe=expandRecurringRanges(Ke,$e,_e,ke,Le.recurringTypes);for(let ci of qe){let gi=createEventInstance(je,{start:ci,end:ke.add(ci,$e)});Ie[gi.instanceId]=gi}}}return{defs:Ve,instances:Ie}}function expandRecurringRanges(De,_e,Ae,ke,Le){let Ve=Le[De.recurringDef.typeId].expand(De.recurringDef.typeData,{start:ke.subtract(Ae.start,_e),end:Ae.end},ke);return De.allDay&&(Ve=Ve.map(startOfDay)),Ve}const EVENT_NON_DATE_REFINERS={id:String,groupId:String,title:String,url:String,interactive:Boolean},EVENT_DATE_REFINERS={start:identity,end:identity,date:identity,allDay:Boolean},EVENT_REFINERS=Object.assign(Object.assign(Object.assign({},EVENT_NON_DATE_REFINERS),EVENT_DATE_REFINERS),{extendedProps:identity});function parseEvent(De,_e,Ae,ke,Le=buildEventRefiners(Ae),Fe,Ve){let{refined:Ie,extra:je}=refineEventDef(De,Ae,Le),Ke=computeIsDefaultAllDay(_e,Ae),$e=parseRecurring(Ie,Ke,Ae.dateEnv,Ae.pluginHooks.recurringTypes);if($e){let ci=parseEventDef(Ie,je,_e?_e.sourceId:"",$e.allDay,!!$e.duration,Ae,Fe);return ci.recurringDef={typeId:$e.typeId,typeData:$e.typeData,duration:$e.duration},{def:ci,instance:null}}let qe=parseSingle(Ie,Ke,Ae,ke);if(qe){let ci=parseEventDef(Ie,je,_e?_e.sourceId:"",qe.allDay,qe.hasEnd,Ae,Fe),gi=createEventInstance(ci.defId,qe.range,qe.forcedStartTzo,qe.forcedEndTzo);return Ve&&ci.publicId&&Ve[ci.publicId]&&(gi.instanceId=Ve[ci.publicId]),{def:ci,instance:gi}}return null}function refineEventDef(De,_e,Ae=buildEventRefiners(_e)){return refineProps(De,Ae)}function buildEventRefiners(De){return Object.assign(Object.assign(Object.assign({},EVENT_UI_REFINERS),EVENT_REFINERS),De.pluginHooks.eventRefiners)}function parseEventDef(De,_e,Ae,ke,Le,Fe,Ve){let Ie={title:De.title||"",groupId:De.groupId||"",publicId:De.id||"",url:De.url||"",recurringDef:null,defId:(Ve&&De.id?Ve[De.id]:"")||guid(),sourceId:Ae,allDay:ke,hasEnd:Le,interactive:De.interactive,ui:createEventUi(De,Fe),extendedProps:Object.assign(Object.assign({},De.extendedProps||{}),_e)};for(let je of Fe.pluginHooks.eventDefMemberAdders)Object.assign(Ie,je(De));return Object.freeze(Ie.ui.classNames),Object.freeze(Ie.extendedProps),Ie}function parseSingle(De,_e,Ae,ke){let{allDay:Le}=De,Fe,Ve=null,Ie=!1,je,Ke=null,$e=De.start!=null?De.start:De.date;if(Fe=Ae.dateEnv.createMarkerMeta($e),Fe)Ve=Fe.marker;else if(!ke)return null;return De.end!=null&&(je=Ae.dateEnv.createMarkerMeta(De.end)),Le==null&&(_e!=null?Le=_e:Le=(!Fe||Fe.isTimeUnspecified)&&(!je||je.isTimeUnspecified)),Le&&Ve&&(Ve=startOfDay(Ve)),je&&(Ke=je.marker,Le&&(Ke=startOfDay(Ke)),Ve&&Ke<=Ve&&(Ke=null)),Ke?Ie=!0:ke||(Ie=Ae.options.forceEventDuration||!1,Ke=Ae.dateEnv.add(Ve,Le?Ae.options.defaultAllDayEventDuration:Ae.options.defaultTimedEventDuration)),{allDay:Le,hasEnd:Ie,range:{start:Ve,end:Ke},forcedStartTzo:Fe?Fe.forcedTzo:null,forcedEndTzo:je?je.forcedTzo:null}}function computeIsDefaultAllDay(De,_e){let Ae=null;return De&&(Ae=De.defaultAllDay),Ae==null&&(Ae=_e.options.defaultAllDay),Ae}function parseEvents(De,_e,Ae,ke,Le,Fe){let Ve=createEmptyEventStore(),Ie=buildEventRefiners(Ae);for(let je of De){let Ke=parseEvent(je,_e,Ae,ke,Ie,Le,Fe);Ke&&eventTupleToStore(Ke,Ve)}return Ve}function eventTupleToStore(De,_e=createEmptyEventStore()){return _e.defs[De.def.defId]=De.def,De.instance&&(_e.instances[De.instance.instanceId]=De.instance),_e}function getRelevantEvents(De,_e){let Ae=De.instances[_e];if(Ae){let ke=De.defs[Ae.defId],Le=filterEventStoreDefs(De,Fe=>isEventDefsGrouped(ke,Fe));return Le.defs[ke.defId]=ke,Le.instances[Ae.instanceId]=Ae,Le}return createEmptyEventStore()}function isEventDefsGrouped(De,_e){return!!(De.groupId&&De.groupId===_e.groupId)}function createEmptyEventStore(){return{defs:{},instances:{}}}function mergeEventStores(De,_e){return{defs:Object.assign(Object.assign({},De.defs),_e.defs),instances:Object.assign(Object.assign({},De.instances),_e.instances)}}function filterEventStoreDefs(De,_e){let Ae=filterHash(De.defs,_e),ke=filterHash(De.instances,Le=>Ae[Le.defId]);return{defs:Ae,instances:ke}}function excludeSubEventStore(De,_e){let{defs:Ae,instances:ke}=De,Le={},Fe={};for(let Ve in Ae)_e.defs[Ve]||(Le[Ve]=Ae[Ve]);for(let Ve in ke)!_e.instances[Ve]&&Le[ke[Ve].defId]&&(Fe[Ve]=ke[Ve]);return{defs:Le,instances:Fe}}function normalizeConstraint(De,_e){return Array.isArray(De)?parseEvents(De,null,_e,!0):typeof De=="object"&&De?parseEvents([De],null,_e,!0):De!=null?String(De):null}function parseClassNames(De){return Array.isArray(De)?De:typeof De=="string"?De.split(/\s+/):[]}const EVENT_UI_REFINERS={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:identity,overlap:identity,allow:identity,className:parseClassNames,classNames:parseClassNames,color:String,backgroundColor:String,borderColor:String,textColor:String},EMPTY_EVENT_UI={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function createEventUi(De,_e){let Ae=normalizeConstraint(De.constraint,_e);return{display:De.display||null,startEditable:De.startEditable!=null?De.startEditable:De.editable,durationEditable:De.durationEditable!=null?De.durationEditable:De.editable,constraints:Ae!=null?[Ae]:[],overlap:De.overlap!=null?De.overlap:null,allows:De.allow!=null?[De.allow]:[],backgroundColor:De.backgroundColor||De.color||"",borderColor:De.borderColor||De.color||"",textColor:De.textColor||"",classNames:(De.className||[]).concat(De.classNames||[])}}function combineEventUis(De){return De.reduce(combineTwoEventUis,EMPTY_EVENT_UI)}function combineTwoEventUis(De,_e){return{display:_e.display!=null?_e.display:De.display,startEditable:_e.startEditable!=null?_e.startEditable:De.startEditable,durationEditable:_e.durationEditable!=null?_e.durationEditable:De.durationEditable,constraints:De.constraints.concat(_e.constraints),overlap:typeof _e.overlap=="boolean"?_e.overlap:De.overlap,allows:De.allows.concat(_e.allows),backgroundColor:_e.backgroundColor||De.backgroundColor,borderColor:_e.borderColor||De.borderColor,textColor:_e.textColor||De.textColor,classNames:De.classNames.concat(_e.classNames)}}const EVENT_SOURCE_REFINERS={id:String,defaultAllDay:Boolean,url:String,format:String,events:identity,eventDataTransform:identity,success:identity,failure:identity};function parseEventSource(De,_e,Ae=buildEventSourceRefiners(_e)){let ke;if(typeof De=="string"?ke={url:De}:typeof De=="function"||Array.isArray(De)?ke={events:De}:typeof De=="object"&&De&&(ke=De),ke){let{refined:Le,extra:Fe}=refineProps(ke,Ae),Ve=buildEventSourceMeta(Le,_e);if(Ve)return{_raw:De,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:Le.defaultAllDay,eventDataTransform:Le.eventDataTransform,success:Le.success,failure:Le.failure,publicId:Le.id||"",sourceId:guid(),sourceDefId:Ve.sourceDefId,meta:Ve.meta,ui:createEventUi(Le,_e),extendedProps:Fe}}return null}function buildEventSourceRefiners(De){return Object.assign(Object.assign(Object.assign({},EVENT_UI_REFINERS),EVENT_SOURCE_REFINERS),De.pluginHooks.eventSourceRefiners)}function buildEventSourceMeta(De,_e){let Ae=_e.pluginHooks.eventSourceDefs;for(let ke=Ae.length-1;ke>=0;ke-=1){let Fe=Ae[ke].parseMeta(De);if(Fe)return{sourceDefId:ke,meta:Fe}}return null}function reduceEventStore(De,_e,Ae,ke,Le){switch(_e.type){case"RECEIVE_EVENTS":return receiveRawEvents(De,Ae[_e.sourceId],_e.fetchId,_e.fetchRange,_e.rawEvents,Le);case"RESET_RAW_EVENTS":return resetRawEvents(De,Ae[_e.sourceId],_e.rawEvents,ke.activeRange,Le);case"ADD_EVENTS":return addEvent(De,_e.eventStore,ke?ke.activeRange:null,Le);case"RESET_EVENTS":return _e.eventStore;case"MERGE_EVENTS":return mergeEventStores(De,_e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return ke?expandRecurring(De,ke.activeRange,Le):De;case"REMOVE_EVENTS":return excludeSubEventStore(De,_e.eventStore);case"REMOVE_EVENT_SOURCE":return excludeEventsBySourceId(De,_e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return filterEventStoreDefs(De,Fe=>!Fe.sourceId);case"REMOVE_ALL_EVENTS":return createEmptyEventStore();default:return De}}function receiveRawEvents(De,_e,Ae,ke,Le,Fe){if(_e&&Ae===_e.latestFetchId){let Ve=parseEvents(transformRawEvents(Le,_e,Fe),_e,Fe);return ke&&(Ve=expandRecurring(Ve,ke,Fe)),mergeEventStores(excludeEventsBySourceId(De,_e.sourceId),Ve)}return De}function resetRawEvents(De,_e,Ae,ke,Le){const{defIdMap:Fe,instanceIdMap:Ve}=buildPublicIdMaps(De);let Ie=parseEvents(transformRawEvents(Ae,_e,Le),_e,Le,!1,Fe,Ve);return expandRecurring(Ie,ke,Le)}function transformRawEvents(De,_e,Ae){let ke=Ae.options.eventDataTransform,Le=_e?_e.eventDataTransform:null;return Le&&(De=transformEachRawEvent(De,Le)),ke&&(De=transformEachRawEvent(De,ke)),De}function transformEachRawEvent(De,_e){let Ae;if(!_e)Ae=De;else{Ae=[];for(let ke of De){let Le=_e(ke);Le?Ae.push(Le):Le==null&&Ae.push(ke)}}return Ae}function addEvent(De,_e,Ae,ke){return Ae&&(_e=expandRecurring(_e,Ae,ke)),mergeEventStores(De,_e)}function rezoneEventStoreDates(De,_e,Ae){let{defs:ke}=De,Le=mapHash(De.instances,Fe=>ke[Fe.defId].allDay?Fe:Object.assign(Object.assign({},Fe),{range:{start:Ae.createMarker(_e.toDate(Fe.range.start,Fe.forcedStartTzo)),end:Ae.createMarker(_e.toDate(Fe.range.end,Fe.forcedEndTzo))},forcedStartTzo:Ae.canComputeOffset?null:Fe.forcedStartTzo,forcedEndTzo:Ae.canComputeOffset?null:Fe.forcedEndTzo}));return{defs:ke,instances:Le}}function excludeEventsBySourceId(De,_e){return filterEventStoreDefs(De,Ae=>Ae.sourceId!==_e)}function buildPublicIdMaps(De){const{defs:_e,instances:Ae}=De,ke={},Le={};for(let Fe in _e){const Ve=_e[Fe],{publicId:Ie}=Ve;Ie&&(ke[Ie]=Fe)}for(let Fe in Ae){const Ve=Ae[Fe],Ie=_e[Ve.defId],{publicId:je}=Ie;je&&(Le[je]=Fe)}return{defIdMap:ke,instanceIdMap:Le}}class Emitter{constructor(){this.handlers={},this.thisContext=null}setThisContext(_e){this.thisContext=_e}setOptions(_e){this.options=_e}on(_e,Ae){addToHash(this.handlers,_e,Ae)}off(_e,Ae){removeFromHash(this.handlers,_e,Ae)}trigger(_e,...Ae){let ke=this.handlers[_e]||[],Le=this.options&&this.options[_e],Fe=[].concat(Le||[],ke);for(let Ve of Fe)Ve.apply(this.thisContext,Ae)}hasHandlers(_e){return!!(this.handlers[_e]&&this.handlers[_e].length||this.options&&this.options[_e])}}function addToHash(De,_e,Ae){(De[_e]||(De[_e]=[])).push(Ae)}function removeFromHash(De,_e,Ae){Ae?De[_e]&&(De[_e]=De[_e].filter(ke=>ke!==Ae)):delete De[_e]}const DEF_DEFAULTS={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function parseBusinessHours(De,_e){return parseEvents(refineInputs(De),null,_e)}function refineInputs(De){let _e;return De===!0?_e=[{}]:Array.isArray(De)?_e=De.filter(Ae=>Ae.daysOfWeek):typeof De=="object"&&De?_e=[De]:_e=[],_e=_e.map(Ae=>Object.assign(Object.assign({},DEF_DEFAULTS),Ae)),_e}function triggerDateSelect(De,_e,Ae){Ae.emitter.trigger("select",Object.assign(Object.assign({},buildDateSpanApiWithContext(De,Ae)),{jsEvent:_e?_e.origEvent:null,view:Ae.viewApi||Ae.calendarApi.view}))}function triggerDateUnselect(De,_e){_e.emitter.trigger("unselect",{jsEvent:De?De.origEvent:null,view:_e.viewApi||_e.calendarApi.view})}function buildDateSpanApiWithContext(De,_e){let Ae={};for(let ke of _e.pluginHooks.dateSpanTransforms)Object.assign(Ae,ke(De,_e));return Object.assign(Ae,buildDateSpanApi(De,_e.dateEnv)),Ae}function getDefaultEventEnd(De,_e,Ae){let{dateEnv:ke,options:Le}=Ae,Fe=_e;return De?(Fe=startOfDay(Fe),Fe=ke.add(Fe,Le.defaultAllDayEventDuration)):Fe=ke.add(Fe,Le.defaultTimedEventDuration),Fe}function applyMutationToEventStore(De,_e,Ae,ke){let Le=compileEventUis(De.defs,_e),Fe=createEmptyEventStore();for(let Ve in De.defs){let Ie=De.defs[Ve];Fe.defs[Ve]=applyMutationToEventDef(Ie,Le[Ve],Ae,ke)}for(let Ve in De.instances){let Ie=De.instances[Ve],je=Fe.defs[Ie.defId];Fe.instances[Ve]=applyMutationToEventInstance(Ie,je,Le[Ie.defId],Ae,ke)}return Fe}function applyMutationToEventDef(De,_e,Ae,ke){let Le=Ae.standardProps||{};Le.hasEnd==null&&_e.durationEditable&&(Ae.startDelta||Ae.endDelta)&&(Le.hasEnd=!0);let Fe=Object.assign(Object.assign(Object.assign({},De),Le),{ui:Object.assign(Object.assign({},De.ui),Le.ui)});Ae.extendedProps&&(Fe.extendedProps=Object.assign(Object.assign({},Fe.extendedProps),Ae.extendedProps));for(let Ve of ke.pluginHooks.eventDefMutationAppliers)Ve(Fe,Ae,ke);return!Fe.hasEnd&&ke.options.forceEventDuration&&(Fe.hasEnd=!0),Fe}function applyMutationToEventInstance(De,_e,Ae,ke,Le){let{dateEnv:Fe}=Le,Ve=ke.standardProps&&ke.standardProps.allDay===!0,Ie=ke.standardProps&&ke.standardProps.hasEnd===!1,je=Object.assign({},De);return Ve&&(je.range=computeAlignedDayRange(je.range)),ke.datesDelta&&Ae.startEditable&&(je.range={start:Fe.add(je.range.start,ke.datesDelta),end:Fe.add(je.range.end,ke.datesDelta)}),ke.startDelta&&Ae.durationEditable&&(je.range={start:Fe.add(je.range.start,ke.startDelta),end:je.range.end}),ke.endDelta&&Ae.durationEditable&&(je.range={start:je.range.start,end:Fe.add(je.range.end,ke.endDelta)}),Ie&&(je.range={start:je.range.start,end:getDefaultEventEnd(_e.allDay,je.range.start,Le)}),_e.allDay&&(je.range={start:startOfDay(je.range.start),end:startOfDay(je.range.end)}),je.range.end<je.range.start&&(je.range.end=getDefaultEventEnd(_e.allDay,je.range.start,Le)),je}class EventSourceImpl{constructor(_e,Ae){this.context=_e,this.internalEventSource=Ae}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class EventImpl{constructor(_e,Ae,ke){this._context=_e,this._def=Ae,this._instance=ke||null}setProp(_e,Ae){if(_e in EVENT_DATE_REFINERS)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(_e==="id")Ae=EVENT_NON_DATE_REFINERS[_e](Ae),this.mutate({standardProps:{publicId:Ae}});else if(_e in EVENT_NON_DATE_REFINERS)Ae=EVENT_NON_DATE_REFINERS[_e](Ae),this.mutate({standardProps:{[_e]:Ae}});else if(_e in EVENT_UI_REFINERS){let ke=EVENT_UI_REFINERS[_e](Ae);_e==="color"?ke={backgroundColor:Ae,borderColor:Ae}:_e==="editable"?ke={startEditable:Ae,durationEditable:Ae}:ke={[_e]:Ae},this.mutate({standardProps:{ui:ke}})}else console.warn(`Could not set prop '${_e}'. Use setExtendedProp instead.`)}setExtendedProp(_e,Ae){this.mutate({extendedProps:{[_e]:Ae}})}setStart(_e,Ae={}){let{dateEnv:ke}=this._context,Le=ke.createMarker(_e);if(Le&&this._instance){let Fe=this._instance.range,Ve=diffDates(Fe.start,Le,ke,Ae.granularity);Ae.maintainDuration?this.mutate({datesDelta:Ve}):this.mutate({startDelta:Ve})}}setEnd(_e,Ae={}){let{dateEnv:ke}=this._context,Le;if(!(_e!=null&&(Le=ke.createMarker(_e),!Le))&&this._instance)if(Le){let Fe=diffDates(this._instance.range.end,Le,ke,Ae.granularity);this.mutate({endDelta:Fe})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(_e,Ae,ke={}){let{dateEnv:Le}=this._context,Fe={allDay:ke.allDay},Ve=Le.createMarker(_e),Ie;if(Ve&&!(Ae!=null&&(Ie=Le.createMarker(Ae),!Ie))&&this._instance){let je=this._instance.range;ke.allDay===!0&&(je=computeAlignedDayRange(je));let Ke=diffDates(je.start,Ve,Le,ke.granularity);if(Ie){let $e=diffDates(je.end,Ie,Le,ke.granularity);durationsEqual(Ke,$e)?this.mutate({datesDelta:Ke,standardProps:Fe}):this.mutate({startDelta:Ke,endDelta:$e,standardProps:Fe})}else Fe.hasEnd=!1,this.mutate({datesDelta:Ke,standardProps:Fe})}}moveStart(_e){let Ae=createDuration(_e);Ae&&this.mutate({startDelta:Ae})}moveEnd(_e){let Ae=createDuration(_e);Ae&&this.mutate({endDelta:Ae})}moveDates(_e){let Ae=createDuration(_e);Ae&&this.mutate({datesDelta:Ae})}setAllDay(_e,Ae={}){let ke={allDay:_e},{maintainDuration:Le}=Ae;Le==null&&(Le=this._context.options.allDayMaintainDuration),this._def.allDay!==_e&&(ke.hasEnd=Le),this.mutate({standardProps:ke})}formatRange(_e){let{dateEnv:Ae}=this._context,ke=this._instance,Le=createFormatter(_e);return this._def.hasEnd?Ae.formatRange(ke.range.start,ke.range.end,Le,{forcedStartTzo:ke.forcedStartTzo,forcedEndTzo:ke.forcedEndTzo}):Ae.format(ke.range.start,Le,{forcedTzo:ke.forcedStartTzo})}mutate(_e){let Ae=this._instance;if(Ae){let ke=this._def,Le=this._context,{eventStore:Fe}=Le.getCurrentData(),Ve=getRelevantEvents(Fe,Ae.instanceId);Ve=applyMutationToEventStore(Ve,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},_e,Le);let je=new EventImpl(Le,ke,Ae);this._def=Ve.defs[ke.defId],this._instance=Ve.instances[Ae.instanceId],Le.dispatch({type:"MERGE_EVENTS",eventStore:Ve}),Le.emitter.trigger("eventChange",{oldEvent:je,event:this,relatedEvents:buildEventApis(Ve,Le,Ae),revert(){Le.dispatch({type:"RESET_EVENTS",eventStore:Fe})}})}}remove(){let _e=this._context,Ae=eventApiToStore(this);_e.dispatch({type:"REMOVE_EVENTS",eventStore:Ae}),_e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){_e.dispatch({type:"MERGE_EVENTS",eventStore:Ae})}})}get source(){let{sourceId:_e}=this._def;return _e?new EventSourceImpl(this._context,this._context.getCurrentData().eventSources[_e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let _e=this._instance;return _e?this._context.dateEnv.formatIso(_e.range.start,{omitTime:this._def.allDay,forcedTzo:_e.forcedStartTzo}):""}get endStr(){let _e=this._instance;return _e&&this._def.hasEnd?this._context.dateEnv.formatIso(_e.range.end,{omitTime:this._def.allDay,forcedTzo:_e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(_e={}){let Ae=this._def,{ui:ke}=Ae,{startStr:Le,endStr:Fe}=this,Ve={allDay:Ae.allDay};return Ae.title&&(Ve.title=Ae.title),Le&&(Ve.start=Le),Fe&&(Ve.end=Fe),Ae.publicId&&(Ve.id=Ae.publicId),Ae.groupId&&(Ve.groupId=Ae.groupId),Ae.url&&(Ve.url=Ae.url),ke.display&&ke.display!=="auto"&&(Ve.display=ke.display),_e.collapseColor&&ke.backgroundColor&&ke.backgroundColor===ke.borderColor?Ve.color=ke.backgroundColor:(ke.backgroundColor&&(Ve.backgroundColor=ke.backgroundColor),ke.borderColor&&(Ve.borderColor=ke.borderColor)),ke.textColor&&(Ve.textColor=ke.textColor),ke.classNames.length&&(Ve.classNames=ke.classNames),Object.keys(Ae.extendedProps).length&&(_e.collapseExtendedProps?Object.assign(Ve,Ae.extendedProps):Ve.extendedProps=Ae.extendedProps),Ve}toJSON(){return this.toPlainObject()}}function eventApiToStore(De){let _e=De._def,Ae=De._instance;return{defs:{[_e.defId]:_e},instances:Ae?{[Ae.instanceId]:Ae}:{}}}function buildEventApis(De,_e,Ae){let{defs:ke,instances:Le}=De,Fe=[],Ve=Ae?Ae.instanceId:"";for(let Ie in Le){let je=Le[Ie],Ke=ke[je.defId];je.instanceId!==Ve&&Fe.push(new EventImpl(_e,Ke,je))}return Fe}function sliceEventStore(De,_e,Ae,ke){let Le={},Fe={},Ve={},Ie=[],je=[],Ke=compileEventUis(De.defs,_e);for(let $e in De.defs){let qe=De.defs[$e];Ke[qe.defId].display==="inverse-background"&&(qe.groupId?(Le[qe.groupId]=[],Ve[qe.groupId]||(Ve[qe.groupId]=qe)):Fe[$e]=[])}for(let $e in De.instances){let qe=De.instances[$e],ci=De.defs[qe.defId],gi=Ke[ci.defId],Ai=qe.range,oi=!ci.allDay&&ke?computeVisibleDayRange(Ai,ke):Ai,ii=intersectRanges(oi,Ae);ii&&(gi.display==="inverse-background"?ci.groupId?Le[ci.groupId].push(ii):Fe[qe.defId].push(ii):gi.display!=="none"&&(gi.display==="background"?Ie:je).push({def:ci,ui:gi,instance:qe,range:ii,isStart:oi.start&&oi.start.valueOf()===ii.start.valueOf(),isEnd:oi.end&&oi.end.valueOf()===ii.end.valueOf()}))}for(let $e in Le){let qe=Le[$e],ci=invertRanges(qe,Ae);for(let gi of ci){let Ai=Ve[$e],oi=Ke[Ai.defId];Ie.push({def:Ai,ui:oi,instance:null,range:gi,isStart:!1,isEnd:!1})}}for(let $e in Fe){let qe=Fe[$e],ci=invertRanges(qe,Ae);for(let gi of ci)Ie.push({def:De.defs[$e],ui:Ke[$e],instance:null,range:gi,isStart:!1,isEnd:!1})}return{bg:Ie,fg:je}}function setElSeg(De,_e){De.fcSeg=_e}function getElSeg(De){return De.fcSeg||De.parentNode.fcSeg||null}function compileEventUis(De,_e){return mapHash(De,Ae=>compileEventUi(Ae,_e))}function compileEventUi(De,_e){let Ae=[];return _e[""]&&Ae.push(_e[""]),_e[De.defId]&&Ae.push(_e[De.defId]),Ae.push(De.ui),combineEventUis(Ae)}function sortEventSegs(De,_e){let Ae=De.map(buildSegCompareObj);return Ae.sort((ke,Le)=>compareByFieldSpecs(ke,Le,_e)),Ae.map(ke=>ke._seg)}function buildSegCompareObj(De){let{eventRange:_e}=De,Ae=_e.def,ke=_e.instance?_e.instance.range:_e.range,Le=ke.start?ke.start.valueOf():0,Fe=ke.end?ke.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},Ae.extendedProps),Ae),{id:Ae.publicId,start:Le,end:Fe,duration:Fe-Le,allDay:Number(Ae.allDay),_seg:De})}function computeSegDraggable(De,_e){let{pluginHooks:Ae}=_e,ke=Ae.isDraggableTransformers,{def:Le,ui:Fe}=De.eventRange,Ve=Fe.startEditable;for(let Ie of ke)Ve=Ie(Ve,Le,Fe,_e);return Ve}function computeSegStartResizable(De,_e){return De.isStart&&De.eventRange.ui.durationEditable&&_e.options.eventResizableFromStart}function computeSegEndResizable(De,_e){return De.isEnd&&De.eventRange.ui.durationEditable}function buildSegTimeText(De,_e,Ae,ke,Le,Fe,Ve){let{dateEnv:Ie,options:je}=Ae,{displayEventTime:Ke,displayEventEnd:$e}=je,qe=De.eventRange.def,ci=De.eventRange.instance;Ke==null&&(Ke=ke!==!1),$e==null&&($e=Le!==!1);let gi=ci.range.start,Ai=ci.range.end,oi=Fe||De.start||De.eventRange.range.start,ii=Ve||De.end||De.eventRange.range.end,hi=startOfDay(gi).valueOf()===startOfDay(oi).valueOf(),Ei=startOfDay(addMs(Ai,-1)).valueOf()===startOfDay(addMs(ii,-1)).valueOf();return Ke&&!qe.allDay&&(hi||Ei)?(oi=hi?gi:oi,ii=Ei?Ai:ii,$e&&qe.hasEnd?Ie.formatRange(oi,ii,_e,{forcedStartTzo:Fe?null:ci.forcedStartTzo,forcedEndTzo:Ve?null:ci.forcedEndTzo}):Ie.format(oi,_e,{forcedTzo:Fe?null:ci.forcedStartTzo})):""}function getSegMeta(De,_e,Ae){let ke=De.eventRange.range;return{isPast:ke.end<=(Ae||_e.start),isFuture:ke.start>=(Ae||_e.end),isToday:_e&&rangeContainsMarker(_e,ke.start)}}function getEventClassNames(De){let _e=["fc-event"];return De.isMirror&&_e.push("fc-event-mirror"),De.isDraggable&&_e.push("fc-event-draggable"),(De.isStartResizable||De.isEndResizable)&&_e.push("fc-event-resizable"),De.isDragging&&_e.push("fc-event-dragging"),De.isResizing&&_e.push("fc-event-resizing"),De.isSelected&&_e.push("fc-event-selected"),De.isStart&&_e.push("fc-event-start"),De.isEnd&&_e.push("fc-event-end"),De.isPast&&_e.push("fc-event-past"),De.isToday&&_e.push("fc-event-today"),De.isFuture&&_e.push("fc-event-future"),_e}function buildEventRangeKey(De){return De.instance?De.instance.instanceId:`${De.def.defId}:${De.range.start.toISOString()}`}function getSegAnchorAttrs(De,_e){let{def:Ae,instance:ke}=De.eventRange,{url:Le}=Ae;if(Le)return{href:Le};let{emitter:Fe,options:Ve}=_e,{eventInteractive:Ie}=Ve;return Ie==null&&(Ie=Ae.interactive,Ie==null&&(Ie=!!Fe.hasHandlers("eventClick"))),Ie?createAriaKeyboardAttrs(je=>{Fe.trigger("eventClick",{el:je.target,event:new EventImpl(_e,Ae,ke),jsEvent:je,view:_e.viewApi})}):{}}const STANDARD_PROPS={start:identity,end:identity,allDay:Boolean};function parseDateSpan(De,_e,Ae){let ke=parseOpenDateSpan(De,_e),{range:Le}=ke;if(!Le.start)return null;if(!Le.end){if(Ae==null)return null;Le.end=_e.add(Le.start,Ae)}return ke}function parseOpenDateSpan(De,_e){let{refined:Ae,extra:ke}=refineProps(De,STANDARD_PROPS),Le=Ae.start?_e.createMarkerMeta(Ae.start):null,Fe=Ae.end?_e.createMarkerMeta(Ae.end):null,{allDay:Ve}=Ae;return Ve==null&&(Ve=Le&&Le.isTimeUnspecified&&(!Fe||Fe.isTimeUnspecified)),Object.assign({range:{start:Le?Le.marker:null,end:Fe?Fe.marker:null},allDay:Ve},ke)}function buildDateSpanApi(De,_e){return Object.assign(Object.assign({},buildRangeApi(De.range,_e,De.allDay)),{allDay:De.allDay})}function buildRangeApiWithTimeZone(De,_e,Ae){return Object.assign(Object.assign({},buildRangeApi(De,_e,Ae)),{timeZone:_e.timeZone})}function buildRangeApi(De,_e,Ae){return{start:_e.toDate(De.start),end:_e.toDate(De.end),startStr:_e.formatIso(De.start,{omitTime:Ae}),endStr:_e.formatIso(De.end,{omitTime:Ae})}}function fabricateEventRange(De,_e,Ae){let ke=refineEventDef({editable:!1},Ae),Le=parseEventDef(ke.refined,ke.extra,"",De.allDay,!0,Ae);return{def:Le,ui:compileEventUi(Le,_e),instance:createEventInstance(Le.defId,De.range),range:De.range,isStart:!0,isEnd:!0}}function unpromisify(De,_e,Ae){let ke=!1,Le=function(Ie){ke||(ke=!0,_e(Ie))},Fe=function(Ie){ke||(ke=!0,Ae(Ie))},Ve=De(Le,Fe);Ve&&typeof Ve.then=="function"&&Ve.then(Le,Fe)}class JsonRequestError extends Error{constructor(_e,Ae){super(_e),this.response=Ae}}function requestJson(De,_e,Ae){De=De.toUpperCase();const ke={method:De};return De==="GET"?_e+=(_e.indexOf("?")===-1?"?":"&")+new URLSearchParams(Ae):(ke.body=new URLSearchParams(Ae),ke.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(_e,ke).then(Le=>{if(Le.ok)return Le.json().then(Fe=>[Fe,Le],()=>{throw new JsonRequestError("Failure parsing JSON",Le)});throw new JsonRequestError("Request failed",Le)})}let canVGrowWithinCell;function getCanVGrowWithinCell(){return canVGrowWithinCell==null&&(canVGrowWithinCell=computeCanVGrowWithinCell()),canVGrowWithinCell}function computeCanVGrowWithinCell(){if(typeof document>"u")return!0;let De=document.createElement("div");De.style.position="absolute",De.style.top="0px",De.style.left="0px",De.innerHTML="<table><tr><td><div></div></td></tr></table>",De.querySelector("table").style.height="100px",De.querySelector("div").style.height="100%",document.body.appendChild(De);let Ae=De.querySelector("div").offsetHeight>0;return document.body.removeChild(De),Ae}class CalendarRoot extends BaseComponent{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{flushSync(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{flushSync(()=>{this.setState({forPrint:!1})})}}render(){let{props:_e}=this,{options:Ae}=_e,{forPrint:ke}=this.state,Le=ke||Ae.height==="auto"||Ae.contentHeight==="auto",Fe=!Le&&Ae.height!=null?Ae.height:"",Ve=["fc",ke?"fc-media-print":"fc-media-screen",`fc-direction-${Ae.direction}
44`,_e.theme.getClass("root")];return getCanVGrowWithinCell()||Ve.push("fc-liquid-hack"),_e.children(Ve,Fe,Le,ke)}componentDidMount(){let{emitter:_e}=this.props;_e.on("_beforeprint",this.handleBeforePrint),_e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:_e}=this.props;_e.off("_beforeprint",this.handleBeforePrint),_e.off("_afterprint",this.handleAfterPrint)}}class Interaction{constructor(_e){this.component=_e.component,this.isHitComboAllowed=_e.isHitComboAllowed||null}destroy(){}}function parseInteractionSettings(De,_e){return{component:De,el:_e.el,useEventCenter:_e.useEventCenter!=null?_e.useEventCenter:!0,isHitComboAllowed:_e.isHitComboAllowed||null}}const interactionSettingsStore={};class NowTimer extends x$4{constructor(_e,Ae){super(_e,Ae),this.handleRefresh=()=>{let ke=this.computeTiming();ke.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(ke.state),this.clearTimeout(),this.setTimeout(ke.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:_e,state:Ae}=this;return _e.children(Ae.nowDate,Ae.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(_e){_e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:_e,context:Ae}=this,ke=Ae.nowManager.getDateMarker(),{nowIndicatorSnap:Le}=Ae.options;Le==="auto"&&(Le=/year|month|week|day/.test(_e.unit)||(_e.unitValue||1)===1);let Fe,Ve;return Le?(Fe=Ae.dateEnv.startOf(ke,_e.unit),Ve=Ae.dateEnv.add(Fe,createDuration(1,_e.unit)).valueOf()-ke.valueOf()):(Fe=ke,Ve=1e3*60),Ve=Math.min(1e3*60*60*24,Ve),{state:{nowDate:Fe,todayRange:buildDayRange(Fe)},waitMs:Ve}}setTimeout(_e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{const Ae=this.computeTiming();this.setState(Ae.state,()=>{this.setTimeout(Ae.waitMs)})},_e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}NowTimer.contextType=ViewContextType;function buildDayRange(De){let _e=startOfDay(De),Ae=addDays(_e,1);return{start:_e,end:Ae}}class CalendarImpl{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(_e){this.currentDataManager.dispatch(_e)}get view(){return this.getCurrentData().viewApi}batchRendering(_e){_e()}updateSize(){this.trigger("_resize",!0)}setOption(_e,Ae){this.dispatch({type:"SET_OPTION",optionName:_e,rawOptionValue:Ae})}getOption(_e){return this.currentDataManager.currentCalendarOptionsInput[_e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(_e,Ae){let{currentDataManager:ke}=this;ke.currentCalendarOptionsRefiners[_e]?ke.emitter.on(_e,Ae):console.warn(`Unknown listener name '${_e}'`)}off(_e,Ae){this.currentDataManager.emitter.off(_e,Ae)}trigger(_e,...Ae){this.currentDataManager.emitter.trigger(_e,...Ae)}changeView(_e,Ae){this.batchRendering(()=>{if(this.unselect(),Ae)if(Ae.start&&Ae.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:_e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:Ae});else{let{dateEnv:ke}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:_e,dateMarker:ke.createMarker(Ae)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:_e})})}zoomTo(_e,Ae){let ke=this.getCurrentData(),Le;Ae=Ae||"day",Le=ke.viewSpecs[Ae]||this.getUnitViewSpec(Ae),this.unselect(),Le?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:Le.type,dateMarker:_e}):this.dispatch({type:"CHANGE_DATE",dateMarker:_e})}getUnitViewSpec(_e){let{viewSpecs:Ae,toolbarConfig:ke}=this.getCurrentData(),Le=[].concat(ke.header?ke.header.viewsWithButtons:[],ke.footer?ke.footer.viewsWithButtons:[]),Fe,Ve;for(let Ie in Ae)Le.push(Ie);for(Fe=0;Fe<Le.length;Fe+=1)if(Ve=Ae[Le[Fe]],Ve&&Ve.singleUnit===_e)return Ve;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let _e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:_e.dateEnv.addYears(_e.currentDate,-1)})}nextYear(){let _e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:_e.dateEnv.addYears(_e.currentDate,1)})}today(){let _e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:_e.nowManager.getDateMarker()})}gotoDate(_e){let Ae=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Ae.dateEnv.createMarker(_e)})}incrementDate(_e){let Ae=this.getCurrentData(),ke=createDuration(_e);ke&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Ae.dateEnv.add(Ae.currentDate,ke)}))}getDate(){let _e=this.getCurrentData();return _e.dateEnv.toDate(_e.currentDate)}formatDate(_e,Ae){let{dateEnv:ke}=this.getCurrentData();return ke.format(ke.createMarker(_e),createFormatter(Ae))}formatRange(_e,Ae,ke){let{dateEnv:Le}=this.getCurrentData();return Le.formatRange(Le.createMarker(_e),Le.createMarker(Ae),createFormatter(ke),ke)}formatIso(_e,Ae){let{dateEnv:ke}=this.getCurrentData();return ke.formatIso(ke.createMarker(_e),{omitTime:Ae})}select(_e,Ae){let ke;Ae==null?_e.start!=null?ke=_e:ke={start:_e,end:null}:ke={start:_e,end:Ae};let Le=this.getCurrentData(),Fe=parseDateSpan(ke,Le.dateEnv,createDuration({days:1}));Fe&&(this.dispatch({type:"SELECT_DATES",selection:Fe}),triggerDateSelect(Fe,null,Le))}unselect(_e){let Ae=this.getCurrentData();Ae.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),triggerDateUnselect(_e,Ae))}addEvent(_e,Ae){if(_e instanceof EventImpl){let Ve=_e._def,Ie=_e._instance;return this.getCurrentData().eventStore.defs[Ve.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:eventTupleToStore({def:Ve,instance:Ie})}),this.triggerEventAdd(_e)),_e}let ke=this.getCurrentData(),Le;
vendor: 80,363 bytes, line 44
44if(Ae instanceof EventSourceImpl)Le=Ae.internalEventSource;else if(typeof Ae=="boolean")Ae&&([Le]=hashValuesToArray(ke.eventSources));else if(Ae!=null){let Ve=this.getEventSourceById(Ae);if(!Ve)return console.warn(`Could not find an event source with ID "${Ae}"`),null;Le=Ve.internalEventSource}let Fe=parseEvent(_e,Le,ke,!1);if(Fe){let Ve=new EventImpl(ke,Fe.def,Fe.def.recurringDef?null:Fe.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:eventTupleToStore(Fe)}),this.triggerEventAdd(Ve),Ve}return null}triggerEventAdd(_e){let{emitter:Ae}=this.getCurrentData();Ae.trigger("eventAdd",{event:_e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:eventApiToStore(_e)})}})}getEventById(_e){let Ae=this.getCurrentData(),{defs:ke,instances:Le}=Ae.eventStore;_e=String(_e);for(let Fe in ke){let Ve=ke[Fe];if(Ve.publicId===_e){if(Ve.recurringDef)return new EventImpl(Ae,Ve,null);for(let Ie in Le){let je=Le[Ie];if(je.defId===Ve.defId)return new EventImpl(Ae,Ve,je)}}}return null}getEvents(){let _e=this.getCurrentData();return buildEventApis(_e.eventStore,_e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let _e=this.getCurrentData(),Ae=_e.eventSources,ke=[];for(let Le in Ae)ke.push(new EventSourceImpl(_e,Ae[Le]));return ke}getEventSourceById(_e){let Ae=this.getCurrentData(),ke=Ae.eventSources;_e=String(_e);for(let Le in ke)if(ke[Le].publicId===_e)return new EventSourceImpl(Ae,ke[Le]);return null}addEventSource(_e){let Ae=this.getCurrentData();if(_e instanceof EventSourceImpl)return Ae.eventSources[_e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[_e.internalEventSource]}),_e;let ke=parseEventSource(_e,Ae);return ke?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[ke]}),new EventSourceImpl(Ae,ke)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(_e){let Ae=createDuration(_e);Ae&&this.trigger("_scrollRequest",{time:Ae})}}function intersectRects(De,_e){let Ae={left:Math.max(De.left,_e.left),right:Math.min(De.right,_e.right),top:Math.max(De.top,_e.top),bottom:Math.min(De.bottom,_e.bottom)};return Ae.left<Ae.right&&Ae.top<Ae.bottom?Ae:!1}function getDateMeta(De,_e,Ae,ke){return{dow:De.getUTCDay(),isDisabled:!!(ke&&(!ke.activeRange||!rangeContainsMarker(ke.activeRange,De))),isOther:!!(ke&&!rangeContainsMarker(ke.currentRange,De)),isToday:!!(_e&&rangeContainsMarker(_e,De)),isPast:!!(Ae?De<Ae:_e&&De<_e.start),isFuture:!!(Ae?De>Ae:_e&&De>=_e.end)}}function getDayClassNames(De,_e){let Ae=["fc-day",`fc-day-${DAY_IDS[De.dow]}`];return De.isDisabled?Ae.push("fc-day-disabled"):(De.isToday&&(Ae.push("fc-day-today"),Ae.push(_e.getClass("today"))),De.isPast&&Ae.push("fc-day-past"),De.isFuture&&Ae.push("fc-day-future"),De.isOther&&Ae.push("fc-day-other")),Ae}const DAY_FORMAT=createFormatter({year:"numeric",month:"long",day:"numeric"}),WEEK_FORMAT=createFormatter({week:"long"});function buildNavLinkAttrs(De,_e,Ae="day",ke=!0){const{dateEnv:Le,options:Fe,calendarApi:Ve}=De;let Ie=Le.format(_e,Ae==="week"?WEEK_FORMAT:DAY_FORMAT);if(Fe.navLinks){let je=Le.toDate(_e);const Ke=$e=>{let qe=Ae==="day"?Fe.navLinkDayClick:Ae==="week"?Fe.navLinkWeekClick:null;typeof qe=="function"?qe.call(Ve,Le.toDate(_e),$e):(typeof qe=="string"&&(Ae=qe),Ve.zoomTo(_e,Ae))};return Object.assign({title:formatWithOrdinals(Fe.navLinkHint,[Ie,je],Ie),"data-navlink":""},ke?createAriaClickAttrs(Ke):{onClick:Ke})}return{"aria-label":Ie}}let _scrollbarWidths;function getScrollbarWidths(){return _scrollbarWidths||(_scrollbarWidths=computeScrollbarWidths()),_scrollbarWidths}function computeScrollbarWidths(){let De=document.createElement("div");De.style.overflow="scroll",De.style.position="absolute",De.style.top="-9999px",De.style.left="-9999px",document.body.appendChild(De);let _e=computeScrollbarWidthsForEl(De);return document.body.removeChild(De),_e}function computeScrollbarWidthsForEl(De){return{x:De.offsetHeight-De.clientHeight,y:De.offsetWidth-De.clientWidth}}function computeClippedClientRect(De){let _e=getClippingParents(De),Ae=De.getBoundingClientRect();for(let ke of _e){let Le=intersectRects(Ae,ke.getBoundingClientRect());if(Le)Ae=Le;else return null}return Ae}function getClippingParents(De){let _e=[];for(;De instanceof HTMLElement;){let Ae=window.getComputedStyle(De);if(Ae.position==="fixed")break;/(auto|scroll)/.test(Ae.overflow+Ae.overflowY+Ae.overflowX)&&_e.push(De),De=De.parentNode}return _e}class PositionCache{constructor(_e,Ae,ke,Le){this.els=Ae;let Fe=this.originClientRect=_e.getBoundingClientRect();ke&&this.buildElHorizontals(Fe.left),Le&&this.buildElVerticals(Fe.top)}buildElHorizontals(_e){let Ae=[],ke=[];for(let Le of this.els){let Fe=Le.getBoundingClientRect();Ae.push(Fe.left-_e),ke.push(Fe.right-_e)}this.lefts=Ae,this.rights=ke}buildElVerticals(_e){let Ae=[],ke=[];for(let Le of this.els){let Fe=Le.getBoundingClientRect();Ae.push(Fe.top-_e),ke.push(Fe.bottom-_e)}this.tops=Ae,this.bottoms=ke}leftToIndex(_e){let{lefts:Ae,rights:ke}=this,Le=Ae.length,Fe;for(Fe=0;Fe<Le;Fe+=1)if(_e>=Ae[Fe]&&_e<ke[Fe])return Fe}topToIndex(_e){let{tops:Ae,bottoms:ke}=this,Le=Ae.length,Fe;for(Fe=0;Fe<Le;Fe+=1)if(_e>=Ae[Fe]&&_e<ke[Fe])return Fe}getWidth(_e){return this.rights[_e]-this.lefts[_e]}getHeight(_e){return this.bottoms[_e]-this.tops[_e]}similarTo(_e){return similarNumArrays(this.tops||[],_e.tops||[])&&similarNumArrays(this.bottoms||[],_e.bottoms||[])&&similarNumArrays(this.lefts||[],_e.lefts||[])&&similarNumArrays(this.rights||[],_e.rights||[])}}function similarNumArrays(De,_e){const Ae=De.length;if(Ae!==_e.length)return!1;for(let ke=0;ke<Ae;ke++)if(Math.round(De[ke])!==Math.round(_e[ke]))return!1;return!0}class DateComponent extends BaseComponent{constructor(){super(...arguments),this.uid=guid()}prepareHits(){}queryHit(_e,Ae,ke,Le){return null}isValidSegDownEl(_e){return!this.props.eventDrag&&!this.props.eventResize&&!elementClosest(_e,".fc-event-mirror")}isValidDateDownEl(_e){return!elementClosest(_e,".fc-event:not(.fc-bg-event)")&&!elementClosest(_e,".fc-more-link")&&!elementClosest(_e,"a[data-navlink]")&&!elementClosest(_e,".fc-popover")}}class SegHierarchy{constructor(_e=Ae=>Ae.thickness||1){this.getEntryThickness=_e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(_e){let Ae=[];for(let ke of _e)this.insertEntry(ke,Ae);return Ae}insertEntry(_e,Ae){let ke=this.findInsertion(_e);this.isInsertionValid(ke,_e)?this.insertEntryAt(_e,ke):this.handleInvalidInsertion(ke,_e,Ae)}isInsertionValid(_e,Ae){return(this.maxCoord===-1||_e.levelCoord+this.getEntryThickness(Ae)<=this.maxCoord)&&(this.maxStackCnt===-1||_e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(_e,Ae,ke){if(this.allowReslicing&&_e.touchingEntry){const Le=Object.assign(Object.assign({},Ae),{span:intersectSpans(Ae.span,_e.touchingEntry.span)});ke.push(Le),this.splitEntry(Ae,_e.touchingEntry,ke)}else ke.push(Ae)}splitEntry(_e,Ae,ke){let Le=_e.span,Fe=Ae.span;Le.start<Fe.start&&this.insertEntry({index:_e.index,thickness:_e.thickness,span:{start:Le.start,end:Fe.start}},ke),Le.end>Fe.end&&this.insertEntry({index:_e.index,thickness:_e.thickness,span:{start:Fe.end,end:Le.end}},ke)}insertEntryAt(_e,Ae){let{entriesByLevel:ke,levelCoords:Le}=this;Ae.lateral===-1?(insertAt(Le,Ae.level,Ae.levelCoord),insertAt(ke,Ae.level,[_e])):insertAt(ke[Ae.level],Ae.lateral,_e),this.stackCnts[buildEntryKey(_e)]=Ae.stackCnt}findInsertion(_e){let{levelCoords:Ae,entriesByLevel:ke,strictOrder:Le,stackCnts:Fe}=this,Ve=Ae.length,Ie=0,je=-1,Ke=-1,$e=null,qe=0;for(let Ai=0;Ai<Ve;Ai+=1){const oi=Ae[Ai];if(!Le&&oi>=Ie+this.getEntryThickness(_e))break;let ii=ke[Ai],hi,Ei=binarySearch(ii,_e.span.start,getEntrySpanEnd),Li=Ei[0]+Ei[1];for(;(hi=ii[Li])&&hi.span.start<_e.span.end;){let Di=oi+this.getEntryThickness(hi);Di>Ie&&(Ie=Di,$e=hi,je=Ai,Ke=Li),Di===Ie&&(qe=Math.max(qe,Fe[buildEntryKey(hi)]+1)),Li+=1}}let ci=0;if($e)for(ci=je+1;ci<Ve&&Ae[ci]<Ie;)ci+=1;let gi=-1;return ci<Ve&&Ae[ci]===Ie&&(gi=binarySearch(ke[ci],_e.span.end,getEntrySpanEnd)[0]),{touchingLevel:je,touchingLateral:Ke,touchingEntry:$e,stackCnt:qe,levelCoord:Ie,level:ci,lateral:gi}}toRects(){let{entriesByLevel:_e,levelCoords:Ae}=this,ke=_e.length,Le=[];for(let Fe=0;Fe<ke;Fe+=1){let Ve=_e[Fe],Ie=Ae[Fe];for(let je of Ve)Le.push(Object.assign(Object.assign({},je),{thickness:this.getEntryThickness(je),levelCoord:Ie}))}return Le}}function getEntrySpanEnd(De){return De.span.end}function buildEntryKey(De){return De.index+":"+De.span.start}function intersectSpans(De,_e){let Ae=Math.max(De.start,_e.start),ke=Math.min(De.end,_e.end);return Ae<ke?{start:Ae,end:ke}:null}function insertAt(De,_e,Ae){De.splice(_e,0,Ae)}function binarySearch(De,_e,Ae){let ke=0,Le=De.length;if(!Le||_e<Ae(De[ke]))return[0,0];if(_e>Ae(De[Le-1]))return[Le,0];for(;ke<Le;){let Fe=Math.floor(ke+(Le-ke)/2),Ve=Ae(De[Fe]);if(_e<Ve)Le=Fe;else if(_e>Ve)ke=Fe+1;else return[Fe,1]}return[ke,0]}function computeFallbackHeaderFormat(De,_e){return!De||_e>10?createFormatter({weekday:"short"}):_e>1?createFormatter({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):createFormatter({weekday:"long"})}const CLASS_NAME="fc-col-header-cell";function renderInner$1(De){return De.text}class TableDateCell extends BaseComponent{render(){let{dateEnv:_e,options:Ae,theme:ke,viewApi:Le}=this.context,{props:Fe}=this,{date:Ve,dateProfile:Ie}=Fe,je=getDateMeta(Ve,Fe.todayRange,null,Ie),Ke=[CLASS_NAME].concat(getDayClassNames(je,ke)),$e=_e.format(Ve,Fe.dayHeaderFormat),qe=!je.isDisabled&&Fe.colCnt>1?buildNavLinkAttrs(this.context,Ve):{},ci=_e.toDate(Ve);_e.namedTimeZoneImpl&&(ci=addMs(ci,36e5));let gi=Object.assign(Object.assign(Object.assign({date:ci,view:Le},Fe.extraRenderProps),{text:$e}),je);return y$2(ContentContainer,{elTag:"th",elClasses:Ke,elAttrs:Object.assign({role:"columnheader",colSpan:Fe.colSpan,"data-date":je.isDisabled?void 0:formatDayString(Ve)},Fe.extraDataAttrs),renderProps:gi,generatorName:"dayHeaderContent",customGenerator:Ae.dayHeaderContent,defaultGenerator:renderInner$1,classNameGenerator:Ae.dayHeaderClassNames,didMount:Ae.dayHeaderDidMount,willUnmount:Ae.dayHeaderWillUnmount},Ai=>y$2("div",{className:"fc-scrollgrid-sync-inner"},!je.isDisabled&&y$2(Ai,{elTag:"a",elAttrs:qe,elClasses:["fc-col-header-cell-cushion",Fe.isSticky&&"fc-sticky"]})))}}const WEEKDAY_FORMAT=createFormatter({weekday:"long"});class TableDowCell extends BaseComponent{render(){let{props:_e}=this,{dateEnv:Ae,theme:ke,viewApi:Le,options:Fe}=this.context,Ve=addDays(new Date(2592e5),_e.dow),Ie={dow:_e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},je=Ae.format(Ve,_e.dayHeaderFormat),Ke=Object.assign(Object.assign(Object.assign(Object.assign({date:Ve},Ie),{view:Le}),_e.extraRenderProps),{text:je});return y$2(ContentContainer,{elTag:"th",elClasses:[CLASS_NAME,...getDayClassNames(Ie,ke),..._e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:_e.colSpan},_e.extraDataAttrs),renderProps:Ke,generatorName:"dayHeaderContent",customGenerator:Fe.dayHeaderContent,defaultGenerator:renderInner$1,classNameGenerator:Fe.dayHeaderClassNames,didMount:Fe.dayHeaderDidMount,willUnmount:Fe.dayHeaderWillUnmount},$e=>y$2("div",{className:"fc-scrollgrid-sync-inner"},y$2($e,{elTag:"a",elClasses:["fc-col-header-cell-cushion",_e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":Ae.format(Ve,WEEKDAY_FORMAT)}})))}}class DayHeader extends BaseComponent{constructor(){super(...arguments),this.createDayHeaderFormatter=memoize(createDayHeaderFormatter)}render(){let{context:_e}=this,{dates:Ae,dateProfile:ke,datesRepDistinctDays:Le,renderIntro:Fe}=this.props,Ve=this.createDayHeaderFormatter(_e.options.dayHeaderFormat,Le,Ae.length);return y$2(NowTimer,{unit:"day"},(Ie,je)=>y$2("tr",{role:"row"},Fe&&Fe("day"),Ae.map(Ke=>Le?y$2(TableDateCell,{key:Ke.toISOString(),date:Ke,dateProfile:ke,todayRange:je,colCnt:Ae.length,dayHeaderFormat:Ve}):y$2(TableDowCell,{key:Ke.getUTCDay(),dow:Ke.getUTCDay(),dayHeaderFormat:Ve}))))}}function createDayHeaderFormatter(De,_e,Ae){return De||computeFallbackHeaderFormat(_e,Ae)}class DaySeriesModel{constructor(_e,Ae){let ke=_e.start,{end:Le}=_e,Fe=[],Ve=[],Ie=-1;for(;ke<Le;)Ae.isHiddenDay(ke)?Fe.push(Ie+.5):(Ie+=1,Fe.push(Ie),Ve.push(ke)),ke=addDays(ke,1);this.dates=Ve,this.indices=Fe,this.cnt=Ve.length}sliceRange(_e){let Ae=this.getDateDayIndex(_e.start),ke=this.getDateDayIndex(addDays(_e.end,-1)),Le=Math.max(0,Ae),Fe=Math.min(this.cnt-1,ke);return Le=Math.ceil(Le),Fe=Math.floor(Fe),Le<=Fe?{firstIndex:Le,lastIndex:Fe,isStart:Ae===Le,isEnd:ke===Fe}:null}getDateDayIndex(_e){let{indices:Ae}=this,ke=Math.floor(diffDays(this.dates[0],_e));return ke<0?Ae[0]-1:ke>=Ae.length?Ae[Ae.length-1]+1:Ae[ke]}}class DayTableModel{constructor(_e,Ae){let{dates:ke}=_e,Le,Fe,Ve;if(Ae){for(Fe=ke[0].getUTCDay(),Le=1;Le<ke.length&&ke[Le].getUTCDay()!==Fe;Le+=1);Ve=Math.ceil(ke.length/Le)}else Ve=1,Le=ke.length;this.rowCnt=Ve,this.colCnt=Le,this.daySeries=_e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let _e=[];for(let Ae=0;Ae<this.rowCnt;Ae+=1){let ke=[];for(let Le=0;Le<this.colCnt;Le+=1)ke.push(this.buildCell(Ae,Le));_e.push(ke)}return _e}buildCell(_e,Ae){let ke=this.daySeries.dates[_e*this.colCnt+Ae];return{key:ke.toISOString(),date:ke}}buildHeaderDates(){let _e=[];for(let Ae=0;Ae<this.colCnt;Ae+=1)_e.push(this.cells[0][Ae].date);return _e}sliceRange(_e){let{colCnt:Ae}=this,ke=this.daySeries.sliceRange(_e),Le=[];if(ke){let{firstIndex:Fe,lastIndex:Ve}=ke,Ie=Fe;for(;Ie<=Ve;){let je=Math.floor(Ie/Ae),Ke=Math.min((je+1)*Ae,Ve+1);Le.push({row:je,firstCol:Ie%Ae,lastCol:(Ke-1)%Ae,isStart:ke.isStart&&Ie===Fe,isEnd:ke.isEnd&&Ke-1===Ve}),Ie=Ke}}return Le}}class Slicer{constructor(){this.sliceBusinessHours=memoize(this._sliceBusinessHours),this.sliceDateSelection=memoize(this._sliceDateSpan),this.sliceEventStore=memoize(this._sliceEventStore),this.sliceEventDrag=memoize(this._sliceInteraction),this.sliceEventResize=memoize(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(_e,Ae,ke,Le,...Fe){let{eventUiBases:Ve}=_e,Ie=this.sliceEventStore(_e.eventStore,Ve,Ae,ke,...Fe);return{dateSelectionSegs:this.sliceDateSelection(_e.dateSelection,Ae,ke,Ve,Le,...Fe),businessHourSegs:this.sliceBusinessHours(_e.businessHours,Ae,ke,Le,...Fe),fgEventSegs:Ie.fg,bgEventSegs:Ie.bg,eventDrag:this.sliceEventDrag(_e.eventDrag,Ve,Ae,ke,...Fe),eventResize:this.sliceEventResize(_e.eventResize,Ve,Ae,ke,...Fe),eventSelection:_e.eventSelection}}sliceNowDate(_e,Ae,ke,Le,...Fe){return this._sliceDateSpan({range:{start:_e,end:addMs(_e,1)},allDay:!1},Ae,ke,{},Le,...Fe)}_sliceBusinessHours(_e,Ae,ke,Le,...Fe){return _e?this._sliceEventStore(expandRecurring(_e,computeActiveRange(Ae,!!ke),Le),{},Ae,ke,...Fe).bg:[]}_sliceEventStore(_e,Ae,ke,Le,...Fe){if(_e){let Ve=sliceEventStore(_e,Ae,computeActiveRange(ke,!!Le),Le);return{bg:this.sliceEventRanges(Ve.bg,Fe),fg:this.sliceEventRanges(Ve.fg,Fe)}}return{bg:[],fg:[]}}_sliceInteraction(_e,Ae,ke,Le,...Fe){if(!_e)return null;let Ve=sliceEventStore(_e.mutatedEvents,Ae,computeActiveRange(ke,!!Le),Le);return{segs:this.sliceEventRanges(Ve.fg,Fe),affectedInstances:_e.affectedEvents.instances,isEvent:_e.isEvent}}_sliceDateSpan(_e,Ae,ke,Le,Fe,...Ve){if(!_e)return[];let Ie=computeActiveRange(Ae,!!ke),je=intersectRanges(_e.range,Ie);if(je){_e=Object.assign(Object.assign({},_e),{range:je});let Ke=fabricateEventRange(_e,Le,Fe),$e=this.sliceRange(_e.range,...Ve);for(let qe of $e)qe.eventRange=Ke;return $e}return[]}sliceEventRanges(_e,Ae){let ke=[];for(let Le of _e)ke.push(...this.sliceEventRange(Le,Ae));return ke}sliceEventRange(_e,Ae){let ke=_e.range;this.forceDayIfListItem&&_e.ui.display==="list-item"&&(ke={start:ke.start,end:addDays(ke.start,1)});let Le=this.sliceRange(ke,...Ae);for(let Fe of Le)Fe.eventRange=_e,Fe.isStart=_e.isStart&&Fe.isStart,Fe.isEnd=_e.isEnd&&Fe.isEnd;return Le}}function computeActiveRange(De,_e){let Ae=De.activeRange;return _e?Ae:{start:addMs(Ae.start,De.slotMinTime.milliseconds),end:addMs(Ae.end,De.slotMaxTime.milliseconds-864e5)}}const VISIBLE_HIDDEN_RE=/^(visible|hidden)$/;class Scroller extends BaseComponent{constructor(){super(...arguments),this.handleEl=_e=>{this.el=_e,setRef(this.props.elRef,_e)}}render(){let{props:_e}=this,{liquid:Ae,liquidIsAbsolute:ke}=_e,Le=Ae&&ke,Fe=["fc-scroller"];return Ae&&(ke?Fe.push("fc-scroller-liquid-absolute"):Fe.push("fc-scroller-liquid")),y$2("div",{ref:this.handleEl,className:Fe.join(" "),style:{overflowX:_e.overflowX,overflowY:_e.overflowY,left:Le&&-(_e.overcomeLeft||0)||"",right:Le&&-(_e.overcomeRight||0)||"",bottom:Le&&-(_e.overcomeBottom||0)||"",marginLeft:!Le&&-(_e.overcomeLeft||0)||"",marginRight:!Le&&-(_e.overcomeRight||0)||"",marginBottom:!Le&&-(_e.overcomeBottom||0)||"",maxHeight:_e.maxHeight||""}},_e.children)}needsXScrolling(){if(VISIBLE_HIDDEN_RE.test(this.props.overflowX))return!1;let{el:_e}=this,Ae=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:ke}=_e;for(let Le=0;Le<ke.length;Le+=1)if(ke[Le].getBoundingClientRect().width>Ae)return!0;return!1}needsYScrolling(){if(VISIBLE_HIDDEN_RE.test(this.props.overflowY))return!1;let{el:_e}=this,Ae=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:ke}=_e;for(let Le=0;Le<ke.length;Le+=1)if(ke[Le].getBoundingClientRect().height>Ae)return!0;return!1}getXScrollbarWidth(){return VISIBLE_HIDDEN_RE.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return VISIBLE_HIDDEN_RE.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class RefMap{constructor(_e){this.masterCallback=_e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(Ae,ke)=>{let{depths:Le,currentMap:Fe}=this,Ve=!1,Ie=!1;Ae!==null?(Ve=ke in Fe,Fe[ke]=Ae,Le[ke]=(Le[ke]||0)+1,Ie=!0):(Le[ke]-=1,Le[ke]||(delete Fe[ke],delete this.callbackMap[ke],Ve=!0)),this.masterCallback&&(Ve&&this.masterCallback(null,String(ke)),Ie&&this.masterCallback(Ae,String(ke)))}}createRef(_e){let Ae=this.callbackMap[_e];return Ae||(Ae=this.callbackMap[_e]=ke=>{this.handleValue(ke,String(_e))}),Ae}collect(_e,Ae,ke){return collectFromHash(this.currentMap,_e,Ae,ke)}getAll(){return hashValuesToArray(this.currentMap)}}function computeShrinkWidth(De){let _e=findElements(De,".fc-scrollgrid-shrink"),Ae=0;for(let ke of _e)Ae=Math.max(Ae,computeSmallestCellWidth(ke));return Math.ceil(Ae)}function getSectionHasLiquidHeight(De,_e){return De.liquid&&_e.liquid}function getAllowYScrolling(De,_e){return _e.maxHeight!=null||getSectionHasLiquidHeight(De,_e)}function renderChunkContent(De,_e,Ae,ke){let{expandRows:Le}=Ae;return typeof _e.content=="function"?_e.content(Ae):y$2("table",{role:"presentation",className:[_e.tableClassName,De.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:Ae.tableMinWidth,width:Ae.clientWidth,height:Le?Ae.clientHeight:""}},Ae.tableColGroupNode,y$2(ke?"thead":"tbody",{role:"presentation"},typeof _e.rowContent=="function"?_e.rowContent(Ae):_e.rowContent))}function isColPropsEqual(De,_e){return isArraysEqual(De,_e,isPropsEqual)}function renderMicroColGroup(De,_e){let Ae=[];for(let ke of De){let Le=ke.span||1;for(let Fe=0;Fe<Le;Fe+=1)Ae.push(y$2("col",{style:{width:ke.width==="shrink"?sanitizeShrinkWidth(_e):ke.width||"",minWidth:ke.minWidth||""}}))}return y$2("colgroup",{},...Ae)}function sanitizeShrinkWidth(De){return De??4}function hasShrinkWidth(De){for(let _e of De)if(_e.width==="shrink")return!0;return!1}function getScrollGridClassNames(De,_e){let Ae=["fc-scrollgrid",_e.theme.getClass("table")];return De&&Ae.push("fc-scrollgrid-liquid"),Ae}function getSectionClassNames(De,_e){let Ae=["fc-scrollgrid-section",`fc-scrollgrid-section-${De.type}`,De.className];return _e&&De.liquid&&De.maxHeight==null&&Ae.push("fc-scrollgrid-section-liquid"),De.isSticky&&Ae.push("fc-scrollgrid-section-sticky"),Ae}function renderScrollShim(De){return y$2("div",{className:"fc-scrollgrid-sticky-shim",style:{width:De.clientWidth,minWidth:De.tableMinWidth}})}function getStickyHeaderDates(De){let{stickyHeaderDates:_e}=De;return(_e==null||_e==="auto")&&(_e=De.height==="auto"||De.viewHeight==="auto"),_e}function getStickyFooterScrollbar(De){let{stickyFooterScrollbar:_e}=De;return(_e==null||_e==="auto")&&(_e=De.height==="auto"||De.viewHeight==="auto"),_e}class SimpleScrollGrid extends BaseComponent{constructor(){super(...arguments),this.processCols=memoize(_e=>_e,isColPropsEqual),this.renderMicroColGroup=memoize(renderMicroColGroup),this.scrollerRefs=new RefMap,this.scrollerElRefs=new RefMap(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:_e,state:Ae,context:ke}=this,Le=_e.sections||[],Fe=this.processCols(_e.cols),Ve=this.renderMicroColGroup(Fe,Ae.shrinkWidth),Ie=getScrollGridClassNames(_e.liquid,ke);_e.collapsibleWidth&&Ie.push("fc-scrollgrid-collapsible");let je=Le.length,Ke=0,$e,qe=[],ci=[],gi=[];for(;Ke<je&&($e=Le[Ke]).type==="header";)qe.push(this.renderSection($e,Ve,!0)),Ke+=1;for(;Ke<je&&($e=Le[Ke]).type==="body";)ci.push(this.renderSection($e,Ve,!1)),Ke+=1;for(;Ke<je&&($e=Le[Ke]).type==="footer";)gi.push(this.renderSection($e,Ve,!0)),Ke+=1;let Ai=!getCanVGrowWithinCell();const oi={role:"rowgroup"};return y$2("table",{role:"grid",className:Ie.join(" "),style:{height:_e.height}},!!(!Ai&&qe.length)&&y$2("thead",oi,...qe),!!(!Ai&&ci.length)&&y$2("tbody",oi,...ci),!!(!Ai&&gi.length)&&y$2("tfoot",oi,...gi),Ai&&y$2("tbody",oi,...qe,...ci,...gi))}renderSection(_e,Ae,ke){return"outerContent"in _e?y$2(_$2,{key:_e.key},_e.outerContent):y$2("tr",{key:_e.key,role:"presentation",className:getSectionClassNames(_e,this.props.liquid).join(" ")},this.renderChunkTd(_e,Ae,_e.chunk,ke))}renderChunkTd(_e,Ae,ke,Le){if("outerContent"in ke)return ke.outerContent;let{props:Fe}=this,{forceYScrollbars:Ve,scrollerClientWidths:Ie,scrollerClientHeights:je}=this.state,Ke=getAllowYScrolling(Fe,_e),$e=getSectionHasLiquidHeight(Fe,_e),qe=Fe.liquid?Ve?"scroll":Ke?"auto":"hidden":"visible",ci=_e.key,gi=renderChunkContent(_e,ke,{tableColGroupNode:Ae,tableMinWidth:"",clientWidth:!Fe.collapsibleWidth&&Ie[ci]!==void 0?Ie[ci]:null,clientHeight:je[ci]!==void 0?je[ci]:null,expandRows:_e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},Le);return y$2(Le?"th":"td",{ref:ke.elRef,role:"presentation"},y$2("div",{className:`fc-scroller-harness${$e?" fc-scroller-harness-liquid":""}`},y$2(Scroller,{ref:this.scrollerRefs.createRef(ci),elRef:this.scrollerElRefs.createRef(ci),overflowY:qe,overflowX:Fe.liquid?"hidden":"visible",maxHeight:_e.maxHeight,liquid:$e,liquidIsAbsolute:!0},gi)))}_handleScrollerEl(_e,Ae){let ke=getSectionByKey(this.props.sections,Ae);ke&&setRef(ke.chunk.scrollerElRef,_e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return hasShrinkWidth(this.props.cols)?computeShrinkWidth(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let _e=getScrollbarWidths(),{scrollerRefs:Ae,scrollerElRefs:ke}=this,Le=!1,Fe={},Ve={};for(let Ie in Ae.currentMap){let je=Ae.currentMap[Ie];if(je&&je.needsYScrolling()){Le=!0;break}}for(let Ie of this.props.sections){let je=Ie.key,Ke=ke.currentMap[je];if(Ke){let $e=Ke.parentNode;Fe[je]=Math.floor($e.getBoundingClientRect().width-(Le?_e.y:0)),Ve[je]=Math.floor($e.getBoundingClientRect().height)}}return{forceYScrollbars:Le,scrollerClientWidths:Fe,scrollerClientHeights:Ve}}}SimpleScrollGrid.addStateEquality({scrollerClientWidths:isPropsEqual,scrollerClientHeights:isPropsEqual});function getSectionByKey(De,_e){for(let Ae of De)if(Ae.key===_e)return Ae;return null}class EventContainer extends BaseComponent{constructor(){super(...arguments),this.buildPublicEvent=memoize((_e,Ae,ke)=>new EventImpl(_e,Ae,ke)),this.handleEl=_e=>{this.el=_e,setRef(this.props.elRef,_e),_e&&setElSeg(_e,this.props.seg)}}render(){const{props:_e,context:Ae}=this,{options:ke}=Ae,{seg:Le}=_e,{eventRange:Fe}=Le,{ui:Ve}=Fe,Ie={event:this.buildPublicEvent(Ae,Fe.def,Fe.instance),view:Ae.viewApi,timeText:_e.timeText,textColor:Ve.textColor,backgroundColor:Ve.backgroundColor,borderColor:Ve.borderColor,isDraggable:!_e.disableDragging&&computeSegDraggable(Le,Ae),isStartResizable:!_e.disableResizing&&computeSegStartResizable(Le,Ae),isEndResizable:!_e.disableResizing&&computeSegEndResizable(Le),isMirror:!!(_e.isDragging||_e.isResizing||_e.isDateSelecting),isStart:!!Le.isStart,isEnd:!!Le.isEnd,isPast:!!_e.isPast,isFuture:!!_e.isFuture,isToday:!!_e.isToday,isSelected:!!_e.isSelected,isDragging:!!_e.isDragging,isResizing:!!_e.isResizing};return y$2(ContentContainer,{elRef:this.handleEl,elTag:_e.elTag,elAttrs:_e.elAttrs,elClasses:[...getEventClassNames(Ie),...Le.eventRange.ui.classNames,..._e.elClasses||[]],elStyle:_e.elStyle,renderProps:Ie,generatorName:"eventContent",customGenerator:ke.eventContent,defaultGenerator:_e.defaultGenerator,classNameGenerator:ke.eventClassNames,didMount:ke.eventDidMount,willUnmount:ke.eventWillUnmount},_e.children)}componentDidUpdate(_e){this.el&&this.props.seg!==_e.seg&&setElSeg(this.el,this.props.seg)}}class StandardEvent extends BaseComponent{render(){let{props:_e,context:Ae}=this,{options:ke}=Ae,{seg:Le}=_e,{ui:Fe}=Le.eventRange,Ve=ke.eventTimeFormat||_e.defaultTimeFormat,Ie=buildSegTimeText(Le,Ve,Ae,_e.defaultDisplayEventTime,_e.defaultDisplayEventEnd);return y$2(EventContainer,Object.assign({},_e,{elTag:"a",elStyle:{borderColor:Fe.borderColor,backgroundColor:Fe.backgroundColor},elAttrs:getSegAnchorAttrs(Le,Ae),defaultGenerator:renderInnerContent$1$1,timeText:Ie}),(je,Ke)=>y$2(_$2,null,y$2(je,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:Ke.textColor}}),!!Ke.isStartResizable&&y$2("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!Ke.isEndResizable&&y$2("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}StandardEvent.addPropsEquality({seg:isPropsEqual});function renderInnerContent$1$1(De){return y$2("div",{className:"fc-event-main-frame"},De.timeText&&y$2("div",{className:"fc-event-time"},De.timeText),y$2("div",{className:"fc-event-title-container"},y$2("div",{className:"fc-event-title fc-sticky"},De.event.title||y$2(_$2,null," "))))}const DAY_NUM_FORMAT=createFormatter({day:"numeric"});class DayCellContainer extends BaseComponent{constructor(){super(...arguments),this.refineRenderProps=memoizeObjArg(refineRenderProps)}render(){let{props:_e,context:Ae}=this,{options:ke}=Ae,Le=this.refineRenderProps({date:_e.date,dateProfile:_e.dateProfile,todayRange:_e.todayRange,isMonthStart:_e.isMonthStart||!1,showDayNumber:_e.showDayNumber,extraRenderProps:_e.extraRenderProps,viewApi:Ae.viewApi,dateEnv:Ae.dateEnv,monthStartFormat:ke.monthStartFormat});return y$2(ContentContainer,{elRef:_e.elRef,elTag:_e.elTag,elAttrs:Object.assign(Object.assign({},_e.elAttrs),Le.isDisabled?{}:{"data-date":formatDayString(_e.date)}),elClasses:[...getDayClassNames(Le,Ae.theme),..._e.elClasses||[]],elStyle:_e.elStyle,renderProps:Le,generatorName:"dayCellContent",customGenerator:ke.dayCellContent,defaultGenerator:_e.defaultGenerator,classNameGenerator:Le.isDisabled?void 0:ke.dayCellClassNames,didMount:ke.dayCellDidMount,willUnmount:ke.dayCellWillUnmount},_e.children)}}function hasCustomDayCellContent(De){return!!(De.dayCellContent||hasCustomRenderingHandler("dayCellContent",De))}function refineRenderProps(De){let{date:_e,dateEnv:Ae,dateProfile:ke,isMonthStart:Le}=De,Fe=getDateMeta(_e,De.todayRange,null,ke),Ve=De.showDayNumber?Ae.format(_e,Le?De.monthStartFormat:DAY_NUM_FORMAT):"";return Object.assign(Object.assign(Object.assign({date:Ae.toDate(_e),view:De.viewApi},Fe),{isMonthStart:Le,dayNumberText:Ve}),De.extraRenderProps)}class BgEvent extends BaseComponent{render(){let{props:_e}=this,{seg:Ae}=_e;return y$2(EventContainer,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:Ae.eventRange.ui.backgroundColor},defaultGenerator:renderInnerContent$2,seg:Ae,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:_e.isPast,isFuture:_e.isFuture,isToday:_e.isToday,disableDragging:!0,disableResizing:!0})}}function renderInnerContent$2(De){let{title:_e}=De.event;return _e&&y$2("div",{className:"fc-event-title"},De.event.title)}function renderFill(De){return y$2("div",{className:`fc-${De}`})}const WeekNumberContainer=De=>y$2(ViewContextType.Consumer,null,_e=>{let{dateEnv:Ae,options:ke}=_e,{date:Le}=De,Fe=ke.weekNumberFormat||De.defaultFormat,Ve=Ae.computeWeekNumber(Le),Ie=Ae.format(Le,Fe),je={num:Ve,text:Ie,date:Le};return y$2(ContentContainer,{elRef:De.elRef,elTag:De.elTag,elAttrs:De.elAttrs,elClasses:De.elClasses,elStyle:De.elStyle,renderProps:je,generatorName:"weekNumberContent",customGenerator:ke.weekNumberContent,defaultGenerator:renderInner,classNameGenerator:ke.weekNumberClassNames,didMount:ke.weekNumberDidMount,willUnmount:ke.weekNumberWillUnmount},De.children)});function renderInner(De){return De.text}const PADDING_FROM_VIEWPORT=10;class Popover extends BaseComponent{constructor(){super(...arguments),this.state={titleId:getUniqueDomId()},this.handleRootEl=_e=>{this.rootEl=_e,this.props.elRef&&setRef(this.props.elRef,_e)},this.handleDocumentMouseDown=_e=>{const Ae=getEventTargetViaRoot(_e);this.rootEl.contains(Ae)||this.handleCloseClick()},this.handleDocumentKeyDown=_e=>{_e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:_e}=this.props;_e&&_e()}}render(){let{theme:_e,options:Ae}=this.context,{props:ke,state:Le}=this,Fe=["fc-popover",_e.getClass("popover")].concat(ke.extraClassNames||[]);return j$1(y$2("div",Object.assign({},ke.extraAttrs,{id:ke.id,className:Fe.join(" "),"aria-labelledby":Le.titleId,ref:this.handleRootEl}),y$2("div",{className:"fc-popover-header "+_e.getClass("popoverHeader")},y$2("span",{className:"fc-popover-title",id:Le.titleId},ke.title),y$2("span",{className:"fc-popover-close "+_e.getIconClass("close"),title:Ae.closeHint,onClick:this.handleCloseClick})),y$2("div",{className:"fc-popover-body "+_e.getClass("popoverContent")},ke.children)),ke.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:_e}=this.context,{alignmentEl:Ae,alignGridTop:ke}=this.props,{rootEl:Le}=this,Fe=computeClippedClientRect(Ae);if(Fe){let Ve=Le.getBoundingClientRect(),Ie=ke?elementClosest(Ae,".fc-scrollgrid").getBoundingClientRect().top:Fe.top,je=_e?Fe.right-Ve.width:Fe.left;Ie=Math.max(Ie,PADDING_FROM_VIEWPORT),je=Math.min(je,document.documentElement.clientWidth-PADDING_FROM_VIEWPORT-Ve.width),je=Math.max(je,PADDING_FROM_VIEWPORT);let Ke=Le.offsetParent.getBoundingClientRect();applyStyle(Le,{top:Ie-Ke.top,left:je-Ke.left})}}}class MorePopover extends DateComponent{constructor(){super(...arguments),this.handleRootEl=_e=>{this.rootEl=_e,_e?this.context.registerInteractiveComponent(this,{el:_e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:_e,dateEnv:Ae}=this.context,{props:ke}=this,{startDate:Le,todayRange:Fe,dateProfile:Ve}=ke,Ie=Ae.format(Le,_e.dayPopoverFormat);return y$2(DayCellContainer,{elRef:this.handleRootEl,date:Le,dateProfile:Ve,todayRange:Fe},(je,Ke,$e)=>y$2(Popover,{elRef:$e.ref,id:ke.id,title:Ie,extraClassNames:["fc-more-popover"].concat($e.className||[]),extraAttrs:$e,parentEl:ke.parentEl,alignmentEl:ke.alignmentEl,alignGridTop:ke.alignGridTop,onClose:ke.onClose},hasCustomDayCellContent(_e)&&y$2(je,{elTag:"div",elClasses:["fc-more-popover-misc"]}),ke.children))}queryHit(_e,Ae,ke,Le){let{rootEl:Fe,props:Ve}=this;return _e>=0&&_e<ke&&Ae>=0&&Ae<Le?{dateProfile:Ve.dateProfile,dateSpan:Object.assign({allDay:!Ve.forceTimed,range:{start:Ve.startDate,end:Ve.endDate}},Ve.extraDateSpan),dayEl:Fe,rect:{left:0,top:0,right:ke,bottom:Le},layer:1}:null}}class MoreLinkContainer extends BaseComponent{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:getUniqueDomId()},this.handleLinkEl=_e=>{this.linkEl=_e,this.props.elRef&&setRef(this.props.elRef,_e)},this.handleClick=_e=>{let{props:Ae,context:ke}=this,{moreLinkClick:Le}=ke.options,Fe=computeRange(Ae).start;function Ve(Ie){let{def:je,instance:Ke,range:$e}=Ie.eventRange;return{event:new EventImpl(ke,je,Ke),start:ke.dateEnv.toDate($e.start),end:ke.dateEnv.toDate($e.end),isStart:Ie.isStart,isEnd:Ie.isEnd}}typeof Le=="function"&&(Le=Le({date:Fe,allDay:!!Ae.allDayDate,allSegs:Ae.allSegs.map(Ve),hiddenSegs:Ae.hiddenSegs.map(Ve),jsEvent:_e,view:ke.viewApi})),!Le||Le==="popover"?this.setState({isPopoverOpen:!0}):typeof Le=="string"&&ke.calendarApi.zoomTo(Fe,Le)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:_e,state:Ae}=this;return y$2(ViewContextType.Consumer,null,ke=>{let{viewApi:Le,options:Fe,calendarApi:Ve}=ke,{moreLinkText:Ie}=Fe,{moreCnt:je}=_e,Ke=computeRange(_e),$e=typeof Ie=="function"?Ie.call(Ve,je):`+${je} ${Ie}`,qe=formatWithOrdinals(Fe.moreLinkHint,[je],$e),ci={num:je,shortText:`+${je}`,text:$e,view:Le};return y$2(_$2,null,!!_e.moreCnt&&y$2(ContentContainer,{elTag:_e.elTag||"a",elRef:this.handleLinkEl,elClasses:[..._e.elClasses||[],"fc-more-link"],elStyle:_e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},_e.elAttrs),createAriaClickAttrs(this.handleClick)),{title:qe,"aria-expanded":Ae.isPopoverOpen,"aria-controls":Ae.isPopoverOpen?Ae.popoverId:""}),renderProps:ci,generatorName:"moreLinkContent",customGenerator:Fe.moreLinkContent,defaultGenerator:_e.defaultGenerator||renderMoreLinkInner,classNameGenerator:Fe.moreLinkClassNames,didMount:Fe.moreLinkDidMount,willUnmount:Fe.moreLinkWillUnmount},_e.children),Ae.isPopoverOpen&&y$2(MorePopover,{id:Ae.popoverId,startDate:Ke.start,endDate:Ke.end,dateProfile:_e.dateProfile,todayRange:_e.todayRange,extraDateSpan:_e.extraDateSpan,parentEl:this.parentEl,alignmentEl:_e.alignmentElRef?_e.alignmentElRef.current:this.linkEl,alignGridTop:_e.alignGridTop,forceTimed:_e.forceTimed,onClose:this.handlePopoverClose},_e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=elementClosest(this.linkEl,".fc-view-harness"))}}function renderMoreLinkInner(De){return De.text}function computeRange(De){if(De.allDayDate)return{start:De.allDayDate,end:addDays(De.allDayDate,1)};let{hiddenSegs:_e}=De;return{start:computeEarliestSegStart(_e),end:computeLatestSegEnd(_e)}}function computeEarliestSegStart(De){return De.reduce(pickEarliestStart).eventRange.range.start}function pickEarliestStart(De,_e){return De.eventRange.range.start<_e.eventRange.range.start?De:_e}function computeLatestSegEnd(De){return De.reduce(pickLatestEnd).eventRange.range.end}function pickLatestEnd(De,_e){return De.eventRange.range.end>_e.eventRange.range.end?De:_e}const globalLocales=[],MINIMAL_RAW_EN_LOCALE={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},RAW_EN_LOCALE=Object.assign(Object.assign({},MINIMAL_RAW_EN_LOCALE),{buttonHints:{prev:"Previous $0",next:"Next $0",today(De,_e){return _e==="day"?"Today":`This ${De}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(De){return`Show ${De} more event${De===1?"":"s"}`}});function organizeRawLocales(De){let _e=De.length>0?De[0].code:"en",Ae=globalLocales.concat(De),ke={en:RAW_EN_LOCALE};for(let Le of Ae)ke[Le.code]=Le;return{map:ke,defaultCode:_e}}function buildLocale(De,_e){return typeof De=="object"&&!Array.isArray(De)?parseLocale(De.code,[De.code],De):queryLocale(De,_e)}function queryLocale(De,_e){let Ae=[].concat(De||[]),ke=queryRawLocale(Ae,_e)||RAW_EN_LOCALE;return parseLocale(De,Ae,ke)}function queryRawLocale(De,_e){for(let Ae=0;Ae<De.length;Ae+=1){let ke=De[Ae].toLocaleLowerCase().split("-");for(let Le=ke.length;Le>0;Le-=1){let Fe=ke.slice(0,Le).join("-");if(_e[Fe])return _e[Fe]}}return null}function parseLocale(De,_e,Ae){let ke=mergeProps([MINIMAL_RAW_EN_LOCALE,Ae],["buttonText"]);delete ke.code;let{week:Le}=ke;return delete ke.week,{codeArg:De,codes:_e,week:Le,simpleNumberFormat:new Intl.NumberFormat(De),options:ke}}function createPlugin(De){return{id:guid(),name:De.name,premiumReleaseDate:De.premiumReleaseDate?new Date(De.premiumReleaseDate):void 0,deps:De.deps||[],reducers:De.reducers||[],isLoadingFuncs:De.isLoadingFuncs||[],contextInit:[].concat(De.contextInit||[]),eventRefiners:De.eventRefiners||{},eventDefMemberAdders:De.eventDefMemberAdders||[],eventSourceRefiners:De.eventSourceRefiners||{},isDraggableTransformers:De.isDraggableTransformers||[],eventDragMutationMassagers:De.eventDragMutationMassagers||[],eventDefMutationAppliers:De.eventDefMutationAppliers||[],dateSelectionTransformers:De.dateSelectionTransformers||[],datePointTransforms:De.datePointTransforms||[],dateSpanTransforms:De.dateSpanTransforms||[],views:De.views||{},viewPropsTransformers:De.viewPropsTransformers||[],isPropsValid:De.isPropsValid||null,externalDefTransforms:De.externalDefTransforms||[],viewContainerAppends:De.viewContainerAppends||[],eventDropTransformers:De.eventDropTransformers||[],componentInteractions:De.componentInteractions||[],calendarInteractions:De.calendarInteractions||[],themeClasses:De.themeClasses||{},eventSourceDefs:De.eventSourceDefs||[],cmdFormatter:De.cmdFormatter,recurringTypes:De.recurringTypes||[],namedTimeZonedImpl:De.namedTimeZonedImpl,initialView:De.initialView||"",elementDraggingImpl:De.elementDraggingImpl,optionChangeHandlers:De.optionChangeHandlers||{},scrollGridImpl:De.scrollGridImpl||null,listenerRefiners:De.listenerRefiners||{},optionRefiners:De.optionRefiners||{},propSetHandlers:De.propSetHandlers||{}}}function buildPluginHooks(De,_e){let Ae={},ke={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function Le(Fe){for(let Ve of Fe){const Ie=Ve.name,je=Ae[Ie];je===void 0?(Ae[Ie]=Ve.id,Le(Ve.deps),ke=combineHooks(ke,Ve)):je!==Ve.id&&console.warn(`Duplicate plugin '${Ie}'`)}}return De&&Le(De),Le(_e),ke}function buildBuildPluginHooks(){let De=[],_e=[],Ae;return(ke,Le)=>((!Ae||!isArraysEqual(ke,De)||!isArraysEqual(Le,_e))&&(Ae=buildPluginHooks(ke,Le)),De=ke,_e=Le,Ae)}function combineHooks(De,_e){return{premiumReleaseDate:compareOptionalDates(De.premiumReleaseDate,_e.premiumReleaseDate),reducers:De.reducers.concat(_e.reducers),isLoadingFuncs:De.isLoadingFuncs.concat(_e.isLoadingFuncs),contextInit:De.contextInit.concat(_e.contextInit),eventRefiners:Object.assign(Object.assign({},De.eventRefiners),_e.eventRefiners),eventDefMemberAdders:De.eventDefMemberAdders.concat(_e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},De.eventSourceRefiners),_e.eventSourceRefiners),isDraggableTransformers:De.isDraggableTransformers.concat(_e.isDraggableTransformers),eventDragMutationMassagers:De.eventDragMutationMassagers.concat(_e.eventDragMutationMassagers),eventDefMutationAppliers:De.eventDefMutationAppliers.concat(_e.eventDefMutationAppliers),dateSelectionTransformers:De.dateSelectionTransformers.concat(_e.dateSelectionTransformers),datePointTransforms:De.datePointTransforms.concat(_e.datePointTransforms),dateSpanTransforms:De.dateSpanTransforms.concat(_e.dateSpanTransforms),views:Object.assign(Object.assign({},De.views),_e.views),viewPropsTransformers:De.viewPropsTransformers.concat(_e.viewPropsTransformers),isPropsValid:_e.isPropsValid||De.isPropsValid,externalDefTransforms:De.externalDefTransforms.concat(_e.externalDefTransforms),viewContainerAppends:De.viewContainerAppends.concat(_e.viewContainerAppends),eventDropTransformers:De.eventDropTransformers.concat(_e.eventDropTransformers),calendarInteractions:De.calendarInteractions.concat(_e.calendarInteractions),componentInteractions:De.componentInteractions.concat(_e.componentInteractions),themeClasses:Object.assign(Object.assign({},De.themeClasses),_e.themeClasses),eventSourceDefs:De.eventSourceDefs.concat(_e.eventSourceDefs),cmdFormatter:_e.cmdFormatter||De.cmdFormatter,recurringTypes:De.recurringTypes.concat(_e.recurringTypes),namedTimeZonedImpl:_e.namedTimeZonedImpl||De.namedTimeZonedImpl,initialView:De.initialView||_e.initialView,elementDraggingImpl:De.elementDraggingImpl||_e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},De.optionChangeHandlers),_e.optionChangeHandlers),scrollGridImpl:_e.scrollGridImpl||De.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},De.listenerRefiners),_e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},De.optionRefiners),_e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},De.propSetHandlers),_e.propSetHandlers)}}function compareOptionalDates(De,_e){return De===void 0?_e:_e===void 0?De:new Date(Math.max(De.valueOf(),_e.valueOf()))}class StandardTheme extends Theme{}StandardTheme.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};StandardTheme.prototype.baseIconClass="fc-icon";StandardTheme.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"};StandardTheme.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};StandardTheme.prototype.iconOverrideOption="buttonIcons";StandardTheme.prototype.iconOverrideCustomButtonOption="icon";StandardTheme.prototype.iconOverridePrefix="fc-icon-";function compileViewDefs(De,_e){let Ae={},ke;for(ke in De)ensureViewDef(ke,Ae,De,_e);for(ke in _e)ensureViewDef(ke,Ae,De,_e);return Ae}function ensureViewDef(De,_e,Ae,ke){if(_e[De])return _e[De];let Le=buildViewDef(De,_e,Ae,ke);return Le&&(_e[De]=Le),Le}function buildViewDef(De,_e,Ae,ke){let Le=Ae[De],Fe=ke[De],Ve=$e=>Le&&Le[$e]!==null?Le[$e]:Fe&&Fe[$e]!==null?Fe[$e]:null,Ie=Ve("component"),je=Ve("superType"),Ke=null;if(je){if(je===De)throw new Error("Can't have a custom view type that references itself");Ke=ensureViewDef(je,_e,Ae,ke)}return!Ie&&Ke&&(Ie=Ke.component),Ie?{type:De,component:Ie,defaults:Object.assign(Object.assign({},Ke?Ke.defaults:{}),Le?Le.rawOptions:{}),overrides:Object.assign(Object.assign({},Ke?Ke.overrides:{}),Fe?Fe.rawOptions:{})}:null}function parseViewConfigs(De){return mapHash(De,parseViewConfig)}function parseViewConfig(De){let _e=typeof De=="function"?{component:De}:De,{component:Ae}=_e;return _e.content?Ae=createViewHookComponent(_e):Ae&&!(Ae.prototype instanceof BaseComponent)&&(Ae=createViewHookComponent(Object.assign(Object.assign({},_e),{content:Ae}))),{superType:_e.type,component:Ae,rawOptions:_e}}function createViewHookComponent(De){return _e=>y$2(ViewContextType.Consumer,null,Ae=>y$2(ContentContainer,{elTag:"div",elClasses:buildViewClassNames(Ae.viewSpec),renderProps:Object.assign(Object.assign({},_e),{nextDayThreshold:Ae.options.nextDayThreshold}),generatorName:void 0,customGenerator:De.content,classNameGenerator:De.classNames,didMount:De.didMount,willUnmount:De.willUnmount}))}function buildViewSpecs(De,_e,Ae,ke){let Le=parseViewConfigs(De),Fe=parseViewConfigs(_e.views),Ve=compileViewDefs(Le,Fe);return mapHash(Ve,Ie=>buildViewSpec(Ie,Fe,_e,Ae,ke))}function buildViewSpec(De,_e,Ae,ke,Le){let Fe=De.overrides.duration||De.defaults.duration||ke.duration||Ae.duration,Ve=null,Ie="",je="",Ke={};if(Fe&&(Ve=createDurationCached(Fe),Ve)){let ci=greatestDurationDenominator(Ve);Ie=ci.unit,ci.value===1&&(je=Ie,Ke=_e[Ie]?_e[Ie].rawOptions:{})}let $e=ci=>{let gi=ci.buttonText||{},Ai=De.defaults.buttonTextKey;return Ai!=null&&gi[Ai]!=null?gi[Ai]:gi[De.type]!=null?gi[De.type]:gi[je]!=null?gi[je]:null},qe=ci=>{let gi=ci.buttonHints||{},Ai=De.defaults.buttonTextKey;return Ai!=null&&gi[Ai]!=null?gi[Ai]:gi[De.type]!=null?gi[De.type]:gi[je]!=null?gi[je]:null};return{type:De.type,component:De.component,duration:Ve,durationUnit:Ie,singleUnit:je,optionDefaults:De.defaults,optionOverrides:Object.assign(Object.assign({},Ke),De.overrides),buttonTextOverride:$e(ke)||$e(Ae)||De.overrides.buttonText,buttonTextDefault:$e(Le)||De.defaults.buttonText||$e(BASE_OPTION_DEFAULTS)||De.type,buttonTitleOverride:qe(ke)||qe(Ae)||De.overrides.buttonHint,buttonTitleDefault:qe(Le)||De.defaults.buttonHint||qe(BASE_OPTION_DEFAULTS)}}let durationInputMap={};function createDurationCached(De){let _e=JSON.stringify(De),Ae=durationInputMap[_e];return Ae===void 0&&(Ae=createDuration(De),durationInputMap[_e]=Ae),Ae}function reduceViewType(De,_e){switch(_e.type){case"CHANGE_VIEW_TYPE":De=_e.viewType}return De}function reduceCurrentDate(De,_e){switch(_e.type){case"CHANGE_DATE":return _e.dateMarker;default:return De}}function getInitialDate(De,_e,Ae){let ke=De.initialDate;return ke!=null?_e.createMarker(ke):Ae.getDateMarker()}function reduceDynamicOptionOverrides(De,_e){switch(_e.type){case"SET_OPTION":return Object.assign(Object.assign({},De),{[_e.optionName]:_e.rawOptionValue});default:return De}}function reduceDateProfile(De,_e,Ae,ke){let Le;switch(_e.type){case"CHANGE_VIEW_TYPE":return ke.build(_e.dateMarker||Ae);case"CHANGE_DATE":return ke.build(_e.dateMarker);case"PREV":if(Le=ke.buildPrev(De,Ae),Le.isValid)return Le;break;case"NEXT":if(Le=ke.buildNext(De,Ae),Le.isValid)return Le;break}return De}function initEventSources(De,_e,Ae){let ke=_e?_e.activeRange:null;return addSources({},parseInitialSources(De,Ae),ke,Ae)}function reduceEventSources(De,_e,Ae,ke){let Le=Ae?Ae.activeRange:null;switch(_e.type){case"ADD_EVENT_SOURCES":return addSources(De,_e.sources,Le,ke);case"REMOVE_EVENT_SOURCE":return removeSource(De,_e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return Ae?fetchDirtySources(De,Le,ke):De;case"FETCH_EVENT_SOURCES":return fetchSourcesByIds(De,_e.sourceIds?arrayToHash(_e.sourceIds):excludeStaticSources(De,ke),Le,_e.isRefetch||!1,ke);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return receiveResponse(De,_e.sourceId,_e.fetchId,_e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return De}}function reduceEventSourcesNewTimeZone(De,_e,Ae){let ke=_e?_e.activeRange:null;return fetchSourcesByIds(De,excludeStaticSources(De,Ae),ke,!0,Ae)}function computeEventSourcesLoading(De){for(let _e in De)if(De[_e].isFetching)return!0;return!1}function addSources(De,_e,Ae,ke){let Le={};for(let Fe of _e)Le[Fe.sourceId]=Fe;return Ae&&(Le=fetchDirtySources(Le,Ae,ke)),Object.assign(Object.assign({},De),Le)}function removeSource(De,_e){return filterHash(De,Ae=>Ae.sourceId!==_e)}function fetchDirtySources(De,_e,Ae){return fetchSourcesByIds(De,filterHash(De,ke=>isSourceDirty(ke,_e,Ae)),_e,!1,Ae)}function isSourceDirty(De,_e,Ae){return doesSourceNeedRange(De,Ae)?!Ae.options.lazyFetching||!De.fetchRange||De.isFetching||_e.start<De.fetchRange.start||_e.end>De.fetchRange.end:!De.latestFetchId}function fetchSourcesByIds(De,_e,Ae,ke,Le){let Fe={};for(let Ve in De){let Ie=De[Ve];_e[Ve]?Fe[Ve]=fetchSource(Ie,Ae,ke,Le):Fe[Ve]=Ie}return Fe}function fetchSource(De,_e,Ae,ke){let{options:Le,calendarApi:Fe}=ke,Ve=ke.pluginHooks.eventSourceDefs[De.sourceDefId],Ie=guid();return Ve.fetch({eventSource:De,range:_e,isRefetch:Ae,context:ke},je=>{let{rawEvents:Ke}=je;Le.eventSourceSuccess&&(Ke=Le.eventSourceSuccess.call(Fe,Ke,je.response)||Ke),De.success&&(Ke=De.success.call(Fe,Ke,je.response)||Ke),ke.dispatch({type:"RECEIVE_EVENTS",sourceId:De.sourceId,fetchId:Ie,fetchRange:_e,rawEvents:Ke})},je=>{let Ke=!1;Le.eventSourceFailure&&(Le.eventSourceFailure.call(Fe,je),Ke=!0),De.failure&&(De.failure(je),Ke=!0),Ke||console.warn(je.message,je),ke.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:De.sourceId,fetchId:Ie,fetchRange:_e,error:je})}),Object.assign(Object.assign({},De),{isFetching:!0,latestFetchId:Ie})}function receiveResponse(De,_e,Ae,ke){let Le=De[_e];return Le&&Ae===Le.latestFetchId?Object.assign(Object.assign({},De),{[_e]:Object.assign(Object.assign({},Le),{isFetching:!1,fetchRange:ke})}):De}function excludeStaticSources(De,_e){return filterHash(De,Ae=>doesSourceNeedRange(Ae,_e))}function parseInitialSources(De,_e){let Ae=buildEventSourceRefiners(_e),ke=[].concat(De.eventSources||[]),Le=[];De.initialEvents&&ke.unshift(De.initialEvents),De.events&&ke.unshift(De.events);for(let Fe of ke){let Ve=parseEventSource(Fe,_e,Ae);Ve&&Le.push(Ve)}return Le}function doesSourceNeedRange(De,_e){return!_e.pluginHooks.eventSourceDefs[De.sourceDefId].ignoreRange}function reduceDateSelection(De,_e){switch(_e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return _e.selection;default:return De}}function reduceSelectedEvent(De,_e){switch(_e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return _e.eventInstanceId;default:return De}}function reduceEventDrag(De,_e){let Ae;switch(_e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return Ae=_e.state,{affectedEvents:Ae.affectedEvents,mutatedEvents:Ae.mutatedEvents,isEvent:Ae.isEvent};default:return De}}function reduceEventResize(De,_e){let Ae;switch(_e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return Ae=_e.state,{affectedEvents:Ae.affectedEvents,mutatedEvents:Ae.mutatedEvents,isEvent:Ae.isEvent};default:return De}}function parseToolbars(De,_e,Ae,ke,Le){let Fe=De.headerToolbar?parseToolbar(De.headerToolbar,De,_e,Ae,ke,Le):null,Ve=De.footerToolbar?parseToolbar(De.footerToolbar,De,_e,Ae,ke,Le):null;return{header:Fe,footer:Ve}}function parseToolbar(De,_e,Ae,ke,Le,Fe){let Ve={},Ie=[],je=!1;for(let Ke in De){let $e=De[Ke],qe=parseSection($e,_e,Ae,ke,Le,Fe);Ve[Ke]=qe.widgets,Ie.push(...qe.viewsWithButtons),je=je||qe.hasTitle}return{sectionWidgets:Ve,viewsWithButtons:Ie,hasTitle:je}}function parseSection(De,_e,Ae,ke,Le,Fe){let Ve=_e.direction==="rtl",Ie=_e.customButtons||{},je=Ae.buttonText||{},Ke=_e.buttonText||{},$e=Ae.buttonHints||{},qe=_e.buttonHints||{},ci=De?De.split(" "):[],gi=[],Ai=!1;return{widgets:ci.map(ii=>ii.split(",").map(hi=>{if(hi==="title")return Ai=!0,{buttonName:hi};let Ei,Li,Di,zi,an,Je;if(Ei=Ie[hi])Di=fi=>{Ei.click&&Ei.click.call(fi.target,fi,fi.target)},(zi=ke.getCustomButtonIconClass(Ei))||(zi=ke.getIconClass(hi,Ve))||(an=Ei.text),Je=Ei.hint||Ei.text;else if(Li=Le[hi]){gi.push(hi),Di=()=>{Fe.changeView(hi)},(an=Li.buttonTextOverride)||(zi=ke.getIconClass(hi,Ve))||(an=Li.buttonTextDefault);let fi=Li.buttonTextOverride||Li.buttonTextDefault;Je=formatWithOrdinals(Li.buttonTitleOverride||Li.buttonTitleDefault||_e.viewHint,[fi,hi],fi)}else if(Fe[hi])if(Di=()=>{Fe[hi]()},(an=je[hi])||(zi=ke.getIconClass(hi,Ve))||(an=Ke[hi]),hi==="prevYear"||hi==="nextYear"){let fi=hi==="prevYear"?"prev":"next";Je=formatWithOrdinals($e[fi]||qe[fi],[Ke.year||"year","year"],Ke[hi])}else Je=fi=>formatWithOrdinals($e[hi]||qe[hi],[Ke[fi]||fi,fi],Ke[hi]);return{buttonName:hi,buttonClick:Di,buttonIcon:zi,buttonText:an,buttonHint:Je}})),viewsWithButtons:gi,hasTitle:Ai}}class ViewImpl{constructor(_e,Ae,ke){this.type=_e,this.getCurrentData=Ae,this.dateEnv=ke}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(_e){return this.getCurrentData().options[_e]}}let eventSourceDef$2={ignoreRange:!0,parseMeta(De){return Array.isArray(De.events)?De.events:null},fetch(De,_e){_e({rawEvents:De.eventSource.meta})}};const arrayEventSourcePlugin=createPlugin({name:"array-event-source",eventSourceDefs:[eventSourceDef$2]});let eventSourceDef$1={parseMeta(De){return typeof De.events=="function"?De.events:null},fetch(De,_e,Ae){const{dateEnv:ke}=De.context,Le=De.eventSource.meta;unpromisify(Le.bind(null,buildRangeApiWithTimeZone(De.range,ke)),Fe=>_e({rawEvents:Fe}),Ae)}};const funcEventSourcePlugin=createPlugin({name:"func-event-source",eventSourceDefs:[eventSourceDef$1]}),JSON_FEED_EVENT_SOURCE_REFINERS={method:String,extraParams:identity,startParam:String,endParam:String,timeZoneParam:String};let eventSourceDef={parseMeta(De){return De.url&&(De.format==="json"||!De.format)?{url:De.url,format:"json",method:(De.method||"GET").toUpperCase(),extraParams:De.extraParams,startParam:De.startParam,endParam:De.endParam,timeZoneParam:De.timeZoneParam}:null},fetch(De,_e,Ae){const{meta:ke}=De.eventSource,Le=buildRequestParams(ke,De.range,De.context);requestJson(ke.method,ke.url,Le).then(([Fe,Ve])=>{_e({rawEvents:Fe,response:Ve})},Ae)}};const jsonFeedEventSourcePlugin=createPlugin({name:"json-event-source",eventSourceRefiners:JSON_FEED_EVENT_SOURCE_REFINERS,eventSourceDefs:[eventSourceDef]});function buildRequestParams(De,_e,Ae){let{dateEnv:ke,options:Le}=Ae,Fe,Ve,Ie,je,Ke={};return Fe=De.startParam,Fe==null&&(Fe=Le.startParam),Ve=De.endParam,Ve==null&&(Ve=Le.endParam),Ie=De.timeZoneParam,Ie==null&&(Ie=Le.timeZoneParam),typeof De.extraParams=="function"?je=De.extraParams():je=De.extraParams||{},Object.assign(Ke,je),Ke[Fe]=ke.formatIso(_e.start),Ke[Ve]=ke.formatIso(_e.end),ke.timeZone!=="local"&&(Ke[Ie]=ke.timeZone),Ke}const SIMPLE_RECURRING_REFINERS={daysOfWeek:identity,startTime:createDuration,endTime:createDuration,duration:createDuration,startRecur:identity,endRecur:identity};let recurring={parse(De,_e){if(De.daysOfWeek||De.startTime||De.endTime||De.startRecur||De.endRecur){let Ae={daysOfWeek:De.daysOfWeek||null,startTime:De.startTime||null,endTime:De.endTime||null,startRecur:De.startRecur?_e.createMarker(De.startRecur):null,endRecur:De.endRecur?_e.createMarker(De.endRecur):null,dateEnv:_e},ke;return De.duration&&(ke=De.duration),!ke&&De.startTime&&De.endTime&&(ke=subtractDurations(De.endTime,De.startTime)),{allDayGuess:!De.startTime&&!De.endTime,duration:ke,typeData:Ae}}return null},expand(De,_e,Ae){let ke=intersectRanges(_e,{start:De.startRecur,end:De.endRecur});return ke?expandRanges(De.daysOfWeek,De.startTime,De.dateEnv,Ae,ke):[]}};const simpleRecurringEventsPlugin=createPlugin({name:"simple-recurring-event",recurringTypes:[recurring],eventRefiners:SIMPLE_RECURRING_REFINERS});function expandRanges(De,_e,Ae,ke,Le){let Fe=De?arrayToHash(De):null,Ve=startOfDay(Le.start),Ie=Le.end,je=[];for(_e&&(_e.milliseconds<0?Ie=addDays(Ie,1):_e.milliseconds>=1e3*60*60*24&&(Ve=addDays(Ve,-1)));Ve<Ie;){let Ke;(!Fe||Fe[Ve.getUTCDay()])&&(_e?Ke=ke.add(Ve,_e):Ke=Ve,je.push(ke.createMarker(Ae.toDate(Ke)))),Ve=addDays(Ve,1)}return je}const changeHandlerPlugin=createPlugin({name:"change-handler",optionChangeHandlers:{events(De,_e){handleEventSources([De],_e)},eventSources:handleEventSources}});function handleEventSources(De,_e){let Ae=hashValuesToArray(_e.getCurrentData().eventSources);if(Ae.length===1&&De.length===1&&Array.isArray(Ae[0]._raw)&&Array.isArray(De[0])){_e.dispatch({type:"RESET_RAW_EVENTS",sourceId:Ae[0].sourceId,rawEvents:De[0]});return}let ke=[];for(let Le of De){let Fe=!1;for(let Ve=0;Ve<Ae.length;Ve+=1)if(Ae[Ve]._raw===Le){Ae.splice(Ve,1),Fe=!0;break}Fe||ke.push(Le)}for(let Le of Ae)_e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:Le.sourceId});for(let Le of ke)_e.calendarApi.addEventSource(Le)}function handleDateProfile(De,_e){_e.emitter.trigger("datesSet",Object.assign(Object.assign({},buildRangeApiWithTimeZone(De.activeRange,_e.dateEnv)),{view:_e.viewApi}))}function handleEventStore(De,_e){let{emitter:Ae}=_e;Ae.hasHandlers("eventsSet")&&Ae.trigger("eventsSet",buildEventApis(De,_e))}const globalPlugins=[arrayEventSourcePlugin,funcEventSourcePlugin,jsonFeedEventSourcePlugin,simpleRecurringEventsPlugin,changeHandlerPlugin,createPlugin({name:"misc",isLoadingFuncs:[De=>computeEventSourcesLoading(De.eventSources)],propSetHandlers:{dateProfile:handleDateProfile,eventStore:handleEventStore}})];class TaskRunner{constructor(_e,Ae){this.runTaskOption=_e,this.drainedOption=Ae,this.queue=[],this.delayedRunner=new DelayedRunner(this.drain.bind(this))}request(_e,Ae){this.queue.push(_e),this.delayedRunner.request(Ae)}pause(_e){this.delayedRunner.pause(_e)}resume(_e,Ae){this.delayedRunner.resume(_e,Ae)}drain(){let{queue:_e}=this;for(;_e.length;){let Ae=[],ke;for(;ke=_e.shift();)this.runTask(ke),Ae.push(ke);this.drained(Ae)}}runTask(_e){this.runTaskOption&&this.runTaskOption(_e)}drained(_e){this.drainedOption&&this.drainedOption(_e)}}function buildTitle(De,_e,Ae){let ke;return/^(year|month)$/.test(De.currentRangeUnit)?ke=De.currentRange:ke=De.activeRange,Ae.formatRange(ke.start,ke.end,createFormatter(_e.titleFormat||buildTitleFormat(De)),{isEndExclusive:De.isRangeAllDay,defaultSeparator:_e.titleRangeSeparator})}function buildTitleFormat(De){let{currentRangeUnit:_e}=De;if(_e==="year")return{year:"numeric"};if(_e==="month")return{year:"numeric",month:"long"};let Ae=diffWholeDays(De.currentRange.start,De.currentRange.end);return Ae!==null&&Ae>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class CalendarNowManager{constructor(){this.resetListeners=new Set}handleInput(_e,Ae){const ke=this.dateEnv;if(_e!==ke&&(typeof Ae=="function"?this.nowFn=Ae:ke||(this.nowAnchorDate=_e.toDate(Ae?_e.createMarker(Ae):_e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=_e,ke))for(const Le of this.resetListeners.values())Le()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(_e){this.resetListeners.add(_e)}removeResetListener(_e){this.resetListeners.delete(_e)}}class CalendarDataManager{constructor(_e){this.computeCurrentViewData=memoize(this._computeCurrentViewData),this.organizeRawLocales=memoize(organizeRawLocales),this.buildLocale=memoize(buildLocale),this.buildPluginHooks=buildBuildPluginHooks(),this.buildDateEnv=memoize(buildDateEnv$1),this.buildTheme=memoize(buildTheme),this.parseToolbars=memoize(parseToolbars),this.buildViewSpecs=memoize(buildViewSpecs),this.buildDateProfileGenerator=memoizeObjArg(buildDateProfileGenerator),this.buildViewApi=memoize(buildViewApi),this.buildViewUiProps=memoizeObjArg(buildViewUiProps),this.buildEventUiBySource=memoize(buildEventUiBySource,isPropsEqual),this.buildEventUiBases=memoize(buildEventUiBases),this.parseContextBusinessHours=memoizeObjArg(parseContextBusinessHours),this.buildTitle=memoize(buildTitle),this.nowManager=new CalendarNowManager,this.emitter=new Emitter,this.actionRunner=new TaskRunner(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=ci=>{this.actionRunner.request(ci)},this.props=_e,this.actionRunner.pause(),this.nowManager=new CalendarNowManager;let Ae={},ke=this.computeOptionsData(_e.optionOverrides,Ae,_e.calendarApi),Le=ke.calendarOptions.initialView||ke.pluginHooks.initialView,Fe=this.computeCurrentViewData(Le,ke,_e.optionOverrides,Ae);_e.calendarApi.currentDataManager=this,this.emitter.setThisContext(_e.calendarApi),this.emitter.setOptions(Fe.options);let Ve={nowManager:this.nowManager,dateEnv:ke.dateEnv,options:ke.calendarOptions,pluginHooks:ke.pluginHooks,calendarApi:_e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},Ie=getInitialDate(ke.calendarOptions,ke.dateEnv,this.nowManager),je=Fe.dateProfileGenerator.build(Ie);rangeContainsMarker(je.activeRange,Ie)||(Ie=je.currentRange.start);for(let ci of ke.pluginHooks.contextInit)ci(Ve);let Ke=initEventSources(ke.calendarOptions,je,Ve),$e={dynamicOptionOverrides:Ae,currentViewType:Le,currentDate:Ie,dateProfile:je,businessHours:this.parseContextBusinessHours(Ve),eventSources:Ke,eventUiBases:{},eventStore:createEmptyEventStore(),renderableEventStore:createEmptyEventStore(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(Ve).selectionConfig},qe=Object.assign(Object.assign({},Ve),$e);for(let ci of ke.pluginHooks.reducers)Object.assign($e,ci(null,null,qe));computeIsLoading($e,Ve)&&this.emitter.trigger("loading",!0),this.state=$e,this.updateData(),this.actionRunner.resume()}resetOptions(_e,Ae){let{props:ke}=this;Ae===void 0?ke.optionOverrides=_e:(ke.optionOverrides=Object.assign(Object.assign({},ke.optionOverrides||{}),_e),this.optionsForRefining.push(...Ae)),(Ae===void 0||Ae.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(_e){let{props:Ae,state:ke,emitter:Le}=this,Fe=reduceDynamicOptionOverrides(ke.dynamicOptionOverrides,_e),Ve=this.computeOptionsData(Ae.optionOverrides,Fe,Ae.calendarApi),Ie=reduceViewType(ke.currentViewType,_e),je=this.computeCurrentViewData(Ie,Ve,Ae.optionOverrides,Fe);Ae.calendarApi.currentDataManager=this,Le.setThisContext(Ae.calendarApi),Le.setOptions(je.options);let Ke={nowManager:this.nowManager,dateEnv:Ve.dateEnv,options:Ve.calendarOptions,pluginHooks:Ve.pluginHooks,calendarApi:Ae.calendarApi,dispatch:this.dispatch,emitter:Le,getCurrentData:this.getCurrentData},{currentDate:$e,dateProfile:qe}=ke;this.data&&this.data.dateProfileGenerator!==je.dateProfileGenerator&&(qe=je.dateProfileGenerator.build($e)),$e=reduceCurrentDate($e,_e),qe=reduceDateProfile(qe,_e,$e,je.dateProfileGenerator),(_e.type==="PREV"||_e.type==="NEXT"||!rangeContainsMarker(qe.currentRange,$e))&&($e=qe.currentRange.start);let ci=reduceEventSources(ke.eventSources,_e,qe,Ke),gi=reduceEventStore(ke.eventStore,_e,ci,qe,Ke),oi=computeEventSourcesLoading(ci)&&!je.options.progressiveEventRendering&&ke.renderableEventStore||gi,{eventUiSingleBase:ii,selectionConfig:hi}=this.buildViewUiProps(Ke),Ei=this.buildEventUiBySource(ci),Li=this.buildEventUiBases(oi.defs,ii,Ei),Di={dynamicOptionOverrides:Fe,currentViewType:Ie,currentDate:$e,dateProfile:qe,eventSources:ci,eventStore:gi,renderableEventStore:oi,selectionConfig:hi,eventUiBases:Li,businessHours:this.parseContextBusinessHours(Ke),dateSelection:reduceDateSelection(ke.dateSelection,_e),eventSelection:reduceSelectedEvent(ke.eventSelection,_e),eventDrag:reduceEventDrag(ke.eventDrag,_e),eventResize:reduceEventResize(ke.eventResize,_e)},zi=Object.assign(Object.assign({},Ke),Di);for(let fi of Ve.pluginHooks.reducers)Object.assign(Di,fi(ke,_e,zi));let an=computeIsLoading(ke,Ke),Je=computeIsLoading(Di,Ke);!an&&Je?Le.trigger("loading",!0):an&&!Je&&Le.trigger("loading",!1),this.state=Di,Ae.onAction&&Ae.onAction(_e)}updateData(){let{props:_e,state:Ae}=this,ke=this.data,Le=this.computeOptionsData(_e.optionOverrides,Ae.dynamicOptionOverrides,_e.calendarApi),Fe=this.computeCurrentViewData(Ae.currentViewType,Le,_e.optionOverrides,Ae.dynamicOptionOverrides),Ve=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(Ae.dateProfile,Fe.options,Le.dateEnv),calendarApi:_e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},Le),Fe),Ae),Ie=Le.pluginHooks.optionChangeHandlers,je=ke&&ke.calendarOptions,Ke=Le.calendarOptions;if(je&&je!==Ke){je.timeZone!==Ke.timeZone&&(Ae.eventSources=Ve.eventSources=reduceEventSourcesNewTimeZone(Ve.eventSources,Ae.dateProfile,Ve),Ae.eventStore=Ve.eventStore=rezoneEventStoreDates(Ve.eventStore,ke.dateEnv,Ve.dateEnv),Ae.renderableEventStore=Ve.renderableEventStore=rezoneEventStoreDates(Ve.renderableEventStore,ke.dateEnv,Ve.dateEnv));for(let $e in Ie)(this.optionsForHandling.indexOf($e)!==-1||je[$e]!==Ke[$e])&&Ie[$e](Ke[$e],Ve)}this.optionsForHandling=[],_e.onData&&_e.onData(Ve)}computeOptionsData(_e,Ae,ke){if(!this.optionsForRefining.length&&_e===this.stableOptionOverrides&&Ae===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:Le,pluginHooks:Fe,localeDefaults:Ve,availableLocaleData:Ie,extra:je}=this.processRawCalendarOptions(_e,Ae);warnUnknownOptions(je);let Ke=this.buildDateEnv(Le.timeZone,Le.locale,Le.weekNumberCalculation,Le.firstDay,Le.weekText,Fe,Ie,Le.defaultRangeSeparator),$e=this.buildViewSpecs(Fe.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,Ve),qe=this.buildTheme(Le,Fe),ci=this.parseToolbars(Le,this.stableOptionOverrides,qe,$e,ke);return this.stableCalendarOptionsData={calendarOptions:Le,pluginHooks:Fe,dateEnv:Ke,viewSpecs:$e,theme:qe,toolbarConfig:ci,localeDefaults:Ve,availableRawLocales:Ie.map}}processRawCalendarOptions(_e,Ae){let{locales:ke,locale:Le}=mergeRawOptions([BASE_OPTION_DEFAULTS,_e,Ae]),Fe=this.organizeRawLocales(ke),Ve=Fe.map,Ie=this.buildLocale(Le||Fe.defaultCode,Ve).options,je=this.buildPluginHooks(_e.plugins||[],globalPlugins),Ke=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},BASE_OPTION_REFINERS),CALENDAR_LISTENER_REFINERS),CALENDAR_OPTION_REFINERS),je.listenerRefiners),je.optionRefiners),$e={},qe=mergeRawOptions([BASE_OPTION_DEFAULTS,Ie,_e,Ae]),ci={},gi=this.currentCalendarOptionsInput,Ai=this.currentCalendarOptionsRefined,oi=!1;for(let ii in qe)this.optionsForRefining.indexOf(ii)===-1&&(qe[ii]===gi[ii]||COMPLEX_OPTION_COMPARATORS[ii]&&ii in gi&&COMPLEX_OPTION_COMPARATORS[ii](gi[ii],qe[ii]))?ci[ii]=Ai[ii]:Ke[ii]?(ci[ii]=Ke[ii](qe[ii]),oi=!0):$e[ii]=gi[ii];return oi&&(this.currentCalendarOptionsInput=qe,this.currentCalendarOptionsRefined=ci,this.stableOptionOverrides=_e,this.stableDynamicOptionOverrides=Ae),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:je,availableLocaleData:Fe,localeDefaults:Ie,extra:$e}}_computeCurrentViewData(_e,Ae,ke,Le){let Fe=Ae.viewSpecs[_e];if(!Fe)throw new Error(`viewType "${_e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:Ve,extra:Ie}=this.processRawViewOptions(Fe,Ae.pluginHooks,Ae.localeDefaults,ke,Le);warnUnknownOptions(Ie),this.nowManager.handleInput(Ae.dateEnv,Ve.now);let je=this.buildDateProfileGenerator({dateProfileGeneratorClass:Fe.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:Fe.duration,durationUnit:Fe.durationUnit,usesMinMaxTime:Fe.optionDefaults.usesMinMaxTime,dateEnv:Ae.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:Ve.slotMinTime,slotMaxTime:Ve.slotMaxTime,showNonCurrentDates:Ve.showNonCurrentDates,dayCount:Ve.dayCount,dateAlignment:Ve.dateAlignment,dateIncrement:Ve.dateIncrement,hiddenDays:Ve.hiddenDays,weekends:Ve.weekends,validRangeInput:Ve.validRange,visibleRangeInput:Ve.visibleRange,fixedWeekCount:Ve.fixedWeekCount}),Ke=this.buildViewApi(_e,this.getCurrentData,Ae.dateEnv);return{viewSpec:Fe,options:Ve,dateProfileGenerator:je,viewApi:Ke}}processRawViewOptions(_e,Ae,ke,Le,Fe){let Ve=mergeRawOptions([BASE_OPTION_DEFAULTS,_e.optionDefaults,ke,Le,_e.optionOverrides,Fe]),Ie=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},BASE_OPTION_REFINERS),CALENDAR_LISTENER_REFINERS),CALENDAR_OPTION_REFINERS),VIEW_OPTION_REFINERS),Ae.listenerRefiners),Ae.optionRefiners),je={},Ke=this.currentViewOptionsInput,$e=this.currentViewOptionsRefined,qe=!1,ci={};for(let gi in Ve)Ve[gi]===Ke[gi]||COMPLEX_OPTION_COMPARATORS[gi]&&COMPLEX_OPTION_COMPARATORS[gi](Ve[gi],Ke[gi])?je[gi]=$e[gi]:(Ve[gi]===this.currentCalendarOptionsInput[gi]||COMPLEX_OPTION_COMPARATORS[gi]&&COMPLEX_OPTION_COMPARATORS[gi](Ve[gi],this.currentCalendarOptionsInput[gi])?gi in this.currentCalendarOptionsRefined&&(je[gi]=this.currentCalendarOptionsRefined[gi]):Ie[gi]?je[gi]=Ie[gi](Ve[gi]):ci[gi]=Ve[gi],qe=!0);return qe&&(this.currentViewOptionsInput=Ve,this.currentViewOptionsRefined=je),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:ci}}}function buildDateEnv$1(De,_e,Ae,ke,Le,Fe,Ve,Ie){let je=buildLocale(_e||Ve.defaultCode,Ve.map);return new DateEnv({calendarSystem:"gregory",timeZone:De,namedTimeZoneImpl:Fe.namedTimeZonedImpl,locale:je,weekNumberCalculation:Ae,firstDay:ke,weekText:Le,cmdFormatter:Fe.cmdFormatter,defaultSeparator:Ie})}function buildTheme(De,_e){let Ae=_e.themeClasses[De.themeSystem]||StandardTheme;return new Ae(De)}function buildDateProfileGenerator(De){let _e=De.dateProfileGeneratorClass||DateProfileGenerator;return new _e(De)}function buildViewApi(De,_e,Ae){return new ViewImpl(De,_e,Ae)}function buildEventUiBySource(De){return mapHash(De,_e=>_e.ui)}function buildEventUiBases(De,_e,Ae){let ke={"":_e};for(let Le in De){let Fe=De[Le];Fe.sourceId&&Ae[Fe.sourceId]&&(ke[Le]=Ae[Fe.sourceId])}return ke}function buildViewUiProps(De){let{options:_e}=De;return{eventUiSingleBase:createEventUi({display:_e.eventDisplay,editable:_e.editable,startEditable:_e.eventStartEditable,durationEditable:_e.eventDurationEditable,constraint:_e.eventConstraint,overlap:typeof _e.eventOverlap=="boolean"?_e.eventOverlap:void 0,allow:_e.eventAllow,backgroundColor:_e.eventBackgroundColor,borderColor:_e.eventBorderColor,textColor:_e.eventTextColor,color:_e.eventColor},De),selectionConfig:createEventUi({constraint:_e.selectConstraint,overlap:typeof _e.selectOverlap=="boolean"?_e.selectOverlap:void 0,allow:_e.selectAllow},De)}}function computeIsLoading(De,_e){for(let Ae of _e.pluginHooks.isLoadingFuncs)if(Ae(De))return!0;return!1}function parseContextBusinessHours(De){return parseBusinessHours(De.options.businessHours,De)}function warnUnknownOptions(De,_e){for(let Ae in De)console.warn(`Unknown option '${Ae}'`+(_e?` for view '${_e}'`:""))}class ToolbarSection extends BaseComponent{render(){let _e=this.props.widgetGroups.map(Ae=>this.renderWidgetGroup(Ae));return y$2("div",{className:"fc-toolbar-chunk"},..._e)}renderWidgetGroup(_e){let{props:Ae}=this,{theme:ke}=this.context,Le=[],Fe=!0;for(let Ve of _e){let{buttonName:Ie,buttonClick:je,buttonText:Ke,buttonIcon:$e,buttonHint:qe}=Ve;if(Ie==="title")Fe=!1,Le.push(y$2("h2",{className:"fc-toolbar-title",id:Ae.titleId},Ae.title));else{let ci=Ie===Ae.activeButton,gi=!Ae.isTodayEnabled&&Ie==="today"||!Ae.isPrevEnabled&&Ie==="prev"||!Ae.isNextEnabled&&Ie==="next",Ai=[`fc-${Ie}-button`,ke.getClass("button")];ci&&Ai.push(ke.getClass("buttonActive")),Le.push(y$2("button",{type:"button",title:typeof qe=="function"?qe(Ae.navUnit):qe,disabled:gi,"aria-pressed":ci,className:Ai.join(" "),onClick:je},Ke||($e?y$2("span",{className:$e,role:"img"}):"")))}}if(Le.length>1){let Ve=Fe&&ke.getClass("buttonGroup")||"";return y$2("div",{className:Ve},...Le)}return Le[0]}}class Toolbar extends BaseComponent{render(){let{model:_e,extraClassName:Ae}=this.props,ke=!1,Le,Fe,Ve=_e.sectionWidgets,Ie=Ve.center;return Ve.left?(ke=!0,Le=Ve.left):Le=Ve.start,Ve.right?(ke=!0,Fe=Ve.right):Fe=Ve.end,y$2("div",{className:[Ae||"","fc-toolbar",ke?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",Le||[]),this.renderSection("center",Ie||[]),this.renderSection("end",Fe||[]))}renderSection(_e,Ae){let{props:ke}=this;return y$2(ToolbarSection,{key:_e,widgetGroups:Ae,title:ke.title,navUnit:ke.navUnit,activeButton:ke.activeButton,isTodayEnabled:ke.isTodayEnabled,isPrevEnabled:ke.isPrevEnabled,isNextEnabled:ke.isNextEnabled,titleId:ke.titleId})}}class ViewHarness extends BaseComponent{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=_e=>{this.el=_e,setRef(this.props.elRef,_e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:_e,state:Ae}=this,{aspectRatio:ke}=_e,Le=["fc-view-harness",ke||_e.liquid||_e.height?"fc-view-harness-active":"fc-view-harness-passive"],Fe="",Ve="";return ke?Ae.availableWidth!==null?Fe=Ae.availableWidth/ke:Ve=`${1/ke*100}%`:Fe=_e.height||"",y$2("div",{"aria-labelledby":_e.labeledById,ref:this.handleEl,className:Le.join(" "),style:{height:Fe,paddingBottom:Ve}},_e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class EventClicking extends Interaction{constructor(_e){super(_e),this.handleSegClick=(Ae,ke)=>{let{component:Le}=this,{context:Fe}=Le,Ve=getElSeg(ke);if(Ve&&Le.isValidSegDownEl(Ae.target)){let Ie=elementClosest(Ae.target,".fc-event-forced-url"),je=Ie?Ie.querySelector("a[href]").href:"";Fe.emitter.trigger("eventClick",{el:ke,event:new EventImpl(Le.context,Ve.eventRange.def,Ve.eventRange.instance),jsEvent:Ae,view:Fe.viewApi}),je&&!Ae.defaultPrevented&&(window.location.href=je)}},this.destroy=listenBySelector(_e.el,"click",".fc-event",this.handleSegClick)}}class EventHovering extends Interaction{constructor(_e){super(_e),this.handleEventElRemove=Ae=>{Ae===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(Ae,ke)=>{getElSeg(ke)&&(this.currentSegEl=ke,this.triggerEvent("eventMouseEnter",Ae,ke))},this.handleSegLeave=(Ae,ke)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",Ae,ke))},this.removeHoverListeners=listenToHoverBySelector(_e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(_e,Ae,ke){let{component:Le}=this,{context:Fe}=Le,Ve=getElSeg(ke);(!Ae||Le.isValidSegDownEl(Ae.target))&&Fe.emitter.trigger(_e,{el:ke,event:new EventImpl(Fe,Ve.eventRange.def,Ve.eventRange.instance),jsEvent:Ae,view:Fe.viewApi})}}class CalendarContent extends PureComponent{constructor(){super(...arguments),this.buildViewContext=memoize(buildViewContext),this.buildViewPropTransformers=memoize(buildViewPropTransformers),this.buildToolbarProps=memoize(buildToolbarProps),this.headerRef=d$2(),this.footerRef=d$2(),this.interactionsStore={},this.state={viewLabelId:getUniqueDomId()},this.registerInteractiveComponent=(_e,Ae)=>{let ke=parseInteractionSettings(_e,Ae),Ve=[EventClicking,EventHovering].concat(this.props.pluginHooks.componentInteractions).map(Ie=>new Ie(ke));this.interactionsStore[_e.uid]=Ve,interactionSettingsStore[_e.uid]=ke},this.unregisterInteractiveComponent=_e=>{let Ae=this.interactionsStore[_e.uid];if(Ae){for(let ke of Ae)ke.destroy();delete this.interactionsStore[_e.uid]}delete interactionSettingsStore[_e.uid]},this.resizeRunner=new DelayedRunner(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=_e=>{let{options:Ae}=this.props;Ae.handleWindowResize&&_e.target===window&&this.resizeRunner.request(Ae.windowResizeDelay)}}render(){let{props:_e}=this,{toolbarConfig:Ae,options:ke}=_e,Le=!1,Fe="",Ve;_e.isHeightAuto||_e.forPrint?Fe="":ke.height!=null?Le=!0:ke.contentHeight!=null?Fe=ke.contentHeight:Ve=Math.max(ke.aspectRatio,.5);let Ie=this.buildViewContext(_e.viewSpec,_e.viewApi,_e.options,_e.dateProfileGenerator,_e.dateEnv,_e.nowManager,_e.theme,_e.pluginHooks,_e.dispatch,_e.getCurrentData,_e.emitter,_e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),je=Ae.header&&Ae.header.hasTitle?this.state.viewLabelId:void 0;return y$2(ViewContextType.Provider,{value:Ie},y$2(NowTimer,{unit:"day"},Ke=>{let $e=this.buildToolbarProps(_e.viewSpec,_e.dateProfile,_e.dateProfileGenerator,_e.currentDate,Ke,_e.viewTitle);return y$2(_$2,null,Ae.header&&y$2(Toolbar,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:Ae.header,titleId:je},$e)),y$2(ViewHarness,{liquid:Le,height:Fe,aspectRatio:Ve,labeledById:je},this.renderView(_e),this.buildAppendContent()),Ae.footer&&y$2(Toolbar,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:Ae.footer,titleId:""},$e)))}))}componentDidMount(){let{props:_e}=this;this.calendarInteractions=_e.pluginHooks.calendarInteractions.map(ke=>new ke(_e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:Ae}=_e.pluginHooks;for(let ke in Ae)Ae[ke](_e[ke],_e)}componentDidUpdate(_e){let{props:Ae}=this,{propSetHandlers:ke}=Ae.pluginHooks;for(let Le in ke)Ae[Le]!==_e[Le]&&ke[Le](Ae[Le],Ae)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let _e of this.calendarInteractions)_e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:_e}=this,Ae=_e.pluginHooks.viewContainerAppends.map(ke=>ke(_e));return y$2(_$2,{},...Ae)}renderView(_e){let{pluginHooks:Ae}=_e,{viewSpec:ke}=_e,Le={dateProfile:_e.dateProfile,businessHours:_e.businessHours,eventStore:_e.renderableEventStore,eventUiBases:_e.eventUiBases,dateSelection:_e.dateSelection,eventSelection:_e.eventSelection,eventDrag:_e.eventDrag,eventResize:_e.eventResize,isHeightAuto:_e.isHeightAuto,forPrint:_e.forPrint},Fe=this.buildViewPropTransformers(Ae.viewPropsTransformers);for(let Ie of Fe)Object.assign(Le,Ie.transform(Le,_e));let Ve=ke.component;return y$2(Ve,Object.assign({},Le))}}function buildToolbarProps(De,_e,Ae,ke,Le,Fe){let Ve=Ae.build(Le,void 0,!1),Ie=Ae.buildPrev(_e,ke,!1),je=Ae.buildNext(_e,ke,!1);return{title:Fe,activeButton:De.type,navUnit:De.singleUnit,isTodayEnabled:Ve.isValid&&!rangeContainsMarker(_e.currentRange,Le),isPrevEnabled:Ie.isValid,isNextEnabled:je.isValid}}function buildViewPropTransformers(De){return De.map(_e=>new _e)}class Calendar extends CalendarImpl{constructor(_e,Ae={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=ke=>{switch(ke.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=ke=>{this.currentData=ke,this.renderRunner.request(ke.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:ke}=this;flushSync(()=>{D$3(y$2(CalendarRoot,{options:ke.calendarOptions,theme:ke.theme,emitter:ke.emitter},(Le,Fe,Ve,Ie)=>(this.setClassNames(Le),this.setHeight(Fe),y$2(RenderId.Provider,{value:this.customContentRenderId},y$2(CalendarContent,Object.assign({isHeightAuto:Ve,forPrint:Ie},ke))))),this.el)})}else this.isRendered&&(this.isRendered=!1,D$3(null,this.el),this.setClassNames([]),this.setHeight(""))},ensureElHasStyles(_e),this.el=_e,this.renderRunner=new DelayedRunner(this.handleRenderRequest),new CalendarDataManager({optionOverrides:Ae,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let _e=this.isRendering;_e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),_e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){flushSync(()=>{super.updateSize()})}batchRendering(_e){this.renderRunner.pause("batchRendering"),_e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(_e,Ae){this.currentDataManager.resetOptions(_e,Ae)}setClassNames(_e){if(!isArraysEqual(_e,this.currentClassNames)){let{classList:Ae}=this.el;
vendor: 5,318 bytes, line 44
44for(let ke of this.currentClassNames)Ae.remove(ke);for(let ke of _e)Ae.add(ke);this.currentClassNames=_e}}setHeight(_e){applyStyleProp(this.el,"height",_e)}}class TableView extends DateComponent{constructor(){super(...arguments),this.headerElRef=d$2()}renderSimpleLayout(_e,Ae){let{props:ke,context:Le}=this,Fe=[],Ve=getStickyHeaderDates(Le.options);return _e&&Fe.push({type:"header",key:"header",isSticky:Ve,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:_e}}),Fe.push({type:"body",key:"body",liquid:!0,chunk:{content:Ae}}),y$2(ViewContainer,{elClasses:["fc-daygrid"],viewSpec:Le.viewSpec},y$2(SimpleScrollGrid,{liquid:!ke.isHeightAuto&&!ke.forPrint,collapsibleWidth:ke.forPrint,cols:[],sections:Fe}))}renderHScrollLayout(_e,Ae,ke,Le){let Fe=this.context.pluginHooks.scrollGridImpl;if(!Fe)throw new Error("No ScrollGrid implementation");let{props:Ve,context:Ie}=this,je=!Ve.forPrint&&getStickyHeaderDates(Ie.options),Ke=!Ve.forPrint&&getStickyFooterScrollbar(Ie.options),$e=[];return _e&&$e.push({type:"header",key:"header",isSticky:je,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:_e}]}),$e.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:Ae}]}),Ke&&$e.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:renderScrollShim}]}),y$2(ViewContainer,{elClasses:["fc-daygrid"],viewSpec:Ie.viewSpec},y$2(Fe,{liquid:!Ve.isHeightAuto&&!Ve.forPrint,forPrint:Ve.forPrint,collapsibleWidth:Ve.forPrint,colGroups:[{cols:[{span:ke,minWidth:Le}]}],sections:$e}))}}function splitSegsByRow(De,_e){let Ae=[];for(let ke=0;ke<_e;ke+=1)Ae[ke]=[];for(let ke of De)Ae[ke.row].push(ke);return Ae}function splitSegsByFirstCol(De,_e){let Ae=[];for(let ke=0;ke<_e;ke+=1)Ae[ke]=[];for(let ke of De)Ae[ke.firstCol].push(ke);return Ae}function splitInteractionByRow(De,_e){let Ae=[];if(De){for(let ke=0;ke<_e;ke+=1)Ae[ke]={affectedInstances:De.affectedInstances,isEvent:De.isEvent,segs:[]};for(let ke of De.segs)Ae[ke.row].segs.push(ke)}else for(let ke=0;ke<_e;ke+=1)Ae[ke]=null;return Ae}const DEFAULT_TABLE_EVENT_TIME_FORMAT=createFormatter({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function hasListItemDisplay(De){let{display:_e}=De.eventRange.ui;return _e==="list-item"||_e==="auto"&&!De.eventRange.def.allDay&&De.firstCol===De.lastCol&&De.isStart&&De.isEnd}class TableBlockEvent extends BaseComponent{render(){let{props:_e}=this;return y$2(StandardEvent,Object.assign({},_e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:DEFAULT_TABLE_EVENT_TIME_FORMAT,defaultDisplayEventEnd:_e.defaultDisplayEventEnd,disableResizing:!_e.seg.eventRange.def.allDay}))}}class TableListItemEvent extends BaseComponent{render(){let{props:_e,context:Ae}=this,{options:ke}=Ae,{seg:Le}=_e,Fe=ke.eventTimeFormat||DEFAULT_TABLE_EVENT_TIME_FORMAT,Ve=buildSegTimeText(Le,Fe,Ae,!0,_e.defaultDisplayEventEnd);return y$2(EventContainer,Object.assign({},_e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:getSegAnchorAttrs(_e.seg,Ae),defaultGenerator:renderInnerContent$1,timeText:Ve,isResizing:!1,isDateSelecting:!1}))}}function renderInnerContent$1(De){return y$2(_$2,null,y$2("div",{className:"fc-daygrid-event-dot",style:{borderColor:De.borderColor||De.backgroundColor}}),De.timeText&&y$2("div",{className:"fc-event-time"},De.timeText),y$2("div",{className:"fc-event-title"},De.event.title||y$2(_$2,null," ")))}class TableCellMoreLink extends BaseComponent{constructor(){super(...arguments),this.compileSegs=memoize(compileSegs)}render(){let{props:_e}=this,{allSegs:Ae,invisibleSegs:ke}=this.compileSegs(_e.singlePlacements);return y$2(MoreLinkContainer,{elClasses:["fc-daygrid-more-link"],dateProfile:_e.dateProfile,todayRange:_e.todayRange,allDayDate:_e.allDayDate,moreCnt:_e.moreCnt,allSegs:Ae,hiddenSegs:ke,alignmentElRef:_e.alignmentElRef,alignGridTop:_e.alignGridTop,extraDateSpan:_e.extraDateSpan,popoverContent:()=>{let Le=(_e.eventDrag?_e.eventDrag.affectedInstances:null)||(_e.eventResize?_e.eventResize.affectedInstances:null)||{};return y$2(_$2,null,Ae.map(Fe=>{let Ve=Fe.eventRange.instance.instanceId;return y$2("div",{className:"fc-daygrid-event-harness",key:Ve,style:{visibility:Le[Ve]?"hidden":""}},hasListItemDisplay(Fe)?y$2(TableListItemEvent,Object.assign({seg:Fe,isDragging:!1,isSelected:Ve===_e.eventSelection,defaultDisplayEventEnd:!1},getSegMeta(Fe,_e.todayRange))):y$2(TableBlockEvent,Object.assign({seg:Fe,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:Ve===_e.eventSelection,defaultDisplayEventEnd:!1},getSegMeta(Fe,_e.todayRange))))}))}})}}function compileSegs(De){let _e=[],Ae=[];for(let ke of De)_e.push(ke.seg),ke.isVisible||Ae.push(ke.seg);return{allSegs:_e,invisibleSegs:Ae}}const DEFAULT_WEEK_NUM_FORMAT=createFormatter({week:"narrow"});class TableCell extends DateComponent{constructor(){super(...arguments),this.rootElRef=d$2(),this.state={dayNumberId:getUniqueDomId()},this.handleRootEl=_e=>{setRef(this.rootElRef,_e),setRef(this.props.elRef,_e)}}render(){let{context:_e,props:Ae,state:ke,rootElRef:Le}=this,{options:Fe,dateEnv:Ve}=_e,{date:Ie,dateProfile:je}=Ae;const Ke=Ae.showDayNumber&&shouldDisplayMonthStart(Ie,je.currentRange,Ve);return y$2(DayCellContainer,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygri
44d-day",...Ae.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},Ae.extraDataAttrs),Ae.showDayNumber?{"aria-labelledby":ke.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:renderTopInner,date:Ie,dateProfile:je,todayRange:Ae.todayRange,showDayNumber:Ae.showDayNumber,isMonthStart:Ke,extraRenderProps:Ae.extraRenderProps},($e,qe)=>y$2("div",{ref:Ae.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:Ae.minHeight}},Ae.showWeekNumber&&y$2(WeekNumberContainer,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:buildNavLinkAttrs(_e,Ie,"week"),date:Ie,defaultFormat:DEFAULT_WEEK_NUM_FORMAT}),!qe.isDisabled&&(Ae.showDayNumber||hasCustomDayCellContent(Fe)||Ae.forceDayTop)?y$2("div",{className:"fc-daygrid-day-top"},y$2($e,{elTag:"a",elClasses:["fc-daygrid-day-number",Ke&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},buildNavLinkAttrs(_e,Ie)),{id:ke.dayNumberId})})):Ae.showDayNumber?y$2("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},y$2("a",{className:"fc-daygrid-day-number"}," ")):void 0,y$2("div",{className:"fc-daygrid-day-events",ref:Ae.fgContentElRef},Ae.fgContent,y$2("div",{className:"fc-daygrid-day-bottom",style:{marginTop:Ae.moreMarginTop}},y$2(TableCellMoreLink,{allDayDate:Ie,singlePlacements:Ae.singlePlacements,moreCnt:Ae.moreCnt,alignmentElRef:Le,alignGridTop:!Ae.showDayNumber,extraDateSpan:Ae.extraDateSpan,dateProfile:Ae.dateProfile,eventSelection:Ae.eventSelection,eventDrag:Ae.eventDrag,eventResize:Ae.eventResize,todayRange:Ae.todayRange}))),y$2("div",{className:"fc-daygrid-day-bg"},Ae.bgContent)))}}function renderTopInner(De){return De.dayNumberText||y$2(_$2,null," ")}function shouldDisplayMonthStart(De,_e,Ae){const{start:ke,end:Le}=_e,Fe=addMs(Le,-1),Ve=Ae.getYear(ke),Ie=Ae.getMonth(ke),je=Ae.getYear(Fe),Ke=Ae.getMonth(Fe);return!(Ve===je&&Ie===Ke)&&(De.valueOf()===ke.valueOf()||Ae.getDay(De)===1&&De.valueOf()<Le.valueOf())}function generateSegKey(De){return De.eventRange.instance.instanceId+":"+De.firstCol}function generateSegUid(De){return generateSegKey(De)+":"+De.lastCol}function computeFgSegPlacement(De,_e,Ae,ke,Le,Fe,Ve){let Ie=new DayGridSegHierarchy(hi=>{let Ei=De[hi.index].eventRange.instance.instanceId+":"+hi.span.start+":"+(hi.span.end-1);return Le[Ei]||1});Ie.allowReslicing=!0,Ie.strictOrder=ke,_e===!0||Ae===!0?(Ie.maxCoord=Fe,Ie.hiddenConsumes=!0):typeof _e=="number"?Ie.maxStackCnt=_e:typeof Ae=="number"&&(Ie.maxStackCnt=Ae,Ie.hiddenConsumes=!0);let je=[],Ke=[];for(let hi=0;hi<De.length;hi+=1){let Ei=De[hi],Li=generateSegUid(Ei);Le[Li]!=null?je.push({index:hi,span:{start:Ei.firstCol,end:Ei.lastCol+1}}):Ke.push(Ei)}let $e=Ie.addSegs(je),qe=Ie.toRects(),{singleColPlacements:ci,multiColPlacements:gi,leftoverMargins:Ai}=placeRects(qe,De,Ve),oi=[],ii=[];for(let hi of Ke){gi[hi.firstCol].push({seg:hi,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let Ei=hi.firstCol;Ei<=hi.lastCol;Ei+=1)ci[Ei].push({seg:resliceSeg(hi,Ei,Ei+1,Ve),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let hi=0;hi<Ve.length;hi+=1)oi.push(0);for(let hi of $e){let Ei=De[hi.index],Li=hi.span;gi[Li.start].push({seg:resliceSeg(Ei,Li.start,Li.end,Ve),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let Di=Li.start;Di<Li.end;Di+=1)oi[Di]+=1,ci[Di].push({seg:resliceSeg(Ei,Di,Di+1,Ve),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let hi=0;hi<Ve.length;hi+=1)ii.push(Ai[hi]);return{singleColPlacements:ci,multiColPlacements:gi,moreCnts:oi,moreMarginTops:ii}}function placeRects(De,_e,Ae){let ke=groupRectsByEachCol(De,Ae.length),Le=[],Fe=[],Ve=[];for(let Ie=0;Ie<Ae.length;Ie+=1){let je=ke[Ie],Ke=[],$e=0,qe=0;for(let gi of je){let Ai=_e[gi.index];Ke.push({seg:resliceSeg(Ai,Ie,Ie+1,Ae),isVisible:!0,isAbsolute:!1,absoluteTop:gi.levelCoord,marginTop:gi.levelCoord-$e}),$e=gi.levelCoord+gi.thickness}let ci=[];$e=0,qe=0;for(let gi of je){let Ai=_e[gi.index],oi=gi.span.end-gi.span.start>1,ii=gi.span.start===Ie;qe+=gi.levelCoord-$e,$e=gi.levelCoord+gi.thickness,oi?(qe+=gi.thickness,ii&&ci.push({seg:resliceSeg(Ai,gi.span.start,gi.span.end,Ae),isVisible:!0,isAbsolute:!0,absoluteTop:gi.levelCoord,marginTop:0})):ii&&(ci.push({seg:resliceSeg(Ai,gi.span.start,gi.span.end,Ae),isVisible:!0,isAbsolute:!1,absoluteTop:gi.levelCoord,marginTop:qe}),qe=0)}Le.push(Ke),Fe.push(ci),Ve.push(qe)}return{singleColPlacements:Le,multiColPlacements:Fe,leftoverMargins:Ve}}function groupRectsByEachCol(De,_e){let Ae=[];for(let ke=0;ke<_e;ke+=1)Ae.push([]);for(let ke of De)for(let Le=ke.span.start;Le<ke.span.end;Le+=1)Ae[Le].push(ke);return Ae}function resliceSeg(De,_e,Ae,ke){if(De.firstCol===_e&&De.lastCol===Ae-1)return De;let Le=De.eventRange,Fe=Le.range,Ve=intersectRanges(Fe,{start:ke[_e].date,end:addDays(ke[Ae-1].date,1)});return Object.assign(Object.assign({},De),{firstCol:_e,lastCol:Ae-1,eventRange:{def:Le.def,ui:Object.assign(Object.assign({},Le.ui),{durationEditable:!1}),instance:Le.instance,range:Ve},isStart:De.isStart&&Ve.start.valueOf()===Fe.start.valueOf(),isEnd:De.isEnd&&Ve.end.valueOf()===Fe.end.valueOf()})}class DayGridSegHierarchy extends SegHierarchy{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(_e){const Ae=super.addSegs(_e),{entriesByLevel:ke}=this,Le=Fe=>!this.forceHidden[buildEntryKey(Fe)];for(let Fe=0;Fe<ke.length;Fe+=1)ke[Fe]=ke[Fe].filter(Le);return Ae}handleInvalidInsertion(_e,Ae,ke){const{entriesByLevel:Le,forceHidden:Fe}=this,{touchingEntry:Ve,touchingLevel:Ie,touchingLateral:je}=_e;if(this.hiddenConsumes&&Ve){const Ke=buildEntryKey(Ve);if(!Fe[Ke])if(this.allowReslicing){const $e=Object.assign(Object.assign({},Ve),{span:intersectSpans(Ve.span,Ae.span)}),qe=buildEntryKey($e);
vendor: 14,074 bytes, line 44
44Fe[qe]=!0,Le[Ie][je]=$e,ke.push($e),this.splitEntry(Ve,Ae,ke)}else Fe[Ke]=!0,ke.push(Ve)}super.handleInvalidInsertion(_e,Ae,ke)}}class TableRow extends DateComponent{constructor(){super(...arguments),this.cellElRefs=new RefMap,this.frameElRefs=new RefMap,this.fgElRefs=new RefMap,this.segHarnessRefs=new RefMap,this.rootElRef=d$2(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=_e=>{_e&&this.updateSizing(!0)}}render(){let{props:_e,state:Ae,context:ke}=this,{options:Le}=ke,Fe=_e.cells.length,Ve=splitSegsByFirstCol(_e.businessHourSegs,Fe),Ie=splitSegsByFirstCol(_e.bgEventSegs,Fe),je=splitSegsByFirstCol(this.getHighlightSegs(),Fe),Ke=splitSegsByFirstCol(this.getMirrorSegs(),Fe),{singleColPlacements:$e,multiColPlacements:qe,moreCnts:ci,moreMarginTops:gi}=computeFgSegPlacement(sortEventSegs(_e.fgEventSegs,Le.eventOrder),_e.dayMaxEvents,_e.dayMaxEventRows,Le.eventOrderStrict,Ae.segHeights,Ae.maxContentHeight,_e.cells),Ai=_e.eventDrag&&_e.eventDrag.affectedInstances||_e.eventResize&&_e.eventResize.affectedInstances||{};return y$2("tr",{ref:this.rootElRef,role:"row"},_e.renderIntro&&_e.renderIntro(),_e.cells.map((oi,ii)=>{let hi=this.renderFgSegs(ii,_e.forPrint?$e[ii]:qe[ii],_e.todayRange,Ai),Ei=this.renderFgSegs(ii,buildMirrorPlacements(Ke[ii],qe),_e.todayRange,{},!!_e.eventDrag,!!_e.eventResize,!1);return y$2(TableCell,{key:oi.key,elRef:this.cellElRefs.createRef(oi.key),innerElRef:this.frameElRefs.createRef(oi.key),dateProfile:_e.dateProfile,date:oi.date,showDayNumber:_e.showDayNumbers,showWeekNumber:_e.showWeekNumbers&&ii===0,forceDayTop:_e.showWeekNumbers,todayRange:_e.todayRange,eventSelection:_e.eventSelection,eventDrag:_e.eventDrag,eventResize:_e.eventResize,extraRenderProps:oi.extraRenderProps,extraDataAttrs:oi.extraDataAttrs,extraClassNames:oi.extraClassNames,extraDateSpan:oi.extraDateSpan,moreCnt:ci[ii],moreMarginTop:gi[ii],singlePlacements:$e[ii],fgContentElRef:this.fgElRefs.createRef(oi.key),fgContent:y$2(_$2,null,y$2(_$2,null,hi),y$2(_$2,null,Ei)),bgContent:y$2(_$2,null,this.renderFillSegs(je[ii],"highlight"),this.renderFillSegs(Ve[ii],"non-business"),this.renderFillSegs(Ie[ii],"bg-event")),minHeight:_e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(_e,Ae){let ke=this.props;this.updateSizing(!isPropsEqual(_e,ke))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:_e}=this;return _e.eventDrag&&_e.eventDrag.segs.length?_e.eventDrag.segs:_e.eventResize&&_e.eventResize.segs.length?_e.eventResize.segs:_e.dateSelectionSegs}getMirrorSegs(){let{props:_e}=this;return _e.eventResize&&_e.eventResize.segs.length?_e.eventResize.segs:[]}renderFgSegs(_e,Ae,ke,Le,Fe,Ve,Ie){let{context:je}=this,{eventSelection:Ke}=this.props,{framePositions:$e}=this.state,qe=this.props.cells.length===1,ci=Fe||Ve||Ie,gi=[];if($e)for(let Ai of Ae){let{seg:oi}=Ai,{instanceId:ii}=oi.eventRange.instance,hi=Ai.isVisible&&!Le[ii],Ei=Ai.isAbsolute,Li="",Di="";Ei&&(je.isRtl?(Di=0,Li=$e.lefts[oi.lastCol]-$e.lefts[oi.firstCol]):(Li=0,Di=$e.rights[oi.firstCol]-$e.rights[oi.lastCol])),gi.push(y$2("div",{className:"fc-daygrid-event-harness"+(Ei?" fc-daygrid-event-harness-abs":""),key:generateSegKey(oi),ref:ci?null:this.segHarnessRefs.createRef(generateSegUid(oi)),style:{visibility:hi?"":"hidden",marginTop:Ei?"":Ai.marginTop,top:Ei?Ai.absoluteTop:"",left:Li,right:Di}},hasListItemDisplay(oi)?y$2(TableListItemEvent,Object.assign({seg:oi,isDragging:Fe,isSelected:ii===Ke,defaultDisplayEventEnd:qe},getSegMeta(oi,ke))):y$2(TableBlockEvent,Object.assign({seg:oi,isDragging:Fe,isResizing:Ve,isDateSelecting:Ie,isSelected:ii===Ke,defaultDisplayEventEnd:qe},getSegMeta(oi,ke)))))}return gi}renderFillSegs(_e,Ae){let{isRtl:ke}=this.context,{todayRange:Le}=this.props,{framePositions:Fe}=this.state,Ve=[];if(Fe)for(let Ie of _e){let je=ke?{right:0,left:Fe.lefts[Ie.lastCol]-Fe.lefts[Ie.firstCol]}:{left:0,right:Fe.rights[Ie.firstCol]-Fe.rights[Ie.lastCol]};Ve.push(y$2("div",{key:buildEventRangeKey(Ie.eventRange),className:"fc-daygrid-bg-harness",style:je},Ae==="bg-event"?y$2(BgEvent,Object.assign({seg:Ie},getSegMeta(Ie,Le))):renderFill(Ae)))}return y$2(_$2,{},...Ve)}updateSizing(_e){let{props:Ae,state:ke,frameElRefs:Le}=this;if(!Ae.forPrint&&Ae.clientWidth!==null){if(_e){let je=Ae.cells.map(Ke=>Le.currentMap[Ke.key]);if(je.length){let Ke=this.rootElRef.current,$e=new PositionCache(Ke,je,!0,!1);(!ke.framePositions||!ke.framePositions.similarTo($e))&&this.setState({framePositions:new PositionCache(Ke,je,!0,!1)})}}const Fe=this.state.segHeights,Ve=this.querySegHeights(),Ie=Ae.dayMaxEvents===!0||Ae.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},Fe),Ve),maxContentHeight:Ie?this.computeMaxContentHeight():null})}}querySegHeights(){let _e=this.segHarnessRefs.currentMap,Ae={};for(let ke in _e){let Le=Math.round(_e[ke].getBoundingClientRect().height);Ae[ke]=Math.max(Ae[ke]||0,Le)}return Ae}computeMaxContentHeight(){let _e=this.props.cells[0].key,Ae=this.cellElRefs.currentMap[_e],ke=this.fgElRefs.currentMap[_e];return Ae.getBoundingClientRect().bottom-ke.getBoundingClientRect().top}getCellEls(){let _e=this.cellElRefs.currentMap;return this.props.cells.map(Ae=>_e[Ae.key])}}TableRow.addStateEquality({segHeights:isPropsEqual});function buildMirrorPlacements(De,_e){if(!De.length)return[];let Ae=buildAbsoluteTopHash(_e);return De.map(ke=>({seg:ke,isVisible:!0,isAbsolute:!0,absoluteTop:Ae[ke.eventRange.instance.instanceId],marginTop:0}))}function buildAbsoluteTopHash(De){let _e={};for(let Ae of De)for(let ke of Ae)_e[ke.seg.eventRange.instance.instanceId]=ke.absoluteTop;return _e}class TableRows extends DateComponent{constructor(){super(...arguments),this.splitBusinessHourSegs=memoize(splitSegsByRow),this.splitBgEventSegs=memoize(splitAllDaySegsByRow),this.splitFgEventSegs=memoize(splitSegsByRow),this.splitDateSelectionSegs=memoize(splitSegsByRow),this.splitEventDrag=memoize(splitInteractionByRow),this.splitEventResize=memoize(splitInteractionByRow),this.rowRefs=new RefMap}render(){let{props:_e,context:Ae}=this,ke=_e.cells.length,Le=this.splitBusinessHourSegs(_e.businessHourSegs,ke),Fe=this.splitBgEventSegs(_e.bgEventSegs,ke),Ve=this.splitFgEventSegs(_e.fgEventSegs,ke),Ie=this.splitDateSelectionSegs(_e.dateSelectionSegs,ke),je=this.splitEventDrag(_e.eventDrag,ke),Ke=this.splitEventResize(_e.eventResize,ke),$e=ke>=7&&_e.clientWidth?_e.clientWidth/Ae.options.aspectRatio/6:null;return y$2(NowTimer,{unit:"day"},(qe,ci)=>y$2(_$2,null,_e.cells.map((gi,Ai)=>y$2(TableRow,{ref:this.rowRefs.createRef(Ai),key:gi.length?gi[0].date.toISOString():Ai,showDayNumbers:ke>1,showWeekNumbers:_e.showWeekNumbers,todayRange:ci,dateProfile:_e.dateProfile,cells:gi,renderIntro:_e.renderRowIntro,businessHourSegs:Le[Ai],eventSelection:_e.eventSelection,bgEventSegs:Fe[Ai],fgEventSegs:Ve[Ai],dateSelectionSegs:Ie[Ai],eventDrag:je[Ai],eventResize:Ke[Ai],dayMaxEvents:_e.dayMaxEvents,dayMaxEventRows:_e.dayMaxEventRows,clientWidth:_e.clientWidth,clientHeight:_e.clientHeight,cellMinHeight:$e,forPrint:_e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const _e=this.rowRefs.currentMap[0].getCellEls()[0],Ae=_e?_e.closest(".fc-daygrid-body"):null;Ae&&(this.rootEl=Ae,this.context.registerInteractiveComponent(this,{el:Ae,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new PositionCache(this.rootEl,this.rowRefs.collect().map(_e=>_e.getCellEls()[0]),!1,!0),this.colPositions=new PositionCache(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(_e,Ae){let{colPositions:ke,rowPositions:Le}=this,Fe=ke.leftToIndex(_e),Ve=Le.topToIndex(Ae);if(Ve!=null&&Fe!=null){let Ie=this.props.cells[Ve][Fe];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(Ve,Fe),allDay:!0},Ie.extraDateSpan),dayEl:this.getCellEl(Ve,Fe),rect:{left:ke.lefts[Fe],right:ke.rights[Fe],top:Le.tops[Ve],bottom:Le.bottoms[Ve]},layer:0}}return null}getCellEl(_e,Ae){return this.rowRefs.currentMap[_e].getCellEls()[Ae]}getCellRange(_e,Ae){let ke=this.props.cells[_e][Ae].date,Le=addDays(ke,1);return{start:ke,end:Le}}}function splitAllDaySegsByRow(De,_e){return splitSegsByRow(De.filter(isSegAllDay),_e)}function isSegAllDay(De){return De.eventRange.def.allDay}class Table extends DateComponent{constructor(){super(...arguments),this.elRef=d$2(),this.needsScrollReset=!1}render(){let{props:_e}=this,{dayMaxEventRows:Ae,dayMaxEvents:ke,expandRows:Le}=_e,Fe=ke===!0||Ae===!0;Fe&&!Le&&(Fe=!1,Ae=null,ke=null);let Ve=["fc-daygrid-body",Fe?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",Le?"":"fc-daygrid-body-natural"];return y$2("div",{ref:this.elRef,className:Ve.join(" "),style:{width:_e.clientWidth,minWidth:_e.tableMinWidth}},y$2("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:_e.clientWidth,minWidth:_e.tableMinWidth,height:Le?_e.clientHeight:""}},_e.colGroupNode,y$2("tbody",{role:"presentation"},y$2(TableRows,{dateProfile:_e.dateProfile,cells:_e.cells,renderRowIntro:_e.renderRowIntro,showWeekNumbers:_e.showWeekNumbers,clientWidth:_e.clientWidth,clientHeight:_e.clientHeight,businessHourSegs:_e.businessHourSegs,bgEventSegs:_e.bgEventSegs,fgEventSegs:_e.fgEventSegs,dateSelectionSegs:_e.dateSelectionSegs,eventSelection:_e.eventSelection,eventDrag:_e.eventDrag,eventResize:_e.eventResize,dayMaxEvents:ke,dayMaxEventRows:Ae,forPrint:_e.forPrint,isHitComboAllowed:_e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(_e){_e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const _e=getScrollSubjectEl(this.elRef.current,this.props.dateProfile);if(_e){const Ae=_e.closest(".fc-daygrid-body"),ke=Ae.closest(".fc-scroller"),Le=_e.getBoundingClientRect().top-Ae.getBoundingClientRect().top;ke.scrollTop=Le?Le+1:0}this.needsScrollReset=!1}}}function getScrollSubjectEl(De,_e){let Ae;return _e.currentRangeUnit.match(/year|month/)&&(Ae=De.querySelector(`[data-date="${formatIsoMonthStr(_e.currentDate)}-01"]`)),Ae||(Ae=De.querySelector(`[data-date="${formatDayString(_e.currentDate)}"]`)),Ae}class DayTableSlicer extends Slicer{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(_e,Ae){return Ae.sliceRange(_e)}}class DayTable extends DateComponent{constructor(){super(...arguments),this.slicer=new DayTableSlicer,this.tableRef=d$2()}render(){let{props:_e,context:Ae}=this;return y$2(Table,Object.assign({ref:this.tableRef},this.slicer.sliceProps(_e,_e.dateProfile,_e.nextDayThreshold,Ae,_e.dayTableModel),{dateProfile:_e.dateProfile,cells:_e.dayTableModel.cells,colGroupNode:_e.colGroupNode,tableMinWidth:_e.tableMinWidth,renderRowIntro:_e.renderRowIntro,dayMaxEvents:_e.dayMaxEvents,dayMaxEventRows:_e.dayMaxEventRows,showWeekNumbers:_e.showWeekNumbers,expandRows:_e.expandRows,headerAlignElRef:_e.headerAlignElRef,clientWidth:_e.clientWidth,clientHeight:_e.clientHeight,forPrint:_e.forPrint}))}}class DayTableView extends TableView{constructor(){super(...arguments),this.buildDayTableModel=memoize(buildDayTableModel),this.headerRef=d$2(),this.tableRef=d$2()}render(){let{options:_e,dateProfileGenerator:Ae}=this.context,{props:ke}=this,Le=this.buildDayTableModel(ke.dateProfile,Ae),Fe=_e.dayHeaders&&y$2(DayHeader,{ref:this.headerRef,dateProfile:ke.dateProfile,dates:Le.headerDates,datesRepDistinctDays:Le.rowCnt===1}),Ve=Ie=>y$2(DayTable,{ref:this.tableRef,dateProfile:ke.dateProfile,dayTableModel:Le,businessHours:ke.businessHours,dateSelection:ke.dateSelection,eventStore:ke.eventStore,eventUiBases:ke.eventUiBases,eventSelection:ke.eventSelection,eventDrag:ke.eventDrag,eventResize:ke.eventResize,nextDayThreshold:_e.nextDayThreshold,colGroupNode:Ie.tableColGroupNode,tableMinWidth:Ie.tableMinWidth,dayMaxEvents:_e.dayMaxEvents,dayMaxEventRows:_e.dayMaxEventRows,showWeekNumbers:_e.weekNumbers,expandRows:!ke.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:Ie.clientWidth,clientHeight:Ie.clientHeight,forPrint:ke.forPrint});return _e.dayMinWidth?this.renderHScrollLayout(Fe,Ve,Le.colCnt,_e.dayMinWidth):this.renderSimpleLayout(Fe,Ve)}}function buildDayTableModel(De,_e){let Ae=new DaySeriesModel(De.renderRange,_e);return new DayTableModel(Ae,/year|month|week/.test(De.currentRangeUnit))}class TableDateProfileGenerator extends DateProfileGenerator{buildRenderRange(_e,Ae,ke){let Le=super.buildRenderRange(_e,Ae,ke),{props:Fe}=this;return buildDayTableRenderRange({currentRange:Le,snapToWeek:/^(year|month)$/.test(Ae),fixedWeekCount:Fe.fixedWeekCount,dateEnv:Fe.dateEnv})}}function buildDayTableRenderRange(De){let{dateEnv:_e,currentRange:Ae}=De,{start:ke,end:Le}=Ae,Fe;if(De.snapToWeek&&(ke=_e.startOfWeek(ke),Fe=_e.startOfWeek(Le),Fe.valueOf()!==Le.valueOf()&&(Le=addWeeks(Fe,1))),De.fixedWeekCount){let Ve=_e.startOfWeek(_e.startOfMonth(addDays(Ae.end,-1))),Ie=Math.ceil(diffWeeks(Ve,Le));Le=addWeeks(Le,6-Ie)}return{start:ke,end:Le}}var css_248z$1=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}
44.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}
44.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';injectStyles(css_248z$1);var index$1=createPlugin({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:DayTableView,dateProfileGeneratorClass:TableDateProfileGenerator},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class ListViewHeaderRow extends BaseComponent{constructor(){super(...arguments),this.state={textId:getUniqueDomId()}}render(){let{theme:_e,dateEnv:Ae,options:ke,viewApi:Le}=this.context,{cellId:Fe,dayDate:Ve,todayRange:Ie}=this.props,{textId:je}=this.state,Ke=getDateMeta(Ve,Ie),$e=ke.listDayFormat?Ae.format(Ve,ke.listDayFormat):"",qe=ke.listDaySideFormat?Ae.format(Ve,ke.listDaySideFormat):"",ci=Object.assign({date:Ae.toDate(Ve),view:Le,textId:je,text:$e,sideText:qe,navLinkAttrs:buildNavLinkAttrs(this.context,Ve),sideNavLinkAttrs:buildNavLinkAttrs(this.context,Ve,"day",!1)},Ke);return y$2(ContentContainer,{elTag:"tr",elClasses:["fc-list-day",...getDayClassNames(Ke,_e)],elAttrs:{"data-date":formatDayString(Ve)},renderProps:ci,generatorName:"dayHeaderContent",customGenerator:ke.dayHeaderContent,defaultGenerator:renderInnerContent,classNameGenerator:ke.dayHeaderClassNames,didMount:ke.dayHeaderDidMount,willUnmount:ke.dayHeaderWillUnmount},gi=>y$2("th",{scope:"colgroup",colSpan:3,id:Fe,"aria-labelledby":je},y$2(gi,{elTag:"div",elClasses:["fc-list-day-cushion",_e.getClass("tableCellShaded")]})))}}function renderInnerContent(De){return y$2(_$2,null,De.text&&y$2("a",Object.assign({id:De.textId,className:"fc-list-day-text"},De.navLinkAttrs),De.text),De.sideText&&y$2("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},De.sideNavLinkAttrs),De.sideText))}const DEFAULT_TIME_FORMAT=createFormatter({hour:"numeric",minute:"2-digit",meridiem:"short"});class ListViewEventRow extends BaseComponent{render(){let{props:_e,context:Ae}=this,{options:ke}=Ae,{seg:Le,timeHeaderId:Fe,eventHeaderId:Ve,dateHeaderId:Ie}=_e,je=ke.eventTimeFormat||DEFAULT_TIME_FORMAT;return y$2(EventContainer,Object.assign({},_e,{elTag:"tr",elClasses:["fc-list-event",Le.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>renderEventInnerContent(Le,Ae),seg:Le,timeText:"",disableDragging:!0,disableResizing:!0}),(Ke,$e)=>y$2(_$2,null,buildTimeContent(Le,je,Ae,Fe,Ie),y$2("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},y$2("span",{className:"fc-list-event-dot",style:{borderColor:$e.borderColor||$e.backgroundColor}})),y$2(Ke,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${Ve} ${Ie}`}})))}}function renderEventInnerContent(De,_e){let Ae=getSegAnchorAttrs(De,_e);return y$2("a",Object.assign({},Ae),De.eventRange.def.title)}function buildTimeContent(De,_e,Ae,ke,Le){let{options:Fe}=Ae;if(Fe.displayEventTime!==!1){let Ve=De.eventRange.def,Ie=De.eventRange.instance,je=!1,Ke;if(Ve.allDay?je=!0:isMultiDayRange(De.eventRange.range)?De.isStart?Ke=buildSegTimeText(De,_e,Ae,null,null,Ie.range.start,De.end):De.isEnd?Ke=buildSegTimeText(De,_e,Ae,null,null,De.start,Ie.range.end):je=!0:Ke=buildSegTimeText(De,_e,Ae),je){let $e={text:Ae.options.allDayText,view:Ae.viewApi};return y$2(ContentContainer,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${ke} ${Le}`},renderProps:$e,generatorName:"allDayContent",customGenerator:Fe.allDayContent,defaultGenerator:renderAllDayInner,classNameGenerator:Fe.allDayClassNames,didMount:Fe.allDayDidMount,willUnmount:Fe.allDayWillUnmount})}return y$2("td",{className:"fc-list-event-time"},Ke)}return null}function renderAllDayInner(De){return De.text}class ListView extends DateComponent{constructor(){super(...arguments),this.computeDateVars=memoize(computeDateVars),this.eventStoreToSegs=memoize(this._eventStoreToSegs),this.state={t
44imeHeaderId:getUniqueDomId(),eventHeaderId:getUniqueDomId(),dateHeaderIdRoot:getUniqueDomId()},this.setRootEl=_e=>{_e?this.context.registerInteractiveComponent(this,{el:_e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:_e,context:Ae}=this,{dayDates:ke,dayRanges:Le}=this.computeDateVars(_e.dateProfile),Fe=this.eventStoreToSegs(_e.eventStore,_e.eventUiBases,Le);return y$2(ViewContainer,{elRef:this.setRootEl,elClasses:["fc-list",Ae.theme.getClass("table"),Ae.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:Ae.viewSpec},y$2(Scroller,{liquid:!_e.isHeightAuto,overflowX:_e.isHeightAuto?"visible":"hidden",overflowY:_e.isHeightAuto?"visible":"auto"},Fe.length>0?this.renderSegList(Fe,ke):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:_e,viewApi:Ae}=this.context,ke={text:_e.noEventsText,view:Ae};return y$2(ContentContainer,{elTag:"div",elClasses:["fc-list-empty"],renderProps:ke,generatorName:"noEventsContent",customGenerator:_e.noEventsContent,defaultGenerator:renderNoEventsInner,classNameGenerator:_e.noEventsClassNames,didMount:_e.noEventsDidMount,willUnmount:_e.noEventsWillUnmount},Le=>y$2(Le,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(_e,Ae){let{theme:ke,options:Le}=this.context,{timeHeaderId:Fe,eventHeaderId:Ve,dateHeaderIdRoot:Ie}=this.state,je=groupSegsByDay(_e);return y$2(NowTimer,{unit:"day"},(Ke,$e)=>{let qe=[];for(let ci=0;ci<je.length;ci+=1){let gi=je[ci];if(gi){let Ai=formatDayString(Ae[ci]),oi=Ie+"-"+Ai;qe.push(y$2(ListViewHeaderRow,{key:Ai,cellId:oi,dayDate:Ae[ci],todayRange:$e})),gi=sortEventSegs(gi,Le.eventOrder);for(let ii of gi)qe.push(y$2(ListViewEventRow,Object.assign({key:Ai+":"+ii.eventRange.instance.instanceId,seg:ii,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:Fe,eventHeaderId:Ve,dateHeaderId:oi},getSegMeta(ii,$e,Ke))))}}return y$2("table",{className:"fc-list-table "+ke.getClass("table")},y$2("thead",null,y$2("tr",null,y$2("th",{scope:"col",id:Fe},Le.timeHint),y$2("th",{scope:"col","aria-hidden":!0}),y$2("th",{scope:"col",id:Ve},Le.eventHint))),y$2("tbody",null,qe))})}_eventStoreToSegs(_e,Ae,ke){return this.eventRangesToSegs(sliceEventStore(_e,Ae,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,ke)}eventRangesToSegs(_e,Ae){let ke=[];for(let Le of _e)ke.push(...this.eventRangeToSegs(Le,Ae));return ke}eventRangeToSegs(_e,Ae){let{dateEnv:ke}=this.context,{nextDayThreshold:Le}=this.context.options,Fe=_e.range,Ve=_e.def.allDay,Ie,je,Ke,$e=[];for(Ie=0;Ie<Ae.length;Ie+=1)if(je=intersectRanges(Fe,Ae[Ie]),je&&(Ke={component:this,eventRange:_e,start:je.start,end:je.end,isStart:_e.isStart&&je.start.valueOf()===Fe.start.valueOf(),isEnd:_e.isEnd&&je.end.valueOf()===Fe.end.valueOf(),dayIndex:Ie},$e.push(Ke),!Ke.isEnd&&!Ve&&Ie+1<Ae.length&&Fe.end<ke.add(Ae[Ie+1].start,Le))){Ke.end=Fe.end,Ke.isEnd=!0;break}return $e}}function renderNoEventsInner(De){return De.text}function computeDateVars(De){let _e=startOfDay(De.renderRange.start),Ae=De.renderRange.end,ke=[],Le=[];for(;_e<Ae;)ke.push(_e),Le.push({start:_e,end:addDays(_e,1)}),_e=addDays(_e,1);return{dayDates:ke,dayRanges:Le}}function groupSegsByDay(De){let _e=[],Ae,ke;for(Ae=0;Ae<De.length;Ae+=1)ke=De[Ae],(_e[ke.dayIndex]||(_e[ke.dayIndex]=[])).push(ke);return _e}var css_248z=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';injectStyles(css_248z);const OPTION_REFINERS={listDayFormat:createFalsableFormatter,listDaySideFormat:createFalsableFormatter,noEventsClassNames:identity,noEventsContent:identity,noEventsDidMount:identity,noEventsWillUnmount:identity};function createFalsableFormatter(De){return De===!1?null:createFormatter(De)}var index=createPlugin({name:"@fullcalendar/list",optionRefiners:OPTION_REFINERS,views:{list:{component:ListView,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});function calendar(De,_e,Ae={}){return{calendar:null,events:null,isLoading:null,init:function(){this.calendar=new Calendar(this.$el.querySelector(".calendar"),_$3.merge({buttonText:{today:"Today"},eventSources:[{extraParams:{locale:_e,types:De},method:"POST",url:"/api/calendar/events"}],eventsSet:(function(ke){this.events=ke}).bind(this),fixedWeekCount:!0,headerToolbar:{center:"",left:"title",right:"today,prev,next"},initialView:"dayGridMonth",loading:(function(ke){this.isLoading=ke}).bind(this),nextDayThreshold:"00:00",plugins:[index$1,index],timeZone:"America/Los_Angeles"},Ae)),this.calendar.render(),this.onResize(),window.addEventListener("resize",this.onResize.bind(this))},onResize:function(){window.innerWidth<768?(this.calendar.setOption("headerToolbar",{center:"",left:"title",right:"today,prev,next"}),this.calendar.changeView("listMonth")):(this.calendar.setOption("headerToolbar",{center:"",left:"title",right:"today,prev,next"}),this.calendar.changeView("dayGridMonth"))}}}const swiperBundle="";function isObject$2(De){return De!==null&&typeof De=="object"&&"constructor"in De&&De.constructor===Object}
vendor: 6,566 bytes, line 44
44function extend$1(De,_e){De===void 0&&(De={}),_e===void 0&&(_e={}),Object.keys(_e).forEach(Ae=>{typeof De[Ae]>"u"?De[Ae]=_e[Ae]:isObject$2(_e[Ae])&&isObject$2(De[Ae])&&Object.keys(_e[Ae]).length>0&&extend$1(De[Ae],_e[Ae])})}const ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const De=typeof document<"u"?document:{};return extend$1(De,ssrDocument),De}const ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(De){return typeof setTimeout>"u"?(De(),null):setTimeout(De,0)},cancelAnimationFrame(De){typeof setTimeout>"u"||clearTimeout(De)}};function getWindow$1(){const De=typeof window<"u"?window:{};return extend$1(De,ssrWindow),De}function deleteProps(De){const _e=De;Object.keys(_e).forEach(Ae=>{try{_e[Ae]=null}catch{}try{delete _e[Ae]}catch{}})}function nextTick(De,_e){return _e===void 0&&(_e=0),setTimeout(De,_e)}function now(){return Date.now()}function getComputedStyle$2(De){const _e=getWindow$1();let Ae;return _e.getComputedStyle&&(Ae=_e.getComputedStyle(De,null)),!Ae&&De.currentStyle&&(Ae=De.currentStyle),Ae||(Ae=De.style),Ae}function getTranslate(De,_e){_e===void 0&&(_e="x");const Ae=getWindow$1();let ke,Le,Fe;const Ve=getComputedStyle$2(De);return Ae.WebKitCSSMatrix?(Le=Ve.transform||Ve.webkitTransform,Le.split(",").length>6&&(Le=Le.split(", ").map(Ie=>Ie.replace(",",".")).join(", ")),Fe=new Ae.WebKitCSSMatrix(Le==="none"?"":Le)):(Fe=Ve.MozTransform||Ve.OTransform||Ve.MsTransform||Ve.msTransform||Ve.transform||Ve.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),ke=Fe.toString().split(",")),_e==="x"&&(Ae.WebKitCSSMatrix?Le=Fe.m41:ke.length===16?Le=parseFloat(ke[12]):Le=parseFloat(ke[4])),_e==="y"&&(Ae.WebKitCSSMatrix?Le=Fe.m42:ke.length===16?Le=parseFloat(ke[13]):Le=parseFloat(ke[5])),Le||0}function isObject$1(De){return typeof De=="object"&&De!==null&&De.constructor&&Object.prototype.toString.call(De).slice(8,-1)==="Object"}function isNode$1(De){return typeof window<"u"&&typeof window.HTMLElement<"u"?De instanceof HTMLElement:De&&(De.nodeType===1||De.nodeType===11)}function extend(){const De=Object(arguments.length<=0?void 0:arguments[0]),_e=["__proto__","constructor","prototype"];for(let Ae=1;Ae<arguments.length;Ae+=1){const ke=Ae<0||arguments.length<=Ae?void 0:arguments[Ae];if(ke!=null&&!isNode$1(ke)){const Le=Object.keys(Object(ke)).filter(Fe=>_e.indexOf(Fe)<0);for(let Fe=0,Ve=Le.length;Fe<Ve;Fe+=1){const Ie=Le[Fe],je=Object.getOwnPropertyDescriptor(ke,Ie);je!==void 0&&je.enumerable&&(isObject$1(De[Ie])&&isObject$1(ke[Ie])?ke[Ie].__swiper__?De[Ie]=ke[Ie]:extend(De[Ie],ke[Ie]):!isObject$1(De[Ie])&&isObject$1(ke[Ie])?(De[Ie]={},ke[Ie].__swiper__?De[Ie]=ke[Ie]:extend(De[Ie],ke[Ie])):De[Ie]=ke[Ie])}}}return De}function setCSSProperty(De,_e,Ae){De.style.setProperty(_e,Ae)}function animateCSSModeScroll(De){let{swiper:_e,targetPosition:Ae,side:ke}=De;const Le=getWindow$1(),Fe=-_e.translate;let Ve=null,Ie;const je=_e.params.speed;_e.wrapperEl.style.scrollSnapType="none",Le.cancelAnimationFrame(_e.cssModeFrameID);const Ke=Ae>Fe?"next":"prev",$e=(ci,gi)=>Ke==="next"&&ci>=gi||Ke==="prev"&&ci<=gi,qe=()=>{Ie=new Date().getTime(),Ve===null&&(Ve=Ie);const ci=Math.max(Math.min((Ie-Ve)/je,1),0),gi=.5-Math.cos(ci*Math.PI)/2;let Ai=Fe+gi*(Ae-Fe);if($e(Ai,Ae)&&(Ai=Ae),_e.wrapperEl.scrollTo({[ke]:Ai}),$e(Ai,Ae)){_e.wrapperEl.style.overflow="hidden",_e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{_e.wrapperEl.style.overflow="",_e.wrapperEl.scrollTo({[ke]:Ai})}),Le.cancelAnimationFrame(_e.cssModeFrameID);return}_e.cssModeFrameID=Le.requestAnimationFrame(qe)};qe()}function getSlideTransformEl(De){return De.querySelector(".swiper-slide-transform")||De.shadowRoot&&De.shadowRoot.querySelector(".swiper-slide-transform")||De}function elementChildren(De,_e){return _e===void 0&&(_e=""),[...De.children].filter(Ae=>Ae.matches(_e))}function createElement(De,_e){_e===void 0&&(_e=[]);const Ae=document.createElement(De);return Ae.classList.add(...Array.isArray(_e)?_e:[_e]),Ae}function elementOffset(De){const _e=getWindow$1(),Ae=getDocument(),ke=De.getBoundingClientRect(),Le=Ae.body,Fe=De.clientTop||Le.clientTop||0,Ve=De.clientLeft||Le.clientLeft||0,Ie=De===_e?_e.scrollY:De.scrollTop,je=De===_e?_e.scrollX:De.scrollLeft;return{top:ke.top+Ie-Fe,left:ke.left+je-Ve}}function elementPrevAll(De,_e){const Ae=[];for(;De.previousElementSibling;){const ke=De.previousElementSibling;_e?ke.matches(_e)&&Ae.push(ke):Ae.push(ke),De=ke}return Ae}function elementNextAll(De,_e){const Ae=[];for(;De.nextElementSibling;){const ke=De.nextElementSibling;_e?ke.matches(_e)&&Ae.push(ke):Ae.push(ke),De=ke}return Ae}function elementStyle(De,_e){return getWindow$1().getComputedStyle(De,null).getPropertyValue(_e)}function elementIndex(De){let _e=De,Ae;if(_e){for(Ae=0;(_e=_e.previousSibling)!==null;)_e.nodeType===1&&(Ae+=1);return Ae}}function elementParents(De,_e){const Ae=[];let ke=De.parentElement;for(;ke;)_e?ke.matches(_e)&&Ae.push(ke):Ae.push(ke),ke=ke.parentElement;return Ae}function elementTransitionEnd(De,_e){function Ae(ke){ke.target===De&&(_e.call(De,ke),De.removeEventListener("transitionend",Ae))}_e&&De.addEventListener("transitionend",Ae)}function elementOuterSize(De,_e,Ae){const ke=getWindow$1();return Ae?De[_e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(ke.getComputedStyle(De,null).getPropertyValue(_e==="width"?"margin-right":"margin-top"))+parseFloat(ke.getComputedStyle(De,null).getPropertyValue(_e==="width"?"margin-left":"margin-bottom")):De.offsetWidth}let support;function calcSupport(){const De=getWindow$1(),_e=getDocument();return{smoothScroll:_e.documentElement&&_e.documentElement.style&&"scrollBehavior"in _e.documentElement.style,touch:!!("ontouchstart"in De||De.DocumentTouch&&_e instanceof De.DocumentTouch)}}
vendor: 4,230 bytes, line 44
44function getSupport(){return support||(support=calcSupport()),support}let deviceCached;function calcDevice(De){let{userAgent:_e}=De===void 0?{}:De;const Ae=getSupport(),ke=getWindow$1(),Le=ke.navigator.platform,Fe=_e||ke.navigator.userAgent,Ve={ios:!1,android:!1},Ie=ke.screen.width,je=ke.screen.height,Ke=Fe.match(/(Android);?[\s\/]+([\d.]+)?/);let $e=Fe.match(/(iPad).*OS\s([\d_]+)/);const qe=Fe.match(/(iPod)(.*OS\s([\d_]+))?/),ci=!$e&&Fe.match(/(iPhone\sOS|iOS)\s([\d_]+)/),gi=Le==="Win32";let Ai=Le==="MacIntel";const oi=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!$e&&Ai&&Ae.touch&&oi.indexOf(`${Ie}x${je}`)>=0&&($e=Fe.match(/(Version)\/([\d.]+)/),$e||($e=[0,1,"13_0_0"]),Ai=!1),Ke&&!gi&&(Ve.os="android",Ve.android=!0),($e||ci||qe)&&(Ve.os="ios",Ve.ios=!0),Ve}function getDevice(De){return De===void 0&&(De={}),deviceCached||(deviceCached=calcDevice(De)),deviceCached}let browser;function calcBrowser(){const De=getWindow$1();let _e=!1;function Ae(){const ke=De.navigator.userAgent.toLowerCase();return ke.indexOf("safari")>=0&&ke.indexOf("chrome")<0&&ke.indexOf("android")<0}if(Ae()){const ke=String(De.navigator.userAgent);if(ke.includes("Version/")){const[Le,Fe]=ke.split("Version/")[1].split(" ")[0].split(".").map(Ve=>Number(Ve));_e=Le<16||Le===16&&Fe<2}}return{isSafari:_e||Ae(),needPerspectiveFix:_e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(De.navigator.userAgent)}}function getBrowser(){return browser||(browser=calcBrowser()),browser}function Resize(De){let{swiper:_e,on:Ae,emit:ke}=De;const Le=getWindow$1();let Fe=null,Ve=null;const Ie=()=>{!_e||_e.destroyed||!_e.initialized||(ke("beforeResize"),ke("resize"))},je=()=>{!_e||_e.destroyed||!_e.initialized||(Fe=new ResizeObserver(qe=>{Ve=Le.requestAnimationFrame(()=>{const{width:ci,height:gi}=_e;let Ai=ci,oi=gi;qe.forEach(ii=>{let{contentBoxSize:hi,contentRect:Ei,target:Li}=ii;Li&&Li!==_e.el||(Ai=Ei?Ei.width:(hi[0]||hi).inlineSize,oi=Ei?Ei.height:(hi[0]||hi).blockSize)}),(Ai!==ci||oi!==gi)&&Ie()})}),Fe.observe(_e.el))},Ke=()=>{Ve&&Le.cancelAnimationFrame(Ve),Fe&&Fe.unobserve&&_e.el&&(Fe.unobserve(_e.el),Fe=null)},$e=()=>{!_e||_e.destroyed||!_e.initialized||ke("orientationchange")};Ae("init",()=>{if(_e.params.resizeObserver&&typeof Le.ResizeObserver<"u"){je();return}Le.addEventListener("resize",Ie),Le.addEventListener("orientationchange",$e)}),Ae("destroy",()=>{Ke(),Le.removeEventListener("resize",Ie),Le.removeEventListener("orientationchange",$e)})}function Observer(De){let{swiper:_e,extendParams:Ae,on:ke,emit:Le}=De;const Fe=[],Ve=getWindow$1(),Ie=function($e,qe){qe===void 0&&(qe={});const ci=Ve.MutationObserver||Ve.WebkitMutationObserver,gi=new ci(Ai=>{if(_e.__preventObserver__)return;if(Ai.length===1){Le("observerUpdate",Ai[0]);return}const oi=function(){Le("observerUpdate",Ai[0])};Ve.requestAnimationFrame?Ve.requestAnimationFrame(oi):Ve.setTimeout(oi,0)});gi.observe($e,{attributes:typeof qe.attributes>"u"?!0:qe.attributes,childList:typeof qe.childList>"u"?!0:qe.childList,characterData:typeof qe.characterData>"u"?!0:qe.characterData}),Fe.push(gi)},je=()=>{if(_e.params.observer){if(_e.params.observeParents){const $e=elementParents(_e.hostEl);for(let qe=0;qe<$e.length;qe+=1)Ie($e[qe])}Ie(_e.hostEl,{childList:_e.params.observeSlideChildren}),Ie(_e.wrapperEl,{attributes:!1})}},Ke=()=>{Fe.forEach($e=>{$e.disconnect()}),Fe.splice(0,Fe.length)};Ae({observer:!1,observeParents:!1,observeSlideChildren:!1}),ke("init",je),ke("destroy",Ke)}var eventsEmitter={on(De,_e,Ae){const ke=this;if(!ke.eventsListeners||ke.destroyed||typeof _e!="function")return ke;const Le=Ae?"unshift":"push";return De.split(" ").forEach(Fe=>{ke.eventsListeners[Fe]||(ke.eventsListeners[Fe]=[]),ke.eventsListeners[Fe][Le](_e)}),ke},once(De,_e,Ae){const ke=this;if(!ke.eventsListeners||ke.destroyed||typeof _e!="function")return ke;function Le(){ke.off(De,Le),Le.__emitterProxy&&delete Le.__emitterProxy;for(var Fe=arguments.length,Ve=new Array(Fe),Ie=0;Ie<Fe;Ie++)Ve[Ie]=arguments[Ie];_e.apply(ke,Ve)}return Le.__emitterProxy=_e,ke.on(De,Le,Ae)},onAny(De,_e){const Ae=this;if(!Ae.eventsListeners||Ae.destroyed||typeof De!="function")return Ae;
vendor: 5,872 bytes, line 44
44const ke=_e?"unshift":"push";return Ae.eventsAnyListeners.indexOf(De)<0&&Ae.eventsAnyListeners[ke](De),Ae},offAny(De){const _e=this;if(!_e.eventsListeners||_e.destroyed||!_e.eventsAnyListeners)return _e;const Ae=_e.eventsAnyListeners.indexOf(De);return Ae>=0&&_e.eventsAnyListeners.splice(Ae,1),_e},off(De,_e){const Ae=this;return!Ae.eventsListeners||Ae.destroyed||!Ae.eventsListeners||De.split(" ").forEach(ke=>{typeof _e>"u"?Ae.eventsListeners[ke]=[]:Ae.eventsListeners[ke]&&Ae.eventsListeners[ke].forEach((Le,Fe)=>{(Le===_e||Le.__emitterProxy&&Le.__emitterProxy===_e)&&Ae.eventsListeners[ke].splice(Fe,1)})}),Ae},emit(){const De=this;if(!De.eventsListeners||De.destroyed||!De.eventsListeners)return De;let _e,Ae,ke;for(var Le=arguments.length,Fe=new Array(Le),Ve=0;Ve<Le;Ve++)Fe[Ve]=arguments[Ve];return typeof Fe[0]=="string"||Array.isArray(Fe[0])?(_e=Fe[0],Ae=Fe.slice(1,Fe.length),ke=De):(_e=Fe[0].events,Ae=Fe[0].data,ke=Fe[0].context||De),Ae.unshift(ke),(Array.isArray(_e)?_e:_e.split(" ")).forEach(je=>{De.eventsAnyListeners&&De.eventsAnyListeners.length&&De.eventsAnyListeners.forEach(Ke=>{Ke.apply(ke,[je,...Ae])}),De.eventsListeners&&De.eventsListeners[je]&&De.eventsListeners[je].forEach(Ke=>{Ke.apply(ke,Ae)})}),De}};function updateSize(){const De=this;let _e,Ae;const ke=De.el;typeof De.params.width<"u"&&De.params.width!==null?_e=De.params.width:_e=ke.clientWidth,typeof De.params.height<"u"&&De.params.height!==null?Ae=De.params.height:Ae=ke.clientHeight,!(_e===0&&De.isHorizontal()||Ae===0&&De.isVertical())&&(_e=_e-parseInt(elementStyle(ke,"padding-left")||0,10)-parseInt(elementStyle(ke,"padding-right")||0,10),Ae=Ae-parseInt(elementStyle(ke,"padding-top")||0,10)-parseInt(elementStyle(ke,"padding-bottom")||0,10),Number.isNaN(_e)&&(_e=0),Number.isNaN(Ae)&&(Ae=0),Object.assign(De,{width:_e,height:Ae,size:De.isHorizontal()?_e:Ae}))}function updateSlides(){const De=this;function _e(cn){return De.isHorizontal()?cn:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[cn]}function Ae(cn,Tn){return parseFloat(cn.getPropertyValue(_e(Tn))||0)}const ke=De.params,{wrapperEl:Le,slidesEl:Fe,size:Ve,rtlTranslate:Ie,wrongRTL:je}=De,Ke=De.virtual&&ke.virtual.enabled,$e=Ke?De.virtual.slides.length:De.slides.length,qe=elementChildren(Fe,`.${De.params.slideClass}, swiper-slide`),ci=Ke?De.virtual.slides.length:qe.length;let gi=[];const Ai=[],oi=[];let ii=ke.slidesOffsetBefore;typeof ii=="function"&&(ii=ke.slidesOffsetBefore.call(De));let hi=ke.slidesOffsetAfter;typeof hi=="function"&&(hi=ke.slidesOffsetAfter.call(De));const Ei=De.snapGrid.length,Li=De.slidesGrid.length;let Di=ke.spaceBetween,zi=-ii,an=0,Je=0;if(typeof Ve>"u")return;typeof Di=="string"&&Di.indexOf("%")>=0?Di=parseFloat(Di.replace("%",""))/100*Ve:typeof Di=="string"&&(Di=parseFloat(Di)),De.virtualSize=-Di,qe.forEach(cn=>{Ie?cn.style.marginLeft="":cn.style.marginRight="",cn.style.marginBottom="",cn.style.marginTop=""}),ke.centeredSlides&&ke.cssMode&&(setCSSProperty(Le,"--swiper-centered-offset-before",""),setCSSProperty(Le,"--swiper-centered-offset-after",""));const fi=ke.grid&&ke.grid.rows>1&&De.grid;fi&&De.grid.initSlides(ci);let Gi;const fn=ke.slidesPerView==="auto"&&ke.breakpoints&&Object.keys(ke.breakpoints).filter(cn=>typeof ke.breakpoints[cn].slidesPerView<"u").length>0;for(let cn=0;cn<ci;cn+=1){Gi=0;let Tn;if(qe[cn]&&(Tn=qe[cn]),fi&&De.grid.updateSlide(cn,Tn,ci,_e),!(qe[cn]&&elementStyle(Tn,"display")==="none")){if(ke.slidesPerView==="auto"){fn&&(qe[cn].style[_e("width")]="");const Sn=getComputedStyle(Tn),Cn=Tn.style.transform,tr=Tn.style.webkitTransform;if(Cn&&(Tn.style.transform="none"),tr&&(Tn.style.webkitTransform="none"),ke.roundLengths)Gi=De.isHorizontal()?elementOuterSize(Tn,"width",!0):elementOuterSize(Tn,"height",!0);else{const xr=Ae(Sn,"width"),er=Ae(Sn,"padding-left"),Hn=Ae(Sn,"padding-right"),Er=Ae(Sn,"margin-left"),os=Ae(Sn,"margin-right"),wi=Sn.getPropertyValue("box-sizing");if(wi&&wi==="border-box")Gi=xr+Er+os;else{const{clientWidth:Zi,offsetWidth:Qi}=Tn;Gi=xr+er+Hn+Er+os+(Qi-Zi)}}Cn&&(Tn.style.transform=Cn),tr&&(Tn.style.webkitTransform=tr),ke.roundLengths&&(Gi=Math.floor(Gi))}else Gi=(Ve-(ke.slidesPerView-1)*Di)/ke.slidesPerView,ke.roundLengths&&(Gi=Math.floor(Gi)),qe[cn]&&(qe[cn].style[_e("width")]=`${Gi}px`);qe[cn]&&(qe[cn].swiperSlideSize=Gi),oi.push(Gi),ke.centeredSlides?(zi=zi+Gi/2+an/2+Di,an===0&&cn!==0&&(zi=zi-Ve/2-Di),cn===0&&(zi=zi-Ve/2-Di),Math.abs(zi)<1/1e3&&(zi=0),ke.roundLengths&&(zi=Math.floor(zi)),Je%ke.slidesPerGroup===0&&gi.push(zi),Ai.push(zi)):(ke.roundLengths&&(zi=Math.floor(zi)),(Je-Math.min(De.params.slidesPerGroupSkip,Je))%De.params.slidesPerGroup===0&&gi.push(zi),Ai.push(zi),zi=zi+Gi+Di),De.virtualSize+=Gi+Di,an=Gi,Je+=1}}if(De.virtualSize=Math.max(De.virtualSize,Ve)+hi,Ie&&je&&(ke.effect==="slide"||ke.effect==="coverflow")&&(Le.style.width=`${De.virtualSize+Di}px`),ke.setWrapperSize&&(Le.style[_e("width")]=`${De.virtualSize+Di}px`),fi&&De.grid.updateWrapperSize(Gi,gi,_e),!ke.centeredSlides){const cn=[];for(let Tn=0;Tn<gi.length;Tn+=1){let Sn=gi[Tn];ke.roundLengths&&(Sn=Math.floor(Sn)),gi[Tn]<=De.virtualSize-Ve&&cn.push(Sn)}gi=cn,Math.floor(De.virtualSize-Ve)-Math.floor(gi[gi.length-1])>1&&gi.push(De.virtualSize-Ve)}if(Ke&&ke.loop){const cn=oi[0]+Di;if(ke.slidesPerGroup>1){const Tn=Math.ceil((De.virtual.slidesBefore+De.virtual.slidesAfter)/ke.slidesPerGroup),Sn=cn*ke.slidesPerGroup;for(let Cn=0;Cn<Tn;Cn+=1)gi.push(gi[gi.length-1]+Sn)}for(let Tn=0;Tn<De.virtual.slidesBefore+De.virtual.slidesAfter;Tn+=1)ke.slidesPerGroup===1&&gi.push(gi[gi.length-1]+cn),Ai.push(Ai[Ai.length-1]+cn),De.virtualSize+=cn}if(gi.length===0&&(gi=[0]),Di!==0){const cn=De.isHorizontal()&&Ie?"marginLeft":_e("marginRight");qe.filter((Tn,Sn)=>
vendor: 8,330 bytes, line 44
44!ke.cssMode||ke.loop?!0:Sn!==qe.length-1).forEach(Tn=>{Tn.style[cn]=`${Di}px`})}if(ke.centeredSlides&&ke.centeredSlidesBounds){let cn=0;oi.forEach(Sn=>{cn+=Sn+(Di||0)}),cn-=Di;const Tn=cn-Ve;gi=gi.map(Sn=>Sn<=0?-ii:Sn>Tn?Tn+hi:Sn)}if(ke.centerInsufficientSlides){let cn=0;if(oi.forEach(Tn=>{cn+=Tn+(Di||0)}),cn-=Di,cn<Ve){const Tn=(Ve-cn)/2;gi.forEach((Sn,Cn)=>{gi[Cn]=Sn-Tn}),Ai.forEach((Sn,Cn)=>{Ai[Cn]=Sn+Tn})}}if(Object.assign(De,{slides:qe,snapGrid:gi,slidesGrid:Ai,slidesSizesGrid:oi}),ke.centeredSlides&&ke.cssMode&&!ke.centeredSlidesBounds){setCSSProperty(Le,"--swiper-centered-offset-before",`${-gi[0]}px`),setCSSProperty(Le,"--swiper-centered-offset-after",`${De.size/2-oi[oi.length-1]/2}px`);const cn=-De.snapGrid[0],Tn=-De.slidesGrid[0];De.snapGrid=De.snapGrid.map(Sn=>Sn+cn),De.slidesGrid=De.slidesGrid.map(Sn=>Sn+Tn)}if(ci!==$e&&De.emit("slidesLengthChange"),gi.length!==Ei&&(De.params.watchOverflow&&De.checkOverflow(),De.emit("snapGridLengthChange")),Ai.length!==Li&&De.emit("slidesGridLengthChange"),ke.watchSlidesProgress&&De.updateSlidesOffset(),!Ke&&!ke.cssMode&&(ke.effect==="slide"||ke.effect==="fade")){const cn=`${ke.containerModifierClass}backface-hidden`,Tn=De.el.classList.contains(cn);ci<=ke.maxBackfaceHiddenSlides?Tn||De.el.classList.add(cn):Tn&&De.el.classList.remove(cn)}}function updateAutoHeight(De){const _e=this,Ae=[],ke=_e.virtual&&_e.params.virtual.enabled;let Le=0,Fe;typeof De=="number"?_e.setTransition(De):De===!0&&_e.setTransition(_e.params.speed);const Ve=Ie=>ke?_e.slides[_e.getSlideIndexByData(Ie)]:_e.slides[Ie];if(_e.params.slidesPerView!=="auto"&&_e.params.slidesPerView>1)if(_e.params.centeredSlides)(_e.visibleSlides||[]).forEach(Ie=>{Ae.push(Ie)});else for(Fe=0;Fe<Math.ceil(_e.params.slidesPerView);Fe+=1){const Ie=_e.activeIndex+Fe;if(Ie>_e.slides.length&&!ke)break;Ae.push(Ve(Ie))}else Ae.push(Ve(_e.activeIndex));for(Fe=0;Fe<Ae.length;Fe+=1)if(typeof Ae[Fe]<"u"){const Ie=Ae[Fe].offsetHeight;Le=Ie>Le?Ie:Le}(Le||Le===0)&&(_e.wrapperEl.style.height=`${Le}px`)}function updateSlidesOffset(){const De=this,_e=De.slides,Ae=De.isElement?De.isHorizontal()?De.wrapperEl.offsetLeft:De.wrapperEl.offsetTop:0;for(let ke=0;ke<_e.length;ke+=1)_e[ke].swiperSlideOffset=(De.isHorizontal()?_e[ke].offsetLeft:_e[ke].offsetTop)-Ae-De.cssOverflowAdjustment()}function updateSlidesProgress(De){De===void 0&&(De=this&&this.translate||0);const _e=this,Ae=_e.params,{slides:ke,rtlTranslate:Le,snapGrid:Fe}=_e;if(ke.length===0)return;typeof ke[0].swiperSlideOffset>"u"&&_e.updateSlidesOffset();let Ve=-De;Le&&(Ve=De),ke.forEach(je=>{je.classList.remove(Ae.slideVisibleClass)}),_e.visibleSlidesIndexes=[],_e.visibleSlides=[];let Ie=Ae.spaceBetween;typeof Ie=="string"&&Ie.indexOf("%")>=0?Ie=parseFloat(Ie.replace("%",""))/100*_e.size:typeof Ie=="string"&&(Ie=parseFloat(Ie));for(let je=0;je<ke.length;je+=1){const Ke=ke[je];let $e=Ke.swiperSlideOffset;Ae.cssMode&&Ae.centeredSlides&&($e-=ke[0].swiperSlideOffset);const qe=(Ve+(Ae.centeredSlides?_e.minTranslate():0)-$e)/(Ke.swiperSlideSize+Ie),ci=(Ve-Fe[0]+(Ae.centeredSlides?_e.minTranslate():0)-$e)/(Ke.swiperSlideSize+Ie),gi=-(Ve-$e),Ai=gi+_e.slidesSizesGrid[je];(gi>=0&&gi<_e.size-1||Ai>1&&Ai<=_e.size||gi<=0&&Ai>=_e.size)&&(_e.visibleSlides.push(Ke),_e.visibleSlidesIndexes.push(je),ke[je].classList.add(Ae.slideVisibleClass)),Ke.progress=Le?-qe:qe,Ke.originalProgress=Le?-ci:ci}}function updateProgress(De){const _e=this;if(typeof De>"u"){const $e=_e.rtlTranslate?-1:1;De=_e&&_e.translate&&_e.translate*$e||0}const Ae=_e.params,ke=_e.maxTranslate()-_e.minTranslate();let{progress:Le,isBeginning:Fe,isEnd:Ve,progressLoop:Ie}=_e;const je=Fe,Ke=Ve;if(ke===0)Le=0,Fe=!0,Ve=!0;else{Le=(De-_e.minTranslate())/ke;const $e=Math.abs(De-_e.minTranslate())<1,qe=Math.abs(De-_e.maxTranslate())<1;Fe=$e||Le<=0,Ve=qe||Le>=1,$e&&(Le=0),qe&&(Le=1)}if(Ae.loop){const $e=_e.getSlideIndexByData(0),qe=_e.getSlideIndexByData(_e.slides.length-1),ci=_e.slidesGrid[$e],gi=_e.slidesGrid[qe],Ai=_e.slidesGrid[_e.slidesGrid.length-1],oi=Math.abs(De);oi>=ci?Ie=(oi-ci)/Ai:Ie=(oi+Ai-gi)/Ai,Ie>1&&(Ie-=1)}Object.assign(_e,{progress:Le,progressLoop:Ie,isBeginning:Fe,isEnd:Ve}),(Ae.watchSlidesProgress||Ae.centeredSlides&&Ae.autoHeight)&&_e.updateSlidesProgress(De),Fe&&!je&&_e.emit("reachBeginning toEdge"),Ve&&!Ke&&_e.emit("reachEnd toEdge"),(je&&!Fe||Ke&&!Ve)&&_e.emit("fromEdge"),_e.emit("progress",Le)}function updateSlidesClasses(){const De=this,{slides:_e,params:Ae,slidesEl:ke,activeIndex:Le}=De,Fe=De.virtual&&Ae.virtual.enabled,Ve=je=>elementChildren(ke,`.${Ae.slideClass}${je}, swiper-slide${je}`)[0];_e.forEach(je=>{je.classList.remove(Ae.slideActiveClass,Ae.slideNextClass,Ae.slidePrevClass)});let Ie;if(Fe)if(Ae.loop){let je=Le-De.virtual.slidesBefore;je<0&&(je=De.virtual.slides.length+je),je>=De.virtual.slides.length&&(je-=De.virtual.slides.length),Ie=Ve(`[data-swiper-slide-index="${je}"]`)}else Ie=Ve(`[data-swiper-slide-index="${Le}"]`);else Ie=_e[Le];if(Ie){Ie.classList.add(Ae.slideActiveClass);let je=elementNextAll(Ie,`.${Ae.slideClass}, swiper-slide`)[0];Ae.loop&&!je&&(je=_e[0]),je&&je.classList.add(Ae.slideNextClass);let Ke=elementPrevAll(Ie,`.${Ae.slideClass}, swiper-slide`)[0];Ae.loop&&!Ke===0&&(Ke=_e[_e.length-1]),Ke&&Ke.classList.add(Ae.slidePrevClass)}De.emitSlidesClasses()}const processLazyPreloader=(De,_e)=>{if(!De||De.destroyed||!De.params)return;const Ae=()=>De.isElement?"swiper-slide":`.${De.params.slideClass}`,ke=_e.closest(Ae());if(ke){let Le=ke.querySelector(`.${De.params.lazyPreloaderClass}`);!Le&&De.isElement&&(ke.shadowRoot?Le=ke.shadowRoot.querySelector(`.${De.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{ke.shadowRoot&&(Le=ke.shadowRoot.querySelector(`.${De.params.lazyPreloaderClass}`),Le&&Le.remove())})),Le&&Le.remove()}},unlazy=(De,_e)=>{if(!De.slides[_e])return;const Ae=De.slides[_e].querySelector('[loading="lazy"]');Ae&&Ae.removeAttribute("loading")},preload=De=>{if(!De||De.destroyed||!De.params)return;let _e=De.params.lazyPreloadPrevNext;const Ae=De.slides.length;if(!Ae||!_e||_e<0)return;_e=Math.min(_e,Ae);const ke=De.params.slidesPerView==="auto"?De.slidesPerViewDynamic():Math.ceil(De.params.slidesPerView),Le=De.activeIndex;if(De.params.grid&&De.params.grid.rows>1){const Ve=Le,Ie=[Ve-_e];Ie.push(...Array.from({length:_e}).map((je,Ke)=>Ve+ke+Ke)),De.slides.forEach((je,Ke)=>{Ie.includes(je.column)&&unlazy(De,Ke)});return}const Fe=Le+ke-1;if(De.params.rewind||De.params.loop)for(let Ve=Le-_e;Ve<=Fe+_e;Ve+=1){const Ie=(Ve%Ae+Ae)%Ae;(Ie<Le||Ie>Fe)&&unlazy(De,Ie)}else for(let Ve=Math.max(Le-_e,0);Ve<=Math.min(Fe+_e,Ae-1);Ve+=1)Ve!==Le&&(Ve>Fe||Ve<Le)&&unlazy(De,Ve)};function getActiveIndexByTranslate(De){const{slidesGrid:_e,params:Ae}=De,ke=De.rtlTranslate?De.translate:-De.translate;let Le;for(let Fe=0;Fe<_e.length;Fe+=1)typeof _e[Fe+1]<"u"?ke>=_e[Fe]&&ke<_e[Fe+1]-(_e[Fe+1]-_e[Fe])/2?Le=Fe:ke>=_e[Fe]&&ke<_e[Fe+1]&&(Le=Fe+1):ke>=_e[Fe]&&(Le=Fe);return Ae.normalizeSlideIndex&&(Le<0||typeof Le>"u")&&(Le=0),Le}function updateActiveIndex(De){const _e=this,Ae=_e.rtlTranslate?_e.translate:-_e.translate,{snapGrid:ke,params:Le,activeIndex:Fe,realIndex:Ve,snapIndex:Ie}=_e;let je=De,Ke;const $e=ci=>{let gi=ci-_e.virtual.slidesBefore;return gi<0&&(gi=_e.virtual.slides.length+gi),gi>=_e.virtual.slides.length&&(gi-=_e.virtual.slides.length),gi};if(typeof je>"u"&&(je=getActiveIndexByTranslate(_e)),ke.indexOf(Ae)>=0)Ke=ke.indexOf(Ae);else{const ci=Math.min(Le.slidesPerGroupSkip,je);Ke=ci+Math.floor((je-ci)/Le.slidesPerGroup)}if(Ke>=ke.length&&(Ke=ke.length-1),je===Fe){Ke!==Ie&&(_e.snapIndex=Ke,_e.emit("snapIndexChange")),_e.params.loop&&_e.virtual&&_e.params.virtual.enabled&&(_e.realIndex=$e(je));return}let qe;_e.virtual&&Le.virtual.enabled&&Le.loop?qe=$e(je):_e.slides[je]?qe=parseInt(_e.slides[je].getAttribute("data-swiper-slide-index")||je,10):qe=je,Object.assign(_e,{previousSnapIndex:Ie,snapIndex:Ke,previousRealIndex:Ve,realIndex:qe,previousIndex:Fe,activeIndex:je}),_e.initialized&&preload(_e),_e.emit("activeIndexChange"),_e.emit("snapIndexChange"),(_e.initialized||_e.params.runCallbacksOnInit)&&(Ve!==qe&&_e.emit("realIndexChange"),_e.emit("slideChange"))}function updateClickedSlide(De,_e){const Ae=this,ke=Ae.params;let Le=De.closest(`.${ke.slideClass}, swiper-slide`);!Le&&Ae.isElement&&_e&&_e.length>1&&_e.includes(De)&&[..._e.slice(_e.indexOf(De)+1,_e.length)].forEac
vendor: 5,025 bytes, line 44
44h(Ie=>{!Le&&Ie.matches&&Ie.matches(`.${ke.slideClass}, swiper-slide`)&&(Le=Ie)});let Fe=!1,Ve;if(Le){for(let Ie=0;Ie<Ae.slides.length;Ie+=1)if(Ae.slides[Ie]===Le){Fe=!0,Ve=Ie;break}}if(Le&&Fe)Ae.clickedSlide=Le,Ae.virtual&&Ae.params.virtual.enabled?Ae.clickedIndex=parseInt(Le.getAttribute("data-swiper-slide-index"),10):Ae.clickedIndex=Ve;else{Ae.clickedSlide=void 0,Ae.clickedIndex=void 0;return}ke.slideToClickedSlide&&Ae.clickedIndex!==void 0&&Ae.clickedIndex!==Ae.activeIndex&&Ae.slideToClickedSlide()}var update$1={updateSize,updateSlides,updateAutoHeight,updateSlidesOffset,updateSlidesProgress,updateProgress,updateSlidesClasses,updateActiveIndex,updateClickedSlide};function getSwiperTranslate(De){De===void 0&&(De=this.isHorizontal()?"x":"y");const _e=this,{params:Ae,rtlTranslate:ke,translate:Le,wrapperEl:Fe}=_e;if(Ae.virtualTranslate)return ke?-Le:Le;if(Ae.cssMode)return Le;let Ve=getTranslate(Fe,De);return Ve+=_e.cssOverflowAdjustment(),ke&&(Ve=-Ve),Ve||0}function setTranslate(De,_e){const Ae=this,{rtlTranslate:ke,params:Le,wrapperEl:Fe,progress:Ve}=Ae;let Ie=0,je=0;const Ke=0;Ae.isHorizontal()?Ie=ke?-De:De:je=De,Le.roundLengths&&(Ie=Math.floor(Ie),je=Math.floor(je)),Ae.previousTranslate=Ae.translate,Ae.translate=Ae.isHorizontal()?Ie:je,Le.cssMode?Fe[Ae.isHorizontal()?"scrollLeft":"scrollTop"]=Ae.isHorizontal()?-Ie:-je:Le.virtualTranslate||(Ae.isHorizontal()?Ie-=Ae.cssOverflowAdjustment():je-=Ae.cssOverflowAdjustment(),Fe.style.transform=`translate3d(${Ie}px, ${je}px, ${Ke}px)`);let $e;const qe=Ae.maxTranslate()-Ae.minTranslate();qe===0?$e=0:$e=(De-Ae.minTranslate())/qe,$e!==Ve&&Ae.updateProgress(De),Ae.emit("setTranslate",Ae.translate,_e)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(De,_e,Ae,ke,Le){De===void 0&&(De=0),_e===void 0&&(_e=this.params.speed),Ae===void 0&&(Ae=!0),ke===void 0&&(ke=!0);const Fe=this,{params:Ve,wrapperEl:Ie}=Fe;if(Fe.animating&&Ve.preventInteractionOnTransition)return!1;const je=Fe.minTranslate(),Ke=Fe.maxTranslate();let $e;if(ke&&De>je?$e=je:ke&&De<Ke?$e=Ke:$e=De,Fe.updateProgress($e),Ve.cssMode){const qe=Fe.isHorizontal();if(_e===0)Ie[qe?"scrollLeft":"scrollTop"]=-$e;else{if(!Fe.support.smoothScroll)return animateCSSModeScroll({swiper:Fe,targetPosition:-$e,side:qe?"left":"top"}),!0;Ie.scrollTo({[qe?"left":"top"]:-$e,behavior:"smooth"})}return!0}return _e===0?(Fe.setTransition(0),Fe.setTranslate($e),Ae&&(Fe.emit("beforeTransitionStart",_e,Le),Fe.emit("transitionEnd"))):(Fe.setTransition(_e),Fe.setTranslate($e),Ae&&(Fe.emit("beforeTransitionStart",_e,Le),Fe.emit("transitionStart")),Fe.animating||(Fe.animating=!0,Fe.onTranslateToWrapperTransitionEnd||(Fe.onTranslateToWrapperTransitionEnd=function(ci){!Fe||Fe.destroyed||ci.target===this&&(Fe.wrapperEl.removeEventListener("transitionend",Fe.onTranslateToWrapperTransitionEnd),Fe.onTranslateToWrapperTransitionEnd=null,delete Fe.onTranslateToWrapperTransitionEnd,Ae&&Fe.emit("transitionEnd"))}),Fe.wrapperEl.addEventListener("transitionend",Fe.onTranslateToWrapperTransitionEnd))),!0}var translate={getTranslate:getSwiperTranslate,setTranslate,minTranslate,maxTranslate,translateTo};function setTransition(De,_e){const Ae=this;Ae.params.cssMode||(Ae.wrapperEl.style.transitionDuration=`${De}ms`,Ae.wrapperEl.style.transitionDelay=De===0?"0ms":""),Ae.emit("setTransition",De,_e)}function transitionEmit(De){let{swiper:_e,runCallbacks:Ae,direction:ke,step:Le}=De;const{activeIndex:Fe,previousIndex:Ve}=_e;let Ie=ke;if(Ie||(Fe>Ve?Ie="next":Fe<Ve?Ie="prev":Ie="reset"),_e.emit(`transition${Le}`),Ae&&Fe!==Ve){if(Ie==="reset"){_e.emit(`slideResetTransition${Le}`);return}_e.emit(`slideChangeTransition${Le}`),Ie==="next"?_e.emit(`slideNextTransition${Le}`):_e.emit(`slidePrevTransition${Le}`)}}function transitionStart(De,_e){De===void 0&&(De=!0);const Ae=this,{params:ke}=Ae;ke.cssMode||(ke.autoHeight&&Ae.updateAutoHeight(),transitionEmit({swiper:Ae,runCallbacks:De,direction:_e,step:"Start"}))}function transitionEnd(De,_e){De===void 0&&(De=!0);const Ae=this,{params:ke}=Ae;Ae.animating=!1,!ke.cssMode&&(Ae.setTransition(0),transitionEmit({swiper:Ae,runCallbacks:De,direction:_e,step:"End"}))}var transition={setTransition,transitionStart,transitionEnd};function slideTo(De,_e,Ae,ke,Le){De===void 0&&(De=0),_e===void 0&&(_e=this.params.speed),Ae===void 0&&(Ae=!0),typeof De=="string"&&(De=parseInt(De,10));const Fe=this;let Ve=De;Ve<0&&(Ve=0);const{params:Ie,snapGrid:je,slidesGrid:Ke,previousIndex:$e,activeIndex:qe,rtlTranslate:ci,wrapperEl:gi,enabled:Ai}=Fe;if(Fe.animating&&Ie.preventInteractionOnTransition||!Ai&&!ke&&!Le)return!1;const oi=Math.min(Fe.params.slidesPerGroupSkip,Ve);let ii=oi+Math.floor((Ve-oi)/Fe.params.slidesPerGroup);ii>=je.length&&(ii=je.length-1);const hi=-je[ii];if(Ie.normalizeSlideIndex)for(let Li=0;Li<Ke.length;Li+=1){const Di=-Math.floor(hi*100),zi=Math.floor(Ke[Li]*100),an=Math.floor(Ke[Li+1]*100);typeof Ke[Li+1]<"u"?Di>=zi&&Di<an-(an-zi)/2?Ve=Li:Di>=zi&&Di<an&&(Ve=Li+1):Di>
44=zi&&(Ve=Li)}if(Fe.initialized&&Ve!==qe&&(!Fe.allowSlideNext&&(ci?hi>Fe.translate&&hi>Fe.minTranslate():hi<Fe.translate&&hi<Fe.minTranslate())||!Fe.allowSlidePrev&&hi>Fe.translate&&hi>Fe.maxTranslate()&&(qe||0)!==Ve))return!1;Ve!==($e||0)&&Ae&&Fe.emit("beforeSlideChangeStart"),Fe.updateProgress(hi);let Ei;if(Ve>qe?Ei="next":Ve<qe?Ei="prev":Ei="reset",ci&&-hi===Fe.translate||!ci&&hi===Fe.translate)return Fe.updateActiveIndex(Ve),Ie.autoHeight&&Fe.updateAutoHeight(),Fe.updateSlidesClasses(),Ie.effect!=="slide"&&Fe.setTranslate(hi),Ei!=="reset"&&(Fe.transitionStart(Ae,Ei),Fe.transitionEnd(Ae,Ei)),!1;if(Ie.cssMode){const Li=Fe.isHorizontal(),Di=ci?hi:-hi;if(_e===0){const zi=Fe.virtual&&Fe.params.virtual.enabled;zi&&(Fe.wrapperEl.style.scrollSnapType="none",Fe._immediateVirtual=!0),zi&&!Fe._cssModeVirtualInitialSet&&Fe.params.initialSlide>0?(Fe._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{gi[Li?"scrollLeft":"scrollTop"]=Di})):gi[Li?"scrollLeft":"scrollTop"]=Di,zi&&requestAnimationFrame(()=>{Fe.wrapperEl.style.scrollSnapType="",Fe._immediateVirtual=!1})}else{if(!Fe.support.smoothScroll)return animateCSSModeScroll({swiper:Fe,targetPosition:Di,side:Li?"left":"top"}),!0;gi.scrollTo({[Li?"left":"top"]:Di,behavior:"smooth"})}return!0}return Fe.setTransition(_e),Fe.setTranslate(hi),Fe.updateActiveIndex(Ve),Fe.updateSlidesClasses(),Fe.emit("beforeTransitionStart",_e,ke),Fe.transitionStart(Ae,Ei),_e===0?Fe.transitionEnd(Ae,Ei):Fe.animating||(Fe.animating=!0,Fe.onSlideToWrapperTransitionEnd||(Fe.onSlideToWrapperTransitionEnd=function(Di){!Fe||Fe.destroyed||Di.target===this&&(Fe.wrapperEl.removeEventListener("transitionend",Fe.onSlideToWrapperTransitionEnd),Fe.onSlideToWrapperTransitionEnd=null,delete Fe.onSlideToWrapperTransitionEnd,Fe.transitionEnd(Ae,Ei))}),Fe.wrapperEl.addEventListener("transitionend",Fe.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(De,_e,Ae,ke){De===void 0&&(De=0),_e===void 0&&(_e=this.params.speed),Ae===void 0&&(Ae=!0),typeof De=="string"&&(De=parseInt(De,10));const Le=this;let Fe=De;return Le.params.loop&&(Le.virtual&&Le.params.virtual.enabled?Fe=Fe+Le.virtual.slidesBefore:Fe=Le.getSlideIndexByData(Fe)),Le.slideTo(Fe,_e,Ae,ke)}function slideNext(De,_e,Ae){De===void 0&&(De=this.params.speed),_e===void 0&&(_e=!0);const ke=this,{enabled:Le,params:Fe,animating:Ve}=ke;if(!Le)return ke;let Ie=Fe.slidesPerGroup;Fe.slidesPerView==="auto"&&Fe.slidesPerGroup===1&&Fe.slidesPerGroupAuto&&(Ie=Math.max(ke.slidesPerViewDynamic("current",!0),1));const je=ke.activeIndex<Fe.slidesPerGroupSkip?1:Ie,Ke=ke.virtual&&Fe.virtual.enabled;if(Fe.loop){if(Ve&&!Ke&&Fe.loopPreventsSliding)return!1;if(ke.loopFix({direction:"next"}),ke._clientLeft=ke.wrapperEl.clientLeft,ke.activeIndex===ke.slides.length-1&&Fe.cssMode)return requestAnimationFrame(()=>{ke.slideTo(ke.activeIndex+je,De,_e,Ae)}),!0}return Fe.rewind&&ke.isEnd?ke.slideTo(0,De,_e,Ae):ke.slideTo(ke.activeIndex+je,De,_e,Ae)}function slidePrev(De,_e,Ae){De===void 0&&(De=this.params.speed),_e===void 0&&(_e=!0);const ke=this,{params:Le,snapGrid:Fe,slidesGrid:Ve,rtlTranslate:Ie,enabled:je,animating:Ke}=ke;if(!je)return ke;const $e=ke.virtual&&Le.virtual.enabled;if(Le.loop){if(Ke&&!$e&&Le.loopPreventsSliding)return!1;ke.loopFix({direction:"prev"}),ke._clientLeft=ke.wrapperEl.clientLeft}const qe=Ie?ke.translate:-ke.translate;function ci(hi){return hi<0?-Math.floor(Math.abs(hi)):Math.floor(hi)}const gi=ci(qe),Ai=Fe.map(hi=>ci(hi));let oi=Fe[Ai.indexOf(gi)-1];if(typeof oi>"u"&&Le.cssMode){let hi;Fe.forEach((Ei,Li)=>{gi>=Ei&&(hi=Li)}),typeof hi<"u"&&(oi=Fe[hi>0?hi-1:hi])}let ii=0;if(typeof oi<"u"&&(ii=Ve.indexOf(oi),ii<0&&(ii=ke.activeIndex-1),Le.slidesPerView==="auto"&&Le.slidesPerGroup===1&&Le.slidesPerGroupAuto&&(ii=ii-ke.slidesPerViewDynamic("previous",!0)+1,ii=Math.max(ii,0))),Le.rewind&&ke.isBeginning){const hi=ke.params.virtual&&ke.params.virtual.enabled&&ke.virtual?ke.virtual.slides.length-1:ke.slides.length-1;return ke.slideTo(hi,De,_e,Ae)}else if(Le.loop&&ke.activeIndex===0&&Le.cssMode)return requestAnimationFrame(()=>{ke.slideTo(ii,De,_e,Ae)}),!0;return ke.slideTo(ii,De,_e,Ae)}
44function slideReset(De,_e,Ae){De===void 0&&(De=this.params.speed),_e===void 0&&(_e=!0);const ke=this;return ke.slideTo(ke.activeIndex,De,_e,Ae)}function slideToClosest(De,_e,Ae,ke){De===void 0&&(De=this.params.speed),_e===void 0&&(_e=!0),ke===void 0&&(ke=.5);const Le=this;let Fe=Le.activeIndex;const Ve=Math.min(Le.params.slidesPerGroupSkip,Fe),Ie=Ve+Math.floor((Fe-Ve)/Le.params.slidesPerGroup),je=Le.rtlTranslate?Le.translate:-Le.translate;if(je>=Le.snapGrid[Ie]){const Ke=Le.snapGrid[Ie],$e=Le.snapGrid[Ie+1];je-Ke>($e-Ke)*ke&&(Fe+=Le.params.slidesPerGroup)}else{const Ke=Le.snapGrid[Ie-1],$e=Le.snapGrid[Ie];je-Ke<=($e-Ke)*ke&&(Fe-=Le.params.slidesPerGroup)}return Fe=Math.max(Fe,0),Fe=Math.min(Fe,Le.slidesGrid.length-1),Le.slideTo(Fe,De,_e,Ae)}function slideToClickedSlide(){const De=this,{params:_e,slidesEl:Ae}=De,ke=_e.slidesPerView==="auto"?De.slidesPerViewDynamic():_e.slidesPerView;let Le=De.clickedIndex,Fe;const Ve=De.isElement?"swiper-slide":`.${_e.slideClass}`;if(_e.loop){if(De.animating)return;Fe=parseInt(De.clickedSlide.getAttribute("data-swiper-slide-index"),10),_e.centeredSlides?Le<De.loopedSlides-ke/2||Le>De.slides.length-De.loopedSlides+ke/2?(De.loopFix(),Le=De.getSlideIndex(elementChildren(Ae,`${Ve}[data-swiper-slide-index="${Fe}"]`)[0]),nextTick(()=>{De.slideTo(Le)})):De.slideTo(Le):Le>De.slides.length-ke?(De.loopFix(),Le=De.getSlideIndex(elementChildren(Ae,`${Ve}[data-swiper-slide-index="${Fe}"]`)[0]),nextTick(()=>{De.slideTo(Le)})):De.slideTo(Le)}else De.slideTo(Le)}var slide={slideTo,slideToLoop,slideNext,slidePrev,slideReset,slideToClosest,slideToClickedSlide};function loopCreate(De){const _e=this,{params:Ae,slidesEl:ke}=_e;if(!Ae.loop||_e.virtual&&_e.params.virtual.enabled)return;elementChildren(ke,`.${Ae.slideClass}, swiper-slide`).forEach((Fe,Ve)=>{Fe.setAttribute("data-swiper-slide-index",Ve)}),_e.loopFix({slideRealIndex:De,direction:Ae.centeredSlides?void 0:"next"})}function loopFix(De){let{slideRealIndex:_e,slideTo:Ae=!0,direction:ke,setTranslate:Le,activeSlideIndex:Fe,byController:Ve,byMousewheel:Ie}=De===void 0?{}:De;const je=this;if(!je.params.loop)return;je.emit("beforeLoopFix");const{slides:Ke,allowSlidePrev:$e,allowSlideNext:qe,slidesEl:ci,params:gi}=je;if(je.allowSlidePrev=!0,je.allowSlideNext=!0,je.virtual&&gi.virtual.enabled){Ae&&(!gi.centeredSlides&&je.snapIndex===0?je.slideTo(je.virtual.slides.length,0,!1,!0):gi.centeredSlides&&je.snapIndex<gi.slidesPerView?je.slideTo(je.virtual.slides.length+je.snapIndex,0,!1,!0):je.snapIndex===je.snapGrid.length-1&&je.slideTo(je.virtual.slidesBefore,0,!1,!0)),je.allowSlidePrev=$e,je.allowSlideNext=qe,je.emit("loopFix");return}const Ai=gi.slidesPerView==="auto"?je.slidesPerViewDynamic():Math.ceil(parseFloat(gi.slidesPerView,10));let oi=gi.loopedSlides||Ai;oi%gi.slidesPerGroup!==0&&(oi+=gi.slidesPerGroup-oi%gi.slidesPerGroup),je.loopedSlides=oi;const ii=[],hi=[];let Ei=je.activeIndex;typeof Fe>"u"?Fe=je.getSlideIndex(je.slides.filter(Je=>Je.classList.contains(gi.slideActiveClass))[0]):Ei=Fe;const Li=ke==="next"||!ke,Di=ke==="prev"||!ke;let zi=0,an=0;if(Fe<oi){zi=Math.max(oi-Fe,gi.slidesPerGroup);for(let Je=0;Je<oi-Fe;Je+=1){const fi=Je-Math.floor(Je/Ke.length)*Ke.length;ii.push(Ke.length-fi-1)}}else if(Fe>je.slides.length-oi*2){an=Math.max(Fe-(je.slides.length-oi*2),gi.slidesPerGroup);for(let Je=0;Je<an;Je+=1){const fi=Je-Math.floor(Je/Ke.length)*Ke.length;hi.push(fi)}}if(Di&&ii.forEach(Je=>{je.slides[Je].swiperLoopMoveDOM=!0,ci.prepend(je.slides[Je]),je.slides[Je].swiperLoopMoveDOM=!1}),Li&&hi.forEach(Je=>{je.slides[Je].swiperLoopMoveDOM=!0,ci.append(je.slides[Je]),je.slides[Je].swiperLoopMoveDOM=!1}),je.recalcSlides(),gi.slidesPerView==="auto"&&je.updateSlides(),gi.watchSlidesProgress&&je.updateSlidesOffset(),Ae){if(ii.length>0&&Di)if(typeof _e>"u"){const Je=je.slidesGrid[Ei],Gi=je.slidesGrid[Ei+zi]-Je;Ie?je.setTranslate(je.translate-Gi):(je.slideTo(Ei+zi,0,!1,!0),Le&&(je.touches[je.isHorizontal()?"startX":"startY"]+=Gi,je.touchEventsData.currentTranslate=je.translate))}else Le&&(je.slideToLoop(_e,0,!1,!0),je.touchEventsData.currentTranslate=je.translate);else if(hi.length>0&&Li)if(typeof _e>"u"){const Je=je.slidesGrid[Ei],Gi=je.slidesGrid[Ei-an]-Je;Ie?je.setTranslate(je.translate-Gi):(je.slideTo(Ei-an,0,!1,!0),Le&&(je.touches[je.isHorizontal()?"startX":"startY"]+=Gi,je.touchEventsData.currentTranslate=je.translate))}else je.slideToLoop(_e,0,!1,!0)}if(je.allowSlidePrev=$e,je.allowSlideNext=qe,je.controller&&je.controller.control&&!Ve){const Je={slideRealIndex:_e,direction:ke,setTranslate:Le,activeSlideIndex:Fe,byController:!0};Array.isArray(je.controller.control)?je.controller.control.forEach(fi=>{!fi.destroyed&&fi.params.loop&&fi.loopFix({...Je,slideTo:fi.params.slidesPerView===gi.slidesPerView?Ae:!1})}):je.controller.control instanceof je.constructor&&je.controller.control.params.loop&&je.controller.control.loopFix({...Je,slideTo:je.controller.control.params.slidesPerView===gi.slidesPerView?Ae:!1})}je.emit("loopFix")}function loopDestroy(){const De=this,{params:_e,slidesEl:Ae}=De;if(!_e.loop||De.virtual&&De.params.virtual.enabled)return;De.recalcSlides();const ke=[];
44De.slides.forEach(Le=>{const Fe=typeof Le.swiperSlideIndex>"u"?Le.getAttribute("data-swiper-slide-index")*1:Le.swiperSlideIndex;ke[Fe]=Le}),De.slides.forEach(Le=>{Le.removeAttribute("data-swiper-slide-index")}),ke.forEach(Le=>{Ae.append(Le)}),De.recalcSlides(),De.slideTo(De.realIndex,0)}var loop={loopCreate,loopFix,loopDestroy};function setGrabCursor(De){const _e=this;if(!_e.params.simulateTouch||_e.params.watchOverflow&&_e.isLocked||_e.params.cssMode)return;const Ae=_e.params.touchEventsTarget==="container"?_e.el:_e.wrapperEl;_e.isElement&&(_e.__preventObserver__=!0),Ae.style.cursor="move",Ae.style.cursor=De?"grabbing":"grab",_e.isElement&&requestAnimationFrame(()=>{_e.__preventObserver__=!1})}function unsetGrabCursor(){const De=this;De.params.watchOverflow&&De.isLocked||De.params.cssMode||(De.isElement&&(De.__preventObserver__=!0),De[De.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",De.isElement&&requestAnimationFrame(()=>{De.__preventObserver__=!1}))}var grabCursor={setGrabCursor,unsetGrabCursor};function closestElement(De,_e){_e===void 0&&(_e=this);function Ae(ke){if(!ke||ke===getDocument()||ke===getWindow$1())return null;ke.assignedSlot&&(ke=ke.assignedSlot);const Le=ke.closest(De);return!Le&&!ke.getRootNode?null:Le||Ae(ke.getRootNode().host)}return Ae(_e)}function onTouchStart(De){const _e=this,Ae=getDocument(),ke=getWindow$1(),Le=_e.touchEventsData;Le.evCache.push(De);const{params:Fe,touches:Ve,enabled:Ie}=_e;if(!Ie||!Fe.simulateTouch&&De.pointerType==="mouse"||_e.animating&&Fe.preventInteractionOnTransition)return;!_e.animating&&Fe.cssMode&&Fe.loop&&_e.loopFix();let je=De;je.originalEvent&&(je=je.originalEvent);let Ke=je.target;if(Fe.touchEventsTarget==="wrapper"&&!_e.wrapperEl.contains(Ke)||"which"in je&&je.which===3||"button"in je&&je.button>0||Le.isTouched&&Le.isMoved)return;const $e=!!Fe.noSwipingClass&&Fe.noSwipingClass!=="",qe=De.composedPath?De.composedPath():De.path;$e&&je.target&&je.target.shadowRoot&&qe&&(Ke=qe[0]);const ci=Fe.noSwipingSelector?Fe.noSwipingSelector:`.${Fe.noSwipingClass}`,gi=!!(je.target&&je.target.shadowRoot);if(Fe.noSwiping&&(gi?closestElement(ci,Ke):Ke.closest(ci))){_e.allowClick=!0;return}if(Fe.swipeHandler&&!Ke.closest(Fe.swipeHandler))return;Ve.currentX=je.pageX,Ve.currentY=je.pageY;const Ai=Ve.currentX,oi=Ve.currentY,ii=Fe.edgeSwipeDetection||Fe.iOSEdgeSwipeDetection,hi=Fe.edgeSwipeThreshold||Fe.iOSEdgeSwipeThreshold;if(ii&&(Ai<=hi||Ai>=ke.innerWidth-hi))if(ii==="prevent")De.preventDefault();else return;Object.assign(Le,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),Ve.startX=Ai,Ve.startY=oi,Le.touchStartTime=now(),_e.allowClick=!0,_e.updateSize(),_e.swipeDirection=void 0,Fe.threshold>0&&(Le.allowThresholdMove=!1);let Ei=!0;Ke.matches(Le.focusableElements)&&(Ei=!1,Ke.nodeName==="SELECT"&&(Le.isTouched=!1)),Ae.activeElement&&Ae.activeElement.matches(Le.focusableElements)&&Ae.activeElement!==Ke&&Ae.activeElement.blur();const Li=Ei&&_e.allowTouchMove&&Fe.touchStartPreventDefault;(Fe.touchStartForcePreventDefault||Li)&&!Ke.isContentEditable&&je.preventDefault(),Fe.freeMode&&Fe.freeMode.enabled&&_e.freeMode&&_e.animating&&!Fe.cssMode&&_e.freeMode.onTouchStart(),_e.emit("touchStart",je)}function onTouchMove(De){const _e=getDocument(),Ae=this,ke=Ae.touchEventsData,{params:Le,touches:Fe,rtlTranslate:Ve,enabled:Ie}=Ae;if(!Ie||!Le.simulateTouch&&De.pointerType==="mouse")return;let je=De;if(je.originalEvent&&(je=je.originalEvent),!ke.isTouched){ke.startMoving&&ke.isScrolling&&Ae.emit("touchMoveOpposite",je);return}const Ke=ke.evCache.findIndex(Je=>Je.pointerId===je.pointerId);Ke>=0&&(ke.evCache[Ke]=je);const $e=ke.evCache.length>1?ke.evCache[0]:je,qe=$e.pageX,ci=$e.pageY;if(je.preventedByNestedSwiper){Fe.startX=qe,Fe.startY=ci;return}if(!Ae.allowTouchMove){je.target.matches(ke.focusableElements)||(Ae.allowClick=!1),ke.isTouched&&(Object.assign(Fe,{startX:qe,startY:ci,prevX:Ae.touches.currentX,prevY:Ae.touches.currentY,currentX:qe,currentY:ci}),ke.touchStartTime=now());return}if(Le.touchReleaseOnEdges&&!Le.loop){if(Ae.isVertical()){if(ci<Fe.startY&&Ae.translate<=Ae.maxTranslate()||ci>Fe.startY&&Ae.translate>=Ae.minTranslate()){ke.isTouched=!1,ke.isMoved=!1;return}}else if(qe<Fe.startX&&Ae.translate<=Ae.maxTranslate()||qe>Fe.startX&&Ae.translate>=Ae.minTranslate())return}if(_e.activeElement&&je.target===_e.activeElement&&je.target.matches(ke.focusableElements)){ke.isMoved=!0,Ae.allowClick=!1;return}if(ke.allowTouchCallbacks&&Ae.emit("touchMove",je),je.targetTouches&&je.targetTouches.length>1)return;Fe.currentX=qe,Fe.currentY=ci;const gi=Fe.currentX-Fe.startX,Ai=Fe.currentY-Fe.startY;if(Ae.params.threshold&&Math.sqrt(gi**2+Ai**2)<Ae.params.threshold)return;if(typeof ke.isScrolling>"u"){let Je;
vendor: 16,305 bytes, line 44
44Ae.isHorizontal()&&Fe.currentY===Fe.startY||Ae.isVertical()&&Fe.currentX===Fe.startX?ke.isScrolling=!1:gi*gi+Ai*Ai>=25&&(Je=Math.atan2(Math.abs(Ai),Math.abs(gi))*180/Math.PI,ke.isScrolling=Ae.isHorizontal()?Je>Le.touchAngle:90-Je>Le.touchAngle)}if(ke.isScrolling&&Ae.emit("touchMoveOpposite",je),typeof ke.startMoving>"u"&&(Fe.currentX!==Fe.startX||Fe.currentY!==Fe.startY)&&(ke.startMoving=!0),ke.isScrolling||Ae.zoom&&Ae.params.zoom&&Ae.params.zoom.enabled&&ke.evCache.length>1){ke.isTouched=!1;return}if(!ke.startMoving)return;Ae.allowClick=!1,!Le.cssMode&&je.cancelable&&je.preventDefault(),Le.touchMoveStopPropagation&&!Le.nested&&je.stopPropagation();let oi=Ae.isHorizontal()?gi:Ai,ii=Ae.isHorizontal()?Fe.currentX-Fe.previousX:Fe.currentY-Fe.previousY;Le.oneWayMovement&&(oi=Math.abs(oi)*(Ve?1:-1),ii=Math.abs(ii)*(Ve?1:-1)),Fe.diff=oi,oi*=Le.touchRatio,Ve&&(oi=-oi,ii=-ii);const hi=Ae.touchesDirection;Ae.swipeDirection=oi>0?"prev":"next",Ae.touchesDirection=ii>0?"prev":"next";const Ei=Ae.params.loop&&!Le.cssMode,Li=Ae.swipeDirection==="next"&&Ae.allowSlideNext||Ae.swipeDirection==="prev"&&Ae.allowSlidePrev;if(!ke.isMoved){if(Ei&&Li&&Ae.loopFix({direction:Ae.swipeDirection}),ke.startTranslate=Ae.getTranslate(),Ae.setTransition(0),Ae.animating){const Je=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});Ae.wrapperEl.dispatchEvent(Je)}ke.allowMomentumBounce=!1,Le.grabCursor&&(Ae.allowSlideNext===!0||Ae.allowSlidePrev===!0)&&Ae.setGrabCursor(!0),Ae.emit("sliderFirstMove",je)}let Di;ke.isMoved&&hi!==Ae.touchesDirection&&Ei&&Li&&Math.abs(oi)>=1&&(Ae.loopFix({direction:Ae.swipeDirection,setTranslate:!0}),Di=!0),Ae.emit("sliderMove",je),ke.isMoved=!0,ke.currentTranslate=oi+ke.startTranslate;let zi=!0,an=Le.resistanceRatio;if(Le.touchReleaseOnEdges&&(an=0),oi>0?(Ei&&Li&&!Di&&ke.currentTranslate>(Le.centeredSlides?Ae.minTranslate()-Ae.size/2:Ae.minTranslate())&&Ae.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),ke.currentTranslate>Ae.minTranslate()&&(zi=!1,Le.resistance&&(ke.currentTranslate=Ae.minTranslate()-1+(-Ae.minTranslate()+ke.startTranslate+oi)**an))):oi<0&&(Ei&&Li&&!Di&&ke.currentTranslate<(Le.centeredSlides?Ae.maxTranslate()+Ae.size/2:Ae.maxTranslate())&&Ae.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:Ae.slides.length-(Le.slidesPerView==="auto"?Ae.slidesPerViewDynamic():Math.ceil(parseFloat(Le.slidesPerView,10)))}),ke.currentTranslate<Ae.maxTranslate()&&(zi=!1,Le.resistance&&(ke.currentTranslate=Ae.maxTranslate()+1-(Ae.maxTranslate()-ke.startTranslate-oi)**an))),zi&&(je.preventedByNestedSwiper=!0),!Ae.allowSlideNext&&Ae.swipeDirection==="next"&&ke.currentTranslate<ke.startTranslate&&(ke.currentTranslate=ke.startTranslate),!Ae.allowSlidePrev&&Ae.swipeDirection==="prev"&&ke.currentTranslate>ke.startTranslate&&(ke.currentTranslate=ke.startTranslate),!Ae.allowSlidePrev&&!Ae.allowSlideNext&&(ke.currentTranslate=ke.startTranslate),Le.threshold>0)if(Math.abs(oi)>Le.threshold||ke.allowThresholdMove){if(!ke.allowThresholdMove){ke.allowThresholdMove=!0,Fe.startX=Fe.currentX,Fe.startY=Fe.currentY,ke.currentTranslate=ke.startTranslate,Fe.diff=Ae.isHorizontal()?Fe.currentX-Fe.startX:Fe.currentY-Fe.startY;return}}else{ke.currentTranslate=ke.startTranslate;return}!Le.followFinger||Le.cssMode||((Le.freeMode&&Le.freeMode.enabled&&Ae.freeMode||Le.watchSlidesProgress)&&(Ae.updateActiveIndex(),Ae.updateSlidesClasses()),Le.freeMode&&Le.freeMode.enabled&&Ae.freeMode&&Ae.freeMode.onTouchMove(),Ae.updateProgress(ke.currentTranslate),Ae.setTranslate(ke.currentTranslate))}function onTouchEnd(De){const _e=this,Ae=_e.touchEventsData,ke=Ae.evCache.findIndex(Li=>Li.pointerId===De.pointerId);if(ke>=0&&Ae.evCache.splice(ke,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(De.type)&&!(["pointercancel","contextmenu"].includes(De.type)&&(_e.browser.isSafari||_e.browser.isWebView)))return;const{params:Le,touches:Fe,rtlTranslate:Ve,slidesGrid:Ie,enabled:je}=_e;if(!je||!Le.simulateTouch&&De.pointerType==="mouse")return;let Ke=De;if(Ke.originalEvent&&(Ke=Ke.originalEvent),Ae.allowTouchCallbacks&&_e.emit("touchEnd",Ke),Ae.allowTouchCallbacks=!1,!Ae.isTouched){Ae.isMoved&&Le.grabCursor&&_e.setGrabCursor(!1),Ae.isMoved=!1,Ae.startMoving=!1;return}Le.grabCursor&&Ae.isMoved&&Ae.isTouched&&(_e.allowSlideNext===!0||_e.allowSlidePrev===!0)&&_e.setGrabCursor(!1);const $e=now(),qe=$e-Ae.touchStartTime;if(_e.allowClick){const Li=Ke.path||Ke.composedPath&&Ke.composedPath();_e.updateClickedSlide(Li&&Li[0]||Ke.target,Li),_e.emit("tap click",Ke),qe<300&&$e-Ae.lastClickTime<300&&_e.emit("doubleTap doubleClick",Ke)}if(Ae.lastClickTime=now(),nextTick(()=>{_e.destroyed||(_e.allowClick=!0)}),!Ae.isTouched||!Ae.isMoved||!_e.swipeDirection||Fe.diff===0||Ae.currentTranslate===Ae.startTranslate){Ae.isTouched=!1,Ae.isMoved=!1,Ae.startMoving=!1;return}Ae.isTouched=!1,Ae.isMoved=!1,Ae.startMoving=!1;let ci;if(Le.followFinger?ci=Ve?_e.translate:-_e.translate:ci=-Ae.currentTranslate,Le.cssMode)return;if(Le.freeMode&&Le.freeMode.enabled){_e.freeMode.onTouchEnd({currentPos:ci});return}let gi=0,Ai=_e.slidesSizesGrid[0];for(let Li=0;Li<Ie.length;Li+=Li<Le.slidesPerGroupSkip?1:Le.slidesPerGroup){const Di=Li<Le.slidesPerGroupSkip-1?1:Le.slidesPerGroup;typeof Ie[Li+Di]<"u"?ci>=Ie[Li]&&ci<Ie[Li+Di]&&(gi=Li,Ai=Ie[Li+Di]-Ie[Li]):ci>=Ie[Li]&&(gi=Li,Ai=Ie[Ie.length-1]-Ie[Ie.length-2])}let oi=null,ii=null;Le.rewind&&(_e.isBeginning?ii=Le.virtual&&Le.virtual.enabled&&_e.virtual?_e.virtual.slides.length-1:_e.slides.length-1:_e.isEnd&&(oi=0));const hi=(ci-Ie[gi])/Ai,Ei=gi<Le.slidesPerGroupSkip-1?1:Le.slidesPerGroup;if(qe>Le.longSwipesMs){if(!Le.longSwipes){_e.slideTo(_e.activeIndex);return}_e.swipeDirection==="next"&&(hi>=Le.longSwipesRatio?_e.slideTo(Le.rewind&&_e.isEnd?oi:gi+Ei):_e.slideTo(gi)),_e.swipeDirection==="prev"&&(hi>1-Le.longSwipesRatio?_e.slideTo(gi+Ei):ii!==null&&hi<0&&Math.abs(hi)>Le.longSwipesRatio?_e.slideTo(ii):_e.slideTo(gi))}else{if(!Le.shortSwipes){_e.slideTo(_e.activeIndex);return}_e.navigation&&(Ke.target===_e.navigation.nextEl||Ke.target===_e.navigation.prevEl)?Ke.target===_e.navigation.nextEl?_e.slideTo(gi+Ei):_e.slideTo(gi):(_e.swipeDirection==="next"&&_e.slideTo(oi!==null?oi:gi+Ei),_e.swipeDirection==="prev"&&_e.slideTo(ii!==null?ii:gi))}}function onResize(){const De=this,{params:_e,el:Ae}=De;if(Ae&&Ae.offsetWidth===0)return;_e.breakpoints&&De.setBreakpoint();const{allowSlideNext:ke,allowSlidePrev:Le,snapGrid:Fe}=De,Ve=De.virtual&&De.params.virtual.enabled;De.allowSlideNext=!0,De.allowSlidePrev=!0,De.updateSize(),De.updateSlides(),De.updateSlidesClasses();const Ie=Ve&&_e.loop;(_e.slidesPerView==="auto"||_e.slidesPerView>1)&&De.isEnd&&!De.isBeginning&&!De.params.centeredSlides&&!Ie?De.slideTo(De.slides.length-1,0,!1,!0):De.params.loop&&!Ve?De.slideToLoop(De.realIndex,0,!1,!0):De.slideTo(De.activeIndex,0,!1,!0),De.autoplay&&De.autoplay.running&&De.autoplay.paused&&(clearTimeout(De.autoplay.resizeTimeout),De.autoplay.resizeTimeout=setTimeout(()=>{De.autoplay&&De.autoplay.running&&De.autoplay.paused&&De.autoplay.resume()},500)),De.allowSlidePrev=Le,De.allowSlideNext=ke,De.params.watchOverflow&&Fe!==De.snapGrid&&De.checkOverflow()}function onClick(De){const _e=this;_e.enabled&&(_e.allowClick||(_e.params.preventClicks&&De.preventDefault(),_e.params.preventClicksPropagation&&_e.animating&&(De.stopPropagation(),De.stopImmediatePropagation())))}function onScroll(){const De=this,{wrapperEl:_e,rtlTranslate:Ae,enabled:ke}=De;if(!ke)return;De.previousTranslate=De.translate,De.isHorizontal()?De.translate=-_e.scrollLeft:De.translate=-_e.scrollTop,De.translate===0&&(De.translate=0),De.updateActiveIndex(),De.updateSlidesClasses();let Le;const Fe=De.maxTranslate()-De.minTranslate();Fe===0?Le=0:Le=(De.translate-De.minTranslate())/Fe,Le!==De.progress&&De.updateProgress(Ae?-De.translate:De.translate),De.emit("setTranslate",De.translate,!1)}function onLoad(De){const _e=this;processLazyPreloader(_e,De.target),!(_e.params.cssMode||_e.params.slidesPerView!=="auto"&&!_e.params.autoHeight)&&_e.update()}let dummyEventAttached=!1;function dummyEventListener(){}const events=(De,_e)=>{const Ae=getDocument(),{params:ke,el:Le,wrapperEl:Fe,device:Ve}=De,Ie=!!ke.nested,je=_e==="on"?"addEventListener":"removeEventListener",Ke=_e;Le[je]("pointerdown",De.onTouchStart,{passive:!1}),Ae[je]("pointermove",De.onTouchMove,{passive:!1,capture:Ie}),Ae[je]("pointerup",De.onTouchEnd,{passive:!0}),Ae[je]("pointercancel",De.onTouchEnd,{passive:!0}),Ae[je]("pointerout",De.onTouchEnd,{passive:!0}),Ae[je]("pointerleave",De.onTouchEnd,{passive:!0}),Ae[je]("contextmenu",De.onTouchEnd,{passive:!0}),(ke.preventClicks||ke.preventClicksPropagation)&&Le[je]("click",De.onClick,!0),ke.cssMode&&Fe[je]("scroll",De.onScroll),ke.updateOnWindowResize?De[Ke](Ve.ios||Ve.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):De[Ke]("observerUpdate",onResize,!0),Le[je]("load",De.onLoad,{capture:!0})};function attachEvents(){const De=this,_e=getDocument(),{params:Ae}=De;De.onTouchStart=onTouchStart.bind(De),De.onTouchMove=onTouchMove.bind(De),De.onTouchEnd=onTouchEnd.bind(De),Ae.cssMode&&(De.onScroll=onScroll.bind(De)),De.onClick=onClick.bind(De),De.onLoad=onLoad.bind(De),dummyEventAttached||(_e.addEventListener("touchstart",dummyEventListener),dummyEventAttached=!0),events(De,"on")}function detachEvents(){events(this,"off")}var events$1={attachEvents,detachEvents};const isGridEnabled=(De,_e)=>De.grid&&_e.grid&&_e.grid.rows>1;function setBreakpoint(){const De=this,{realIndex:_e,initialized:Ae,params:ke,el:Le}=De,Fe=ke.breakpoints;if(!Fe||Fe&&Object.keys(Fe).length===0)return;const Ve=De.getBreakpoint(Fe,De.params.breakpointsBase,De.el);if(!Ve||De.currentBreakpoint===Ve)return;const je=(Ve in Fe?Fe[Ve]:void 0)||De.originalParams,Ke=isGridEnabled(De,ke),$e=isGridEnabled(De,je),qe=ke.enabled;Ke&&!$e?(Le.classList.remove(`${ke.containerModifierClass}grid`,`${ke.containerModifierClass}grid-column`),De.emitContainerClasses()):!Ke&&$e&&(Le.classList.add(`${ke.containerModifierClass}grid`),(je.grid.fill&&je.grid.fill==="column"||!je.grid.fill&&ke.grid.fill==="column")&&Le.classList.add(`${ke.containerModifierClass}grid-column`),De.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(hi=>{if(typeof je[hi]>"u")return;const Ei=ke[hi]&&ke[hi].enabled,Li=je[hi]&&je[hi].enabled;Ei&&!Li&&De[hi].disable(),!Ei&&Li&&De[hi].enable()});const ci=je.direction&&je.direction!==ke.direction,gi=ke.loop&&(je.slidesPerView!==ke.slidesPerView||ci),Ai=ke.loop;ci&&Ae&&De.changeDirection(),extend(De.params,je);const oi=De.params.enabled,ii=De.params.loop;Object.assign(De,{allowTouchMove:De.params.allowTouchMove,allowSlideNext:De.params.allowSlideNext,allowSlidePrev:De.params.allowSlidePrev}),qe&&!oi?De.disable():!qe&&oi&&De.enable(),De.currentBreakpoint=Ve,De.emit("_beforeBreakpoint",je),Ae&&(gi?(De.loopDestroy(),De.loopCreate(_e),De.updateSlides()):!Ai&&ii?(De.loopCreate(_e),De.updateSlides()):Ai&&!ii&&De.loopDestroy()),De.emit("breakpoint",je)}function getBreakpoint(De,_e,Ae){if(_e===void 0&&(_e="window"),!De||_e==="container"&&!Ae)return;let ke=!1;const Le=getWindow$1(),Fe=_e==="window"?Le.innerHeight:Ae.clientHeight,Ve=Object.keys(De).map(Ie=>{if(typeof Ie=="string"&&Ie.indexOf("@")===0){const je=parseFloat(Ie.substr(1));return{value:Fe*je,point:Ie}}return{value:Ie,point:Ie}});Ve.sort((Ie,je)=>parseInt(Ie.value,10)-parseInt(je.value,10));for(let Ie=0;Ie<Ve.length;Ie+=1){const{point:je,value:Ke}=Ve[Ie];_e==="window"?Le.matchMedia(`(min-width: ${Ke}px)`).matches&&(ke=je):Ke<=Ae.clientWidth&&(ke=je)}return ke||"max"}var breakpoints={setBreakpoint,getBreakpoint};function prepareClasses(De,_e){const Ae=[];return De.forEach(ke=>{typeof ke=="object"?Object.keys(ke).forEach(Le=>{ke[Le]&&Ae.push(_e+Le)}):typeof ke=="string"&&Ae.push(_e+ke)}),Ae}function addClasses(){const De=this,{classNames:_e,params:Ae,rtl:ke,el:Le,device:Fe}=De,Ve=prepareClasses(["initialized",Ae.direction,{"free-mode":De.params.freeMode&&Ae.freeMode.enabled},{autoheight:Ae.autoHeight},{rtl:ke},{grid:Ae.grid&&Ae.grid.rows>1},{"grid-column":Ae.grid&&Ae.grid.rows>1&&Ae.grid.fill==="column"},{android:Fe.android},{ios:Fe.ios},{"css-mode":Ae.cssMode},{centered:Ae.cssMode&&Ae.centeredSlides},{"watch-progress":Ae.watchSlidesProgress}],Ae.containerModifierClass);_e.push(...Ve),Le.classList.add(..._e),De.emitContainerClasses()}function removeClasses(){const De=this,{el:_e,classNames:Ae}=De;_e.classList.remove(...Ae),De.emitContainerClasses()}var classes={addClasses,removeClasses};function checkOverflow(){const De=this,{isLocked:_e,params:Ae}=De,{slidesOffsetBefore:ke}=Ae;if(ke){const Le=De.slides.length-1,Fe=De.slidesGrid[Le]+De.slidesSizesGrid[Le]+ke*2;De.isLocked=De.size>Fe}else De.isLocked=De.snapGrid.length===1;Ae.allowSlideNext===!0&&(De.allowSlideNext=!De.isLocked),Ae.allowSlidePrev===!0&&(De.allowSlidePrev=!De.isLocked),_e&&_e!==De.isLocked&&(De.isEnd=!1),_e!==De.isLocked&&De.emit(De.isLocked?"lock":"unlock")}var checkOverflow$1={checkOverflow},defaults={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(De,_e){return function(ke){ke===void 0&&(ke={});const Le=Object.keys(ke)[0],Fe=ke[Le];if(typeof Fe!="object"||Fe===null){extend(_e,ke);return}if(De[Le]===!0&&(De[Le]={enabled:!0}),Le==="navigation"&&De[Le]&&De[Le].enabled&&!De[Le].prevEl&&!De[Le].nextEl&&(De[Le].auto=!0),["pagination","scrollbar"].indexOf(Le)>=0&&De[Le]&&De[Le].enabled&&!De[Le].el&&(De[Le].auto=!0),!(Le in De&&"enabled"in Fe)){extend(_e,ke);return}typeof De[Le]=="object"&&!("enabled"in De[Le])&&(De[Le].enabled=!0),De[Le]||(De[Le]={enabled:!1}),extend(_e,ke)}}const prototypes={eventsEmitter,update:update$1,translate,transition,slide,loop,grabCursor,events:events$1,breakpoints,checkOverflow:checkOverflow$1,classes},extendedDefaults={};class Swiper{constructor(){let _e,Ae;for(var ke=arguments.length,Le=new Array(ke),Fe=0;Fe<ke;Fe++)Le[Fe]=arguments[Fe];Le.length===1&&Le[0].constructor&&Object.prototype.toString.call(Le[0]).slice(8,-1)==="Object"?Ae=Le[0]:[_e,Ae]=Le,Ae||(Ae={}),Ae=extend({},Ae),_e&&!Ae.el&&(Ae.el=_e);const Ve=getDocument();if(Ae.el&&typeof Ae.el=="string"&&Ve.querySelectorAll(Ae.el).length>1){const $e=[];return Ve.querySelectorAll(Ae.el).forEach(qe=>{const ci=extend({},Ae,{el:qe});$e.push(new Swiper(ci))}),$e}const Ie=this;Ie.__swiper__=!0,Ie.support=getSupport(),Ie.device=getDevice({userAgent:Ae.userAgent}),Ie.browser=getBrowser(),Ie.eventsListeners={},Ie.eventsAnyListeners=[],Ie.modules=[...Ie.__modules__],Ae.modules&&Array.isArray(Ae.modules)&&Ie.modules.push(...Ae.modules);const je={};
vendor: 2,287 bytes, line 44
44Ie.modules.forEach($e=>{$e({params:Ae,swiper:Ie,extendParams:moduleExtendParams(Ae,je),on:Ie.on.bind(Ie),once:Ie.once.bind(Ie),off:Ie.off.bind(Ie),emit:Ie.emit.bind(Ie)})});const Ke=extend({},defaults,je);return Ie.params=extend({},Ke,extendedDefaults,Ae),Ie.originalParams=extend({},Ie.params),Ie.passedParams=extend({},Ae),Ie.params&&Ie.params.on&&Object.keys(Ie.params.on).forEach($e=>{Ie.on($e,Ie.params.on[$e])}),Ie.params&&Ie.params.onAny&&Ie.onAny(Ie.params.onAny),Object.assign(Ie,{enabled:Ie.params.enabled,el:_e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return Ie.params.direction==="horizontal"},isVertical(){return Ie.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:Ie.params.allowSlideNext,allowSlidePrev:Ie.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:Ie.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:Ie.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),Ie.emit("_swiper"),Ie.params.init&&Ie.init(),Ie}getSlideIndex(_e){const{slidesEl:Ae,params:ke}=this,Le=elementChildren(Ae,`.${ke.slideClass}, swiper-slide`),Fe=elementIndex(Le[0]);return elementIndex(_e)-Fe}getSlideIndexByData(_e){return this.getSlideIndex(this.slides.filter(Ae=>Ae.getAttribute("data-swiper-slide-index")*1===_e)[0])}recalcSlides(){const _e=this,{slidesEl:Ae,params:ke}=_e;_e.slides=elementChildren(Ae,`.${ke.slideClass}, swiper-slide`)}enable(){const _e=this;_e.enabled||(_e.enabled=!0,_e.params.grabCursor&&_e.setGrabCursor(),_e.emit("enable"))}disable(){const _e=this;_e.enabled&&(_e.enabled=!1,_e.params.grabCursor&&_e.unsetGrabCursor(),_e.emit("disable"))}setProgress(_e,Ae){const ke=this;_e=Math.min(Math.max(_e,0),1);const Le=ke.minTranslate(),Ve=(ke.maxTranslate()-Le)*_e+Le;ke.translateTo(Ve,typeof Ae>
vendor: 4,458 bytes, line 44
44"u"?0:Ae),ke.updateActiveIndex(),ke.updateSlidesClasses()}emitContainerClasses(){const _e=this;if(!_e.params._emitClasses||!_e.el)return;const Ae=_e.el.className.split(" ").filter(ke=>ke.indexOf("swiper")===0||ke.indexOf(_e.params.containerModifierClass)===0);_e.emit("_containerClasses",Ae.join(" "))}getSlideClasses(_e){const Ae=this;return Ae.destroyed?"":_e.className.split(" ").filter(ke=>ke.indexOf("swiper-slide")===0||ke.indexOf(Ae.params.slideClass)===0).join(" ")}emitSlidesClasses(){const _e=this;if(!_e.params._emitClasses||!_e.el)return;const Ae=[];_e.slides.forEach(ke=>{const Le=_e.getSlideClasses(ke);Ae.push({slideEl:ke,classNames:Le}),_e.emit("_slideClass",ke,Le)}),_e.emit("_slideClasses",Ae)}slidesPerViewDynamic(_e,Ae){_e===void 0&&(_e="current"),Ae===void 0&&(Ae=!1);const ke=this,{params:Le,slides:Fe,slidesGrid:Ve,slidesSizesGrid:Ie,size:je,activeIndex:Ke}=ke;let $e=1;if(typeof Le.slidesPerView=="number")return Le.slidesPerView;if(Le.centeredSlides){let qe=Fe[Ke]?Fe[Ke].swiperSlideSize:0,ci;for(let gi=Ke+1;gi<Fe.length;gi+=1)Fe[gi]&&!ci&&(qe+=Fe[gi].swiperSlideSize,$e+=1,qe>je&&(ci=!0));for(let gi=Ke-1;gi>=0;gi-=1)Fe[gi]&&!ci&&(qe+=Fe[gi].swiperSlideSize,$e+=1,qe>je&&(ci=!0))}else if(_e==="current")for(let qe=Ke+1;qe<Fe.length;qe+=1)(Ae?Ve[qe]+Ie[qe]-Ve[Ke]<je:Ve[qe]-Ve[Ke]<je)&&($e+=1);else for(let qe=Ke-1;qe>=0;qe-=1)Ve[Ke]-Ve[qe]<je&&($e+=1);return $e}update(){const _e=this;if(!_e||_e.destroyed)return;const{snapGrid:Ae,params:ke}=_e;ke.breakpoints&&_e.setBreakpoint(),[..._e.el.querySelectorAll('[loading="lazy"]')].forEach(Ve=>{Ve.complete&&processLazyPreloader(_e,Ve)}),_e.updateSize(),_e.updateSlides(),_e.updateProgress(),_e.updateSlidesClasses();function Le(){const Ve=_e.rtlTranslate?_e.translate*-1:_e.translate,Ie=Math.min(Math.max(Ve,_e.maxTranslate()),_e.minTranslate());_e.setTranslate(Ie),_e.updateActiveIndex(),_e.updateSlidesClasses()}let Fe;if(ke.freeMode&&ke.freeMode.enabled&&!ke.cssMode)Le(),ke.autoHeight&&_e.updateAutoHeight();else{if((ke.slidesPerView==="auto"||ke.slidesPerView>1)&&_e.isEnd&&!ke.centeredSlides){const Ve=_e.virtual&&ke.virtual.enabled?_e.virtual.slides:_e.slides;Fe=_e.slideTo(Ve.length-1,0,!1,!0)}else Fe=_e.slideTo(_e.activeIndex,0,!1,!0);Fe||Le()}ke.watchOverflow&&Ae!==_e.snapGrid&&_e.checkOverflow(),_e.emit("update")}changeDirection(_e,Ae){Ae===void 0&&(Ae=!0);const ke=this,Le=ke.params.direction;return _e||(_e=Le==="horizontal"?"vertical":"horizontal"),_e===Le||_e!=="horizontal"&&_e!=="vertical"||(ke.el.classList.remove(`${ke.params.containerModifierClass}${Le}`),ke.el.classList.add(`${ke.params.containerModifierClass}${_e}`),ke.emitContainerClasses(),ke.params.direction=_e,ke.slides.forEach(Fe=>{_e==="vertical"?Fe.style.width="":Fe.style.height=""}),ke.emit("changeDirection"),Ae&&ke.update()),ke}changeLanguageDirection(_e){const Ae=this;Ae.rtl&&_e==="rtl"||!Ae.rtl&&_e==="ltr"||(Ae.rtl=_e==="rtl",Ae.rtlTranslate=Ae.params.direction==="horizontal"&&Ae.rtl,Ae.rtl?(Ae.el.classList.add(`${Ae.params.containerModifierClass}rtl`),Ae.el.dir="rtl"):(Ae.el.classList.remove(`${Ae.params.containerModifierClass}rtl`),Ae.el.dir="ltr"),Ae.update())}mount(_e){const Ae=this;if(Ae.mounted)return!0;let ke=_e||Ae.params.el;if(typeof ke=="string"&&(ke=document.querySelector(ke)),!ke)return!1;ke.swiper=Ae,ke.parentNode&&ke.parentNode.host&&ke.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(Ae.isElement=!0);const Le=()=>`.${(Ae.params.wrapperClass||"").trim().split(" ").join(".")}`;let Ve=(()=>ke&&ke.shadowRoot&&ke.shadowRoot.querySelector?ke.shadowRoot.querySelector(Le()):elementChildren(ke,Le())[0])();return!Ve&&Ae.params.createElements&&(Ve=createElement("div",Ae.params.wrapperClass),ke.append(Ve),elementChildren(ke,`.${Ae.params.slideClass}`).forEach(Ie=>{Ve.append(Ie)})),Object.assign(Ae,{el:ke,wrapperEl:Ve,slidesEl:Ae.isElement&&!ke.parentNode.host.slideSlots?ke.parentNode.host:Ve,hostEl:Ae.isElement?ke.parentNode.host:ke,mounted:!0,rtl:ke.dir.toLowerCase()==="rtl"||elementStyle(ke,"direction")==="rtl",rtlTranslate:Ae.params.direction==="horizontal"&&(ke.dir.toLowerCase()==="rtl"||elementStyle(ke,"direction")==="rtl"),wrongRTL:elementStyle(Ve,"display")==="-webkit-box"}),!0}init(_e){const Ae=this;if(Ae.initialized||Ae.mount(_e)===!1)return Ae;Ae.emit("beforeInit"),Ae.params.breakpoints&&Ae.setBreakpoint(),Ae.addClasses(),Ae.updateSize(),Ae.updateSlides(),Ae.params.watchOverflow&&Ae.checkOverflow(),Ae.params.grabCursor&&Ae.enabled&&Ae.setGrabCursor(
vendor: 4,178 bytes, line 44
44),Ae.params.loop&&Ae.virtual&&Ae.params.virtual.enabled?Ae.slideTo(Ae.params.initialSlide+Ae.virtual.slidesBefore,0,Ae.params.runCallbacksOnInit,!1,!0):Ae.slideTo(Ae.params.initialSlide,0,Ae.params.runCallbacksOnInit,!1,!0),Ae.params.loop&&Ae.loopCreate(),Ae.attachEvents();const Le=[...Ae.el.querySelectorAll('[loading="lazy"]')];return Ae.isElement&&Le.push(...Ae.hostEl.querySelectorAll('[loading="lazy"]')),Le.forEach(Fe=>{Fe.complete?processLazyPreloader(Ae,Fe):Fe.addEventListener("load",Ve=>{processLazyPreloader(Ae,Ve.target)})}),preload(Ae),Ae.initialized=!0,preload(Ae),Ae.emit("init"),Ae.emit("afterInit"),Ae}destroy(_e,Ae){_e===void 0&&(_e=!0),Ae===void 0&&(Ae=!0);const ke=this,{params:Le,el:Fe,wrapperEl:Ve,slides:Ie}=ke;return typeof ke.params>"u"||ke.destroyed||(ke.emit("beforeDestroy"),ke.initialized=!1,ke.detachEvents(),Le.loop&&ke.loopDestroy(),Ae&&(ke.removeClasses(),Fe.removeAttribute("style"),Ve.removeAttribute("style"),Ie&&Ie.length&&Ie.forEach(je=>{je.classList.remove(Le.slideVisibleClass,Le.slideActiveClass,Le.slideNextClass,Le.slidePrevClass),je.removeAttribute("style"),je.removeAttribute("data-swiper-slide-index")})),ke.emit("destroy"),Object.keys(ke.eventsListeners).forEach(je=>{ke.off(je)}),_e!==!1&&(ke.el.swiper=null,deleteProps(ke)),ke.destroyed=!0),null}static extendDefaults(_e){extend(extendedDefaults,_e)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults}static installModule(_e){Swiper.prototype.__modules__||(Swiper.prototype.__modules__=[]);const Ae=Swiper.prototype.__modules__;typeof _e=="function"&&Ae.indexOf(_e)<0&&Ae.push(_e)}static use(_e){return Array.isArray(_e)?(_e.forEach(Ae=>Swiper.installModule(Ae)),Swiper):(Swiper.installModule(_e),Swiper)}}Object.keys(prototypes).forEach(De=>{Object.keys(prototypes[De]).forEach(_e=>{Swiper.prototype[_e]=prototypes[De][_e]})});Swiper.use([Resize,Observer]);function Virtual(De){let{swiper:_e,extendParams:Ae,on:ke,emit:Le}=De;Ae({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let Fe;const Ve=getDocument();_e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const Ie=Ve.createElement("div");function je(Ai,oi){const ii=_e.params.virtual;if(ii.cache&&_e.virtual.cache[oi])return _e.virtual.cache[oi];let hi;return ii.renderSlide?(hi=ii.renderSlide.call(_e,Ai,oi),typeof hi=="string"&&(Ie.innerHTML=hi,hi=Ie.children[0])):_e.isElement?hi=createElement("swiper-slide"):hi=createElement("div",_e.params.slideClass),hi.setAttribute("data-swiper-slide-index",oi),ii.renderSlide||(hi.innerHTML=Ai),ii.cache&&(_e.virtual.cache[oi]=hi),hi}function Ke(Ai){const{slidesPerView:oi,slidesPerGroup:ii,centeredSlides:hi,loop:Ei}=_e.params,{addSlidesBefore:Li,addSlidesAfter:Di}=_e.params.virtual,{from:zi,to:an,slides:Je,slidesGrid:fi,offset:Gi}=_e.virtual;_e.params.cssMode||_e.updateActiveIndex();const fn=_e.activeIndex||0;let cn;_e.rtlTranslate?cn="right":cn=_e.isHorizontal()?"left":"top";let Tn,Sn;hi?(Tn=Math.floor(oi/2)+ii+Di,Sn=Math.floor(oi/2)+ii+Li):(Tn=oi+(ii-1)+Di,Sn=(Ei?oi:ii)+Li);let Cn=fn-Sn,tr=fn+Tn;Ei||(Cn=Math.max(Cn,0),tr=Math.min(tr,Je.length-1));let xr=(_e.slidesGrid[Cn]||0)-(_e.slidesGrid[0]||0);Ei&&fn>=Sn?(Cn-=Sn,hi||(xr+=_e.slidesGrid[0])):Ei&&fn<Sn&&(Cn=-Sn,hi&&(xr+=_e.slidesGrid[0])),Object.assign(_e.virtual,{from:Cn,to:tr,offset:xr,slidesGrid:_e.slidesGrid,slidesBefore:Sn,slidesAfter:Tn});function er(){_e.updateSlides(),_e.updateProgress(),_e.updateSlidesClasses(),Le("virtualUpdate")}if(zi===Cn&&an===tr&&!Ai){_e.slidesGrid!==fi&&xr!==Gi&&_e.slides.forEach(Qi=>{Qi.style[cn]=`${xr-Math.abs(_e.cssOverflowAdjustment())}px`}),_e.updateProgress(),Le("virtualUpdate");return}if(_e.params.virtual.renderExternal){_e.params.virtual.renderExternal.call(_e,{offset:xr,from:Cn,to:tr,slides:function(){const Hi=[];for(let vn=Cn;vn<=tr;vn+=1)Hi.push(Je[vn]);return Hi}()}),_e.params.virtual.renderExternalUpdate?er():Le("virtualUpdate");return}const Hn=[],Er=[],os=Qi=>{let Hi=Qi;return Qi<0?Hi=Je.length+Qi:Hi>=Je.length&&(Hi=Hi-Je.length),Hi};if(Ai)_e.slides.filter(Qi=>Qi.matches(`.${_e.params.slideClass}
44, swiper-slide`)).forEach(Qi=>{Qi.remove()});else for(let Qi=zi;Qi<=an;Qi+=1)if(Qi<Cn||Qi>tr){const Hi=os(Qi);_e.slides.filter(vn=>vn.matches(`.${_e.params.slideClass}[data-swiper-slide-index="${Hi}"], swiper-slide[data-swiper-slide-index="${Hi}"]`)).forEach(vn=>{vn.remove()})}const wi=Ei?-Je.length:0,Zi=Ei?Je.length*2:Je.length;for(let Qi=wi;Qi<Zi;Qi+=1)if(Qi>=Cn&&Qi<=tr){const Hi=os(Qi);typeof an>"u"||Ai?Er.push(Hi):(Qi>an&&Er.push(Hi),Qi<zi&&Hn.push(Hi))}if(Er.forEach(Qi=>{_e.slidesEl.append(je(Je[Qi],Qi))}),Ei)for(let Qi=Hn.length-1;Qi>=0;Qi-=1){const Hi=Hn[Qi];_e.slidesEl.prepend(je(Je[Hi],Hi))}else Hn.sort((Qi,Hi)=>Hi-Qi),Hn.forEach(Qi=>{_e.slidesEl.prepend(je(Je[Qi],Qi))});elementChildren(_e.slidesEl,".swiper-slide, swiper-slide").forEach(Qi=>{Qi.style[cn]=`${xr-Math.abs(_e.cssOverflowAdjustment())}px`}),er()}function $e(Ai){if(typeof Ai=="object"&&"length"in Ai)for(let oi=0;oi<Ai.length;oi+=1)Ai[oi]&&_e.virtual.slides.push(Ai[oi]);else _e.virtual.slides.push(Ai);Ke(!0)}function qe(Ai){const oi=_e.activeIndex;let ii=oi+1,hi=1;if(Array.isArray(Ai)){for(let Ei=0;Ei<Ai.length;Ei+=1)Ai[Ei]&&_e.virtual.slides.unshift(Ai[Ei]);ii=oi+Ai.length,hi=Ai.length}else _e.virtual.slides.unshift(Ai);if(_e.params.virtual.cache){const Ei=_e.virtual.cache,Li={};Object.keys(Ei).forEach(Di=>{const zi=Ei[Di],an=zi.getAttribute("data-swiper-slide-index");an&&zi.setAttribute("data-swiper-slide-index",parseInt(an,10)+hi),Li[parseInt(Di,10)+hi]=zi}),_e.virtual.cache=Li}Ke(!0),_e.slideTo(ii,0)}function ci(Ai){if(typeof Ai>"u"||Ai===null)return;let oi=_e.activeIndex;if(Array.isArray(Ai))for(let ii=Ai.length-1;ii>=0;ii-=1)_e.params.virtual.cache&&(delete _e.virtual.cache[Ai[ii]],Object.keys(_e.virtual.cache).forEach(hi=>{hi>Ai&&(_e.virtual.cache[hi-1]=_e.virtual.cache[hi],_e.virtual.cache[hi-1].setAttribute("data-swiper-slide-index",hi-1),delete _e.virtual.cache[hi])})),_e.virtual.slides.splice(Ai[ii],1),Ai[ii]<oi&&(oi-=1),oi=Math.max(oi,0);else _e.params.virtual.cache&&(delete _e.virtual.cache[Ai],Object.keys(_e.virtual.cache).forEach(ii=>{ii>Ai&&(_e.virtual.cache[ii-1]=_e.virtual.cache[ii],_e.virtual.cache[ii-1].setAttribute("data-swiper-slide-index",ii-1),delete _e.virtual.cache[ii])})),_e.virtual.slides.splice(Ai,1),Ai<oi&&(oi-=1),oi=Math.max(oi,0);Ke(!0),_e.slideTo(oi,0)}function gi(){_e.virtual.slides=[],_e.params.virtual.cache&&(_e.virtual.cache={}),Ke(!0),_e.slideTo(0,0)}ke("beforeInit",()=>{if(!_e.params.virtual.enabled)return;let Ai;if(typeof _e.passedParams.virtual.slides>"u"){const oi=[..._e.slidesEl.children].filter(ii=>ii.matches(`.${_e.params.slideClass}, swiper-slide`));oi&&oi.length&&(_e.virtual.slides=[...oi],Ai=!0,oi.forEach((ii,hi)=>{ii.setAttribute("data-swiper-slide-index",hi),_e.virtual.cache[hi]=ii,ii.remove()}))}Ai||(_e.virtual.slides=_e.params.virtual.slides),_e.classNames.push(`${_e.params.containerModifierClass}virtual`),_e.params.watchSlidesProgress=!0,_e.originalParams.watchSlidesProgress=!0,Ke()}),ke("setTranslate",()=>{_e.params.virtual.enabled&&(_e.params.cssMode&&!_e._immediateVirtual?(clearTimeout(Fe),Fe=setTimeout(()=>{Ke()},100)):Ke())}),ke("init update resize",()=>{_e.params.virtual.enabled&&_e.params.cssMode&&setCSSProperty(_e.wrapperEl,"--swiper-virtual-size",`${_e.virtualSize}px`)}),Object.assign(_e.virtual,{appendSlide:$e,prependSlide:qe,removeSlide:ci,removeAllSlides:gi,update:Ke})}function Keyboard(De){let{swiper:_e,extendParams:Ae,on:ke,emit:Le}=De;const Fe=getDocument(),Ve=getWindow$1();_e.keyboard={enabled:!1},Ae({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function Ie($e){if(!_e.enabled)return;const{rtlTranslate:qe}=_e;let ci=$e;ci.originalEvent&&(ci=ci.originalEvent);const gi=ci.keyCode||ci.charCode,Ai=_e.params.keyboard.pageUpDown,oi=Ai&&gi===33,ii=Ai&&gi===34,hi=gi===37,Ei=gi===39,Li=gi===38,Di=gi===40;if(!_e.allowSlideNext&&(_e.isHorizontal()&&Ei||_e.isVertical()&&Di||ii)||!_e.allowSlidePrev&&(_e.isHorizontal()&&hi||_e.isVertical()&&Li||oi))return!1;if(!(ci.shiftKey||ci.altKey||ci.ctrlKey||ci.metaKey)&&!(Fe.activeElement&&Fe.activeElement.nodeName&&(Fe.activeElement.nodeName.toLowerCase()==="input"||Fe.activeElement.nodeName.toLowerCase()==="textarea"))){if(_e.params.keyboard.onlyInViewport&&(oi||ii||hi||Ei||Li||Di)){let zi=!1;if(elementParents(_e.el,`.${_e.params.slideClass}, swiper-slide`).length>0&&elementParents(_e.el,`.${_e.params.slideActiveClass}`).length===0)return;const an=_e.el,Je=an.clientWidth,fi=an.clientHeight,Gi=Ve.innerWidth,fn=Ve.innerHe
vendor: 6,867 bytes, line 44
44ight,cn=elementOffset(an);qe&&(cn.left-=an.scrollLeft);const Tn=[[cn.left,cn.top],[cn.left+Je,cn.top],[cn.left,cn.top+fi],[cn.left+Je,cn.top+fi]];for(let Sn=0;Sn<Tn.length;Sn+=1){const Cn=Tn[Sn];if(Cn[0]>=0&&Cn[0]<=Gi&&Cn[1]>=0&&Cn[1]<=fn){if(Cn[0]===0&&Cn[1]===0)continue;zi=!0}}if(!zi)return}_e.isHorizontal()?((oi||ii||hi||Ei)&&(ci.preventDefault?ci.preventDefault():ci.returnValue=!1),((ii||Ei)&&!qe||(oi||hi)&&qe)&&_e.slideNext(),((oi||hi)&&!qe||(ii||Ei)&&qe)&&_e.slidePrev()):((oi||ii||Li||Di)&&(ci.preventDefault?ci.preventDefault():ci.returnValue=!1),(ii||Di)&&_e.slideNext(),(oi||Li)&&_e.slidePrev()),Le("keyPress",gi)}}function je(){_e.keyboard.enabled||(Fe.addEventListener("keydown",Ie),_e.keyboard.enabled=!0)}function Ke(){_e.keyboard.enabled&&(Fe.removeEventListener("keydown",Ie),_e.keyboard.enabled=!1)}ke("init",()=>{_e.params.keyboard.enabled&&je()}),ke("destroy",()=>{_e.keyboard.enabled&&Ke()}),Object.assign(_e.keyboard,{enable:je,disable:Ke})}function Mousewheel(De){let{swiper:_e,extendParams:Ae,on:ke,emit:Le}=De;const Fe=getWindow$1();Ae({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),_e.mousewheel={enabled:!1};let Ve,Ie=now(),je;const Ke=[];function $e(Li){let Je=0,fi=0,Gi=0,fn=0;return"detail"in Li&&(fi=Li.detail),"wheelDelta"in Li&&(fi=-Li.wheelDelta/120),"wheelDeltaY"in Li&&(fi=-Li.wheelDeltaY/120),"wheelDeltaX"in Li&&(Je=-Li.wheelDeltaX/120),"axis"in Li&&Li.axis===Li.HORIZONTAL_AXIS&&(Je=fi,fi=0),Gi=Je*10,fn=fi*10,"deltaY"in Li&&(fn=Li.deltaY),"deltaX"in Li&&(Gi=Li.deltaX),Li.shiftKey&&!Gi&&(Gi=fn,fn=0),(Gi||fn)&&Li.deltaMode&&(Li.deltaMode===1?(Gi*=40,fn*=40):(Gi*=800,fn*=800)),Gi&&!Je&&(Je=Gi<1?-1:1),fn&&!fi&&(fi=fn<1?-1:1),{spinX:Je,spinY:fi,pixelX:Gi,pixelY:fn}}function qe(){_e.enabled&&(_e.mouseEntered=!0)}function ci(){_e.enabled&&(_e.mouseEntered=!1)}function gi(Li){return _e.params.mousewheel.thresholdDelta&&Li.delta<_e.params.mousewheel.thresholdDelta||_e.params.mousewheel.thresholdTime&&now()-Ie<_e.params.mousewheel.thresholdTime?!1:Li.delta>=6&&now()-Ie<60?!0:(Li.direction<0?(!_e.isEnd||_e.params.loop)&&!_e.animating&&(_e.slideNext(),Le("scroll",Li.raw)):(!_e.isBeginning||_e.params.loop)&&!_e.animating&&(_e.slidePrev(),Le("scroll",Li.raw)),Ie=new Fe.Date().getTime(),!1)}function Ai(Li){const Di=_e.params.mousewheel;if(Li.direction<0){if(_e.isEnd&&!_e.params.loop&&Di.releaseOnEdges)return!0}else if(_e.isBeginning&&!_e.params.loop&&Di.releaseOnEdges)return!0;return!1}function oi(Li){let Di=Li,zi=!0;if(!_e.enabled||Li.target.closest(`.${_e.params.mousewheel.noMousewheelClass}`))return;const an=_e.params.mousewheel;_e.params.cssMode&&Di.preventDefault();let Je=_e.el;_e.params.mousewheel.eventsTarget!=="container"&&(Je=document.querySelector(_e.params.mousewheel.eventsTarget));const fi=Je&&Je.contains(Di.target);if(!_e.mouseEntered&&!fi&&!an.releaseOnEdges)return!0;Di.originalEvent&&(Di=Di.originalEvent);let Gi=0;const fn=_e.rtlTranslate?-1:1,cn=$e(Di);if(an.forceToAxis)if(_e.isHorizontal())if(Math.abs(cn.pixelX)>Math.abs(cn.pixelY))Gi=-cn.pixelX*fn;else return!0;else if(Math.abs(cn.pixelY)>Math.abs(cn.pixelX))Gi=-cn.pixelY;else return!0;else Gi=Math.abs(cn.pixelX)>Math.abs(cn.pixelY)?-cn.pixelX*fn:-cn.pixelY;if(Gi===0)return!0;an.invert&&(Gi=-Gi);let Tn=_e.getTranslate()+Gi*an.sensitivity;if(Tn>=_e.minTranslate()&&(Tn=_e.minTranslate()),Tn<=_e.maxTranslate()&&(Tn=_e.maxTranslate()),zi=_e.params.loop?!0:!(Tn===_e.minTranslate()||Tn===_e.maxTranslate()),zi&&_e.params.nested&&Di.stopPropagation(),!_e.params.freeMode||!_e.params.freeMode.enabled){const Sn={time:now(),delta:Math.abs(Gi),direction:Math.sign(Gi),raw:Li};Ke.length>=2&&Ke.shift();const Cn=Ke.length?Ke[Ke.length-1]:void 0;if(Ke.push(Sn),Cn?(Sn.direction!==Cn.direction||Sn.delta>Cn.delta||Sn.time>Cn.time+150)&&gi(Sn):gi(Sn),Ai(Sn))return!0}else{const Sn={time:now(),delta:Math.abs(Gi),direction:Math.sign(Gi)},Cn=je&&Sn.time<je.time+500&&Sn.delta<=je.delta&&Sn.direction===je.direction;if(!Cn){je=void 0;let tr=_e.getTranslate()+Gi*an.sensitivity;const xr=_e.isBeginning,er=_e.isEnd;if(tr>=_e.minTranslate()&&(tr=_e.minTranslate()),tr<=_e.maxTranslate()&&(tr=_e.maxTranslate()),_e.setTransition(0),_e.setTranslate(tr),_e.updateProgress(),_e.updateActiveIndex(),_e.updateSlidesClasses(),(!xr&&_e.isBeginning||!er&&_e.isEnd)&&_e.updateSlidesClasses(),_e.params.loop&&_e.loopFix({direction:Sn.direction<0?"next":"prev",byMousewheel:!0}),_e.params.freeMode.sticky){clearTimeout(Ve),Ve=void 0,Ke.length>=15&&Ke.shift();const Hn=Ke.length?Ke[Ke.length-1]:void 0,Er=Ke[0];if(Ke.push(Sn),Hn&&(Sn.delta>Hn.delta||Sn.direction!==Hn.direction))Ke.splice(0);else if(Ke.length>=15&&Sn.time-Er.time<500&&Er.delta-Sn.delta>=1&&Sn.delta<=6){const os=Gi>0?.8:.2;je=Sn,Ke.splice(0),Ve=nextTick(()=>{_e.slideToClosest(_e.params.speed,!0,void 0,os)},0)}Ve||(Ve=nextTick(()=>{je=Sn,Ke.splice(0),_e.slideToClosest(_e.params.speed,!0,void 0,.5)},500))}if(Cn||Le("scroll",Di),_e.params.autoplay&&_e.params.autoplayDisableOnInteraction&&_e.autoplay.stop(),an.releaseOnEdges&&(tr===_e.minTranslate()||tr===_e.maxTranslate()))return!0}}return Di.preventDefault?Di.preventDefault():Di.returnValue=!1,!1}function ii(Li){let Di=_e.el;_e.params.mousewheel.eventsTarget!=="container"&&(Di=document.querySelector(_e.params.mousewheel.eventsTarget)),Di[Li]("mouseenter",qe),Di[Li]("mouseleave",ci),Di[Li]("wheel",oi)}function hi(){return _e.params.cssMode?(_e.wrapperEl.removeEventListener("wheel",oi),!0):_e.mousewheel.enabled?!1:(ii("addEventListener"),_e.mousewheel.enabled=!0,!0)}function Ei(){return _e.params.cssMode?(_e.wrapperEl.addEventListener(event,oi),!0):_e.mousewheel.enabled?(ii("removeEventListener"),_e.mousewheel.enabled=!1,!0):!1}ke("init",()=>{!_e.params.mousewheel.enabled&&_e.params.cssMode&&Ei(),_e.params.mousewheel.enabled&&hi()}),ke("destroy",()=>{_e.params.cssMode&&hi(),_e.mousewheel.enabled&&Ei()}),Object.assign(_e.mousewheel,{enable:hi,disable:Ei})}function createElementIfNotDefined(De,_e,Ae,ke){return De.params.createElements&&Object.keys(ke).forEach(Le=>{if(!Ae[Le]&&Ae.auto===!0){let Fe=elementChildren(De.el,`.${ke[Le]}`)[0];Fe||(Fe=createElement("div",ke[Le]),Fe.className=ke[Le],De.el.append(Fe)),Ae[Le]=Fe,_e[Le]=Fe}}),Ae}function Navigation(De){let{swiper:_e,extendParams:Ae,on:ke,emit:Le}=De;Ae({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),_e.navigation={nextEl:null,prevEl:null};const Fe=oi=>(Array.isArray(oi)?oi:[oi]).filter(ii=>!!ii);function Ve(oi){let ii;return oi&&typeof oi=="string"&&_e.isElement&&(ii=_e.el.querySelector(oi),ii)?ii:(oi&&(typeof oi=="string"&&(ii=[...document.querySelectorAll(
44oi)]),_e.params.uniqueNavElements&&typeof oi=="string"&&ii.length>1&&_e.el.querySelectorAll(oi).length===1&&(ii=_e.el.querySelector(oi))),oi&&!ii?oi:ii)}function Ie(oi,ii){const hi=_e.params.navigation;oi=Fe(oi),oi.forEach(Ei=>{Ei&&(Ei.classList[ii?"add":"remove"](...hi.disabledClass.split(" ")),Ei.tagName==="BUTTON"&&(Ei.disabled=ii),_e.params.watchOverflow&&_e.enabled&&Ei.classList[_e.isLocked?"add":"remove"](hi.lockClass))})}function je(){const{nextEl:oi,prevEl:ii}=_e.navigation;if(_e.params.loop){Ie(ii,!1),Ie(oi,!1);return}Ie(ii,_e.isBeginning&&!_e.params.rewind),Ie(oi,_e.isEnd&&!_e.params.rewind)}function Ke(oi){oi.preventDefault(),!(_e.isBeginning&&!_e.params.loop&&!_e.params.rewind)&&(_e.slidePrev(),Le("navigationPrev"))}function $e(oi){oi.preventDefault(),!(_e.isEnd&&!_e.params.loop&&!_e.params.rewind)&&(_e.slideNext(),Le("navigationNext"))}function qe(){const oi=_e.params.navigation;if(_e.params.navigation=createElementIfNotDefined(_e,_e.originalParams.navigation,_e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(oi.nextEl||oi.prevEl))return;let ii=Ve(oi.nextEl),hi=Ve(oi.prevEl);Object.assign(_e.navigation,{nextEl:ii,prevEl:hi}),ii=Fe(ii),hi=Fe(hi);const Ei=(Li,Di)=>{Li&&Li.addEventListener("click",Di==="next"?$e:Ke),!_e.enabled&&Li&&Li.classList.add(...oi.lockClass.split(" "))};ii.forEach(Li=>Ei(Li,"next")),hi.forEach(Li=>Ei(Li,"prev"))}function ci(){let{nextEl:oi,prevEl:ii}=_e.navigation;oi=Fe(oi),ii=Fe(ii);const hi=(Ei,Li)=>{Ei.removeEventListener("click",Li==="next"?$e:Ke),Ei.classList.remove(..._e.params.navigation.disabledClass.split(" "))};oi.forEach(Ei=>hi(Ei,"next")),ii.forEach(Ei=>hi(Ei,"prev"))}ke("init",()=>{_e.params.navigation.enabled===!1?Ai():(qe(),je())}),ke("toEdge fromEdge lock unlock",()=>{je()}),ke("destroy",()=>{ci()}),ke("enable disable",()=>{let{nextEl:oi,prevEl:ii}=_e.navigation;if(oi=Fe(oi),ii=Fe(ii),_e.enabled){je();return}[...oi,...ii].filter(hi=>!!hi).forEach(hi=>hi.classList.add(_e.params.navigation.lockClass))}),ke("click",(oi,ii)=>{let{nextEl:hi,prevEl:Ei}=_e.navigation;hi=Fe(hi),Ei=Fe(Ei);const Li=ii.target;if(_e.params.navigation.hideOnClick&&!Ei.includes(Li)&&!hi.includes(Li)){if(_e.pagination&&_e.params.pagination&&_e.params.pagination.clickable&&(_e.pagination.el===Li||_e.pagination.el.contains(Li)))return;let Di;hi.length?Di=hi[0].classList.contains(_e.params.navigation.hiddenClass):Ei.length&&(Di=Ei[0].classList.contains(_e.params.navigation.hiddenClass)),Le(Di===!0?"navigationShow":"navigationHide"),[...hi,...Ei].filter(zi=>!!zi).forEach(zi=>zi.classList.toggle(_e.params.navigation.hiddenClass))}});const gi=()=>{_e.el.classList.remove(..._e.params.navigation.navigationDisabledClass.split(" ")),qe(),je()},Ai=()=>{_e.el.classList.add(..._e.params.navigation.navigationDisabledClass.split(" ")),ci()};Object.assign(_e.navigation,{enable:gi,disable:Ai,update:je,init:qe,destroy:ci})}function classesToSelector(De){return De===void 0&&(De=""),`.${De.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Pagination(De){let{swiper:_e,extendParams:Ae,on:ke,emit:Le}=De;const Fe="swiper-pagination";Ae({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:Ei=>Ei,formatFractionTotal:Ei=>Ei,bulletClass:`${Fe}-bullet`,bulletActiveClass:`${Fe}-bullet-active`,modifierClass:`${Fe}-`,currentClass:`${Fe}-current`,totalClass:`${Fe}-total`,hiddenClass:`${Fe}-hidden`,progressbarFillClass:`${Fe}-progressbar-fill`,progressbarOppositeClass:`${Fe}-progressbar-opposite`,clickableClass:`${Fe}-clickable`,lockClass:`${Fe}-lock`,horizontalClass:`${Fe}-horizontal`,verticalClass:`${Fe}-vertical`,paginationDisabledClass:`${Fe}-disabled`}}),_e.pagination={el:null,bullets:[]};let Ve,Ie=0;const je=Ei=>(Array.isArray(Ei)?Ei:[Ei]).filter(Li=>!!Li);function Ke(){return!_e.params.pagination.el||!_e.pagination.el||Array.isArray(_e.pagination.el)&&_e.pagination.el.length===0}function $e(Ei,Li){const{bulletActiveClass:Di}=_e.params.pagination;Ei&&(Ei=Ei[`${Li==="prev"?"previous":"next"}ElementSibling`],Ei&&(Ei.classList.add(`${Di}-${Li}`),Ei=Ei[`${Li==="prev"?"previous":"next"}ElementSibling`],Ei&&Ei.classList.add(`${Di}-${Li}-${Li}`)))}function qe(Ei){const Li=Ei.target.closest(classesToSelector(_e.params.pagination.bulletClass));if(!Li)return;Ei.preventDefault();const Di=elementIndex(Li)*_e.params.slidesPerGroup;if(_e.params.loop){if(_e.realIndex===Di)return;const zi=_e.realIndex,an=_e.getSlideIndexByData(Di),Je=_e.getSlideIndexByData(_e.realIndex),fi=Gi=>{const fn=_e.activeIndex;_e.loopFix({direction:Gi,activeSlideIndex:an,slideTo:!1});const cn=_e.activeIndex;fn===cn&&_e.slideToLoop(zi,0,!1,!0)};if(an>_e.slides.length-_e.loopedSlides)fi(an>Je?"next":"prev");else if(_e.params.centeredSlides){const Gi=_e.params.slidesPerView==="auto"?_e.slidesPerViewDynamic():Math.ceil(parseFloat(_e.params.slidesPerView,10));an<Math.floor(Gi/2)&&fi("prev")}_e.slideToLoop(Di)}else _e.slideTo(Di)}function ci(){const Ei=_e.rtl,Li=_e.params.pagination;if(Ke())return;let Di=_e.pagination.el;Di=je(Di);let zi,an;const Je=_e.virtual&&_e.params.virtual.enabled?_e.virtual.slides.length:_e.slides.length,fi=_e.params.loop?Math.
vendor: 4,802 bytes, line 44
44ceil(Je/_e.params.slidesPerGroup):_e.snapGrid.length;if(_e.params.loop?(an=_e.previousRealIndex||0,zi=_e.params.slidesPerGroup>1?Math.floor(_e.realIndex/_e.params.slidesPerGroup):_e.realIndex):typeof _e.snapIndex<"u"?(zi=_e.snapIndex,an=_e.previousSnapIndex):(an=_e.previousIndex||0,zi=_e.activeIndex||0),Li.type==="bullets"&&_e.pagination.bullets&&_e.pagination.bullets.length>0){const Gi=_e.pagination.bullets;let fn,cn,Tn;if(Li.dynamicBullets&&(Ve=elementOuterSize(Gi[0],_e.isHorizontal()?"width":"height",!0),Di.forEach(Sn=>{Sn.style[_e.isHorizontal()?"width":"height"]=`${Ve*(Li.dynamicMainBullets+4)}px`}),Li.dynamicMainBullets>1&&an!==void 0&&(Ie+=zi-(an||0),Ie>Li.dynamicMainBullets-1?Ie=Li.dynamicMainBullets-1:Ie<0&&(Ie=0)),fn=Math.max(zi-Ie,0),cn=fn+(Math.min(Gi.length,Li.dynamicMainBullets)-1),Tn=(cn+fn)/2),Gi.forEach(Sn=>{const Cn=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(tr=>`${Li.bulletActiveClass}${tr}`)].map(tr=>typeof tr=="string"&&tr.includes(" ")?tr.split(" "):tr).flat();Sn.classList.remove(...Cn)}),Di.length>1)Gi.forEach(Sn=>{const Cn=elementIndex(Sn);Cn===zi?Sn.classList.add(...Li.bulletActiveClass.split(" ")):_e.isElement&&Sn.setAttribute("part","bullet"),Li.dynamicBullets&&(Cn>=fn&&Cn<=cn&&Sn.classList.add(...`${Li.bulletActiveClass}-main`.split(" ")),Cn===fn&&$e(Sn,"prev"),Cn===cn&&$e(Sn,"next"))});else{const Sn=Gi[zi];if(Sn&&Sn.classList.add(...Li.bulletActiveClass.split(" ")),_e.isElement&&Gi.forEach((Cn,tr)=>{Cn.setAttribute("part",tr===zi?"bullet-active":"bullet")}),Li.dynamicBullets){const Cn=Gi[fn],tr=Gi[cn];for(let xr=fn;xr<=cn;xr+=1)Gi[xr]&&Gi[xr].classList.add(...`${Li.bulletActiveClass}-main`.split(" "));$e(Cn,"prev"),$e(tr,"next")}}if(Li.dynamicBullets){const Sn=Math.min(Gi.length,Li.dynamicMainBullets+4),Cn=(Ve*Sn-Ve)/2-Tn*Ve,tr=Ei?"right":"left";Gi.forEach(xr=>{xr.style[_e.isHorizontal()?tr:"top"]=`${Cn}px`})}}Di.forEach((Gi,fn)=>{if(Li.type==="fraction"&&(Gi.querySelectorAll(classesToSelector(Li.currentClass)).forEach(cn=>{cn.textContent=Li.formatFractionCurrent(zi+1)}),Gi.querySelectorAll(classesToSelector(Li.totalClass)).forEach(cn=>{cn.textContent=Li.formatFractionTotal(fi)})),Li.type==="progressbar"){let cn;Li.progressbarOpposite?cn=_e.isHorizontal()?"vertical":"horizontal":cn=_e.isHorizontal()?"horizontal":"vertical";const Tn=(zi+1)/fi;let Sn=1,Cn=1;cn==="horizontal"?Sn=Tn:Cn=Tn,Gi.querySelectorAll(classesToSelector(Li.progressbarFillClass)).forEach(tr=>{tr.style.transform=`translate3d(0,0,0) scaleX(${Sn}) scaleY(${Cn})`,tr.style.transitionDuration=`${_e.params.speed}ms`})}Li.type==="custom"&&Li.renderCustom?(Gi.innerHTML=Li.renderCustom(_e,zi+1,fi),fn===0&&Le("paginationRender",Gi)):(fn===0&&Le("paginationRender",Gi),Le("paginationUpdate",Gi)),_e.params.watchOverflow&&_e.enabled&&Gi.classList[_e.isLocked?"add":"remove"](Li.lockClass)})}function gi(){const Ei=_e.params.pagination;if(Ke())return;const Li=_e.virtual&&_e.params.virtual.enabled?_e.virtual.slides.length:_e.slides.length;let Di=_e.pagination.el;Di=je(Di);let zi="";if(Ei.type==="bullets"){let an=_e.params.loop?Math.ceil(Li/_e.params.slidesPerGroup):_e.snapGrid.length;_e.params.freeMode&&_e.params.freeMode.enabled&&an>Li&&(an=Li);for(let Je=0;Je<an;Je+=1)Ei.renderBullet?zi+=Ei.renderBullet.call(_e,Je,Ei.bulletClass):zi+=`<${Ei.bulletElement} ${_e.isElement?'part="bullet"':""} class="${Ei.bulletClass}"></${Ei.bulletElement}>`}Ei.type==="fraction"&&(Ei.renderFraction?zi=Ei.renderFraction.call(_e,Ei.currentClass,Ei.totalClass):zi=`<span class="${Ei.currentClass}"></span> / <span class="${Ei.totalClass}"></span>`),Ei.type==="progressbar"&&(Ei.renderProgressbar?zi=Ei.renderProgressbar.call(_e,Ei.progressbarFillClass):zi=`<span class="${Ei.progressbarFillClass}"></span>`),_e.pagination.bullets=[],Di.forEach(an=>{Ei.type!=="custom"&&(an.innerHTML=zi||""),Ei.type==="bullets"&&_e.pagination.bullets.push(...an.querySelectorAll(classesToSelector(Ei.bulletClass)))}),Ei.type!=="custom"&&Le("paginationRender",Di[0])}function Ai(){_e.params.pagination=createElementIfNotDefined(_e,_e.originalParams.pagination,_e.params.pagination,{el:"swiper-pagination"});const Ei=_e.params.pagination;if(!Ei.el)return;let Li;typeof Ei.el=="string"&&_e.isElement&&(Li=_e.el.querySelector(Ei.el)),!Li&&typeof Ei.el=="string"&&(Li=[...document.querySelectorAll(Ei.el)]),Li||(Li=Ei.el),!(!Li||Li.length===0)&&(_e.params.uniqueNavElements&&typeof Ei.el=="string"&&Array.isArray(Li)&&Li.length>1&&(Li=[..._e.el.querySelectorAll(Ei.el)],Li.length>1&&(Li=Li.filter(Di=>elementParents(Di,".swiper")[0]===_e.el)[0])),Array.isArray(Li)&&Li.length===1&&(Li=Li[0]),Object.assign(_e.pagination,{el:Li}),Li=je(Li),Li.forEach(Di=>{Ei.type==="bullets"&&Ei.clickable&&Di.classList.add(...(Ei.clickableClass||"").split(" ")),Di.classList.add(Ei.modifierClass+Ei.t
vendor: 5,096 bytes, line 44
44ype),Di.classList.add(_e.isHorizontal()?Ei.horizontalClass:Ei.verticalClass),Ei.type==="bullets"&&Ei.dynamicBullets&&(Di.classList.add(`${Ei.modifierClass}${Ei.type}-dynamic`),Ie=0,Ei.dynamicMainBullets<1&&(Ei.dynamicMainBullets=1)),Ei.type==="progressbar"&&Ei.progressbarOpposite&&Di.classList.add(Ei.progressbarOppositeClass),Ei.clickable&&Di.addEventListener("click",qe),_e.enabled||Di.classList.add(Ei.lockClass)}))}function oi(){const Ei=_e.params.pagination;if(Ke())return;let Li=_e.pagination.el;Li&&(Li=je(Li),Li.forEach(Di=>{Di.classList.remove(Ei.hiddenClass),Di.classList.remove(Ei.modifierClass+Ei.type),Di.classList.remove(_e.isHorizontal()?Ei.horizontalClass:Ei.verticalClass),Ei.clickable&&(Di.classList.remove(...(Ei.clickableClass||"").split(" ")),Di.removeEventListener("click",qe))})),_e.pagination.bullets&&_e.pagination.bullets.forEach(Di=>Di.classList.remove(...Ei.bulletActiveClass.split(" ")))}ke("changeDirection",()=>{if(!_e.pagination||!_e.pagination.el)return;const Ei=_e.params.pagination;let{el:Li}=_e.pagination;Li=je(Li),Li.forEach(Di=>{Di.classList.remove(Ei.horizontalClass,Ei.verticalClass),Di.classList.add(_e.isHorizontal()?Ei.horizontalClass:Ei.verticalClass)})}),ke("init",()=>{_e.params.pagination.enabled===!1?hi():(Ai(),gi(),ci())}),ke("activeIndexChange",()=>{typeof _e.snapIndex>"u"&&ci()}),ke("snapIndexChange",()=>{ci()}),ke("snapGridLengthChange",()=>{gi(),ci()}),ke("destroy",()=>{oi()}),ke("enable disable",()=>{let{el:Ei}=_e.pagination;Ei&&(Ei=je(Ei),Ei.forEach(Li=>Li.classList[_e.enabled?"remove":"add"](_e.params.pagination.lockClass)))}),ke("lock unlock",()=>{ci()}),ke("click",(Ei,Li)=>{const Di=Li.target,zi=je(_e.pagination.el);if(_e.params.pagination.el&&_e.params.pagination.hideOnClick&&zi&&zi.length>0&&!Di.classList.contains(_e.params.pagination.bulletClass)){if(_e.navigation&&(_e.navigation.nextEl&&Di===_e.navigation.nextEl||_e.navigation.prevEl&&Di===_e.navigation.prevEl))return;const an=zi[0].classList.contains(_e.params.pagination.hiddenClass);Le(an===!0?"paginationShow":"paginationHide"),zi.forEach(Je=>Je.classList.toggle(_e.params.pagination.hiddenClass))}});const ii=()=>{_e.el.classList.remove(_e.params.pagination.paginationDisabledClass);let{el:Ei}=_e.pagination;Ei&&(Ei=je(Ei),Ei.forEach(Li=>Li.classList.remove(_e.params.pagination.paginationDisabledClass))),Ai(),gi(),ci()},hi=()=>{_e.el.classList.add(_e.params.pagination.paginationDisabledClass);let{el:Ei}=_e.pagination;Ei&&(Ei=je(Ei),Ei.forEach(Li=>Li.classList.add(_e.params.pagination.paginationDisabledClass))),oi()};Object.assign(_e.pagination,{enable:ii,disable:hi,render:gi,update:ci,init:Ai,destroy:oi})}function Scrollbar(De){let{swiper:_e,extendParams:Ae,on:ke,emit:Le}=De;const Fe=getDocument();let Ve=!1,Ie=null,je=null,Ke,$e,qe,ci;Ae({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),_e.scrollbar={el:null,dragEl:null};function gi(){if(!_e.params.scrollbar.el||!_e.scrollbar.el)return;const{scrollbar:Tn,rtlTranslate:Sn}=_e,{dragEl:Cn,el:tr}=Tn,xr=_e.params.scrollbar,er=_e.params.loop?_e.progressLoop:_e.progress;let Hn=$e,Er=(qe-$e)*er;Sn?(Er=-Er,Er>0?(Hn=$e-Er,Er=0):-Er+$e>qe&&(Hn=qe+Er)):Er<0?(Hn=$e+Er,Er=0):Er+$e>qe&&(Hn=qe-Er),_e.isHorizontal()?(Cn.style.transform=`translate3d(${Er}px, 0, 0)`,Cn.style.width=`${Hn}px`):(Cn.style.transform=`translate3d(0px, ${Er}px, 0)`,Cn.style.height=`${Hn}px`),xr.hide&&(clearTimeout(Ie),tr.style.opacity=1,Ie=setTimeout(()=>{tr.style.opacity=0,tr.style.transitionDuration="400ms"},1e3))}function Ai(Tn){!_e.params.scrollbar.el||!_e.scrollbar.el||(_e.scrollbar.dragEl.style.transitionDuration=`${Tn}ms`)}function oi(){if(!_e.params.scrollbar.el||!_e.scrollbar.el)return;const{scrollbar:Tn}=_e,{dragEl:Sn,el:Cn}=Tn;Sn.style.width="",Sn.style.height="",qe=_e.isHorizontal()?Cn.offsetWidth:Cn.offsetHeight,ci=_e.size/(_e.virtualSize+_e.params.slidesOffsetBefore-(_e.params.centeredSlides?_e.snapGrid[0]:0)),_e.params.scrollbar.dragSize==="auto"?$e=qe*ci:$e=parseInt(_e.params.scrollbar.dragSize,10),_e.isHorizontal()?Sn.style.width=`${$e}px`:Sn.style.height=`${$e}px`,ci>=1?Cn.style.display="none":Cn.style.display="",_e.params.scrollbar.hide&&(Cn.style.opacity=0),_e.params.watchOverflow&&_e.enabled&&Tn.el.classList[_e.isLocked?"add":"remove"](_e.params.scrollbar.lockClass)}function ii(Tn){return _e.isHorizontal()?Tn.clientX:Tn.clientY}function hi(Tn){const{scrollbar:Sn,rtlTranslate:Cn}=_e,{el:tr}=Sn;let xr;xr=(ii(Tn)-elementOffset(tr)[_e.isHorizontal()?"left":"top"]-(Ke!==null?Ke:$e/2))/(qe-$e),xr=Math.max(Math.min(xr,1),0),Cn&&(xr=1-xr);const er=_e.minTranslate()+(_e.maxTranslate()-_e.minTranslate())*xr;_e.updateProgress(er),_e.setTranslate(er),_e.updateActiveIndex(),_e.updateSlidesClasses()}function Ei(Tn){const Sn=_e.params.scrollbar,{scrollbar:Cn,wrapperEl:tr}=_e,{el:xr,dragEl:er}=Cn;Ve=!0,Ke=Tn.target===er?ii(Tn)-Tn.target.getBoundingClientRect()[_e.isH
44orizontal()?"left":"top"]:null,Tn.preventDefault(),Tn.stopPropagation(),tr.style.transitionDuration="100ms",er.style.transitionDuration="100ms",hi(Tn),clearTimeout(je),xr.style.transitionDuration="0ms",Sn.hide&&(xr.style.opacity=1),_e.params.cssMode&&(_e.wrapperEl.style["scroll-snap-type"]="none"),Le("scrollbarDragStart",Tn)}function Li(Tn){const{scrollbar:Sn,wrapperEl:Cn}=_e,{el:tr,dragEl:xr}=Sn;Ve&&(Tn.preventDefault?Tn.preventDefault():Tn.returnValue=!1,hi(Tn),Cn.style.transitionDuration="0ms",tr.style.transitionDuration="0ms",xr.style.transitionDuration="0ms",Le("scrollbarDragMove",Tn))}function Di(Tn){const Sn=_e.params.scrollbar,{scrollbar:Cn,wrapperEl:tr}=_e,{el:xr}=Cn;Ve&&(Ve=!1,_e.params.cssMode&&(_e.wrapperEl.style["scroll-snap-type"]="",tr.style.transitionDuration=""),Sn.hide&&(clearTimeout(je),je=nextTick(()=>{xr.style.opacity=0,xr.style.transitionDuration="400ms"},1e3)),Le("scrollbarDragEnd",Tn),Sn.snapOnRelease&&_e.slideToClosest())}function zi(Tn){const{scrollbar:Sn,params:Cn}=_e,tr=Sn.el;if(!tr)return;const xr=tr,er=Cn.passiveListeners?{passive:!1,capture:!1}:!1,Hn=Cn.passiveListeners?{passive:!0,capture:!1}:!1;if(!xr)return;const Er=Tn==="on"?"addEventListener":"removeEventListener";xr[Er]("pointerdown",Ei,er),Fe[Er]("pointermove",Li,er),Fe[Er]("pointerup",Di,Hn)}function an(){!_e.params.scrollbar.el||!_e.scrollbar.el||zi("on")}function Je(){!_e.params.scrollbar.el||!_e.scrollbar.el||zi("off")}function fi(){const{scrollbar:Tn,el:Sn}=_e;_e.params.scrollbar=createElementIfNotDefined(_e,_e.originalParams.scrollbar,_e.params.scrollbar,{el:"swiper-scrollbar"});const Cn=_e.params.scrollbar;if(!Cn.el)return;let tr;typeof Cn.el=="string"&&_e.isElement&&(tr=_e.el.querySelector(Cn.el)),!tr&&typeof Cn.el=="string"?tr=Fe.querySelectorAll(Cn.el):tr||(tr=Cn.el),_e.params.uniqueNavElements&&typeof Cn.el=="string"&&tr.length>1&&Sn.querySelectorAll(Cn.el).length===1&&(tr=Sn.querySelector(Cn.el)),tr.length>0&&(tr=tr[0]),tr.classList.add(_e.isHorizontal()?Cn.horizontalClass:Cn.verticalClass);let xr;tr&&(xr=tr.querySelector(`.${_e.params.scrollbar.dragClass}`),xr||(xr=createElement("div",_e.params.scrollbar.dragClass),tr.append(xr))),Object.assign(Tn,{el:tr,dragEl:xr}),Cn.draggable&&an(),tr&&tr.classList[_e.enabled?"remove":"add"](_e.params.scrollbar.lockClass)}function Gi(){const Tn=_e.params.scrollbar,Sn=_e.scrollbar.el;Sn&&Sn.classList.remove(_e.isHorizontal()?Tn.horizontalClass:Tn.verticalClass),Je()}ke("init",()=>{_e.params.scrollbar.enabled===!1?cn():(fi(),oi(),gi())}),ke("update resize observerUpdate lock unlock",()=>{oi()}),ke("setTranslate",()=>{gi()}),ke("setTransition",(Tn,Sn)=>{Ai(Sn)}),ke("enable disable",()=>{const{el:Tn}=_e.scrollbar;Tn&&Tn.classList[_e.enabled?"remove":"add"](_e.params.scrollbar.lockClass)}),ke("destroy",()=>{Gi()});const fn=()=>{_e.el.classList.remove(_e.params.scrollbar.scrollbarDisabledClass),_e.scrollbar.el&&_e.scrollbar.el.classList.remove(_e.params.scrollbar.scrollbarDisabledClass),fi(),oi(),gi()},cn=()=>{_e.el.classList.add(_e.params.scrollbar.scrollbarDisabledClass),_e.scrollbar.el&&_e.scrollbar.el.classList.add(_e.params.scrollbar.scrollbarDisabledClass),Gi()};Object.assign(_e.scrollbar,{enable:fn,disable:cn,updateSize:oi,setTranslate:gi,init:fi,destroy:Gi})}function Parallax(De){let{swiper:_e,extendParams:Ae,on:ke}=De;Ae({parallax:{enabled:!1}});const Le="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",Fe=(je,Ke)=>{const{rtl:$e}=_e,qe=$e?-1:1,ci=je.getAttribute("data-swiper-parallax")||"0";let gi=je.getAttribute("data-swiper-parallax-x"),Ai=je.getAttribute("data-swiper-parallax-y");const oi=je.getAttribute("data-swiper-parallax-scale"),ii=je.getAttribute("data-swiper-parallax-opacity"),hi=je.getAttribute("data-swiper-parallax-rotate");if(gi||Ai?(gi=gi||"0",Ai=Ai||"0"):_e.isHorizontal()?(gi=ci,Ai="0"):(Ai=ci,gi="0"),gi.indexOf("%")>=0?gi=`${parseInt(gi,10)*Ke*qe}%`:gi=`${gi*Ke*qe}px`,Ai.indexOf("%")>=0?Ai=`${parseInt(Ai,10)*Ke}%`:Ai=`${Ai*Ke}px`,typeof ii<"u"&&ii!==null){const Li=ii-(ii-1)*(1-Math.abs(Ke));je.style.opacity=Li}let Ei=`translate3d(${gi}, ${Ai}, 0px)`;if(typeof oi<"u"&&oi!==null){const Li=oi-(oi-1)*(1-Math.abs(Ke));Ei+=` scale(${Li})`}if(hi&&typeof hi<"u"&&hi!==null){const Li=hi*Ke*-1;Ei+=` rotate(${Li}deg)`}je.style.transform=Ei},Ve=()=>{const{el:je,slides:Ke,progress:$e,snapGrid:qe,isElement:ci}=_e,gi=elementChildren(je,Le);_e.isElement&&gi.push(...elementChildren(_e.hostEl,Le)),gi.forEac
vendor: 4,903 bytes, line 44
44h(Ai=>{Fe(Ai,$e)}),Ke.forEach((Ai,oi)=>{let ii=Ai.progress;_e.params.slidesPerGroup>1&&_e.params.slidesPerView!=="auto"&&(ii+=Math.ceil(oi/2)-$e*(qe.length-1)),ii=Math.min(Math.max(ii,-1),1),Ai.querySelectorAll(`${Le}, [data-swiper-parallax-rotate]`).forEach(hi=>{Fe(hi,ii)})})},Ie=function(je){je===void 0&&(je=_e.params.speed);const{el:Ke,hostEl:$e}=_e,qe=[...Ke.querySelectorAll(Le)];_e.isElement&&qe.push(...$e.querySelectorAll(Le)),qe.forEach(ci=>{let gi=parseInt(ci.getAttribute("data-swiper-parallax-duration"),10)||je;je===0&&(gi=0),ci.style.transitionDuration=`${gi}ms`})};ke("beforeInit",()=>{_e.params.parallax.enabled&&(_e.params.watchSlidesProgress=!0,_e.originalParams.watchSlidesProgress=!0)}),ke("init",()=>{_e.params.parallax.enabled&&Ve()}),ke("setTranslate",()=>{_e.params.parallax.enabled&&Ve()}),ke("setTransition",(je,Ke)=>{_e.params.parallax.enabled&&Ie(Ke)})}function Zoom(De){let{swiper:_e,extendParams:Ae,on:ke,emit:Le}=De;const Fe=getWindow$1();Ae({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),_e.zoom={enabled:!1};let Ve=1,Ie=!1,je,Ke;const $e=[],qe={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},ci={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},gi={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let Ai=1;Object.defineProperty(_e.zoom,"scale",{get(){return Ai},set(er){if(Ai!==er){const Hn=qe.imageEl,Er=qe.slideEl;Le("zoomChange",er,Hn,Er)}Ai=er}});function oi(){if($e.length<2)return 1;const er=$e[0].pageX,Hn=$e[0].pageY,Er=$e[1].pageX,os=$e[1].pageY;return Math.sqrt((Er-er)**2+(os-Hn)**2)}function ii(){if($e.length<2)return{x:null,y:null};const er=qe.imageEl.getBoundingClientRect();return[($e[0].pageX+($e[1].pageX-$e[0].pageX)/2-er.x-Fe.scrollX)/Ve,($e[0].pageY+($e[1].pageY-$e[0].pageY)/2-er.y-Fe.scrollY)/Ve]}function hi(){return _e.isElement?"swiper-slide":`.${_e.params.slideClass}`}function Ei(er){const Hn=hi();return!!(er.target.matches(Hn)||_e.slides.filter(Er=>Er.contains(er.target)).length>0)}function Li(er){const Hn=`.${_e.params.zoom.containerClass}`;return!!(er.target.matches(Hn)||[..._e.hostEl.querySelectorAll(Hn)].filter(Er=>Er.contains(er.target)).length>0)}function Di(er){if(er.pointerType==="mouse"&&$e.splice(0,$e.length),!Ei(er))return;const Hn=_e.params.zoom;if(je=!1,Ke=!1,$e.push(er),!($e.length<2)){if(je=!0,qe.scaleStart=oi(),!qe.slideEl){qe.slideEl=er.target.closest(`.${_e.params.slideClass}, swiper-slide`),qe.slideEl||(qe.slideEl=_e.slides[_e.activeIndex]);let Er=qe.slideEl.querySelector(`.${Hn.containerClass}`);if(Er&&(Er=Er.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),qe.imageEl=Er,Er?qe.imageWrapEl=elementParents(qe.imageEl,`.${Hn.containerClass}`)[0]:qe.imageWrapEl=void 0,!qe.imageWrapEl){qe.imageEl=void 0;return}qe.maxRatio=qe.imageWrapEl.getAttribute("data-swiper-zoom")||Hn.maxRatio}if(qe.imageEl){const[Er,os]=ii();qe.originX=Er,qe.originY=os,qe.imageEl.style.transitionDuration="0ms"}Ie=!0}}function zi(er){if(!Ei(er))return;const Hn=_e.params.zoom,Er=_e.zoom,os=$e.findIndex(wi=>wi.pointerId===er.pointerId);os>=0&&($e[os]=er),!($e.length<2)&&(Ke=!0,qe.scaleMove=oi(),qe.imageEl&&(Er.scale=qe.scaleMove/qe.scaleStart*Ve,Er.scale>qe.maxRatio&&(Er.scale=qe.maxRatio-1+(Er.scale-qe.maxRatio+1)**.5),Er.scale<Hn.minRatio&&(Er.scale=Hn.minRatio+1-(Hn.minRatio-Er.scale+1)**.5),qe.imageEl.style.transform=`translate3d(0,0,0) scale(${Er.scale})`))}function an(er){if(!Ei(er)||er.pointerType==="mouse"&&er.type==="pointerout")return;const Hn=_e.params.zoom,Er=_e.zoom,os=$e.findIndex(wi=>wi.pointerId===er.pointerId);os>=0&&$e.splice(os,1),!(!je||!Ke)&&(je=!1,Ke=!1,qe.imageEl&&(Er.scale=Math.max(Math.min(Er.scale,qe.maxRatio),Hn.minRatio),qe.imageEl.style.transitionDuration=`${_e.params.speed}ms`,qe.imageEl.style.transform=`translate3d(0,0,0) scale(${Er.scale})`,Ve=Er.scale,Ie=!1,Er.scale>1&&qe.slideEl?qe.slideEl.classList.add(`${Hn.zoomedSlideClass}`):Er.scale<=1&&qe.slideEl&&qe.slideEl.classList.remove(`${Hn.zoomedSlideClass}`),Er.scale===1&&(qe.originX=0,qe.originY=0,qe.slideEl=void 0)))}function Je(er){const Hn=_e.device;if(!qe.imageEl||ci.isTouched)return;Hn.android&&er.cancelable&&er.preventDefault(),ci.isTouched=!0;const Er=$e.length>0?$e[0]:er;ci.touchesStart.x=Er.pageX,ci.touchesStart.y=Er.pageY}function fi(er){if(!Ei(er)||!Li(er))return;const Hn=_e.zoom;if(!qe.imageEl||!ci.isTouched||!qe.slideEl)return;ci.isMoved||(ci.width=qe.imageEl.offsetWidth,ci.height=qe.imageEl.offsetHeight,ci.startX=getTranslate(qe.imageWrapEl,"x")||0,ci.startY=getTranslate(qe.imageWrapEl,"y")||0,qe.slideWidth=qe.slideEl.offsetWidth,qe.slideHeight=qe.
vendor: 14,366 bytes, line 44
44slideEl.offsetHeight,qe.imageWrapEl.style.transitionDuration="0ms");const Er=ci.width*Hn.scale,os=ci.height*Hn.scale;if(Er<qe.slideWidth&&os<qe.slideHeight)return;if(ci.minX=Math.min(qe.slideWidth/2-Er/2,0),ci.maxX=-ci.minX,ci.minY=Math.min(qe.slideHeight/2-os/2,0),ci.maxY=-ci.minY,ci.touchesCurrent.x=$e.length>0?$e[0].pageX:er.pageX,ci.touchesCurrent.y=$e.length>0?$e[0].pageY:er.pageY,Math.max(Math.abs(ci.touchesCurrent.x-ci.touchesStart.x),Math.abs(ci.touchesCurrent.y-ci.touchesStart.y))>5&&(_e.allowClick=!1),!ci.isMoved&&!Ie){if(_e.isHorizontal()&&(Math.floor(ci.minX)===Math.floor(ci.startX)&&ci.touchesCurrent.x<ci.touchesStart.x||Math.floor(ci.maxX)===Math.floor(ci.startX)&&ci.touchesCurrent.x>ci.touchesStart.x)){ci.isTouched=!1;return}if(!_e.isHorizontal()&&(Math.floor(ci.minY)===Math.floor(ci.startY)&&ci.touchesCurrent.y<ci.touchesStart.y||Math.floor(ci.maxY)===Math.floor(ci.startY)&&ci.touchesCurrent.y>ci.touchesStart.y)){ci.isTouched=!1;return}}er.cancelable&&er.preventDefault(),er.stopPropagation(),ci.isMoved=!0;const Zi=(Hn.scale-Ve)/(qe.maxRatio-_e.params.zoom.minRatio),{originX:Qi,originY:Hi}=qe;ci.currentX=ci.touchesCurrent.x-ci.touchesStart.x+ci.startX+Zi*(ci.width-Qi*2),ci.currentY=ci.touchesCurrent.y-ci.touchesStart.y+ci.startY+Zi*(ci.height-Hi*2),ci.currentX<ci.minX&&(ci.currentX=ci.minX+1-(ci.minX-ci.currentX+1)**.8),ci.currentX>ci.maxX&&(ci.currentX=ci.maxX-1+(ci.currentX-ci.maxX+1)**.8),ci.currentY<ci.minY&&(ci.currentY=ci.minY+1-(ci.minY-ci.currentY+1)**.8),ci.currentY>ci.maxY&&(ci.currentY=ci.maxY-1+(ci.currentY-ci.maxY+1)**.8),gi.prevPositionX||(gi.prevPositionX=ci.touchesCurrent.x),gi.prevPositionY||(gi.prevPositionY=ci.touchesCurrent.y),gi.prevTime||(gi.prevTime=Date.now()),gi.x=(ci.touchesCurrent.x-gi.prevPositionX)/(Date.now()-gi.prevTime)/2,gi.y=(ci.touchesCurrent.y-gi.prevPositionY)/(Date.now()-gi.prevTime)/2,Math.abs(ci.touchesCurrent.x-gi.prevPositionX)<2&&(gi.x=0),Math.abs(ci.touchesCurrent.y-gi.prevPositionY)<2&&(gi.y=0),gi.prevPositionX=ci.touchesCurrent.x,gi.prevPositionY=ci.touchesCurrent.y,gi.prevTime=Date.now(),qe.imageWrapEl.style.transform=`translate3d(${ci.currentX}px, ${ci.currentY}px,0)`}function Gi(){const er=_e.zoom;if(!qe.imageEl)return;if(!ci.isTouched||!ci.isMoved){ci.isTouched=!1,ci.isMoved=!1;return}ci.isTouched=!1,ci.isMoved=!1;let Hn=300,Er=300;const os=gi.x*Hn,wi=ci.currentX+os,Zi=gi.y*Er,Qi=ci.currentY+Zi;gi.x!==0&&(Hn=Math.abs((wi-ci.currentX)/gi.x)),gi.y!==0&&(Er=Math.abs((Qi-ci.currentY)/gi.y));const Hi=Math.max(Hn,Er);ci.currentX=wi,ci.currentY=Qi;const vn=ci.width*er.scale,zn=ci.height*er.scale;ci.minX=Math.min(qe.slideWidth/2-vn/2,0),ci.maxX=-ci.minX,ci.minY=Math.min(qe.slideHeight/2-zn/2,0),ci.maxY=-ci.minY,ci.currentX=Math.max(Math.min(ci.currentX,ci.maxX),ci.minX),ci.currentY=Math.max(Math.min(ci.currentY,ci.maxY),ci.minY),qe.imageWrapEl.style.transitionDuration=`${Hi}ms`,qe.imageWrapEl.style.transform=`translate3d(${ci.currentX}px, ${ci.currentY}px,0)`}function fn(){const er=_e.zoom;qe.slideEl&&_e.activeIndex!==_e.slides.indexOf(qe.slideEl)&&(qe.imageEl&&(qe.imageEl.style.transform="translate3d(0,0,0) scale(1)"),qe.imageWrapEl&&(qe.imageWrapEl.style.transform="translate3d(0,0,0)"),qe.slideEl.classList.remove(`${_e.params.zoom.zoomedSlideClass}`),er.scale=1,Ve=1,qe.slideEl=void 0,qe.imageEl=void 0,qe.imageWrapEl=void 0,qe.originX=0,qe.originY=0)}function cn(er){const Hn=_e.zoom,Er=_e.params.zoom;if(!qe.slideEl){er&&er.target&&(qe.slideEl=er.target.closest(`.${_e.params.slideClass}, swiper-slide`)),qe.slideEl||(_e.params.virtual&&_e.params.virtual.enabled&&_e.virtual?qe.slideEl=elementChildren(_e.slidesEl,`.${_e.params.slideActiveClass}`)[0]:qe.slideEl=_e.slides[_e.activeIndex]);let _r=qe.slideEl.querySelector(`.${Er.containerClass}`);_r&&(_r=_r.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),qe.imageEl=_r,_r?qe.imageWrapEl=elementParents(qe.imageEl,`.${Er.containerClass}`)[0]:qe.imageWrapEl=void 0}if(!qe.imageEl||!qe.imageWrapEl)return;_e.params.cssMode&&(_e.wrapperEl.style.overflow="hidden",_e.wrapperEl.style.touchAction="none"),qe.slideEl.classList.add(`${Er.zoomedSlideClass}`);let os,wi,Zi,Qi,Hi,vn,zn,ji,hr,Ri,xs,Ue,bi,Ii,Ji,Mn,En,Fn;typeof ci.touchesStart.x>"u"&&er?(os=er.pageX,wi=er.pageY):(os=ci.touchesStart.x,wi=ci.touchesStart.y);const Cr=typeof er=="number"?er:null;Ve===1&&Cr&&(os=void 0,wi=void 0),Hn.scale=Cr||qe.imageWrapEl.getAttribute("data-swiper-zoom")||Er.maxRatio,Ve=Cr||qe.imageWrapEl.getAttribute("data-swiper-zoom")||Er.maxRatio,er&&!(Ve===1&&Cr)?(En=qe.slideEl.offsetWidth,Fn=qe.slideEl.offsetHeight,Zi=elementOffset(qe.slideEl).left+Fe.scrollX,Qi=elementOffset(qe.slideEl).top+Fe.scrollY,Hi=Zi+En/2-os,vn=Qi+Fn/2-wi,hr=qe.imageEl.offsetWidth,Ri=qe.imageEl.offsetHeight,xs=hr*Hn.scale,Ue=Ri*Hn.scale,bi=Math.min(En/2-xs/2,0),Ii=Math.min(Fn/2-Ue/2,0),Ji=-bi,Mn=-Ii,zn=Hi*Hn.scale,ji=vn*Hn.scale,zn<bi&&(zn=bi),zn>Ji&&(zn=Ji),ji<Ii&&(ji=Ii),ji>Mn&&(ji=Mn)):(zn=0,ji=0),Cr&&Hn.scale===1&&(qe.originX=0,qe.originY=0),qe.imageWrapEl.style.transitionDuration="300ms",qe.imageWrapEl.style.transform=`translate3d(${zn}px, ${ji}px,0)`,qe.imageEl.style.transitionDuration="300ms",qe.imageEl.style.transform=`translate3d(0,0,0) scale(${Hn.scale})`}function Tn(){const er=_e.zoom,Hn=_e.params.zoom;if(!qe.slideEl){_e.params.virtual&&_e.params.virtual.enabled&&_e.virtual?qe.slideEl=elementChildren(_e.slidesEl,`.${_e.params.slideActiveClass}`)[0]:qe.slideEl=_e.slides[_e.activeIndex];let Er=qe.slideEl.querySelector(`.${Hn.containerClass}`);Er&&(Er=Er.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),qe.imageEl=Er,Er?qe.imageWrapEl=elementParents(qe.imageEl,`.${Hn.containerClass}`)[0]:qe.imageWrapEl=void 0}!qe.imageEl||!qe.imageWrapEl||(_e.params.cssMode&&(_e.wrapperEl.style.overflow="",_e.wrapperEl.style.touchAction=""),er.scale=1,Ve=1,qe.imageWrapEl.style.transitionDuration="300ms",qe.imageWrapEl.style.transform="translate3d(0,0,0)",qe.imageEl.style.transitionDuration="300ms",qe.imageEl.style.transform="translate3d(0,0,0) scale(1)",qe.slideEl.classList.remove(`${Hn.zoomedSlideClass}`),qe.slideEl=void 0,qe.originX=0,qe.originY=0)}function Sn(er){const Hn=_e.zoom;Hn.scale&&Hn.scale!==1?Tn():cn(er)}function Cn(){const er=_e.params.passiveListeners?{passive:!0,capture:!1}:!1,Hn=_e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:er,activeListenerWithCapture:Hn}}function tr(){const er=_e.zoom;if(er.enabled)return;er.enabled=!0;const{passiveListener:Hn,activeListenerWithCapture:Er}=Cn();_e.wrapperEl.addEventListener("pointerdown",Di,Hn),_e.wrapperEl.addEventListener("pointermove",zi,Er),["pointerup","pointercancel","pointerout"].forEach(os=>{_e.wrapperEl.addEventListener(os,an,Hn)}),_e.wrapperEl.addEventListener("pointermove",fi,Er)}function xr(){const er=_e.zoom;if(!er.enabled)return;er.enabled=!1;const{passiveListener:Hn,activeListenerWithCapture:Er}=Cn();_e.wrapperEl.removeEventListener("pointerdown",Di,Hn),_e.wrapperEl.removeEventListener("pointermove",zi,Er),["pointerup","pointercancel","pointerout"].forEach(os=>{_e.wrapperEl.removeEventListener(os,an,Hn)}),_e.wrapperEl.removeEventListener("pointermove",fi,Er)}ke("init",()=>{_e.params.zoom.enabled&&tr()}),ke("destroy",()=>{xr()}),ke("touchStart",(er,Hn)=>{_e.zoom.enabled&&Je(Hn)}),ke("touchEnd",(er,Hn)=>{_e.zoom.enabled&&Gi()}),ke("doubleTap",(er,Hn)=>{!_e.animating&&_e.params.zoom.enabled&&_e.zoom.enabled&&_e.params.zoom.toggle&&Sn(Hn)}),ke("transitionEnd",()=>{_e.zoom.enabled&&_e.params.zoom.enabled&&fn()}),ke("slideChange",()=>{_e.zoom.enabled&&_e.params.zoom.enabled&&_e.params.cssMode&&fn()}),Object.assign(_e.zoom,{enable:tr,disable:xr,in:cn,out:Tn,toggle:Sn})}function Controller(De){let{swiper:_e,extendParams:Ae,on:ke}=De;Ae({controller:{control:void 0,inverse:!1,by:"slide"}}),_e.controller={control:void 0};function Le(Ke,$e){const qe=function(){let oi,ii,hi;return(Ei,Li)=>{for(ii=-1,oi=Ei.length;oi-ii>1;)hi=oi+ii>>1,Ei[hi]<=Li?ii=hi:oi=hi;return oi}}();this.x=Ke,this.y=$e,this.lastIndex=Ke.length-1;let ci,gi;return this.interpolate=function(oi){return oi?(gi=qe(this.x,oi),ci=gi-1,(oi-this.x[ci])*(this.y[gi]-this.y[ci])/(this.x[gi]-this.x[ci])+this.y[ci]):0},this}function Fe(Ke){_e.controller.spline=_e.params.loop?new Le(_e.slidesGrid,Ke.slidesGrid):new Le(_e.snapGrid,Ke.snapGrid)}function Ve(Ke,$e){const qe=_e.controller.control;let ci,gi;const Ai=_e.constructor;function oi(ii){if(ii.destroyed)return;const hi=_e.rtlTranslate?-_e.translate:_e.translate;_e.params.controller.by==="slide"&&(Fe(ii),gi=-_e.controller.spline.interpolate(-hi)),(!gi||_e.params.controller.by==="container")&&(ci=(ii.maxTranslate()-ii.minTranslate())/(_e.maxTranslate()-_e.minTranslate()),(Number.isNaN(ci)||!Number.isFinite(ci))&&(ci=1),gi=(hi-_e.minTranslate())*ci+ii.minTranslate()),_e.params.controller.inverse&&(gi=ii.maxTranslate()-gi),ii.updateProgress(gi),ii.setTranslate(gi,_e),ii.updateActiveIndex(),ii.updateSlidesClasses()}if(Array.isArray(qe))for(let ii=0;ii<qe.length;ii+=1)qe[ii]!==$e&&qe[ii]instanceof Ai&&oi(qe[ii]);else qe instanceof Ai&&$e!==qe&&oi(qe)}function Ie(Ke,$e){const qe=_e.constructor,ci=_e.controller.control;let gi;function Ai(oi){oi.destroyed||(oi.setTransition(Ke,_e),Ke!==0&&(oi.transitionStart(),oi.params.autoHeight&&nextTick(()=>{oi.updateAutoHeight()}),elementTransitionEnd(oi.wrapperEl,()=>{ci&&oi.transitionEnd()})))}if(Array.isArray(ci))for(gi=0;gi<ci.length;gi+=1)ci[gi]!==$e&&ci[gi]instanceof qe&&Ai(ci[gi]);else ci instanceof qe&&$e!==ci&&Ai(ci)}function je(){_e.controller.control&&_e.controller.spline&&(_e.controller.spline=void 0,delete _e.controller.spline)}ke("beforeInit",()=>{if(typeof window<"u"&&(typeof _e.params.controller.control=="string"||_e.params.controller.control instanceof HTMLElement)){const Ke=document.querySelector(_e.params.controller.control);if(Ke&&Ke.swiper)_e.controller.control=Ke.swiper;else if(Ke){const $e=qe=>{_e.controller.control=qe.detail[0],_e.update(),Ke.removeEventListener("init",$e)};Ke.addEventListener("init",$e)}return}_e.controller.control=_e.params.controller.control}),ke("update",()=>{je()}),ke("resize",()=>{je()}),ke("observerUpdate",()=>{je()}),ke("setTranslate",(Ke,$e,qe)=>{!_e.controller.control||_e.controller.control.destroyed||_e.controller.setTranslate($e,qe)}),ke("setTransition",(Ke,$e,qe)=>{!_e.controller.control||_e.controller.control.destroyed||_e.controller.setTransition($e,qe)}),Object.assign(_e.controller,{setTranslate:Ve,setTransition:Ie})}function A11y(De){let{swiper:_e,extendParams:Ae,on:ke}=De;Ae({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),_e.a11y={clicked:!1};let Le=null;function Fe(Cn){const tr=Le;tr.length!==0&&(tr.innerHTML="",tr.innerHTML=Cn)}const Ve=Cn=>(Array.isArray(Cn)?Cn:[Cn]).filter(tr=>!!tr);function Ie(Cn){Cn===void 0&&(Cn=16);const tr=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(Cn).replace(/x/g,tr)}function je(Cn){Cn=Ve(Cn),Cn.forEach(tr=>{tr.setAttribute("tabIndex","0")})}function Ke(Cn){Cn=Ve(Cn),Cn.forEach(tr=>{tr.setAttribute("tabIndex","-1")})}function $e(Cn,tr){Cn=Ve(Cn),Cn.forEach(xr=>{xr.setAttribute("role",tr)})}function qe(Cn,tr){Cn=Ve(Cn),Cn.forEach(xr=>{xr.setAttribute("aria-roledescription",tr)})}function ci(Cn,tr){Cn=Ve(Cn),Cn.forEach(xr=>{xr.setAttribute("aria-controls",tr)})}function gi(Cn,tr){Cn=Ve(Cn),Cn.forEach(xr=>{xr.setAttribute("aria-label",tr)})}function Ai(Cn,tr){Cn=Ve(Cn),Cn.forEach(xr=>{xr.setAttribute("id",tr)})}function oi(Cn,tr){Cn=Ve(Cn),Cn.forEach(xr=>{xr.setAttribute("aria-live",tr)})}function ii(Cn){Cn=Ve(Cn),Cn.forEach(tr=>{tr.setAttribute("aria-disabled",!0)})}function hi(Cn){Cn=Ve(Cn),Cn.forEach(tr=>{tr.setAttribute("aria-disabled",!1)})}function Ei(Cn){if(Cn.keyCode!==13&&Cn.keyCode!==32)return;const tr=_e.params.a11y,xr=Cn.target;_e.pagination&&_e.pagination.el&&(xr===_e.pagination.el||_e.pagination.el.contains(Cn.target))&&!Cn.target.matches(classesToSelector(_e.params.pagination.bulletClass))||(_e.navigation&&_e.navigation.nextEl&&xr===_e.navigation.nextEl&&(_e.isEnd&&!_e.params.loop||_e.slideNext(),_e.isEnd?Fe(tr.lastSlideMessage):Fe(tr.nextSlideMessage)),_e.navigation&&_e.navigation.prevEl&&xr===_e.navigation.prevEl&&(_e.isBeginning&&!_e.params.loop||_e.slidePrev(),_e.isBeginning?Fe(tr.firstSlideMessage):Fe(tr.prevSlideMessage)),_e.pagination&&xr.matches(classesToSelector(_e.params.pagination.bulletClass))&&xr.click())}function Li(){if(_e.params.loop||_e.params.rewind||!_e.navigation)return;const{nextEl:Cn,prevEl:tr}=_e.navigation;tr&&(_e.isBeginning?(ii(tr),Ke(tr)):(hi(tr),je(tr))),Cn&&(_e.isEnd?(ii(Cn),Ke(Cn)):(hi(Cn),je(Cn)))}function Di(){return _e.pagination&&_e.pagination.bullets&&_e.pagination.bullets.length}function zi(){return Di()&&_e.params.pagination.clickable}function an(){const Cn=_e.params.a11y;Di()&&_e.pagination.bullets.forEach(tr=>{_e.params.pagination.clickable&&(je(tr),_e.params.pagination.renderBullet||($e(tr,"button"),gi(tr,Cn.paginationBulletMessage.replace(/\{\{index\}\}/,elementIndex(tr)+1)))),tr.matches(classesToSelector(_e.params.pagination.bulletActiveClass))?tr.setAttribute("aria-current","true"):tr.removeAttribute("aria-current")})}const Je=(Cn,tr,xr)=>{je(Cn),Cn.tagName!=="BUTTON"&&($e(Cn,"button"),Cn.addEventListener("keydown",Ei)),gi(Cn,xr),ci(Cn,tr)},fi=()=>{_e.a11y.clicked=!0},Gi=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{_e.destroyed||(_e.a11y.clicked=!1)})})},fn=Cn=>{if(_e.a11y.clicked)return;const tr=Cn.target.closest(`.${_e.params.slideClass}, swiper-slide`);if(!tr||!_e.slides.includes(tr))return;const xr=_e.slides.indexOf(tr)===_e.activeIndex,er=_e.params.watchSlidesProgress&&_e.visibleSlides&&_e.visibleSlides.includes(tr);xr||er||Cn.sourceCapabilities&&Cn.sourceCapabilities.firesTouchEvents||(_e.isHorizontal()?_e.el.scrollLeft=0:_e.el.scrollTop=0,_e.slideTo(_e.slides.indexOf(tr),0))},cn=()=>{const Cn=_e.params.a11y;Cn.itemRoleDescriptionMessage&&qe(_e.slides,Cn.itemRoleDescriptionMessage),Cn.slideRole&&$e(_e.slides,Cn.slideRole);const tr=_e.slides.length;
44Cn.slideLabelMessage&&_e.slides.forEach((xr,er)=>{const Hn=_e.params.loop?parseInt(xr.getAttribute("data-swiper-slide-index"),10):er,Er=Cn.slideLabelMessage.replace(/\{\{index\}\}/,Hn+1).replace(/\{\{slidesLength\}\}/,tr);gi(xr,Er)})},Tn=()=>{const Cn=_e.params.a11y;_e.el.append(Le);const tr=_e.el;Cn.containerRoleDescriptionMessage&&qe(tr,Cn.containerRoleDescriptionMessage),Cn.containerMessage&&gi(tr,Cn.containerMessage);const xr=_e.wrapperEl,er=Cn.id||xr.getAttribute("id")||`swiper-wrapper-${Ie(16)}`,Hn=_e.params.autoplay&&_e.params.autoplay.enabled?"off":"polite";Ai(xr,er),oi(xr,Hn),cn();let{nextEl:Er,prevEl:os}=_e.navigation?_e.navigation:{};Er=Ve(Er),os=Ve(os),Er&&Er.forEach(wi=>Je(wi,er,Cn.nextSlideMessage)),os&&os.forEach(wi=>Je(wi,er,Cn.prevSlideMessage)),zi()&&(Array.isArray(_e.pagination.el)?_e.pagination.el:[_e.pagination.el]).forEach(Zi=>{Zi.addEventListener("keydown",Ei)}),_e.el.addEventListener("focus",fn,!0),_e.el.addEventListener("pointerdown",fi,!0),_e.el.addEventListener("pointerup",Gi,!0)};function Sn(){Le&&Le.remove();let{nextEl:Cn,prevEl:tr}=_e.navigation?_e.navigation:{};Cn=Ve(Cn),tr=Ve(tr),Cn&&Cn.forEach(xr=>xr.removeEventListener("keydown",Ei)),tr&&tr.forEach(xr=>xr.removeEventListener("keydown",Ei)),zi()&&(Array.isArray(_e.pagination.el)?_e.pagination.el:[_e.pagination.el]).forEach(er=>{er.removeEventListener("keydown",Ei)}),_e.el.removeEventListener("focus",fn,!0),_e.el.removeEventListener("pointerdown",fi,!0),_e.el.removeEventListener("pointerup",Gi,!0)}ke("beforeInit",()=>{Le=createElement("span",_e.params.a11y.notificationClass),Le.setAttribute("aria-live","assertive"),Le.setAttribute("aria-atomic","true")}),ke("afterInit",()=>{_e.params.a11y.enabled&&Tn()}),ke("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{_e.params.a11y.enabled&&cn()}),ke("fromEdge toEdge afterInit lock unlock",()=>{_e.params.a11y.enabled&&Li()}),ke("paginationUpdate",()=>{_e.params.a11y.enabled&&an()}),ke("destroy",()=>{_e.params.a11y.enabled&&Sn()})}function History(De){let{swiper:_e,extendParams:Ae,on:ke}=De;Ae({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let Le=!1,Fe={};const Ve=gi=>gi.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),Ie=gi=>{const Ai=getWindow$1();let oi;gi?oi=new URL(gi):oi=Ai.location;const ii=oi.pathname.slice(1).split("/").filter(Di=>Di!==""),hi=ii.length,Ei=ii[hi-2],Li=ii[hi-1];return{key:Ei,value:Li}},je=(gi,Ai)=>{const oi=getWindow$1();if(!Le||!_e.params.history.enabled)return;let ii;_e.params.url?ii=new URL(_e.params.url):ii=oi.location;const hi=_e.slides[Ai];let Ei=Ve(hi.getAttribute("data-history"));if(_e.params.history.root.length>0){let Di=_e.params.history.root;Di[Di.length-1]==="/"&&(Di=Di.slice(0,Di.length-1)),Ei=`${Di}/${gi?`${gi}/`:""}${Ei}`}else ii.pathname.includes(gi)||(Ei=`${gi?`${gi}/`:""}${Ei}`);_e.params.history.keepQuery&&(Ei+=ii.search);const Li=oi.history.state;Li&&Li.value===Ei||(_e.params.history.replaceState?oi.history.replaceState({value:Ei},null,Ei):oi.history.pushState({value:Ei},null,Ei))},Ke=(gi,Ai,oi)=>{if(Ai)for(let ii=0,hi=_e.slides.length;ii<hi;ii+=1){const Ei=_e.slides[ii];if(Ve(Ei.getAttribute("data-history"))===Ai){const Di=_e.getSlideIndex(Ei);_e.slideTo(Di,gi,oi)}}else _e.slideTo(0,gi,oi)},$e=()=>{Fe=Ie(_e.params.url),Ke(_e.params.speed,Fe.value,!1)},qe=()=>{const gi=getWindow$1();if(_e.params.history){if(!gi.history||!gi.history.pushState){_e.params.history.enabled=!1,_e.params.hashNavigation.enabled=!0;return}if(Le=!0,Fe=Ie(_e.params.url),!Fe.key&&!Fe.value){_e.params.history.replaceState||gi.addEventListener("popstate",$e);return}Ke(0,Fe.value,_e.params.runCallbacksOnInit),_e.params.history.replaceState||gi.addEventListener("popstate",$e)}},ci=()=>{const gi=getWindow$1();_e.params.history.replaceState||gi.removeEventListener("popstate",$e)};ke("init",()=>{_e.params.history.enabled&&qe()}),ke("destroy",()=>{_e.params.history.enabled&&ci()}),ke("transitionEnd _freeModeNoMomentumRelease",()=>{Le&&je(_e.params.history.key,_e.activeIndex)}),ke("slideChange",()=>{Le&&_e.params.cssMode&&je(_e.params.history.key,_e.activeIndex)})}function HashNavigation(De){let{swiper:_e,extendParams:Ae,emit:ke,on:Le}=De,Fe=!1;const Ve=getDocument(),Ie=getWindow$1();Ae({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(ci,gi){if(_e.virtual&&_e.params.virtual.enabled){const Ai=_e.slides.filter(ii=>ii.getAttribute("data-hash")===gi)[0];return Ai?parseInt(Ai.getAttribute("data-swiper-slide-index"),10):0}return _e.getSlideIndex(elementChildren(_e.slidesEl,`.${_e.params.slideClass}[data-hash="${gi}"], swiper-slide[data-hash="${gi}"]`)[0])}}});const je=()=>{ke("hashChange");const ci=Ve.location.hash.replace("#",""),gi=_e.virtual&&_e.params.virtual.enabled?_e.slidesEl.querySelector(`[data-swiper-slide-index="${_e.activeIndex}"]`):_e.slides[_e.activeIndex],Ai=gi?gi.getAttribute("data-hash"):"";if(ci!==Ai){const oi=_e.params.hashNavigation.getSlideIndex(_e,ci);if(typeof oi>"u"||Number.isNaN(oi))return;_e.slideTo(oi)}},Ke=()=>{if(!Fe||!_e.params.hashNavigation.enabled)return;const ci=_e.virtual&&_e.params.virtual.enabled?_e.slidesEl.querySelector(`[data-swiper-slide-index="${_e.activeIndex}"]`):_e.slides[_e.activeIndex],gi=ci?ci.getAttribute("data-hash")||ci.getAttribute("data-history"):"";_e.params.hashNavigation.replaceState&&Ie.history&&Ie.history.replaceState?(Ie.history.replaceState(null,null,`#${gi}`||""),ke("hashSet")):(Ve.location.hash=gi||"",ke("hashSet"))},$e=()=>{if(!_e.params.hashNavigation.enabled||_e.params.history&&_e.params.history.enabled)return;Fe=!0;const ci=Ve.location.hash.replace("#","");if(ci){const Ai=_e.params.hashNavigation.getSlideIndex(_e,ci);_e.slideTo(Ai||0,0,_e.params.runCallbacksOnInit,!0)}_e.params.hashNavigation.watchState&&Ie.addEventListener("hashchange",je)},qe=()=>{_e.params.hashNavigation.watchState&&Ie.removeEventListener("hashchange",je)};Le("init",()=>{_e.params.hashNavigation.enabled&&$e()}),Le("destroy",()=>{_e.params.hashNavigation.enabled&&qe()}),Le("transitionEnd _freeModeNoMomentumRelease",()=>{Fe&&Ke()}),Le("slideChange",()=>{Fe&&_e.params.cssMode&&Ke()})}function Autoplay(De){let{swiper:_e,extendParams:Ae,on:ke,emit:Le,params:Fe}=De;_e.autoplay={running:!1,paused:!1,timeLeft:0}
vendor: 4,923 bytes, line 44
44,Ae({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let Ve,Ie,je=Fe&&Fe.autoplay?Fe.autoplay.delay:3e3,Ke=Fe&&Fe.autoplay?Fe.autoplay.delay:3e3,$e,qe=new Date().getTime,ci,gi,Ai,oi,ii,hi;function Ei(er){!_e||_e.destroyed||!_e.wrapperEl||er.target===_e.wrapperEl&&(_e.wrapperEl.removeEventListener("transitionend",Ei),Gi())}const Li=()=>{if(_e.destroyed||!_e.autoplay.running)return;_e.autoplay.paused?ci=!0:ci&&(Ke=$e,ci=!1);const er=_e.autoplay.paused?$e:qe+Ke-new Date().getTime();_e.autoplay.timeLeft=er,Le("autoplayTimeLeft",er,er/je),Ie=requestAnimationFrame(()=>{Li()})},Di=()=>{let er;return _e.virtual&&_e.params.virtual.enabled?er=_e.slides.filter(Er=>Er.classList.contains("swiper-slide-active"))[0]:er=_e.slides[_e.activeIndex],er?parseInt(er.getAttribute("data-swiper-autoplay"),10):void 0},zi=er=>{if(_e.destroyed||!_e.autoplay.running)return;cancelAnimationFrame(Ie),Li();let Hn=typeof er>"u"?_e.params.autoplay.delay:er;je=_e.params.autoplay.delay,Ke=_e.params.autoplay.delay;const Er=Di();!Number.isNaN(Er)&&Er>0&&typeof er>"u"&&(Hn=Er,je=Er,Ke=Er),$e=Hn;const os=_e.params.speed,wi=()=>{!_e||_e.destroyed||(_e.params.autoplay.reverseDirection?!_e.isBeginning||_e.params.loop||_e.params.rewind?(_e.slidePrev(os,!0,!0),Le("autoplay")):_e.params.autoplay.stopOnLastSlide||(_e.slideTo(_e.slides.length-1,os,!0,!0),Le("autoplay")):!_e.isEnd||_e.params.loop||_e.params.rewind?(_e.slideNext(os,!0,!0),Le("autoplay")):_e.params.autoplay.stopOnLastSlide||(_e.slideTo(0,os,!0,!0),Le("autoplay")),_e.params.cssMode&&(qe=new Date().getTime(),requestAnimationFrame(()=>{zi()})))};return Hn>0?(clearTimeout(Ve),Ve=setTimeout(()=>{wi()},Hn)):requestAnimationFrame(()=>{wi()}),Hn},an=()=>{_e.autoplay.running=!0,zi(),Le("autoplayStart")},Je=()=>{_e.autoplay.running=!1,clearTimeout(Ve),cancelAnimationFrame(Ie),Le("autoplayStop")},fi=(er,Hn)=>{if(_e.destroyed||!_e.autoplay.running)return;clearTimeout(Ve),er||(hi=!0);const Er=()=>{Le("autoplayPause"),_e.params.autoplay.waitForTransition?_e.wrapperEl.addEventListener("transitionend",Ei):Gi()};if(_e.autoplay.paused=!0,Hn){ii&&($e=_e.params.autoplay.delay),ii=!1,Er();return}$e=($e||_e.params.autoplay.delay)-(new Date().getTime()-qe),!(_e.isEnd&&$e<0&&!_e.params.loop)&&($e<0&&($e=0),Er())},Gi=()=>{_e.isEnd&&$e<0&&!_e.params.loop||_e.destroyed||!_e.autoplay.running||(qe=new Date().getTime(),hi?(hi=!1,zi($e)):zi(),_e.autoplay.paused=!1,Le("autoplayResume"))},fn=()=>{if(_e.destroyed||!_e.autoplay.running)return;const er=getDocument();er.visibilityState==="hidden"&&(hi=!0,fi(!0)),er.visibilityState==="visible"&&Gi()},cn=er=>{er.pointerType==="mouse"&&(hi=!0,!(_e.animating||_e.autoplay.paused)&&fi(!0))},Tn=er=>{er.pointerType==="mouse"&&_e.autoplay.paused&&Gi()},Sn=()=>{_e.params.autoplay.pauseOnMouseEnter&&(_e.el.addEventListener("pointerenter",cn),_e.el.addEventListener("pointerleave",Tn))},Cn=()=>{_e.el.removeEventListener("pointerenter",cn),_e.el.removeEventListener("pointerleave",Tn)},tr=()=>{getDocument().addEventListener("visibilitychange",fn)},xr=()=>{getDocument().removeEventListener("visibilitychange",fn)};ke("init",()=>{_e.params.autoplay.enabled&&(Sn(),tr(),qe=new Date().getTime(),an())}),ke("destroy",()=>{Cn(),xr(),_e.autoplay.running&&Je()}),ke("beforeTransitionStart",(er,Hn,Er)=>{_e.destroyed||!_e.autoplay.running||(Er||!_e.params.autoplay.disableOnInteraction?fi(!0,!0):Je())}),ke("sliderFirstMove",()=>{if(!(_e.destroyed||!_e.autoplay.running)){if(_e.params.autoplay.disableOnInteraction){Je();return}gi=!0,Ai=!1,hi=!1,oi=setTimeout(()=>{hi=!0,Ai=!0,fi(!0)},200)}}),ke("touchEnd",()=>{if(!(_e.destroyed||!_e.autoplay.running||!gi)){if(clearTimeout(oi),clearTimeout(Ve),_e.params.autoplay.disableOnInteraction){Ai=!1,gi=!1;return}Ai&&_e.params.cssMode&&Gi(),Ai=!1,gi=!1}}),ke("slideChange",()=>{_e.destroyed||!_e.autoplay.running||(ii=!0)}),Object.assign(_e.autoplay,{start:an,stop:Je,pause:fi,resume:Gi})}function Thumb(De){let{swiper:_e,extendParams:Ae,on:ke}=De;Ae({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let Le=!1,Fe=!1;_e.thumbs={swiper:null};function Ve(){const Ke=_e.thumbs.swiper;if(!Ke||Ke.destroyed)return;const $e=Ke.clickedIndex,qe=Ke.clickedSlide;if(qe&&qe.classList.contains(_e.params.thumbs.slideThumbActiveClass)||typeof $e>"u"||$e===null)return;let ci;Ke.params.loop?ci=parseInt(Ke.clickedSlide.getAttribute("data-swiper-slide-index"),10):ci=$e,_e.params.loop?_e.slideToLoop(ci):_e.slideTo(ci)}function Ie(){const{thumbs:Ke}=_e.params;if(Le)return!1;Le=!0;const $e=_e.constructor;if(Ke.swiper instanceof $e)_e.thumbs.swiper=Ke.swiper,Object.assign(_e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(_e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}
44),_e.thumbs.swiper.update();else if(isObject$1(Ke.swiper)){const qe=Object.assign({},Ke.swiper);Object.assign(qe,{watchSlidesProgress:!0,slideToClickedSlide:!1}),_e.thumbs.swiper=new $e(qe),Fe=!0}return _e.thumbs.swiper.el.classList.add(_e.params.thumbs.thumbsContainerClass),_e.thumbs.swiper.on("tap",Ve),!0}function je(Ke){const $e=_e.thumbs.swiper;if(!$e||$e.destroyed)return;const qe=$e.params.slidesPerView==="auto"?$e.slidesPerViewDynamic():$e.params.slidesPerView;let ci=1;const gi=_e.params.thumbs.slideThumbActiveClass;if(_e.params.slidesPerView>1&&!_e.params.centeredSlides&&(ci=_e.params.slidesPerView),_e.params.thumbs.multipleActiveThumbs||(ci=1),ci=Math.floor(ci),$e.slides.forEach(ii=>ii.classList.remove(gi)),$e.params.loop||$e.params.virtual&&$e.params.virtual.enabled)for(let ii=0;ii<ci;ii+=1)elementChildren($e.slidesEl,`[data-swiper-slide-index="${_e.realIndex+ii}"]`).forEach(hi=>{hi.classList.add(gi)});else for(let ii=0;ii<ci;ii+=1)$e.slides[_e.realIndex+ii]&&$e.slides[_e.realIndex+ii].classList.add(gi);const Ai=_e.params.thumbs.autoScrollOffset,oi=Ai&&!$e.params.loop;if(_e.realIndex!==$e.realIndex||oi){const ii=$e.activeIndex;let hi,Ei;if($e.params.loop){const Li=$e.slides.filter(Di=>Di.getAttribute("data-swiper-slide-index")===`${_e.realIndex}`)[0];hi=$e.slides.indexOf(Li),Ei=_e.activeIndex>_e.previousIndex?"next":"prev"}else hi=_e.realIndex,Ei=hi>_e.previousIndex?"next":"prev";oi&&(hi+=Ei==="next"?Ai:-1*Ai),$e.visibleSlidesIndexes&&$e.visibleSlidesIndexes.indexOf(hi)<0&&($e.params.centeredSlides?hi>ii?hi=hi-Math.floor(qe/2)+1:hi=hi+Math.floor(qe/2)-1:hi>ii&&$e.params.slidesPerGroup,$e.slideTo(hi,Ke?0:void 0))}}ke("beforeInit",()=>{const{thumbs:Ke}=_e.params;if(!(!Ke||!Ke.swiper))if(typeof Ke.swiper=="string"||Ke.swiper instanceof HTMLElement){const $e=getDocument(),qe=()=>{const gi=typeof Ke.swiper=="string"?$e.querySelector(Ke.swiper):Ke.swiper;if(gi&&gi.swiper)Ke.swiper=gi.swiper,Ie(),je(!0);else if(gi){const Ai=oi=>{Ke.swiper=oi.detail[0],gi.removeEventListener("init",Ai),Ie(),je(!0),Ke.swiper.update(),_e.update()};gi.addEventListener("init",Ai)}return gi},ci=()=>{if(_e.destroyed)return;qe()||requestAnimationFrame(ci)};requestAnimationFrame(ci)}else Ie(),je(!0)}),ke("slideChange update resize observerUpdate",()=>{je()}),ke("setTransition",(Ke,$e)=>{const qe=_e.thumbs.swiper;!qe||qe.destroyed||qe.setTransition($e)}),ke("beforeDestroy",()=>{const Ke=_e.thumbs.swiper;!Ke||Ke.destroyed||Fe&&Ke.destroy()}),Object.assign(_e.thumbs,{init:Ie,update:je})}function freeMode(De){let{swiper:_e,extendParams:Ae,emit:ke,once:Le}=De;Ae({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function Fe(){if(_e.params.cssMode)return;const je=_e.getTranslate();_e.setTranslate(je),_e.setTransition(0),_e.touchEventsData.velocities.length=0,_e.freeMode.onTouchEnd({currentPos:_e.rtl?_e.translate:-_e.translate})}function Ve(){if(_e.params.cssMode)return;const{touchEventsData:je,touches:Ke}=_e;je.velocities.length===0&&je.velocities.push({position:Ke[_e.isHorizontal()?"startX":"startY"],time:je.touchStartTime}),je.velocities.push({position:Ke[_e.isHorizontal()?"currentX":"currentY"],time:now()})}function Ie(je){let{currentPos:Ke}=je;if(_e.params.cssMode)return;const{params:$e,wrapperEl:qe,rtlTranslate:ci,snapGrid:gi,touchEventsData:Ai}=_e,ii=now()-Ai.touchStartTime;if(Ke<-_e.minTranslate()){_e.slideTo(_e.activeIndex);return}if(Ke>-_e.maxTranslate()){_e.slides.length<gi.length?_e.slideTo(gi.length-1):_e.slideTo(_e.slides.length-1);return}if($e.freeMode.momentum){if(Ai.velocities.length>1){const fi=Ai.velocities.pop(),Gi=Ai.velocities.pop(),fn=fi.position-Gi.position,cn=fi.time-Gi.time;_e.velocity=fn/cn,_e.velocity/=2,Math.abs(_e.velocity)<$e.freeMode.minimumVelocity&&(_e.velocity=0),(cn>150||now()-fi.time>300)&&(_e.velocity=0)}else _e.velocity=0;_e.velocity*=$e.freeMode.momentumVelocityRatio,Ai.velocities.length=0;let hi=1e3*$e.freeMode.momentumRatio;const Ei=_e.velocity*hi;let Li=_e.translate+Ei;ci&&(Li=-Li);let Di=!1,zi;const an=Math.abs(_e.velocity)*20*$e.freeMode.momentumBounceRatio;let Je;if(Li<_e.maxTranslate())$e.freeMode.momentumBounce?(Li+_e.maxTranslate()<-an&&(Li=_e.maxTranslate()-an),zi=_e.maxTranslate(),Di=!0,Ai.allowMomentumBounce
44=!0):Li=_e.maxTranslate(),$e.loop&&$e.centeredSlides&&(Je=!0);else if(Li>_e.minTranslate())$e.freeMode.momentumBounce?(Li-_e.minTranslate()>an&&(Li=_e.minTranslate()+an),zi=_e.minTranslate(),Di=!0,Ai.allowMomentumBounce=!0):Li=_e.minTranslate(),$e.loop&&$e.centeredSlides&&(Je=!0);else if($e.freeMode.sticky){let fi;for(let Gi=0;Gi<gi.length;Gi+=1)if(gi[Gi]>-Li){fi=Gi;break}Math.abs(gi[fi]-Li)<Math.abs(gi[fi-1]-Li)||_e.swipeDirection==="next"?Li=gi[fi]:Li=gi[fi-1],Li=-Li}if(Je&&Le("transitionEnd",()=>{_e.loopFix()}),_e.velocity!==0){if(ci?hi=Math.abs((-Li-_e.translate)/_e.velocity):hi=Math.abs((Li-_e.translate)/_e.velocity),$e.freeMode.sticky){const fi=Math.abs((ci?-Li:Li)-_e.translate),Gi=_e.slidesSizesGrid[_e.activeIndex];fi<Gi?hi=$e.speed:fi<2*Gi?hi=$e.speed*1.5:hi=$e.speed*2.5}}else if($e.freeMode.sticky){_e.slideToClosest();return}$e.freeMode.momentumBounce&&Di?(_e.updateProgress(zi),_e.setTransition(hi),_e.setTranslate(Li),_e.transitionStart(!0,_e.swipeDirection),_e.animating=!0,elementTransitionEnd(qe,()=>{!_e||_e.destroyed||!Ai.allowMomentumBounce||(ke("momentumBounce"),_e.setTransition($e.speed),setTimeout(()=>{_e.setTranslate(zi),elementTransitionEnd(qe,()=>{!_e||_e.destroyed||_e.transitionEnd()})},0))})):_e.velocity?(ke("_freeModeNoMomentumRelease"),_e.updateProgress(Li),_e.setTransition(hi),_e.setTranslate(Li),_e.transitionStart(!0,_e.swipeDirection),_e.animating||(_e.animating=!0,elementTransitionEnd(qe,()=>{!_e||_e.destroyed||_e.transitionEnd()}))):_e.updateProgress(Li),_e.updateActiveIndex(),_e.updateSlidesClasses()}else if($e.freeMode.sticky){_e.slideToClosest();return}else $e.freeMode&&ke("_freeModeNoMomentumRelease");(!$e.freeMode.momentum||ii>=$e.longSwipesMs)&&(_e.updateProgress(),_e.updateActiveIndex(),_e.updateSlidesClasses())}Object.assign(_e,{freeMode:{onTouchStart:Fe,onTouchMove:Ve,onTouchEnd:Ie}})}function Grid(De){let{swiper:_e,extendParams:Ae,on:ke}=De;Ae({grid:{rows:1,fill:"column"}});let Le,Fe,Ve,Ie;const je=()=>{let Ai=_e.params.spaceBetween;return typeof Ai=="string"&&Ai.indexOf("%")>=0?Ai=parseFloat(Ai.replace("%",""))/100*_e.size:typeof Ai=="string"&&(Ai=parseFloat(Ai)),Ai},Ke=Ai=>{const{slidesPerView:oi}=_e.params,{rows:ii,fill:hi}=_e.params.grid;Ve=Math.floor(Ai/ii),Math.floor(Ai/ii)===Ai/ii?Le=Ai:Le=Math.ceil(Ai/ii)*ii,oi!=="auto"&&hi==="row"&&(Le=Math.max(Le,oi*ii)),Fe=Le/ii},$e=(Ai,oi,ii,hi)=>{const{slidesPerGroup:Ei}=_e.params,Li=je(),{rows:Di,fill:zi}=_e.params.grid;let an,Je,fi;if(zi==="row"&&Ei>1){const Gi=Math.floor(Ai/(Ei*Di)),fn=Ai-Di*Ei*Gi,cn=Gi===0?Ei:Math.min(Math.ceil((ii-Gi*Di*Ei)/Di),Ei);fi=Math.floor(fn/cn),Je=fn-fi*cn+Gi*Ei,an=Je+fi*Le/Di,oi.style.order=an}else zi==="column"?(Je=Math.floor(Ai/Di),fi=Ai-Je*Di,(Je>Ve||Je===Ve&&fi===Di-1)&&(fi+=1,fi>=Di&&(fi=0,Je+=1))):(fi=Math.floor(Ai/Fe),Je=Ai-fi*Fe);oi.row=fi,oi.column=Je,oi.style[hi("margin-top")]=fi!==0?Li&&`${Li}px`:""},qe=(Ai,oi,ii)=>{const{centeredSlides:hi,roundLengths:Ei}=_e.params,Li=je(),{rows:Di}=_e.params.grid;if(_e.virtualSize=(Ai+Li)*Le,_e.virtualSize=Math.ceil(_e.virtualSize/Di)-Li,_e.wrapperEl.style[ii("width")]=`${_e.virtualSize+Li}px`,hi){const zi=[];for(let an=0;an<oi.length;an+=1){let Je=oi[an];Ei&&(Je=Math.floor(Je)),oi[an]<_e.virtualSize+oi[0]&&zi.push(Je)}oi.splice(0,oi.length),oi.push(...zi)}},ci=()=>{Ie=_e.params.grid&&_e.params.grid.rows>1},gi=()=>{const{params:Ai,el:oi}=_e,ii=Ai.grid&&Ai.grid.rows>1;Ie&&!ii?(oi.classList.remove(`${Ai.containerModifierClass}grid`,`${Ai.containerModifierClass}grid-column`),Ve=1,_e.emitContainerClasses()):!Ie&&ii&&(oi.classList.add(`${Ai.containerModifierClass}grid`),Ai.grid.fill==="column"&&oi.classList.add(`${Ai.containerModifierClass}grid-column`),_e.emitContainerClasses()),Ie=ii};ke("init",ci),ke("update",gi),_e.grid={initSlides:Ke,updateSlide:$e,updateWrapperSize:qe}}function appendSlide(De){const _e=this,{params:Ae,slidesEl:ke}=_e;Ae.loop&&_e.loopDestroy();const Le=Fe=>{if(typeof Fe=="string"){const Ve=document.createElement("div");Ve.innerHTML=Fe,ke.append(Ve.children[0]),Ve.innerHTML=""}else ke.append(Fe)};if(typeof De=="object"&&"length"in De)for(let Fe=0;Fe<De.length;
44Fe+=1)De[Fe]&&Le(De[Fe]);else Le(De);_e.recalcSlides(),Ae.loop&&_e.loopCreate(),(!Ae.observer||_e.isElement)&&_e.update()}function prependSlide(De){const _e=this,{params:Ae,activeIndex:ke,slidesEl:Le}=_e;Ae.loop&&_e.loopDestroy();let Fe=ke+1;const Ve=Ie=>{if(typeof Ie=="string"){const je=document.createElement("div");je.innerHTML=Ie,Le.prepend(je.children[0]),je.innerHTML=""}else Le.prepend(Ie)};if(typeof De=="object"&&"length"in De){for(let Ie=0;Ie<De.length;Ie+=1)De[Ie]&&Ve(De[Ie]);Fe=ke+De.length}else Ve(De);_e.recalcSlides(),Ae.loop&&_e.loopCreate(),(!Ae.observer||_e.isElement)&&_e.update(),_e.slideTo(Fe,0,!1)}function addSlide(De,_e){const Ae=this,{params:ke,activeIndex:Le,slidesEl:Fe}=Ae;let Ve=Le;ke.loop&&(Ve-=Ae.loopedSlides,Ae.loopDestroy(),Ae.recalcSlides());const Ie=Ae.slides.length;if(De<=0){Ae.prependSlide(_e);return}if(De>=Ie){Ae.appendSlide(_e);return}let je=Ve>De?Ve+1:Ve;const Ke=[];for(let $e=Ie-1;$e>=De;$e-=1){const qe=Ae.slides[$e];qe.remove(),Ke.unshift(qe)}if(typeof _e=="object"&&"length"in _e){for(let $e=0;$e<_e.length;$e+=1)_e[$e]&&Fe.append(_e[$e]);je=Ve>De?Ve+_e.length:Ve}else Fe.append(_e);for(let $e=0;$e<Ke.length;$e+=1)Fe.append(Ke[$e]);Ae.recalcSlides(),ke.loop&&Ae.loopCreate(),(!ke.observer||Ae.isElement)&&Ae.update(),ke.loop?Ae.slideTo(je+Ae.loopedSlides,0,!1):Ae.slideTo(je,0,!1)}function removeSlide(De){const _e=this,{params:Ae,activeIndex:ke}=_e;let Le=ke;Ae.loop&&(Le-=_e.loopedSlides,_e.loopDestroy());let Fe=Le,Ve;if(typeof De=="object"&&"length"in De){for(let Ie=0;Ie<De.length;Ie+=1)Ve=De[Ie],_e.slides[Ve]&&_e.slides[Ve].remove(),Ve<Fe&&(Fe-=1);Fe=Math.max(Fe,0)}else Ve=De,_e.slides[Ve]&&_e.slides[Ve].remove(),Ve<Fe&&(Fe-=1),Fe=Math.max(Fe,0);_e.recalcSlides(),Ae.loop&&_e.loopCreate(),(!Ae.observer||_e.isElement)&&_e.update(),Ae.loop?_e.slideTo(Fe+_e.loopedSlides,0,!1):_e.slideTo(Fe,0,!1)}function removeAllSlides(){const De=this,_e=[];for(let Ae=0;Ae<De.slides.length;Ae+=1)_e.push(Ae);De.removeSlide(_e)}function Manipulation(De){let{swiper:_e}=De;Object.assign(_e,{appendSlide:appendSlide.bind(_e),prependSlide:prependSlide.bind(_e),addSlide:addSlide.bind(_e),removeSlide:removeSlide.bind(_e),removeAllSlides:removeAllSlides.bind(_e)})}function effectInit(De){const{effect:_e,swiper:Ae,on:ke,setTranslate:Le,setTransition:Fe,overwriteParams:Ve,perspective:Ie,recreateShadows:je,getEffectParams:Ke}=De;ke("beforeInit",()=>{if(Ae.params.effect!==_e)return;Ae.classNames.push(`${Ae.params.containerModifierClass}${_e}`),Ie&&Ie()&&Ae.classNames.push(`${Ae.params.containerModifierClass}3d`);const qe=Ve?Ve():{};Object.assign(Ae.params,qe),Object.assign(Ae.originalParams,qe)}),ke("setTranslate",()=>{Ae.params.effect===_e&&Le()}),ke("setTransition",(qe,ci)=>{Ae.params.effect===_e&&Fe(ci)}),ke("transitionEnd",()=>{if(Ae.params.effect===_e&&je){if(!Ke||!Ke().slideShadows)return;Ae.slides.forEach(qe=>{qe.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(ci=>ci.remove())}),je()}});let $e;ke("virtualUpdate",()=>{Ae.params.effect===_e&&(Ae.slides.length||($e=!0),requestAnimationFrame(()=>{$e&&Ae.slides&&Ae.slides.length&&(Le(),$e=!1)}))})}function effectTarget(De,_e){const Ae=getSlideTransformEl(_e);return Ae!==_e&&(Ae.style.backfaceVisibility="hidden",Ae.style["-webkit-backface-visibility"]="hidden"),Ae}function effectVirtualTransitionEnd(De){let{swiper:_e,duration:Ae,transformElements:ke,allSlides:Le}=De;const{activeIndex:Fe}=_e,Ve=Ie=>Ie.parentElement?Ie.parentElement:_e.slides.filter(Ke=>Ke.shadowRoot&&Ke.shadowRoot===Ie.parentNode)[0];if(_e.params.virtualTranslate&&Ae!==0){let Ie=!1,je;Le?je=ke:je=ke.filter(Ke=>{const $e=Ke.classList.contains("swiper-slide-transform")?Ve(Ke):Ke;return _e.getSlideIndex($e)===Fe}),je.forEach(Ke=>{elementTransitionEnd(Ke,()=>{if(Ie||!_e||_e.destroyed)return;Ie=!0,_e.animating=!1;const $e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});_e.wrapperEl.dispatchEvent($e)})})}}function EffectFade(De){let{swiper:_e,extendParams:Ae,on:ke}=De;Ae({fadeEffect:{crossFade:!1}}),effectInit({effect:"fade",swiper:_e,on:ke,setTranslate:()=>{const{slides:Ve}=_e,Ie=_e.params.fadeEffect;for(let je=0;je<Ve.length;je+=1){const Ke=_e.slides[je];let qe=-Ke.swiperSlideOffset;_e.params.virtualTranslate||(qe-=_e.translate);let ci=0;_e.isHorizontal()||(ci=qe,qe=0);const gi=_e.params.fadeEffect.crossFade?Math.max(1-Math.abs(Ke.progress),0):1+Math.min(Math.max(Ke.progress,-1),0),Ai=effectTarget(Ie,Ke);Ai.style.opacity=gi,Ai.style.transform=`translate3d(${qe}px, ${ci}px, 0px)`}},setTransition:Ve=>{const Ie=_e.slides.map(je=>getSlideTransformEl(je));Ie.forEach(je=>{je.style.transitionDuration=`${Ve}ms`}),effectVirtualTransitionEnd({swiper:_e,duration:Ve,transformElements:Ie,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!_e.params.cssMode})})}function EffectCube(De){let{swiper:_e,extendParams:Ae,on:ke}=De;Ae({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});
vendor: 4,387 bytes, line 44
44const Le=(je,Ke,$e)=>{let qe=$e?je.querySelector(".swiper-slide-shadow-left"):je.querySelector(".swiper-slide-shadow-top"),ci=$e?je.querySelector(".swiper-slide-shadow-right"):je.querySelector(".swiper-slide-shadow-bottom");qe||(qe=createElement("div",`swiper-slide-shadow-cube swiper-slide-shadow-${$e?"left":"top"}`.split(" ")),je.append(qe)),ci||(ci=createElement("div",`swiper-slide-shadow-cube swiper-slide-shadow-${$e?"right":"bottom"}`.split(" ")),je.append(ci)),qe&&(qe.style.opacity=Math.max(-Ke,0)),ci&&(ci.style.opacity=Math.max(Ke,0))};effectInit({effect:"cube",swiper:_e,on:ke,setTranslate:()=>{const{el:je,wrapperEl:Ke,slides:$e,width:qe,height:ci,rtlTranslate:gi,size:Ai,browser:oi}=_e,ii=_e.params.cubeEffect,hi=_e.isHorizontal(),Ei=_e.virtual&&_e.params.virtual.enabled;let Li=0,Di;ii.shadow&&(hi?(Di=_e.wrapperEl.querySelector(".swiper-cube-shadow"),Di||(Di=createElement("div","swiper-cube-shadow"),_e.wrapperEl.append(Di)),Di.style.height=`${qe}px`):(Di=je.querySelector(".swiper-cube-shadow"),Di||(Di=createElement("div","swiper-cube-shadow"),je.append(Di))));for(let an=0;an<$e.length;an+=1){const Je=$e[an];let fi=an;Ei&&(fi=parseInt(Je.getAttribute("data-swiper-slide-index"),10));let Gi=fi*90,fn=Math.floor(Gi/360);gi&&(Gi=-Gi,fn=Math.floor(-Gi/360));const cn=Math.max(Math.min(Je.progress,1),-1);let Tn=0,Sn=0,Cn=0;fi%4===0?(Tn=-fn*4*Ai,Cn=0):(fi-1)%4===0?(Tn=0,Cn=-fn*4*Ai):(fi-2)%4===0?(Tn=Ai+fn*4*Ai,Cn=Ai):(fi-3)%4===0&&(Tn=-Ai,Cn=3*Ai+Ai*4*fn),gi&&(Tn=-Tn),hi||(Sn=Tn,Tn=0);const tr=`rotateX(${hi?0:-Gi}deg) rotateY(${hi?Gi:0}deg) translate3d(${Tn}px, ${Sn}px, ${Cn}px)`;cn<=1&&cn>-1&&(Li=fi*90+cn*90,gi&&(Li=-fi*90-cn*90)),Je.style.transform=tr,ii.slideShadows&&Le(Je,cn,hi)}if(Ke.style.transformOrigin=`50% 50% -${Ai/2}px`,Ke.style["-webkit-transform-origin"]=`50% 50% -${Ai/2}px`,ii.shadow)if(hi)Di.style.transform=`translate3d(0px, ${qe/2+ii.shadowOffset}px, ${-qe/2}px) rotateX(90deg) rotateZ(0deg) scale(${ii.shadowScale})`;else{const an=Math.abs(Li)-Math.floor(Math.abs(Li)/90)*90,Je=1.5-(Math.sin(an*2*Math.PI/360)/2+Math.cos(an*2*Math.PI/360)/2),fi=ii.shadowScale,Gi=ii.shadowScale/Je,fn=ii.shadowOffset;Di.style.transform=`scale3d(${fi}, 1, ${Gi}) translate3d(0px, ${ci/2+fn}px, ${-ci/2/Gi}px) rotateX(-90deg)`}const zi=(oi.isSafari||oi.isWebView)&&oi.needPerspectiveFix?-Ai/2:0;Ke.style.transform=`translate3d(0px,0,${zi}px) rotateX(${_e.isHorizontal()?0:Li}deg) rotateY(${_e.isHorizontal()?-Li:0}deg)`,Ke.style.setProperty("--swiper-cube-translate-z",`${zi}px`)},setTransition:je=>{const{el:Ke,slides:$e}=_e;if($e.forEach(qe=>{qe.style.transitionDuration=`${je}ms`,qe.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(ci=>{ci.style.transitionDuration=`${je}ms`})}),_e.params.cubeEffect.shadow&&!_e.isHorizontal()){const qe=Ke.querySelector(".swiper-cube-shadow");qe&&(qe.style.transitionDuration=`${je}ms`)}},recreateShadows:()=>{const je=_e.isHorizontal();_e.slides.forEach(Ke=>{const $e=Math.max(Math.min(Ke.progress,1),-1);Le(Ke,$e,je)})},getEffectParams:()=>_e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function createShadow(De,_e,Ae){const ke=`swiper-slide-shadow${Ae?`-${Ae}`:""}${De?` swiper-slide-shadow-${De}`:""}`,Le=getSlideTransformEl(_e);let Fe=Le.querySelector(`.${ke.split(" ").join(".")}`);return Fe||(Fe=createElement("div",ke.split(" ")),Le.append(Fe)),Fe}function EffectFlip(De){let{swiper:_e,extendParams:Ae,on:ke}=De;Ae({flipEffect:{slideShadows:!0,limitRotation:!0}});const Le=(je,Ke)=>{let $e=_e.isHorizontal()?je.querySelector(".swiper-slide-shadow-left"):je.querySelector(".swiper-slide-shadow-top"),qe=_e.isHorizontal()?je.querySelector(".swiper-slide-shadow-right"):je.querySelector(".swiper-slide-shadow-bottom");$e||($e=createShadow("flip",je,_e.isHorizontal()?"left":"top")),qe||(qe=createShadow("flip",je,_e.isHorizontal()?"right":"bottom")),$e&&($e.style.opacity=Math.max(-Ke,0)),qe&&(qe.style.opacity=Math.max(Ke,0))};effectInit({effect:"flip",swiper:_e,on:ke,setTranslate:()=>{const{slides:je,rtlTranslate:Ke}=_e,$e=_e.params.flipEffect;for(let qe=0;qe<je.length;qe+=1){const ci=je[qe];let gi=ci.progress;_e.params.flipEffect.limitRotation&&(gi=Math.max(Math.min(ci.progress,
441),-1));const Ai=ci.swiperSlideOffset;let ii=-180*gi,hi=0,Ei=_e.params.cssMode?-Ai-_e.translate:-Ai,Li=0;_e.isHorizontal()?Ke&&(ii=-ii):(Li=Ei,Ei=0,hi=-ii,ii=0),ci.style.zIndex=-Math.abs(Math.round(gi))+je.length,$e.slideShadows&&Le(ci,gi);const Di=`translate3d(${Ei}px, ${Li}px, 0px) rotateX(${hi}deg) rotateY(${ii}deg)`,zi=effectTarget($e,ci);zi.style.transform=Di}},setTransition:je=>{const Ke=_e.slides.map($e=>getSlideTransformEl($e));Ke.forEach($e=>{$e.style.transitionDuration=`${je}ms`,$e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(qe=>{qe.style.transitionDuration=`${je}ms`})}),effectVirtualTransitionEnd({swiper:_e,duration:je,transformElements:Ke})},recreateShadows:()=>{_e.params.flipEffect,_e.slides.forEach(je=>{let Ke=je.progress;_e.params.flipEffect.limitRotation&&(Ke=Math.max(Math.min(je.progress,1),-1)),Le(je,Ke)})},getEffectParams:()=>_e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!_e.params.cssMode})})}function EffectCoverflow(De){let{swiper:_e,extendParams:Ae,on:ke}=De;Ae({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),effectInit({effect:"coverflow",swiper:_e,on:ke,setTranslate:()=>{const{width:Ve,height:Ie,slides:je,slidesSizesGrid:Ke}=_e,$e=_e.params.coverflowEffect,qe=_e.isHorizontal(),ci=_e.translate,gi=qe?-ci+Ve/2:-ci+Ie/2,Ai=qe?$e.rotate:-$e.rotate,oi=$e.depth;for(let ii=0,hi=je.length;ii<hi;ii+=1){const Ei=je[ii],Li=Ke[ii],Di=Ei.swiperSlideOffset,zi=(gi-Di-Li/2)/Li,an=typeof $e.modifier=="function"?$e.modifier(zi):zi*$e.modifier;let Je=qe?Ai*an:0,fi=qe?0:Ai*an,Gi=-oi*Math.abs(an),fn=$e.stretch;typeof fn=="string"&&fn.indexOf("%")!==-1&&(fn=parseFloat($e.stretch)/100*Li);let cn=qe?0:fn*an,Tn=qe?fn*an:0,Sn=1-(1-$e.scale)*Math.abs(an);Math.abs(Tn)<.001&&(Tn=0),Math.abs(cn)<.001&&(cn=0),Math.abs(Gi)<.001&&(Gi=0),Math.abs(Je)<.001&&(Je=0),Math.abs(fi)<.001&&(fi=0),Math.abs(Sn)<.001&&(Sn=0);const Cn=`translate3d(${Tn}px,${cn}px,${Gi}px)  rotateX(${fi}deg) rotateY(${Je}deg) scale(${Sn})`,tr=effectTarget($e,Ei);if(tr.style.transform=Cn,Ei.style.zIndex=-Math.abs(Math.round(an))+1,$e.slideShadows){let xr=qe?Ei.querySelector(".swiper-slide-shadow-left"):Ei.querySelector(".swiper-slide-shadow-top"),er=qe?Ei.querySelector(".swiper-slide-shadow-right"):Ei.querySelector(".swiper-slide-shadow-bottom");xr||(xr=createShadow("coverflow",Ei,qe?"left":"top")),er||(er=createShadow("coverflow",Ei,qe?"right":"bottom")),xr&&(xr.style.opacity=an>0?an:0),er&&(er.style.opacity=-an>0?-an:0)}}},setTransition:Ve=>{_e.slides.map(je=>getSlideTransformEl(je)).forEach(je=>{je.style.transitionDuration=`${Ve}ms`,je.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(Ke=>{Ke.style.transitionDuration=`${Ve}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function EffectCreative(De){let{swiper:_e,extendParams:Ae,on:ke}=De;Ae({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const Le=Ie=>typeof Ie=="string"?Ie:`${Ie}px`;effectInit({effect:"creative",swiper:_e,on:ke,setTranslate:()=>{const{slides:Ie,wrapperEl:je,slidesSizesGrid:Ke}=_e,$e=_e.params.creativeEffect,{progressMultiplier:qe}=$e,ci=_e.params.centeredSlides;if(ci){const gi=Ke[0]/2-_e.params.slidesOffsetBefore||0;je.style.transform=`translateX(calc(50% - ${gi}px))`}for(let gi=0;gi<Ie.length;gi+=1){const Ai=Ie[gi],oi=Ai.progress,ii=Math.min(Math.max(Ai.progress,-$e.limitProgress),$e.limitProgress);let hi=ii;ci||(hi=Math.min(Math.max(Ai.originalProgress,-$e.limitProgress),$e.limitProgress));const Ei=Ai.swiperSlideOffset,Li=[_e.params.cssMode?-Ei-_e.translate:-Ei,0,0],Di=[0,0,0];let zi=!1;_e.isHorizontal()||(Li[1]=Li[0],Li[0]=0);let an={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};ii<0?(an=$e.next,zi=!0):ii>0&&(an=$e.prev,zi=!0),Li.forEach((Sn,Cn)=>{Li[Cn]=`calc(${Sn}px + (${Le(an.translate[Cn])} * ${Math.abs(ii*qe)}))`}),Di.forEach((Sn,Cn)=>{Di[Cn]=an.rotate[Cn]*Math.abs(ii*qe)}),Ai.style.zIndex=-Math.abs(Math.round(oi))+Ie.length;const Je=Li.join(", "),fi=`rotateX(${Di[0]}deg) rotateY(${Di[1]}deg) rotateZ(${Di[2]}deg)`,Gi=hi<0?`scale(${1+(1-an.scale)*hi*qe})`:`scale(${1-(1-an.scale)*hi*qe})`,fn=hi<0?1+(1-an.opacity)*hi*qe:1-(1-an.opacity)*hi*qe,cn=`translate3d(${Je}) ${fi} ${Gi}`;if(zi&&an.shadow||!zi){let Sn=Ai.querySelector(".swiper-slide-shadow");if(!Sn&&an.shadow&&(Sn=createShadow("creative",Ai)),Sn){const Cn=$e.shadowPerProgress?ii*(1/$e.limitProgress):ii;Sn.style.opacity=Math.min(Math.max(Math.abs(Cn),0),1)}}const Tn=effectTarget($e,Ai);Tn.style.transform=cn,Tn.style.opacity=fn,an.origin&&(Tn.style.transformOrigin=an.origin)}},setTransition:Ie=>{const je=_e.slides.map(Ke=>getSlideTransformEl(Ke));je.forEach(Ke=>{Ke.style.transitionDuration=`${Ie}ms`,Ke.querySelectorAll(".swiper-slide-shadow").forEach($e=>{$e.style.transitionDuration=`${Ie}ms`})}),effectVirtualTransitionEnd({swiper:_e,duration:Ie,transformElements:je,allSlides:!0})},perspective:()=>_e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!_e.params.cssMode})})}function EffectCards(De){let{swiper:_e,extendParams:Ae,on:ke}=De;Ae({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),effectInit({effect:"cards",swiper:_e,on:ke,setTranslate:()=>{const{slides:Ve,activeIndex:Ie,rtlTranslate:je}=_e,Ke=_e.params.cardsEffect,{startTranslate:$e,isTouched:qe}=_e.touchEventsData,ci=je?-_e.translate:_e.translate;
44for(let gi=0;gi<Ve.length;gi+=1){const Ai=Ve[gi],oi=Ai.progress,ii=Math.min(Math.max(oi,-4),4);let hi=Ai.swiperSlideOffset;_e.params.centeredSlides&&!_e.params.cssMode&&(_e.wrapperEl.style.transform=`translateX(${_e.minTranslate()}px)`),_e.params.centeredSlides&&_e.params.cssMode&&(hi-=Ve[0].swiperSlideOffset);let Ei=_e.params.cssMode?-hi-_e.translate:-hi,Li=0;const Di=-100*Math.abs(ii);let zi=1,an=-Ke.perSlideRotate*ii,Je=Ke.perSlideOffset-Math.abs(ii)*.75;const fi=_e.virtual&&_e.params.virtual.enabled?_e.virtual.from+gi:gi,Gi=(fi===Ie||fi===Ie-1)&&ii>0&&ii<1&&(qe||_e.params.cssMode)&&ci<$e,fn=(fi===Ie||fi===Ie+1)&&ii<0&&ii>-1&&(qe||_e.params.cssMode)&&ci>$e;if(Gi||fn){const Cn=(1-Math.abs((Math.abs(ii)-.5)/.5))**.5;an+=-28*ii*Cn,zi+=-.5*Cn,Je+=96*Cn,Li=`${-25*Cn*Math.abs(ii)}%`}if(ii<0?Ei=`calc(${Ei}px ${je?"-":"+"} (${Je*Math.abs(ii)}%))`:ii>0?Ei=`calc(${Ei}px ${je?"-":"+"} (-${Je*Math.abs(ii)}%))`:Ei=`${Ei}px`,!_e.isHorizontal()){const Cn=Li;Li=Ei,Ei=Cn}const cn=ii<0?`${1+(1-zi)*ii}`:`${1-(1-zi)*ii}`,Tn=`
45        translate3d(${Ei}, ${Li}, ${Di}px)
46        rotateZ(${Ke.rotate?je?-an:an:0}deg)
47        scale(${cn})
48      `;if(Ke.slideShadows){let Cn=Ai.querySelector(".swiper-slide-shadow");Cn||(Cn=createShadow("cards",Ai)),Cn&&(Cn.style.opacity=Math.min(Math.max((Math.abs(ii)-.5)/.5,0),1))}Ai.style.zIndex=-Math.abs(Math.round(oi))+Ve.length;const Sn=effectTarget(Ke,Ai);Sn.style.transform=Tn}},setTransition:Ve=>{const Ie=_e.slides.map(je=>getSlideTransformEl(je));Ie.forEach(je=>{je.style.transitionDuration=`${Ve}ms`,je.querySelectorAll(".swiper-slide-shadow").forEach(Ke=>{Ke.style.transitionDuration=`${Ve}ms`})}),effectVirtualTransitionEnd({swiper:_e,duration:Ve,transformElements:Ie})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!_e.params.cssMode})})}const modules=[Virtual,Keyboard,Mousewheel,Navigation,Pagination,Scrollbar,Parallax,Zoom,Controller,A11y,History,HashNavigation,Autoplay,Thumb,freeMode,Grid,Manipulation,EffectFade,EffectCube,EffectFlip,EffectCoverflow,EffectCreative,EffectCards];Swiper.use(modules);function carousel(De={}){return{init:function(){new Swiper(this.$el,_$3.merge({},De))}}}var jquery={exports:{}};/*!
49 * jQuery JavaScript Library v3.7.1
50 * https://jquery.com/
51 *
52 * Copyright OpenJS Foundation and other contributors
53 * Released under the MIT license
54 * https://jquery.org/license
55 *
56 * Date: 2023-08-28T13:37Z
57 */(function(De){(function(_e,Ae){De.exports=_e.document?Ae(_e,!0):function(ke){if(!ke.document)throw new Error("jQuery requires a window with a document");return Ae(ke)}})(typeof window<"u"?window:commonjsGlobal,function(_e,Ae){var ke=[],Le=Object.getPrototypeOf,Fe=ke.slice,Ve=ke.flat?function(pi){return ke.flat.call(pi)}:function(pi){return ke.concat.apply([],pi)},Ie=ke.push,je=ke.indexOf,Ke={},$e=Ke.toString,qe=Ke.hasOwnProperty,ci=qe.toString,gi=ci.call(Object),Ai={},oi=function(Ci){return typeof Ci=="function"&&typeof Ci.nodeType!="number"&&typeof Ci.item!="function"},ii=function(Ci){return Ci!=null&&Ci===Ci.window},hi=_e.document,Ei={type:!0,src:!0,nonce:!0,noModule:!0};function Li(pi,Ci,Ui){Ui=Ui||hi;var Ki,mn,yn=Ui.createElement("script");if(yn.text=pi,Ci)for(Ki in Ei)mn=Ci[Ki]||Ci.getAttribute&&Ci.getAttribute(Ki),mn&&yn.setAttribute(Ki,mn);Ui.head.appendChild(yn).parentNode.removeChild(yn)}function Di(pi){return pi==null?pi+"":typeof pi=="object"||typeof pi=="function"?Ke[$e.call(pi)]||"object":typeof pi}var zi="3.7.1",an=/HTML$/i,Je=function(pi,Ci){return new Je.fn.init(pi,Ci)};Je.fn=Je.prototype={jquery:zi,constructor:Je,length:0,toArray:function(){return Fe.call(this)},get:function(pi){return pi==null?Fe.call(this):pi<0?this[pi+this.length]:this[pi]},pushStack:function(pi){var Ci=Je.merge(this.constructor(),pi);return Ci.prevObject=this,Ci},each:function(pi){return Je.each(this,pi)},map:function(pi){return this.pushStack(Je.map(this,function(Ci,Ui){return pi.call(Ci,Ui,Ci)}))},slice:function(){return this.pushStack(Fe.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Je.grep(this,function(pi,Ci){return(Ci+1)%2}))},odd:function(){return this.pushStack(Je.grep(this,function(pi,Ci){return Ci%2}))},eq:function(pi){var Ci=this.length,Ui=+pi+(pi<0?Ci:0);return this.pushStack(Ui>=0&&Ui<Ci?[this[Ui]]:[])},end:function(){return this.prevObject||this.constructor()},push:Ie,sort:ke.sort,splice:ke.splice},Je.extend=Je.fn.extend=function(){var pi,Ci,Ui,Ki,mn,yn,An=arguments[0]||{},ur=1,Kn=arguments.length,Br=!1;for(typeof An=="boolean"&&(Br=An,An=arguments[ur]||{},ur++),typeof An!="object"&&!oi(An)&&(An={}),ur===Kn&&(An=this,ur--);ur<Kn;ur++)if((pi=arguments[ur])!=null)for(Ci in pi)Ki=pi[Ci],!(Ci==="__proto__"||An===Ki)&&(Br&&Ki&&(Je.isPlainObject(Ki)||(mn=Array.isArray(Ki)))?(Ui=An[Ci],mn&&!Array.isArray(Ui)?yn=[]:!mn&&!Je.isPlainObject(Ui)?yn={}:yn=Ui,mn=!1,An[Ci]=Je.extend(Br,yn,Ki)):Ki!==void 0&&(An[Ci]=Ki));return An},Je.extend({expando:"jQuery"+(zi+Math.random()).replace(/\D/g,""),isReady:!0,error:function(pi){throw new Error(pi)},noop:function(){},isPlainObject:function(pi){var Ci,Ui;return!pi||$e.call(pi)!=="[object Object]"?!1:(Ci=Le(pi),Ci?(Ui=qe.call(Ci,"constructor")&&Ci.constructor,typeof Ui=="function"&&ci.call(Ui)===gi):!0)},isEmptyObject:function(pi){var Ci;for(Ci in pi)return!1;return!0},globalEval:function(pi,Ci,Ui){Li(pi,{nonce:Ci&&Ci.nonce},Ui)},each:function(pi,Ci){var Ui,Ki=0;if(fi(pi))for(Ui=pi.length;Ki<Ui&&Ci.call(pi[Ki],Ki,pi[Ki])!==!1;Ki++);else for(Ki in pi)if(Ci.call(pi[Ki],Ki,pi[Ki])===!1)break;return pi},text:function(pi){var Ci,Ui="",Ki=0,mn=pi.nodeType;if(!mn)for(;Ci=pi[Ki++];)Ui+=Je.text(Ci);return mn===1||mn===11?pi.textContent:mn===9?pi.documentElement.textContent:mn===3||mn===4?pi.nodeValue:Ui},makeArray:function(pi,Ci){var Ui=Ci||[];return pi!=null&&(fi(Object(pi))?Je.merge(Ui,typeof pi=="string"?[pi]:pi):Ie.call(Ui,pi)),Ui},inArray:function(pi,Ci,Ui){return Ci==null?-1:je.call(Ci,pi,Ui)},isXMLDoc:function(pi){var Ci=pi&&pi.namespaceURI,Ui=pi&&(pi.ownerDocument||pi).documentElement;return!an.test(Ci||Ui&&Ui.nodeName||"HTML")},merge:function(pi,Ci){for(var Ui=+Ci.length,Ki=0,mn=pi.length;Ki<Ui;Ki++)pi[mn++]=Ci[Ki];return pi.length=mn,pi},grep:function(pi,Ci,Ui){for(var Ki,mn=[],yn=0,An=pi.length,ur=!Ui;yn<An;yn++)Ki=!Ci(pi[yn],yn),Ki!==ur&&mn.push(pi[yn]);return mn},map:function(pi,Ci,Ui){var Ki,mn,yn=0,An=[];if(fi(pi))for(Ki=pi.length;yn<Ki;yn++)mn=Ci(pi[yn],yn,Ui),mn!=null&&An.push(mn);else for(yn in pi)mn=Ci(pi[yn],yn,Ui),mn!=null&&An.push(mn);
57return Ve(An)},guid:1,support:Ai}),typeof Symbol=="function"&&(Je.fn[Symbol.iterator]=ke[Symbol.iterator]),Je.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(pi,Ci){Ke["[object "+Ci+"]"]=Ci.toLowerCase()});function fi(pi){var Ci=!!pi&&"length"in pi&&pi.length,Ui=Di(pi);return oi(pi)||ii(pi)?!1:Ui==="array"||Ci===0||typeof Ci=="number"&&Ci>0&&Ci-1 in pi}function Gi(pi,Ci){return pi.nodeName&&pi.nodeName.toLowerCase()===Ci.toLowerCase()}var fn=ke.pop,cn=ke.sort,Tn=ke.splice,Sn="[\\x20\\t\\r\\n\\f]",Cn=new RegExp("^"+Sn+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Sn+"+$","g");Je.contains=function(pi,Ci){var Ui=Ci&&Ci.parentNode;return pi===Ui||!!(Ui&&Ui.nodeType===1&&(pi.contains?pi.contains(Ui):pi.compareDocumentPosition&&pi.compareDocumentPosition(Ui)&16))};var tr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function xr(pi,Ci){return Ci?pi==="\0"?"�":pi.slice(0,-1)+"\\"+pi.charCodeAt(pi.length-1).toString(16)+" ":"\\"+pi}Je.escapeSelector=function(pi){return(pi+"").replace(tr,xr)};var er=hi,Hn=Ie;(function(){var pi,Ci,Ui,Ki,mn,yn=Hn,An,ur,Kn,Br,ls,ps=Je.expando,Kr=0,Ns=0,co=Fu(),Fo=Fu(),Vo=Fu(),Dl=Fu(),Wa=function(nr,Ir){return nr===Ir&&(mn=!0),0},Sc="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",qa="(?:\\\\[\\da-fA-F]{1,6}"+Sn+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Wo="\\["+Sn+"*("+qa+")(?:"+Sn+"*([*^$|!~]?=)"+Sn+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+qa+"))|)"+Sn+"*\\]",Xc=":("+qa+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Wo+")*)|.*)\\)|)",zo=new RegExp(Sn+"+","g"),Na=new RegExp("^"+Sn+"*,"+Sn+"*"),hu=new RegExp("^"+Sn+"*([>+~]|"+Sn+")"+Sn+"*"),ud=new RegExp(Sn+"|>"),Ic=new RegExp(Xc),qo=new RegExp("^"+qa+"$"),lc={ID:new RegExp("^#("+qa+")"),CLASS:new RegExp("^\\.("+qa+")"),TAG:new RegExp("^("+qa+"|[*])"),ATTR:new RegExp("^"+Wo),PSEUDO:new RegExp("^"+Xc),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Sn+"*(even|odd|(([+-]|)(\\d*)n|)"+Sn+"*(?:([+-]|)"+Sn+"*(\\d+)|))"+Sn+"*\\)|)","i"),bool:new RegExp("^(?:"+Sc+")$","i"),needsContext:new RegExp("^"+Sn+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Sn+"*((?:-\\d)?\\d*)"+Sn+"*\\)|)(?=[^-]|$)","i")},$u=/^(?:input|select|textarea|button)$/i,Zc=/^h\d$/i,Ml=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Tu=/[+~]/,Kl=new RegExp("\\\\[\\da-fA-F]{1,6}"+Sn+"?|\\\\([^\\r\\n\\f])","g"),Tc=function(nr,Ir){var Yr="0x"+nr.slice(1)-65536;return Ir||(Yr<0?String.fromCharCode(Yr+65536):String.fromCharCode(Yr>>10|55296,Yr&1023|56320))},pu=function(){Yc()},Xp=dd(function(nr){return nr.disabled===!0&&Gi(nr,"fieldset")},{dir:"parentNode",next:"legend"});function lh(){try{return An.activeElement}catch{}}try{yn.apply(ke=Fe.call(er.childNodes),er.childNodes),ke[er.childNodes.length].nodeType}catch{yn={apply:function(Ir,Yr){Hn.apply(Ir,Fe.call(Yr))},call:function(Ir){Hn.apply(Ir,Fe.call(arguments,1))}}}function xa(nr,Ir,Yr,is){var Un,Ar,Tr,fs,ws,yo,vo,uo=Ir&&Ir.ownerDocument,ua=Ir?Ir.nodeType:9;if(Yr=Yr||[],typeof nr!="string"||!nr||ua!==1&&ua!==9&&ua!==11)return Yr;if(!is&&(Yc(Ir),Ir=Ir||An,Kn)){if(ua!==11&&(ws=Ml.exec(nr)))if(Un=ws[1]){if(ua===9)if(Tr=Ir.getElementById(Un)){if(Tr.id===Un)return yn.call(Yr,Tr),Yr}else return Yr;else if(uo&&(Tr=uo.getElementById(Un))&&xa.contains(Ir,Tr)&&Tr.id===Un)return yn.call(Yr,Tr),Yr}else{if(ws[2])return yn.apply(Yr,Ir.getElementsByTagName(nr)),Yr;if((Un=ws[3])&&Ir.getElementsByClassName)return yn.apply(Yr,Ir.getElementsByClassName(Un)),Yr}if(!Dl[nr+" "]&&(!Br||!Br.test(nr))){if(vo=nr,uo=Ir,ua===1&&(ud.test(nr)||hu.test(nr))){for(uo=Tu.test(nr)&&Bd(Ir.parentNode)||Ir,(uo!=Ir||!Ai.scope)&&((fs=Ir.getAttribute("id"))?fs=Je.escapeSelector(fs):Ir.setAttribute("id",fs=ps)),yo=Ec(nr),Ar=yo.length;Ar--;)yo[Ar]=(fs?"#"+fs:":scope")+" "+Kc(yo[Ar]);vo=yo.join(",")}try{return yn.apply(Yr,uo.querySelectorAll(vo)),Yr}catch{Dl(nr,!0)}finally{fs===ps&&Ir.removeAttribute("id")}}}return gp(nr.replace(Cn,"$1"),Ir,Yr,is)}function Fu(){var nr=[];function Ir(Yr,is){return nr.push(Yr+" ")>Ci.cacheLength&&delete Ir[nr.shift()],Ir[Yr+" "]=is}return Ir}function Rc(nr){return nr[ps]=!0,nr}function Fd(nr){var Ir=An.createElement("fieldset");try{return!!nr(Ir)}catch{return!1}finally{Ir.parentNode&&Ir.parentNode.removeChild(Ir),Ir=null}}function Tf(nr){return function(Ir){return Gi(Ir,"input")&&Ir.type===nr}}function Ef(nr){return function(Ir){return(Gi(Ir,"input")||Gi(Ir,"button"))&&Ir.type===nr}}function zd(nr){return function(Ir){return"form"in Ir?Ir.parentNode&&Ir.disabled===!1?"label"in Ir?"label"in Ir.parentNode?Ir.parentNode.disabled===nr:Ir.disabled===nr:Ir.isDisabled===nr||Ir.isDisabled!==!nr&&Xp(Ir)===nr:Ir.disabled===nr:"label"in Ir?Ir.disabled===nr:!1}}function Bl(nr){return Rc(function(Ir){return Ir=+Ir,Rc(function(Yr,is){for(var Un,Ar=nr([],Yr.length,Ir),Tr=Ar.length;Tr--;)Yr[Un=Ar[Tr]]&&(Yr[Un]=!(is[Un]=Yr[Un]))})})}function Bd(nr){return nr&&typeof nr.getElementsByTagName<"u"&&nr}function Yc(nr){var Ir,Yr=nr?nr.ownerDocument||nr:er;return Yr==An||Yr.nodeType!==9||!Yr.documentElement||(An=Yr,ur=An.documentElement,Kn=!Je.isXMLDoc(An),ls=ur.matches||ur.webkitMatchesSelector||ur.msMatchesSelector,ur.msMatchesSelector&&er!=An&&(Ir=An.defaultView)&&Ir.top!==Ir&&Ir.addEventListener("unload",pu),Ai.getById=Fd(function(is){return ur.appendChild(is).id=Je.expando,!An.getElementsByName||!An.getElementsByName(Je.expando).length}
vendor: 20,296 bytes, line 57
57),Ai.disconnectedMatch=Fd(function(is){return ls.call(is,"*")}),Ai.scope=Fd(function(){return An.querySelectorAll(":scope")}),Ai.cssHas=Fd(function(){try{return An.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),Ai.getById?(Ci.filter.ID=function(is){var Un=is.replace(Kl,Tc);return function(Ar){return Ar.getAttribute("id")===Un}},Ci.find.ID=function(is,Un){if(typeof Un.getElementById<"u"&&Kn){var Ar=Un.getElementById(is);return Ar?[Ar]:[]}}):(Ci.filter.ID=function(is){var Un=is.replace(Kl,Tc);return function(Ar){var Tr=typeof Ar.getAttributeNode<"u"&&Ar.getAttributeNode("id");return Tr&&Tr.value===Un}},Ci.find.ID=function(is,Un){if(typeof Un.getElementById<"u"&&Kn){var Ar,Tr,fs,ws=Un.getElementById(is);if(ws){if(Ar=ws.getAttributeNode("id"),Ar&&Ar.value===is)return[ws];for(fs=Un.getElementsByName(is),Tr=0;ws=fs[Tr++];)if(Ar=ws.getAttributeNode("id"),Ar&&Ar.value===is)return[ws]}return[]}}),Ci.find.TAG=function(is,Un){return typeof Un.getElementsByTagName<"u"?Un.getElementsByTagName(is):Un.querySelectorAll(is)},Ci.find.CLASS=function(is,Un){if(typeof Un.getElementsByClassName<"u"&&Kn)return Un.getElementsByClassName(is)},Br=[],Fd(function(is){var Un;ur.appendChild(is).innerHTML="<a id='"+ps+"' href='' disabled='disabled'></a><select id='"+ps+"-\r\\' disabled='disabled'><option selected=''></option></select>",is.querySelectorAll("[selected]").length||Br.push("\\["+Sn+"*(?:value|"+Sc+")"),is.querySelectorAll("[id~="+ps+"-]").length||Br.push("~="),is.querySelectorAll("a#"+ps+"+*").length||Br.push(".#.+[+~]"),is.querySelectorAll(":checked").length||Br.push(":checked"),Un=An.createElement("input"),Un.setAttribute("type","hidden"),is.appendChild(Un).setAttribute("name","D"),ur.appendChild(is).disabled=!0,is.querySelectorAll(":disabled").length!==2&&Br.push(":enabled",":disabled"),Un=An.createElement("input"),Un.setAttribute("name",""),is.appendChild(Un),is.querySelectorAll("[name='']").length||Br.push("\\["+Sn+"*name"+Sn+"*="+Sn+`*(?:''|"")`)}),Ai.cssHas||Br.push(":has"),Br=Br.length&&new RegExp(Br.join("|")),Wa=function(is,Un){if(is===Un)return mn=!0,0;var Ar=!is.compareDocumentPosition-!Un.compareDocumentPosition;return Ar||(Ar=(is.ownerDocument||is)==(Un.ownerDocument||Un)?is.compareDocumentPosition(Un):1,Ar&1||!Ai.sortDetached&&Un.compareDocumentPosition(is)===Ar?is===An||is.ownerDocument==er&&xa.contains(er,is)?-1:Un===An||Un.ownerDocument==er&&xa.contains(er,Un)?1:Ki?je.call(Ki,is)-je.call(Ki,Un):0:Ar&4?-1:1)}),An}xa.matches=function(nr,Ir){return xa(nr,null,null,Ir)},xa.matchesSelector=function(nr,Ir){if(Yc(nr),Kn&&!Dl[Ir+" "]&&(!Br||!Br.test(Ir)))try{var Yr=ls.call(nr,Ir);if(Yr||Ai.disconnectedMatch||nr.document&&nr.document.nodeType!==11)return Yr}catch{Dl(Ir,!0)}return xa(Ir,An,null,[nr]).length>0},xa.contains=function(nr,Ir){return(nr.ownerDocument||nr)!=An&&Yc(nr),Je.contains(nr,Ir)},xa.attr=function(nr,Ir){(nr.ownerDocument||nr)!=An&&Yc(nr);var Yr=Ci.attrHandle[Ir.toLowerCase()],is=Yr&&qe.call(Ci.attrHandle,Ir.toLowerCase())?Yr(nr,Ir,!Kn):void 0;return is!==void 0?is:nr.getAttribute(Ir)},xa.error=function(nr){throw new Error("Syntax error, unrecognized expression: "+nr)},Je.uniqueSort=function(nr){var Ir,Yr=[],is=0,Un=0;if(mn=!Ai.sortStable,Ki=!Ai.sortStable&&Fe.call(nr,0),cn.call(nr,Wa),mn){for(;Ir=nr[Un++];)Ir===nr[Un]&&(is=Yr.push(Un));for(;is--;)Tn.call(nr,Yr[is],1)}return Ki=null,nr},Je.fn.uniqueSort=function(){return this.pushStack(Je.uniqueSort(Fe.apply(this)))},Ci=Je.expr={cacheLength:50,createPseudo:Rc,match:lc,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(nr){return nr[1]=nr[1].replace(Kl,Tc),nr[3]=(nr[3]||nr[4]||nr[5]||"").replace(Kl,Tc),nr[2]==="~="&&(nr[3]=" "+nr[3]+" "),nr.slice(0,4)},CHILD:function(nr){return nr[1]=nr[1].toLowerCase(),nr[1].slice(0,3)==="nth"?(nr[3]||xa.error(nr[0]),nr[4]=+(nr[4]?nr[5]+(nr[6]||1):2*(nr[3]==="even"||nr[3]==="odd")),nr[5]=+(nr[7]+nr[8]||nr[3]==="odd")):nr[3]&&xa.error(nr[0]),nr},PSEUDO:function(nr){var Ir,Yr=!nr[6]&&nr[2];return lc.CHILD.test(nr[0])?null:(nr[3]?nr[2]=nr[4]||nr[5]||"":Yr&&Ic.test(Yr)&&(Ir=Ec(Yr,!0))&&(Ir=Yr.indexOf(")",Yr.length-Ir)-Yr.length)&&(nr[0]=nr[0].slice(0,Ir),nr[2]=Yr.slice(0,Ir)),nr.slice(0,3))}},filter:{TAG:function(nr){var Ir=nr.replace(Kl,Tc).toLowerCase();return nr==="*"?function(){return!0}:function(Yr){return Gi(Yr,Ir)}},CLASS:function(nr){var Ir=co[nr+" "];return Ir||(Ir=new RegExp("(^|"+Sn+")"+nr+"("+Sn+"|$)"))&&co(nr,function(Yr){return Ir.test(typeof Yr.className=="string"&&Yr.className||typeof Yr.getAttribute<"u"&&Yr.getAttribute("class")||"")})},ATTR:function(nr,Ir,Yr){return function(is){var Un=xa.attr(is,nr);return Un==null?Ir==="!=":Ir?(Un+="",Ir==="="?Un===Yr:Ir==="!="?Un!==Yr:Ir==="^="?Yr&&Un.indexOf(Yr)===0:Ir==="*="?Yr&&Un.indexOf(Yr)>-1:Ir==="$="?Yr&&Un.slice(-Yr.length)===Yr:Ir==="~="?(" "+Un.replace(zo," ")+" ").indexOf(Yr)>-1:Ir==="|="?Un===Yr||Un.slice(0,Yr.length+1)===Yr+"-":!1):!0}},CHILD:function(nr,Ir,Yr,is,Un){var Ar=nr.slice(0,3)!=="nth",Tr=nr.slice(-4)!=="last",fs=Ir==="of-type";return is===1&&Un===0?function(ws){return!!ws.parentNode}:function(ws,yo,vo){var uo,ua,To,Ho,Oa,Xa=Ar!==Tr?"nextSibling":"previousSibling",Nl=ws.parentNode,Oc=fs&&ws.nodeName.toLowerCase(),Ql=!vo&&!fs,Bo=!1;if(Nl){if(Ar){for(;Xa;){for(To=ws;To=To[Xa];)if(fs?Gi(To,Oc):To.nodeType===1)return!1;Oa=Xa=nr==="only"&&!Oa&&"nextSibling"}return!0}if(Oa=[Tr?Nl.firstChild:Nl.lastChild],Tr&&Ql){for(ua=Nl[ps]||(Nl[ps]={}),uo=ua[nr]||[],Ho=uo[0]===Kr&&uo[1],Bo=Ho&&uo[2],To=Ho&&Nl.childNodes[Ho];To=++Ho&&To&&To[Xa]||(Bo=Ho=0)||Oa.pop();)if(To.nodeType===1&&++Bo&&To===ws){ua[nr]=[Kr,Ho,Bo];break}}else if(Ql&&(ua=ws[ps]||(ws[ps]={}),uo=ua[nr]||[],Ho=uo[0]===Kr&&uo[1],Bo=Ho),Bo===!1)for(;(To=++Ho&&To&&To[Xa]||(Bo=Ho=0)||Oa.pop())&&!((fs?Gi(To,Oc):To.nodeType===1)&&++Bo&&(Ql&&(ua=To[ps]||(To[ps]={}),ua[nr]=[Kr,Bo]),To===ws)););return Bo-=Un,Bo===is||Bo%is===0&&Bo/is>=0}}},PSEUDO:function(nr,Ir){var Yr,is=Ci.pseudos[nr]||Ci.setFilters[nr.toLowerCase()]||xa.error("unsupported pseudo: "+nr);return is[ps]?is(Ir):is.length>1?(Yr=[nr,nr,"",Ir],Ci.setFilters.hasOwnProperty(nr.toLowerCase())?Rc(function(Un,Ar){for(var Tr,fs=is(Un,Ir),ws=fs.length;ws--;)Tr=je.call(Un,fs[ws]),Un[Tr]=!(Ar[Tr]=fs[ws])}):function(Un){return is(Un,0,Yr)}):is}},pseudos:{not:Rc(function(nr){var Ir=[],Yr=[],is=Vd(nr.replace(Cn,"$1"));return is[ps]?Rc(function(Un,Ar,Tr,fs){for(var ws,yo=is(Un,null,fs,[]),vo=Un.length;vo--;)(ws=yo[vo])&&(Un[vo]=!(Ar[vo]=ws))}):function(Un,Ar,Tr){return Ir[0]=Un,is(Ir,null,Tr,Yr),Ir[0]=null,!Yr.pop()}}),has:Rc(function(nr){return function(Ir){return xa(nr,Ir).length>0}}),contains:Rc(function(nr){return nr=nr.replace(Kl,Tc),function(Ir){return(Ir.textContent||Je.text(Ir)).indexOf(nr)>-1}}),lang:Rc(function(nr){return qo.test(nr||"")||xa.error("unsupported lang: "+nr),nr=nr.replace(Kl,Tc).toLowerCase(),function(Ir){var Yr;do if(Yr=Kn?Ir.lang:Ir.getAttribute("xml:lang")||Ir.getAttribute("lang"))return Yr=Yr.toLowerCase(),Yr===nr||Yr.indexOf(nr+"-")===0;while((Ir=Ir.parentNode)&&Ir.nodeType===1);return!1}}),target:function(nr){var Ir=_e.location&&_e.location.hash;return Ir&&Ir.slice(1)===nr.id},root:function(nr){return nr===ur},focus:function(nr){return nr===lh()&&An.hasFocus()&&!!(nr.type||nr.href||~nr.tabIndex)},enabled:zd(!1),disabled:zd(!0),checked:function(nr){return Gi(nr,"input")&&!!nr.checked||Gi(nr,"option")&&!!nr.selected},selected:function(nr){return nr.parentNode&&nr.parentNode.selectedIndex,nr.selected===!0},empty:function(nr){for(nr=nr.firstChild;nr;nr=nr.nextSibling)if(nr.nodeType<6)return!1;return!0},parent:function(nr){return!Ci.pseudos.empty(nr)},header:function(nr){return Zc.test(nr.nodeName)},input:function(nr){return $u.test(nr.nodeName)},button:function(nr){return Gi(nr,"input")&&nr.type==="button"||Gi(nr,"button")},text:function(nr){var Ir;return Gi(nr,"input")&&nr.type==="text"&&((Ir=nr.getAttribute("type"))==null||Ir.toLowerCase()==="text")},first:Bl(function(){return[0]}),last:Bl(function(nr,Ir){return[Ir-1]}),eq:Bl(function(nr,Ir,Yr){return[Yr<0?Yr+Ir:Yr]}),even:Bl(function(nr,Ir){for(var Yr=0;Yr<Ir;Yr+=2)nr.push(Yr);return nr}),odd:Bl(function(nr,Ir){for(var Yr=1;Yr<Ir;Yr+=2)nr.push(Yr);return nr}),lt:Bl(function(nr,Ir,Yr){var is;for(Yr<0?is=Yr+Ir:Yr>Ir?is=Ir:is=Yr;--is>=0;)nr.push(is);return nr}),gt:Bl(function(nr,Ir,Yr){for(var is=Yr<0?Yr+Ir:Yr;++is<Ir;)nr.push(is);return nr})}},Ci.pseudos.nth=Ci.pseudos.eq;for(pi in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Ci.pseudos[pi]=Tf(pi);for(pi in{submit:!0,reset:!0})Ci.pseudos[pi]=Ef(pi);function zh(){}zh.prototype=Ci.filters=Ci.pseudos,Ci.setFilters=new zh;function Ec(nr,Ir){var Yr,is,Un,Ar,Tr,fs,ws,yo=Fo[nr+" "];if(yo)return Ir?0:yo.slice(0);for(Tr=nr,fs=[],ws=Ci.preFilter;Tr;){(!Yr||(is=Na.exec(Tr)))&&(is&&(Tr=Tr.slice(is[0].length)||Tr),fs.push(Un=[])),Yr=!1,(is=hu.exec(Tr))&&(Yr=is.shift(),Un.push({value:Yr,type:is[0].replace(Cn," ")}),Tr=Tr.slice(Yr.length));for(Ar in Ci.filter)(is=lc[Ar].exec(Tr))&&(!ws[Ar]||(is=ws[Ar](is)))&&(Yr=is.shift(),Un.push({value:Yr,type:Ar,matches:is}),Tr=Tr.slice(Yr.length));if(!Yr)break}return Ir?Tr.length:Tr?xa.error(nr):Fo(nr,fs).slice(0)}function Kc(nr){for(var Ir=0,Yr=nr.length,is="";Ir<Yr;Ir++)is+=nr[Ir].value;return is}function dd(nr,Ir,Yr){var is=Ir.dir,Un=Ir.next,Ar=Un||is,Tr=Yr&&Ar==="parentNode",fs=Ns++;return Ir.first?function(ws,yo,vo){for(;ws=ws[is];)if(ws.nodeType===1||Tr)return nr(ws,yo,vo);return!1}:function(ws,yo,vo){var uo,ua,To=[Kr,fs];if(vo){for(;ws=ws[is];)if((ws.nodeType===1||Tr)&&nr(ws,yo,vo))return!0}else for(;ws=ws[is];)if(ws.nodeType===1||Tr)if(ua=ws[ps]||(ws[ps]={}),Un&&Gi(ws,Un))ws=ws[is]||ws;else{if((uo=ua[Ar])&&uo[0]===Kr&&uo[1]===fs)return To[2]=uo[2];if(ua[Ar]=To,To[2]=nr(ws,yo,vo))return!0}return!1}}function ch(nr){return nr.length>1?function(Ir,Yr,is){for(var Un=nr.length;Un--;)if(!nr[Un](Ir,Yr,is))return!1;return!0}:nr[0]}function sm(nr,Ir,Yr){for(var is=0,Un=Ir.length;is<Un;is++)xa(nr,Ir[is],Yr);return Yr}function Nd(nr,Ir,Yr,is,Un){for(var Ar,Tr=[],fs=0,ws=nr.length,yo=Ir!=null;fs<ws;fs++)(Ar=nr[fs])&&(!Yr||Yr(Ar,is,Un))&&(Tr.push(Ar),yo&&Ir.push(fs));return Tr}function Ku(nr,Ir,Yr,is,Un,Ar){return is&&!is[ps]&&(is=Ku(is)),Un&&!Un[ps]&&(Un=Ku(Un,Ar)),Rc(function(Tr,fs,ws,yo){var vo,uo,ua,To,Ho=[],Oa=[],Xa=fs.length,Nl=Tr||sm(Ir||"*",ws.nodeType?[ws]:ws,[]),Oc=nr&&(Tr||!Ir)?Nd(Nl,Ho,nr,ws,yo):Nl;if(Yr?(To=Un||(Tr?nr:Xa||is)?[]:fs,Yr(Oc,To,ws,yo)):To=Oc,is)for(vo=Nd(To,Oa),is(vo,[],ws,yo),uo=vo.length;uo--;)(ua=vo[uo])&&(To[Oa[uo]]=!(Oc[Oa[uo]]=ua));if(Tr){if(Un||nr){if(Un){for(vo=[],uo=To.length;uo--;)(ua=To[uo])&&vo.push(Oc[uo]=ua);Un(null,To=[],vo,yo)}for(uo=To.length;uo--;)(ua=To[uo])&&(vo=Un?je.call(Tr,ua):Ho[uo])>-1&&(Tr[vo]=!(fs[vo]=ua))}}else To=Nd(To===fs?To.splice(Xa,To.length):To),Un?Un(null,fs,To,yo):yn.apply(fs,To)})}function Jl(nr){for(var Ir,Yr,is,Un=nr.length,Ar=Ci.relative[nr[0].type],Tr=Ar||Ci.relative[" "],fs=Ar?1:0,ws=dd(function(uo){return uo===Ir},Tr,!0),yo=dd(function(uo){return je.call(Ir,uo)>-1},Tr,!0),vo=[function(uo,ua,To){var Ho=!Ar&&(To||ua!=Ui)||((Ir=ua).nodeType?ws(uo,ua,To):yo(uo,ua,To));return Ir=null,Ho}];fs<Un;fs++)if(Yr=Ci.relative[nr[fs].type])vo=[dd(ch(vo),Yr)];else{if(Yr=Ci.filter[nr[fs].type].apply(null,nr[fs].matches),Yr[ps]){for(is=++fs;is<Un&&!Ci.relative[nr[is].type];is++);return Ku(fs>1&&ch(vo),fs>1&&Kc(nr.slice(0,fs-1).concat({value:nr[fs-2].type===" "?"*":""})).replace(Cn,"$1"),Yr,fs<is&&Jl(nr.slice(fs,is)),is<Un&&Jl(nr=nr.slice(is)),is<Un&&Kc(nr))}vo.push(Yr)}return ch(vo)}function Jc(nr,Ir){var Yr=Ir.length>0,is=nr.length>0,Un=function(Ar,Tr,fs,ws,yo){var vo,uo,ua,To=0,Ho="0",Oa=Ar&&[],Xa=[],Nl=Ui,Oc=Ar||is&&Ci.find.TAG("*",yo),Ql=Kr+=Nl==null?1:Math.random()||.1,Bo=Oc.length;for(yo&&(Ui=Tr==An||Tr||yo);Ho!==Bo&&(vo=Oc[Ho])!=null;Ho++){if(is&&vo){for(uo=0,!Tr&&vo.ownerDocument!=An&&(Yc(vo),fs=!Kn);ua=nr[uo++];)if(ua(vo,Tr||An,fs)){yn.call(ws,vo);break}yo&&(Kr=Ql)}Yr&&((vo=!ua&&vo)&&To--,Ar&&Oa.push(vo))}if(To+=Ho,Yr&&Ho!==To){for(uo=0;ua=Ir[uo++];)ua(Oa,Xa,Tr,fs);if(Ar){if(To>0)for(;Ho--;)Oa[Ho]||Xa[Ho]||(Xa[Ho]=fn.call(ws));Xa=Nd(Xa)}yn.apply(ws,Xa),yo&&!Ar&&Xa.length>0&&To+Ir.length>1&&Je.uniqueSort(ws)}return yo&&(Kr=Ql,Ui=Nl),Oa};return Yr?Rc(Un):Un}function Vd(nr,Ir){var Yr,is=[],Un=[],Ar=Vo[nr+" "];if(!Ar){for(Ir||(Ir=Ec(nr)),Yr=Ir.length;Yr--;)Ar=Jl(Ir[Yr]),Ar[ps]?is.push(Ar):Un.push(Ar);Ar=Vo(nr,Jc(Un,is)),Ar.selector=nr}return Ar}function gp(nr,Ir,Yr,is){var Un,Ar,Tr,fs,ws,yo=typeof nr=="function"&&nr,vo=!is&&Ec(nr=yo.selector||nr);if(Yr=Yr||[],vo.length===1){if(Ar=vo[0]=vo[0].slice(0),Ar.length>2&&(Tr=Ar[0]).type==="ID"&&Ir.nodeType===9&&Kn&&Ci.relative[Ar[1].type]){if(Ir=(Ci.find.ID(Tr.matches[0].replace(Kl,Tc),Ir)||[])[0],Ir)yo&&(Ir=Ir.parentNode);else return Yr;nr=nr.slice(Ar.shift().value.length)}for(Un=lc.needsContext.test(nr)?0:Ar.length;Un--&&(Tr=Ar[Un],!Ci.relative[fs=Tr.type]);)if((ws=Ci.find[fs])&&(is=ws(Tr.matches[0].replace(Kl,Tc),Tu.test(Ar[0].type)&&Bd(Ir.parentNode)||Ir))){if(Ar.splice(Un,1),nr=is.length&&Kc(Ar),!nr)return yn.apply(Yr,is),Yr;break}}return(yo||Vd(nr,vo))(is,Ir,!Kn,Yr,!Ir||Tu.test(nr)&&Bd(Ir.parentNode)||Ir),Yr}Ai.sortStable=ps.split("").sort(Wa).join("")===ps,Yc(),Ai.sortDetached=Fd(function(nr){return nr.compareDocumentPosition(An.createElement("fieldset"))&1}),Je.find=xa,Je.expr[":"]=Je.expr.pseudos,Je.unique=Je.uniqueSort,xa.compile=Vd,xa.select=gp,xa.setDocument=Yc,xa.tokenize=Ec,xa.escape=Je.escapeSelector,xa.getText=Je.text,xa.isXML=Je.isXMLDoc,xa.selectors=Je.expr,xa.support=Je.support,xa.uniqueSort=Je.uniqueSort})();var Er=function(pi,Ci,Ui){for(var Ki=[],mn=Ui!==void 0;(pi=pi[Ci])&&pi.nodeType!==9;)if(pi.nodeType===1){if(mn&&Je(pi).is(Ui))break;Ki.push(pi)}return Ki},os=function(pi,Ci){for(var Ui=[];pi;pi=pi.nextSibling)pi.nodeType===1&&pi!==Ci&&Ui.push(pi);return Ui},wi=Je.expr.match.needsContext,Zi=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Qi(pi,Ci,Ui){return oi(Ci)?Je.grep(pi,function(Ki,mn){return!!Ci.call(Ki,mn,Ki)!==Ui}):Ci.nodeType?Je.grep(pi,function(Ki){return Ki===Ci!==Ui}):typeof Ci!="string"?Je.grep(pi,function(Ki){return je.call(Ci,Ki)>-1!==Ui}):Je.filter(Ci,pi,Ui)}Je.filter=function(pi,Ci,Ui){var Ki=Ci[0];return Ui&&(pi=":not("+pi+")"),Ci.length===1&&Ki.nodeType===1?Je.find.matchesSelector(Ki,pi)?[Ki]:[]:Je.find.matches(pi,Je.grep(Ci,function(mn){return mn.nodeType===1}))},Je.fn.extend({find:function(pi){var Ci,Ui,Ki=this.length,mn=this;if(typeof pi!="string")return this.pushStack(Je(pi).filter(function(){for(Ci=0;Ci<Ki;Ci++)if(Je.contains(mn[Ci],this))return!0}));for(Ui=this.pushStack([]),Ci=0;Ci<Ki;Ci++)Je.find(pi,mn[Ci],Ui);return Ki>1?Je.uniqueSort(Ui):Ui},filter:function(pi){return this.pushStack(Qi(this,pi||[],!1))},not:function(pi){return this.pushStack(Qi(this,pi||[],!0))},is:function(pi){return!!Qi(this,typeof pi=="string"&&wi.test(pi)?Je(pi):pi||[],!1).length}});var Hi,vn=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,zn=Je.fn.init=function(pi,Ci,Ui){var Ki,mn;if(!pi)return this;if(Ui=Ui||Hi,typeof pi=="string")if(pi[0]==="<"&&pi[pi.length-1]===">"&&pi.length>=3?Ki=[null,pi,null]:Ki=vn.exec(pi),Ki&&(Ki[1]||!Ci))if(Ki[1]){if(Ci=Ci instanceof Je?Ci[0]:Ci,Je.merge(this,Je.parseHTML(Ki[1],Ci&&Ci.nodeType?Ci.ownerDocument||Ci:hi,!0)),Zi.test(Ki[1])&&Je.isPlainObject(Ci))for(Ki in Ci)oi(this[Ki])?this[Ki](Ci[Ki]):this.attr(Ki,Ci[Ki]);return this}else return mn=hi.getElementById(Ki[2]),mn&&(this[0]=mn,this.length=1),this;else return!Ci||Ci.jquery?(Ci||Ui).find(pi):this.constructor(Ci).find(pi);else{if(pi.nodeType)return this[0]=pi,this.length=1,this;if(oi(pi))return Ui.ready!==void 0?Ui.ready(pi):pi(Je)}return Je.makeArray(pi,this)};zn.prototype=Je.fn,Hi=Je(hi);var ji=/^(?:parents|prev(?:Until|All))/,hr={children:!0,contents:!0,next:!0,prev:!0};Je.fn.extend({has:function(pi){var Ci=Je(pi,this),Ui=Ci.length;return this.filter(function(){for(var Ki=0;Ki<Ui;Ki++)if(Je.contains(this,Ci[Ki]))return!0})},closest:function(pi,Ci){var Ui,Ki=0,mn=this.length,yn=[],An=typeof pi!="string"&&Je(pi);if(!wi.test(pi)){for(;Ki<mn;Ki++)for(Ui=this[Ki];Ui&&Ui!==Ci;Ui=Ui.parentNode)if(Ui.nodeType<11&&(An?An.index(Ui)>-1:Ui.nodeType===1&&Je.find.matchesSelector(Ui,pi))){yn.push(Ui);break}}return this.pushStack(yn.length>1?Je.uniqueSort(yn):yn)},index:function(pi){return pi?typeof pi=="string"?je.call(Je(pi),this[0]):je.call(this,pi.jquery?pi[0]:pi):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(pi,Ci){return this.pushStack(Je.uniqueSort(Je.merge(this.get(),Je(pi,Ci))))},addBack:function(pi){return this.add(pi==null?this.prevObject:this.prevObject.filter(pi))}});function Ri(pi,Ci){for(;(pi=pi[Ci])&&pi.nodeType!==1;);return pi}Je.each({parent:function(pi){var Ci=pi.parentNode;return Ci&&Ci.nodeType!==11?Ci:null},parents:function(pi){return Er(pi,"parentNode")},parentsUntil:function(pi,Ci,Ui){return Er(pi,"parentNode",Ui)},next:function(pi){return Ri(pi,"nextSibling")},prev:function(pi){return Ri(pi,"previousSibling")},nextAll:function(pi){return Er(pi,"nextSibling")},prevAll:function(pi){return Er(pi,"previousSibling")},nextUntil:function(pi,Ci,Ui){return Er(pi,"nextSibling",Ui)},prevUntil:function(pi,Ci,Ui){return Er(pi,"previousSibling",Ui)},siblings:function(pi){return os((pi.parentNode||{}).firstChild,pi)},children:function(pi){return os(pi.firstChild)},contents:function(pi){return pi.contentDocument!=null&&Le(pi.contentDocument)?pi.contentDocument:(Gi(pi,"template")&&(pi=pi.content||pi),Je.merge([],pi.childNodes))}},function(pi,Ci){Je.fn[pi]=function(Ui,Ki){var mn=Je.map(this,Ci,Ui);return pi.slice(-5)!=="Until"&&(Ki=Ui),Ki&&typeof Ki=="string"&&(mn=Je.filter(Ki,mn)),this.length>1&&(hr[pi]||Je.uniqueSort(mn),ji.test(pi)&&mn.reverse()),this.pushStack(mn)}});var xs=/[^\x20\t\r\n\f]+/g;function Ue(pi){var Ci={};return Je.each(pi.match(xs)||[],function(Ui,Ki){Ci[Ki]=!0}),Ci}Je.Callbacks=function(pi){pi=typeof pi=="string"?Ue(pi):Je.extend({},pi);var Ci,Ui,Ki,mn,yn=[],An=[],ur=-1,Kn=function(){for(mn=mn||pi.once,Ki=Ci=!0;An.length;ur=-1)for(Ui=An.shift();++ur<yn.length;)yn[ur].apply(Ui[0],Ui[1])===!1&&pi.stopOnFalse&&(ur=yn.length,Ui=!1);pi.memory||(Ui=!1),Ci=!1,mn&&(Ui?yn=[]:yn="")},Br={add:function(){return yn&&(Ui&&!Ci&&(ur=yn.length-1,An.push(Ui)),function ls(ps){Je.each(ps,function(Kr,Ns){oi(Ns)?(!pi.unique||!Br.has(Ns))&&yn.push(Ns):Ns&&Ns.length&&Di(Ns)!=="string"&&ls(Ns)})}(arguments),Ui&&!Ci&&Kn()),this},remove:function(){return Je.each(arguments,function(ls,ps){for(var Kr;(Kr=Je.inArray(ps,yn,Kr))>-1;)yn.splice(Kr,1),Kr<=ur&&ur--}),this},has:function(ls){return ls?Je.inArray(ls,yn)>-1:yn.length>0},empty:function(){return yn&&(yn=[]),this},disable:function(){return mn=An=[],yn=Ui="",this},disabled:function(){return!yn},lock:function(){return mn=An=[],!Ui&&!Ci&&(yn=Ui=""),this},locked:function(){return!!mn},fireWith:function(ls,ps){return mn||(ps=ps||[],ps=[ls,ps.slice?ps.slice():ps],An.push(ps),Ci||Kn()),this},fire:function(){return Br.fireWith(this,arguments),this},fired:function(){return!!Ki}};return Br};function bi(pi){return pi}function Ii(pi){throw pi}function Ji(pi,Ci,Ui,Ki){var mn;try{pi&&oi(mn=pi.promise)?mn.call(pi).done(Ci).fail(Ui):pi&&oi(mn=pi.then)?mn.call(pi,Ci,Ui):Ci.apply(void 0,[pi].slice(Ki))}catch(yn){Ui.apply(void 0,[yn])}}Je.extend({Deferred:function(pi){var Ci=[["notify","progress",Je.Callbacks("memory"),Je.Callbacks("memory"),2],["resolve","done",Je.Callbacks("once memory"),Je.Callbacks("once memory"),0,"resolved"],["reject","fail",Je.Callbacks("once memory"),Je.Callbacks("once memory"),1,"rejected"]],Ui="pending",Ki={state:function(){return Ui},always:function(){return mn.done(arguments).fail(arguments),this},catch:function(yn){return Ki.then(null,yn)},pipe:function(){var yn=arguments;return Je.Deferred(function(An){Je.each(Ci,function(ur,Kn){var Br=oi(yn[Kn[4]])&&yn[Kn[4]];mn[Kn[1]](function(){var ls=Br&&Br.apply(this,arguments);ls&&oi(ls.promise)?ls.promise().progress(An.notify).done(An.resolve).fail(An.reject):An[Kn[0]+"With"](this,Br?[ls]:arguments)})}),yn=null}).promise()},then:function(yn,An,ur){var Kn=0;function Br(ls,ps,Kr,Ns){return function(){var co=this,Fo=arguments,Vo=function(){var Wa,Sc;if(!(ls<Kn)){if(Wa=Kr.apply(co,Fo),Wa===ps.promise())throw new TypeError("Thenable self
57-resolution");Sc=Wa&&(typeof Wa=="object"||typeof Wa=="function")&&Wa.then,oi(Sc)?Ns?Sc.call(Wa,Br(Kn,ps,bi,Ns),Br(Kn,ps,Ii,Ns)):(Kn++,Sc.call(Wa,Br(Kn,ps,bi,Ns),Br(Kn,ps,Ii,Ns),Br(Kn,ps,bi,ps.notifyWith))):(Kr!==bi&&(co=void 0,Fo=[Wa]),(Ns||ps.resolveWith)(co,Fo))}},Dl=Ns?Vo:function(){try{Vo()}catch(Wa){Je.Deferred.exceptionHook&&Je.Deferred.exceptionHook(Wa,Dl.error),ls+1>=Kn&&(Kr!==Ii&&(co=void 0,Fo=[Wa]),ps.rejectWith(co,Fo))}};ls?Dl():(Je.Deferred.getErrorHook?Dl.error=Je.Deferred.getErrorHook():Je.Deferred.getStackHook&&(Dl.error=Je.Deferred.getStackHook()),_e.setTimeout(Dl))}}return Je.Deferred(function(ls){Ci[0][3].add(Br(0,ls,oi(ur)?ur:bi,ls.notifyWith)),Ci[1][3].add(Br(0,ls,oi(yn)?yn:bi)),Ci[2][3].add(Br(0,ls,oi(An)?An:Ii))}).promise()},promise:function(yn){return yn!=null?Je.extend(yn,Ki):Ki}},mn={};return Je.each(Ci,function(yn,An){var ur=An[2],Kn=An[5];Ki[An[1]]=ur.add,Kn&&ur.add(function(){Ui=Kn},Ci[3-yn][2].disable,Ci[3-yn][3].disable,Ci[0][2].lock,Ci[0][3].lock),ur.add(An[3].fire),mn[An[0]]=function(){return mn[An[0]+"With"](this===mn?void 0:this,arguments),this},mn[An[0]+"With"]=ur.fireWith}),Ki.promise(mn),pi&&pi.call(mn,mn),mn},when:function(pi){var Ci=arguments.length,Ui=Ci,Ki=Array(Ui),mn=Fe.call(arguments),yn=Je.Deferred(),An=function(ur){return function(Kn){Ki[ur]=this,mn[ur]=arguments.length>1?Fe.call(arguments):Kn,--Ci||yn.resolveWith(Ki,mn)}};if(Ci<=1&&(Ji(pi,yn.done(An(Ui)).resolve,yn.reject,!Ci),yn.state()==="pending"||oi(mn[Ui]&&mn[Ui].then)))return yn.then();for(;Ui--;)Ji(mn[Ui],An(Ui),yn.reject);return yn.promise()}});var Mn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Je.Deferred.exceptionHook=function(pi,Ci){_e.console&&_e.console.warn&&pi&&Mn.test(pi.name)&&_e.console.warn("jQuery.Deferred exception: "+pi.message,pi.stack,Ci)},Je.readyException=function(pi){_e.setTimeout(function(){throw pi})};var En=Je.Deferred();Je.fn.ready=function(pi){return En.then(pi).catch(function(Ci){Je.readyException(Ci)}),this},Je.extend({isReady:!1,readyWait:1,ready:function(pi){(pi===!0?--Je.readyWait:Je.isReady)||(Je.isReady=!0,!(pi!==!0&&--Je.readyWait>0)&&En.resolveWith(hi,[Je]))}}),Je.ready.then=En.then;function Fn(){hi.removeEventListener("DOMContentLoaded",Fn),_e.removeEventListener("load",Fn),Je.ready()}hi.readyState==="complete"||hi.readyState!=="loading"&&!hi.documentElement.doScroll?_e.setTimeout(Je.ready):(hi.addEventListener("DOMContentLoaded",Fn),_e.addEventListener("load",Fn));var Cr=function(pi,Ci,Ui,Ki,mn,yn,An){var ur=0,Kn=pi.length,Br=Ui==null;if(Di(Ui)==="object"){mn=!0;for(ur in Ui)Cr(pi,Ci,ur,Ui[ur],!0,yn,An)}else if(Ki!==void 0&&(mn=!0,oi(Ki)||(An=!0),Br&&(An?(Ci.call(pi,Ki),Ci=null):(Br=Ci,Ci=function(ls,ps,Kr){return Br.call(Je(ls),Kr)})),Ci))for(;ur<Kn;ur++)Ci(pi[ur],Ui,An?Ki:Ki.call(pi[ur],ur,Ci(pi[ur],Ui)));return mn?pi:Br?Ci.call(pi):Kn?Ci(pi[0],Ui):yn},_r=/^-ms-/,Or=/-([a-z])/g;function _s(pi,Ci){return Ci.toUpperCase()}function so(pi){return pi.replace(_r,"ms-").replace(Or,_s)}var Ls=function(pi){return pi.nodeType===1||pi.nodeType===9||!+pi.nodeType};function go(){this.expando=Je.expando+go.uid++}go.uid=1,go.prototype={cache:function(pi){var Ci=pi[this.expando];return Ci||(Ci={},Ls(pi)&&(pi.nodeType?pi[this.expando]=Ci:Object.defineProperty(pi,this.expando,{value:Ci,configurable:!0}))),Ci},set:function(pi,Ci,Ui){var Ki,mn=this.cache(pi);if(typeof Ci=="string")mn[so(Ci)]=Ui;else for(Ki in Ci)mn[so(Ki)]=Ci[Ki];return mn},get:function(pi,Ci){return Ci===void 0?this.cache(pi):pi[this.expando]&&pi[this.expando][so(Ci)]},access:function(pi,Ci,Ui){return Ci===void 0||Ci&&typeof Ci=="string"&&Ui===void 0?this.get(pi,Ci):(this.set(pi,Ci,Ui),Ui!==void 0?Ui:Ci)},remove:function(pi,Ci){var Ui,Ki=pi[this.expando];if(Ki!==void 0){if(Ci!==void 0)for(Array.isArray(Ci)?Ci=Ci.map(so):(Ci=so(Ci),Ci=Ci in Ki?[Ci]:Ci.match(xs)||[]),Ui=Ci.length;Ui--;)delete Ki[Ci[Ui]];(Ci===void 0||Je.isEmptyObject(Ki))&&(pi.nodeType?pi[this.expando]=void 0:delete pi[this.expando])}},hasData:function(pi){var Ci=pi[this.expando];return Ci!==void 0&&!Je.isEmptyObject(Ci)}};var As=new go,no=new go,Ws=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ro=/[A-Z]/g;function qs(pi){return pi==="true"?!0:pi==="false"?!1:pi==="null"?null:pi===+pi+""?+pi:Ws.test(pi)?JSON.parse(pi):pi}function hs(pi,Ci,Ui){var Ki;if(Ui===void 0&&pi.nodeType===1)if(Ki="data-"+Ci.replace(ro,"-$&").toLowerCase(),Ui=pi.getAttribute(Ki),typeof Ui=="str
57ing"){try{Ui=qs(Ui)}catch{}no.set(pi,Ci,Ui)}else Ui=void 0;return Ui}Je.extend({hasData:function(pi){return no.hasData(pi)||As.hasData(pi)},data:function(pi,Ci,Ui){return no.access(pi,Ci,Ui)},removeData:function(pi,Ci){no.remove(pi,Ci)},_data:function(pi,Ci,Ui){return As.access(pi,Ci,Ui)},_removeData:function(pi,Ci){As.remove(pi,Ci)}}),Je.fn.extend({data:function(pi,Ci){var Ui,Ki,mn,yn=this[0],An=yn&&yn.attributes;if(pi===void 0){if(this.length&&(mn=no.get(yn),yn.nodeType===1&&!As.get(yn,"hasDataAttrs"))){for(Ui=An.length;Ui--;)An[Ui]&&(Ki=An[Ui].name,Ki.indexOf("data-")===0&&(Ki=so(Ki.slice(5)),hs(yn,Ki,mn[Ki])));As.set(yn,"hasDataAttrs",!0)}return mn}return typeof pi=="object"?this.each(function(){no.set(this,pi)}):Cr(this,function(ur){var Kn;if(yn&&ur===void 0)return Kn=no.get(yn,pi),Kn!==void 0||(Kn=hs(yn,pi),Kn!==void 0)?Kn:void 0;this.each(function(){no.set(this,pi,ur)})},null,Ci,arguments.length>1,null,!0)},removeData:function(pi){return this.each(function(){no.remove(this,pi)})}}),Je.extend({queue:function(pi,Ci,Ui){var Ki;if(pi)return Ci=(Ci||"fx")+"queue",Ki=As.get(pi,Ci),Ui&&(!Ki||Array.isArray(Ui)?Ki=As.access(pi,Ci,Je.makeArray(Ui)):Ki.push(Ui)),Ki||[]},dequeue:function(pi,Ci){Ci=Ci||"fx";var Ui=Je.queue(pi,Ci),Ki=Ui.length,mn=Ui.shift(),yn=Je._queueHooks(pi,Ci),An=function(){Je.dequeue(pi,Ci)};mn==="inprogress"&&(mn=Ui.shift(),Ki--),mn&&(Ci==="fx"&&Ui.unshift("inprogress"),delete yn.stop,mn.call(pi,An,yn)),!Ki&&yn&&yn.empty.fire()},_queueHooks:function(pi,Ci){var Ui=Ci+"queueHooks";return As.get(pi,Ui)||As.access(pi,Ui,{empty:Je.Callbacks("once memory").add(function(){As.remove(pi,[Ci+"queue",Ui])})})}}),Je.fn.extend({queue:function(pi,Ci){var Ui=2;return typeof pi!="string"&&(Ci=pi,pi="fx",Ui--),arguments.length<Ui?Je.queue(this[0],pi):Ci===void 0?this:this.each(function(){var Ki=Je.queue(this,pi,Ci);Je._queueHooks(this,pi),pi==="fx"&&Ki[0]!=="inprogress"&&Je.dequeue(this,pi)})},dequeue:function(pi){return this.each(function(){Je.dequeue(this,pi)})},clearQueue:function(pi){return this.queue(pi||"fx",[])},promise:function(pi,Ci){var Ui,Ki=1,mn=Je.Deferred(),yn=this,An=this.length,ur=function(){--Ki||mn.resolveWith(yn,[yn])};for(typeof pi!="string"&&(Ci=pi,pi=void 0),pi=pi||"fx";An--;)Ui=As.get(yn[An],pi+"queueHooks"),Ui&&Ui.empty&&(Ki++,Ui.empty.add(ur));return ur(),mn.promise(Ci)}});var Nr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ea=new RegExp("^(?:([+-])=|)("+Nr+")([a-z%]*)$","i"),$a=["Top","Right","Bottom","Left"],ao=hi.documentElement,Do=function(pi){return Je.contains(pi.ownerDocument,pi)},el={composed:!0};ao.getRootNode&&(Do=function(pi){return Je.contains(pi.ownerDocument,pi)||pi.getRootNode(el)===pi.ownerDocument});var Fa=function(pi,Ci){return pi=Ci||pi,pi.style.display==="none"||pi.style.display===""&&Do(pi)&&Je.css(pi,"display")==="none"};function cl(pi,Ci,Ui,Ki){var mn,yn,An=20,ur=Ki?function(){return Ki.cur()}:function(){return Je.css(pi,Ci,"")},Kn=ur(),Br=Ui&&Ui[3]||(Je.cssNumber[Ci]?"":"px"),ls=pi.nodeType&&(Je.cssNumber[Ci]||Br!=="px"&&+Kn)&&ea.exec(Je.css(pi,Ci));if(ls&&ls[3]!==Br){for(Kn=Kn/2,Br=Br||ls[3],ls=+Kn||1;An--;)Je.style(pi,Ci,ls+Br),(1-yn)*(1-(yn=ur()/Kn||.5))<=0&&(An=0),ls=ls/yn;ls=ls*2,Je.style(pi,Ci,ls+Br),Ui=Ui||[]}return Ui&&(ls=+ls||+Kn||0,mn=Ui[1]?ls+(Ui[1]+1)*Ui[2]:+Ui[2],Ki&&(Ki.unit=Br,Ki.start=ls,Ki.end=mn)),mn}var Zn={};function bn(pi){var Ci,Ui=pi.ownerDocument,Ki=pi.nodeName,mn=Zn[Ki];return mn||(Ci=Ui.body.appendChild(Ui.createElement(Ki)),mn=Je.css(Ci,"display"),Ci.parentNode.removeChild(Ci),mn==="none"&&(mn="block"),Zn[Ki]=mn,mn)}function xn(pi,Ci){for(var Ui,Ki,mn=[],yn=0,An=pi.length;yn<An;yn++)Ki=pi[yn],Ki.style&&(Ui=Ki.style.display,Ci?(Ui==="none"&&(mn[yn]=As.get(Ki,"display")||null,mn[yn]||(Ki.style.display="")),Ki.style.display===""&&Fa(Ki)&&(mn[yn]=bn(Ki))):Ui!=="none"&&(mn[yn]="none",As.set(Ki,"display",Ui)));for(yn=0;yn<An;yn++)mn[yn]!=null&&(pi[yn].style.display=mn[yn]);return pi}Je.fn.extend({show:function(){return xn(this,!0)},hide:function(){return xn(this)},toggle:function(pi){return typeof pi=="boolean"?pi?this.show():this.hide():this.each(function(){Fa(this)?Je(this).show():Je(this).hide()})}});var Yn=/^(?:checkbox|radio)$/i,or=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,yr=/^$|^module$|\/(?:java|ecma)script/i;
vendor: 7,448 bytes, line 57
57(function(){var pi=hi.createDocumentFragment(),Ci=pi.appendChild(hi.createElement("div")),Ui=hi.createElement("input");Ui.setAttribute("type","radio"),Ui.setAttribute("checked","checked"),Ui.setAttribute("name","t"),Ci.appendChild(Ui),Ai.checkClone=Ci.cloneNode(!0).cloneNode(!0).lastChild.checked,Ci.innerHTML="<textarea>x</textarea>",Ai.noCloneChecked=!!Ci.cloneNode(!0).lastChild.defaultValue,Ci.innerHTML="<option></option>",Ai.option=!!Ci.lastChild})();var Rr={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,"",""]};Rr.tbody=Rr.tfoot=Rr.colgroup=Rr.caption=Rr.thead,Rr.th=Rr.td,Ai.option||(Rr.optgroup=Rr.option=[1,"<select multiple='multiple'>","</select>"]);function kr(pi,Ci){var Ui;return typeof pi.getElementsByTagName<"u"?Ui=pi.getElementsByTagName(Ci||"*"):typeof pi.querySelectorAll<"u"?Ui=pi.querySelectorAll(Ci||"*"):Ui=[],Ci===void 0||Ci&&Gi(pi,Ci)?Je.merge([pi],Ui):Ui}function br(pi,Ci){for(var Ui=0,Ki=pi.length;Ui<Ki;Ui++)As.set(pi[Ui],"globalEval",!Ci||As.get(Ci[Ui],"globalEval"))}var jr=/<|&#?\w+;/;function bs(pi,Ci,Ui,Ki,mn){for(var yn,An,ur,Kn,Br,ls,ps=Ci.createDocumentFragment(),Kr=[],Ns=0,co=pi.length;Ns<co;Ns++)if(yn=pi[Ns],yn||yn===0)if(Di(yn)==="object")Je.merge(Kr,yn.nodeType?[yn]:yn);else if(!jr.test(yn))Kr.push(Ci.createTextNode(yn));else{for(An=An||ps.appendChild(Ci.createElement("div")),ur=(or.exec(yn)||["",""])[1].toLowerCase(),Kn=Rr[ur]||Rr._default,An.innerHTML=Kn[1]+Je.htmlPrefilter(yn)+Kn[2],ls=Kn[0];ls--;)An=An.lastChild;Je.merge(Kr,An.childNodes),An=ps.firstChild,An.textContent=""}for(ps.textContent="",Ns=0;yn=Kr[Ns++];){if(Ki&&Je.inArray(yn,Ki)>-1){mn&&mn.push(yn);continue}if(Br=Do(yn),An=kr(ps.appendChild(yn),"script"),Br&&br(An),Ui)for(ls=0;yn=An[ls++];)yr.test(yn.type||"")&&Ui.push(yn)}return ps}var Fs=/^([^.]*)(?:\.(.+)|)/;function wr(){return!0}function gs(){return!1}function Es(pi,Ci,Ui,Ki,mn,yn){var An,ur;if(typeof Ci=="object"){typeof Ui!="string"&&(Ki=Ki||Ui,Ui=void 0);for(ur in Ci)Es(pi,ur,Ui,Ki,Ci[ur],yn);return pi}if(Ki==null&&mn==null?(mn=Ui,Ki=Ui=void 0):mn==null&&(typeof Ui=="string"?(mn=Ki,Ki=void 0):(mn=Ki,Ki=Ui,Ui=void 0)),mn===!1)mn=gs;else if(!mn)return pi;return yn===1&&(An=mn,mn=function(Kn){return Je().off(Kn),An.apply(this,arguments)},mn.guid=An.guid||(An.guid=Je.guid++)),pi.each(function(){Je.event.add(this,Ci,mn,Ki,Ui)})}Je.event={global:{},add:function(pi,Ci,Ui,Ki,mn){var yn,An,ur,Kn,Br,ls,ps,Kr,Ns,co,Fo,Vo=As.get(pi);if(Ls(pi))for(Ui.handler&&(yn=Ui,Ui=yn.handler,mn=yn.selector),mn&&Je.find.matchesSelector(ao,mn),Ui.guid||(Ui.guid=Je.guid++),(Kn=Vo.events)||(Kn=Vo.events=Object.create(null)),(An=Vo.handle)||(An=Vo.handle=function(Dl){return typeof Je<"u"&&Je.event.triggered!==Dl.type?Je.event.dispatch.apply(pi,arguments):void 0}),Ci=(Ci||"").match(xs)||[""],Br=Ci.length;Br--;)ur=Fs.exec(Ci[Br])||[],Ns=Fo=ur[1],co=(ur[2]||"").split(".").sort(),Ns&&(ps=Je.event.special[Ns]||{},Ns=(mn?ps.delegateType:ps.bindType)||Ns,ps=Je.event.special[Ns]||{},ls=Je.extend({type:Ns,origType:Fo,data:Ki,handler:Ui,guid:Ui.guid,selector:mn,needsContext:mn&&Je.expr.match.needsContext.test(mn),namespace:co.join(".")},yn),(Kr=Kn[Ns])||(Kr=Kn[Ns]=[],Kr.delegateCount=0,(!ps.setup||ps.setup.call(pi,Ki,co,An)===!1)&&pi.addEventListener&&pi.addEventListener(Ns,An)),ps.add&&(ps.add.call(pi,ls),ls.handler.guid||(ls.handler.guid=Ui.guid)),mn?Kr.splice(Kr.delegateCount++,0,ls):Kr.push(ls),Je.event.global[Ns]=!0)},remove:function(pi,Ci,Ui,Ki,mn){var yn,An,ur,Kn,Br,ls,ps,Kr,Ns,co,Fo,Vo=As.hasData(pi)&&As.get(pi);if(!(!Vo||!(Kn=Vo.events))){for(Ci=(Ci||"").match(xs)||[""],Br=Ci.length;Br--;){if(ur=Fs.exec(Ci[Br])||[],Ns=Fo=ur[1],co=(ur[2]||"").split(".").sort(),!Ns){for(Ns in Kn)Je.event.remove(pi,Ns+Ci[Br],Ui,Ki,!0);continue}for(ps=Je.event.special[Ns]||{},Ns=(Ki?ps.delegateType:ps.bindType)||Ns,Kr=Kn[Ns]||[],ur=ur[2]&&new RegExp("(^|\\.)"+co.join("\\.(?:.*\\.|)")+"(\\.|$)"),An=yn=Kr.length;yn--;)ls=Kr[yn],(mn||Fo===ls.origType)&&(!Ui||Ui.guid===ls.guid)&&(!ur||ur.test(ls.namespace))&&(!Ki||Ki===ls.selector||Ki==="**"&&ls.selector)&&(Kr.splice(yn,1),ls.selector&&Kr.delegateCount--,ps.remove&&ps.remove.call(pi,ls));An&&!Kr.length&&((!ps.teardown||ps.teardown.call(pi,co,Vo.handle)===!1)&&Je.removeEvent(pi,Ns,Vo.handle),delete Kn[Ns])}Je.isEmptyObject(Kn)&&As.remove(pi,"handle events")}},dispatch:function(pi){var Ci,Ui,Ki,mn,yn,An,ur=new Array(arguments.length),Kn=Je.event.fix(pi),Br=(As.get(this,"events")||Object.create(null))[Kn.type]||[],ls=Je.event.special[Kn.type]||{};for(ur[0]=Kn,Ci=1;Ci<arguments.length;Ci++)ur[Ci]=arguments[Ci];if(Kn.delegateTarget=this,!(ls.preDispatch&&ls.preDispatch.call(this,Kn)===!1)){for(An=Je.event.handlers.call(this,Kn,Br),Ci=0;(mn=An[Ci++])&&!Kn.isPropagationStopped();)for(Kn.currentTarget=mn.elem,Ui=0;(yn=mn.handlers[Ui++])&&!Kn.isImmediatePropagationStopped();)(!Kn.rnamespace||yn.namespace===!1||Kn.rnamespace.test(yn.namespace))&&(Kn.handleObj=yn,Kn.data=yn.data,Ki=((Je.event.special[yn.origType]||{}).handle||yn.handler).apply(mn.elem,ur),Ki!==void 0&&(Kn.result=Ki)===!1&&(Kn.preventDefault(),Kn.stopPropagation()));return ls.postDispatch&&ls.postDispatch.call(this,Kn),Kn.result}},handlers:function(pi,Ci){var Ui,Ki,mn,yn,An,ur=[],Kn=Ci.delegateCount,Br=pi.target;if(Kn&&Br.nodeType&&!(pi.type==="click"&&pi.button>=1)){for(;Br!==this;Br=Br.parentNode||this)if(Br.nodeType===1&&!(pi.type==="click"&&Br.disabled===!0)){for(yn=[],An={},Ui=0;Ui<Kn;Ui++)Ki=Ci[Ui],mn=Ki.selector+" ",An[mn]===void 0&&(An[mn]=Ki.needsContext?Je(mn,this).index(Br)>-1:Je.find(mn,this,null,[Br]).length),An[mn]&&yn.push(Ki);yn.length&&ur.push({elem:Br,handlers:yn})}}return Br=this,Kn<Ci.length&&ur.push({elem:Br,handlers:Ci.slice(Kn)}),ur},addProp:function(pi,Ci){Object.defineProperty(Je.Event.prototype,pi,{enumerable:!0,configurable:!0,get:oi(Ci)?function(){if(this.originalEvent)return Ci(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[pi]},set:function(Ui){Object.defineProperty(this,pi,{enumerable:!0,configurable:!0,writable:!0,value:Ui})}})},fix:function(pi){return pi[Je.expando]?pi:new Je.Event(pi)},special:{load:{noBubble:!0},click:{setup:function(pi){var Ci=this||pi;return Yn.test(Ci.type)&&Ci.click&&Gi(Ci,"input")&&Hs(Ci,"click",!0),!1},trigger:function(pi){var Ci=this||pi;return Yn.test(Ci.type)&&Ci.click&&Gi(Ci,"input")&&Hs(Ci,"click"),!0},_default:function(pi){var Ci=pi.target;return Yn.test(Ci.type)&&Ci.click&&Gi(Ci,"input")&&As.get(Ci,"click")||Gi(Ci,"a")}},beforeunload:{postDispatch:function(pi){pi.result!==void 0&&pi.originalEvent&&(pi.originalEvent.returnValue=pi.result)}}}};function Hs(pi,Ci,Ui){if(!Ui){As.get(pi,Ci)===void 0&&Je.event.add(pi,Ci,wr);return}As.set(pi,Ci,!1),Je.event.add(pi,Ci,{namespace:!1,handler:function(Ki){var mn,yn=As.get(this,Ci);if(Ki.isTrigger&1&&this[Ci]){if(yn)(Je.event.special[Ci]||{}).delegateType&&Ki.stopPropagation();else if(yn=Fe.call(arguments),As.set(this,Ci,yn),this[Ci](),mn=As.get(this,Ci),As.set(this,Ci,!1),yn!==mn)return Ki.stopImmediatePropagation(),Ki.preventDefault(),mn}else yn&&(As.set(this,Ci,Je.event.trigger(yn[0],yn.slice(1),this)),Ki.stopPropagation(),Ki.isImmediatePropagationStopped=wr)}})}Je.removeEvent=function(pi,Ci,Ui){pi.removeEventListener&&pi.removeEventListener(Ci,Ui)},Je.Event=function(pi,Ci){if(!(this instanceof Je.Event))return new Je.Event(pi,Ci);
57pi&&pi.type?(this.originalEvent=pi,this.type=pi.type,this.isDefaultPrevented=pi.defaultPrevented||pi.defaultPrevented===void 0&&pi.returnValue===!1?wr:gs,this.target=pi.target&&pi.target.nodeType===3?pi.target.parentNode:pi.target,this.currentTarget=pi.currentTarget,this.relatedTarget=pi.relatedTarget):this.type=pi,Ci&&Je.extend(this,Ci),this.timeStamp=pi&&pi.timeStamp||Date.now(),this[Je.expando]=!0},Je.Event.prototype={constructor:Je.Event,isDefaultPrevented:gs,isPropagationStopped:gs,isImmediatePropagationStopped:gs,isSimulated:!1,preventDefault:function(){var pi=this.originalEvent;this.isDefaultPrevented=wr,pi&&!this.isSimulated&&pi.preventDefault()},stopPropagation:function(){var pi=this.originalEvent;this.isPropagationStopped=wr,pi&&!this.isSimulated&&pi.stopPropagation()},stopImmediatePropagation:function(){var pi=this.originalEvent;this.isImmediatePropagationStopped=wr,pi&&!this.isSimulated&&pi.stopImmediatePropagation(),this.stopPropagation()}},Je.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:!0},Je.event.addProp),Je.each({focus:"focusin",blur:"focusout"},function(pi,Ci){function Ui(Ki){if(hi.documentMode){var mn=As.get(this,"handle"),yn=Je.event.fix(Ki);yn.type=Ki.type==="focusin"?"focus":"blur",yn.isSimulated=!0,mn(Ki),yn.target===yn.currentTarget&&mn(yn)}else Je.event.simulate(Ci,Ki.target,Je.event.fix(Ki))}Je.event.special[pi]={setup:function(){var Ki;if(Hs(this,pi,!0),hi.documentMode)Ki=As.get(this,Ci),Ki||this.addEventListener(Ci,Ui),As.set(this,Ci,(Ki||0)+1);else return!1},trigger:function(){return Hs(this,pi),!0},teardown:function(){var Ki;if(hi.documentMode)Ki=As.get(this,Ci)-1,Ki?As.set(this,Ci,Ki):(this.removeEventListener(Ci,Ui),As.remove(this,Ci));else return!1},_default:function(Ki){return As.get(Ki.target,pi)},delegateType:Ci},Je.event.special[Ci]={setup:function(){var Ki=this.ownerDocument||this.document||this,mn=hi.documentMode?this:Ki,yn=As.get(mn,Ci);yn||(hi.documentMode?this.addEventListener(Ci,Ui):Ki.addEventListener(pi,Ui,!0)),As.set(mn,Ci,(yn||0)+1)},teardown:function(){var Ki=this.ownerDocument||this.document||this,mn=hi.documentMode?this:Ki,yn=As.get(mn,Ci)-1;yn?As.set(mn,Ci,yn):(hi.documentMode?this.removeEventListener(Ci,Ui):Ki.removeEventListener(pi,Ui,!0),As.remove(mn,Ci))}}}
vendor: 24,868 bytes, line 57
57),Je.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(pi,Ci){Je.event.special[pi]={delegateType:Ci,bindType:Ci,handle:function(Ui){var Ki,mn=this,yn=Ui.relatedTarget,An=Ui.handleObj;return(!yn||yn!==mn&&!Je.contains(mn,yn))&&(Ui.type=An.origType,Ki=An.handler.apply(this,arguments),Ui.type=Ci),Ki}}}),Je.fn.extend({on:function(pi,Ci,Ui,Ki){return Es(this,pi,Ci,Ui,Ki)},one:function(pi,Ci,Ui,Ki){return Es(this,pi,Ci,Ui,Ki,1)},off:function(pi,Ci,Ui){var Ki,mn;if(pi&&pi.preventDefault&&pi.handleObj)return Ki=pi.handleObj,Je(pi.delegateTarget).off(Ki.namespace?Ki.origType+"."+Ki.namespace:Ki.origType,Ki.selector,Ki.handler),this;if(typeof pi=="object"){for(mn in pi)this.off(mn,Ci,pi[mn]);return this}return(Ci===!1||typeof Ci=="function")&&(Ui=Ci,Ci=void 0),Ui===!1&&(Ui=gs),this.each(function(){Je.event.remove(this,pi,Ui,Ci)})}});var xo=/<script|<style|<link/i,wo=/checked\s*(?:[^=]|=\s*.checked.)/i,ga=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function _a(pi,Ci){return Gi(pi,"table")&&Gi(Ci.nodeType!==11?Ci:Ci.firstChild,"tr")&&Je(pi).children("tbody")[0]||pi}function tl(pi){return pi.type=(pi.getAttribute("type")!==null)+"/"+pi.type,pi}function Lo(pi){return(pi.type||"").slice(0,5)==="true/"?pi.type=pi.type.slice(5):pi.removeAttribute("type"),pi}function za(pi,Ci){var Ui,Ki,mn,yn,An,ur,Kn;if(Ci.nodeType===1){if(As.hasData(pi)&&(yn=As.get(pi),Kn=yn.events,Kn)){As.remove(Ci,"handle events");for(mn in Kn)for(Ui=0,Ki=Kn[mn].length;Ui<Ki;Ui++)Je.event.add(Ci,mn,Kn[mn][Ui])}no.hasData(pi)&&(An=no.access(pi),ur=Je.extend({},An),no.set(Ci,ur))}}function ul(pi,Ci){var Ui=Ci.nodeName.toLowerCase();Ui==="input"&&Yn.test(pi.type)?Ci.checked=pi.checked:(Ui==="input"||Ui==="textarea")&&(Ci.defaultValue=pi.defaultValue)}function Ba(pi,Ci,Ui,Ki){Ci=Ve(Ci);var mn,yn,An,ur,Kn,Br,ls=0,ps=pi.length,Kr=ps-1,Ns=Ci[0],co=oi(Ns);if(co||ps>1&&typeof Ns=="string"&&!Ai.checkClone&&wo.test(Ns))return pi.each(function(Fo){var Vo=pi.eq(Fo);co&&(Ci[0]=Ns.call(this,Fo,Vo.html())),Ba(Vo,Ci,Ui,Ki)});if(ps&&(mn=bs(Ci,pi[0].ownerDocument,!1,pi,Ki),yn=mn.firstChild,mn.childNodes.length===1&&(mn=yn),yn||Ki)){for(An=Je.map(kr(mn,"script"),tl),ur=An.length;ls<ps;ls++)Kn=mn,ls!==Kr&&(Kn=Je.clone(Kn,!0,!0),ur&&Je.merge(An,kr(Kn,"script"))),Ui.call(pi[ls],Kn,ls);if(ur)for(Br=An[An.length-1].ownerDocument,Je.map(An,Lo),ls=0;ls<ur;ls++)Kn=An[ls],yr.test(Kn.type||"")&&!As.access(Kn,"globalEval")&&Je.contains(Br,Kn)&&(Kn.src&&(Kn.type||"").toLowerCase()!=="module"?Je._evalUrl&&!Kn.noModule&&Je._evalUrl(Kn.src,{nonce:Kn.nonce||Kn.getAttribute("nonce")},Br):Li(Kn.textContent.replace(ga,""),Kn,Br))}return pi}function dl(pi,Ci,Ui){for(var Ki,mn=Ci?Je.filter(Ci,pi):pi,yn=0;(Ki=mn[yn])!=null;yn++)!Ui&&Ki.nodeType===1&&Je.cleanData(kr(Ki)),Ki.parentNode&&(Ui&&Do(Ki)&&br(kr(Ki,"script")),Ki.parentNode.removeChild(Ki));return pi}Je.extend({htmlPrefilter:function(pi){return pi},clone:function(pi,Ci,Ui){var Ki,mn,yn,An,ur=pi.cloneNode(!0),Kn=Do(pi);if(!Ai.noCloneChecked&&(pi.nodeType===1||pi.nodeType===11)&&!Je.isXMLDoc(pi))for(An=kr(ur),yn=kr(pi),Ki=0,mn=yn.length;Ki<mn;Ki++)ul(yn[Ki],An[Ki]);if(Ci)if(Ui)for(yn=yn||kr(pi),An=An||kr(ur),Ki=0,mn=yn.length;Ki<mn;Ki++)za(yn[Ki],An[Ki]);else za(pi,ur);return An=kr(ur,"script"),An.length>0&&br(An,!Kn&&kr(pi,"script")),ur},cleanData:function(pi){for(var Ci,Ui,Ki,mn=Je.event.special,yn=0;(Ui=pi[yn])!==void 0;yn++)if(Ls(Ui)){if(Ci=Ui[As.expando]){if(Ci.events)for(Ki in Ci.events)mn[Ki]?Je.event.remove(Ui,Ki):Je.removeEvent(Ui,Ki,Ci.handle);Ui[As.expando]=void 0}Ui[no.expando]&&(Ui[no.expando]=void 0)}}}),Je.fn.extend({detach:function(pi){return dl(this,pi,!0)},remove:function(pi){return dl(this,pi)},text:function(pi){return Cr(this,function(Ci){return Ci===void 0?Je.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=Ci)})},null,pi,arguments.length)},append:function(){return Ba(this,arguments,function(pi){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var Ci=_a(this,pi);Ci.appendChild(pi)}})},prepend:function(){return Ba(this,arguments,function(pi){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var Ci=_a(this,pi);Ci.insertBefore(pi,Ci.firstChild)}})},before:function(){return Ba(this,arguments,function(pi){this.parentNode&&this.parentNode.insertBefore(pi,this)})},after:function(){return Ba(this,arguments,function(pi){this.parentNode&&this.parentNode.insertBefore(pi,this.nextSibling)})},empty:function(){for(var pi,Ci=0;(pi=this[Ci])!=null;Ci++)pi.nodeType===1&&(Je.cleanData(kr(pi,!1)),pi.textContent="");return this},clone:function(pi,Ci){return pi=pi??!1,Ci=Ci??pi,this.map(function(){return Je.clone(this,pi,Ci)})},html:function(pi){return Cr(this,function(Ci){var Ui=this[0]||{},Ki=0,mn=this.length;if(Ci===void 0&&Ui.nodeType===1)return Ui.innerHTML;if(typeof Ci=="string"&&!xo.test(Ci)&&!Rr[(or.exec(Ci)||["",""])[1].toLowerCase()]){Ci=Je.htmlPrefilter(Ci);try{for(;Ki<mn;Ki++)Ui=this[Ki]||{},Ui.nodeType===1&&(Je.cleanData(kr(Ui,!1)),Ui.innerHTML=Ci);Ui=0}catch{}}Ui&&this.empty().append(Ci)},null,pi,arguments.length)},replaceWith:function(){var pi=[];return Ba(this,arguments,function(Ci){var Ui=this.parentNode;Je.inArray(this,pi)<0&&(Je.cleanData(kr(this)),Ui&&Ui.replaceChild(Ci,this))},pi)}}),Je.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(pi,Ci){Je.fn[pi]=function(Ui){for(var Ki,mn=[],yn=Je(Ui),An=yn.length-1,ur=0;ur<=An;ur++)Ki=ur===An?this:this.clone(!0),Je(yn[ur])[Ci](Ki),Ie.apply(mn,Ki.get());return this.pushStack(mn)}});var lu=new RegExp("^("+Nr+")(?!px)[a-z%]+$","i"),dp=/^--/,ca=function(pi){var Ci=pi.ownerDocument.defaultView;return(!Ci||!Ci.opener)&&(Ci=_e),Ci.getComputedStyle(pi)},hp=function(pi,Ci,Ui){var Ki,mn,yn={};for(mn in Ci)yn[mn]=pi.style[mn],pi.style[mn]=Ci[mn];Ki=Ui.call(pi);for(mn in Ci)pi.style[mn]=yn[mn];return Ki},ld=new RegExp($a.join("|"),"i");(function(){function pi(){if(Br){Kn.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Br.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ao.appendChild(Kn).appendChild(Br);var ls=_e.getComputedStyle(Br);Ui=ls.top!=="1%",ur=Ci(ls.marginLeft)===12,Br.style.right="60%",yn=Ci(ls.right)===36,Ki=Ci(ls.width)===36,Br.style.position="absolute",mn=Ci(Br.offsetWidth/3)===12,ao.removeChild(Kn),Br=null}}function Ci(ls){return Math.round(parseFloat(ls))}var Ui,Ki,mn,yn,An,ur,Kn=hi.createElement("div"),Br=hi.createElement("div");Br.style&&(Br.style.backgroundClip="content-box",Br.cloneNode(!0).style.backgroundClip="",Ai.clearCloneStyle=Br.style.backgroundClip==="content-box",Je.extend(Ai,{boxSizingReliable:function(){return pi(),Ki},pixelBoxStyles:function(){return pi(),yn},pixelPosition:function(){return pi(),Ui},reliableMarginLeft:function(){return pi(),ur},scrollboxSize:function(){return pi(),mn},reliableTrDimensions:function(){var ls,ps,Kr,Ns;return An==null&&(ls=hi.createElement("table"),ps=hi.createElement("tr"),Kr=hi.createElement("div"),ls.style.cssText="position:absolute;left:-11111px;border-collapse:separate",ps.style.cssText="box-sizing:content-box;border:1px solid",ps.style.height="1px",Kr.style.height="9px",Kr.style.display="block",ao.appendChild(ls).appendChild(ps).appendChild(Kr),Ns=_e.getComputedStyle(ps),An=parseInt(Ns.height,10)+parseInt(Ns.borderTopWidth,10)+parseInt(Ns.borderBottomWidth,10)===ps.offsetHeight,ao.removeChild(ls)),An}}))})();function Id(pi,Ci,Ui){var Ki,mn,yn,An,ur=dp.test(Ci),Kn=pi.style;return Ui=Ui||ca(pi),Ui&&(An=Ui.getPropertyValue(Ci)||Ui[Ci],ur&&An&&(An=An.replace(Cn,"$1")||void 0),An===""&&!Do(pi)&&(An=Je.style(pi,Ci)),!Ai.pixelBoxStyles()&&lu.test(An)&&ld.test(Ci)&&(Ki=Kn.width,mn=Kn.minWidth,yn=Kn.maxWidth,Kn.minWidth=Kn.maxWidth=Kn.width=An,An=Ui.width,Kn.width=Ki,Kn.minWidth=mn,Kn.maxWidth=yn)),An!==void 0?An+"":An}function xu(pi,Ci){return{get:function(){if(pi()){delete this.get;return}return(this.get=Ci).apply(this,arguments)}}}var wu=["Webkit","Moz","ms"],Ru=hi.createElement("div").style,kc={};function Rd(pi){for(var Ci=pi[0].toUpperCase()+pi.slice(1),Ui=wu.length;Ui--;)if(pi=wu[Ui]+Ci,pi in Ru)return pi}function Zu(pi){var Ci=Je.cssProps[pi]||kc[pi];return Ci||(pi in Ru?pi:kc[pi]=Rd(pi)||pi)}var Gc=/^(none|table(?!-c[ea]).+)/,rh={position:"absolute",visibility:"hidden",display:"block"},rs={letterSpacing:"0",fontWeight:"400"};function Ou(pi,Ci,Ui){var Ki=ea.exec(Ci);return Ki?Math.max(0,Ki[2]-(Ui||0))+(Ki[3]||"px"):Ci}function hl(pi,Ci,Ui,Ki,mn,yn){var An=Ci==="width"?1:0,ur=0,Kn=0,Br=0;if(Ui===(Ki?"border":"content"))return 0;for(;An<4;An+=2)Ui==="margin"&&(Br+=Je.css(pi,Ui+$a[An],!0,mn)),Ki?(Ui==="content"&&(Kn-=Je.css(pi,"padding"+$a[An],!0,mn)),Ui!=="margin"&&(Kn-=Je.css(pi,"border"+$a[An]+"Width",!0,mn))):(Kn+=Je.css(pi,"padding"+$a[An],!0,mn),Ui!=="padding"?Kn+=Je.css(pi,"border"+$a[An]+"Width",!0,mn):ur+=Je.css(pi,"border"+$a[An]+"Width",!0,mn));return!Ki&&yn>=0&&(Kn+=Math.max(0,Math.ceil(pi["offset"+Ci[0].toUpperCase()+Ci.slice(1)]-yn-Kn-ur-.5))||0),Kn+Br}function il(pi,Ci,Ui){var Ki=ca(pi),mn=!Ai.boxSizingReliable()||Ui,yn=mn&&Je.css(pi,"boxSizing",!1,Ki)==="border-box",An=yn,ur=Id(pi,Ci,Ki),Kn="offset"+Ci[0].toUpperCase()+Ci.slice(1);if(lu.test(ur)){if(!Ui)return ur;ur="auto"}return(!Ai.boxSizingReliable()&&yn||!Ai.reliableTrDimensions()&&Gi(pi,"tr")||ur==="auto"||!parseFloat(ur)&&Je.css(pi,"display",!1,Ki)==="inline")&&pi.getClientRects().length&&(yn=Je.css(pi,"boxSizing",!1,Ki)==="border-box",An=Kn in pi,An&&(ur=pi[Kn])),ur=parseFloat(ur)||0,ur+hl(pi,Ci,Ui||(yn?"border":"content"),An,Ki,ur)+"px"}Je.extend({cssHooks:{opacity:{get:function(pi,Ci){if(Ci){var Ui=Id(pi,"opacity");return Ui===""?"1":Ui}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(pi,Ci,Ui,Ki){if(!(!pi||pi.nodeType===3||pi.nodeType===8||!pi.style)){var mn,yn,An,ur=so(Ci),Kn=dp.test(Ci),Br=pi.style;if(Kn||(Ci=Zu(ur)),An=Je.cssHooks[Ci]||Je.cssHooks[ur],Ui!==void 0){if(yn=typeof Ui,yn==="string"&&(mn=ea.exec(Ui))&&mn[1]&&(Ui=cl(pi,Ci,mn),yn="number"),Ui==null||Ui!==Ui)return;yn==="number"&&!Kn&&(Ui+=mn&&mn[3]||(Je.cssNumber[ur]?"":"px")),!Ai.clearCloneStyle&&Ui===""&&Ci.indexOf("background")===0&&(Br[Ci]="inherit"),(!An||!("set"in An)||(Ui=An.set(pi,Ui,Ki))!==void 0)&&(Kn?Br.setProperty(Ci,Ui):Br[Ci]=Ui)}else return An&&"get"in An&&(mn=An.get(pi,!1,Ki))!==void 0?mn:Br[Ci]}},css:function(pi,Ci,Ui,Ki){var mn,yn,An,ur=so(Ci),Kn=dp.test(Ci);return Kn||(Ci=Zu(ur)),An=Je.cssHooks[Ci]||Je.cssHooks[ur],An&&"get"in An&&(mn=An.get(pi,!0,Ui)),mn===void 0&&(mn=Id(pi,Ci,Ki)),mn==="normal"&&Ci in rs&&(mn=rs[Ci]),Ui===""||Ui?(yn=parseFloat(mn),Ui===!0||isFinite(yn)?yn||0:mn):mn}}),Je.each(["height","width"],function(pi,Ci){Je.cssHooks[Ci]={get:function(Ui,Ki,mn){if(Ki)return Gc.test(Je.css(Ui,"display"))&&(!Ui.getClientRects().length||!Ui.getBoundingClientRect().width)?hp(Ui,rh,function(){return il(Ui,Ci,mn)}):il(Ui,Ci,mn)},set:function(Ui,Ki,mn){var yn,An=ca(Ui),ur=!Ai.scrollboxSize()&&An.position==="absolute",Kn=ur||mn,Br=Kn&&Je.css(Ui,"boxSizing",!1,An)==="border-box",ls=mn?hl(Ui,Ci,mn,Br,An):0;return Br&&ur&&(ls-=Math.ceil(Ui["offset"+Ci[0].toUpperCase()+Ci.slice(1)]-parseFloat(An[Ci])-hl(Ui,Ci,"border",!1,An)-.5)),ls&&(yn=ea.exec(Ki))&&(yn[3]||"px")!=="px"&&(Ui.style[Ci]=Ki,Ki=Je.css(Ui,Ci)),Ou(Ui,Ki,ls)}}}),Je.cssHooks.marginLeft=xu(Ai.reliableMarginLeft,function(pi,Ci){if(Ci)return(parseFloat(Id(pi,"marginLeft"))||pi.getBoundingClientRect().left-hp(pi,{marginLeft:0},function(){return pi.getBoundingClientRect().left}))+"px"}),Je.each({margin:"",padding:"",border:"Width"},function(pi,Ci){Je.cssHooks[pi+Ci]={expand:function(Ui){for(var Ki=0,mn={},yn=typeof Ui=="string"?Ui.split(" "):[Ui];Ki<4;Ki++)mn[pi+$a[Ki]+Ci]=yn[Ki]||yn[Ki-2]||yn[0];return mn}},pi!=="margin"&&(Je.cssHooks[pi+Ci].set=Ou)}),Je.fn.extend({css:function(pi,Ci){return Cr(this,function(Ui,Ki,mn){var yn,An,ur={},Kn=0;if(Array.isArray(Ki)){for(yn=ca(Ui),An=Ki.length;Kn<An;Kn++)ur[Ki[Kn]]=Je.css(Ui,Ki[Kn],!1,yn);return ur}return mn!==void 0?Je.style(Ui,Ki,mn):Je.css(Ui,Ki)},pi,Ci,arguments.length>1)}});function _c(pi,Ci,Ui,Ki,mn){return new _c.prototype.init(pi,Ci,Ui,Ki,mn)}Je.Tween=_c,_c.prototype={constructor:_c,init:function(pi,Ci,Ui,Ki,mn,yn){this.elem=pi,this.prop=Ui,this.easing=mn||Je.easing._default,this.options=Ci,this.start=this.now=this.cur(),this.end=Ki,this.unit=yn||(Je.cssNumber[Ui]?"":"px")},cur:function(){var pi=_c.propHooks[this.prop];return pi&&pi.get?pi.get(this):_c.propHooks._default.get(this)},run:function(pi){var Ci,Ui=_c.propHooks[this.prop];return this.options.duration?this.pos=Ci=Je.easing[this.easing](pi,this.options.duration*pi,0,1,this.options.duration):this.pos=Ci=pi,this.now=(this.end-this.start)*Ci+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),Ui&&Ui.set?Ui.set(this):_c.propHooks._default.set(this),this}},_c.prototype.init.prototype=_c.prototype,_c.propHooks={_default:{get:function(pi){var Ci;return pi.elem.nodeType!==1||pi.elem[pi.prop]!=null&&pi.elem.style[pi.prop]==null?pi.elem[pi.prop]:(Ci=Je.css(pi.elem,pi.prop,""),!Ci||Ci==="auto"?0:Ci)},set:function(pi){Je.fx.step[pi.prop]?Je.fx.step[pi.prop](pi):pi.elem.nodeType===1&&(Je.cssHooks[pi.prop]||pi.elem.style[Zu(pi.prop)]!=null)?Je.style(pi.elem,pi.prop,pi.now+pi.unit):pi.elem[pi.prop]=pi.now}}},_c.propHooks.scrollTop=_c.propHooks.scrollLeft={set:function(pi){pi.elem.nodeType&&pi.elem.parentNode&&(pi.elem[pi.prop]=pi.now)}},Je.easing={linear:function(pi){return pi},swing:function(pi){return .5-Math.cos(pi*Math.PI)/2},_default:"swing"},Je.fx=_c.prototype.init,Je.fx.step={};var sc,jl,sh=/^(?:toggle|show|hide)$/,oa=/queueHooks$/;function js(){jl&&(hi.hidden===!1&&_e.requestAnimationFrame?_e.requestAnimationFrame(js):_e.setTimeout(js,Je.fx.interval),Je.fx.tick())}function Zo(){return _e.setTimeout(function(){sc=void 0}),sc=Date.now()}function $o(pi,Ci){var Ui,Ki=0,mn={height:pi};for(Ci=Ci?1:0;Ki<4;Ki+=2-Ci)Ui=$a[Ki],mn["margin"+Ui]=mn["padding"+Ui]=pi;return Ci&&(mn.opacity=mn.width=pi),mn}function bc(pi,Ci,Ui){for(var Ki,mn=(ja.tweeners[Ci]||[]).concat(ja.tweeners["*"]),yn=0,An=mn.length;yn<An;yn++)if(Ki=mn[yn].call(Ui,Ci,pi))return Ki}function cu(pi,Ci,Ui){var Ki,mn,yn,An,ur,Kn,Br,ls,ps="width"in Ci||"height"in Ci,Kr=this,Ns={},co=pi.style,Fo=pi.nodeType&&Fa(pi),Vo=As.get(pi,"fxshow");Ui.queue||(An=Je._queueHooks(pi,"fx"),An.unqueued==null&&(An.unqueued=0,ur=An.empty.fire,An.empty.fire=function(){An.unqueued||ur()}),An.unqueued++,Kr.always(function(){Kr.always(function(){An.unqueued--,Je.queue(pi,"fx").length||An.empty.fire()})}));for(Ki in Ci)if(mn=Ci[Ki],sh.test(mn)){if(delete Ci[Ki],yn=yn||mn==="toggle",mn===(Fo?"hide":"show"))if(mn==="show"&&Vo&&Vo[Ki]!==void 0)Fo=!0;else continue;Ns[Ki]=Vo&&Vo[Ki]||Je.style(pi,Ki)}if(Kn=!Je.isEmptyObject(Ci),!(!Kn&&Je.isEmptyObject(Ns))){ps&&pi.nodeType===1&&(Ui.overflow=[co.overflow,co.overflowX,co.overflowY],Br=Vo&&Vo.display,Br==null&&(Br=As.get(pi,"display")),ls=Je.css(pi,"display"),ls==="none"&&(Br?ls=Br:(xn([pi],!0),Br=pi.style.display||Br,ls=Je.css(pi,"display"),xn([pi]))),(ls==="inline"||ls==="inline-block"&&Br!=null)&&Je.css(pi,"float")==="none"&&(Kn||(Kr.done(function(){co.display=Br}),Br==null&&(ls=co.display,Br=ls==="none"?"":ls)),co.display="inline-block")),Ui.overflow&&(co.overflow="hidden",Kr.always(function(){co.overflow=Ui.overflow[0],co.overflowX=Ui.overflow[1],co.overflowY=Ui.overflow[2]})),Kn=!1;for(Ki in Ns)Kn||(Vo?"hidden"in Vo&&(Fo=Vo.hidden):Vo=As.access(pi,"fxshow",{display:Br}),yn&&(Vo.hidden=!Fo),Fo&&xn([pi],!0),Kr.done(function(){Fo||xn([pi]),As.remove(pi,"fxshow");for(Ki in Ns)Je.style(pi,Ki,Ns[Ki])})),Kn=bc(Fo?Vo[Ki]:0,Ki,Kr),Ki in Vo||(Vo[Ki]=Kn.start,Fo&&(Kn.end=Kn.start,Kn.start=0))}}function Po(pi,Ci){var Ui,Ki,mn,yn,An;for(Ui in pi)if(Ki=so(Ui),mn=Ci[Ki],yn=pi[Ui],Array.isArray(yn)&&(mn=yn[1],yn=pi[Ui]=yn[0]),Ui!==Ki&&(pi[Ki]=yn,delete pi[Ui]),An=Je.cssHooks[Ki],An&&"expand"in An){yn=An.expand(yn),delete pi[Ki];for(Ui in yn)Ui in pi||(pi[Ui]=yn[Ui],Ci[Ui]=mn)}else Ci[Ki]=mn}function ja(pi,Ci,Ui){var Ki,mn,yn=0,An=ja.prefilters.length,ur=Je.Deferred().always(function(){delete Kn.elem}),Kn=function(){if(mn)return!1;for(var ps=sc||Zo(),Kr=Math.max(0,Br.startTime+Br.duration-ps),Ns=Kr/Br.duration||0,co=1-Ns,Fo=0,Vo=Br.tweens.length;Fo<Vo;Fo++)Br.tweens[Fo].run(co);return ur.notifyWith(pi,[Br,co,Kr]),co<1&&Vo?Kr:(Vo||ur.notifyWith(pi,[Br,1,0]),ur.resolveWith(pi,[Br]),!1)},Br=ur.promise({elem:pi,props:Je.extend({},Ci),opts:Je.extend(!0,{specialEasing:{},easing:Je.easing._default},Ui),originalProperties:Ci,originalOptions:Ui,startTime:sc||Zo(),duration:Ui.duration,tweens:[],createTween:function(ps,Kr){var Ns=Je.Tween(pi,Br.opts,ps,Kr,Br.opts.specialEasing[ps]||Br.opts.easing);return Br.tweens.push(Ns),Ns},stop:function(ps){var Kr=0,Ns=ps?Br.tweens.length:0;if(mn)return this;for(mn=!0;Kr<Ns;Kr++)Br.tweens[Kr].run(1);return ps?(ur.notifyWith(pi,[Br,1,0]),ur.resolveWith(pi,[Br,ps])):ur.rejectWith(pi,[Br,ps]),this}}),ls=Br.props;for(Po(ls,Br.opts.specialEasing);yn<An;yn++)if(Ki=ja.prefilters[yn].call(Br,pi,ls,Br.opts),Ki)return oi(Ki.stop)&&(Je._queueHooks(Br.elem,Br.opts.queue).stop=Ki.stop.bind(Ki)),Ki;return Je.map(ls,bc,Br),oi(Br.opts.start)&&Br.opts.start.call(pi,Br),Br.progress(Br.opts.progress).done(Br.opts.done,Br.opts.complete).fail(Br.opts.fail).always(Br.opts.always),Je.fx.timer(Je.extend(Kn,{elem:pi,anim:Br,queue:Br.opts.queue})),Br}Je.Animation=Je.extend(ja,{tweeners:{"*":[function(pi,Ci){var Ui=this.createTween(pi,Ci);return cl(Ui.elem,pi,ea.exec(Ci),Ui),Ui}]},tweener:function(pi,Ci){oi(pi)?(Ci=pi,pi=["*"]):pi=pi.match(xs);for(var Ui,Ki=0,mn=pi.length;Ki<mn;Ki++)Ui=pi[Ki],ja.tweeners[Ui]=ja.tweeners[Ui]||[],ja.tweeners[Ui].unshift(Ci)},prefilters:[cu],prefilter:function(pi,Ci){Ci?ja.prefilters.unshift(pi):ja.prefilters.push(pi)}}),Je.speed=function(pi,Ci,Ui){var Ki=pi&&typeof pi=="object"?Je.extend({},pi):{complete:Ui||!Ui&&Ci||oi(pi)&&pi,duration:pi,easing:Ui&&Ci||Ci&&!oi(Ci)&&Ci};return Je.fx.off?Ki.duration=0:typeof Ki.duration!="number"&&(Ki.duration in Je.fx.speeds?Ki.duration=Je.fx.speeds[Ki.duration]:Ki.duration=Je.fx.speeds._default),(Ki.queue==null||Ki.queue===!0)&&(Ki.queue="fx"),Ki.old=Ki.complete,Ki.complete=function(){oi(Ki.old)&&Ki.old.call(this),Ki.queue&&Je.dequeue(this,Ki.queue)},Ki},Je.fn.extend({fadeTo:function(pi,Ci,Ui,Ki){return this.filter(Fa).css("opacity",0).show().end().animate({opacity:Ci},pi,Ui,Ki)},animate:function(pi,Ci,Ui,Ki){var mn=Je.isEmptyObject(pi),yn=Je.speed(Ci,Ui,Ki),An=function(){var ur=ja(this,Je.extend({},pi),yn);(mn||As.get(this,"finish"))&&ur.stop(!0)};return An.finish=An,mn||yn.queue===!1?this.each(An):this.queue(yn.queue,An)},stop:function(pi,Ci,Ui){var Ki=function(mn){var yn=mn.stop;delete mn.stop,yn(Ui)};return typeof pi!="string"&&(Ui=Ci,Ci=pi,pi=void 0),Ci&&this.queue(pi||"fx",[]),this.each(function(){var mn=!0,yn=pi!=null&&pi+"queueHooks",An=Je.timers,ur=As.get(this);if(yn)ur[yn]&&ur[yn].stop&&Ki(ur[yn]);else for(yn in ur)ur[yn]&&ur[yn].stop&&oa.test(yn)&&Ki(ur[yn]);for(yn=An.length;yn--;)An[yn].elem===this&&(pi==null||An[yn].queue===pi)&&(An[yn].anim.stop(Ui),mn=!1,An.splice(yn,1));(mn||!Ui)&&Je.dequeue(this,pi)})},finish:function(pi){return pi!==!1&&(pi=pi||"fx"),this.each(function(){var Ci,Ui=As.get(this),Ki=Ui[pi+"queue"],mn=Ui[pi+"queueHooks"],yn=Je.timers,An=Ki?Ki.length:0;for(Ui.finish=!0,Je.queue(this,pi,[]),mn&&mn.stop&&mn.stop.call(this,!0),Ci=yn.length;Ci--;)yn[Ci].elem===this&&yn[Ci].queue===pi&&(yn[Ci].anim.stop(!0),yn.splice(Ci,1));for(Ci=0;Ci<An;Ci++)Ki[Ci]&&Ki[Ci].finish&&Ki[Ci].finish.call(this);delete Ui.finish})}}),Je.each(["toggle","show","hide"],function(pi,Ci){var Ui=Je.fn[Ci];Je.fn[Ci]=function(Ki,mn,yn){return Ki==null||typeof Ki=="boolean"?Ui.apply(this,arguments):this.animate($o(Ci,!0),Ki,mn,yn)}}),Je.each({slideDown:$o("show"),slideUp:$o("hide"),slideToggle:$o("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(pi,Ci){Je.fn[pi]=function(Ui,Ki,mn){return this.animate(Ci,Ui,Ki,mn)}}),Je.timers=[],Je.fx.tick=function(){var pi,Ci=0,Ui=Je.timers;for(sc=Date.now();Ci<Ui.length;Ci++)pi=Ui[Ci],!pi()&&Ui[Ci]===pi&&Ui.splice(Ci--,1);Ui.length||Je.fx.stop(),sc=void 0},Je.fx.timer=function(pi){Je.timers.push(pi),Je.fx.start()},Je.fx.interval=13,Je.fx.start=function(){jl||(jl=!0,js())},Je.fx.stop=function(){jl=null},Je.fx.speeds={slow:600,fast:200,_default:400},Je.fn.delay=function(pi,Ci){return pi=Je.fx&&Je.fx.speeds[pi]||pi,Ci=Ci||"fx",this.queue(Ci,function(Ui,Ki){var mn=_e.setTimeout(Ui,pi);Ki.stop=function(){_e.clearTimeout(mn)}})},function(){var pi=hi.createElement("input"),Ci=hi.createElement("select"),Ui=Ci.appendChild(hi.createElement("option"));pi.type="checkbox",Ai.checkOn=pi.value!=="",Ai.optSelected=Ui.selected,pi=hi.createElement("input"),pi.value="t",pi.type="radio",Ai.radioValue=pi.value==="t"}();var Od,Pc=Je.expr.attrHandle;Je.fn.extend({attr:function(pi,Ci){return Cr(this,Je.attr,pi,Ci,arguments.length>1)},removeAttr:function(pi){return this.each(function(){Je.removeAttr(this,pi)})}}),Je.extend({attr:function(pi,Ci,Ui){var Ki,mn,yn=pi.nodeType;if(!(yn===3||yn===8||yn===2)){if(typeof pi.getAttribute>"u")return Je.prop(pi,Ci,Ui);if((yn!==1||!Je.isXMLDoc(pi))&&(mn=Je.attrHooks[Ci.toLowerCase()]||(Je.expr.match.bool.test(Ci)?Od:void 0)),Ui!==void 0){if(Ui===null){Je.removeAttr(pi,Ci);return}return mn&&"set"in mn&&(Ki=mn.set(pi,Ui,Ci))!==void 0?Ki:(pi.setAttribute(Ci,Ui+""),Ui)}return mn&&"get"in mn&&(Ki=mn.get(pi,Ci))!==null?Ki:(Ki=Je.find.attr(pi,Ci),Ki??void 0)}},attrHooks:{type:{set:function(pi,Ci){if(!Ai.radioValue&&Ci==="radio"&&Gi(pi,"input")){var Ui=pi.value;return pi.setAttribute("type",Ci),Ui&&(pi.value=Ui),Ci}}}},removeAttr:function(pi,Ci){var Ui,Ki=0,mn=Ci&&Ci.match(xs);if(mn&&pi.nodeType===1)for(;Ui=mn[Ki++];)pi.removeAttribute(Ui)}}),Od={set:function(pi,Ci,Ui){return Ci===!1?Je.removeAttr(pi,Ui):pi.setAttribute(Ui,Ui),Ui}},Je.each(Je.expr.match.bool.source.match(/\w+/g),function(pi,Ci){var Ui=Pc[Ci]||Je.find.attr;Pc[Ci]=function(Ki,mn,yn){var An,ur,Kn=mn.toLowerCase();return yn||(ur=Pc[Kn],Pc[Kn]=An,An=Ui(Ki,mn,yn)!=null?Kn:null,Pc[Kn]=ur),An}});var xc=/^(?:input|select|textarea|button)$/i,Ma=/^(?:a|area)$/i;Je.fn.extend({prop:function(pi,Ci){return Cr(this,Je.prop,pi,Ci,arguments.length>1)},removeProp:function(pi){return this.each(function(){delete this[Je.propFix[pi]||pi]})}}),Je.extend({prop:function(pi,Ci,Ui){var Ki,mn,yn=pi.nodeType;if(!(yn===3||yn===8||yn===2))return(yn!==1||!Je.isXMLDoc(pi))&&(Ci=Je.propFix[Ci]||Ci,mn=Je.propHooks[Ci]),Ui!==void 0?mn&&"set"in mn&&(Ki=mn.set(pi,Ui,Ci))!==void 0?Ki:pi[Ci]=Ui:mn&&"get"in mn&&(Ki=mn.get(pi,Ci))!==null?Ki:pi[Ci]},propHooks:{tabIndex:{get:function(pi){var Ci=Je.find.attr(pi,"tabindex");return Ci?parseInt(Ci,10):xc.test(pi.nodeName)||Ma.test(pi.nodeName)&&pi.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),Ai.optSelected||(Je.propHooks.selected={get:function(pi){var Ci=pi.parentNode;return Ci&&Ci.parentNode&&Ci.parentNode.selectedIndex,null},set:function(pi){var Ci=pi.parentNode;Ci&&(Ci.selectedIndex,Ci.parentNode&&Ci.parentNode.selectedIndex)}}),Je.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Je.propFix[this.toLowerCase()]=this});function uu(pi){var Ci=pi.match(xs)||[];return Ci.join(" ")}function Aa(pi){return pi.getAttribute&&pi.getAttribute("class")||""}function jc(pi){return Array.isArray(pi)?pi:typeof pi=="string"?pi.match(xs)||[]:[]}Je.fn.extend({addClass:function(pi){var Ci,Ui,Ki,mn,yn,An;return oi(pi)?this.each(function(ur){Je(this).addClass(pi.call(this,ur,Aa(this)))}):(Ci=jc(pi),Ci.length?this.each(function(){if(Ki=Aa(this),Ui=this.nodeType===1&&" "+uu(Ki)+" ",Ui){for(yn=0;yn<Ci.length;yn++)mn=Ci[yn],Ui.indexOf(" "+mn+" ")<0&&(Ui+=mn+" ");An=uu(Ui),Ki!==An&&this.setAttribute("class",An)}}):this)},removeClass:function(pi){var Ci,Ui,Ki,mn,yn,An;return oi(pi)?this.each(function(ur){Je(this).removeClass(pi.call(this,ur,Aa(this)))}):arguments.length?(Ci=jc(pi),Ci.length?this.each(function(){if(Ki=Aa(this),Ui=this.nodeType===1&&" "+uu(Ki)+" ",Ui){for(yn=0;yn<Ci.length;yn++)for(mn=Ci[yn];Ui.indexOf(" "+mn+" ")>-1;)Ui=Ui.replace(" "+mn+" "," ");An=uu(Ui),Ki!==An&&this.setAttribute("class",An)}}):this):this.attr("class","")},toggleClass:function(pi,Ci){var Ui,Ki,mn,yn,An=typeof pi,ur=An==="str
57ing"||Array.isArray(pi);return oi(pi)?this.each(function(Kn){Je(this).toggleClass(pi.call(this,Kn,Aa(this),Ci),Ci)}):typeof Ci=="boolean"&&ur?Ci?this.addClass(pi):this.removeClass(pi):(Ui=jc(pi),this.each(function(){if(ur)for(yn=Je(this),mn=0;mn<Ui.length;mn++)Ki=Ui[mn],yn.hasClass(Ki)?yn.removeClass(Ki):yn.addClass(Ki);else(pi===void 0||An==="boolean")&&(Ki=Aa(this),Ki&&As.set(this,"__className__",Ki),this.setAttribute&&this.setAttribute("class",Ki||pi===!1?"":As.get(this,"__className__")||""))}))},hasClass:function(pi){var Ci,Ui,Ki=0;for(Ci=" "+pi+" ";Ui=this[Ki++];)if(Ui.nodeType===1&&(" "+uu(Aa(Ui))+" ").indexOf(Ci)>-1)return!0;return!1}});var Ph=/\r/g;Je.fn.extend({val:function(pi){var Ci,Ui,Ki,mn=this[0];return arguments.length?(Ki=oi(pi),this.each(function(yn){var An;this.nodeType===1&&(Ki?An=pi.call(this,yn,Je(this).val()):An=pi,An==null?An="":typeof An=="number"?An+="":Array.isArray(An)&&(An=Je.map(An,function(ur){return ur==null?"":ur+""})),Ci=Je.valHooks[this.type]||Je.valHooks[this.nodeName.toLowerCase()],(!Ci||!("set"in Ci)||Ci.set(this,An,"value")===void 0)&&(this.value=An))})):mn?(Ci=Je.valHooks[mn.type]||Je.valHooks[mn.nodeName.toLowerCase()],Ci&&"get"in Ci&&(Ui=Ci.get(mn,"value"))!==void 0?Ui:(Ui=mn.value,typeof Ui=="string"?Ui.replace(Ph,""):Ui??"")):void 0}}),Je.extend({valHooks:{option:{get:function(pi){var Ci=Je.find.attr(pi,"value");return Ci??uu(Je.text(pi))}},select:{get:function(pi){var Ci,Ui,Ki,mn=pi.options,yn=pi.selectedIndex,An=pi.type==="select-one",ur=An?null:[],Kn=An?yn+1:mn.length;for(yn<0?Ki=Kn:Ki=An?yn:0;Ki<Kn;Ki++)if(Ui=mn[Ki],(Ui.selected||Ki===yn)&&!Ui.disabled&&(!Ui.parentNode.disabled||!Gi(Ui.parentNode,"optgroup"))){if(Ci=Je(Ui).val(),An)return Ci;ur.push(Ci)}return ur},set:function(pi,Ci){for(var Ui,Ki,mn=pi.options,yn=Je.makeArray(Ci),An=mn.length;An--;)Ki=mn[An],(Ki.selected=Je.inArray(Je.valHooks.option.get(Ki),yn)>-1)&&(Ui=!0);return Ui||(pi.selectedIndex=-1),yn}}}}),Je.each(["radio","checkbox"],function(){Je.valHooks[this]={set:function(pi,Ci){if(Array.isArray(Ci))return pi.checked=Je.inArray(Je(pi).val(),Ci)>-1}},Ai.checkOn||(Je.valHooks[this].get=function(pi){return pi.getAttribute("value")===null?"on":pi.value})});var Yu=_e.location,pp={guid:Date.now()},Ld=/\?/;Je.parseXML=function(pi){var Ci,Ui;if(!pi||typeof pi!="string")return null;try{Ci=new _e.DOMParser().parseFromString(pi,"text/xml")}catch{}return Ui=Ci&&Ci.getElementsByTagName("parsererror")[0],(!Ci||Ui)&&Je.error("Invalid XML: "+(Ui?Je.map(Ui.childNodes,function(Ki){return Ki.textContent}).join(`
58`):pi)),Ci};var Ih=/^(?:focusinfocus|focusoutblur)$/,cd=function(pi){pi.stopPropagation()};Je.extend(Je.event,{trigger:function(pi,Ci,Ui,Ki){var mn,yn,An,ur,Kn,Br,ls,ps,Kr=[Ui||hi],Ns=qe.call(pi,"type")?pi.type:pi,co=qe.call(pi,"namespace")?pi.namespace.split("."):[];if(yn=ps=An=Ui=Ui||hi,!(Ui.nodeType===3||Ui.nodeType===8)&&!Ih.test(Ns+Je.event.triggered)&&(Ns.indexOf(".")>-1&&(co=Ns.split("."),Ns=co.shift(),co.sort()),Kn=Ns.indexOf(":")<0&&"on"+Ns,pi=pi[Je.expando]?pi:new Je.Event(Ns,typeof pi=="object"&&pi),pi.isTrigger=Ki?2:3,pi.namespace=co.join("."),pi.rnamespace=pi.namespace?new RegExp("(^|\\.)"+co.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,pi.result=void 0,pi.target||(pi.target=Ui),Ci=Ci==null?[pi]:Je.makeArray(Ci,[pi]),ls=Je.event.special[Ns]||{},!(!Ki&&ls.trigger&&ls.trigger.apply(Ui,Ci)===!1))){if(!Ki&&!ls.noBubble&&!ii(Ui)){for(ur=ls.delegateType||Ns,Ih.test(ur+Ns)||(yn=yn.parentNode);yn;yn=yn.parentNode)Kr.push(yn),An=yn;An===(Ui.ownerDocument||hi)&&Kr.push(An.defaultView||An.parentWindow||_e)}for(mn=0;(yn=Kr[mn++])&&!pi.isPropagationStopped();)ps=yn,pi.type=mn>1?ur:ls.bindType||Ns,Br=(As.get(yn,"events")||Object.create(null))[pi.type]&&As.get(yn,"handle"),Br&&Br.apply(yn,Ci),Br=Kn&&yn[Kn],Br&&Br.apply&&Ls(yn)&&(pi.result=Br.apply(yn,Ci),pi.result===!1&&pi.preventDefault());return pi.type=Ns,!Ki&&!pi.isDefaultPrevented()&&(!ls._default||ls._default.apply(Kr.pop(),Ci)===!1)&&Ls(Ui)&&Kn&&oi(Ui[Ns])&&!ii(Ui)&&(An=Ui[Kn],An&&(Ui[Kn]=null),Je.event.triggered=Ns,pi.isPropagationStopped()&&ps.addEventListener(Ns,cd),Ui[Ns](),pi.isPropagationStopped()&&ps.removeEventListener(Ns,cd),Je.event.triggered=void 0,An&&(Ui[Kn]=An)),pi.result}},simulate:function(pi,Ci,Ui){var Ki=Je.extend(new Je.Event,Ui,{type:pi,isSimulated:!0});Je.event.trigger(Ki,null,Ci)}}),Je.fn.extend({trigger:function(pi,Ci){return this.each(function(){Je.event.trigger(pi,Ci,this)})},triggerHandler:function(pi,Ci){var Ui=this[0];if(Ui)return Je.event.trigger(pi,Ci,Ui,!0)}});var oh=/\[\]$/,oc=/\r?\n/g,aa=/^(?:submit|button|image|reset|file)$/i,fp=/^(?:input|select|textarea|keygen)/i;function Rh(pi,Ci,Ui,Ki){var mn;if(Array.isArray(Ci))Je.each(Ci,function(yn,An){Ui||oh.test(pi)?Ki(pi,An):Rh(pi+"["+(typeof An=="object"&&An!=null?yn:"")+"]",An,Ui,Ki)});else if(!Ui&&Di(Ci)==="object")for(mn in Ci)Rh(pi+"["+mn+"]",Ci[mn],Ui,Ki);else Ki(pi,Ci)}Je.param=function(pi,Ci){var Ui,Ki=[],mn=function(yn,An){var ur=oi(An)?An():An;Ki[Ki.length]=encodeURIComponent(yn)+"="+encodeURIComponent(ur??"")};if(pi==null)return"";if(Array.isArray(pi)||pi.jquery&&!Je.isPlainObject(pi))Je.each(pi,function(){mn(this.name,this.value)});else for(Ui in pi)Rh(Ui,pi[Ui],Ci,mn);return Ki.join("&")},Je.fn.extend({serialize:function(){return Je.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var pi=Je.prop(this,"elements");return pi?Je.makeArray(pi):this}).filter(function(){var pi=this.type;return this.name&&!Je(this).is(":disabled")&&fp.test(this.nodeName)&&!aa.test(pi)&&(this.checked||!Yn.test(pi))}).map(function(pi,Ci){var Ui=Je(this).val();return Ui==null?null:Array.isArray(Ui)?Je.map(Ui,function(Ki){return{name:Ci.name,value:Ki.replace(oc,`\r
59`)}}):{name:Ci.name,value:Ui.replace(oc,`\r
60`)}}).get()}});var Wc=/%20/g,qc=/#.*$/,Wp=/([?&])_=[^&]*/,Oh=/^(.*?):[ \t]*([^\r\n]*)$/mg,bl=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Lh=/^(?:GET|HEAD)$/,mp=/^\/\//,ka={},jo={},qp="*/".concat("*"),$h=hi.createElement("a");$h.href=Yu.href;function xl(pi){return function(Ci,Ui){typeof Ci!="string"&&(Ui=Ci,Ci="*");var Ki,mn=0,yn=Ci.toLowerCase().match(xs)||[];
vendor: 4,250 bytes, line 60
60if(oi(Ui))for(;Ki=yn[mn++];)Ki[0]==="+"?(Ki=Ki.slice(1)||"*",(pi[Ki]=pi[Ki]||[]).unshift(Ui)):(pi[Ki]=pi[Ki]||[]).push(Ui)}}function Su(pi,Ci,Ui,Ki){var mn={},yn=pi===jo;function An(ur){var Kn;return mn[ur]=!0,Je.each(pi[ur]||[],function(Br,ls){var ps=ls(Ci,Ui,Ki);if(typeof ps=="string"&&!yn&&!mn[ps])return Ci.dataTypes.unshift(ps),An(ps),!1;if(yn)return!(Kn=ps)}),Kn}return An(Ci.dataTypes[0])||!mn["*"]&&An("*")}function Fh(pi,Ci){var Ui,Ki,mn=Je.ajaxSettings.flatOptions||{};for(Ui in Ci)Ci[Ui]!==void 0&&((mn[Ui]?pi:Ki||(Ki={}))[Ui]=Ci[Ui]);return Ki&&Je.extend(!0,pi,Ki),pi}function Sf(pi,Ci,Ui){for(var Ki,mn,yn,An,ur=pi.contents,Kn=pi.dataTypes;Kn[0]==="*";)Kn.shift(),Ki===void 0&&(Ki=pi.mimeType||Ci.getResponseHeader("Content-Type"));if(Ki){for(mn in ur)if(ur[mn]&&ur[mn].test(Ki)){Kn.unshift(mn);break}}if(Kn[0]in Ui)yn=Kn[0];else{for(mn in Ui){if(!Kn[0]||pi.converters[mn+" "+Kn[0]]){yn=mn;break}An||(An=mn)}yn=yn||An}if(yn)return yn!==Kn[0]&&Kn.unshift(yn),Ui[yn]}function du(pi,Ci,Ui,Ki){var mn,yn,An,ur,Kn,Br={},ls=pi.dataTypes.slice();if(ls[1])for(An in pi.converters)Br[An.toLowerCase()]=pi.converters[An];for(yn=ls.shift();yn;)if(pi.responseFields[yn]&&(Ui[pi.responseFields[yn]]=Ci),!Kn&&Ki&&pi.dataFilter&&(Ci=pi.dataFilter(Ci,pi.dataType)),Kn=yn,yn=ls.shift(),yn){if(yn==="*")yn=Kn;else if(Kn!=="*"&&Kn!==yn){if(An=Br[Kn+" "+yn]||Br["* "+yn],!An){for(mn in Br)if(ur=mn.split(" "),ur[1]===yn&&(An=Br[Kn+" "+ur[0]]||Br["* "+ur[0]],An)){An===!0?An=Br[mn]:Br[mn]!==!0&&(yn=ur[0],ls.unshift(ur[1]));break}}if(An!==!0)if(An&&pi.throws)Ci=An(Ci);else try{Ci=An(Ci)}catch(ps){return{state:"parsererror",error:An?ps:"No conversion from "+Kn+" to "+yn}}}}return{state:"success",data:Ci}}Je.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Yu.href,type:"GET",isLocal:bl.test(Yu.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qp,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":Je.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(pi,Ci){return Ci?Fh(Fh(pi,Je.ajaxSettings),Ci):Fh(Je.ajaxSettings,pi)},ajaxPrefilter:xl(ka),ajaxTransport:xl(jo),ajax:function(pi,Ci){typeof pi=="object"&&(Ci=pi,pi=void 0),Ci=Ci||{};var Ui,Ki,mn,yn,An,ur,Kn,Br,ls,ps,Kr=Je.ajaxSetup({},Ci),Ns=Kr.context||Kr,co=Kr.context&&(Ns.nodeType||Ns.jquery)?Je(Ns):Je.event,Fo=Je.Deferred(),Vo=Je.Callbacks("once memory"),Dl=Kr.statusCode||{},Wa={},Sc={},qa="canceled",Wo={readyState:0,getResponseHeader:function(zo){var Na;if(Kn){if(!yn)for(yn={};Na=Oh.exec(mn);)yn[Na[1].toLowerCase()+" "]=(yn[Na[1].toLowerCase()+" "]||[]).concat(Na[2]);Na=yn[zo.toLowerCase()+" "]}return Na==null?null:Na.join(", ")},getAllResponseHeaders:function(){return Kn?mn:null},setRequestHeader:function(zo,Na){return Kn==null&&(zo=Sc[zo.toLowerCase()]=Sc[zo.toLowerCase()]||zo,Wa[zo]=Na),this},overrideMimeType:function(zo){return Kn==null&&(Kr.mimeType=zo),this},statusCode:function(zo){var Na;if(zo)if(Kn)Wo.always(zo[Wo.status]);else for(Na in zo)Dl[Na]=[Dl[Na],zo[Na]];return this},abort:function(zo){var Na=zo||qa;return Ui&&Ui.abort(Na),Xc(0,Na),this}};if(Fo.promise(Wo),Kr.url=((pi||Kr.url||Yu.href)+"").replace(mp,Yu.protocol+"//"),Kr.type=Ci.method||Ci.type||Kr.method||Kr.type,Kr.dataTypes=(Kr.dataType||"*").toLowerCase().match(xs)||[""],Kr.crossDomain==null){ur=hi.createElement("a");try{ur.href=Kr.url,ur.href=ur.href,Kr.crossDomain=$h.protocol+"//"+$h.host!=ur.protocol+"//"+ur.host}catch{Kr.crossDomain=!0}}if(Kr.data&&Kr.processData&&typeof Kr.data!="string"&&(Kr.data=Je.param(Kr.data,Kr.traditional)),Su(ka,Kr,Ci,Wo),Kn)return Wo;Br=Je.event&&Kr.global,Br&&Je.active++===0&&Je.event.trigger("ajaxStart"),Kr.type=Kr.type.toUpperCase(),Kr.hasContent=!Lh.test(Kr.type),Ki=Kr.url.replace(qc,""),Kr.hasContent?Kr.data&&Kr.processData&&(Kr.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Kr.data=Kr.data.replace(Wc,"+")):(ps=Kr.url.slice(Ki.length),Kr.data&&(Kr.processData||typeof Kr.data=="str
60ing")&&(Ki+=(Ld.test(Ki)?"&":"?")+Kr.data,delete Kr.data),Kr.cache===!1&&(Ki=Ki.replace(Wp,"$1"),ps=(Ld.test(Ki)?"&":"?")+"_="+pp.guid+++ps),Kr.url=Ki+ps),Kr.ifModified&&(Je.lastModified[Ki]&&Wo.setRequestHeader("If-Modified-Since",Je.lastModified[Ki]),Je.etag[Ki]&&Wo.setRequestHeader("If-None-Match",Je.etag[Ki])),(Kr.data&&Kr.hasContent&&Kr.contentType!==!1||Ci.contentType)&&Wo.setRequestHeader("Content-Type",Kr.contentType),Wo.setRequestHeader("Accept",Kr.dataTypes[0]&&Kr.accepts[Kr.dataTypes[0]]?Kr.accepts[Kr.dataTypes[0]]+(Kr.dataTypes[0]!=="*"?", "+qp+"; q=0.01":""):Kr.accepts["*"]);for(ls in Kr.headers)Wo.setRequestHeader(ls,Kr.headers[ls]);if(Kr.beforeSend&&(Kr.beforeSend.call(Ns,Wo,Kr)===!1||Kn))return Wo.abort();if(qa="abort",Vo.add(Kr.complete),Wo.done(Kr.success),Wo.fail(Kr.error),Ui=Su(jo,Kr,Ci,Wo),!Ui)Xc(-1,"No Transport");else{if(Wo.readyState=1,Br&&co.trigger("ajaxSend",[Wo,Kr]),Kn)return Wo;Kr.async&&Kr.timeout>0&&(An=_e.setTimeout(function(){Wo.abort("timeout")},Kr.timeout));try{Kn=!1,Ui.send(Wa,Xc)}catch(zo){if(Kn)throw zo;Xc(-1,zo)}}function Xc(zo,Na,hu,ud){var Ic,qo,lc,$u,Zc,Ml=Na;Kn||(Kn=!0,An&&_e.clearTimeout(An),Ui=void 0,mn=ud||"",Wo.readyState=zo>0?4:0,Ic=zo>=200&&zo<300||zo===304,hu&&($u=Sf(Kr,Wo,hu)),!Ic&&Je.inArray("script",Kr.dataTypes)>-1&&Je.inArray("json",Kr.dataTypes)<0&&(Kr.converters["text script"]=function(){}),$u=du(Kr,$u,Wo,Ic),Ic?(Kr.ifModified&&(Zc=Wo.getResponseHeader("Last-Modified"),Zc&&(Je.lastModified[Ki]=Zc),Zc=Wo.getResponseHeader("etag"),Zc&&(Je.etag[Ki]=Zc)),zo===204||Kr.type==="HEAD"?Ml="nocontent":zo===304?Ml="notmodified":(Ml=$u.state,qo=$u.data,lc=$u.error,Ic=!lc)):(lc=Ml,(zo||!Ml)&&(Ml="error",zo<0&&(zo=0))),Wo.status=zo,Wo.statusText=(Na||Ml)+"",Ic?Fo.resolveWith(Ns,[qo,Ml,Wo]):Fo.rejectWith(Ns,[Wo,Ml,lc]),Wo.statusCode(Dl),Dl=void 0,Br&&co.trigger(Ic?"ajaxSuccess":"ajaxError",[Wo,Kr,Ic?qo:lc]),Vo.fireWith(Ns,[Wo,Ml]),Br&&(co.trigger("ajaxComplete",[Wo,Kr]),--Je.active||Je.event.trigger("ajaxStop")))}return Wo},getJSON:function(pi,Ci,Ui){return Je.get(pi,Ci,Ui,"json")},getScript:function(pi,Ci){return Je.get(pi,void 0,Ci,"script")}}),Je.each(["get","post"],function(pi,Ci){Je[Ci]=function(Ui,Ki,mn,yn){return oi(Ki)&&(yn=yn||mn,mn=Ki,Ki=void 0),Je.ajax(Je.extend({url:Ui,type:Ci,dataType:yn,data:Ki,success:mn},Je.isPlainObject(Ui)&&Ui))}}),Je.ajaxPrefilter(function(pi){var Ci;for(Ci in pi.headers)Ci.toLowerCase()==="content-type"&&(pi.contentType=pi.headers[Ci]||"")}),Je._evalUrl=function(pi,Ci,Ui){return Je.ajax({url:pi,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Ki){Je.globalEval(Ki,Ci,Ui)}})},Je.fn.extend({wrapAll:function(pi){var Ci;return this[0]&&(oi(pi)&&(pi=pi.call(this[0])),Ci=Je(pi,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&Ci.insertBefore(this[0]),Ci.map(function(){for(var Ui=this;Ui.firstElementChild;)Ui=Ui.firstElementChild;return Ui}).append(this)),this},wrapInner:function(pi){return oi(pi)?this.each(function(Ci){Je(this).wrapInner(pi.call(this,Ci))}):this.each(function(){var Ci=Je(this),Ui=Ci.contents();Ui.length?Ui.wrapAll(pi):Ci.append(pi)})},wrap:function(pi){var Ci=oi(pi);return this.each(function(Ui){Je(this).wrapAll(Ci?pi.call(this,Ui):pi)})},unwrap:function(pi){return this.parent(pi).not("body").each(function(){Je(this).replaceWith(this.childNodes)}),this}}),Je.expr.pseudos.hidden=function(pi){return!Je.expr.pseudos.visible(pi)},Je.expr.pseudos.visible=function(pi){return!!(pi.offsetWidth||pi.offsetHeight||pi.getClientRects().length)},Je.ajaxSettings.xhr=function(){try{return new _e.XMLHttpRequest}catch{}};var ah={0:200,1223:204},ya=Je.ajaxSettings.xhr();Ai.cors=!!ya&&"withCredentials"in ya,Ai.ajax=ya=!!ya,Je.ajaxTransport(function(pi){var Ci,Ui;if(Ai.cors||ya&&!pi.crossDomain)return{send:function(Ki,mn){var yn,An=pi.xhr();if(An.open(pi.type,pi.url,pi.async,pi.username,pi.password),pi.xhrFields)for(yn in pi.xhrFields)An[yn]=pi.xhrFields[yn];pi.mimeType&&An.overrideMimeType&&An.overrideMimeType(pi.mimeType),!pi.crossDomain&&!Ki["X-Requested-With"]&&(Ki["X-Requested-With"]="XMLHttpRequest");for(yn in Ki)An.setRequestHeader(yn,Ki[yn]);Ci=function(ur){return function(){Ci&&(Ci=Ui=An.onload=An.onerror=An.onabort=An.ontimeout=An.onreadystatechange=null,ur==="abort"?An.abort():ur==="error"?typeof An.status!="number"?mn(0,"error"):mn(An.status,An.statusText):mn(ah[An.status]||An.status,An.statusText,(An.responseType||"text")!=="text"||typeof An.responseText!="string"?{binary:An.response}:{text:An.responseText},An.getAllResponseHeaders()))}},An.onload=Ci(),Ui=An.onerror=An.ontimeout=Ci("error"),An.onabort!==void 0?An.onabort=Ui:An.onreadystatechange=function(){An.readyState===4&&_e.setTimeout(function(){Ci&&Ui()})},Ci=Ci("abort");try{An.send(pi.hasContent&&pi.data||null)}catch(ur){if(Ci)throw ur}},abort:function(){Ci&&Ci()}}}),Je.ajaxPrefilter(function(pi){pi.crossDomain&&(pi.contents.script=!1)}),Je.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(pi){return Je.globalEval(pi),pi}}}),Je.ajaxPrefilter("script",function(pi){pi.cache===void 0&&(pi.cache=!1),pi.crossDomain&&(pi.type="GET")}),Je.ajaxTransport("script",function(pi){if(pi.crossDomain||pi.scriptAttrs){var Ci,Ui;return{send:function(Ki,mn){Ci=Je("<script>").attr(pi.scriptAttrs||{}
vendor: 1,855 bytes, line 60
60).prop({charset:pi.scriptCharset,src:pi.url}).on("load error",Ui=function(yn){Ci.remove(),Ui=null,yn&&mn(yn.type==="error"?404:200,yn.type)}),hi.head.appendChild(Ci[0])},abort:function(){Ui&&Ui()}}}});var Lu=[],ac=/(=)\?(?=&|$)|\?\?/;Je.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var pi=Lu.pop()||Je.expando+"_"+pp.guid++;return this[pi]=!0,pi}}),Je.ajaxPrefilter("json jsonp",function(pi,Ci,Ui){var Ki,mn,yn,An=pi.jsonp!==!1&&(ac.test(pi.url)?"url":typeof pi.data=="string"&&(pi.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ac.test(pi.data)&&"data");if(An||pi.dataTypes[0]==="jsonp")return Ki=pi.jsonpCallback=oi(pi.jsonpCallback)?pi.jsonpCallback():pi.jsonpCallback,An?pi[An]=pi[An].replace(ac,"$1"+Ki):pi.jsonp!==!1&&(pi.url+=(Ld.test(pi.url)?"&":"?")+pi.jsonp+"="+Ki),pi.converters["script json"]=function(){return yn||Je.error(Ki+" was not called"),yn[0]},pi.dataTypes[0]="json",mn=_e[Ki],_e[Ki]=function(){yn=arguments},Ui.always(function(){mn===void 0?Je(_e).removeProp(Ki):_e[Ki]=mn,pi[Ki]&&(pi.jsonpCallback=Ci.jsonpCallback,Lu.push(Ki)),yn&&oi(mn)&&mn(yn[0]),yn=mn=void 0}),"script"}),Ai.createHTMLDocument=function(){var pi=hi.implementation.createHTMLDocument("").body;return pi.innerHTML="<form></form><form></form>",pi.childNodes.length===2}(),Je.parseHTML=function(pi,Ci,Ui){if(typeof pi!="string")return[];typeof Ci=="boolean"&&(Ui=Ci,Ci=!1);var Ki,mn,yn;return Ci||(Ai.createHTMLDocument?(Ci=hi.implementation.createHTMLDocument(""),Ki=Ci.createElement("base"),Ki.href=hi.location.href,Ci.head.appendChild(Ki)):Ci=hi),mn=Zi.exec(pi),yn=!Ui&&[],mn?[Ci.createElement(mn[1])]:(mn=bs([pi],Ci,yn),yn&&yn.length&&Je(yn).remove(),Je.merge([],mn.childNodes))},Je.fn.load=function(pi,Ci,Ui){var Ki,mn,yn,An=this,ur=pi.indexOf(" ");return ur>-1&&(Ki=uu(pi.slice(ur)),pi=pi.slice(0,ur)),oi(Ci)?(Ui=Ci,Ci=void 0):Ci&&t
vendor: 5,250 bytes, line 60
60ypeof Ci=="object"&&(mn="POST"),An.length>0&&Je.ajax({url:pi,type:mn||"GET",dataType:"html",data:Ci}).done(function(Kn){yn=arguments,An.html(Ki?Je("<div>").append(Je.parseHTML(Kn)).find(Ki):Kn)}).always(Ui&&function(Kn,Br){An.each(function(){Ui.apply(this,yn||[Kn.responseText,Br,Kn])})}),this},Je.expr.pseudos.animated=function(pi){return Je.grep(Je.timers,function(Ci){return pi===Ci.elem}).length},Je.offset={setOffset:function(pi,Ci,Ui){var Ki,mn,yn,An,ur,Kn,Br,ls=Je.css(pi,"position"),ps=Je(pi),Kr={};ls==="static"&&(pi.style.position="relative"),ur=ps.offset(),yn=Je.css(pi,"top"),Kn=Je.css(pi,"left"),Br=(ls==="absolute"||ls==="fixed")&&(yn+Kn).indexOf("auto")>-1,Br?(Ki=ps.position(),An=Ki.top,mn=Ki.left):(An=parseFloat(yn)||0,mn=parseFloat(Kn)||0),oi(Ci)&&(Ci=Ci.call(pi,Ui,Je.extend({},ur))),Ci.top!=null&&(Kr.top=Ci.top-ur.top+An),Ci.left!=null&&(Kr.left=Ci.left-ur.left+mn),"using"in Ci?Ci.using.call(pi,Kr):ps.css(Kr)}},Je.fn.extend({offset:function(pi){if(arguments.length)return pi===void 0?this:this.each(function(mn){Je.offset.setOffset(this,pi,mn)});var Ci,Ui,Ki=this[0];if(Ki)return Ki.getClientRects().length?(Ci=Ki.getBoundingClientRect(),Ui=Ki.ownerDocument.defaultView,{top:Ci.top+Ui.pageYOffset,left:Ci.left+Ui.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var pi,Ci,Ui,Ki=this[0],mn={top:0,left:0};if(Je.css(Ki,"position")==="fixed")Ci=Ki.getBoundingClientRect();else{for(Ci=this.offset(),Ui=Ki.ownerDocument,pi=Ki.offsetParent||Ui.documentElement;pi&&(pi===Ui.body||pi===Ui.documentElement)&&Je.css(pi,"position")==="static";)pi=pi.parentNode;pi&&pi!==Ki&&pi.nodeType===1&&(mn=Je(pi).offset(),mn.top+=Je.css(pi,"borderTopWidth",!0),mn.left+=Je.css(pi,"borderLeftWidth",!0))}return{top:Ci.top-mn.top-Je.css(Ki,"marginTop",!0),left:Ci.left-mn.left-Je.css(Ki,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var pi=this.offsetParent;pi&&Je.css(pi,"position")==="static";)pi=pi.offsetParent;return pi||ao})}}),Je.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(pi,Ci){var Ui=Ci==="pageYOffset";Je.fn[pi]=function(Ki){return Cr(this,function(mn,yn,An){var ur;if(ii(mn)?ur=mn:mn.nodeType===9&&(ur=mn.defaultView),An===void 0)return ur?ur[Ci]:mn[yn];ur?ur.scrollTo(Ui?ur.pageXOffset:An,Ui?An:ur.pageYOffset):mn[yn]=An},pi,Ki,arguments.length)}}),Je.each(["top","left"],function(pi,Ci){Je.cssHooks[Ci]=xu(Ai.pixelPosition,function(Ui,Ki){if(Ki)return Ki=Id(Ui,Ci),lu.test(Ki)?Je(Ui).position()[Ci]+"px":Ki})}),Je.each({Height:"height",Width:"width"},function(pi,Ci){Je.each({padding:"inner"+pi,content:Ci,"":"outer"+pi},function(Ui,Ki){Je.fn[Ki]=function(mn,yn){var An=arguments.length&&(Ui||typeof mn!="boolean"),ur=Ui||(mn===!0||yn===!0?"margin":"border");return Cr(this,function(Kn,Br,ls){var ps;return ii(Kn)?Ki.indexOf("outer")===0?Kn["inner"+pi]:Kn.document.documentElement["client"+pi]:Kn.nodeType===9?(ps=Kn.documentElement,Math.max(Kn.body["scroll"+pi],ps["scroll"+pi],Kn.body["offset"+pi],ps["offset"+pi],ps["client"+pi])):ls===void 0?Je.css(Kn,Br,ur):Je.style(Kn,Br,ls,ur)},Ci,An?mn:void 0,An)}})}),Je.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(pi,Ci){Je.fn[Ci]=function(Ui){return this.on(Ci,Ui)}}),Je.fn.extend({bind:function(pi,Ci,Ui){return this.on(pi,null,Ci,Ui)},unbind:function(pi,Ci){return this.off(pi,null,Ci)},delegate:function(pi,Ci,Ui,Ki){return this.on(Ci,pi,Ui,Ki)},undelegate:function(pi,Ci,Ui){return arguments.length===1?this.off(pi,"**"):this.off(Ci,pi||"**",Ui)},hover:function(pi,Ci){return this.on("mouseenter",pi).on("mouseleave",Ci||pi)}}),Je.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(pi,Ci){Je.fn[Ci]=function(Ui,Ki){return arguments.length>0?this.on(Ci,null,Ui,Ki):this.trigger(Ci)}});var wc=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;Je.proxy=function(pi,Ci){var Ui,Ki,mn;if(typeof Ci=="string"&&(Ui=pi[Ci],Ci=pi,pi=Ui),!!oi(pi))return Ki=Fe.call(arguments,2),mn=function(){return pi.apply(Ci||this,Ki.concat(Fe.call(arguments)))},mn.guid=pi.guid=pi.guid||Je.guid++,mn},Je.holdReady=function(pi){pi?Je.readyWait++:Je.ready(!0)},Je.isArray=Array.isArray,Je.parseJSON=JSON.parse,Je.nodeName=Gi,Je.isFunction=oi,Je.isWindow=ii,Je.camelCase=so,Je.type=Di,Je.now=Date.now,Je.isNumeric=function(pi){var Ci=Je.type(pi);return(Ci==="number"||Ci==="string")&&!isNaN(pi-parseFloat(pi))},Je.trim=function(pi){return pi==null?"":(pi+"").replace(wc,"$1")};var $d=_e.jQuery,zl=_e.$;return Je.noConflict=function(pi){return _e.$===Je&&(_e.$=zl),pi&&_e.jQuery===Je&&(_e.jQuery=$d),Je},typeof Ae>"u"&&(_e.jQuery=_e.$=Je),Je})})(jquery);var jqueryExports=jquery.exports;const $$2=getDefaultExportFromCjs(jqueryExports),rs6="";(function(De){var _e={};function Ae(ke){if(_e[ke])return _e[ke].exports;var Le=_e[ke]={i:ke,l:!1,exports:{}};return De[ke].call(Le.exports,Le,Le.exports,Ae),Le.l=!0,Le.exports}Ae.m=De,Ae.c=_e,Ae.d=function(ke,Le,Fe){Ae.o(ke,Le)||Object.defineProperty(ke,Le,{enumerable:!0,get:Fe})},Ae.r=function(ke){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(ke,Symbol.toStringTag,{value:"Module"}
60),Object.defineProperty(ke,"__esModule",{value:!0})},Ae.t=function(ke,Le){if(1&Le&&(ke=Ae(ke)),8&Le||4&Le&&typeof ke=="object"&&ke&&ke.__esModule)return ke;var Fe=Object.create(null);if(Ae.r(Fe),Object.defineProperty(Fe,"default",{enumerable:!0,value:ke}),2&Le&&typeof ke!="string")for(var Ve in ke)Ae.d(Fe,Ve,(function(Ie){return ke[Ie]}).bind(null,Ve));return Fe},Ae.n=function(ke){var Le=ke&&ke.__esModule?function(){return ke.default}:function(){return ke};return Ae.d(Le,"a",Le),Le},Ae.o=function(ke,Le){return Object.prototype.hasOwnProperty.call(ke,Le)},Ae.p="",Ae(Ae.s=1)})([function(De,_e){De.exports=$$2},function(De,_e,Ae){Ae(2),Ae(6),De.exports=Ae(4)},function(De,_e,Ae){var ke,Le,Fe,Ve;/*!
61 * @fileOverview TouchSwipe - jQuery Plugin @version 1.6.18 / SANDBOXED VERSION FOR TP
62 * @author Matt Bryson http://www.github.com/mattbryson
63 * @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
64 * @see http://labs.rampinteractive.co.uk/touchSwipe/
65 * @see http://plugins.jquery.com/project/touchSwipe
66 * @license
67 * Copyright (c) 2010-2015 Matt Bryson
68 * Dual licensed under the MIT or GPL Version 2 licenses.
69 *
70 */Ve=function(Ie){var je="left",Ke="right",$e="up",qe="down",ci="none",gi="doubletap",Ai="longtap",oi="horizontal",ii="vertical",hi="all",Ei="move",Li="end",Di="cancel",zi="ontouchstart"in window,an=window.navigator.msPointerEnabled&&!window.PointerEvent&&!zi,Je=(window.PointerEvent||window.navigator.msPointerEnabled)&&!zi,fi="TouchSwipe";function Gi(fn,cn){cn=Ie.extend({},cn);var Tn=zi||Je||!cn.fallbackToMouseEvents,Sn=Tn?Je?an?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Cn=Tn?Je?an?"MSPointerMove":"pointermove":"touchmove":"mousemove",tr=Tn?Je?an?"MSPointerUp":"pointerup":"touchend":"mouseup",xr=Tn?Je?"mouseleave":null:"mouseleave",er=Je?an?"MSPointerCancel":"pointercancel":"touchcancel",Hn=0,Er=null,os=null,wi=0,Zi=0,Qi=0,Hi=1,vn=0,zn=0,ji=null,hr=Ie(fn),Ri="start",xs=0,Ue={},bi=0,Ii=0,Ji=0,Mn=0,En=0,Fn=null,Cr=null;try{hr.on(Sn,_r),hr.on(er,so)}catch{Ie.error("events not supported "+Sn+","+er+" on jQuery.swipe")}function _r(wr){if(hr.data(fi+"_intouch")!==!0&&!(0<Ie(wr.target).closest(cn.excludedElements,hr).length)){var gs=wr.originalEvent?wr.originalEvent:wr;if(!gs.pointerType||gs.pointerType!="mouse"||cn.fallbackToMouseEvents!=0){var Es,Hs,xo=gs.touches,wo=xo?xo[0]:gs;return Ri="start",xo?xs=xo.length:cn.preventDefaultEvents!==!1&&wr.preventDefault(),zn=os=Er=null,Hi=1,vn=Qi=Zi=wi=Hn=0,(Hs={})[je]=kr(je),Hs[Ke]=kr(Ke),Hs.up=kr($e),Hs[qe]=kr(qe),ji=Hs,bn(),or(0,wo),!xo||xs===cn.fingers||cn.fingers===hi||ea()?(bi=Fs(),xs==2&&(or(1,xo[1]),Zi=Qi=jr(Ue[0].start,Ue[1].start)),(cn.swipeStatus||cn.pinchStatus)&&(Es=no(gs,Ri))):Es=!1,Es===!1?(no(gs,Ri=Di),Es):(cn.hold&&(Cr=setTimeout(Ie.proxy(function(){hr.trigger("hold",[gs.target]),cn.hold&&(Es=cn.hold.call(hr,gs,gs.target))},this),cn.longTapThreshold)),Yn(!0),null)}}}function Or(wr){var gs=wr.originalEvent?wr.originalEvent:wr;if(Ri!==Li&&Ri!==Di&&!xn()){var Es,Hs,xo,wo,ga,_a,tl,Lo=gs.touches,za=yr(Lo?Lo[0]:gs);if(Ii=Fs(),Lo&&(xs=Lo.length),cn.hold&&clearTimeout(Cr),Ri=Ei,xs==2&&(Zi==0?(or(1,Lo[1]),Zi=Qi=jr(Ue[0].start,Ue[1].start)):(yr(Lo[1]),Qi=jr(Ue[0].end,Ue[1].end),Ue[0].end,Ue[1].end,zn=Hi<1?"out":"in"),Hi=(Qi/Zi*1).toFixed(2),vn=Math.abs(Zi-Qi)),xs===cn.fingers||cn.fingers===hi||!Lo||ea()){if(Er=bs(za.start,za.end),function(Ba,dl){if(cn.preventDefaultEvents!==!1)if(cn.allowPageScroll===ci)Ba.preventDefault();else{var lu=cn.allowPageScroll==="auto";switch(dl){case je:(cn.swipeLeft&&lu||!lu&&cn.allowPageScroll!=oi)&&Ba.preventDefault();break;case Ke:(cn.swipeRight&&lu||!lu&&cn.allowPageScroll!=oi)&&Ba.preventDefault();break;case $e:(cn.swipeUp&&lu||!lu&&cn.allowPageScroll!=ii)&&Ba.preventDefault();break;case qe:(cn.swipeDown&&lu||!lu&&cn.allowPageScroll!=ii)&&Ba.preventDefault()}}}(wr,os=bs(za.last,za.end)),_a=za.start,tl=za.end,Hn=Math.round(Math.sqrt(Math.pow(tl.x-_a.x,2)+Math.pow(tl.y-_a.y,2))),wi=br(),function(Ba,dl){Ba!=ci&&(dl=Math.max(dl,Rr(Ba)),ji[Ba].distance=dl)}(Er,Hn),Es=no(gs,Ri),!cn.triggerOnTouchEnd||cn.triggerOnTouchLeave){var ul=!0;cn.triggerOnTouchLeave&&(xo={left:(ga=(wo=Ie(wo=this)).offset()).left,right:ga.left+wo.outerWidth(),top:ga.top,bottom:ga.top+wo.outerHeight()},ul=(Hs=za.end).x>xo.left&&Hs.x<xo.right&&Hs.y>xo.top&&Hs.y<xo.bottom),!cn.triggerOnTouchEnd&&ul?Ri=As(Ei):cn.triggerOnTouchLeave&&!ul&&(Ri=As(Li)),Ri!=Di&&Ri!=Li||no(gs,Ri)}}else no(gs,Ri=Di);Es===!1&&no(gs,Ri=Di)}}function _s(wr){var gs,Es=wr.originalEvent?wr.originalEvent:wr,Hs=Es.touches;if(Hs){if(Hs.length&&!xn())return gs=Es,Ji=Fs(),Mn=gs.touches.length+1,!0;if(Hs.length&&xn())return!0}return xn()&&(xs=Mn),Ii=Fs(),wi=br(),qs()||!ro()?no(Es,Ri=Di):cn.triggerOnTouchEnd||cn.triggerOnTouchEnd===!1&&Ri===Ei?(cn.preventDefaultEvents!==!1&&wr.cancelable!==!1&&wr.preventDefault(),no(Es,Ri=Li)):!cn.triggerOnTouchEnd&&Fa()?Ws(Es,Ri=Li,"tap"):Ri===Ei&&no(Es,Ri=Di),Yn(!1),null}function so(){Qi=Zi=bi=Ii=xs=0,Hi=1,bn(),Yn(!1)}function Ls(wr){var gs=wr.originalEvent?wr.originalEvent:wr;cn.triggerOnTouchLeave&&no(gs,Ri=As(Li))}function go(){hr.off(Sn,_r),hr.off(er,so),hr.off(Cn,Or),hr.off(tr,_s),xr&&hr.off(xr,Ls),Yn(!1)}function As(wr){var gs=wr,Es=hs(),Hs=ro(),xo=qs();return!Es||xo?gs=Di:!Hs||wr!=Ei||cn.triggerOnTouchEnd&&!cn.triggerOnTouchLeave?!Hs&&wr==Li&&cn.triggerOnTouchLeave&&(gs=Di):gs=Li,gs}function no(wr,gs){var Es,Hs=wr.touches;return($a()&&ao()||ao())&&(Es=Ws(wr,gs,"swipe")),(Nr()&&ea()||ea())&&Es!==!1&&(Es=Ws(wr,gs,"pinch")),Zn()&&cl()&&Es!==!1?
70Es=Ws(wr,gs,gi):wi>cn.longTapThreshold&&Hn<10&&cn.longTap&&Es!==!1?Es=Ws(wr,gs,Ai):xs!==1&&zi||!(isNaN(Hn)||Hn<cn.threshold)||!Fa()||Es===!1||(Es=Ws(wr,gs,"tap")),gs===Di&&so(),gs===Li&&(Hs&&Hs.length||so()),Es}function Ws(wr,gs,Es){var Hs;if(Es=="swipe"){if(hr.trigger("swipeStatus",[gs,Er||null,Hn||0,wi||0,xs,Ue,os]),cn.swipeStatus&&(Hs=cn.swipeStatus.call(hr,wr,gs,Er||null,Hn||0,wi||0,xs,Ue,os))===!1)return!1;if(gs==Li&&$a()){if(clearTimeout(Fn),clearTimeout(Cr),hr.trigger("swipe",[Er,Hn,wi,xs,Ue,os]),cn.swipe&&(Hs=cn.swipe.call(hr,wr,Er,Hn,wi,xs,Ue,os))===!1)return!1;switch(Er){case je:hr.trigger("swipeLeft",[Er,Hn,wi,xs,Ue,os]),cn.swipeLeft&&(Hs=cn.swipeLeft.call(hr,wr,Er,Hn,wi,xs,Ue,os));break;case Ke:hr.trigger("swipeRight",[Er,Hn,wi,xs,Ue,os]),cn.swipeRight&&(Hs=cn.swipeRight.call(hr,wr,Er,Hn,wi,xs,Ue,os));break;case $e:hr.trigger("swipeUp",[Er,Hn,wi,xs,Ue,os]),cn.swipeUp&&(Hs=cn.swipeUp.call(hr,wr,Er,Hn,wi,xs,Ue,os));break;case qe:hr.trigger("swipeDown",[Er,Hn,wi,xs,Ue,os]),cn.swipeDown&&(Hs=cn.swipeDown.call(hr,wr,Er,Hn,wi,xs,Ue,os))}}}if(Es=="pinch"){if(hr.trigger("pinchStatus",[gs,zn||null,vn||0,wi||0,xs,Hi,Ue]),cn.pinchStatus&&(Hs=cn.pinchStatus.call(hr,wr,gs,zn||null,vn||0,wi||0,xs,Hi,Ue))===!1)return!1;if(gs==Li&&Nr())switch(zn){case"in":hr.trigger("pinchIn",[zn||null,vn||0,wi||0,xs,Hi,Ue]),cn.pinchIn&&(Hs=cn.pinchIn.call(hr,wr,zn||null,vn||0,wi||0,xs,Hi,Ue));break;case"out":hr.trigger("pinchOut",[zn||null,vn||0,wi||0,xs,Hi,Ue]),cn.pinchOut&&(Hs=cn.pinchOut.call(hr,wr,zn||null,vn||0,wi||0,xs,Hi,Ue))}}return Es=="tap"?gs!==Di&&gs!==Li||(clearTimeout(Fn),clearTimeout(Cr),cl()&&!Zn()?(En=Fs(),Fn=setTimeout(Ie.proxy(function(){En=null,hr.trigger("tap",[wr.target]),cn.tap&&(Hs=cn.tap.call(hr,wr,wr.target))},this),cn.doubleTapThreshold)):(En=null,hr.trigger("tap",[wr.target]),cn.tap&&(Hs=cn.tap.call(hr,wr,wr.target)))):Es==gi?gs!==Di&&gs!==Li||(clearTimeout(Fn),clearTimeout(Cr),En=null,hr.trigger("doubletap",[wr.target]),cn.doubleTap&&(Hs=cn.doubleTap.call(hr,wr,wr.target))):Es==Ai&&(gs!==Di&&gs!==Li||(clearTimeout(Fn),En=null,hr.trigger("longtap",[wr.target]),cn.longTap&&(Hs=cn.longTap.call(hr,wr,wr.target)))),Hs}function ro(){var wr=!0;return cn.threshold!==null&&(wr=Hn>=cn.threshold),wr}function qs(){var wr=!1;return cn.cancelThreshold!==null&&Er!==null&&(wr=Rr(Er)-Hn>=cn.cancelThreshold),wr}function hs(){return!(cn.maxTimeThreshold&&wi>=cn.maxTimeThreshold)}function Nr(){var wr=Do(),gs=el(),Es=cn.pinchThreshold===null||vn>=cn.pinchThreshold;return wr&&gs&&Es}function ea(){return cn.pinchStatus||cn.pinchIn||cn.pinchOut}function $a(){var wr=hs(),gs=ro(),Es=Do(),Hs=el();return!qs()&&Hs&&Es&&gs&&wr}function ao(){return cn.swipe||cn.swipeStatus||cn.swipeLeft||cn.swipeRight||cn.swipeUp||cn.swipeDown}function Do(){return xs===cn.fingers||cn.fingers===hi||!zi}function el(){return Ue[0].end.x!==0}function Fa(){return cn.tap}function cl(){return!!cn.doubleTap}function Zn(){if(En==null)return!1;var wr=Fs();return cl()&&wr-En<=cn.doubleTapThreshold}function bn(){Mn=Ji=0}function xn(){var wr=!1;return Ji&&Fs()-Ji<=cn.fingerReleaseThreshold&&(wr=!0),wr}function Yn(wr){hr&&(wr===!0?(hr.on(Cn,Or),hr.on(tr,_s),xr&&hr.on(xr,Ls)):(hr.off(Cn,Or,!1),hr.off(tr,_s,!1),xr&&hr.off(xr,Ls,!1)),hr.data(fi+"_intouch",wr===!0))}function or(wr,gs){var Es={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return Es.start.x=Es.last.x=Es.end.x=gs.pageX||gs.clientX,Es.start.y=Es.last.y=Es.end.y=gs.pageY||gs.clientY,Ue[wr]=Es}function yr(wr){var gs=wr.identifier!==void 0?wr.identifier:0,Es=Ue[gs]||null;return Es===null&&(Es=or(gs,wr)),Es.last.x=Es.end.x,Es.last.y=Es.end.y,Es.end.x=wr.pageX||wr.clientX,Es.end.y=wr.pageY||wr.clientY,Es}function Rr(wr){if(ji[wr])return ji[wr].distance}function kr(wr){return{direction:wr,distance:0}}function br(){return Ii-bi}function jr(wr,gs){var Es=Math.abs(wr.x-gs.x),Hs=Math.abs(wr.y-gs.y);return Math.round(Math.sqrt(Es*Es+Hs*Hs))}function bs(wr,gs){if(Hs=gs,(Es=wr).x==Hs.x&&Es.y==Hs.y)return ci;var Es,Hs,xo,wo,ga,_a,tl,Lo,za=(wo=gs,ga=(xo=wr).x-wo.x,_a=wo.y-xo.y,tl=Math.atan2(_a,ga),(Lo=Math.round(180*tl/Math.PI))<0&&(Lo=360-Math.abs(Lo)),Lo);return za<=45&&0<=za||za<=360&&315<=za?je:135<=za&&za<=225?Ke:45<za&&za<135?qe:$e}function Fs(){return new Date().getTime()}this.enable=function(){return this.disable(),hr.on(Sn,_r),hr.on(er,so),hr},this.disable=function(){return go(),hr},this.destroy=function(){go(),hr.data(fi,null),hr=null},this.option=function(wr,gs){if(typeof wr=="object")cn=Ie.extend(cn,wr);else if(cn[wr]!==void 0){if(gs===void 0)return cn[wr];cn[wr]=gs}else{if(!wr)return cn;Ie.error("Option "+wr+" does not exist on jQuery.swipe.options")}return null}}Ie.fn.rsswipe=function(fn){var cn=Ie(this),Tn=cn.data(fi);if(Tn&&typeof fn=="string"){if(Tn[fn])return Tn[fn].apply(Tn,Array.prototype.slice.call(arguments,1
70));Ie.error("Method "+fn+" does not exist on jQuery.rsswipe")}else if(Tn&&typeof fn=="object")Tn.option.apply(Tn,arguments);else if(!(Tn||typeof fn!="object"&&fn))return(function(Sn){return!Sn||Sn.allowPageScroll!==void 0||Sn.swipe===void 0&&Sn.swipeStatus===void 0||(Sn.allowPageScroll=ci),Sn.click!==void 0&&Sn.tap===void 0&&(Sn.tap=Sn.click),Sn=Sn||{},Sn=Ie.extend({},Ie.fn.rsswipe.defaults,Sn),this.each(function(){var Cn=Ie(this),tr=Cn.data(fi);tr||(tr=new Gi(this,Sn),Cn.data(fi,tr))})}).apply(this,arguments);return cn},Ie.fn.rsswipe.version="1.6.18",Ie.fn.rsswipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0},Ie.fn.rsswipe.phases={PHASE_START:"start",PHASE_MOVE:Ei,PHASE_END:Li,PHASE_CANCEL:Di},Ie.fn.rsswipe.directions={LEFT:je,RIGHT:Ke,UP:$e,DOWN:qe,IN:"in",OUT:"out"},Ie.fn.rsswipe.pageScroll={NONE:ci,HORIZONTAL:oi,VERTICAL:ii,AUTO:"auto"},Ie.fn.rsswipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:hi}},Ae(3).jQuery?(Le=[Ae(0)],(Fe=typeof(ke=Ve)=="function"?ke.apply(_e,Le):ke)===void 0||(De.exports=Fe)):De.exports?Ve(Ae(0)):Ve($$2)},function(De,_e){(function(Ae){De.exports=Ae}).call(this,{})},function(De,_e){var Ae;(Ae=$$2).waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]},Ae.expr.pseudos.uncached=function(ke){var Le=document.createElement("img");return Le.src=ke.src,Ae(ke).is('img[src!=""]')&&!Le.complete},Ae.fn.waitForImages=function(ke,Le,Fe){if(Ae.isPlainObject(ke)&&(Le=ke.each,Fe=ke.waitForAll,ke=ke.finished),ke=ke||Ae.noop,Le=Le||Ae.noop,Fe=!!Fe,!Ae.isFunction(ke)||!Ae.isFunction(Le))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var Ve=Ae(this),Ie=[];if(Fe){var je=Ae.waitForImages.hasImageProperties||[],Ke=/url\((['"]?)(.*?)\1\)/g;Ve.find("*").each(function(){var ci=Ae(this);ci.is("img:uncached")&&Ie.push({src:ci.attr("src"),element:ci[0]}),Ae.each(je,function(gi,Ai){var oi,ii=ci.css(Ai);if(!ii)return!0;for(;oi=Ke.exec(ii);)Ie.push({src:oi[2],element:ci[0]})})})}else Ve.find("img:uncached").each(function(){Ie.push({src:this.src,element:this})});var $e=Ie.length,qe=0;$e==0&&ke.call(Ve[0]),Ae.each(Ie,function(ci,gi){var Ai=new Image;Ae(Ai).bind("load error",function(oi){if(qe++,Le.call(gi.element,qe,$e,oi.type=="load"),qe==$e)return ke.call(Ve[0]),!1}),Ai.src=gi.src})})}},,function(De,_e,Ae){function ke(ti){if(ti===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ti}function Le(ti,si){ti.prototype=Object.create(si.prototype),ti.prototype.constructor=ti,ti.__proto__=si}/*!
71 * GSAP 3.9.1
72 * https://greensock.com
73 *
74 * @license Copyright 2008-2021, GreenSock. All rights reserved.
75 * Subject to the terms at https://greensock.com/standard-license or for
76 * Club GreenSock members, the agreement issued with that membership.
77 * @author: Jack Doyle, [email protected]
78*/Ae.r(_e);var Fe,Ve,Ie,je,Ke,$e,qe,ci,gi,Ai,oi,ii,hi,Ei={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Li={duration:.5,overwrite:!1,delay:0},Di=1e8,zi=2*Math.PI,an=zi/4,Je=0,fi=Math.sqrt,Gi=Math.cos,fn=Math.sin,cn=function(ti){return typeof ti=="string"},Tn=function(ti){return typeof ti=="function"},Sn=function(ti){return typeof ti=="number"},Cn=function(ti){return ti===void 0},tr=function(ti){return typeof ti=="object"},xr=function(ti){return ti!==!1},er=function(){return typeof window<"u"},Hn=function(ti){return Tn(ti)||cn(ti)},Er=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},os=Array.isArray,wi=/(?:-?\.?\d|\.)+/gi,Zi=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Qi=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Hi=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,vn=/[+-]=-?[.\d]+/,zn=/[^,'"\[\]\s]+/gi,ji=/[\d.+\-=]+(?:e[-+]\d*)*/i,hr={},Ri={},xs=function(ti){return(Ri=Do(ti,hr))&&du},Ue=function(ti,si){return console.warn("Invalid property",ti,"set to",si,"Missing plugin? gsap.registerPlugin()")},bi=function(ti,si){return!si&&console.warn(ti)}
vendor: 4,328 bytes, line 78
78,Ii=function(ti,si){return ti&&(hr[ti]=si)&&Ri&&(Ri[ti]=si)||hr},Ji=function(){return 0},Mn={},En=[],Fn={},Cr={},_r={},Or=30,_s=[],so="",Ls=function(ti){var si,di,vi=ti[0];if(tr(vi)||Tn(vi)||(ti=[ti]),!(si=(vi._gsap||{}).harness)){for(di=_s.length;di--&&!_s[di].targetTest(vi););si=_s[di]}for(di=ti.length;di--;)ti[di]&&(ti[di]._gsap||(ti[di]._gsap=new Ma(ti[di],si)))||ti.splice(di,1);return ti},go=function(ti){return ti._gsap||Ls(dl(ti))[0]._gsap},As=function(ti,si,di){return(di=ti[si])&&Tn(di)?ti[si]():Cn(di)&&ti.getAttribute&&ti.getAttribute(si)||di},no=function(ti,si){return(ti=ti.split(",")).forEach(si)||ti},Ws=function(ti){return Math.round(1e5*ti)/1e5||0},ro=function(ti){return Math.round(1e7*ti)/1e7||0},qs=function(ti,si){for(var di=si.length,vi=0;ti.indexOf(si[vi])<0&&++vi<di;);return vi<di},hs=function(){var ti,si,di=En.length,vi=En.slice(0);for(Fn={},En.length=0,ti=0;ti<di;ti++)(si=vi[ti])&&si._lazy&&(si.render(si._lazy[0],si._lazy[1],!0)._lazy=0)},Nr=function(ti,si,di,vi){En.length&&hs(),ti.render(si,di,vi),En.length&&hs()},ea=function(ti){var si=parseFloat(ti);return(si||si===0)&&(ti+"").match(zn).length<2?si:cn(ti)?ti.trim():ti},$a=function(ti){return ti},ao=function(ti,si){for(var di in si)di in ti||(ti[di]=si[di]);return ti},Do=function(ti,si){for(var di in si)ti[di]=si[di];return ti},el=function ti(si,di){for(var vi in di)vi!=="__proto__"&&vi!=="constructor"&&vi!=="prototype"&&(si[vi]=tr(di[vi])?ti(si[vi]||(si[vi]={}),di[vi]):di[vi]);return si},Fa=function(ti,si){var di,vi={};for(di in ti)di in si||(vi[di]=ti[di]);return vi},cl=function(ti){var si,di=ti.parent||Ve,vi=ti.keyframes?(si=os(ti.keyframes),function(_i,ki){for(var $i in ki)$i in _i||$i==="duration"&&si||$i==="ease"||(_i[$i]=ki[$i])}):ao;if(xr(ti.inherit))for(;di;)vi(ti,di.vars.defaults),di=di.parent||di._dp;return ti},Zn=function(ti,si,di,vi){di===void 0&&(di="_first"),vi===void 0&&(vi="_last");var _i=si._prev,ki=si._next;_i?_i._next=ki:ti[di]===si&&(ti[di]=ki),ki?ki._prev=_i:ti[vi]===si&&(ti[vi]=_i),si._next=si._prev=si.parent=null},bn=function(ti,si){ti.parent&&(!si||ti.parent.autoRemoveChildren)&&ti.parent.remove(ti),ti._act=0},xn=function(ti,si){if(ti&&(!si||si._end>ti._dur||si._start<0))for(var di=ti;di;)di._dirty=1,di=di.parent;return ti},Yn=function(ti){for(var si=ti.parent;si&&si.parent;)si._dirty=1,si.totalDuration(),si=si.parent;return ti},or=function(ti){return ti._repeat?yr(ti._tTime,ti=ti.duration()+ti._rDelay)*ti:0},yr=function(ti,si){var di=Math.floor(ti/=si);return ti&&di===ti?di-1:di},Rr=function(ti,si){return(ti-si._start)*si._ts+(si._ts>=0?0:si._dirty?si.totalDuration():si._tDur)},kr=function(ti){return ti._end=ro(ti._start+(ti._tDur/Math.abs(ti._ts||ti._rts||1e-8)||0))},br=function(ti,si){var di=ti._dp;return di&&di.smoothChildTiming&&ti._ts&&(ti._start=ro(di._time-(ti._ts>0?si/ti._ts:((ti._dirty?ti.totalDuration():ti._tDur)-si)/-ti._ts)),kr(ti),di._dirty||xn(di,ti)),ti},jr=function(ti,si){var di;if((si._time||si._initted&&!si._dur)&&(di=Rr(ti.rawTime(),si),(!si._dur||tl(0,si.totalDuration(),di)-si._tTime>1e-8)&&si.render(di,!0)),xn(ti,si)._dp&&ti._initted&&ti._time>=ti._dur&&ti._ts){if(ti._dur<ti.duration())for(di=ti;di._dp;)di.rawTime()>=0&&di.totalTime(di._tTime),di=di._dp;ti._zTime=-1e-8}},bs=function(ti,si,di,vi){return si.parent&&bn(si),si._start=ro((Sn(di)?di:di||ti!==Ve?wo(ti,di,si):ti._time)+si._delay),si._end=ro(si._start+(si.totalDuration()/Math.abs(si.timeScale())||0)),function(_i,ki,$i,Vi,sn){$i===void 0&&($i="_first"),Vi===void 0&&(Vi="_last");var dn,ln=_i[Vi];if(sn)for(dn=ki[sn];ln&&ln[sn]>dn;)ln=ln._prev;ln?(ki._next=ln._next,ln._next=ki):(ki._next=_i[$i],_i[$i]=ki),ki._next?ki._next._prev=ki:_i[Vi]=ki,ki._prev=ln,ki.parent=ki._dp=_i}(ti,si,"_first","_last",ti._sort?"_start":0),gs(si)||(ti._recent=si),vi||jr(ti,si),ti},Fs=function(ti,si){return(hr.ScrollTrigger||Ue("scrollTrigger",si))&&hr.ScrollTrigger.create(si,ti)},wr=function(ti,si,di,vi){return Ld(ti,si),ti._initted?!di&&ti._pt&&(ti._dur&&ti.vars.lazy!==!1||!ti._dur&&ti.vars.lazy)&&qe!==jl.frame?(En.push(ti),ti._lazy=[si,vi],1):void 0:1},gs=function(ti){var si=ti.data;return si==="isFromStart"||si==="isStart"},Es=function(ti,si,di,vi){var _i=ti._repeat,ki=ro(si)||0,$i=ti._tTime/ti._tDur;return $i&&!vi&&(ti._time*=ki/ti._dur),ti._dur=ki,ti._tDur=_i?_i<0?1e10:ro(ki*(_i+1)+ti._rDelay*_i
vendor: 13,125 bytes, line 78
78):ki,$i>0&&!vi?br(ti,ti._tTime=ti._tDur*$i):ti.parent&&kr(ti),di||xn(ti.parent,ti),ti},Hs=function(ti){return ti instanceof Aa?xn(ti):Es(ti,ti._dur)},xo={_start:0,endTime:Ji,totalDuration:Ji},wo=function ti(si,di,vi){var _i,ki,$i,Vi=si.labels,sn=si._recent||xo,dn=si.duration()>=Di?sn.endTime(!1):si._dur;return cn(di)&&(isNaN(di)||di in Vi)?(ki=di.charAt(0),$i=di.substr(-1)==="%",_i=di.indexOf("="),ki==="<"||ki===">"?(_i>=0&&(di=di.replace(/=/,"")),(ki==="<"?sn._start:sn.endTime(sn._repeat>=0))+(parseFloat(di.substr(1))||0)*($i?(_i<0?sn:vi).totalDuration()/100:1)):_i<0?(di in Vi||(Vi[di]=dn),Vi[di]):(ki=parseFloat(di.charAt(_i-1)+di.substr(_i+1)),$i&&vi&&(ki=ki/100*(os(vi)?vi[0]:vi).totalDuration()),_i>1?ti(si,di.substr(0,_i-1),vi)+ki:dn+ki)):di==null?dn:+di},ga=function(ti,si,di){var vi,_i,ki=Sn(si[1]),$i=(ki?2:1)+(ti<2?0:1),Vi=si[$i];if(ki&&(Vi.duration=si[1]),Vi.parent=di,ti){for(vi=Vi,_i=di;_i&&!("immediateRender"in vi);)vi=_i.vars.defaults||{},_i=xr(_i.vars.inherit)&&_i.parent;Vi.immediateRender=xr(vi.immediateRender),ti<2?Vi.runBackwards=1:Vi.startAt=si[$i-1]}return new aa(si[0],Vi,si[$i+1])},_a=function(ti,si){return ti||ti===0?si(ti):si},tl=function(ti,si,di){return di<ti?ti:di>si?si:di},Lo=function(ti,si){return cn(ti)&&(si=ji.exec(ti))?ti.substr(si.index+si[0].length):""},za=[].slice,ul=function(ti,si){return ti&&tr(ti)&&"length"in ti&&(!si&&!ti.length||ti.length-1 in ti&&tr(ti[0]))&&!ti.nodeType&&ti!==Ie},Ba=function(ti,si,di){return di===void 0&&(di=[]),ti.forEach(function(vi){var _i;return cn(vi)&&!si||ul(vi,1)?(_i=di).push.apply(_i,dl(vi)):di.push(vi)})||di},dl=function(ti,si,di){return!cn(ti)||di||!je&&sh()?os(ti)?Ba(ti,di):ul(ti)?za.call(ti,0):ti?[ti]:[]:za.call((si||Ke).querySelectorAll(ti),0)},lu=function(ti){return ti.sort(function(){return .5-Math.random()})},dp=function(ti){if(Tn(ti))return ti;var si=tr(ti)?ti:{each:ti},di=Po(si.ease),vi=si.from||0,_i=parseFloat(si.base)||0,ki={},$i=vi>0&&vi<1,Vi=isNaN(vi)||$i,sn=si.axis,dn=vi,ln=vi;return cn(vi)?dn=ln={center:.5,edges:.5,end:1}[vi]||0:!$i&&Vi&&(dn=vi[0],ln=vi[1]),function(_n,$n,Ln){var Sr,lr,Gn,mr,rr,ir,Fr,qr,Jr,Wr=(Ln||si).length,Ms=ki[Wr];if(!Ms){if(!(Jr=si.grid==="auto"?0:(si.grid||[1,Di])[1])){for(Fr=-Di;Fr<(Fr=Ln[Jr++].getBoundingClientRect().left)&&Jr<Wr;);Jr--}for(Ms=ki[Wr]=[],Sr=Vi?Math.min(Jr,Wr)*dn-.5:vi%Jr,lr=Jr===Di?0:Vi?Wr*ln/Jr-.5:vi/Jr|0,Fr=0,qr=Di,ir=0;ir<Wr;ir++)Gn=ir%Jr-Sr,mr=lr-(ir/Jr|0),Ms[ir]=rr=sn?Math.abs(sn==="y"?mr:Gn):fi(Gn*Gn+mr*mr),rr>Fr&&(Fr=rr),rr<qr&&(qr=rr);vi==="random"&&lu(Ms),Ms.max=Fr-qr,Ms.min=qr,Ms.v=Wr=(parseFloat(si.amount)||parseFloat(si.each)*(Jr>Wr?Wr-1:sn?sn==="y"?Wr/Jr:Jr:Math.max(Jr,Wr/Jr))||0)*(vi==="edges"?-1:1),Ms.b=Wr<0?_i-Wr:_i,Ms.u=Lo(si.amount||si.each)||0,di=di&&Wr<0?bc(di):di}return Wr=(Ms[_n]-Ms.min)/Ms.max||0,ro(Ms.b+(di?di(Wr):Wr)*Ms.v)+Ms.u}},ca=function(ti){var si=Math.pow(10,((ti+"").split(".")[1]||"").length);return function(di){var vi=Math.round(parseFloat(di)/ti)*ti*si;return(vi-vi%1)/si+(Sn(di)?0:Lo(di))}},hp=function(ti,si){var di,vi,_i=os(ti);return!_i&&tr(ti)&&(di=_i=ti.radius||Di,ti.values?(ti=dl(ti.values),(vi=!Sn(ti[0]))&&(di*=di)):ti=ca(ti.increment)),_a(si,_i?Tn(ti)?function(ki){return vi=ti(ki),Math.abs(vi-ki)<=di?vi:ki}:function(ki){for(var $i,Vi,sn=parseFloat(vi?ki.x:ki),dn=parseFloat(vi?ki.y:0),ln=Di,_n=0,$n=ti.length;$n--;)($i=vi?($i=ti[$n].x-sn)*$i+(Vi=ti[$n].y-dn)*Vi:Math.abs(ti[$n]-sn))<ln&&(ln=$i,_n=$n);return _n=!di||ln<=di?ti[_n]:ki,vi||_n===ki||Sn(ki)?_n:_n+Lo(ki)}:ca(ti))},ld=function(ti,si,di,vi){return _a(os(ti)?!si:di===!0?!!(di=0):!vi,function(){return os(ti)?ti[~~(Math.random()*ti.length)]:(di=di||1e-5)&&(vi=di<1?Math.pow(10,(di+"").length-2):1)&&Math.floor(Math.round((ti-di/2+Math.random()*(si-ti+.99*di))/di)*di*vi)/vi})},Id=function(ti,si,di){return _a(di,function(vi){return ti[~~si(vi)]})},xu=function(ti){for(var si,di,vi,_i,ki=0,$i="";~(si=ti.indexOf("random(",ki));)vi=ti.indexOf(")",si),_i=ti.charAt(si+7)==="[",di=ti.substr(si+7,vi-si-7).match(_i?zn:wi),$i+=ti.substr(ki,si-ki)+ld(_i?di:+di[0],_i?0:+di[1],+di[2]||1e-5),ki=vi+1;return $i+ti.substr(ki,ti.length-ki)},wu=function(ti,si,di,vi,_i){var ki=si-ti,$i=vi-di;return _a(_i,function(Vi){return di+((Vi-ti)/ki*$i||0)})},Ru=function(ti,si,di){var vi,_i,ki,$i=ti.labels,Vi=Di;for(vi in $i)(_i=$i[vi]-si)<0==!!di&&_i&&Vi>(_i=Math.abs(_i))&&(ki=vi,Vi=_i);return ki},kc=function(ti,si,di){var vi,_i,ki=ti.vars,$i=ki[si];if($i)return vi=ki[si+"Params"],_i=ki.callbackScope||ti,di&&En.length&&hs(),vi?$i.apply(_i,vi):$i.call(_i)},Rd=function(ti){return bn(ti),ti.scrollTrigger&&ti.scrollTrigger.kill(!1),ti.progress()<1&&kc(ti,"onInterrupt"),ti},Zu=function(ti){var si=(ti=!ti.name&&ti.default||ti).name,di=Tn(ti),vi=si&&!di&&ti.init?function(){this._props=[]}:ti,_i={init:Ji,render:mp,add:Yu,kill:jo,modifier:ka,rawVars:0},ki={targetTest:0,get:0,getSetter:Wp,aliases:{},register:0};if(sh(),ti!==vi){if(Cr[si])return;ao(vi,ao(Fa(ti,_i),ki)),Do(vi.prototype,Do(_i,Fa(ti,ki))),Cr[vi.prop=si]=vi,ti.targetTest&&(_s.push(vi),Mn[si]=1),si=(si==="css"?"CSS":si.charAt(0).toUpperCase()+si.substr(1))+"Plugin"}Ii(si,vi),ti.register&&ti.register(du,vi,xl)},Gc={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},rh=function(ti,si,di){return 255*(6*(ti+=ti<0?1:ti>1?-1:0)<1?si+(di-si)*ti*6:ti<.5?di:3*ti<2?si+(di-si)*(2/3-ti)*6:si)+.5|0},rs=function(ti,si,di){var vi,_i,ki,$i,Vi,sn,dn,ln,_n,$n,Ln=ti?Sn(ti)?[ti>>16,ti>>8&255,255&ti]:0:Gc.black;if(!Ln){if(ti.substr(-1)===","&&(ti=ti.substr(0,ti.length-1)),Gc[ti])Ln=Gc[ti];else if(ti.charAt(0)==="#"){if(ti.length<6&&(vi=ti.charAt(1),_i=ti.charAt(2),ki=ti.charAt(3),ti="#"+vi+vi+_i+_i+ki+ki+(ti.length===5?ti.charAt(4)+ti.charAt(4):"")),ti.length===9)return[(Ln=parseInt(ti.substr(1,6),16))>>16,Ln>>8&255,255&Ln,parseInt(ti.substr(7),16)/255];Ln=[(ti=parseInt(ti.substr(1),16))>>16,ti>>8&255,255&ti]}else if(ti.substr(0,3)==="hsl")if(Ln=$n=ti.match(wi),si){if(~ti.indexOf("="))return Ln=ti.match(Zi),di&&Ln.length<4&&(Ln[3]=1),Ln}else $i=+Ln[0]%360/360,Vi=+Ln[1]/100,vi=2*(sn=+Ln[2]/100)-(_i=sn<=.5?sn*(Vi+1):sn+Vi-sn*Vi),Ln.length>3&&(Ln[3]*=1),Ln[0]=rh($i+1/3,vi,_i),Ln[1]=rh($i,vi,_i),Ln[2]=rh($i-1/3,vi,_i);else Ln=ti.match(wi)||Gc.transparent;Ln=Ln.map(Number)}return si&&!$n&&(vi=Ln[0]/255,_i=Ln[1]/255,ki=Ln[2]/255,sn=((dn=Math.max(vi,_i,ki))+(ln=Math.min(vi,_i,ki)))/2,dn===ln?$i=Vi=0:(_n=dn-ln,Vi=sn>.5?_n/(2-dn-ln):_n/(dn+ln),$i=dn===vi?(_i-ki)/_n+(_i<ki?6:0):dn===_i?(ki-vi)/_n+2:(vi-_i)/_n+4,$i*=60),Ln[0]=~~($i+.5),Ln[1]=~~(100*Vi+.5),Ln[2]=~~(100*sn+.5)),di&&Ln.length<4&&(Ln[3]=1),Ln},Ou=function(ti){var si=[],di=[],vi=-1;return ti.split(il).forEach(function(_i){var ki=_i.match(Qi)||[];si.push.apply(si,ki),di.push(vi+=ki.length+1)}),si.c=di,si},hl=function(ti,si,di){var vi,_i,ki,$i,Vi="",sn=(ti+Vi).match(il),dn=si?"hsla(":"rgba(",ln=0;if(!sn)return ti;if(sn=sn.map(function(_n){return(_n=rs(_n,si,1))&&dn+(si?_n[0]+","+_n[1]+"%,"+_n[2]+"%,"+_n[3]:_n.join(","))+")"}),di&&(ki=Ou(ti),(vi=di.c).join(Vi)!==ki.c.join(Vi)))for($i=(_i=ti.replace(il,"1").split(Qi)).length-1;ln<$i;ln++)Vi+=_i[ln]+(~vi.indexOf(ln)?sn.shift()||dn+"0,0,0,0)":(ki.length?ki:sn.length?sn:di).shift());if(!_i)for($i=(_i=ti.split(il)).length-1;ln<$i;ln++)Vi+=_i[ln]+sn[ln];return Vi+_i[$i]},il=function(){var ti,si="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(ti in Gc)si+="|"+ti+"\\b";return new RegExp(si+")","gi")}(),_c=/hsl[a]?\(/,sc=function(ti){var si,di=ti.join(" ");if(il.lastIndex=0,il.test(di))return si=_c.test(di),ti[1]=hl(ti[1],si),ti[0]=hl(ti[0],si,Ou(ti[1])),!0},jl=function(){var ti,si,di,vi,_i,ki,$i=Date.now,Vi=500,sn=33,dn=$i(),ln=dn,_n=1e3/240,$n=_n,Ln=[],Sr=function lr(Gn){var mr,rr,ir,Fr,qr=$i()-ln,Jr=Gn===!0;if(qr>Vi&&(dn+=qr-sn),((mr=(ir=(ln+=qr)-dn)-$n)>0||Jr)&&(Fr=++vi.frame,_i=ir-1e3*vi.time,vi.time=ir/=1e3,$n+=mr+(mr>=_n?4:_n-mr),rr=1),Jr||(ti=si(lr)),rr)for(ki=0;ki<Ln.length;ki++)Ln[ki](ir,_i,Fr,Gn)};return vi={time:0,frame:0,tick:function(){Sr(!0)},deltaRatio:function(lr){return _i/(1e3/(lr||60))},wake:function(){$e&&(!je&&er()&&(Ie=je=window,Ke=Ie.document||{},hr.gsap=du,(Ie.gsapVersions||(Ie.gsapVersions=[])).push(du.version),xs(Ri||Ie.GreenSockGlobals||!Ie.gsap&&Ie||{}),di=Ie.requestAnimationFrame),ti&&vi.sleep(),si=di||function(lr){return setTimeout(lr,$n-1e3*vi.time+1|0)},gi=1,Sr(2))},sleep:function(){(di?Ie.cancelAnimationFrame:clearTimeout)(ti),gi=0,si=Ji},lagSmoothing:function(lr,Gn){Vi=lr||1/1e-8,sn=Math.min(Gn,Vi,0)},fps:function(lr){_n=1e3/(lr||240),$n=1e3*vi.time+_n},add:function(lr){Ln.indexOf(lr)<0&&Ln.push(lr),sh()},remove:function(lr,Gn){~(Gn=Ln.indexOf(lr))&&Ln.splice(Gn,1)&&ki>=Gn&&ki--},_listeners:Ln}}(),sh=function(){return!gi&&jl.wake()},oa={},js=/^[\d.\-M][\d.\-,\s]/,Zo=/["']/g,$o=function(ti){for(var si,di,vi,_i={},ki=ti.substr(1,ti.length-3).split(":"),$i=ki[0],Vi=1,sn=ki.length;Vi<sn;Vi++)di=ki[Vi],si=Vi!==sn-1?di.lastIndexOf(","):di.length,vi=di.substr(0,si),_i[$i]=isNaN(vi)?vi.replace(Zo,"").trim():+vi,$i=di.substr(si+1).trim();return _i},bc=function(ti){return function(si){return 1-ti(1-si)}},cu=function ti(si,di){for(var vi,_i=si._first;_i;)_i instanceof Aa?ti(_i,di):!_i.vars.yoyoEase||_i._yoyo&&_i._repeat||_i._yoyo===di||(_i.timeline?ti(_i.timeline,di):(vi=_i._ease,_i._ease=_i._yEase,_i._yEase=vi,_i._yoyo=di)),_i=_i._next},Po=function(ti,si){return ti&&(Tn(ti)?ti:oa[ti]||function(di){var vi,_i,ki,$i,Vi=(di+"").split("("),sn=oa[Vi[0]];return sn&&Vi.length>1&&sn.config?sn.config.apply(null,~di.indexOf("{")?[$o(Vi[1])]:(vi=di,_i=vi.indexOf("(")+1,ki=vi.indexOf(")"),$i=vi.indexOf("(",_i),vi.substring(_i,~$i&&$i<ki?vi.indexOf(")",ki+1):ki)).split(",").map(ea)):oa._CE&&js.test(di)?oa._CE("",di):sn}(ti))||si},ja=function(ti,si,di,vi){di===void 0&&(di=function($i){return 1-si(1-$i)}),vi===void 0&&(vi=function($i){return $i<.5?si(2*$i)/2:1-si(2*(1-$i))/2});var _i,ki={easeIn:si,easeOut:di,easeInOut:vi};return no(ti,function($i){for(var Vi in oa[$i]=hr[$i]=ki,oa[_i=$i.toLowerCase()]=di,ki)oa[_i+(Vi==="easeIn"?".in":Vi==="easeOut"?".out":".inOut")]=oa[$i+"."+Vi]=ki[Vi]}),ki},Od=function(ti){return function(si){return si<.5?(1-ti(1-2*si))/2:.5+ti(2*(si-.5))/2}},Pc=function ti(si,di,vi){var _i=di>=1?di:1,ki=(vi||(si?.3:.45))/(di<1?di:1),$i=ki/zi*(Math.asin(1/_i)||0),Vi=function(dn){return dn===1?1:_i*Math.pow(2,-10*dn)*fn((dn-$i)*ki)+1},sn=si==="out"?Vi:si==="in"?function(dn){return 1-Vi(1-dn)}:Od(Vi);return ki=zi/ki,sn.config=function(dn,ln){return ti(si,dn,ln)},sn},xc=function ti(si,di){di===void 0&&(di=1.70158);var vi=function(ki){return ki?--ki*ki*((di+1)*ki+di)+1:0},_i=si==="out"?vi:si==="in"?function(ki){return 1-vi(1-ki)}:Od(vi);return _i.config=function(ki){return ti(si,ki)},_i};no("Linear,Quad,Cubic,Quart,Quint,Strong",function(ti,si){var di=si<5?si+1:si;ja(ti+",Power"+(di-1),si?function(vi){return Math.pow(vi,di)}:function(vi){return vi},function(vi){return 1-Math.pow(1-vi,di)},function(vi){return vi<.5?Math.pow(2*vi,di)/2:1-Math.pow(2*(1-vi),di)/2})}),oa.Linear.easeNone=oa.none=oa.Linear.easeIn,ja("Elastic",Pc("in"),Pc("out"),Pc()),Ai=7.5625,ii=1/(oi=2.75),ja("Bounce",function(ti){return 1-hi(1-ti)},hi=function(ti){return ti<ii?Ai*ti*ti:ti<.7272727272727273?Ai*Math.pow(ti-1.5/oi,2)+.75:ti<.9090909090909092?Ai*(ti-=2.25/oi)*ti+.9375:Ai*Math.pow(ti-2.625/oi,2)+.984375}),ja("Expo",function(ti){return ti?Math.pow(2,10*(ti-1)):0}),ja("Circ",function(ti){return-(fi(1-ti*ti)-1)}),ja("Sine",function(ti){return ti===1?1:1-Gi(ti*an)}),ja("Back",xc("in"),xc("out"),xc()),oa.SteppedEase=oa.steps=hr.SteppedEase={config:function(ti,si){ti===void 0&&(ti=1);var di=1/ti,vi=ti+(si?0:1),_i=si?1:0;return function(ki){return((vi*tl(0,1-1e-8,ki)|0)+_i)*di}}},Li.ease=oa["quad.out"],no("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(ti){return so+=ti+","+ti+"Params,"});var Ma=function(ti,si){this.id=Je++,ti._gsap=this,this.target=ti,this.harness=si,this.get=si?si.get:As,this.set=si?si.getSetter:Wp},uu=function(){function ti(di){this.vars=di,this._delay=+di.delay||0,(this._repeat=di.repeat===1/0?-2:di.repeat||0)&&(this._rDelay=di.repeatDelay||0,this._yoyo=!!di.yoyo||!!di.yoyoEase),this._ts=1,Es(this,+di.duration,1,1),this.data=di.data,gi||jl.wake()}var si=ti.prototype;return si.delay=function(di){return di||di===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+di-this._delay),this._delay=di,this):this._delay},si.duration=function(di){return arguments.length?this.totalDuration(this._repeat>0?di+(di+this._rDelay)*this._repeat:di):this.totalDuration()&&this._dur},si.totalDuration=function(di){return arguments.length?(this._dirty=0,Es(this,this._repeat<0?di:(di-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},si.totalTime=function(di,vi){if(sh(),!arguments.length)return this._tTime;var _i=this._dp;if(_i&&_i.smoothChildTiming&&this._ts){for(br(this,di),!_i._dp||_i.parent||jr(_i,this);_i&&_i.parent;
vendor: 4,391 bytes, line 78
78)_i.parent._time!==_i._start+(_i._ts>=0?_i._tTime/_i._ts:(_i.totalDuration()-_i._tTime)/-_i._ts)&&_i.totalTime(_i._tTime,!0),_i=_i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&di<this._tDur||this._ts<0&&di>0||!this._tDur&&!di)&&bs(this._dp,this,this._start-this._delay)}return(this._tTime!==di||!this._dur&&!vi||this._initted&&Math.abs(this._zTime)===1e-8||!di&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=di),Nr(this,di,vi)),this},si.time=function(di,vi){return arguments.length?this.totalTime(Math.min(this.totalDuration(),di+or(this))%(this._dur+this._rDelay)||(di?this._dur:0),vi):this._time},si.totalProgress=function(di,vi){return arguments.length?this.totalTime(this.totalDuration()*di,vi):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},si.progress=function(di,vi){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?di:1-di)+or(this),vi):this.duration()?Math.min(1,this._time/this._dur):this.ratio},si.iteration=function(di,vi){var _i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(di-1)*_i,vi):this._repeat?yr(this._tTime,_i)+1:1},si.timeScale=function(di){if(!arguments.length)return this._rts===-1e-8?0:this._rts;if(this._rts===di)return this;var vi=this.parent&&this._ts?Rr(this.parent._time,this):this._tTime;return this._rts=+di||0,this._ts=this._ps||di===-1e-8?0:this._rts,Yn(this.totalTime(tl(-this._delay,this._tDur,vi),!0)),kr(this),this},si.paused=function(di){return arguments.length?(this._ps!==di&&(this._ps=di,di?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(sh(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==1e-8&&(this._tTime-=1e-8)))),this):this._ps},si.startTime=function(di){if(arguments.length){this._start=di;var vi=this.parent||this._dp;return vi&&(vi._sort||!this.parent)&&bs(vi,this,di-this._delay),this}return this._start},si.endTime=function(di){return this._start+(xr(di)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},si.rawTime=function(di){var vi=this.parent||this._dp;return vi?di&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Rr(vi.rawTime(di),this):this._tTime:this._tTime},si.globalTime=function(di){for(var vi=this,_i=arguments.length?di:vi.rawTime();vi;)_i=vi._start+_i/(vi._ts||1),vi=vi._dp;return _i},si.repeat=function(di){return arguments.length?(this._repeat=di===1/0?-2:di,Hs(this)):this._repeat===-2?1/0:this._repeat},si.repeatDelay=function(di){if(arguments.length){var vi=this._time;return this._rDelay=di,Hs(this),vi?this.time(vi):this}return this._rDelay},si.yoyo=function(di){return arguments.length?(this._yoyo=di,this):this._yoyo},si.seek=function(di,vi){return this.totalTime(wo(this,di),xr(vi))},si.restart=function(di,vi){return this.play().totalTime(di?-this._delay:0,xr(vi))},si.play=function(di,vi){return di!=null&&this.seek(di,vi),this.reversed(!1).paused(!1)},si.reverse=function(di,vi){return di!=null&&this.seek(di||this.totalDuration(),vi),this.reversed(!0).paused(!1)},si.pause=function(di,vi){return di!=null&&this.seek(di,vi),this.paused(!0)},si.resume=function(){return this.paused(!1)},si.reversed=function(di){return arguments.length?(!!di!==this.reversed()&&this.timeScale(-this._rts||(di?-1e-8:0)),this):this._rts<0},si.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},si.isActive=function(){var di,vi=this.parent||this._dp,_i=this._start;return!(vi&&!(this._ts&&this._initted&&vi.isActive()&&(di=vi.rawTime(!0))>=_i&&di<this.endTime(!0)-1e-8))},si.eventCallback=function(di,vi,_i){var ki=this.vars;return arguments.length>1?(vi?(ki[di]=vi,_i&&(ki[di+"Params"]=_i),di==="onUpdate"&&(this._onUpdate=vi)):delete ki[di],this):ki[di]},si.then=function(di){var vi=this;return new Promise(function(_i){var ki=Tn(di)?di:$a,$i=function(){var Vi=vi.then;vi.then=null,Tn(ki)&&(ki=ki(vi))&&(ki.then||ki===vi)&&(vi.then=Vi),_i(ki),vi.then=Vi};vi._initted&&vi.totalProgress()===1&&vi._ts>=0||!vi._tTime&&vi._ts<0?$i():vi._prom=$i})},si.kill=function(){Rd(this)},ti}();ao(uu.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom
vendor: 4,443 bytes, line 78
78:0,_ps:!1,_rts:1});var Aa=function(ti){function si(vi,_i){var ki;return vi===void 0&&(vi={}),(ki=ti.call(this,vi)||this).labels={},ki.smoothChildTiming=!!vi.smoothChildTiming,ki.autoRemoveChildren=!!vi.autoRemoveChildren,ki._sort=xr(vi.sortChildren),Ve&&bs(vi.parent||Ve,ke(ki),_i),vi.reversed&&ki.reverse(),vi.paused&&ki.paused(!0),vi.scrollTrigger&&Fs(ke(ki),vi.scrollTrigger),ki}Le(si,ti);var di=si.prototype;return di.to=function(vi,_i,ki){return ga(0,arguments,this),this},di.from=function(vi,_i,ki){return ga(1,arguments,this),this},di.fromTo=function(vi,_i,ki,$i){return ga(2,arguments,this),this},di.set=function(vi,_i,ki){return _i.duration=0,_i.parent=this,cl(_i).repeatDelay||(_i.repeat=0),_i.immediateRender=!!_i.immediateRender,new aa(vi,_i,wo(this,ki),1),this},di.call=function(vi,_i,ki){return bs(this,aa.delayedCall(0,vi,_i),ki)},di.staggerTo=function(vi,_i,ki,$i,Vi,sn,dn){return ki.duration=_i,ki.stagger=ki.stagger||$i,ki.onComplete=sn,ki.onCompleteParams=dn,ki.parent=this,new aa(vi,ki,wo(this,Vi)),this},di.staggerFrom=function(vi,_i,ki,$i,Vi,sn,dn){return ki.runBackwards=1,cl(ki).immediateRender=xr(ki.immediateRender),this.staggerTo(vi,_i,ki,$i,Vi,sn,dn)},di.staggerFromTo=function(vi,_i,ki,$i,Vi,sn,dn,ln){return $i.startAt=ki,cl($i).immediateRender=xr($i.immediateRender),this.staggerTo(vi,_i,$i,Vi,sn,dn,ln)},di.render=function(vi,_i,ki){var $i,Vi,sn,dn,ln,_n,$n,Ln,Sr,lr,Gn,mr,rr=this._time,ir=this._dirty?this.totalDuration():this._tDur,Fr=this._dur,qr=vi<=0?0:ro(vi),Jr=this._zTime<0!=vi<0&&(this._initted||!Fr);if(this!==Ve&&qr>ir&&vi>=0&&(qr=ir),qr!==this._tTime||ki||Jr){if(rr!==this._time&&Fr&&(qr+=this._time-rr,vi+=this._time-rr),$i=qr,Sr=this._start,_n=!(Ln=this._ts),Jr&&(Fr||(rr=this._zTime),(vi||!_i)&&(this._zTime=vi)),this._repeat){if(Gn=this._yoyo,ln=Fr+this._rDelay,this._repeat<-1&&vi<0)return this.totalTime(100*ln+vi,_i,ki);if($i=ro(qr%ln),qr===ir?(dn=this._repeat,$i=Fr):((dn=~~(qr/ln))&&dn===qr/ln&&($i=Fr,dn--),$i>Fr&&($i=Fr)),lr=yr(this._tTime,ln),!rr&&this._tTime&&lr!==dn&&(lr=dn),Gn&&1&dn&&($i=Fr-$i,mr=1),dn!==lr&&!this._lock){var Wr=Gn&&1&lr,Ms=Wr===(Gn&&1&dn);if(dn<lr&&(Wr=!Wr),rr=Wr?0:Fr,this._lock=1,this.render(rr||(mr?0:ro(dn*ln)),_i,!Fr)._lock=0,this._tTime=qr,!_i&&this.parent&&kc(this,"onRepeat"),this.vars.repeatRefresh&&!mr&&(this.invalidate()._lock=1),rr&&rr!==this._time||_n!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(Fr=this._dur,ir=this._tDur,Ms&&(this._lock=2,rr=Wr?Fr:-1e-4,this.render(rr,!0),this.vars.repeatRefresh&&!mr&&this.invalidate()),this._lock=0,!this._ts&&!_n)return this;cu(this,mr)}}if(this._hasPause&&!this._forcing&&this._lock<2&&($n=function(Xs,eo,oo){var Cs;if(oo>eo)for(Cs=Xs._first;Cs&&Cs._start<=oo;){if(Cs.data==="isPause"&&Cs._start>eo)return Cs;Cs=Cs._next}else for(Cs=Xs._last;Cs&&Cs._start>=oo;){if(Cs.data==="isPause"&&Cs._start<eo)return Cs;Cs=Cs._prev}}(this,ro(rr),ro($i)))&&(qr-=$i-($i=$n._start)),this._tTime=qr,this._time=$i,this._act=!Ln,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=vi,rr=0),!rr&&$i&&!_i&&(kc(this,"onStart"),this._tTime!==qr))return this;if($i>=rr&&vi>=0)for(Vi=this._first;Vi;){if(sn=Vi._next,(Vi._act||$i>=Vi._start)&&Vi._ts&&$n!==Vi){if(Vi.parent!==this)return this.render(vi,_i,ki);if(Vi.render(Vi._ts>0?($i-Vi._start)*Vi._ts:(Vi._dirty?Vi.totalDuration():Vi._tDur)+($i-Vi._start)*Vi._ts,_i,ki),$i!==this._time||!this._ts&&!_n){$n=0,sn&&(qr+=this._zTime=-1e-8);break}}Vi=sn}else{Vi=this._last;for(var Ps=vi<0?vi:$i;Vi;){if(sn=Vi._prev,(Vi._act||Ps<=Vi._end)&&Vi._ts&&$n!==Vi){if(Vi.parent!==this)return this.render(vi,_i,ki);if(Vi.render(Vi._ts>0?(Ps-Vi._start)*Vi._ts:(Vi._dirty?Vi.totalDuration():Vi._tDur)+(Ps-Vi._start)*Vi._ts,_i,ki),$i!==this._time||!this._ts&&!_n){$n=0,sn&&(qr+=this._zTime=Ps?-1e-8:1e-8);break}}Vi=sn}}if($n&&!_i&&(this.pause(),$n.render($i>=rr?0:-1e-8)._zTime=$i>=rr?1:-1,this._ts))return this._start=Sr,kr(this),this.render(vi,_i,ki);this._onUpdate&&!_i&&kc(this,"onUpdate",!0),(qr===ir&&ir>=this.totalDuration()||!qr&&rr)&&(Sr!==this._start&&Math.abs(Ln)===Math.abs(this._ts)||this._lock||((vi||!Fr)&&(qr===ir&&this._ts>0||!qr&&this._ts<0)&&bn(this,1),_i||vi<0&&!rr||!qr&&!rr&&ir||(kc(this,qr===ir&&vi>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(qr<ir&&this.timeScale()>0)&&this._prom())))}return this},di.add=function(vi,_i){var ki=this;if(Sn(_i)||(_i=wo(this,_i,vi)),!(vi instanceof uu)){if(os(vi))return vi.forEac
vendor: 4,463 bytes, line 78
78h(function($i){return ki.add($i,_i)}),this;if(cn(vi))return this.addLabel(vi,_i);if(!Tn(vi))return this;vi=aa.delayedCall(0,vi)}return this!==vi?bs(this,vi,_i):this},di.getChildren=function(vi,_i,ki,$i){vi===void 0&&(vi=!0),_i===void 0&&(_i=!0),ki===void 0&&(ki=!0),$i===void 0&&($i=-Di);for(var Vi=[],sn=this._first;sn;)sn._start>=$i&&(sn instanceof aa?_i&&Vi.push(sn):(ki&&Vi.push(sn),vi&&Vi.push.apply(Vi,sn.getChildren(!0,_i,ki)))),sn=sn._next;return Vi},di.getById=function(vi){for(var _i=this.getChildren(1,1,1),ki=_i.length;ki--;)if(_i[ki].vars.id===vi)return _i[ki]},di.remove=function(vi){return cn(vi)?this.removeLabel(vi):Tn(vi)?this.killTweensOf(vi):(Zn(this,vi),vi===this._recent&&(this._recent=this._last),xn(this))},di.totalTime=function(vi,_i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ro(jl.time-(this._ts>0?vi/this._ts:(this.totalDuration()-vi)/-this._ts))),ti.prototype.totalTime.call(this,vi,_i),this._forcing=0,this):this._tTime},di.addLabel=function(vi,_i){return this.labels[vi]=wo(this,_i),this},di.removeLabel=function(vi){return delete this.labels[vi],this},di.addPause=function(vi,_i,ki){var $i=aa.delayedCall(0,_i||Ji,ki);return $i.data="isPause",this._hasPause=1,bs(this,$i,wo(this,vi))},di.removePause=function(vi){var _i=this._first;for(vi=wo(this,vi);_i;)_i._start===vi&&_i.data==="isPause"&&bn(_i),_i=_i._next},di.killTweensOf=function(vi,_i,ki){for(var $i=this.getTweensOf(vi,ki),Vi=$i.length;Vi--;)jc!==$i[Vi]&&$i[Vi].kill(vi,_i);return this},di.getTweensOf=function(vi,_i){for(var ki,$i=[],Vi=dl(vi),sn=this._first,dn=Sn(_i);sn;)sn instanceof aa?qs(sn._targets,Vi)&&(dn?(!jc||sn._initted&&sn._ts)&&sn.globalTime(0)<=_i&&sn.globalTime(sn.totalDuration())>_i:!_i||sn.isActive())&&$i.push(sn):(ki=sn.getTweensOf(Vi,_i)).length&&$i.push.apply($i,ki),sn=sn._next;return $i},di.tweenTo=function(vi,_i){_i=_i||{};var ki,$i=this,Vi=wo($i,vi),sn=_i,dn=sn.startAt,ln=sn.onStart,_n=sn.onStartParams,$n=sn.immediateRender,Ln=aa.to($i,ao({ease:_i.ease||"none",lazy:!1,immediateRender:!1,time:Vi,overwrite:"auto",duration:_i.duration||Math.abs((Vi-(dn&&"time"in dn?dn.time:$i._time))/$i.timeScale())||1e-8,onStart:function(){if($i.pause(),!ki){var Sr=_i.duration||Math.abs((Vi-(dn&&"time"in dn?dn.time:$i._time))/$i.timeScale());Ln._dur!==Sr&&Es(Ln,Sr,0,1).render(Ln._time,!0,!0),ki=1}ln&&ln.apply(Ln,_n||[])}},_i));return $n?Ln.render(0):Ln},di.tweenFromTo=function(vi,_i,ki){return this.tweenTo(_i,ao({startAt:{time:wo(this,vi)}},ki))},di.recent=function(){return this._recent},di.nextLabel=function(vi){return vi===void 0&&(vi=this._time),Ru(this,wo(this,vi))},di.previousLabel=function(vi){return vi===void 0&&(vi=this._time),Ru(this,wo(this,vi),1)},di.currentLabel=function(vi){return arguments.length?this.seek(vi,!0):this.previousLabel(this._time+1e-8)},di.shiftChildren=function(vi,_i,ki){ki===void 0&&(ki=0);for(var $i,Vi=this._first,sn=this.labels;Vi;)Vi._start>=ki&&(Vi._start+=vi,Vi._end+=vi),Vi=Vi._next;if(_i)for($i in sn)sn[$i]>=ki&&(sn[$i]+=vi);return xn(this)},di.invalidate=function(){var vi=this._first;for(this._lock=0;vi;)vi.invalidate(),vi=vi._next;return ti.prototype.invalidate.call(this)},di.clear=function(vi){vi===void 0&&(vi=!0);for(var _i,ki=this._first;ki;)_i=ki._next,this.remove(ki),ki=_i;return this._dp&&(this._time=this._tTime=this._pTime=0),vi&&(this.labels={}),xn(this)},di.totalDuration=function(vi){var _i,ki,$i,Vi=0,sn=this,dn=sn._last,ln=Di;if(arguments.length)return sn.timeScale((sn._repeat<0?sn.duration():sn.totalDuration())/(sn.reversed()?-vi:vi));if(sn._dirty){for($i=sn.parent;dn;)_i=dn._prev,dn._dirty&&dn.totalDuration(),(ki=dn._start)>ln&&sn._sort&&dn._ts&&!sn._lock?(sn._lock=1,bs(sn,dn,ki-dn._delay,1)._lock=0):ln=ki,ki<0&&dn._ts&&(Vi-=ki,(!$i&&!sn._dp||$i&&$i.smoothChildTiming)&&(sn._start+=ki/sn._ts,sn._time-=ki,sn._tTime-=ki),sn.shiftChildren(-ki,!1,-1/0),ln=0),dn._end>Vi&&dn._ts&&(Vi=dn._end),dn=_i;Es(sn,sn===Ve&&sn._time>Vi?sn._time:Vi,1,1),sn._dirty=0}return sn._tDur},si.updateRoot=function(vi){if(Ve._ts&&(Nr(Ve,Rr(vi,Ve)),qe=jl.frame),jl.frame>=Or){Or+=Ei.autoSleep||120;var _i=Ve._first;if((!_i||!_i._ts)&&Ei.autoSleep&&jl._listeners.length<2){for(;_i&&!_i._ts;)_i=_i._next;_i||jl.sleep()}}},si}(uu);ao(Aa.prototype,{_lock:0,_hasPause:0,_forcing:0});var jc,Ph=function(ti,si,di,vi,_i,ki,$i){var Vi,sn,dn,ln,_n,$n,Ln,Sr,lr=new xl(this._pt,ti,si,0,1,Lh,null,_i),Gn=0,mr=0;for(lr.b=di,lr.e=vi,di+="",(Ln=~(vi+="").indexOf("random("))&&(vi=xu(vi
78)),ki&&(ki(Sr=[di,vi],ti,si),di=Sr[0],vi=Sr[1]),sn=di.match(Hi)||[];Vi=Hi.exec(vi);)ln=Vi[0],_n=vi.substring(Gn,Vi.index),dn?dn=(dn+1)%5:_n.substr(-5)==="rgba("&&(dn=1),ln!==sn[mr++]&&($n=parseFloat(sn[mr-1])||0,lr._pt={_next:lr._pt,p:_n||mr===1?_n:",",s:$n,c:ln.charAt(1)==="="?parseFloat(ln.substr(2))*(ln.charAt(0)==="-"?-1:1):parseFloat(ln)-$n,m:dn&&dn<4?Math.round:0},Gn=Hi.lastIndex);return lr.c=Gn<vi.length?vi.substring(Gn,vi.length):"",lr.fp=$i,(vn.test(vi)||Ln)&&(lr.e=0),this._pt=lr,lr},Yu=function(ti,si,di,vi,_i,ki,$i,Vi,sn){Tn(vi)&&(vi=vi(_i||0,ti,ki));var dn,ln=ti[si],_n=di!=="get"?di:Tn(ln)?sn?ti[si.indexOf("set")||!Tn(ti["get"+si.substr(3)])?si:"get"+si.substr(3)](sn):ti[si]():ln,$n=Tn(ln)?sn?Wc:Rh:fp;if(cn(vi)&&(~vi.indexOf("random(")&&(vi=xu(vi)),vi.charAt(1)==="="&&((dn=parseFloat(_n)+parseFloat(vi.substr(2))*(vi.charAt(0)==="-"?-1:1)+(Lo(_n)||0))||dn===0)&&(vi=dn)),_n!==vi)return isNaN(_n*vi)||vi===""?(!ln&&!(si in ti)&&Ue(si,vi),Ph.call(this,ti,si,_n,vi,$n,Vi||Ei.stringFilter,sn)):(dn=new xl(this._pt,ti,si,+_n||0,vi-(_n||0),typeof ln=="boolean"?bl:Oh,0,$n),sn&&(dn.fp=sn),$i&&dn.modifier($i,this,ti),this._pt=dn)},pp=function(ti,si,di,vi,_i,ki){var $i,Vi,sn,dn;if(Cr[ti]&&($i=new Cr[ti]).init(_i,$i.rawVars?si[ti]:function(ln,_n,$n,Ln,Sr){if(Tn(ln)&&(ln=cd(ln,Sr,_n,$n,Ln)),!tr(ln)||ln.style&&ln.nodeType||os(ln)||Er(ln))return cn(ln)?cd(ln,Sr,_n,$n,Ln):ln;var lr,Gn={};for(lr in ln)Gn[lr]=cd(ln[lr],Sr,_n,$n,Ln);return Gn}(si[ti],vi,_i,ki,di),di,vi,ki)!==!1&&(di._pt=Vi=new xl(di._pt,_i,ti,0,1,$i.render,$i,0,$i.priority),di!==ci))for(sn=di._ptLookup[di._targets.indexOf(_i)],dn=$i._props.length;dn--;)sn[$i._props[dn]]=Vi;return $i},Ld=function ti(si,di){var vi,_i,ki,$i,Vi,sn,dn,ln,_n,$n,Ln,Sr,lr,Gn=si.vars,mr=Gn.ease,rr=Gn.startAt,ir=Gn.immediateRender,Fr=Gn.lazy,qr=Gn.onUpdate,Jr=Gn.onUpdateParams,Wr=Gn.callbackScope,Ms=Gn.runBackwards,Ps=Gn.yoyoEase,Xs=Gn.keyframes,eo=Gn.autoRevert,oo=si._dur,Cs=si._startAt,Zs=si._targets,Io=si.parent,Eo=Io&&Io.data==="nested"?Io.parent._targets:Zs,pa=si._overwrite==="auto"&&!Fe,Ia=si.timeline;if(Ia&&(!Xs||!mr)&&(mr="none"),si._ease=Po(mr,Li.ease),si._yEase=Ps?bc(Po(Ps===!0?mr:Ps,Li.ease)):0,Ps&&si._yoyo&&!si._repeat&&(Ps=si._yEase,si._yEase=si._ease,si._ease=Ps),si._from=!Ia&&!!Gn.runBackwards,!Ia||Xs&&!Gn.stagger){if(Sr=(ln=Zs[0]?go(Zs[0]).harness:0)&&Gn[ln.prop],vi=Fa(Gn,Mn),Cs&&bn(Cs.render(-1,!0)),rr)if(bn(si._startAt=aa.set(Zs,ao({data:"isStart",overwrite:!1,parent:Io,immediateRender:!0,lazy:xr(Fr),startAt:null,delay:0,onUpdate:qr,onUpdateParams:Jr,callbackScope:Wr,stagger:0},rr))),di<0&&!ir&&!eo&&si._startAt.render(-1,!0),ir){if(di>0&&!eo&&(si._startAt=0),oo&&di<=0)return void(di&&(si._zTime=di))}else eo===!1&&(si._startAt=0);else if(Ms&&oo)if(Cs)!eo&&(si._startAt=0);else if(di&&(ir=!1),ki=ao({overwrite:!1,data:"isFromStart",lazy:ir&&xr(Fr),immediateRender:ir,stagger:0,parent:Io},vi),Sr&&(ki[ln.prop]=Sr),bn(si._startAt=aa.set(Zs,ki)),di<0&&si._startAt.render(-1,!0),si._zTime=di,ir){if(!di)return}else ti(si._startAt,1e-8);for(si._pt=0,Fr=oo&&xr(Fr)||Fr&&!oo,_i=0;_i<Zs.length;_i++){if(dn=(Vi=Zs[_i])._gsap||Ls(Zs)[_i]._gsap,si._ptLookup[_i]=$n={},Fn[dn.id]&&En.length&&hs(),Ln=Eo===Zs?_i:Eo.indexOf(Vi),ln&&(_n=new ln).init(Vi,Sr||vi,si,Ln,Eo)!==!1&&(si._pt=$i=new xl(si._pt,Vi,_n.name,0,1,_n.render,_n,0,_n.priority),_n._props.forEach(function(Da){$n[Da]=$i}),_n.priority&&(sn=1)),!ln||Sr)for(ki in vi)Cr[ki]&&(_n=pp(ki,vi,si,Ln,Vi,Eo))?_n.priority&&(sn=1):$n[ki]=$i=Yu.call(si,Vi,ki,"get",vi[ki],Ln,Eo,0,Gn.stringFilter);si._op&&si._op[_i]&&si.kill(Vi,si._op[_i]),pa&&si._pt&&(jc=si,Ve.killTweensOf(Vi,$n,si.globalTime(di)),lr=!si.parent,jc=0),si._pt&&Fr&&(Fn[dn.id]=1)}sn&&$h(si),si._onInit&&si._onInit(si)}si._onUpdate=qr,si._initted=(!si._op||si._pt)&&!lr,Xs&&di<=0&&Ia.render(Di,!0,!0)},Ih=function(ti,si,di,vi){var _i,ki,$i=si.ease||vi||"power1.inOut";if(os(si))ki=di[ti]||(di[ti]=[]),si.forEach(function(Vi,sn){return ki.push({t:sn/(si.length-1)*100,v:Vi,e:$i})});else for(_i in si)ki=di[_i]||(di[_i]=[]),_i==="ease"||ki.push({t:parseFloat(ti),v:si[_i],e:$i})},cd=function(ti,si,di,vi,_i){return Tn(ti)?ti.call(si,di,vi,_i):cn(ti)&&~ti.indexOf("random(")?xu(ti):ti},oh=so+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",oc={};no(oh+",id,stagger,delay,duration,paused,scrollTrigger",function(ti){return oc[ti]=1});var aa=function(ti){function si(vi,_i,ki,$i){var Vi;typeof _i=="number"&&(ki.duration=_i,_i=ki,ki=null);var sn,dn,ln,_n,$n,Ln,Sr,lr,Gn=(Vi=ti.call(this,$i?_i:cl(_i))||this).vars,mr=Gn.duration,rr=Gn.delay,ir=Gn.immediateRender,Fr=Gn.stagger,qr=Gn.over
vendor: 4,925 bytes, line 78
78write,Jr=Gn.keyframes,Wr=Gn.defaults,Ms=Gn.scrollTrigger,Ps=Gn.yoyoEase,Xs=_i.parent||Ve,eo=(os(vi)||Er(vi)?Sn(vi[0]):"length"in _i)?[vi]:dl(vi);if(Vi._targets=eo.length?Ls(eo):bi("GSAP target "+vi+" not found. https://greensock.com",!Ei.nullTargetWarn)||[],Vi._ptLookup=[],Vi._overwrite=qr,Jr||Fr||Hn(mr)||Hn(rr)){if(_i=Vi.vars,(sn=Vi.timeline=new Aa({data:"nested",defaults:Wr||{}})).kill(),sn.parent=sn._dp=ke(Vi),sn._start=0,Fr||Hn(mr)||Hn(rr)){if(_n=eo.length,Sr=Fr&&dp(Fr),tr(Fr))for($n in Fr)~oh.indexOf($n)&&(lr||(lr={}),lr[$n]=Fr[$n]);for(dn=0;dn<_n;dn++)(ln=Fa(_i,oc)).stagger=0,Ps&&(ln.yoyoEase=Ps),lr&&Do(ln,lr),Ln=eo[dn],ln.duration=+cd(mr,ke(Vi),dn,Ln,eo),ln.delay=(+cd(rr,ke(Vi),dn,Ln,eo)||0)-Vi._delay,!Fr&&_n===1&&ln.delay&&(Vi._delay=rr=ln.delay,Vi._start+=rr,ln.delay=0),sn.to(Ln,ln,Sr?Sr(dn,Ln,eo):0),sn._ease=oa.none;sn.duration()?mr=rr=0:Vi.timeline=0}else if(Jr){cl(ao(sn.vars.defaults,{ease:"none"})),sn._ease=Po(Jr.ease||_i.ease||"none");var oo,Cs,Zs,Io=0;if(os(Jr))Jr.forEach(function(Eo){return sn.to(eo,Eo,">")});else{for($n in ln={},Jr)$n==="ease"||$n==="easeEach"||Ih($n,Jr[$n],ln,Jr.easeEach);for($n in ln)for(oo=ln[$n].sort(function(Eo,pa){return Eo.t-pa.t}),Io=0,dn=0;dn<oo.length;dn++)(Zs={ease:(Cs=oo[dn]).e,duration:(Cs.t-(dn?oo[dn-1].t:0))/100*mr})[$n]=Cs.v,sn.to(eo,Zs,Io),Io+=Zs.duration;sn.duration()<mr&&sn.to({},{duration:mr-sn.duration()})}}mr||Vi.duration(mr=sn.duration())}else Vi.timeline=0;return qr!==!0||Fe||(jc=ke(Vi),Ve.killTweensOf(eo),jc=0),bs(Xs,ke(Vi),ki),_i.reversed&&Vi.reverse(),_i.paused&&Vi.paused(!0),(ir||!mr&&!Jr&&Vi._start===ro(Xs._time)&&xr(ir)&&function Eo(pa){return!pa||pa._ts&&Eo(pa.parent)}(ke(Vi))&&Xs.data!=="nested")&&(Vi._tTime=-1e-8,Vi.render(Math.max(0,-rr))),Ms&&Fs(ke(Vi),Ms),Vi}Le(si,ti);var di=si.prototype;return di.render=function(vi,_i,ki){var $i,Vi,sn,dn,ln,_n,$n,Ln,Sr,lr=this._time,Gn=this._tDur,mr=this._dur,rr=vi>Gn-1e-8&&vi>=0?Gn:vi<1e-8?0:vi;if(mr){if(rr!==this._tTime||!vi||ki||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=vi<0){if($i=rr,Ln=this.timeline,this._repeat){if(dn=mr+this._rDelay,this._repeat<-1&&vi<0)return this.totalTime(100*dn+vi,_i,ki);if($i=ro(rr%dn),rr===Gn?(sn=this._repeat,$i=mr):((sn=~~(rr/dn))&&sn===rr/dn&&($i=mr,sn--),$i>mr&&($i=mr)),(_n=this._yoyo&&1&sn)&&(Sr=this._yEase,$i=mr-$i),ln=yr(this._tTime,dn),$i===lr&&!ki&&this._initted)return this;sn!==ln&&(Ln&&this._yEase&&cu(Ln,_n),!this.vars.repeatRefresh||_n||this._lock||(this._lock=ki=1,this.render(ro(dn*sn),!0).invalidate()._lock=0))}if(!this._initted){if(wr(this,vi<0?vi:$i,ki,_i))return this._tTime=0,this;if(mr!==this._dur)return this.render(vi,_i,ki)}if(this._tTime=rr,this._time=$i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=$n=(Sr||this._ease)($i/mr),this._from&&(this.ratio=$n=1-$n),$i&&!lr&&!_i&&(kc(this,"onStart"),this._tTime!==rr))return this;for(Vi=this._pt;Vi;)Vi.r($n,Vi.d),Vi=Vi._next;Ln&&Ln.render(vi<0?vi:!$i&&_n?-1e-8:Ln._dur*Ln._ease($i/this._dur),_i,ki)||this._startAt&&(this._zTime=vi),this._onUpdate&&!_i&&(vi<0&&this._startAt&&this._startAt.render(vi,!0,ki),kc(this,"onUpdate")),this._repeat&&sn!==ln&&this.vars.onRepeat&&!_i&&this.parent&&kc(this,"onRepeat"),rr!==this._tDur&&rr||this._tTime!==rr||(vi<0&&this._startAt&&!this._onUpdate&&this._startAt.render(vi,!0,!0),(vi||!mr)&&(rr===this._tDur&&this._ts>0||!rr&&this._ts<0)&&bn(this,1),_i||vi<0&&!lr||!rr&&!lr||(kc(this,rr===Gn?"onComplete":"onReverseComplete",!0),this._prom&&!(rr<Gn&&this.timeScale()>0)&&this._prom()))}}else(function(ir,Fr,qr,Jr){var Wr,Ms,Ps,Xs=ir.ratio,eo=Fr<0||!Fr&&(!ir._start&&function Zs(Io){var Eo=Io.parent;return Eo&&Eo._ts&&Eo._initted&&!Eo._lock&&(Eo.rawTime()<0||Zs(Eo))}(ir)&&(ir._initted||!gs(ir))||(ir._ts<0||ir._dp._ts<0)&&!gs(ir))?0:1,oo=ir._rDelay,Cs=0;if(oo&&ir._repeat&&(Cs=tl(0,ir._tDur,Fr),Ms=yr(Cs,oo),ir._yoyo&&1&Ms&&(eo=1-eo),Ms!==yr(ir._tTime,oo)&&(Xs=1-eo,ir.vars.repeatRefresh&&ir._initted&&ir.invalidate())),eo!==Xs||Jr||ir._zTime===1e-8||!Fr&&ir._zTime){if(!ir._initted&&wr(ir,Fr,Jr,qr))return;for(Ps=ir._zTime,ir._zTime=Fr||(qr?1e-8:0),qr||(qr=Fr&&!Ps),ir.ratio=eo,ir._from&&(eo=1-eo),ir._time=0,ir._tTime=Cs,Wr=ir._pt;Wr;)Wr.r(eo,Wr.d),Wr=Wr._next;ir._startAt&&Fr<0&&ir._startAt.render(Fr,!0,!0),ir._onUpdate&&!qr&&kc(ir,"onUpdate"),Cs&&ir._repeat&&!qr&&ir.parent&&kc(ir,"onRepeat"),(Fr>=ir._tDur||Fr<0)&&ir.ratio===eo&&(eo&&bn(ir,1),qr||(kc(ir,eo?"onComplete":"onReverseComplete",!0),ir._prom&&ir._prom()))}else ir._zTime||(ir._zTime=Fr)})(this,vi,_i,ki);return this},di.targets=function(){return this._targets},di.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),ti.prototype.invalidate.call(this)},di.kill=function(vi,_i){if(_i===void 0&&(_i="all"),!(vi||_i&&_i!=="all"))return this._lazy=this._pt=0,this.parent?Rd(this):this;if(this.timeline){var ki=this.timeline.totalDuration();
vendor: 7,907 bytes, line 78
78return this.timeline.killTweensOf(vi,_i,jc&&jc.vars.overwrite!==!0)._first||Rd(this),this.parent&&ki!==this.timeline.totalDuration()&&Es(this,this._dur*this.timeline._tDur/ki,0,1),this}var $i,Vi,sn,dn,ln,_n,$n,Ln=this._targets,Sr=vi?dl(vi):Ln,lr=this._ptLookup,Gn=this._pt;if((!_i||_i==="all")&&function(mr,rr){for(var ir=mr.length,Fr=ir===rr.length;Fr&&ir--&&mr[ir]===rr[ir];);return ir<0}(Ln,Sr))return _i==="all"&&(this._pt=0),Rd(this);for($i=this._op=this._op||[],_i!=="all"&&(cn(_i)&&(ln={},no(_i,function(mr){return ln[mr]=1}),_i=ln),_i=function(mr,rr){var ir,Fr,qr,Jr,Wr=mr[0]?go(mr[0]).harness:0,Ms=Wr&&Wr.aliases;if(!Ms)return rr;for(Fr in ir=Do({},rr),Ms)if(Fr in ir)for(qr=(Jr=Ms[Fr].split(",")).length;qr--;)ir[Jr[qr]]=ir[Fr];return ir}(Ln,_i)),$n=Ln.length;$n--;)if(~Sr.indexOf(Ln[$n]))for(ln in Vi=lr[$n],_i==="all"?($i[$n]=_i,dn=Vi,sn={}):(sn=$i[$n]=$i[$n]||{},dn=_i),dn)(_n=Vi&&Vi[ln])&&("kill"in _n.d&&_n.d.kill(ln)!==!0||Zn(this,_n,"_pt"),delete Vi[ln]),sn!=="all"&&(sn[ln]=1);return this._initted&&!this._pt&&Gn&&Rd(this),this},si.to=function(vi,_i){return new si(vi,_i,arguments[2])},si.from=function(vi,_i){return ga(1,arguments)},si.delayedCall=function(vi,_i,ki,$i){return new si(_i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:vi,onComplete:_i,onReverseComplete:_i,onCompleteParams:ki,onReverseCompleteParams:ki,callbackScope:$i})},si.fromTo=function(vi,_i,ki){return ga(2,arguments)},si.set=function(vi,_i){return _i.duration=0,_i.repeatDelay||(_i.repeat=0),new si(vi,_i)},si.killTweensOf=function(vi,_i,ki){return Ve.killTweensOf(vi,_i,ki)},si}(uu);ao(aa.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),no("staggerTo,staggerFrom,staggerFromTo",function(ti){aa[ti]=function(){var si=new Aa,di=za.call(arguments,0);return di.splice(ti==="staggerFromTo"?5:4,0,0),si[ti].apply(si,di)}});var fp=function(ti,si,di){return ti[si]=di},Rh=function(ti,si,di){return ti[si](di)},Wc=function(ti,si,di,vi){return ti[si](vi.fp,di)},qc=function(ti,si,di){return ti.setAttribute(si,di)},Wp=function(ti,si){return Tn(ti[si])?Rh:Cn(ti[si])&&ti.setAttribute?qc:fp},Oh=function(ti,si){return si.set(si.t,si.p,Math.round(1e6*(si.s+si.c*ti))/1e6,si)},bl=function(ti,si){return si.set(si.t,si.p,!!(si.s+si.c*ti),si)},Lh=function(ti,si){var di=si._pt,vi="";if(!ti&&si.b)vi=si.b;else if(ti===1&&si.e)vi=si.e;else{for(;di;)vi=di.p+(di.m?di.m(di.s+di.c*ti):Math.round(1e4*(di.s+di.c*ti))/1e4)+vi,di=di._next;vi+=si.c}si.set(si.t,si.p,vi,si)},mp=function(ti,si){for(var di=si._pt;di;)di.r(ti,di.d),di=di._next},ka=function(ti,si,di,vi){for(var _i,ki=this._pt;ki;)_i=ki._next,ki.p===vi&&ki.modifier(ti,si,di),ki=_i},jo=function(ti){for(var si,di,vi=this._pt;vi;)di=vi._next,vi.p===ti&&!vi.op||vi.op===ti?Zn(this,vi,"_pt"):vi.dep||(si=1),vi=di;return!si},qp=function(ti,si,di,vi){vi.mSet(ti,si,vi.m.call(vi.tween,di,vi.mt),vi)},$h=function(ti){for(var si,di,vi,_i,ki=ti._pt;ki;){for(si=ki._next,di=vi;di&&di.pr>ki.pr;)di=di._next;(ki._prev=di?di._prev:_i)?ki._prev._next=ki:vi=ki,(ki._next=di)?di._prev=ki:_i=ki,ki=si}ti._pt=vi},xl=function(){function ti(si,di,vi,_i,ki,$i,Vi,sn,dn){this.t=di,this.s=_i,this.c=ki,this.p=vi,this.r=$i||Oh,this.d=Vi||this,this.set=sn||fp,this.pr=dn||0,this._next=si,si&&(si._prev=this)}return ti.prototype.modifier=function(si,di,vi){this.mSet=this.mSet||this.set,this.set=qp,this.m=si,this.mt=vi,this.tween=di},ti}();no(so+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(ti){return Mn[ti]=1}),hr.TweenMax=hr.TweenLite=aa,hr.TimelineLite=hr.TimelineMax=Aa,Ve=new Aa({sortChildren:!1,defaults:Li,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Ei.stringFilter=sc;var Su={registerPlugin:function(){for(var ti=arguments.length,si=new Array(ti),di=0;di<ti;di++)si[di]=arguments[di];si.forEach(function(vi){return Zu(vi)})},timeline:function(ti){return new Aa(ti)},getTweensOf:function(ti,si){return Ve.getTweensOf(ti,si)},getProperty:function(ti,si,di,vi){cn(ti)&&(ti=dl(ti)[0]);var _i=go(ti||{}).get,ki=di?$a:ea;return di==="native"&&(di=""),ti&&(si?ki((Cr[si]&&Cr[si].get||_i)(ti,si,di,vi)):function($i,Vi,sn){return ki((Cr[$i]&&Cr[$i].get||_i)(ti,$i,Vi,sn))})},quickSetter:function(ti,si,di){if((ti=dl(ti)).length>1){var vi=ti.map(function(dn){return du.quickSetter(dn,si,di)}),_i=vi.length;return function(dn){for(var ln=_i;ln--;)vi[ln](dn)}}ti=ti[0]||{};var ki=Cr[si],$i=go(ti),Vi=$i.harness&&($i.harness.aliases||{})[si]||si,sn=ki?function(dn){var ln=new ki;ci._pt=0,ln.init(ti,di?dn+di:dn,ci,0,[ti]),ln.render(1,ln),ci._pt&&mp(1,ci)}:$i.set(ti,Vi);return ki?sn:function(dn){return sn(ti,Vi,di?dn+di:dn,$i,1)}},isTweening:function(ti){return Ve.getTweensOf(ti,!0).length>0},defaults:function(ti){return ti&&ti.ease&&(ti.ease=Po(ti.ease,Li.ease)),el(Li,ti||{})},config:function(ti){return el(Ei,ti||{})},registerEffect:function(ti){var si=ti.name,di=ti.effect,vi=ti.plugins,_i=ti.defaults,ki=ti.extendTimeline;(vi||"").split(",").forEach(function($i){return $i&&!Cr[$i]&&!hr[$i]&&bi(si+" effect requires "+$i+" plugin.")}),_r[si]=function($i,Vi,sn){return di(dl($i),ao(Vi||{},_i),sn)},ki&&(Aa.prototype[si]=function($i,Vi,sn){return this.add(_r[si]($i,tr(Vi)?Vi:(sn=Vi)&&{},this),sn)})},registerEase:function(ti,si){oa[ti]=Po(si)},parseEase:function(ti,si){return arguments.length?Po(ti,si):oa},getById:function(ti){return Ve.getById(ti)},exportRoot:function(ti,si){ti===void 0&&(ti={});var di,vi,_i=new Aa(ti);for(_i.smoothChildTiming=xr(ti.smoothChildTiming),Ve.remove(_i),_i._dp=0,_i._time=_i._tTime=Ve._time,di=Ve._first;di;)vi=di._next,!si&&!di._dur&&di instanceof aa&&di.vars.onComplete===di._targets[0]||bs(_i,di,di._start-di._delay),di=vi;return bs(Ve,_i,0),_i},utils:{wrap:function ti(si,di,vi){var _i=di-si;return os(si)?Id(si,ti(0,si.length),di):_a(vi,function(ki){return(_i+(ki-si)%_i)%_i+si})},wrapYoyo:function ti(si,di,vi){var _i=di-si,ki=2*_i;return os(si)?Id(si,ti(0,si.length-1),di):_a(vi,function($i){return si+(($i=(ki+($i-si)%ki)%ki||0)>_i?ki-$i:$i)})},distribute:dp,random:ld,snap:hp,normalize:function(ti,si,di){return wu(ti,si,0,1,di)},getUnit:Lo,clamp:function(ti,si,di){return _a(di,function(vi){return tl(ti,si,vi)})},splitColor:rs,toArray:dl,selector:function(ti){return ti=dl(ti)[0]||bi("Invalid scope")||{},function(si){var di=ti.current||ti.nativeElement||ti;return dl(si,di.querySelectorAll?di:di===ti?bi("Invalid scope")||Ke.createElement("div"):ti)}},mapRange:wu,pipe:function(){for(var ti=arguments.length,si=new Array(ti),di=0;di<ti;di++)si[di]=arguments[di];return function(vi){return si.reduce(function(_i,ki){return ki(_i)},vi)}},unitize:function(ti,si){return function(di){return ti(parseFloat(di))+(si||Lo(di))}},interpolate:function ti(si,di,vi,_i){var ki=isNaN(si+di)?0:function(Ln){return(1-Ln)*si+Ln*di};if(!ki){var $i,Vi,sn,dn,ln,_n=cn(si),$n={};if(vi===!0&&(_i=1)&&(vi=null),_n)si={p:si},di={p:di};else if(os(si)&&!os(di)){for(sn=[],dn=si.length,ln=dn-2,Vi=1;Vi<dn;Vi++)sn.push(ti(si[Vi-1],si[Vi]));dn--,ki=function(Ln){Ln*=dn;var Sr=Math.min(ln,~~Ln);return sn[Sr](Ln-Sr)},vi=di}else _i||(si=Do(os(si)?[]:{},si));if(!sn){for($i in di)Yu.call($n,si,$i,"get",di[$i]);ki=function(Ln){return mp(Ln,$n)||(_n?si.p:si)}}}return _a(vi,ki)},shuffle:lu},install:xs,effects:_r,ticker:jl,updateRoot:Aa.updateRoot,plugins:Cr,globalTimeline:Ve,core:{PropTween:xl,globals:Ii,Tween:aa,Timeline:Aa,Animation:uu,getCache:go,_removeLinkedListItem:Zn,suppressOverwrites:function(ti){return Fe=ti}}};no("to,from,fromTo,delayedCall,set,killTweensOf",function(ti){return Su[ti]=aa[ti]}),jl.add(Aa.updateRoot),ci=Su.to({},{duration:0});var Fh=function(ti,si){for(var di=ti._pt;di&&di.p!==si&&di.op!==si&&di.fp!==si;)di=di._next;return di},Sf=function(ti,si){return{name:ti,rawVars:1,init:function(di,vi,_i){_i._onInit=function(ki){var $i,Vi;
vendor: 4,362 bytes, lines 78-86
78if(cn(vi)&&($i={},no(vi,function(sn){return $i[sn]=1}),vi=$i),si){for(Vi in $i={},vi)$i[Vi]=si(vi[Vi]);vi=$i}(function(sn,dn){var ln,_n,$n,Ln=sn._targets;for(ln in dn)for(_n=Ln.length;_n--;)($n=sn._ptLookup[_n][ln])&&($n=$n.d)&&($n._pt&&($n=Fh($n,ln)),$n&&$n.modifier&&$n.modifier(dn[ln],sn,Ln[_n],ln))})(ki,vi)}}}},du=Su.registerPlugin({name:"attr",init:function(ti,si,di,vi,_i){var ki,$i;for(ki in si)($i=this.add(ti,"setAttribute",(ti.getAttribute(ki)||0)+"",si[ki],vi,_i,0,0,ki))&&($i.op=ki),this._props.push(ki)}},{name:"endArray",init:function(ti,si){for(var di=si.length;di--;)this.add(ti,di,ti[di]||0,si[di])}},Sf("roundProps",ca),Sf("modifiers"),Sf("snap",hp))||Su;aa.version=Aa.version=du.version="3.9.1",$e=1,er()&&sh(),oa.Power0,oa.Power1,oa.Power2,oa.Power3,oa.Power4,oa.Linear,oa.Quad,oa.Cubic,oa.Quart,oa.Quint,oa.Strong,oa.Elastic,oa.Back,oa.SteppedEase,oa.Bounce,oa.Sine,oa.Expo,oa.Circ;/*!
79 * CSSPlugin 3.9.1
80 * https://greensock.com
81 *
82 * Copyright 2008-2021, GreenSock. All rights reserved.
83 * Subject to the terms at https://greensock.com/standard-license or for
84 * Club GreenSock members, the agreement issued with that membership.
85 * @author: Jack Doyle, [email protected]
86*/var ah,ya,Lu,ac,wc,$d,zl,pi={},Ci=180/Math.PI,Ui=Math.PI/180,Ki=Math.atan2,mn=/([A-Z])/g,yn=/(?:left|right|width|margin|padding|x)/i,An=/[\s,\(]\S/,ur={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Kn=function(ti,si){return si.set(si.t,si.p,Math.round(1e4*(si.s+si.c*ti))/1e4+si.u,si)},Br=function(ti,si){return si.set(si.t,si.p,ti===1?si.e:Math.round(1e4*(si.s+si.c*ti))/1e4+si.u,si)},ls=function(ti,si){return si.set(si.t,si.p,ti?Math.round(1e4*(si.s+si.c*ti))/1e4+si.u:si.b,si)},ps=function(ti,si){var di=si.s+si.c*ti;si.set(si.t,si.p,~~(di+(di<0?-.5:.5))+si.u,si)},Kr=function(ti,si){return si.set(si.t,si.p,ti?si.e:si.b,si)},Ns=function(ti,si){return si.set(si.t,si.p,ti!==1?si.b:si.e,si)},co=function(ti,si,di){return ti.style[si]=di},Fo=function(ti,si,di){return ti.style.setProperty(si,di)},Vo=function(ti,si,di){return ti._gsap[si]=di},Dl=function(ti,si,di){return ti._gsap.scaleX=ti._gsap.scaleY=di},Wa=function(ti,si,di,vi,_i){var ki=ti._gsap;ki.scaleX=ki.scaleY=di,ki.renderTransform(_i,ki)},Sc=function(ti,si,di,vi,_i){var ki=ti._gsap;ki[si]=di,ki.renderTransform(_i,ki)},qa="transform",Wo=qa+"Origin",Xc=function(ti,si){var di=ya.createElementNS?ya.createElementNS((si||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),ti):ya.createElement(ti);return di.style?di:ya.createElement(ti)},zo=function ti(si,di,vi){var _i=getComputedStyle(si);return _i[di]||_i.getPropertyValue(di.replace(mn,"-$1").toLowerCase())||_i.getPropertyValue(di)||!vi&&ti(si,hu(di)||di,1)||""},Na="O,Moz,ms,Ms,Webkit".split(","),hu=function(ti,si,di){var vi=(si||wc).style,_i=5;if(ti in vi&&!di)return ti;for(ti=ti.charAt(0).toUpperCase()+ti.substr(1);_i--&&!(Na[_i]+ti in vi););return _i<0?null:(_i===3?"ms":_i>=0?Na[_i]:"")+ti},ud=function(){typeof window<"u"&&window.document&&(ah=window,ya=ah.document,Lu=ya.documentElement,wc=Xc("div")||{style:{}},Xc("div"),qa=hu(qa),Wo=qa+"Origin",wc.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",zl=!!hu("perspective"),ac=1)},Ic=function ti(si){var di,vi=Xc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),_i=this.parentNode,ki=this.nextSibling,$i=this.style.cssText;if(Lu.appendChild(vi),vi.appendChild(this),this.style.display="block",si)try{di=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=ti}catch{}else this._gsapBBox&&(di=this._gsapBBox());return _i&&(ki?_i.insertBefore(this,ki):_i.appendChild(this)),Lu.removeChild(vi),this.style.cssText=$i,di},qo=function(ti,si){for(var di=si.length;di--;)if(ti.hasAttribute(si[di]))return ti.getAttribute(si[di])},lc=function(ti){var si;try{si=ti.getBBox()}catch{si=Ic.call(ti,!0)}return si&&(si.width||si.height)||ti.getBBox===Ic||(si=Ic.call(ti,!0)),!si||si.width||si.x||si.y?si:{x:+qo(ti,["x","cx","x1"])||0,y:+qo(ti,["y","cy","y1"])||0,width:0,height:0}},$u=function(ti){return!(!ti.getCTM||ti.parentNode&&!ti.ownerSVGElement||!lc(ti))},Zc=function(ti,si){if(si){var di=ti.style;si in pi&&si!==Wo&&(si=qa),di.removeProperty?(si.substr(0,2)!=="ms"&&si.substr(0,6)!=="webkit"||(si="-"+si),di.removeProperty(si.replace(mn,"-$1").toLowerCase())):di.removeAttribute(si)}}
86,Ml=function(ti,si,di,vi,_i,ki){var $i=new xl(ti._pt,si,di,0,1,ki?Ns:Kr);return ti._pt=$i,$i.b=vi,$i.e=_i,ti._props.push(di),$i},Tu={deg:1,rad:1,turn:1},Kl=function ti(si,di,vi,_i){var ki,$i,Vi,sn,dn=parseFloat(vi)||0,ln=(vi+"").trim().substr((dn+"").length)||"px",_n=wc.style,$n=yn.test(di),Ln=si.tagName.toLowerCase()==="svg",Sr=(Ln?"client":"offset")+($n?"Width":"Height"),lr=_i==="px",Gn=_i==="%";return _i===ln||!dn||Tu[_i]||Tu[ln]?dn:(ln!=="px"&&!lr&&(dn=ti(si,di,vi,"px")),sn=si.getCTM&&$u(si),!Gn&&ln!=="%"||!pi[di]&&!~di.indexOf("adius")?(_n[$n?"width":"height"]=100+(lr?ln:_i),$i=~di.indexOf("adius")||_i==="em"&&si.appendChild&&!Ln?si:si.parentNode,sn&&($i=(si.ownerSVGElement||{}).parentNode),$i&&$i!==ya&&$i.appendChild||($i=ya.body),(Vi=$i._gsap)&&Gn&&Vi.width&&$n&&Vi.time===jl.time?Ws(dn/Vi.width*100):((Gn||ln==="%")&&(_n.position=zo(si,"position")),$i===si&&(_n.position="static"),$i.appendChild(wc),ki=wc[Sr],$i.removeChild(wc),_n.position="absolute",$n&&Gn&&((Vi=go($i)).time=jl.time,Vi.width=$i[Sr]),Ws(lr?ki*dn/100:ki&&dn?100/ki*dn:0))):(ki=sn?si.getBBox()[$n?"width":"height"]:si[Sr],Ws(Gn?dn/ki*100:dn/100*ki)))},Tc=function(ti,si,di,vi){var _i;return ac||ud(),si in ur&&si!=="transform"&&~(si=ur[si]).indexOf(",")&&(si=si.split(",")[0]),pi[si]&&si!=="transform"?(_i=Bl(ti,vi),_i=si!=="transformOrigin"?_i[si]:_i.svg?_i.origin:Bd(zo(ti,Wo))+" "+_i.zOrigin+"px"):(!(_i=ti.style[si])||_i==="auto"||vi||~(_i+"").indexOf("calc("))&&(_i=xa[si]&&xa[si](ti,si,di)||zo(ti,si)||As(ti,si)||(si==="opacity"?1:0)),di&&!~(_i+"").trim().indexOf(" ")?Kl(ti,si,_i,di)+di:_i},pu=function(ti,si,di,vi){if(!di||di==="none"){var _i=hu(si,ti,1),ki=_i&&zo(ti,_i,1);ki&&ki!==di?(si=_i,di=ki):si==="borderColor"&&(di=zo(ti,"borderTopColor"))}var $i,Vi,sn,dn,ln,_n,$n,Ln,Sr,lr,Gn,mr,rr=new xl(this._pt,ti.style,si,0,1,Lh),ir=0,Fr=0;if(rr.b=di,rr.e=vi,di+="",(vi+="")=="auto"&&(ti.style[si]=vi,vi=zo(ti,si)||vi,ti.style[si]=di),sc($i=[di,vi]),vi=$i[1],sn=(di=$i[0]).match(Qi)||[],(vi.match(Qi)||[]).length){for(;Vi=Qi.exec(vi);)$n=Vi[0],Sr=vi.substring(ir,Vi.index),ln?ln=(ln+1)%5:Sr.substr(-5)!=="rgba("&&Sr.substr(-5)!=="hsla("||(ln=1),$n!==(_n=sn[Fr++]||"")&&(dn=parseFloat(_n)||0,Gn=_n.substr((dn+"").length),(mr=$n.charAt(1)==="="?+($n.charAt(0)+"1"):0)&&($n=$n.substr(2)),Ln=parseFloat($n),lr=$n.substr((Ln+"").length),ir=Qi.lastIndex-lr.length,lr||(lr=lr||Ei.units[si]||Gn,ir===vi.length&&(vi+=lr,rr.e+=lr)),Gn!==lr&&(dn=Kl(ti,si,_n,lr)||0),rr._pt={_next:rr._pt,p:Sr||Fr===1?Sr:",",s:dn,c:mr?mr*Ln:Ln-dn,m:ln&&ln<4||si==="zIndex"?Math.round:0});rr.c=ir<vi.length?vi.substring(ir,vi.length):""}else rr.r=si==="display"&&vi==="none"?Ns:Kr;return vn.test(vi)&&(rr.e=0),this._pt=rr,rr},Xp={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},lh=function(ti,si){if(si.tween&&si.tween._time===si.tween._dur){var di,vi,_i,ki=si.t,$i=ki.style,Vi=si.u,sn=ki._gsap;if(Vi==="all"||Vi===!0)$i.cssText="",vi=1;else for(_i=(Vi=Vi.split(",")).length;--_i>-1;)di=Vi[_i],pi[di]&&(vi=1,di=di==="transformOrigin"?Wo:qa),Zc(ki,di);vi&&(Zc(ki,qa),sn&&(sn.svg&&ki.removeAttribute("transform"),Bl(ki,1),sn.uncache=1))}},xa={clearProps:function(ti,si,di,vi,_i){if(_i.data!=="isFromStart"){var ki=ti._pt=new xl(ti._pt,si,di,0,0,lh);return ki.u=vi,ki.pr=-10,ki.tween=_i,ti._props.push(di),1}}},Fu=[1,0,0,1,0,0],Rc={},Fd=function(ti){return ti==="matrix(1, 0, 0, 1, 0, 0)"||ti==="none"||!ti},Tf=function(ti){var si=zo(ti,qa);return Fd(si)?Fu:si.substr(7).match(Zi).map(Ws)},Ef=function(ti,si){var di,vi,_i,ki,$i=ti._gsap||go(ti),Vi=ti.style,sn=Tf(ti);return $i.svg&&ti.getAttribute("transform")?(sn=[(_i=ti.transform.baseVal.consolidate().matrix).a,_i.b,_i.c,_i.d,_i.e,_i.f]).join(",")==="1,0,0,1,0,0"?Fu:sn:(sn!==Fu||ti.offsetParent||ti===Lu||$i.svg||(_i=Vi.display,Vi.display="block",(di=ti.parentNode)&&ti.offsetParent||(ki=1,vi=ti.nextSibling,Lu.appendChild(ti)),sn=Tf(ti),_i?Vi.display=_i:Zc(ti,"display"),ki&&(vi?di.insertBefore(ti,vi):di?di.appendChild(ti):Lu.removeChild(ti))),si&&sn.length>6?[sn[0],sn[1],sn[4],sn[5],sn[12],sn[13]]:sn)},zd=function(ti,si,di,vi,_i,ki){var $i,Vi,sn,dn=ti._gsap,ln=_i||Ef(ti,!0),_n=dn.xOrigin||0,$n=dn.yOrigin||0,Ln=dn.xOffset||0,Sr=dn.yOffset||0,lr=ln[0],Gn=ln[1],mr=ln[2],rr=ln[3],ir=ln[4],Fr=ln[5],qr=si.split(" "),Jr=parseFloat(qr[0])||0,Wr=parseFloat(qr[1])||0;di?ln!==Fu&&(Vi=lr*rr-Gn*mr)&&(sn=Jr*(-Gn/Vi)+Wr*(lr/Vi)-(lr*Fr-Gn*ir)/Vi,Jr=Jr*(rr/Vi)+Wr*(-mr/Vi)+(mr*Fr-rr*ir)/Vi,Wr=sn):(Jr=($i=lc(ti)).x+(~qr[0].indexOf("%")?Jr/100*$i.width:Jr),Wr=$i.y+(~(qr[1]||qr[0]).indexOf("%")?Wr/100*$i.height:Wr)),vi||vi!==!1&&dn.smooth?(ir=Jr-_n,Fr=Wr-$n,dn.xOffset=Ln+(ir*lr+Fr*mr)-ir,dn.yOffset=Sr+(ir*Gn+Fr*rr)-Fr):dn.xOffset=dn.yOffset=0,dn.xOrigin=Jr,dn.yOrigin=Wr,dn.smooth=!!vi,dn.origin=si,dn.originIsAbsolute=!!di,ti.style[Wo]="0px 0px",ki&&(Ml(ki,dn,"xOrigin",_n,Jr),Ml(ki,dn,"yOrigin",$n,Wr),Ml(ki,dn,"xOffset",Ln,dn.xOffset),Ml(ki,dn,"yOffset",Sr,dn.yOffset)),ti.setAttribute("data-svg-origin",Jr+" "+Wr)},Bl=function(ti,si){var di=ti._gsap||new Ma(ti);if("x"in di&&!si&&!di.uncache)return di;var vi,_i,ki,$i,Vi,sn,dn,ln,_n,$n,Ln,Sr,lr,Gn,mr,rr,ir,Fr,qr,Jr,Wr,Ms,Ps,Xs,eo,oo,Cs,Zs,Io,Eo,pa,Ia,Da=ti.style,Ka=di.scaleX<0,wa=zo(ti,Wo)||"0";return vi=_i=ki=sn=dn=ln=_n=$n=Ln=0,$i=Vi=1,di.svg=!(!ti.getCTM||!$u(ti)),Gn=Ef(ti,di.svg),di.svg&&(Xs=(!di.uncache||wa==="0px 0px")&&!si&&ti.getAttribute("data-svg-origin"),zd(ti,Xs||wa,!!Xs||di.originIsAbsolute,di.smooth!==!1,Gn)),Sr=di.xOrigin||0,lr=di.yOrigin||0,Gn!==Fu&&(Fr=Gn[0],qr=Gn[1],Jr=Gn[2],Wr=Gn[3],vi=Ms=Gn[4],_i=Ps=Gn[5],Gn.length===6?($i=Math.sqrt(Fr*Fr+qr*qr),Vi=Math.sqrt(Wr*Wr+Jr*Jr),sn=Fr||qr?Ki(qr,Fr)*Ci:0,(_n=Jr||Wr?Ki(Jr,Wr)*Ci+sn:0)&&(Vi*=Math.abs(Math.cos(_n*Ui))),di.svg&&(vi-=Sr-(Sr*Fr+lr*Jr),_i-=lr-(Sr*qr+lr*Wr))):(Ia=Gn[6],Eo=Gn[7],Cs=Gn[8],Zs=Gn[9],Io=Gn[10],pa=Gn[11],vi=Gn[12],_i=Gn[13],ki=Gn[14],dn=(mr=Ki(Ia,Io))*Ci,mr&&(Xs=Ms*(rr=Math.cos(-mr))+Cs*(ir=Math.sin(-mr)),eo=Ps*rr+Zs*ir,oo=Ia*rr+Io*ir,Cs=Ms*-ir+Cs*rr,Zs=Ps*-ir+Zs*rr,Io=Ia*-ir+Io*rr,pa=Eo*-ir+pa*rr,Ms=Xs,Ps=eo,Ia=oo),ln=(mr=Ki(-Jr,Io))*Ci,mr&&(rr=Math.cos(-mr),pa=Wr*(ir=Math.sin(-mr))+pa*rr,Fr=Xs=Fr*rr-Cs*ir,qr=eo=qr*rr-Zs*ir,Jr=oo=Jr*rr-Io*ir),sn=(mr=Ki(qr,Fr))
86*Ci,mr&&(Xs=Fr*(rr=Math.cos(mr))+qr*(ir=Math.sin(mr)),eo=Ms*rr+Ps*ir,qr=qr*rr-Fr*ir,Ps=Ps*rr-Ms*ir,Fr=Xs,Ms=eo),dn&&Math.abs(dn)+Math.abs(sn)>359.9&&(dn=sn=0,ln=180-ln),$i=Ws(Math.sqrt(Fr*Fr+qr*qr+Jr*Jr)),Vi=Ws(Math.sqrt(Ps*Ps+Ia*Ia)),mr=Ki(Ms,Ps),_n=Math.abs(mr)>2e-4?mr*Ci:0,Ln=pa?1/(pa<0?-pa:pa):0),di.svg&&(Xs=ti.getAttribute("transform"),di.forceCSS=ti.setAttribute("transform","")||!Fd(zo(ti,qa)),Xs&&ti.setAttribute("transform",Xs))),Math.abs(_n)>90&&Math.abs(_n)<270&&(Ka?($i*=-1,_n+=sn<=0?180:-180,sn+=sn<=0?180:-180):(Vi*=-1,_n+=_n<=0?180:-180)),di.x=vi-((di.xPercent=vi&&(di.xPercent||(Math.round(ti.offsetWidth/2)===Math.round(-vi)?-50:0)))?ti.offsetWidth*di.xPercent/100:0)+"px",di.y=_i-((di.yPercent=_i&&(di.yPercent||(Math.round(ti.offsetHeight/2)===Math.round(-_i)?-50:0)))?ti.offsetHeight*di.yPercent/100:0)+"px",di.z=ki+"px",di.scaleX=Ws($i),di.scaleY=Ws(Vi),di.rotation=Ws(sn)+"deg",di.rotationX=Ws(dn)+"deg",di.rotationY=Ws(ln)+"deg",di.skewX=_n+"deg",di.skewY=$n+"deg",di.transformPerspective=Ln+"px",(di.zOrigin=parseFloat(wa.split(" ")[2])||0)&&(Da[Wo]=Bd(wa)),di.xOffset=di.yOffset=0,di.force3D=Ei.force3D,di.renderTransform=di.svg?Kc:zl?Ec:zh,di.uncache=0,di},Bd=function(ti){return(ti=ti.split(" "))[0]+" "+ti[1]},Yc=function(ti,si,di){var vi=Lo(si);return Ws(parseFloat(si)+parseFloat(Kl(ti,"x",di+"px",vi)))+vi},zh=function(ti,si){si.z="0px",si.rotationY=si.rotationX="0deg",si.force3D=0,Ec(ti,si)},Ec=function(ti,si){var di=si||this,vi=di.xPercent,_i=di.yPercent,ki=di.x,$i=di.y,Vi=di.z,sn=di.rotation,dn=di.rotationY,ln=di.rotationX,_n=di.skewX,$n=di.skewY,Ln=di.scaleX,Sr=di.scaleY,lr=di.transformPerspective,Gn=di.force3D,mr=di.target,rr=di.zOrigin,ir="",Fr=Gn==="auto"&&ti&&ti!==1||Gn===!0;if(rr&&(ln!=="0deg"||dn!=="0deg")){var qr,Jr=parseFloat(dn)*Ui,Wr=Math.sin(Jr),Ms=Math.cos(Jr);Jr=parseFloat(ln)*Ui,qr=Math.cos(Jr),ki=Yc(mr,ki,Wr*qr*-rr),$i=Yc(mr,$i,-Math.sin(Jr)*-rr),Vi=Yc(mr,Vi,Ms*qr*-rr+rr)}lr!=="0px"&&(ir+="perspective("+lr+") "),(vi||_i)&&(ir+="translate("+vi+"%, "+_i+"%) "),(Fr||ki!=="0px"||$i!=="0px"||Vi!=="0px")&&(ir+=Vi!=="0px"||Fr?"translate3d("+ki+", "+$i+", "+Vi+") ":"translate("+ki+", "+$i+") "),sn!=="0deg"&&(ir+="rotate("+sn+") "),dn!=="0deg"&&(ir+="rotateY("+dn+") "),ln!=="0deg"&&(ir+="rotateX("+ln+") "),_n==="0deg"&&$n==="0deg"||(ir+="skew("+_n+", "+$n+") "),Ln===1&&Sr===1||(ir+="scale("+Ln+", "+Sr+") "),mr.style[qa]=ir||"translate(0, 0)"},Kc=function(ti,si){var di,vi,_i,ki,$i,Vi=si||this,sn=Vi.xPercent,dn=Vi.yPercent,ln=Vi.x,_n=Vi.y,$n=Vi.rotation,Ln=Vi.skewX,Sr=Vi.skewY,lr=Vi.scaleX,Gn=Vi.scaleY,mr=Vi.target,rr=Vi.xOrigin,ir=Vi.yOrigin,Fr=Vi.xOffset,qr=Vi.yOffset,Jr=Vi.forceCSS,Wr=parseFloat(ln),Ms=parseFloat(_n);$n=parseFloat($n),Ln=parseFloat(Ln),(Sr=parseFloat(Sr))&&(Ln+=Sr=parseFloat(Sr),$n+=Sr),$n||Ln?($n*=Ui,Ln*=Ui,di=Math.cos($n)*lr,vi=Math.sin($n)*lr,_i=Math.sin($n-Ln)*-Gn,ki=Math.cos($n-Ln)*Gn,Ln&&(Sr*=Ui,$i=Math.tan(Ln-Sr),_i*=$i=Math.sqrt(1+$i*$i),ki*=$i,Sr&&($i=Math.tan(Sr),di*=$i=Math.sqrt(1+$i*$i),vi*=$i)),di=Ws(di),vi=Ws(vi),_i=Ws(_i),ki=Ws(ki)):(di=lr,ki=Gn,vi=_i=0),(Wr&&!~(ln+"").indexOf("px")||Ms&&!~(_n+"").indexOf("px"))&&(Wr=Kl(mr,"x",ln,"px"),Ms=Kl(mr,"y",_n,"px")),(rr||ir||Fr||qr)&&(Wr=Ws(Wr+rr-(rr*di+ir*_i)+Fr),Ms=Ws(Ms+ir-(rr*vi+ir*ki)+qr)),(sn||dn)&&($i=mr.getBBox(),Wr=Ws(Wr+sn/100*$i.width),Ms=Ws(Ms+dn/100*$i.height)),$i="matrix("+di+","+vi+","+_i+","+ki+","+Wr+","+Ms+")",mr.setAttribute("transform",$i),Jr&&(mr.style[qa]=$i)},dd=function(ti,si,di,vi,_i,ki){var $i,Vi,sn=cn(_i),dn=parseFloat(_i)*(sn&&~_i.indexOf("rad")?Ci:1),ln=ki?dn*ki:dn-vi,_n=vi+ln+"deg";return sn&&(($i=_i.split("_")[1])==="short"&&(ln%=360)!==ln%180&&(ln+=ln<0?360:-360),$i==="cw"&&ln<0?ln=(ln+36e9)%360-360*~~(ln/360):$i==="ccw"&&ln>0&&(ln=(ln-36e9)%360-360*~~(ln/360))),ti._pt=Vi=new xl(ti._pt,si,di,vi,ln,Br),Vi.e=_n,Vi.u="deg",ti._props.push(di),Vi},ch=function(ti,si){for(var di in si)ti[di]=si[di];return ti},sm=function(ti,si,di){var vi,_i,ki,$i,Vi,sn,dn,ln=ch({},di._gsap),_n=di.style;for(_i in ln.svg?(ki=di.getAttribute("transform"),di.setAttribute("transform",""),_n[qa]=si,vi=Bl(di,1),Zc(di,qa),di.setAttribute("transform",ki)):(ki=getComputedStyle(di)[qa],_n[qa]=si,vi=Bl(di,1),_n[qa]=ki),pi)(ki=ln[_i])!==($i=vi[_i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(_i)<0&&(Vi=Lo(ki)!==(dn=Lo($i))?Kl(di,_i,ki,dn):parseFloat(ki),sn=parseFloat($i),ti._pt=new xl(ti._pt,vi,_i,Vi,sn-Vi,Kn),ti._pt.u=dn||0,ti._props.push(_i));ch(vi,ln)};no("padding,margin,Width,Radius",function(ti,si){var di="Top",vi="Right",_i="Bottom",ki="Left",$i=(si<3?[di,vi,_i,ki]:[di+ki,di+vi,_i+vi,_i+ki]).map(function(Vi){return si<2?ti+Vi:"border"+Vi+ti});xa[si>1?"border"+ti:ti]=function(Vi,sn,dn,ln,_n){var $n,Ln;if(arguments.length<4)return $n=$i.map(function(Sr){return Tc(Vi,Sr,dn)}),(Ln=$n.join(" ")).split($n[0]).length===5?$n[0]:Ln;$n=(ln+"").split(" "),Ln={}
86,$i.forEach(function(Sr,lr){return Ln[Sr]=$n[lr]=$n[lr]||$n[(lr-1)/2|0]}),Vi.init(sn,Ln,_n)}});var Nd,Ku,Jl={name:"css",register:ud,targetTest:function(ti){return ti.style&&ti.nodeType},init:function(ti,si,di,vi,_i){var ki,$i,Vi,sn,dn,ln,_n,$n,Ln,Sr,lr,Gn,mr,rr,ir,Fr,qr,Jr,Wr,Ms=this._props,Ps=ti.style,Xs=di.vars.startAt;for(_n in ac||ud(),si)if(_n!=="autoRound"&&($i=si[_n],!Cr[_n]||!pp(_n,si,di,vi,ti,_i))){if(dn=typeof $i,ln=xa[_n],dn==="function"&&(dn=typeof($i=$i.call(di,vi,ti,_i))),dn==="string"&&~$i.indexOf("random(")&&($i=xu($i)),ln)ln(this,ti,_n,$i,di)&&(ir=1);else if(_n.substr(0,2)==="--")ki=(getComputedStyle(ti).getPropertyValue(_n)+"").trim(),$i+="",il.lastIndex=0,il.test(ki)||($n=Lo(ki),Ln=Lo($i)),Ln?$n!==Ln&&(ki=Kl(ti,_n,ki,Ln)+Ln):$n&&($i+=$n),this.add(Ps,"setProperty",ki,$i,vi,_i,0,0,_n),Ms.push(_n);else if(dn!=="undefined"){if(Xs&&_n in Xs?(ki=typeof Xs[_n]=="function"?Xs[_n].call(di,vi,ti,_i):Xs[_n],cn(ki)&&~ki.indexOf("random(")&&(ki=xu(ki)),Lo(ki+"")||(ki+=Ei.units[_n]||Lo(Tc(ti,_n))||""),(ki+"").charAt(1)==="="&&(ki=Tc(ti,_n))):ki=Tc(ti,_n),sn=parseFloat(ki),(Sr=dn==="string"&&$i.charAt(1)==="="?+($i.charAt(0)+"1"):0)&&($i=$i.substr(2)),Vi=parseFloat($i),_n in ur&&(_n==="autoAlpha"&&(sn===1&&Tc(ti,"visibility")==="hidden"&&Vi&&(sn=0),Ml(this,Ps,"visibility",sn?"inherit":"hidden",Vi?"inherit":"hidden",!Vi)),_n!=="scale"&&_n!=="transform"&&~(_n=ur[_n]).indexOf(",")&&(_n=_n.split(",")[0])),lr=_n in pi)if(Gn||((mr=ti._gsap).renderTransform&&!si.parseTransform||Bl(ti,si.parseTransform),rr=si.smoothOrigin!==!1&&mr.smooth,(Gn=this._pt=new xl(this._pt,Ps,qa,0,1,mr.renderTransform,mr,0,-1)).dep=1),_n==="scale")this._pt=new xl(this._pt,mr,"scaleY",mr.scaleY,(Sr?Sr*Vi:Vi-mr.scaleY)||0),Ms.push("scaleY",_n),_n+="X";else{if(_n==="transformOrigin"){qr=void 0,Jr=void 0,Wr=void 0,qr=(Fr=$i).split(" "),Jr=qr[0],Wr=qr[1]||"50%",Jr!=="top"&&Jr!=="bottom"&&Wr!=="left"&&Wr!=="right"||(Fr=Jr,Jr=Wr,Wr=Fr),qr[0]=Xp[Jr]||Jr,qr[1]=Xp[Wr]||Wr,$i=qr.join(" "),mr.svg?zd(ti,$i,0,rr,0,this):((Ln=parseFloat($i.split(" ")[2])||0)!==mr.zOrigin&&Ml(this,mr,"zOrigin",mr.zOrigin,Ln),Ml(this,Ps,_n,Bd(ki),Bd($i)));continue}if(_n==="svgOrigin"){zd(ti,$i,1,rr,0,this);continue}if(_n in Rc){dd(this,mr,_n,sn,$i,Sr);continue}if(_n==="smoothOrigin"){Ml(this,mr,"smooth",mr.smooth,$i);continue}if(_n==="force3D"){mr[_n]=$i;continue}if(_n==="transform"){sm(this,$i,ti);continue}}else _n in Ps||(_n=hu(_n)||_n);if(lr||(Vi||Vi===0)&&(sn||sn===0)&&!An.test($i)&&_n in Ps)Vi||(Vi=0),($n=(ki+"").substr((sn+"").length))!==(Ln=Lo($i)||(_n in Ei.units?Ei.units[_n]:$n))&&(sn=Kl(ti,_n,ki,Ln)),this._pt=new xl(this._pt,lr?mr:Ps,_n,sn,Sr?Sr*Vi:Vi-sn,lr||Ln!=="px"&&_n!=="zIndex"||si.autoRound===!1?Kn:ps),this._pt.u=Ln||0,$n!==Ln&&Ln!=="%"&&(this._pt.b=ki,this._pt.r=ls);else if(_n in Ps)pu.call(this,ti,_n,ki,$i);else{if(!(_n in ti)){Ue(_n,$i);continue}this.add(ti,_n,ki||ti[_n],$i,vi,_i)}Ms.push(_n)}}ir&&$h(this)},get:Tc,aliases:ur,getSetter:function(ti,si,di){var vi=ur[si];return vi&&vi.indexOf(",")<0&&(si=vi),si in pi&&si!==Wo&&(ti._gsap.x||Tc(ti,"x"))?di&&$d===di?si==="scale"?Dl:Vo:($d=di||{})&&(si==="scale"?Wa:Sc):ti.style&&!Cn(ti.style[si])?co:~si.indexOf("-")?Fo:Wp(ti,si)},core:{_removeProperty:Zc,_getMatrix:Ef}};du.utils.checkPrefix=hu,Ku=no("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(Nd="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(ti){pi[ti]=1}),no(Nd,function(ti){Ei.units[ti]="deg",Rc[ti]=1}),ur[Ku[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Nd,no("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(ti){var si=ti.split(":");ur[si[1]]=Ku[si[0]]}),no("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(ti){Ei.units[ti]="px"}),du.registerPlugin(Jl);var Jc,Vd,gp,nr=du.registerPlugin(Jl)||du,Ir=nr.core.Tween,Yr=function(){return Jc||typeof window<"u"&&(Jc=window.gsap)&&Jc.registerPlugin&&Jc},is=function(ti){Jc=Yr(),(gp=Jc&&Jc.parseEase("_CE"))?(Vd=1,Jc.parseEase("bounce").config=function(si){return typeof si=="object"?Ar("",si):Ar("bounce("+si+")",{strength:+si})}):ti&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")},Un=function(ti){var si,di=ti.length,vi=1/ti[di-2];for(si=2;si<di;si+=2)ti[si]=~~(ti[si]*vi*1e3)/1e3;ti[di-2]=1},Ar=function(ti,si){Vd||is(1),si=si||{};var di,vi,_i,ki,$i,Vi,sn,dn=Math.min(.999,si.strength||.7),ln=dn,_n=(si.squash||0)/100,$n=_n,Ln=1/.03,Sr=.2,lr=1,Gn=.1,mr=[0,0,.07,0,.1,1,.1,1],rr=[0,0,0,0,.1,0,.1,0];for($i=0;$i<200&&(Vi=Gn+(Sr*=ln*((ln+1)/2)),ki=1-(lr*=dn*dn),vi=(_i=Gn+.49*Sr)+.8*(_i-(di=Gn+lr/Ln)),_n&&(Gn+=_n,di+=_n,_i+=_n,vi+=_n,Vi+=_n,sn=_n/$n,rr.push(Gn-_n,0,Gn-_n,sn,Gn-_n/2,sn,Gn,sn,Gn,0,Gn,0,Gn,-.6*sn,Gn+(Vi-Gn)/6,0,Vi,0),mr.push(Gn-_n,1,Gn,1,Gn,1),_n*=dn*dn),mr.push(Gn,1,di,ki,_i,ki,vi,ki,Vi,1,Vi,1),dn*=.95,Ln=lr/(Vi-vi),Gn=Vi,!(ki>.999));$i++);if(si.endAtStart&&si.endAtStart!=="false"){if(_i=-.1,mr.unshift(_i,1,_i,1,-.07,0),$n)for(_i-=_n=2.5*$n,mr.unshift(_i,1,_i,1,_i,1),rr.splice(0,6),rr.unshift(_i,0,_i,0,_i,1,_i+_n/2,1,_i+_n,1,_i+_n,0,_i+_n,0,_i+_n,-.6,_i+_n+.033,0),$i=0;$i<rr.length;
86$i+=2)rr[$i]-=_i;for($i=0;$i<mr.length;$i+=2)mr[$i]-=_i,mr[$i+1]=1-mr[$i+1]}return _n&&(Un(rr),rr[2]="C"+rr[2],gp(si.squashID||ti+"-squash","M"+rr.join(","))),Un(mr),mr[2]="C"+mr[2],gp(ti,"M"+mr.join(","))},Tr=function(){function ti(si,di){this.ease=Ar(si,di)}return ti.create=function(si,di){return Ar(si,di)},ti.register=function(si){Jc=si,is()},ti}();/*!
87 * CustomBounce 3.9.1
88 * https://greensock.com
89 *
90 * @license Copyright 2008-2021, GreenSock. All rights reserved.
91 * Subject to the terms at https://greensock.com/standard-license or for
92 * Club GreenSock members, the agreement issued with that membership.
93 * @author: Jack Doyle, [email protected]
94*/Yr()&&Jc.registerPlugin(Tr),Tr.version="3.9.1";/*!
95 * paths 3.9.1
96 * https://greensock.com
97 *
98 * Copyright 2008-2021, GreenSock. All rights reserved.
99 * Subject to the terms at https://greensock.com/standard-license or for
100 * Club GreenSock members, the agreement issued with that membership.
101 * @author: Jack Doyle, [email protected]
102*/var fs=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,ws=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,yo=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,vo=/(^[#\.][a-z]|[a-y][a-z])/i,uo=Math.PI/180,ua=180/Math.PI,To=Math.sin,Ho=Math.cos,Oa=Math.abs,Xa=Math.sqrt,Nl=Math.atan2,Oc=function(ti){return typeof ti=="string"},Ql=function(ti){return typeof ti=="number"},Bo={},Ju={},yp=function(ti){return Math.round((ti+1e8)%1*1e5)/1e5||(ti<0?0:1)},da=function(ti){return Math.round(1e5*ti)/1e5||0},Bh=function(ti){return Math.round(1e10*ti)/1e10||0},vp=function(ti,si,di,vi){var _i=ti[si],ki=vi===1?6:Qu(_i,di,vi);if(ki&&ki+di+2<_i.length)return ti.splice(si,0,_i.slice(0,di+ki+2)),_i.splice(0,di+ki),1},Cf=function(ti,si,di){var vi=ti.length,_i=~~(di*vi);if(ti[_i]>si)for(;--_i&&ti[_i]>si;);else for(;ti[++_i]<si&&_i<vi;);return _i<vi?_i:vi-1},Nh=function(ti,si){return si.totalLength=ti.totalLength,ti.samples?(si.samples=ti.samples.slice(0),si.lookup=ti.lookup.slice(0),si.minLength=ti.minLength,si.resolution=ti.resolution):ti.totalPoints&&(si.totalPoints=ti.totalPoints),si},la=function(ti,si){var di=ti.length,vi=ti[di-1]||[],_i=vi.length;di&&si[0]===vi[_i-2]&&si[1]===vi[_i-1]&&(si=vi.concat(si.slice(2)),di--),ti[di]=si};function hd(ti){var si,di=(ti=Oc(ti)&&vo.test(ti)&&document.querySelector(ti)||ti).getAttribute?ti:0;return di&&(ti=ti.getAttribute("d"))?(di._gsPath||(di._gsPath={}),(si=di._gsPath[ti])&&!si._dirty?si:di._gsPath[ti]=ed(ti)):ti?Oc(ti)?ed(ti):Ql(ti[0])?[ti]:ti:console.warn("Expecting a <path> element or an SVG path data string")}function jm(ti){var si,di=0;for(ti.reverse();di<ti.length;di+=2)si=ti[di],ti[di]=ti[di+1],ti[di+1]=si;ti.reversed=!ti.reversed}var _p={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function bp(ti,si){var di,vi,_i,ki,$i,Vi,sn,dn,ln,_n,$n,Ln,Sr,lr,Gn,mr,rr,ir,Fr,qr,Jr,Wr,Ms=ti.tagName.toLowerCase(),Ps=.552284749831;return Ms!=="path"&&ti.getBBox?(Vi=function(Xs,eo){var oo,Cs=document.createElementNS("http://www.w3.org/2000/svg","path"),Zs=[].slice.call(Xs.attributes),Io=Zs.length;for(eo=","+eo+",";--Io>-1;)oo=Zs[Io].nodeName.toLowerCase(),eo.indexOf(","+oo+",")<0&&Cs.setAttributeNS(null,oo,Zs[Io].nodeValue);return Cs}(ti,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),Wr=function(Xs,eo){for(var oo=eo?eo.split(","):[],Cs={},Zs=oo.length;--Zs>-1;)Cs[oo[Zs]]=+Xs.getAttribute(oo[Zs])||0;return Cs}(ti,_p[Ms]),Ms==="rect"?(ki=Wr.rx,$i=Wr.ry||ki,vi=Wr.x,_i=Wr.y,_n=Wr.width-2*ki,$n=Wr.height-2*$i,di=ki||$i?"M"+(mr=(lr=(Sr=vi+ki)+_n)+ki)+","+(ir=_i+$i)+" V"+(Fr=ir+$n)+" C"+[mr,qr=Fr+$i*Ps,Gn=lr+ki*Ps,Jr=Fr+$i,lr,Jr,lr-(lr-Sr)/3,Jr,Sr+(lr-Sr)/3,Jr,Sr,Jr,Ln=vi+ki*(1-Ps),Jr,vi,qr,vi,Fr,vi,Fr-(Fr-ir)/3,vi,ir+(Fr-ir)/3,vi,ir,vi,rr=_i+$i*(1-Ps),Ln,_i,Sr,_i,Sr+(lr-Sr)/3,_i,lr-(lr-Sr)/3,_i,lr,_i,Gn,_i,mr,rr,mr,ir].join(",")+"z":"M"+(vi+_n)+","+_i+" v"+$n+" h"+-_n+" v"+-$n+" h"+_n+"z"):Ms==="circle"||Ms==="ellipse"?(Ms==="circle"?dn=(ki=$i=Wr.r)*Ps:(ki=Wr.rx,dn=($i=Wr.ry)*Ps),di="M"+((vi=Wr.cx)+ki)+","+(_i=Wr.cy)+" C"+[vi+ki,_i+dn,vi+(sn=ki*Ps),_i+$i,vi,_i+$i,vi-sn,_i+$i,vi-ki,_i+dn,vi-ki,_i,vi-ki,_i-dn,vi-sn,_i-$i,vi,_i-$i,vi+sn,_i-$i,vi+ki,_i-dn,vi+ki,_i].join(",")+"z"):Ms==="line"?di="M"+Wr.x1+","+Wr.y1+" L"+Wr.x2+","+Wr.y2:Ms!=="polyline"&&Ms!=="polygon"||(di="M"+(vi=(ln=(ti.getAttribute("points")+"").match(ws)||[]).shift())+","+(_i=ln.shift())+" L"+ln.join(","),Ms==="pol
102ygon"&&(di+=","+vi+","+_i+"z")),Vi.setAttribute("d",Ys(Vi._gsRawPath=ed(di))),si&&ti.parentNode&&(ti.parentNode.insertBefore(Vi,ti),ti.parentNode.removeChild(ti)),Vi):ti}function om(ti,si,di){var vi,_i=ti[si],ki=ti[si+2],$i=ti[si+4];return _i+=(ki-_i)*di,_i+=((ki+=($i-ki)*di)-_i)*di,vi=ki+($i+(ti[si+6]-$i)*di-ki)*di-_i,_i=ti[si+1],_i+=((ki=ti[si+3])-_i)*di,_i+=((ki+=(($i=ti[si+5])-ki)*di)-_i)*di,da(Nl(ki+($i+(ti[si+7]-$i)*di-ki)*di-_i,vi)*ua)}function Vh(ti,si,di){di=di===void 0?1:Bh(di)||0,si=Bh(si)||0;var vi=Math.max(0,~~(Oa(di-si)-1e-8)),_i=function(Ps){for(var Xs=[],eo=0;eo<Ps.length;eo++)Xs[eo]=Nh(Ps[eo],Ps[eo].slice(0));return Nh(Ps,Xs)}(ti);if(si>di&&(si=1-si,di=1-di,function(Ps,Xs){var eo=Ps.length;for(Xs||Ps.reverse();eo--;)Ps[eo].reversed||jm(Ps[eo])}(_i),_i.totalLength=0),si<0||di<0){var ki=Math.abs(~~Math.min(si,di))+1;si+=ki,di+=ki}_i.totalLength||pd(_i);var $i,Vi,sn,dn,ln,_n,$n,Ln,Sr=di>1,lr=Ud(_i,si,Bo,!0),Gn=Ud(_i,di,Ju),mr=Gn.segment,rr=lr.segment,ir=Gn.segIndex,Fr=lr.segIndex,qr=Gn.i,Jr=lr.i,Wr=Fr===ir,Ms=qr===Jr&&Wr;if(Sr||vi){for($i=ir<Fr||Wr&&qr<Jr||Ms&&Gn.t<lr.t,vp(_i,Fr,Jr,lr.t)&&(Fr++,$i||(ir++,Ms?(Gn.t=(Gn.t-lr.t)/(1-lr.t),qr=0):Wr&&(qr-=Jr))),Math.abs(1-(di-si))<1e-5?ir=Fr-1:!Gn.t&&ir?ir--:vp(_i,ir,qr,Gn.t)&&$i&&Fr++,lr.t===1&&(Fr=(Fr+1)%_i.length),ln=[],$n=1+(_n=_i.length)*vi,Ln=Fr,$n+=(_n-Fr+ir)%_n,dn=0;dn<$n;dn++)la(ln,_i[Ln++%_n]);_i=ln}else if(sn=Gn.t===1?6:Qu(mr,qr,Gn.t),si!==di)for(Vi=Qu(rr,Jr,Ms?lr.t/Gn.t:lr.t),Wr&&(sn+=Vi),mr.splice(qr+sn+2),(Vi||Jr)&&rr.splice(0,Jr+Vi),dn=_i.length;dn--;)(dn<Fr||dn>ir)&&_i.splice(dn,1);else mr.angle=om(mr,qr+sn,0),lr=mr[qr+=sn],Gn=mr[qr+1],mr.length=mr.totalLength=0,mr.totalPoints=_i.totalPoints=8,mr.push(lr,Gn,lr,Gn,lr,Gn,lr,Gn);return _i.totalLength=0,_i}function Hd(ti,si,di){si=si||0,ti.samples||(ti.samples=[],ti.lookup=[]);var vi,_i,ki,$i,Vi,sn,dn,ln,_n,$n,Ln,Sr,lr,Gn,mr,rr,ir,Fr=~~ti.resolution||12,qr=1/Fr,Jr=di?si+6*di+1:ti.length,Wr=ti[si],Ms=ti[si+1],Ps=si?si/6*Fr:0,Xs=ti.samples,eo=ti.lookup,oo=(si?ti.minLength:1e8)||1e8,Cs=Xs[Ps+di*Fr-1],Zs=si?Xs[Ps-1]:0;for(Xs.length=eo.length=0,_i=si+2;_i<Jr;_i+=6){if(ki=ti[_i+4]-Wr,$i=ti[_i+2]-Wr,Vi=ti[_i]-Wr,ln=ti[_i+5]-Ms,_n=ti[_i+3]-Ms,$n=ti[_i+1]-Ms,sn=dn=Ln=Sr=0,Oa(ki)<.01&&Oa(ln)<.01&&Oa(Vi)+Oa($n)<.01)ti.length>8&&(ti.splice(_i,6),_i-=6,Jr-=6);else for(vi=1;vi<=Fr;vi++)sn=dn-(dn=((Gn=qr*vi)*Gn*ki+3*(lr=1-Gn)*(Gn*$i+lr*Vi))*Gn),Ln=Sr-(Sr=(Gn*Gn*ln+3*lr*(Gn*_n+lr*$n))*Gn),(rr=Xa(Ln*Ln+sn*sn))<oo&&(oo=rr),Zs+=rr,Xs[Ps++]=Zs;Wr+=ki,Ms+=ln}if(Cs)for(Cs-=Zs;Ps<Xs.length;Ps++)Xs[Ps]+=Cs;if(Xs.length&&oo){if(ti.totalLength=ir=Xs[Xs.length-1]||0,ti.minLength=oo,ir/oo<9999)for(rr=mr=0,vi=0;vi<ir;vi+=oo)eo[rr++]=Xs[mr]<vi?++mr:mr}else ti.totalLength=Xs[0]=0;return si?Zs-Xs[si/2-1]:Zs}function pd(ti,si){var di,vi,_i;for(_i=di=vi=0;_i<ti.length;_i++)ti[_i].resolution=~~si||12,vi+=ti[_i].length,di+=Hd(ti[_i]);return ti.totalPoints=vi,ti.totalLength=di,ti}function Qu(ti,si,di){if(di<=0||di>=1)return 0;var vi=ti[si],_i=ti[si+1],ki=ti[si+2],$i=ti[si+3],Vi=ti[si+4],sn=ti[si+5],dn=vi+(ki-vi)*di,ln=ki+(Vi-ki)*di,_n=_i+($i-_i)*di,$n=$i+(sn-$i)*di,Ln=dn+(ln-dn)*di,Sr=_n+($n-_n)*di,lr=Vi+(ti[si+6]-Vi)*di,Gn=sn+(ti[si+7]-sn)*di;return ln+=(lr-ln)*di,$n+=(Gn-$n)*di,ti.splice(si+2,4,da(dn),da(_n),da(Ln),da(Sr),da(Ln+(ln-Ln)*di),da(Sr+($n-Sr)*di),da(ln),da($n),da(lr),da(Gn)),ti.samples&&ti.samples.splice(si/6*ti.resolution|0,0,0,0,0,0,0,0),6}function Ud(ti,si,di,vi){di=di||{},ti.totalLength||pd(ti),(si<0||si>1)&&(si=yp(si));var _i,ki,$i,Vi,sn,dn,ln,_n=0,$n=ti[0];if(si)if(si===1)ln=1,dn=($n=ti[_n=ti.length-1]).length-8;else{if(ti.length>1){for($i=ti.totalLength*si,sn=dn=0;(sn+=ti[dn++].totalLength)<$i;)_n=dn;si=($i-(Vi=sn-($n=ti[_n]).totalLength))/(sn-Vi)||0}_i=$n.samples,ki=$n.resolution,$i=$n.totalLength*si,Vi=(dn=$n.lookup.length?$n.lookup[~~($i/$n.minLength)]||0:Cf(_i,$i,si))?_i[dn-1]:0,(sn=_i[dn])<$i&&(Vi=sn,sn=_i[++dn]),ln=1/ki*(($i-Vi)/(sn-Vi)+dn%ki),dn=6*~~(dn/ki),vi&&ln===1&&(dn+6<$n.length?(dn+=6,ln=0):_n+1<ti.length&&(dn=ln=0,$n=ti[++_n]))}else ln=dn=_n=0,$n=ti[0];return di.t=ln,di.i=dn,di.path=ti,di.segment=$n,di.segIndex=_n,di}function xp(ti,si,di,vi){var _i,ki,$i,Vi,sn,dn,ln,_n,$n,Ln=ti[0],Sr=vi||{};if((si<0||si>1)&&(si=yp(si)),ti.length>1){for($i=ti.totalLength*si,sn=dn=0;(sn+=ti[dn++].totalLength)<$i;)Ln=ti[dn];si=($i-(Vi=sn-Ln.totalLength))/(sn-Vi)||0}return _i=Ln.samples,ki=Ln.resolution,$i=Ln.totalLength*si,Vi=(dn=Ln.lookup.length?Ln.lookup[si<1?~~($i/Ln.minLength):Ln.lookup.length-1]||0:Cf(_i,$i,si))?_i[dn-1]:0,(sn=_i[dn])<$i&&(Vi=sn,sn=_i[++dn]),$n=1-(ln=1/ki*(($i-Vi)/(sn-Vi)+dn%ki)||0),_n=Ln[dn=6*~~(dn/ki)],Sr.x=da((ln*ln*(Ln[dn+6]-_n)+3*$n*(l
vendor: 1,234 bytes, line 102
102n*(Ln[dn+4]-_n)+$n*(Ln[dn+2]-_n)))*ln+_n),Sr.y=da((ln*ln*(Ln[dn+7]-(_n=Ln[dn+1]))+3*$n*(ln*(Ln[dn+5]-_n)+$n*(Ln[dn+3]-_n)))*ln+_n),di&&(Sr.angle=Ln.totalLength?om(Ln,dn,ln>=1?1-1e-9:ln||1e-9):Ln.angle||0),Sr}function Hh(ti,si,di,vi,_i,ki,$i){for(var Vi,sn,dn,ln,_n,$n=ti.length;--$n>-1;)for(sn=(Vi=ti[$n]).length,dn=0;dn<sn;dn+=2)ln=Vi[dn],_n=Vi[dn+1],Vi[dn]=ln*si+_n*vi+ki,Vi[dn+1]=ln*di+_n*_i+$i;return ti._dirty=1,ti}function Af(ti,si,di,vi,_i,ki,$i,Vi,sn){if(ti!==Vi||si!==sn){di=Oa(di),vi=Oa(vi);var dn=_i%360*uo,ln=Ho(dn),_n=To(dn),$n=Math.PI,Ln=2*$n,Sr=(ti-Vi)/2,lr=(si-sn)/2,Gn=ln*Sr+_n*lr,mr=-_n*Sr+ln*lr,rr=Gn*Gn,ir=mr*mr,Fr=rr/(di*di)+ir/(vi*vi);Fr>1&&(di=Xa(Fr)*di,vi=Xa(Fr)*vi);var qr=di*di,Jr=vi*vi,Wr=(qr*Jr-qr*ir-Jr*rr)/(qr*ir+Jr*rr);Wr<0&&(Wr=0);var Ms=(ki===$i?-1:1)*Xa(Wr),Ps=Ms*(di*mr/vi),Xs=Ms*(-vi*Gn/di),eo=(ti+Vi)/2+(ln*Ps-_n*Xs),oo=(si+sn)/2+(_n*Ps+ln*Xs),Cs=(Gn-Ps)/di,Zs=(mr-Xs)/vi,Io=(-Gn-Ps)/di,Eo=(-mr-Xs)/vi,pa=Cs*Cs+Zs*Zs,Ia=(Zs<0?-1:1)*Math.acos(Cs/Xa(pa)),Da=(Cs*Eo-Zs*Io<0?-1:1)*Math.acos((Cs*Io+Zs*Eo)/Xa(pa*(Io*Io+Eo*Eo)));isNaN(Da)&&(Da=$n),!$i&&Da>0?Da-=Ln:$i&&Da<0&&(Da+=Ln),Ia%=Ln,Da%=Ln;var Ka,wa=Math.ceil(Oa(Da)/(Ln/4)),fl=[],Tl=Da/wa,Ll=4/3*To(Tl/2)/(1+Ho(Tl/2)),Ca=ln*di,dc=_n*di,$p=_n*-v
102i,Xl=ln*vi;for(Ka=0;Ka<wa;Ka++)Gn=Ho(_i=Ia+Ka*Tl),mr=To(_i),Cs=Ho(_i+=Tl),Zs=To(_i),fl.push(Gn-Ll*mr,mr+Ll*Gn,Cs+Ll*Zs,Zs-Ll*Cs,Cs,Zs);for(Ka=0;Ka<fl.length;Ka+=2)Gn=fl[Ka],mr=fl[Ka+1],fl[Ka]=Gn*Ca+mr*$p+eo,fl[Ka+1]=Gn*dc+mr*Xl+oo;return fl[Ka-2]=Vi,fl[Ka-1]=sn,fl}}function ed(ti){var si,di,vi,_i,ki,$i,Vi,sn,dn,ln,_n,$n,Ln,Sr,lr,Gn=(ti+"").replace(yo,function(Ms){var Ps=+Ms;return Ps<1e-4&&Ps>-1e-4?0:Ps}).match(fs)||[],mr=[],rr=0,ir=0,Fr=Gn.length,qr=0,Jr="ERROR: malformed path: "+ti,Wr=function(Ms,Ps,Xs,eo){ln=(Xs-Ms)/3,_n=(eo-Ps)/3,Vi.push(Ms+ln,Ps+_n,Xs-ln,eo-_n,Xs,eo)};if(!ti||!isNaN(Gn[0])||isNaN(Gn[1]))return console.log(Jr),mr;for(si=0;si<Fr;si++)if(Ln=ki,isNaN(Gn[si])?$i=(ki=Gn[si].toUpperCase())!==Gn[si]:si--,vi=+Gn[si+1],_i=+Gn[si+2],$i&&(vi+=rr,_i+=ir),si||(sn=vi,dn=_i),ki==="M")Vi&&(Vi.length<8?mr.length-=1:qr+=Vi.length),rr=sn=vi,ir=dn=_i,Vi=[vi,_i],mr.push(Vi),si+=2,ki="L";else if(ki==="C")Vi||(Vi=[0,0]),$i||(rr=ir=0),Vi.push(vi,_i,rr+1*Gn[si+3],ir+1*Gn[si+4],rr+=1*Gn[si+5],ir+=1*Gn[si+6]),si+=6;else if(ki==="S")ln=rr,_n=ir,Ln!=="C"&&Ln!=="S"||(ln+=rr-Vi[Vi.length-4],_n+=ir-Vi[Vi.length-3]),$i||(rr=ir=0),Vi.push(ln,_n,vi,_i,rr+=1*Gn[si+3],ir+=1*Gn[si+4]),si+=4;else if(ki==="Q")ln=rr+2/3*(vi-rr),_n=ir+2/3*(_i-ir),$i||(rr=ir=0),rr+=1*Gn[si+3],ir+=1*Gn[si+4],Vi.push(ln,_n,rr+2/3*(vi-rr),ir+2/3*(_i-ir),rr,ir),si+=4;else if(ki==="T")ln=rr-Vi[Vi.length-4],_n=ir-Vi[Vi.length-3],Vi.push(rr+ln,ir+_n,vi+2/3*(rr+1.5*ln-vi),_i+2/3*(ir+1.5*_n-_i),rr=vi,ir=_i),si+=2;else if(ki==="H")Wr(rr,ir,rr=vi,ir),si+=1;else if(ki==="V")Wr(rr,ir,rr,ir=vi+($i?ir-rr:0)),si+=1;else if(ki==="L"||ki==="Z")ki==="Z"&&(vi=sn,_i=dn,Vi.closed=!0),(ki==="L"||Oa(rr-vi)>.5||Oa(ir-_i)>.5)&&(Wr(rr,ir,vi,_i),ki==="L"&&(si+=2)),rr=vi,ir=_i;else if(ki==="A"){if(Sr=Gn[si+4],lr=Gn[si+5],ln=Gn[si+6],_n=Gn[si+7],di=7,Sr.length>1&&(Sr.length<3?(_n=ln,ln=lr,di--):(_n=lr,ln=Sr.substr(2),di-=2),lr=Sr.charAt(1),Sr=Sr.charAt(0)),$n=Af(rr,ir,+Gn[si+1],+Gn[si+2],+Gn[si+3],+Sr,+lr,($i?rr:0)+1*ln,($i?ir:0)+1*_n),si+=di,$n)for(di=0;di<$n.length;di++)Vi.push($n[di]);rr=Vi[Vi.length-2],ir=Vi[Vi.length-1]}else console.log(Jr);return(si=Vi.length)<6?(mr.pop(),si=0):Vi[0]===Vi[si-2]&&Vi[1]===Vi[si-1]&&(Vi.closed=!0),mr.totalPoints=qr+si,mr}function wp(ti,si){si===void 0&&(si=1);for(var di=ti[0],vi=0,_i=[di,vi],ki=2;ki<ti.length;ki+=2)_i.push(di,vi,ti[ki],vi=(ti[ki]-di)*si/2,di=ti[ki],-vi);return _i}function Uh(ti,si,di){Oa(ti[0]-ti[2])<1e-4&&Oa(ti[1]-ti[3])<1e-4&&(ti=ti.slice(2));var vi,_i,ki,$i,Vi,sn,dn,ln,_n,$n,Ln,Sr,lr,Gn,mr=ti.length-2,rr=+ti[0],ir=+ti[1],Fr=+ti[2],qr=+ti[3],Jr=[rr,ir,rr,ir],Wr=Fr-rr,Ms=qr-ir,Ps=Math.abs(ti[mr]-rr)<.001&&Math.abs(ti[mr+1]-ir)<.001;for(isNaN(di)&&(di=Math.PI/10),Ps&&(ti.push(Fr,qr),Fr=rr,qr=ir,rr=ti[mr-2],ir=ti[mr-1],ti.unshift(rr,ir),mr+=4),si=si||si===0?+si:1,Vi=2;Vi<mr;Vi+=2)vi=rr,_i=ir,rr=Fr,ir=qr,Fr=+ti[Vi+2],qr=+ti[Vi+3],rr===Fr&&ir===qr||(Sr=(sn=Wr)*sn+(ln=Ms)*ln,lr=(Wr=Fr-rr)*Wr+(Ms=qr-ir)*Ms,Gn=(dn=Fr-vi)*dn+(_n=qr-_i)*_n,Ln=(ki=Math.acos((Sr+lr-Gn)/Xa(4*Sr*lr)))/Math.PI*si,$n=Xa(Sr)*Ln,Ln*=Xa(lr),rr===vi&&ir===_i||(ki>di?($i=Nl(_n,dn),Jr.push(da(rr-Ho($i)*$n),da(ir-To($i)*$n),da(rr),da(ir),da(rr+Ho($i)*Ln),da(ir+To($i)*Ln))):($i=Nl(ln,sn),Jr.push(da(rr-Ho($i)*$n),da(ir-To($i)*$n)),$i=Nl(Ms,Wr),Jr.push(da(rr),da(ir),da(rr+Ho($i)*Ln),da(ir+To($i)*Ln)))));return rr!==Fr||ir!==qr||Jr.length<4?Jr.push(da(Fr),da(qr),da(Fr),da(qr)):Jr.length-=2,Ps&&(Jr.splice(0,6),Jr.length=Jr.length-6),Jr}function Ys(ti){Ql(ti[0])&&(ti=[ti]);var si,di,vi,_i,ki="",$i=ti.length;for(di=0;di<$i;di++){for(_i=ti[di],ki+="M"+da(_i[0])+","+da(_i[1])+" C",si=_i.length,vi=2;vi<si;vi++)ki+=da(_i[vi++])+","+da(_i[vi++])+" "+da(_i[vi++])+","+da(_i[vi++])+" "+da(_i[vi++])+","+da(_i[vi])+" ";_i.closed&&(ki+="z")}return ki}/*!
103 * CustomEase 3.9.1
104 * https://greensock.com
105 *
106 * @license Copyright 2008-2021, GreenSock. All rights reserved.
107 * Subject to the terms at https://greensock.com/standard-license or for
108 * Club GreenSock members, the agreement issued with that membership.
109 * @author: Jack Doyle, [email protected]
110*/var kl,Wm,Zp=function(){return kl||typeof window<"u"&&(kl=window.gsap)&&kl.registerPlugin&&kl},Pl=function(){(kl=Zp())?(kl.registerEase("_CE",Gh.create),Wm=1):console.warn("Please gsap.registerPlugin(CustomEase)")},Ta=function(ti){return~~(1e3*ti+(ti<0?-.5:.5))/1e3},Df=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,am=/[cLlsSaAhHvVtTqQ]/g,lm=function ti(si,di,vi,_i,ki,$i,Vi,sn,dn,ln,_n){var $n,Ln=(si+vi)/2,Sr=(di+_i)/2,lr=(vi+ki)/2,Gn=(_i+$i)/2,mr=(ki+Vi)/2,rr=($i+sn)/2,ir=(Ln+lr)/2,Fr=(Sr+Gn)/2,qr=(lr+mr)/2,Jr=(Gn+rr)/2,Wr=(ir+qr)/2,Ms=(Fr+Jr)/2,Ps=Vi-si,Xs=sn-di,eo=Math.abs((vi-Vi)*Xs-(_i-sn)*Ps),oo=Math.abs((ki-Vi)*Xs-($i-sn)*Ps);return ln||(ln=[{x:si,y:di},{x:Vi,y:sn}],_n=1),ln.splice(_n||ln.length-1,0,{x:Wr,y:Ms}),(eo+oo)*(eo+oo)>dn*(Ps*Ps+Xs*Xs)&&($n=ln.length,ti(si,di,Ln,Sr,ir,Fr,Wr,Ms,dn,ln,_n),ti(Wr,Ms,qr,Jr,mr,rr,Vi,sn,dn,ln,_n+1+(ln.length-$n))),ln},Gh=function(){function ti(di,vi,_i){Wm||Pl(),this.id=di,this.setData(vi,_i)}var si=ti.prototype;return si.setData=function(di,vi){vi=vi||{};var _i,ki,$i,Vi,sn,dn,ln,_n,$n,Ln=(di=di||"0,0,1,1").match(Df),Sr=1,lr=[],Gn=[],mr=vi.precision||1,rr=mr<=1;if(this.data=di,(am.test(di)||~di.indexOf("M")&&di.indexOf("C")<0)&&(Ln=ed(di)[0]),(_i=Ln.length)===4)Ln.unshift(0,0),Ln.push(1,1),_i=8;else if((_i-2)%6)throw"Invalid CustomEase";for(+Ln[0]==0&&+Ln[_i-2]==1||function(ir,Fr,qr){qr||qr===0||(qr=Math.max(+ir[ir.length-1],+ir[1]));var Jr,Wr=-1*+ir[0],Ms=-qr,Ps=ir.length,Xs=1/(+ir[Ps-2]+Wr),eo=-Fr||(Math.abs(+ir[Ps-1]-+ir[1])<.01*(+ir[Ps-2]-+ir[0])?function(oo){var Cs,Zs=oo.length,Io=1e20;for(Cs=1;Cs<Zs;Cs+=6)+oo[Cs]<Io&&(Io=+oo[Cs]);return Io}(ir)+Ms:+ir[Ps-1]+Ms);for(eo=eo?1/eo:-Xs,Jr=0;Jr<Ps;Jr+=2)ir[Jr]=(+ir[Jr]+Wr)*Xs,ir[Jr+1]=(+ir[Jr+1]+Ms)*eo}(Ln,vi.height,vi.originY),this.segment=Ln,Vi=2;Vi<_i;Vi+=6)ki={x:+Ln[Vi-2],y:+Ln[Vi-1]},$i={x:+Ln[Vi+4],y:+Ln[Vi+5]},lr.push(ki,$i),lm(ki.x,ki.y,+Ln[Vi],+Ln[Vi+1],+Ln[Vi+2],+Ln[Vi+3],$i.x,$i.y,1/(2e5*mr),lr,lr.length-1);for(_i=lr.length,Vi=0;Vi<_i;Vi++)ln=lr[Vi],_n=lr[Vi-1]||ln,(ln.x>_n.x||_n.y!==ln.y&&_n.x===ln.x||ln===_n)&&ln.x<=1?(_n.cx=ln.x-_n.x,_n.cy=ln.y-_n.y,_n.n=ln,_n.nx=ln.x,rr&&Vi>1&&Math.abs(_n.cy/_n.cx-lr[Vi-2].cy/lr[Vi-2].cx)>2&&(rr=0),_n.cx<Sr&&(_n.cx?Sr=_n.cx:(_n.cx=.001,Vi===_i-1&&(_n.x-=.001,Sr=Math.min(Sr,.001),rr=0)))):(lr.splice(Vi--,1),_i--);if(sn=1/(_i=1/Sr+1|0),dn=0,ln=lr[0],rr){for(Vi=0;Vi<_i;Vi++)$n=Vi*sn,ln.nx<$n&&(ln=lr[++dn]),ki=ln.y+($n-ln.x)/ln.cx*ln.cy,Gn[Vi]={x:$n,cx:sn,y:ki,cy:0,nx:9},Vi&&(Gn[Vi-1].cy=ki-Gn[Vi-1].y);Gn[_i-1].cy=lr[lr.length-1].y-ki}else{for(Vi=0;Vi<_i;Vi++)ln.nx<Vi*sn&&(ln=lr[++dn]),Gn[Vi]=ln;dn<lr.length-1&&(Gn[Vi-1]=lr[lr.length-2])}return this.ease=function(ir){var Fr=Gn[ir*_i|0]||Gn[_i-1];return Fr.nx<ir&&(Fr=Fr.n),Fr.y+(ir-Fr.x)/Fr.cx*Fr.cy},this.ease.custom=this,this.id&&kl&&kl.registerEase(this.id,this.ease),this},si.getSVGData=function(di){return ti.getSVGData(this,di)},ti.create=function(di,vi,_i){return new ti(di,vi,_i).ease},ti.register=function(di){kl=di,Pl()},ti.get=function(di){return kl.parseEase(di)},ti.getSVGData=function(di,vi){var _i,ki,$i,Vi,sn,dn,ln,_n,$n,Ln,Sr=(vi=vi||{}).width||100,lr=vi.height||100,Gn=vi.x||0,mr=(vi.y||0)+lr,rr=kl.utils.toArray(vi.path)[0];if(vi.invert&&(lr=-lr,mr=0),typeof di=="string"&&(di=kl.parseEase(di)),di.custom&&(di=di.custom),di instanceof ti)_i=Ys(Hh([di.segment],Sr,0,0,-lr,Gn,mr));else{for(_i=[Gn,mr],Vi=1/(ln=Math.max(5,200*(vi.precision||1))),_n=5/(ln+=2),$n=Ta(Gn+Vi*Sr),ki=((Ln=Ta(mr+di(Vi)*-lr))-mr)/($n-Gn),$i=2;
110$i<ln;$i++)sn=Ta(Gn+$i*Vi*Sr),dn=Ta(mr+di($i*Vi)*-lr),(Math.abs((dn-Ln)/(sn-$n)-ki)>_n||$i===ln-1)&&(_i.push($n,Ln),ki=(dn-Ln)/(sn-$n)),$n=sn,Ln=dn;_i="M"+_i.join(",")}return rr&&rr.setAttribute("d",_i),_i},ti}();Zp()&&kl.registerPlugin(Gh),Gh.version="3.9.1";/*!
111 * CustomWiggle 3.9.1
112 * https://greensock.com
113 *
114 * @license Copyright 2008-2021, GreenSock. All rights reserved.
115 * Subject to the terms at https://greensock.com/standard-license or for
116 * Club GreenSock members, the agreement issued with that membership.
117 * @author: Jack Doyle, [email protected]
118*/var zu,Gd,fd,uh=function(){return zu||typeof window<"u"&&(zu=window.gsap)&&zu.registerPlugin&&zu},jd={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},Yp=function(ti){return ti},Wd=function(ti){if(!Gd)if(zu=uh(),fd=zu&&zu.parseEase("_CE")){for(var si in jd)jd[si]=fd("",jd[si]);Gd=1,Sp("wiggle").config=function(di){return typeof di=="object"?Sp("",di):Sp("wiggle("+di+")",{wiggles:+di})}}else ti&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")},dh=function(ti,si){return typeof ti!="function"&&(ti=zu.parseEase(ti)||fd("",ti)),ti.custom||!si?ti:function(di){return 1-ti(di)}},Sp=function(ti,si){Gd||Wd(1);var di,vi,_i,ki,$i,Vi,sn,dn,ln,_n=0|((si=si||{}).wiggles||10),$n=1/_n,Ln=$n/2,Sr=si.type==="anticipate",lr=jd[si.type]||jd.easeOut,Gn=Yp;if(Sr&&(Gn=lr,lr=jd.easeOut),si.timingEase&&(Gn=dh(si.timingEase)),si.amplitudeEase&&(lr=dh(si.amplitudeEase,!0)),dn=[0,0,(Vi=Gn(Ln))/4,0,Vi/2,sn=Sr?-lr(Ln):lr(Ln),Vi,sn],si.type==="random"){for(dn.length=4,di=Gn($n),vi=2*Math.random()-1,ln=2;ln<_n;ln++)Ln=di,sn=vi,di=Gn($n*ln),vi=2*Math.random()-1,_i=Math.atan2(vi-dn[dn.length-3],di-dn[dn.length-4]),ki=Math.cos(_i)*$n,$i=Math.sin(_i)*$n,dn.push(Ln-ki,sn-$i,Ln,sn,Ln+ki,sn+$i);dn.push(di,0,1,0)}else{for(ln=1;ln<_n;ln++)dn.push(Gn(Ln+$n/2),sn),Ln+=$n,sn=(sn>0?-1:1)*lr(ln*$n),Vi=Gn(Ln),dn.push(Gn(Ln-$n/2),sn,Vi,sn);dn.push(Gn(Ln+$n/4),sn,Gn(Ln+$n/4),0,1,0)}for(ln=dn.length;--ln>-1;)dn[ln]=~~(1e3*dn[ln])/1e3;return dn[2]="C"+dn[2],fd(ti,"M"+dn.join(","))},Kp=function(){function ti(si,di){this.ease=Sp(si,di)}return ti.create=function(si,di){return Sp(si,di)},ti.register=function(si){zu=si,Wd()},ti}();uh()&&zu.registerPlugin(Kp),Kp.version="3.9.1";/*!
119 * DrawSVGPlugin 3.9.1
120 * https://greensock.com
121 *
122 * @license Copyright 2008-2021, GreenSock. All rights reserved.
123 * Subject to the terms at https://greensock.com/standard-license or for
124 * Club GreenSock members, the agreement issued with that membership.
125 * @author: Jack Doyle, [email protected]
126*/var md,Tp,jh,Ep,Cp,Mf=function(){return typeof window<"u"},Rn=function(){return md||Mf()&&(md=window.gsap)&&md.registerPlugin&&md},Bu=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,Ap={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},Lc=function(ti){return Math.round(1e4*ti)/1e4},ta=function(ti){return parseFloat(ti)||0},qm=function(ti,si){var di=ta(ti);return~ti.indexOf("%")?di/100*si:di},Jp=function(ti,si){return ta(ti.getAttribute(si))},kf=Math.sqrt,hh=function(ti,si,di,vi,_i,ki){return kf(Math.pow((ta(di)-ta(ti))*_i,2)+Math.pow((ta(vi)-ta(si))*ki,2))},$c=function(ti){return console.warn(ti)},Ng=function(ti){return ti.getAttribute("vector-effect")==="non-scaling-stroke"},Pf=function(ti){if(!(ti=Tp(ti)[0]))return 0;var si,di,vi,_i,ki,$i,Vi,sn=ti.tagName.toLowerCase(),dn=ti.style,ln=1,_n=1;Ng(ti)&&(_n=ti.getScreenCTM(),ln=kf(_n.a*_n.a+_n.b*_n.b),_n=kf(_n.d*_n.d+_n.c*_n.c));try{di=ti.getBBox()}catch{$c("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var $n=di||{x:0,y:0,width:0,height:0},Ln=$n.x,Sr=$n.y,lr=$n.width,Gn=$n.height;if(di&&(lr||Gn)||!Ap[sn]||(lr=Jp(ti,Ap[sn][0]),Gn=Jp(ti,Ap[sn][1]),sn!=="rect"&&sn!=="line"&&(lr*=2,Gn*=2),sn==="line"&&(Ln=Jp(ti,"x1"),Sr=Jp(ti,"y1"),lr=Math.abs(lr-Ln),Gn=Math.abs(Gn-Sr))),sn==="path")_i=dn.strokeDasharray,dn.strokeDasharray="none",si=ti.getTotalLength()||0,ln!==_n&&$c("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),si*=(ln+_n)/2,dn.strokeDasharray=_i;else if(sn==="rect")si=2*lr*ln+2*Gn*_n;else if(sn==="line")si=hh(Ln,Sr,Ln+lr,Sr+Gn,ln,_n);
126else if(sn==="polyline"||sn==="polygon")for(vi=ti.getAttribute("points").match(Bu)||[],sn==="polygon"&&vi.push(vi[0],vi[1]),si=0,ki=2;ki<vi.length;ki+=2)si+=hh(vi[ki-2],vi[ki-1],vi[ki],vi[ki+1],ln,_n)||0;else sn!=="circle"&&sn!=="ellipse"||($i=lr/2*ln,Vi=Gn/2*_n,si=Math.PI*(3*($i+Vi)-kf((3*$i+Vi)*($i+3*Vi))));return si||0},Vg=function(ti,si){if(!(ti=Tp(ti)[0]))return[0,0];si||(si=Pf(ti)+1);var di=jh.getComputedStyle(ti),vi=di.strokeDasharray||"",_i=ta(di.strokeDashoffset),ki=vi.indexOf(",");return ki<0&&(ki=vi.indexOf(" ")),(vi=ki<0?si:ta(vi.substr(0,ki)))>si&&(vi=si),[-_i||0,vi-_i||0]},Hg=function(){Mf()&&(jh=window,Cp=md=Rn(),Tp=md.utils.toArray,Ep=((jh.navigator||{}).userAgent||"").indexOf("Edge")!==-1)},Vl={version:"3.9.1",name:"drawSVG",register:function(ti){md=ti,Hg()},init:function(ti,si,di,vi,_i){if(!ti.getBBox)return!1;Cp||Hg();var ki,$i,Vi,sn=Pf(ti);return this._style=ti.style,this._target=ti,si+""=="true"?si="0 100%":si?(si+"").indexOf(" ")===-1&&(si="0 "+si):si="0 0",$i=function(dn,ln,_n){var $n,Ln,Sr=dn.indexOf(" ");return Sr<0?($n=_n!==void 0?_n+"":dn,Ln=dn):($n=dn.substr(0,Sr),Ln=dn.substr(Sr+1)),($n=qm($n,ln))>(Ln=qm(Ln,ln))?[Ln,$n]:[$n,Ln]}(si,sn,(ki=Vg(ti,sn))[0]),this._length=Lc(sn),this._dash=Lc(ki[1]-ki[0]),this._offset=Lc(-ki[0]),this._dashPT=this.add(this,"_dash",this._dash,Lc($i[1]-$i[0])),this._offsetPT=this.add(this,"_offset",this._offset,Lc(-$i[0])),Ep&&(Vi=jh.getComputedStyle(ti)).strokeLinecap!==Vi.strokeLinejoin&&($i=ta(Vi.strokeMiterlimit),this.add(ti.style,"strokeMiterlimit",$i,$i+.01)),this._live=Ng(ti)||~(si+"").indexOf("live"),this._nowrap=~(si+"").indexOf("nowrap"),this._props.push("drawSVG"),1},render:function(ti,si){var di,vi,_i,ki,$i=si._pt,Vi=si._style;if($i){for(si._live&&(di=Pf(si._target))!==si._length&&(vi=di/si._length,si._length=di,si._offsetPT&&(si._offsetPT.s*=vi,si._offsetPT.c*=vi),si._dashPT?(si._dashPT.s*=vi,si._dashPT.c*=vi):si._dash*=vi);$i;)$i.r(ti,$i.d),$i=$i._next;_i=si._dash||ti&&ti!==1&&1e-4||0,di=si._length-_i+.1,ki=si._offset,_i&&ki&&_i+Math.abs(ki%si._length)>si._length-.2&&(ki+=ki<0?.1:-.1)&&(di+=.1),Vi.strokeDashoffset=_i?ki:ki+.001,Vi.strokeDasharray=di<.2?"none":_i?_i+"px,"+(si._nowrap?999999:di)+"px":"0px, 999999px"}},getLength:Pf,getPosition:Vg};Rn()&&md.registerPlugin(Vl);/*!
127 * matrix 3.9.1
128 * https://greensock.com
129 *
130 * Copyright 2008-2021, GreenSock. All rights reserved.
131 * Subject to the terms at https://greensock.com/standard-license or for
132 * Club GreenSock members, the agreement issued with that membership.
133 * @author: Jack Doyle, [email protected]
134*/var qd,Dp,Nu,fu,Xd,mu,to,Qp,cm,Qc="transform",ph=Qc+"Origin",Gs=function(ti){var si=ti.ownerDocument||ti;for(!(Qc in ti.style)&&("msTransform"in ti.style)&&(ph=(Qc="msTransform")+"Origin");si.parentNode&&(si=si.parentNode););if(Dp=window,to=new ef,si){qd=si,Nu=si.documentElement,fu=si.body,(Qp=qd.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var di=si.createElement("div"),vi=si.createElement("div");fu.appendChild(di),di.appendChild(vi),di.style.position="static",di.style[Qc]="translate3d(0,0,1px)",cm=vi.offsetParent!==di,fu.removeChild(di)}return si},um=[],Ug=[],Eu=function(ti){return ti.ownerSVGElement||((ti.tagName+"").toLowerCase()==="svg"?ti:null)},If=function ti(si,di){if(si.parentNode&&(qd||Gs(si))){var vi=Eu(si),_i=vi?vi.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",ki=vi?di?"rect":"g":"div",$i=di!==2?0:100,Vi=di===3?100:0,sn="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",dn=qd.createElementNS?qd.createElementNS(_i.replace(/^https/,"http"),ki):qd.createElement(ki);return di&&(vi?(mu||(mu=ti(si)),dn.setAttribute("width",.01),dn.setAttribute("height",.01),dn.setAttribute("transform","translate("+$i+","+Vi+")"),mu.appendChild(dn)):(Xd||((Xd=ti(si)).style.cssText=sn),dn.style.cssText=sn+"width:0.1px;height:0.1px;top:"+Vi+"px;left:"+$i+"px",Xd.appendChild(dn))),dn}throw"Need document and parent."},Gg=function(ti,si){var di,vi,_i,ki,$i,Vi,sn=Eu(ti),dn=ti===sn,ln=sn?um:Ug,_n=ti.parentNode;if(ti===Dp)return ti;if(ln.length||ln.push(If(ti,1),If(ti,2),If(ti,3)),di=sn?mu:Xd,sn)dn?(ki=-(_i=function($n){var Ln,Sr=$n.getCTM();return Sr||(Ln=$n.style[Qc],$n.style[Qc]="none",$n.appendChild(Qp),Sr=Qp.getCTM(),$n.removeChild(Qp),Ln?$n.style[Qc]=Ln:$n.style.removeProperty(Qc.replace(/([A-Z])/g,"-$1").toLowerCase())),Sr||to.clone()}(ti)).e/_i.a,$i=-_i.f/_i.d,vi=to):(_i=ti.getBBox(),ki=(vi=(vi=ti.transform?ti.transform.baseVal:{}).numberOfItems?vi.numberOfItems>1?function($n){for(var Ln=new ef,Sr=0;Sr<$n.numberOfItems;
134Sr++)Ln.multiply($n.getItem(Sr).matrix);return Ln}(vi):vi.getItem(0).matrix:to).a*_i.x+vi.c*_i.y,$i=vi.b*_i.x+vi.d*_i.y),si&&ti.tagName.toLowerCase()==="g"&&(ki=$i=0),(dn?sn:_n).appendChild(di),di.setAttribute("transform","matrix("+vi.a+","+vi.b+","+vi.c+","+vi.d+","+(vi.e+ki)+","+(vi.f+$i)+")");else{if(ki=$i=0,cm)for(vi=ti.offsetParent,_i=ti;_i&&(_i=_i.parentNode)&&_i!==vi&&_i.parentNode;)(Dp.getComputedStyle(_i)[Qc]+"").length>4&&(ki=_i.offsetLeft,$i=_i.offsetTop,_i=0);if((Vi=Dp.getComputedStyle(ti)).position!=="absolute"&&Vi.position!=="fixed")for(vi=ti.offsetParent;_n&&_n!==vi;)ki+=_n.scrollLeft||0,$i+=_n.scrollTop||0,_n=_n.parentNode;(_i=di.style).top=ti.offsetTop-$i+"px",_i.left=ti.offsetLeft-ki+"px",_i[Qc]=Vi[Qc],_i[ph]=Vi[ph],_i.position=Vi.position==="fixed"?"fixed":"absolute",ti.parentNode.appendChild(di)}return di},dm=function(ti,si,di,vi,_i,ki,$i){return ti.a=si,ti.b=di,ti.c=vi,ti.d=_i,ti.e=ki,ti.f=$i,ti},ef=function(){function ti(di,vi,_i,ki,$i,Vi){di===void 0&&(di=1),vi===void 0&&(vi=0),_i===void 0&&(_i=0),ki===void 0&&(ki=1),$i===void 0&&($i=0),Vi===void 0&&(Vi=0),dm(this,di,vi,_i,ki,$i,Vi)}var si=ti.prototype;return si.inverse=function(){var di=this.a,vi=this.b,_i=this.c,ki=this.d,$i=this.e,Vi=this.f,sn=di*ki-vi*_i||1e-10;return dm(this,ki/sn,-vi/sn,-_i/sn,di/sn,(_i*Vi-ki*$i)/sn,-(di*Vi-vi*$i)/sn)},si.multiply=function(di){var vi=this.a,_i=this.b,ki=this.c,$i=this.d,Vi=this.e,sn=this.f,dn=di.a,ln=di.c,_n=di.b,$n=di.d,Ln=di.e,Sr=di.f;return dm(this,dn*vi+_n*ki,dn*_i+_n*$i,ln*vi+$n*ki,ln*_i+$n*$i,Vi+Ln*vi+Sr*ki,sn+Ln*_i+Sr*$i)},si.clone=function(){return new ti(this.a,this.b,this.c,this.d,this.e,this.f)},si.equals=function(di){var vi=this.a,_i=this.b,ki=this.c,$i=this.d,Vi=this.e,sn=this.f;return vi===di.a&&_i===di.b&&ki===di.c&&$i===di.d&&Vi===di.e&&sn===di.f},si.apply=function(di,vi){vi===void 0&&(vi={});var _i=di.x,ki=di.y,$i=this.a,Vi=this.b,sn=this.c,dn=this.d,ln=this.e,_n=this.f;return vi.x=_i*$i+ki*sn+ln||0,vi.y=_i*Vi+ki*dn+_n||0,vi},ti}();function Vu(ti,si,di,vi){if(!ti||!ti.parentNode||(qd||Gs(ti)).documentElement===ti)return new ef;var _i=function(Ln){for(var Sr,lr;Ln&&Ln!==fu;)(lr=Ln._gsap)&&lr.uncache&&lr.get(Ln,"x"),lr&&!lr.scaleX&&!lr.scaleY&&lr.renderTransform&&(lr.scaleX=lr.scaleY=1e-4,lr.renderTransform(1,lr),Sr?Sr.push(lr):Sr=[lr]),Ln=Ln.parentNode;return Sr}(ti),ki=Eu(ti)?um:Ug,$i=Gg(ti,di),Vi=ki[0].getBoundingClientRect(),sn=ki[1].getBoundingClientRect(),dn=ki[2].getBoundingClientRect(),ln=$i.parentNode,_n=!vi&&function Ln(Sr){return Dp.getComputedStyle(Sr).position==="fixed"||((Sr=Sr.parentNode)&&Sr.nodeType===1?Ln(Sr):void 0)}(ti),$n=new ef((sn.left-Vi.left)/100,(sn.top-Vi.top)/100,(dn.left-Vi.left)/100,(dn.top-Vi.top)/100,Vi.left+(_n?0:Dp.pageXOffset||qd.scrollLeft||Nu.scrollLeft||fu.scrollLeft||0),Vi.top+(_n?0:Dp.pageYOffset||qd.scrollTop||Nu.scrollTop||fu.scrollTop||0));if(ln.removeChild($i),_i)for(Vi=_i.length;Vi--;)(sn=_i[Vi]).scaleX=sn.scaleY=0,sn.renderTransform(1,sn);return si?$n.inverse():$n}/*!
135 * MotionPathPlugin 3.9.1
136 * https://greensock.com
137 *
138 * @license Copyright 2008-2021, GreenSock. All rights reserved.
139 * Subject to the terms at https://greensock.com/standard-license or for
140 * Club GreenSock members, the agreement issued with that membership.
141 * @author: Jack Doyle, [email protected]
142*/var td,Rf,Wh,qh,Ze="x,translateX,left,marginLeft,xPercent".split(","),Ne="y,translateY,top,marginTop,yPercent".split(","),Ge=Math.PI/180,Qe=function(ti,si,di,vi){for(var _i=si.length,ki=vi===2?0:vi,$i=0;$i<_i;$i++)ti[ki]=parseFloat(si[$i][di]),vi===2&&(ti[ki+1]=0),ki+=2;return ti},ai=function(ti,si,di){return parseFloat(ti._gsap.get(ti,si,di||"px"))||0},ui=function(ti){var si,di=ti[0],vi=ti[1];for(si=2;si<ti.length;si+=2)di=ti[si]+=di,vi=ti[si+1]+=vi},Si=function(ti,si,di,vi,_i,ki,$i,Vi,sn){return $i.type==="cubic"?si=[si]:($i.fromCurrent!==!1&&si.unshift(ai(di,vi,Vi),_i?ai(di,_i,sn):0),$i.relative&&ui(si),si=[(_i?Uh:wp)(si,$i.curviness)]),si=ki(hn(si,di,$i)),Dn(ti,di,vi,si,"x",Vi),_i&&Dn(ti,di,_i,si,"y",sn),pd(si,$i.resolution||($i.curviness===0?20:12))},Mi=function(ti){return ti}
142,Fi=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,qi=function(ti,si,di){var vi,_i=Vu(ti),ki=0,$i=0;return(ti.tagName+"").toLowerCase()==="svg"?(vi=ti.viewBox.baseVal).width||(vi={width:+ti.getAttribute("width"),height:+ti.getAttribute("height")}):vi=si&&ti.getBBox&&ti.getBBox(),si&&si!=="auto"&&(ki=si.push?si[0]*(vi?vi.width:ti.offsetWidth||0):si.x,$i=si.push?si[1]*(vi?vi.height:ti.offsetHeight||0):si.y),di.apply(ki||$i?_i.apply({x:ki,y:$i}):{x:_i.e,y:_i.f})},Xi=function(ti,si,di,vi){var _i,ki=Vu(ti.parentNode,!0,!0),$i=ki.clone().multiply(Vu(si)),Vi=qi(ti,di,ki),sn=qi(si,vi,ki),dn=sn.x,ln=sn.y;return $i.e=$i.f=0,vi==="auto"&&si.getTotalLength&&si.tagName.toLowerCase()==="path"&&(_i=si.getAttribute("d").match(Fi)||[],dn+=(_i=$i.apply({x:+_i[0],y:+_i[1]})).x,ln+=_i.y),(_i||si.getBBox&&ti.getBBox&&si.ownerSVGElement===ti.ownerSVGElement)&&(dn-=(_i=$i.apply(si.getBBox())).x,ln-=_i.y),$i.e=dn-Vi.x,$i.f=ln-Vi.y,$i},hn=function(ti,si,di){var vi,_i,ki,$i=di.align,Vi=di.matrix,sn=di.offsetX,dn=di.offsetY,ln=di.alignOrigin,_n=ti[0][0],$n=ti[0][1],Ln=ai(si,"x"),Sr=ai(si,"y");return ti&&ti.length?($i&&($i==="self"||(vi=qh($i)[0]||si)===si?Hh(ti,1,0,0,1,Ln-_n,Sr-$n):(ln&&ln[2]!==!1?td.set(si,{transformOrigin:100*ln[0]+"% "+100*ln[1]+"%"}):ln=[ai(si,"xPercent")/-100,ai(si,"yPercent")/-100],ki=(_i=Xi(si,vi,ln,"auto")).apply({x:_n,y:$n}),Hh(ti,_i.a,_i.b,_i.c,_i.d,Ln+_i.e-(ki.x-_i.e),Sr+_i.f-(ki.y-_i.f)))),Vi?Hh(ti,Vi.a,Vi.b,Vi.c,Vi.d,Vi.e,Vi.f):(sn||dn)&&Hh(ti,1,0,0,1,sn||0,dn||0),ti):hd("M0,0L0,0")},Dn=function(ti,si,di,vi,_i,ki){var $i=si._gsap,Vi=$i.harness,sn=Vi&&Vi.aliases&&Vi.aliases[di],dn=sn&&sn.indexOf(",")<0?sn:di,ln=ti._pt=new Rf(ti._pt,si,dn,0,0,Mi,0,$i.set(si,dn,ti));ln.u=Wh($i.get(si,dn,ki))||0,ln.path=vi,ln.pp=_i,ti._props.push(dn)},In={version:"3.9.1",name:"motionPath",register:function(ti,si,di){Wh=(td=ti).utils.getUnit,qh=td.utils.toArray,Rf=di},init:function(ti,si){if(!td)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;typeof si=="object"&&!si.style&&si.path||(si={path:si});var di,vi,_i,ki,$i=[],Vi=si,sn=Vi.path,dn=Vi.autoRotate,ln=Vi.unitX,_n=Vi.unitY,$n=Vi.x,Ln=Vi.y,Sr=sn[0],lr=(_i=si.start,ki="end"in si?si.end:1,function(Gn){return _i||ki!==1?Vh(Gn,_i,ki):Gn});if(this.rawPaths=$i,this.target=ti,(this.rotate=dn||dn===0)&&(this.rOffset=parseFloat(dn)||0,this.radians=!!si.useRadians,this.rProp=si.rotation||"rotation",this.rSet=ti._gsap.set(ti,this.rProp,this),this.ru=Wh(ti._gsap.get(ti,this.rProp))||0),Array.isArray(sn)&&!("closed"in sn)&&typeof Sr!="number"){for(vi in Sr)!$n&&~Ze.indexOf(vi)?$n=vi:!Ln&&~Ne.indexOf(vi)&&(Ln=vi);for(vi in $n&&Ln?$i.push(Si(this,Qe(Qe([],sn,$n,0),sn,Ln,1),ti,$n,Ln,lr,si,ln||Wh(sn[0][$n]),_n||Wh(sn[0][Ln]))):$n=Ln=0,Sr)vi!==$n&&vi!==Ln&&$i.push(Si(this,Qe([],sn,vi,2),ti,vi,0,lr,si,Wh(sn[0][vi])))}else pd(di=lr(hn(hd(si.path),ti,si)),si.resolution),$i.push(di),Dn(this,ti,si.x||"x",di,"x",si.unitX||"px"),Dn(this,ti,si.y||"y",di,"y",si.unitY||"px")},render:function(ti,si){var di=si.rawPaths,vi=di.length,_i=si._pt;for(ti>1?ti=1:ti<0&&(ti=0);vi--;)xp(di[vi],ti,!vi&&si.rotate,di[vi]);for(;_i;)_i.set(_i.t,_i.p,_i.path[_i.pp]+_i.u,_i.d,ti),_i=_i._next;si.rotate&&si.rSet(si.target,si.rProp,di[0].angle*(si.radians?Ge:1)+si.rOffset+si.ru,si,ti)},getLength:function(ti){return pd(hd(ti)).totalLength},sliceRawPath:Vh,getRawPath:hd,pointsToSegment:Uh,stringToRawPath:ed,rawPathToString:Ys,transformRawPath:Hh,getGlobalMatrix:Vu,getPositionOnPath:xp,cacheRawPathMeasurements:pd,convertToPath:function(ti,si){return qh(ti).map(function(di){return bp(di,si!==!1)})},convertCoordinates:function(ti,si,di){var vi=Vu(si,!0,!0).multiply(Vu(ti));return di?vi.apply(di):vi},getAlignMatrix:Xi,getRelativePosition:function(ti,si,di,vi){var _i=Xi(ti,si,di,vi);return{x:_i.e,y:_i.f}},arrayToRawPath:function(ti,si){var di=Qe(Qe([],ti,(si=si||{}).x||"x",0),ti,si.y||"y",1);return si.relative&&ui(di),[si.type==="cubic"?di:Uh(di,si.curviness)]}};(td||typeof window<"u"&&(td=window.gsap)&&td.registerPlugin&&td)&&td.registerPlugin(In);/*!
143 * ScrollToPlugin 3.9.1
144 * https://greensock.com
145 *
146 * @license Copyright 2008-2021, GreenSock. All rights reserved.
147 * Subject to the terms at https://greensock.com/standard-license or for
148 * Club GreenSock members, the agreement issued with that membership.
149 * @author: Jack Doyle, [email protected]
150*/var On,Bn,Vn,pn,Pn,Jn,qn,gr=function(){return typeof window<"u"},vr=function(){return On||gr()&&(On=window.gsap)&&On.registerPlugin&&On},dr=function(ti){return typeof ti=="string"},$r=function(ti){return typeof ti=="function"},Pr=function(ti,si){var di=si==="x"?"Width":"Height",vi="scroll"+di,_i="client"+di;return ti===Vn||ti===pn||ti===Pn?Math.max(pn[vi],Pn[vi])-(Vn["inner"+di]||pn[_i]||Pn[_i]):ti[vi]-ti["offset"+di]},Vr=function(ti,si){var di="scroll"+(si==="x"?"Left":"Top");return ti===Vn&&(ti.pageXOffset!=null?di="page"+si.toUpperCase()+"Offset":ti=pn[di]!=null?pn:Pn),function(){return ti[di
150]}},Ds=function(ti,si){if(!(ti=Jn(ti)[0])||!ti.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var di=ti.getBoundingClientRect(),vi=!si||si===Vn||si===Pn,_i=vi?{top:pn.clientTop-(Vn.pageYOffset||pn.scrollTop||Pn.scrollTop||0),left:pn.clientLeft-(Vn.pageXOffset||pn.scrollLeft||Pn.scrollLeft||0)}:si.getBoundingClientRect(),ki={x:di.left-_i.left,y:di.top-_i.top};return!vi&&si&&(ki.x+=Vr(si,"x")(),ki.y+=Vr(si,"y")()),ki},zr=function(ti,si,di,vi,_i){return isNaN(ti)||typeof ti=="object"?dr(ti)&&ti.charAt(1)==="="?parseFloat(ti.substr(2))*(ti.charAt(0)==="-"?-1:1)+vi-_i:ti==="max"?Pr(si,di)-_i:Math.min(Pr(si,di),Ds(ti,si)[di]-_i):parseFloat(ti)-_i},cs=function(){On=vr(),gr()&&On&&document.body&&(Vn=window,Pn=document.body,pn=document.documentElement,Jn=On.utils.toArray,On.config({autoKillThreshold:7}),qn=On.config(),Bn=1)},Xr={version:"3.9.1",name:"scrollTo",rawVars:1,register:function(ti){On=ti,cs()},init:function(ti,si,di,vi,_i){Bn||cs();var ki=On.getProperty(ti,"scrollSnapType");this.isWin=ti===Vn,this.target=ti,this.tween=di,si=function($i,Vi,sn,dn){if($r($i)&&($i=$i(Vi,sn,dn)),typeof $i!="object")return dr($i)&&$i!=="max"&&$i.charAt(1)!=="="?{x:$i,y:$i}:{y:$i};if($i.nodeType)return{y:$i,x:$i};var ln,_n={};for(ln in $i)_n[ln]=ln!=="onAutoKill"&&$r($i[ln])?$i[ln](Vi,sn,dn):$i[ln];return _n}(si,vi,ti,_i),this.vars=si,this.autoKill=!!si.autoKill,this.getX=Vr(ti,"x"),this.getY=Vr(ti,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),ki&&ki!=="none"&&(this.snap=1,this.snapInline=ti.style.scrollSnapType,ti.style.scrollSnapType="none"),si.x!=null?(this.add(this,"x",this.x,zr(si.x,ti,"x",this.x,si.offsetX||0),vi,_i),this._props.push("scrollTo_x")):this.skipX=1,si.y!=null?(this.add(this,"y",this.y,zr(si.y,ti,"y",this.y,si.offsetY||0),vi,_i),this._props.push("scrollTo_y")):this.skipY=1},render:function(ti,si){for(var di,vi,_i,ki,$i,Vi=si._pt,sn=si.target,dn=si.tween,ln=si.autoKill,_n=si.xPrev,$n=si.yPrev,Ln=si.isWin,Sr=si.snap,lr=si.snapInline;Vi;)Vi.r(ti,Vi.d),Vi=Vi._next;di=Ln||!si.skipX?si.getX():_n,_i=(vi=Ln||!si.skipY?si.getY():$n)-$n,ki=di-_n,$i=qn.autoKillThreshold,si.x<0&&(si.x=0),si.y<0&&(si.y=0),ln&&(!si.skipX&&(ki>$i||ki<-$i)&&di<Pr(sn,"x")&&(si.skipX=1),!si.skipY&&(_i>$i||_i<-$i)&&vi<Pr(sn,"y")&&(si.skipY=1),si.skipX&&si.skipY&&(dn.kill(),si.vars.onAutoKill&&si.vars.onAutoKill.apply(dn,si.vars.onAutoKillParams||[]))),Ln?Vn.scrollTo(si.skipX?di:si.x,si.skipY?vi:si.y):(si.skipY||(sn.scrollTop=si.y),si.skipX||(sn.scrollLeft=si.x)),!Sr||ti!==1&&ti!==0||(vi=sn.scrollTop,di=sn.scrollLeft,lr?sn.style.scrollSnapType=lr:sn.style.removeProperty("scroll-snap-type"),sn.scrollTop=vi+1,sn.scrollLeft=di+1,sn.scrollTop=vi,sn.scrollLeft=di),si.xPrev=si.x,si.yPrev=si.y},kill:function(ti){var si=ti==="scrollTo";(si||ti==="scrollTo_x")&&(this.skipX=1),(si||ti==="scrollTo_y")&&(this.skipY=1)}};Xr.max=Pr,Xr.getOffset=Ds,Xr.buildGetter=Vr,vr()&&On.registerPlugin(Xr);/*!
151 * Draggable 3.9.1
152 * https://greensock.com
153 *
154 * @license Copyright 2008-2021, GreenSock. All rights reserved.
155 * Subject to the terms at https://greensock.com/standard-license or for
156 * Club GreenSock members, the agreement issued with that membership.
157 * @author: Jack Doyle, [email protected]
158 */var ss,Lr,ns,Ss,ds,Is,ho,ko,Js,_o,ia,No,lo,Ea,Va,Pa,ha,Hl,Wl,gu,Hu,rl=function(){return typeof window<"u"},Ha=function(){return ss||rl()&&(ss=window.gsap)&&ss.registerPlugin&&ss},Yo=function(ti){return typeof ti=="function"},wl=function(ti){return typeof ti=="object"},pl=function(ti){return ti===void 0},Za=function(){return!1},Cc="transform",Mp="transformOrigin",Cu=function(ti){return Math.round(1e4*ti)/1e4},gd=Array.isArray,Uu=function(ti,si){var di=ns.createElementNS?ns.createElementNS((si||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),ti):ns.createElement(ti);return di.style?di:ns.createElement(ti)},yd=180/Math.PI,kp=new ef,Gu=Date.now||function(){return new Date().getTime()},Oo=[],Xh={},Av=0,hm=/^(?:a|input|textarea|button|select)$/i,Q0=0,tf={},Zd={},nd=function(ti,si){var di,vi={};for(di in ti)vi[di]=si?ti[di]*si:ti[di];return vi},jg=function ti(si,di){for(var vi,_i=si.length;_i--;)di?si[_i].style.touchAction=di:si[_i].style.removeProperty("touch-action"),(vi=si[_i].children)&&vi.length&&ti(vi,di)},nf=function(){return Oo.forEach(function(ti){return ti()})},Yd=function(){return!Oo.length&&ss.ticker.remove(nf)},pm=function(ti){for(var si=Oo.length;si--;)Oo[si]===ti&&Oo.splice(si,1);ss.to(Yd,{overwrite:!0,delay:15,duration:0,onComplete:Yd,data:"_draggable"})},cc=function(ti,si,di,vi){if(ti.addEventListener){var _i=lo[si];vi=vi||(ia?{passive:!1}:null),ti.addEventListener(_i||si,di,vi),_i&&si!==_i&&ti.addEventListener(si,di,vi)}},Ya=function(ti,si,di){if(ti.removeEventListener){var vi=lo[si];ti.removeEventListener(vi||si,di),vi&&si!==vi&&ti.removeEventListener(si,di)}},Fc=function(ti){ti.preventDefault&&ti.preventDefault(),ti.preventManipulation&&ti.preventManipulation()},ey=function ti(si){Va=si.touches&&Ea<si.touches.length,Ya(si.target,"touchend",ti)},ty=function(ti){Va=ti.touches&&Ea<ti.touches.length,cc(ti.target,"touchend",ey)},fh=function(ti){return Lr.pageYOffset||ti.scrollTop||ti.documentElement.scrollTop||ti.body.scrollTop||0},mh=function(ti){return Lr.pageXOffset||ti.scrollLeft||ti.documentElement.scrollLeft||ti.body.scrollLeft||0},Pp=function ti(si,di){cc(si,"scroll",di),eu(si.parentNode)||ti(si.parentNode,di)},gh=function ti(si,di){Ya(si,"scroll",di),eu(si.parentNode)||ti(si.parentNode,di)},eu=function(ti){return!(ti&&ti!==Ss&&ti.nodeType!==9&&ti!==ns.body&&ti!==Lr&&ti.nodeType&&ti.parentNode)},yh=function(ti,si){var di=si==="x"?"Width":"Height",vi="scroll"+di,_i="client"+di;return Math.max(0,eu(ti)?Math.max(Ss[vi],ds[vi])-(Lr["inner"+di]||Ss[_i]||ds[_i]):ti[vi]-ti[_i])},yu=function ti(si,di){var vi=yh(si,"x"),_i=yh(si,"y");eu(si)?si=Zd:ti(si.parentNode,di),si._gsMaxScrollX=vi,si._gsMaxScrollY=_i,di||(si._gsScrollX=si.scrollLeft||0,si._gsScrollY=si.scrollTop||0)},Ip=function(ti,si,di){var vi=ti.style;vi&&(pl(vi[si])&&(si=Js(si,ti)||si),di==null?vi.removeProperty&&vi.removeProperty(si.replace(/([A-Z])/g,"-$1").toLowerCase()):vi[si]=di)},Kd=function(ti){return Lr.getComputedStyle(ti instanceof Element?ti:ti.host||(ti.parentNode||{}).host||ti)}
158,rf={},Of=function(ti){if(ti===Lr)return rf.left=rf.top=0,rf.width=rf.right=Ss.clientWidth||ti.innerWidth||ds.clientWidth||0,rf.height=rf.bottom=(ti.innerHeight||0)-20<Ss.clientHeight?Ss.clientHeight:ti.innerHeight||ds.clientHeight||0,rf;var si=ti.ownerDocument||ns,di=pl(ti.pageX)?ti.nodeType||pl(ti.left)||pl(ti.top)?_o(ti)[0].getBoundingClientRect():ti:{left:ti.pageX-mh(si),top:ti.pageY-fh(si),right:ti.pageX-mh(si)+1,bottom:ti.pageY-fh(si)+1};return pl(di.right)&&!pl(di.width)?(di.right=di.left+di.width,di.bottom=di.top+di.height):pl(di.width)&&(di={width:di.right-di.left,height:di.bottom-di.top,right:di.right,left:di.left,bottom:di.bottom,top:di.top}),di},ql=function(ti,si,di){var vi,_i=ti.vars,ki=_i[di],$i=ti._listeners[si];return Yo(ki)&&(vi=ki.apply(_i.callbackScope||ti,_i[di+"Params"]||[ti.pointerEvent])),$i&&ti.dispatchEvent(si)===!1&&(vi=!1),vi},iy=function(ti,si){var di,vi,_i,ki=_o(ti)[0];return ki.nodeType||ki===Lr?vh(ki,si):pl(ti.left)?{left:vi=ti.min||ti.minX||ti.minRotation||0,top:di=ti.min||ti.minY||0,width:(ti.max||ti.maxX||ti.maxRotation||0)-vi,height:(ti.max||ti.maxY||0)-di}:(_i={x:0,y:0},{left:ti.left-_i.x,top:ti.top-_i.y,width:ti.width,height:ti.height})},vd={},vh=function(ti,si){si=_o(si)[0];var di,vi,_i,ki,$i,Vi,sn,dn,ln,_n,$n,Ln,Sr,lr,Gn=ti.getBBox&&ti.ownerSVGElement,mr=ti.ownerDocument||ns;if(ti===Lr)_i=fh(mr),vi=(di=mh(mr))+(mr.documentElement.clientWidth||ti.innerWidth||mr.body.clientWidth||0),ki=_i+((ti.innerHeight||0)-20<mr.documentElement.clientHeight?mr.documentElement.clientHeight:ti.innerHeight||mr.body.clientHeight||0);else{if(si===Lr||pl(si))return ti.getBoundingClientRect();di=_i=0,Gn?($n=(_n=ti.getBBox()).width,Ln=_n.height):(ti.viewBox&&(_n=ti.viewBox.baseVal)&&(di=_n.x||0,_i=_n.y||0,$n=_n.width,Ln=_n.height),$n||(_n=(Sr=Kd(ti)).boxSizing==="border-box",$n=(parseFloat(Sr.width)||ti.clientWidth||0)+(_n?0:parseFloat(Sr.borderLeftWidth)+parseFloat(Sr.borderRightWidth)),Ln=(parseFloat(Sr.height)||ti.clientHeight||0)+(_n?0:parseFloat(Sr.borderTopWidth)+parseFloat(Sr.borderBottomWidth)))),vi=$n,ki=Ln}return ti===si?{left:di,top:_i,width:vi-di,height:ki-_i}:(Vi=($i=Vu(si,!0).multiply(Vu(ti))).apply({x:di,y:_i}),sn=$i.apply({x:vi,y:_i}),dn=$i.apply({x:vi,y:ki}),ln=$i.apply({x:di,y:ki}),di=Math.min(Vi.x,sn.x,dn.x,ln.x),_i=Math.min(Vi.y,sn.y,dn.y,ln.y),{left:di+((lr=si.parentNode||{}).scrollLeft||0),top:_i+(lr.scrollTop||0),width:Math.max(Vi.x,sn.x,dn.x,ln.x)-di,height:Math.max(Vi.y,sn.y,dn.y,ln.y)-_i})},Wg=function(ti,si,di,vi,_i,ki){var $i,Vi,sn,dn={};if(si)if(_i!==1&&si instanceof Array){if(dn.end=$i=[],sn=si.length,wl(si[0]))for(Vi=0;Vi<sn;Vi++)$i[Vi]=nd(si[Vi],_i);else for(Vi=0;Vi<sn;Vi++)$i[Vi]=si[Vi]*_i;di+=1.1,vi-=1.1}else Yo(si)?dn.end=function(ln){var _n,$n,Ln=si.call(ti,ln);if(_i!==1)if(wl(Ln)){for($n in _n={},Ln)_n[$n]=Ln[$n]*_i;Ln=_n}else Ln*=_i;return Ln}:dn.end=si;return(di||di===0)&&(dn.max=di),(vi||vi===0)&&(dn.min=vi),ki&&(dn.velocity=0),dn},Dv=function ti(si){var di;return!(!si||!si.getAttribute||si===ds)&&(!((di=si.getAttribute("data-clickable"))!=="true"&&(di==="false"||!si.onclick&&!hm.test(si.nodeName+"")&&si.getAttribute("contentEditable")!=="true"))||ti(si.parentNode))},Il=function(ti,si){for(var di,vi=ti.length;vi--;)(di=ti[vi]).ondragstart=di.onselectstart=si?null:Za,ss.set(di,{lazy:!0,userSelect:si?"text":"none"})},So=function(ti,si){ti=ss.utils.toArray(ti)[0],si=si||{};var di,vi,_i,ki,$i,Vi,sn=document.createElement("div"),dn=sn.style,ln=ti.firstChild,_n=0,$n=0,Ln=ti.scrollTop,Sr=ti.scrollLeft,lr=ti.scrollWidth,Gn=ti.scrollHeight,mr=0,rr=0,ir=0;gu&&si.force3D!==!1?($i="translate3d(",Vi="px,0px)"):Cc&&($i="translate(",Vi="px)"),this.scrollTop=function(Fr,qr){if(!arguments.length)return-this.top();this.top(-Fr,qr)},this.scrollLeft=function(Fr,qr){if(!arguments.length)return-this.left();this.left(-Fr,qr)},this.left=function(Fr,qr){if(!arguments.length)return-(ti.scrollLeft+$n);var Jr=ti.scrollLeft-Sr,Wr=$n;if((Jr>2||Jr<-2)&&!qr)return Sr=ti.scrollLeft,ss.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-Sr),void(si.onKill&&si.onKill());(Fr=-Fr)<0?($n=Fr-.5|0,Fr=0):Fr>rr?($n=Fr-rr|0,Fr=rr):$n=0,($n||Wr)&&(this._skip||(dn[Cc]=$i+-$n+"px,"+-_n+Vi),$n+mr>=0&&(dn.paddingRight=$n+mr+"px")),ti.scrollLeft=0|Fr,Sr=ti.scrollLeft},this.top=function(Fr,qr){if(!arguments.length)return-(ti.scrollTop+_n);var Jr=ti.scrollTop-Ln,Wr=_n;if((Jr>2||Jr<-2)&&!qr)return Ln=ti.scrollTop,ss.killTweensOf(this,{top:1,scrollTop:1}),this.top(-Ln),void(si.onKill&&si.onKill());(Fr=-Fr)<0?(_n=Fr-.5|0,Fr=0):Fr>ir?(_n=Fr-ir|0,Fr=ir):_n=0,(_n||Wr)&&(this._skip||(dn[Cc]=$i+-$n+"px,"+-_n+Vi)),ti.scrollTop=0|Fr,Ln=ti.scrollTop},this.maxScrollTop=function(){return ir},this.maxScrollLeft=function(){return rr},this.disable=function(){for(ln=sn.firstChild;ln;)ki=ln.nextSibling,ti.appendChild(ln),ln=ki;ti===sn.parentNode&&ti.removeChild(sn)},this.enable=function(){if((ln=ti.firstChild)!==sn){for(;ln;)ki=ln.nextSibling,sn.appendChild(ln),ln=ki;ti.appendChild(sn),this.calibrate()}},this.calibrate=function(Fr){var qr,Jr,Wr,Ms=ti.clientWidth===di;Ln=ti.scrollTop,Sr=ti.scrollLeft,Ms&&ti.clientHeight===vi&&sn.offsetHeight===_i&&lr===ti.scrollWidth&&Gn===ti.scrollHeight&&!Fr||((_n||$n)&&(Jr=this.left(),Wr=this.top(),this.left(-ti.scrollLeft),this.top(-ti.scrollTop)),qr=Kd(ti),Ms&&!Fr||(dn.display="block",dn.width="auto",dn.paddingRight="0px",(mr=Math.max(0,ti.scrollWidth-ti.clientWidth))&&(mr+=parseFloat(qr.paddingLeft)+(Hu?parseFloat(qr.paddingRight):0))),dn.display="inline-block",dn.position="relative",dn.overflow="visible",dn.verticalAlign="top",dn.boxSizing="content-box",dn.width="100%",dn.paddingRight=mr+"px",Hu&&(dn.paddingBottom=qr.paddingBottom),di=ti.clientWidth,vi=ti.clientHeight,lr=ti.scrollWidth,Gn=ti.scrollHeight,rr=ti.scrollWidth-di,ir=ti.scrollHeight-vi,_i=sn.offsetHeight,dn.display="block",(Jr||Wr)&&(this.left(Jr),this.top(Wr)))},this.content=sn,this.element=ti,this._skip=!1,this.enable()},_h=function(ti){if(rl()&&document.body){var si=window&&window.navigator;Lr=window,ns=document,Ss=ns.documentElement,ds=ns.body,Is=Uu("div"),Wl=!!window.PointerEvent,(ho=Uu("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Hl=ho.style.cursor==="grab"?"grab":"move",Pa=si&&si.userAgent.toLowerCase().indexOf("android")!==-1,No="ontouchstart"in Ss&&"orientation"in Lr||si&&(si.MaxTouchPoints>0||si.msMaxTouchPoints>0),vi=Uu("div"),_i=Uu("div"),ki=_i.style,$i=ds,ki.display="inline-block",ki.position="relative",vi.style.cssText=_i.innerHTML="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",vi.appendChild(_i),$i.appendChild(vi),di=_i.offsetHeight+18>vi.scrollHeight,$i.removeChild(vi),Hu=di,lo=function(Vi){for(var sn=Vi.split(","),dn=("onpointerdown"in Is?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in Is?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":Vi).split(","),ln={},_n=4;--_n>-1;)ln[sn[_n]]=dn[_n],ln[dn[_n]]=sn[_n];try{Ss.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){ia=1}}))}catch{}return ln}("touchstart,touchmove,touchend,touchcancel"),cc(ns,"touchcancel",Za),cc(Lr,"touchmove",Za),ds&&ds.addEventListener("touchstart",Za),cc(ns,"contextmenu",function(){for(var Vi in Xh)Xh[Vi].isPressed&&Xh[Vi].endDrag(
158)}),ss=ko=Ha()}var di,vi,_i,ki,$i;ss?(ha=ss.plugins.inertia,Js=ss.utils.checkPrefix,Cc=Js(Cc),Mp=Js(Mp),_o=ss.utils.toArray,gu=!!Js("perspective")):ti&&console.warn("Please gsap.registerPlugin(Draggable)")},ec=function(ti){var si,di;function vi(_i,ki){var $i;$i=ti.call(this)||this,ko||_h(1),_i=_o(_i)[0],ha||(ha=ss.plugins.inertia),$i.vars=ki=nd(ki||{}),$i.target=_i,$i.x=$i.y=$i.rotation=0,$i.dragResistance=parseFloat(ki.dragResistance)||0,$i.edgeResistance=isNaN(ki.edgeResistance)?1:parseFloat(ki.edgeResistance)||0,$i.lockAxis=ki.lockAxis,$i.autoScroll=ki.autoScroll||0,$i.lockedAxis=null,$i.allowEventDefault=!!ki.allowEventDefault,ss.getProperty(_i,"x");var Vi,sn,dn,ln,_n,$n,Ln,Sr,lr,Gn,mr,rr,ir,Fr,qr,Jr,Wr,Ms,Ps,Xs,eo,oo,Cs,Zs,Io,Eo,pa,Ia,Da,Ka,wa,fl,Tl=(ki.type||"x,y").toLowerCase(),Ll=~Tl.indexOf("x")||~Tl.indexOf("y"),Ca=Tl.indexOf("rotation")!==-1,dc=Ca?"rotation":Ll?"x":"left",$p=Ll?"y":"top",Xl=!(!~Tl.indexOf("x")&&!~Tl.indexOf("left")&&Tl!=="scroll"),ic=!(!~Tl.indexOf("y")&&!~Tl.indexOf("top")&&Tl!=="scroll"),Kh=ki.minimumMovement||2,Xn=function(Ur){if(Ur===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ur}($i),iu=_o(ki.trigger||ki.handle||_i),e0={},uy=0,Fp=!1,kv=ki.autoScrollMarginTop||40,dy=ki.autoScrollMarginRight||40,Pv=ki.autoScrollMarginBottom||40,Iv=ki.autoScrollMarginLeft||40,hy=ki.clickableTest||Dv,wh=0,Dc=_i._gsap||ss.core.getCache(_i),Vf=function Ur(Ts){return Kd(Ts).position==="fixed"||((Ts=Ts.parentNode)&&Ts.nodeType===1?Ur(Ts):void 0)}(_i),Qd=function(Ur,Ts){return parseFloat(Dc.get(_i,Ur,Ts))},fa=_i.ownerDocument||ns,t0=function(Ur){return Fc(Ur),Ur.stopImmediatePropagation&&Ur.stopImmediatePropagation(),!1},Td=function Ur(Ts){if(Xn.autoScroll&&Xn.isDragging&&(Fp||Wr)){var es,Us,io,po,bo,na,Xo,sl,hc=_i,Ja=15*Xn.autoScroll;for(Fp=!1,Zd.scrollTop=Lr.pageYOffset!=null?Lr.pageYOffset:fa.documentElement.scrollTop!=null?fa.documentElement.scrollTop:fa.body.scrollTop,Zd.scrollLeft=Lr.pageXOffset!=null?Lr.pageXOffset:fa.documentElement.scrollLeft!=null?fa.documentElement.scrollLeft:fa.body.scrollLeft,po=Xn.pointerX-Zd.scrollLeft,bo=Xn.pointerY-Zd.scrollTop;hc&&!Us;)es=(Us=eu(hc.parentNode))?Zd:hc.parentNode,io=Us?{bottom:Math.max(Ss.clientHeight,Lr.innerHe
158ight||0),right:Math.max(Ss.clientWidth,Lr.innerWidth||0),left:0,top:0}:es.getBoundingClientRect(),na=Xo=0,ic&&((sl=es._gsMaxScrollY-es.scrollTop)<0?Xo=sl:bo>io.bottom-Pv&&sl?(Fp=!0,Xo=Math.min(sl,Ja*(1-Math.max(0,io.bottom-bo)/Pv)|0)):bo<io.top+kv&&es.scrollTop&&(Fp=!0,Xo=-Math.min(es.scrollTop,Ja*(1-Math.max(0,bo-io.top)/kv)|0)),Xo&&(es.scrollTop+=Xo)),Xl&&((sl=es._gsMaxScrollX-es.scrollLeft)<0?na=sl:po>io.right-dy&&sl?(Fp=!0,na=Math.min(sl,Ja*(1-Math.max(0,io.right-po)/dy)|0)):po<io.left+Iv&&es.scrollLeft&&(Fp=!0,na=-Math.min(es.scrollLeft,Ja*(1-Math.max(0,po-io.left)/Iv)|0)),na&&(es.scrollLeft+=na)),Us&&(na||Xo)&&(Lr.scrollTo(es.scrollLeft,es.scrollTop),ig(Xn.pointerX+na,Xn.pointerY+Xo)),hc=es}if(Wr){var Zl=Xn.x,nu=Xn.y;Ca?(Xn.deltaX=Zl-parseFloat(Dc.rotation),Xn.rotation=Zl,Dc.rotation=Zl+"deg",Dc.renderTransform(1,Dc)):sn?(ic&&(Xn.deltaY=nu-sn.top(),sn.top(nu)),Xl&&(Xn.deltaX=Zl-sn.left(),sn.left(Zl))):Ll?(ic&&(Xn.deltaY=nu-parseFloat(Dc.y),Dc.y=nu+"px"),Xl&&(Xn.deltaX=Zl-parseFloat(Dc.x),Dc.x=Zl+"px"),Dc.renderTransform(1,Dc)):(ic&&(Xn.deltaY=nu-parseFloat(_i.style.top||0),_i.style.top=nu+"px"),Xl&&(Xn.deltaX=Zl-parseFloat(_i.style.left||0),_i.style.left=Zl+"px")),!Sr||Ts||Ia||(Ia=!0,ql(Xn,"drag","onDrag")===!1&&(Xl&&(Xn.x-=Xn.deltaX),ic&&(Xn.y-=Xn.deltaY),Ur(!0)),Ia=!1)}Wr=!1},Hf=function(Ur,Ts){var es,Us,io=Xn.x,po=Xn.y;_i._gsap||(Dc=ss.core.getCache(_i)),Dc.uncache&&ss.getProperty(_i,"x"),Ll?(Xn.x=parseFloat(Dc.x),Xn.y=parseFloat(Dc.y)):Ca?Xn.x=Xn.rotation=parseFloat(Dc.rotation):sn?(Xn.y=sn.top(),Xn.x=sn.left()):(Xn.y=parseFloat(_i.style.top||(Us=Kd(_i))&&Us.top)||0,Xn.x=parseFloat(_i.style.left||(Us||{}).left)||0),(Ps||Xs||eo)&&!Ts&&(Xn.isDragging||Xn.isThrowing)&&(eo&&(tf.x=Xn.x,tf.y=Xn.y,(es=eo(tf)).x!==Xn.x&&(Xn.x=es.x,Wr=!0),es.y!==Xn.y&&(Xn.y=es.y,Wr=!0)),Ps&&(es=Ps(Xn.x))!==Xn.x&&(Xn.x=es,Ca&&(Xn.rotation=es),Wr=!0),Xs&&((es=Xs(Xn.y))!==Xn.y&&(Xn.y=es),Wr=!0)),Wr&&Td(!0),Ur||(Xn.deltaX=Xn.x-io,Xn.deltaY=Xn.y-po,ql(Xn,"throwupdate","onThrowUpdate"))},py=function(Ur,Ts,es,Us){return Ts==null&&(Ts=-1e20),es==null&&(es=1e20),Yo(Ur)?function(io){var po=Xn.isPressed?1-Xn.edgeResistance:1;return Ur.call(Xn,io>es?es+(io-es)*po:io<Ts?Ts+(io-Ts)*po:io)*Us}:gd(Ur)?function(io){for(var po,bo,na=Ur.length,Xo=0,sl=1e20;--na>-1;)(bo=(po=Ur[na])-io)<0&&(bo=-bo),bo<sl&&po>=Ts&&po<=es&&(Xo=na,sl=bo);return Ur[Xo]}:isNaN(Ur)?function(io){return io}:function(){return Ur*Us}},fy=function(){var Ur,Ts,es,Us;Ln=!1,sn?(sn.calibrate(),Xn.minX=mr=-sn.maxScrollLeft(),Xn.minY=ir=-sn.maxScrollTop(),Xn.maxX=Gn=Xn.maxY=rr=0,Ln=!0):ki.bounds&&(Ur=iy(ki.bounds,_i.parentNode),Ca?(Xn.minX=mr=Ur.left,Xn.maxX=Gn=Ur.left+Ur.width,Xn.minY=ir=Xn.maxY=rr=0):pl(ki.bounds.maxX)&&pl(ki.bounds.maxY)?(Ts=iy(_i,_i.parentNode),Xn.minX=mr=Math.round(Qd(dc,"px")+Ur.left-Ts.left),Xn.minY=ir=Math.round(Qd($p,"px")+Ur.top-Ts.top),Xn.maxX=Gn=Math.round(mr+(Ur.width-Ts.width)),Xn.maxY=rr=Math.round(ir+(Ur.height-Ts.height))):(Ur=ki.bounds,Xn.minX=mr=Ur.minX,Xn.minY=ir=Ur.minY,Xn.maxX=Gn=Ur.maxX,Xn.maxY=rr=Ur.maxY),mr>Gn&&(Xn.minX=Gn,Xn.maxX=Gn=mr,mr=Xn.minX),ir>rr&&(Xn.minY=rr,Xn.maxY=rr=ir,ir=Xn.minY),Ca&&(Xn.minRotation=mr,Xn.maxRotation=Gn),Ln=!0),ki.liveSnap&&(es=ki.liveSnap===!0?ki.snap||{}:ki.liveSnap,Us=gd(es)||Yo(es),Ca?(Ps=py(Us?es:es.rotation,mr,Gn,1),Xs=null):es.points?eo=function(io,po,bo,na,Xo,sl,hc){return sl=sl&&sl<1e20?sl*sl:1e20,Yo(io)?function(Ja){var Zl,nu,Jh,Qh=Xn.isPressed?1-Xn.edgeResistance:1,pc=Ja.x,Ed=Ja.y;return Ja.x=pc=pc>bo?bo+(pc-bo)*Qh:pc<po?po+(pc-po)*Qh:pc,Ja.y=Ed=Ed>Xo?Xo+(Ed-Xo)*Qh:Ed<na?na+(Ed-na)*Qh:Ed,(Zl=io.call(Xn,Ja))!==Ja&&(Ja.x=Zl.x,Ja.y=Zl.y),hc!==1&&(Ja.x*=hc,Ja.y*=hc),sl<1e20&&(nu=Ja.x-pc)*nu+(Jh=Ja.y-Ed)*Jh>sl&&(Ja.x=pc,Ja.y=Ed),Ja}:gd(io)?function(Ja){for(var Zl,nu,Jh,Qh,pc=io.length,Ed=0,Gf=1e20;--pc>-1;)(Qh=(Zl=(Jh=io[pc]).x-Ja.x)*Zl+(nu=Jh.y-Ja.y)*nu)<Gf&&(Ed=pc,Gf=Qh);return Gf<=sl?io[Ed]:Ja}:function(Ja){return Ja}}(Us?es:es.points,mr,Gn,ir,rr,es.radius,sn?-1:1):(Xl&&(Ps=py(Us?es:es.x||es.left||es.scrollLeft,mr,Gn,sn?-1:1)),ic&&(Xs=py(Us?es:es.y||es.top||es.scrollTop,ir,rr,sn?-1:1))))},my=function(){Xn.isThrowing=!1,ql(Xn,"throwcomplete","onThrowComplete")},i0=function(){Xn.isThrowing=!1},n0=function(Ur,Ts){var es,Us,io,po;Ur&&ha?(Ur===!0&&(es=ki.snap||ki.liveSnap||{},Us=gd(es)||Yo(es),Ur={resistance:(ki.throwResistance||ki.resistance||1e3)/(Ca?10:1)},Ca?Ur.rotation=Wg(Xn,Us?es:es.rotation,Gn,mr,1,Ts):(Xl&&(Ur[dc]=Wg(Xn,Us?es:es.points||es.x||es.left,Gn,mr,sn?-1:1,Ts||Xn.lockedAxis==="x")),ic&&(Ur[$p]=Wg(Xn,Us?es:es.points||es.y||es.top,rr,ir,
158sn?-1:1,Ts||Xn.lockedAxis==="y")),(es.points||gd(es)&&wl(es[0]))&&(Ur.linkedProps=dc+","+$p,Ur.radius=es.radius))),Xn.isThrowing=!0,po=isNaN(ki.overshootTolerance)?ki.edgeResistance===1?0:1-Xn.edgeResistance+.2:ki.overshootTolerance,Ur.duration||(Ur.duration={max:Math.max(ki.minDuration||0,"maxDuration"in ki?ki.maxDuration:2),min:isNaN(ki.minDuration)?po===0||wl(Ur)&&Ur.resistance>1e3?0:.5:ki.minDuration,overshoot:po}),Xn.tween=io=ss.to(sn||_i,{inertia:Ur,data:"_draggable",onComplete:my,onInterrupt:i0,onUpdate:ki.fastMode?ql:Hf,onUpdateParams:ki.fastMode?[Xn,"onthrowupdate","onThrowUpdate"]:es&&es.radius?[!1,!0]:[]}),ki.fastMode||(sn&&(sn._skip=!0),io.render(1e9,!0,!0),Hf(!0,!0),Xn.endX=Xn.x,Xn.endY=Xn.y,Ca&&(Xn.endRotation=Xn.x),io.play(0),Hf(!0,!0),sn&&(sn._skip=!1))):Ln&&Xn.applyBounds()},mf=function(Ur){var Ts,es=Zs;Zs=Vu(_i.parentNode,!0),Ur&&Xn.isPressed&&!Zs.equals(es||new ef)&&(Ts=es.inverse().apply({x:dn,y:ln}),Zs.apply(Ts,Ts),dn=Ts.x,ln=Ts.y),Zs.equals(kp)&&(Zs=null)},yf=function(){var Ur,Ts,es,Us=1-Xn.edgeResistance,io=Vf?mh(fa):0,po=Vf?fh(fa):0;mf(!1),vd.x=Xn.pointerX-io,vd.y=Xn.pointerY-po,Zs&&Zs.apply(vd,vd),dn=vd.x,ln=vd.y,Wr&&(ig(Xn.pointerX,Xn.pointerY),Td(!0)),fl=Vu(_i),sn?(fy(),$n=sn.top(),_n=sn.left()):(bm()?(Hf(!0,!0),fy()):Xn.applyBounds(),Ca?(Ur=_i.ownerSVGElement?[Dc.xOrigin-_i.getBBox().x,Dc.yOrigin-_i.getBBox().y]:(Kd(_i)[Mp]||"0 0").split(" "),Jr=Xn.rotationOrigin=Vu(_i).apply({x:parseFloat(Ur[0])||0,y:parseFloat(Ur[1])||0}),Hf(!0,!0),Ts=Xn.pointerX-Jr.x-io,es=Jr.y-Xn.pointerY+po,_n=Xn.x,$n=Xn.y=Math.atan2(es,Ts)*yd):($n=Qd($p,"px"),_n=Qd(dc,"px"))),Ln&&Us&&(_n>Gn?_n=Gn+(_n-Gn)/Us:_n<mr&&(_n=mr-(mr-_n)/Us),Ca||($n>rr?$n=rr+($n-rr)/Us:$n<ir&&($n=ir-(ir-$n)/Us))),Xn.startX=_n=Cu(_n),Xn.startY=$n=Cu($n)},bm=function(){return Xn.tween&&Xn.tween.isActive()},$1=function(){!ho.parentNode||bm()||Xn.isDragging||ho.parentNode.removeChild(ho)},vf=function(Ur,Ts){var es;if(!Vi||Xn.isPressed||!Ur||!(Ur.type!=="mousedown"&&Ur.type!=="pointerdown"||Ts)&&Gu()-wh<30&&lo[Xn.pointerEvent.type])wa&&Ur&&Vi&&Fc(Ur);else{if(Io=bm(),Xn.pointerEvent=Ur,lo[Ur.type]?(Cs=~Ur.type.indexOf("touch")?Ur.currentTarget||Ur.target:fa,cc(Cs,"touchend",Sh),cc(Cs,"touchmove",Uf),cc(Cs,"touchcancel",Sh),cc(fa,"touchstart",ty)):(Cs=null,cc(fa,"mousemove",Uf)),pa=null,Wl&&Cs||(cc(fa,"mouseup",Sh),Ur&&Ur.target&&cc(Ur.target,"mouseup",Sh)),oo=hy.call(Xn,Ur.target)&&ki.dragClickables===!1&&!Ts)return cc(Ur.target,"change",Sh),ql(Xn,"pressInit","onPressInit"),ql(Xn,"press","onPress"),Il(iu,!0),void(wa=!1);var Us;if(Eo=!(!Cs||Xl===ic||Xn.vars.allowNativeTouchScrolling===!1||Xn.vars.allowContextMenu&&Ur&&(Ur.ctrlKey||Ur.which>2))&&(Xl?"y":"x"),(wa=!Eo&&!Xn.allowEventDefault)&&(Fc(Ur),cc(Lr,"touchforcechange",Fc)),Ur.changedTouches?(Ur=Fr=Ur.changedTouches[0],qr=Ur.identifier):Ur.pointerId?qr=Ur.pointerId:Fr=qr=null,Ea++,Us=Td,Oo.push(Us),Oo.length===1&&ss.ticker.add(nf),ln=Xn.pointerY=Ur.pageY,dn=Xn.pointerX=Ur.pageX,ql(Xn,"pressInit","onPressInit"),(Eo||Xn.autoScroll)&&yu(_i.parentNode),!_i.parentNode||!Xn.autoScroll||sn||Ca||!_i.parentNode._gsMaxScrollX||ho.parentNode||_i.getBBox||(ho.style.width=_i.parentNode.scrollWidth+"px",_i.parentNode.appendChild(ho)),yf(),Xn.tween&&Xn.tween.kill(),Xn.isThrowing=!1,ss.killTweensOf(sn||_i,e0,!0),sn&&ss.killTweensOf(_i,{scrollTo:1},!0),Xn.tween=Xn.lockedAxis=null,(ki.zIndexBoost||!Ca&&!sn&&ki.zIndexBoost!==!1)&&(_i.style.zIndex=vi.zIndex++),Xn.isPressed=!0,Sr=!(!ki.onDrag&&!Xn._listeners.drag),lr=!(!ki.onMove&&!Xn._listeners.move),ki.cursor!==!1||ki.activeCursor)for(es=iu.length;--es>-1;)ss.set(iu[es],{cursor:ki.activeCursor||ki.cursor||(Hl==="grab"?"grabbing":Hl)});ql(Xn,"press","onPress")}},Uf=function(Ur){var Ts,es,Us,io,po,bo,na=Ur;if(Vi&&!Va&&Xn.isPressed&&Ur){if(Xn.pointerEvent=Ur,Ts=Ur.changedTouches){if((Ur=Ts[0])!==Fr&&Ur.identifier!==qr){for(io=Ts.length;--io>-1&&(Ur=Ts[io]).identifier!==qr&&Ur.target!==_i;);if(io<0)return}}else if(Ur.pointerId&&qr&&Ur.pointerId!==qr)return;Cs&&Eo&&!pa&&(vd.x=Ur.pageX-(Vf?mh(fa):0),vd.y=Ur.pageY-(Vf?fh(fa):0),Zs&&Zs.apply(vd,vd),es=vd.x,Us=vd.y,((po=Math.abs(es-dn))!==(bo=Math.abs(Us-ln))&&(po>Kh||bo>Kh)||Pa&&Eo===pa)&&(pa=po>bo&&Xl?"x":"y",Eo&&pa!==Eo&&cc(Lr,"touchforcechange",Fc),Xn.vars.lockAxisOnTouchScroll!==!1&&Xl&&ic&&(Xn.lockedAxis=pa==="x"?"y":"x",Yo(Xn.vars.onLockAxis)&&Xn.vars.onLockAxis.call(Xn,na)),Pa&&Eo===pa))?Sh(na):(Xn.allowEventDefault||Eo&&(!pa||Eo===pa)||na.cancelable===!1?wa&&(wa=!1):(Fc(na),wa=!0),Xn.autoScroll&&(Fp=!0),ig(Ur.pageX,Ur.pageY,lr))}else wa&&Ur&&Vi&&Fc(Ur)},ig=function(Ur,Ts,es){var Us,io,po,bo,na,Xo,sl=1-Xn.dragResistance,hc=1-Xn.edgeResistance,Ja=Xn.pointerX,Zl=Xn.pointerY,nu=$n,Jh=Xn.x,Qh=Xn.y,pc=Xn.endX,Ed=Xn.endY,Gf=Xn.endRotation,F1=Wr;Xn.pointerX=Ur,Xn.pointerY=Ts,Vf&&(Ur-=mh(fa),Ts-=fh(fa)),Ca?(bo=Math.atan2(Jr.y-Ts,Ur-Jr.x)*yd,(na=Xn.y-bo)>180?($n-=360,Xn.y=bo):na<-180&&($n+=360,Xn.y=bo),Xn.x!==_n||Math.abs($n-bo)>Kh?(Xn.y=bo,po=_n+($n-bo)*sl):po=_n):(Zs&&(Xo=Ur*Zs.a+Ts*Zs.c+Zs.e,Ts=Ur*Zs.b+Ts*Zs.d+Zs.f,Ur=Xo),(io=Ts-ln)<Kh&&io>-Kh&&(io=0),(Us=Ur-dn)<Kh&&Us>-Kh&&(Us=0),(Xn.lockAxis||Xn.lockedAxis)&&(Us||io)&&((Xo=Xn.lockedAxis)||(Xn.lockedAxis=Xo=Xl&&Math.abs(Us)>Math.abs(io)?"y":ic?"x":null,Xo&&Yo(Xn.vars.onLockAxis)&&Xn.vars.onLockAxis.call(Xn,Xn.pointerEvent)),Xo==="y"?io=0:Xo==="x"&&(Us=0)),po=Cu(_n+Us*sl),bo=Cu($n+io*sl)),(Ps||Xs||eo)&&(Xn.x!==po||Xn.y!==bo&&!Ca)&&(eo&&(tf.x=po,tf.y=bo,Xo=eo(tf),po=Cu(Xo.x),bo=Cu(Xo.y)),Ps&&(po=Cu(Ps(po))),Xs&&(bo=Cu(Xs(bo)))),Ln&&(po>Gn?po=Gn+Math.round((po-Gn)*hc):po<mr&&(po=mr+Math.round((po-mr)*hc)),Ca||(bo>rr?bo=Math.round(rr+(bo-rr)*hc):bo<ir&&(bo=Math.round(ir+(bo-ir)*hc)))),(Xn.x!==po||Xn.y!==bo&&!Ca)&&(Ca?(Xn.endRotation=Xn.x=Xn.endX=po,Wr=!0):(ic&&(Xn.y=Xn.endY=bo,Wr=!0),Xl&&(Xn.x=Xn.endX=po,Wr=!0)),es&&ql(Xn,"move","onMove")===!1?(Xn.pointerX=Ja,Xn.pointerY=Zl,$
158n=nu,Xn.x=Jh,Xn.y=Qh,Xn.endX=pc,Xn.endY=Ed,Xn.endRotation=Gf,Wr=F1):!Xn.isDragging&&Xn.isPressed&&(Xn.isDragging=!0,ql(Xn,"dragstart","onDragStart")))},Sh=function Ur(Ts,es){if(Vi&&Xn.isPressed&&(!Ts||qr==null||es||!(Ts.pointerId&&Ts.pointerId!==qr&&Ts.target!==_i||Ts.changedTouches&&!function(Zl,nu){for(var Jh=Zl.length;Jh--;)if(Zl[Jh].identifier===nu)return!0}(Ts.changedTouches,qr)))){Xn.isPressed=!1;var Us,io,po,bo,na,Xo=Ts,sl=Xn.isDragging,hc=Xn.vars.allowContextMenu&&Ts&&(Ts.ctrlKey||Ts.which>2),Ja=ss.delayedCall(.001,$1);if(Cs?(Ya(Cs,"touchend",Ur),Ya(Cs,"touchmove",Uf),Ya(Cs,"touchcancel",Ur),Ya(fa,"touchstart",ty)):Ya(fa,"mousemove",Uf),Ya(Lr,"touchforcechange",Fc),Wl&&Cs||(Ya(fa,"mouseup",Ur),Ts&&Ts.target&&Ya(Ts.target,"mouseup",Ur)),Wr=!1,sl&&(uy=Q0=Gu(),Xn.isDragging=!1),oo&&!hc)return Ts&&(Ya(Ts.target,"change",Ur),Xn.pointerEvent=Xo),Il(iu,!1),ql(Xn,"release","onRelease"),ql(Xn,"click","onClick"),void(oo=!1);for(pm(Td),io=iu.length;--io>-1;)Ip(iu[io],"cursor",ki.cursor||(ki.cursor!==!1?Hl:null));if(Ea--,Ts){if((Us=Ts.changedTouches)&&(Ts=Us[0])!==Fr&&Ts.identifier!==qr){for(io=Us.length;--io>-1&&(Ts=Us[io]).identifier!==qr&&Ts.target!==_i;);if(io<0)return}Xn.pointerEvent=Xo,Xn.pointerX=Ts.pageX,Xn.pointerY=Ts.pageY}return hc&&Xo?(Fc(Xo),wa=!0,ql(Xn,"release","onRelease")):Xo&&!sl?(wa=!1,Io&&(ki.snap||ki.bounds)&&n0(ki.inertia||ki.throwProps),ql(Xn,"release","onRelease"),Pa&&Xo.type==="touchmove"||Xo.type.indexOf("cancel")!==-1||(ql(Xn,"click","onClick"),Gu()-wh<300&&ql(Xn,"doubleclick","onDoubleClick"),bo=Xo.target||_i,wh=Gu(),na=function(){wh===Da||!Xn.enabled()||Xn.isPressed||Xo.defaultPrevented||(bo.click?bo.click():fa.createEvent&&((po=fa.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,Lr,1,Xn.pointerEvent.screenX,Xn.pointerEvent.screenY,Xn.pointerX,Xn.pointerY,!1,!1,!1,!1,0,null),bo.dispatchEvent(po)))},Pa||Xo.defaultPrevented||ss.delayedCall(.05,na))):(n0(ki.inertia||ki.throwProps),Xn.allowEventDefault||!Xo||ki.dragClickables===!1&&hy.call(Xn,Xo.target)||!sl||Eo&&(!pa||Eo!==pa)||Xo.cancelable===!1?wa=!1:(wa=!0,Fc(Xo)),ql(Xn,"release","onRelease")),bm()&&Ja.duration(Xn.tween.duration()),sl&&ql(Xn,"dragend","onDragEnd"),!0}wa&&Ts&&Vi&&Fc(Ts)},r0=function(Ur){if(Ur&&Xn.isDragging&&!sn){var Ts=Ur.target||_i.parentNode,es=Ts.scrollLeft-Ts._gsScrollX,Us=Ts.scrollTop-Ts._gsScrollY;(es||Us)&&(Zs?(dn-=es*Zs.a+Us*Zs.c,ln-=Us*Zs.d+es*Zs.b):(dn-=es,ln-=Us),Ts._gsScrollX+=es,Ts._gsScrollY+=Us,ig(Xn.pointerX,Xn.pointerY))}},s0=function(Ur){var Ts=Gu(),es=Ts-wh<100,Us=Ts-uy<50,io=es&&Da===wh,po=Xn.pointerEvent&&Xn.pointerEvent.defaultPrevented,bo=es&&Ka===wh,na=Ur.isTrusted||Ur.isTrusted==null&&es&&io;if((io||Us&&Xn.vars.suppressClickOnDrag!==!1)&&Ur.stopImmediatePropagation&&Ur.stopImmediatePropagation(),es&&(!Xn.pointerEvent||!Xn.pointerEvent.defaultPrevented)&&(!io||na&&!bo))return na&&io&&(Ka=wh),void(Da=wh);(Xn.isPressed||Us||es)&&(na&&Ur.detail&&es&&!po||Fc(Ur)),es||Us||(Ur&&Ur.target&&(Xn.pointerEvent=Ur),ql(Xn,"click","onClick"))},Rv=function(Ur){return Zs?{x:Ur.x*Zs.a+Ur.y*Zs.c+Zs.e,y:Ur.x*Zs.b+Ur.y*Zs.d+Zs.f}:{x:Ur.x,y:Ur.y}};return(Ms=vi.get(_i))&&Ms.kill(),$i.startDrag=function(Ur,Ts){var es,Us,io,po;vf(Ur||Xn.pointerEvent,!0),Ts&&!Xn.hitTest(Ur||Xn.pointerEvent)&&(es=Of(Ur||Xn.pointerEvent),Us=Of(_i),io=Rv({x:es.left+es.width/2,y:es.top+es.height/2}),po=Rv({x:Us.left+Us.width/2,y:Us.top+Us.height/2}),dn-=io.x-po.x,ln-=io.y-po.y),Xn.isDragging||(Xn.isDragging=!0,ql(Xn,"dragstart","onDragStart"))},$i.drag=Uf,$i.endDrag=function(Ur){return Sh(Ur||Xn.pointerEvent,!0)},$i.timeSinceDrag=function(){return Xn.isDragging?0:(Gu()-uy)/1e3},$i.timeSinceClick=function(){return(Gu()-wh)/1e3},$i.hitTest=function(Ur,Ts){return vi.hitTest(Xn.target,Ur,Ts)},$i.getDirection=function(Ur,Ts){var es,Us,io,po,bo,na,Xo=Ur==="velocity"&&ha?Ur:wl(Ur)&&!Ca?"element":"start";return Xo==="element"&&(bo=Of(Xn.target),na=Of(Ur)),es=Xo==="start"?Xn.x-_n:Xo==="velocity"?ha.getVelocity(_i,dc):bo.left+bo.width/2-(na.left+na.width/2),Ca?es<0?"counter-clockwise":"clockwise":(Ts=Ts||2,Us=Xo==="start"?Xn.y-$n:Xo==="velocity"?ha.getVelocity(_i,$p):bo.top+bo.height/2-(na.top+na.height/2),po=(io=Math.abs(es/Us))<1/Ts?"":es<0?"left":"right",io<Ts&&(po!==""&&(po+="-"),po+=Us<0?"up":"down"),po)},$i.applyBounds=function(Ur,Ts){var es,Us,io,po,bo,na;if(Ur&&ki.bounds!==Ur)return ki.bounds=Ur,Xn.update(!0,Ts);if(Hf(!0),fy(),Ln&&!bm()){if(es=Xn.x,Us=Xn.y,es>Gn?es=Gn:es<mr&&(es=mr),Us>rr?Us=rr:Us<ir&&(Us=ir),(Xn.x!==es||Xn.y!==Us)&&(io=!0,Xn.x=Xn.endX=es,Ca?Xn.endRotation=es:Xn.y=Xn.endY=Us,Wr=!0,Td(!0),Xn.autoScroll&&!Xn.isDragging))for(yu(_i.parentNode),po=_i,Zd.scrollTop=Lr.pageYOffset!=null?Lr.pageYOffset:fa.documentElement.scrollTop!=null?fa.documentElement.scrollTop:fa.body.scrollTop,Zd.scrollLeft=Lr.pageXOffset!=null?Lr.pageXOffset:fa.documentElement.scrollLeft!=null?fa.documentElement.scrollLeft:fa.body.scrollLeft;po&&!na;)bo=(na=eu(po.parentNode))?Zd:po.parentNode,ic&&bo.scrollTop>bo._gsMaxScrollY&&(bo.scrollTop=bo._gsMaxScrollY),Xl&&bo.scrollLeft>
158bo._gsMaxScrollX&&(bo.scrollLeft=bo._gsMaxScrollX),po=bo;Xn.isThrowing&&(io||Xn.endX>Gn||Xn.endX<mr||Xn.endY>rr||Xn.endY<ir)&&n0(ki.inertia||ki.throwProps,io)}return Xn},$i.update=function(Ur,Ts,es){if(Ts&&Xn.isPressed){var Us=Vu(_i),io=fl.apply({x:Xn.x-_n,y:Xn.y-$n}),po=Vu(_i.parentNode,!0);po.apply({x:Us.e-io.x,y:Us.f-io.y},io),Xn.x-=io.x-po.e,Xn.y-=io.y-po.f,Td(!0),yf()}var bo=Xn.x,na=Xn.y;return mf(!Ts),Ur?Xn.applyBounds():(Wr&&es&&Td(!0),Hf(!0)),Ts&&(ig(Xn.pointerX,Xn.pointerY),Wr&&Td(!0)),Xn.isPressed&&!Ts&&(Xl&&Math.abs(bo-Xn.x)>.01||ic&&Math.abs(na-Xn.y)>.01&&!Ca)&&yf(),Xn.autoScroll&&(yu(_i.parentNode,Xn.isDragging),Fp=Xn.isDragging,Td(!0),gh(_i,r0),Pp(_i,r0)),Xn},$i.enable=function(Ur){var Ts,es,Us,io={lazy:!0};if(ki.cursor!==!1&&(io.cursor=ki.cursor||Hl),ss.utils.checkPrefix("touchCallout")&&(io.touchCallout="none"),Ur!=="soft"){for(jg(iu,Xl===ic?"none":ki.allowNativeTouchScrolling&&_i.scrollHeight===_i.clientHeight==(_i.scrollWidth===_i.clientHeight)||ki.allowEventDefault?"manipulation":Xl?"pan-y":"pan-x"),es=iu.length;--es>-1;)Us=iu[es],Wl||cc(Us,"mousedown",vf),cc(Us,"touchstart",vf),cc(Us,"click",s0,!0),ss.set(Us,io),Us.getBBox&&Us.ownerSVGElement&&ss.set(Us.ownerSVGElement,{touchAction:Xl===ic?"none":ki.allowNativeTouchScrolling||ki.allowEventDefault?"manipulation":Xl?"pan-y":"pan-x"}),ki.allowContextMenu||cc(Us,"contextmenu",t0);Il(iu,!1)}return Pp(_i,r0),Vi=!0,ha&&Ur!=="soft"&&ha.track(sn||_i,Ll?"x,y":Ca?"rotation":"top,left"),_i._gsDragID=Ts="d"+Av++,Xh[Ts]=Xn,sn&&(sn.enable(),sn.element._gsDragID=Ts),(ki.bounds||Ca)&&yf(),ki.bounds&&Xn.applyBounds(),Xn},$i.disable=function(Ur){for(var Ts,es=Xn.isDragging,Us=iu.length;--Us>-1;)Ip(iu[Us],"cursor",null);if(Ur!=="soft"){for(jg(iu,null),Us=iu.length;--Us>-1;)Ts=iu[Us],Ip(Ts,"touchCallout",null),Ya(Ts,"mousedown",vf),Ya(Ts,"touchstart",vf),Ya(Ts,"click",s0),Ya(Ts,"contextmenu",t0);Il(iu,!0),Cs&&(Ya(Cs,"touchcancel",Sh),Ya(Cs,"touchend",Sh),Ya(Cs,"touchmove",Uf)),Ya(fa,"mouseup",Sh),Ya(fa,"mousemove",Uf)}return gh(_i,r0),Vi=!1,ha&&Ur!=="soft"&&ha.untrack(sn||_i,Ll?"x,y":Ca?"rotation":"top,left"),sn&&sn.disable(),pm(Td),Xn.isDragging=Xn.isPressed=oo=!1,es&&ql(Xn,"dragend","onDragEnd"),Xn},$i.enabled=function(Ur,Ts){return arguments.length?Ur?Xn.enable(Ts):Xn.disable(Ts):Vi},$i.kill=function(){return Xn.isThrowing=!1,Xn.tween&&Xn.tween.kill(),Xn.disable(),ss.set(iu,{clearProps:"userSelect"}),delete Xh[_i._gsDragID],Xn},~Tl.indexOf("scroll")&&(sn=$i.scrollProxy=new So(_i,function(Ur,Ts){for(var es in Ts)es in Ur||(Ur[es]=Ts[es]);return Ur}({onKill:function(){Xn.isPressed&&Sh(null)}},ki)),_i.style.overflowY=ic&&!No?"auto":"hidden",_i.style.overflowX=Xl&&!No?"auto":"hidden",_i=sn.content),Ca?e0.rotation=1:(Xl&&(e0[dc]=1),ic&&(e0[$p]=1)),Dc.force3D=!("force3D"in ki)||ki.force3D,$i.enable(),$i}return di=ti,(si=vi).prototype=Object.create(di.prototype),si.prototype.constructor=si,si.__proto__=di,vi.register=function(_i){ss=_i,_h()},vi.create=function(_i,ki){return ko||_h(!0),_o(_i).map(function($i){return new vi($i,ki)})},vi.get=function(_i){return Xh[(_o(_i)[0]||{})._gsDragID]},vi.timeSinceDrag=function(){return(Gu()-Q0)/1e3},vi.hitTest=function(_i,ki,$i){if(_i===ki)return!1;var Vi,sn,dn,ln=Of(_i),_n=Of(ki),$n=ln.top,Ln=ln.left,Sr=ln.right,lr=ln.bottom,Gn=ln.width,mr=ln.height,rr=_n.left>Sr||_n.right<Ln||_n.top>lr||_n.bottom<$n;return rr||!$i?!rr:(dn=($i+"").indexOf("%")!==-1,$i=parseFloat($i)||0,(Vi={left:Math.max(Ln,_n.left),top:Math.max($n,_n.top)}).width=Math.min(Sr,_n.right)-Vi.left,Vi.height=Math.min(lr,_n.bottom)-Vi.top,!(Vi.width<0||Vi.height<0)&&(dn?($i*=.01,(sn=Vi.width*Vi.height)>=Gn*mr*$i||sn>=_n.width*_n.height*$i):Vi.width>$i&&Vi.height>$i))},vi}(function(){function ti(di){this._listeners={},this.target=di||this}var si=ti.prototype;return si.addEventListener=function(di,vi){var _i=this._listeners[di]||(this._listeners[di]=[]);~_i.indexOf(vi)||_i.push(vi)},si.removeEventListener=function(di,vi){var _i=this._listeners[di],ki=_i&&_i.indexOf(vi)||-1;ki>-1&&_i.splice(ki,1)},si.dispatchEvent=function(di){var vi,_i=this;
158return(this._listeners[di]||[]).forEach(function(ki){return ki.call(_i,{type:di,target:_i.target})===!1&&(vi=!1)}),vi},ti}());(function(ti,si){for(var di in si)di in ti||(ti[di]=si[di])})(ec.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),ec.zIndex=1e3,ec.version="3.9.1",Ha()&&ss.registerPlugin(ec);/*!
159 * VelocityTracker: 3.9.1
160 * https://greensock.com
161 *
162 * Copyright 2008-2021, GreenSock. All rights reserved.
163 * Subject to the terms at https://greensock.com/standard-license or for
164 * Club GreenSock members, the agreement issued with that membership.
165 * @author: Jack Doyle, [email protected]
166*/var nl,qg,fm,ju,_d,bd,sf,of,Xm=function(){return nl||typeof window<"u"&&(nl=window.gsap)},bh={},af=function(ti){return of(ti).id},mm=function(ti){return bh[af(typeof ti=="string"?fm(ti)[0]:ti)]},ny=function(ti){var si,di=_d;if(ti-sf>=.05)for(sf=ti;di;)((si=di.g(di.t,di.p))!==di.v1||ti-di.t1>.2)&&(di.v2=di.v1,di.v1=si,di.t2=di.t1,di.t1=ti),di=di._next},Xg={deg:360,rad:2*Math.PI},Lf=function(){(nl=Xm())&&(fm=nl.utils.toArray,ju=nl.utils.getUnit,of=nl.core.getCache,bd=nl.ticker,qg=1)},gm=function(ti,si,di,vi){this.t=ti,this.p=si,this.g=ti._gsap.get,this.rCap=Xg[di||ju(this.g(ti,si))],this.v1=this.v2=0,this.t1=this.t2=bd.time,vi&&(this._next=vi,vi._prev=this)},xd=function(){function ti(di,vi){qg||Lf(),this.target=fm(di)[0],bh[af(this.target)]=this,this._props={},vi&&this.add(vi)}ti.register=function(di){nl=di,Lf()};var si=ti.prototype;return si.get=function(di,vi){var _i,ki,$i,Vi=this._props[di]||console.warn("Not tracking "+di+" velocity.");return _i=parseFloat(vi?Vi.v1:Vi.g(Vi.t,Vi.p))-parseFloat(Vi.v2),(ki=Vi.rCap)&&(_i%=ki)!==_i%(ki/2)&&(_i=_i<0?_i+ki:_i-ki),$i=_i/((vi?Vi.t1:bd.time)-Vi.t2),Math.round(1e4*$i)/1e4},si.getAll=function(){var di,vi={},_i=this._props;for(di in _i)vi[di]=this.get(di);return vi},si.isTracking=function(di){return di in this._props},si.add=function(di,vi){di in this._props||(_d||(bd.add(ny),sf=bd.time),_d=this._props[di]=new gm(this.target,di,vi,_d))},si.remove=function(di){var vi,_i,ki=this._props[di];ki&&(vi=ki._prev,_i=ki._next,vi&&(vi._next=_i),_i?_i._prev=vi:_d===ki&&(bd.remove(ny),_d=0),delete this._props[di])},si.kill=function(di){for(var vi in this._props)this.remove(vi);di||delete bh[af(this.target)]},ti.track=function(di,vi,_i){qg||Lf();for(var ki,$i,Vi=[],sn=fm(di),dn=vi.split(","),ln=(_i||"").split(","),_n=sn.length;_n--;){for(ki=mm(sn[_n])||new ti(sn[_n]),$i=dn.length;$i--;)ki.add(dn[$i],ln[$i]||ln[0]);Vi.push(ki)}return Vi},ti.untrack=function(di,vi){var _i=(vi||"").split(",");fm(di).forEach(function(ki){var $i=mm(ki);$i&&(_i.length?_i.forEach(function(Vi){return $i.remove(Vi)}):$i.kill(1))})},ti.isTracking=function(di,vi){var _i=mm(di);return _i&&_i.isTracking(vi)},ti.getVelocity=function(di,vi){var _i=mm(di);return _i&&_i.isTracking(vi)?_i.get(vi):console.warn("Not tracking velocity of "+vi)},ti}();xd.getByTarget=mm,Xm()&&nl.registerPlugin(xd);/*!
167 * InertiaPlugin 3.9.1
168 * https://greensock.com
169 *
170 * @license Copyright 2008-2021, GreenSock. All rights reserved.
171 * Subject to the terms at https://greensock.com/standard-license or for
172 * Club GreenSock members, the agreement issued with that membership.
173 * @author: Jack Doyle, [email protected]
174*/var Rl,$f,ry,Ff,Zh,tu,lf,vu,rd,wd,Ol,zf,cf=xd.getByTarget,Sd=function(){return Rl||typeof window<"u"&&(Rl=window.gsap)&&Rl.registerPlugin&&Rl},Zm=function(ti){return typeof ti=="number"},uf=function(ti){return typeof ti=="object"},Jd=function(ti){return typeof ti=="function"},Ym=Array.isArray,Rp=function(ti){return ti},Zg=function(ti,si,di){for(var vi in si)vi in ti||vi===di||(ti[vi]=si[vi]);return ti},Km=function ti(si){var di,vi,_i={};for(di in si)_i[di]=uf(vi=si[di])&&!Ym(vi)?ti(vi):vi;return _i},df=function(ti,si,di,vi,_i){var ki,$i,Vi,sn,dn=si.length,ln=0,_n=1e10;if(uf(ti)){for(;dn--;){for(Vi in ki=si[dn],$i=0,ti)$i+=(sn=ki[Vi]-ti[Vi])*sn;$i<_n&&(ln=dn,_n=$i)}if((_i||1e10)<1e10&&_i<Math.sqrt(_n))return ti}else for(;dn--;)($i=(ki=si[dn])-ti)<0&&($i=-$i),$i<_n&&ki>=vi&&ki<=di&&(ln=dn,_n=$i);return si[ln]},Ro=function(ti,si,di,vi,_i,ki,$i){if(ti.end==="auto")return ti;var Vi,sn,dn=ti.end;if(di=isNaN(di)?1e10:di,vi=isNaN(vi)?-1e10:vi,uf(si)){if(Vi=si.calculated?si:(Jd(dn)?dn(si,$i):df(si,dn,di,vi,ki))||si,!si.calculated){for(sn in Vi)si[sn]=Vi[sn];si.calculated=!0}Vi=Vi[_i]}else Vi=Jd(dn)?dn(si,$i):Ym(dn)?df(si,dn,di,vi,ki):parseFloat(dn);return Vi>di?Vi=di:Vi<vi&&(Vi=vi),{max:Vi,min:Vi,unitFactor:ti.unitFactor}},Bf=function(ti,si,di){return isNaN(ti[si])?di:+ti[si]},Jm=function(ti,si){return .05*si*ti/wd},Op=function(ti,si,di){return Math.abs((si-ti)*wd/di/.05)},sy={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},hf=function(ti,si,di,vi){if(si.linkedProps){var _i,ki,$i,Vi,sn,dn,ln=si.linkedProps.split(","),_n={};for(_i=0;_i<ln.length;_i++)($i=si[ki=ln[_i]])&&(Vi=Zm($i.velocity)?$i.velocity:(sn=sn||cf(ti))&&sn.isTracking(ki)?sn.get(ki):0,dn=Math.abs(Vi/Bf($i,"resistance",vi)),_n[ki]=parseFloat(di(ti,ki))+Jm(Vi,dn));return _n}},Qm=function(){(Rl=Sd())&&(ry=Rl.parseEase,Ff=Rl.utils.toArray,lf=Rl.utils.getUnit,rd=Rl.core.getCache,Ol=Rl.utils.clamp,Zh=ry("power3"),wd=Zh(.05),vu=Rl.core.PropTween,Rl.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),tu=Rl.config(),Rl.registerPlugin(xd),$f=1)},uc={version:"3.9.1",name:"inertia",register:function(ti){Rl=ti,Qm()},init:function(ti,si,di,vi,_i){$f||Qm();var ki=cf(ti);if(si==="auto"){if(!ki)return void console.warn("No inertia tracking on "+ti+". InertiaPlugin.track(target) first.");si=ki.getAll()}this.target=ti,this.tween=di,zf=si;var $i,Vi,sn,dn,ln,_n,$n,Ln,Sr,lr=ti._gsap,Gn=lr.get,mr=si.duration,rr=uf(mr),ir=si.preventOvershoot||rr&&mr.overshoot===0,Fr=Bf(si,"resistance",tu.resistance),qr=Zm(mr)?mr:function(Jr,Wr,Ms,Ps,Xs,eo){if(Ms===void 0&&(Ms=10),Ps===void 0&&(Ps=.2),Xs===void 0&&(Xs=1),eo===void 0&&(eo=0),typeof Jr=="string"&&(Jr=Ff(Jr)[0]),!Jr)return 0;var oo,Cs,Zs,Io,Eo,pa,Ia,Da,Ka,wa,fl=0,Tl=1e10,Ll=Wr.inertia||Wr,Ca=rd(Jr).get,dc=Bf(Ll,"resistance",tu.resistance);for(oo in wa=hf(Jr,Ll,Ca,dc),Ll)sy[oo]||(Cs=Ll[oo],uf(Cs)||((Da=Da||cf
174(Jr))&&Da.isTracking(oo)?Cs=Zm(Cs)?{velocity:Cs}:{velocity:Da.get(oo)}:(Io=+Cs||0,Zs=Math.abs(Io/dc))),uf(Cs)&&(Io=Zm(Cs.velocity)?Cs.velocity:(Da=Da||cf(Jr))&&Da.isTracking(oo)?Da.get(oo):0,Zs=Ol(Ps,Ms,Math.abs(Io/Bf(Cs,"resistance",dc))),pa=(Eo=parseFloat(Ca(Jr,oo))||0)+Jm(Io,Zs),"end"in Cs&&(Cs=Ro(Cs,wa&&oo in wa?wa:pa,Cs.max,Cs.min,oo,Ll.radius,Io),eo&&(zf===Wr&&(zf=Ll=Km(Wr)),Ll[oo]=Zg(Cs,Ll[oo],"end"))),"max"in Cs&&pa>+Cs.max+1e-10?(Ka=Cs.unitFactor||tu.unitFactors[oo]||1,(Ia=Eo>Cs.max&&Cs.min!==Cs.max||Io*Ka>-15&&Io*Ka<45?Ps+.1*(Ms-Ps):Op(Eo,Cs.max,Io))+Xs<Tl&&(Tl=Ia+Xs)):"min"in Cs&&pa<+Cs.min-1e-10&&(Ka=Cs.unitFactor||tu.unitFactors[oo]||1,(Ia=Eo<Cs.min&&Cs.min!==Cs.max||Io*Ka>-45&&Io*Ka<15?Ps+.1*(Ms-Ps):Op(Eo,Cs.min,Io))+Xs<Tl&&(Tl=Ia+Xs)),Ia>fl&&(fl=Ia)),Zs>fl&&(fl=Zs));return fl>Tl&&(fl=Tl),fl>Ms?Ms:fl<Ps?Ps:fl}(ti,si,rr&&mr.max||10,rr&&mr.min||.2,rr&&"overshoot"in mr?+mr.overshoot:ir?0:1,!0);for($i in si=zf,zf=0,Sr=hf(ti,si,Gn,Fr),si)sy[$i]||(Vi=si[$i],Jd(Vi)&&(Vi=Vi(vi,ti,_i)),Zm(Vi)?ln=Vi:uf(Vi)&&!isNaN(Vi.velocity)?ln=+Vi.velocity:ki&&ki.isTracking($i)?ln=ki.get($i):console.warn("ERROR: No velocity was defined for "+ti+" property: "+$i),_n=Jm(ln,qr),Ln=0,sn=Gn(ti,$i),dn=lf(sn),sn=parseFloat(sn),uf(Vi)&&($n=sn+_n,"end"in Vi&&(Vi=Ro(Vi,Sr&&$i in Sr?Sr:$n,Vi.max,Vi.min,$i,si.radius,ln)),"max"in Vi&&+Vi.max<$n?ir||Vi.preventOvershoot?_n=Vi.max-sn:Ln=Vi.max-sn-_n:"min"in Vi&&+Vi.min>$n&&(ir||Vi.preventOvershoot?_n=Vi.min-sn:Ln=Vi.min-sn-_n)),this._props.push($i),this._pt=new vu(this._pt,ti,$i,sn,0,Rp,0,lr.set(ti,$i,this)),this._pt.u=dn||0,this._pt.c1=_n,this._pt.c2=Ln);return di.duration(qr),1},render:function(ti,si){var di,vi=si._pt;for(ti=Zh(si.tween._time/si.tween._dur);vi;)vi.set(vi.t,vi.p,(di=vi.s+vi.c1*ti+vi.c2*ti*ti,Math.round(1e4*di)/1e4+vi.u),vi.d,ti),vi=vi._next}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach(function(ti){return uc[ti]=xd[ti]}),Sd()&&Rl.registerPlugin(uc);/*!
175 * strings: 3.9.1
176 * https://greensock.com
177 *
178 * Copyright 2008-2021, GreenSock. All rights reserved.
179 * Subject to the terms at https://greensock.com/standard-license or for
180 * Club GreenSock members, the agreement issued with that membership.
181 * @author: Jack Doyle, [email protected]
182*/var oy=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uD
182FC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;/*!
183 * SplitText: 3.9.1
184 * https://greensock.com
185 *
186 * @license Copyright 2008-2021, GreenSock. All rights reserved.
187 * Subject to the terms at https://greensock.com/standard-license or for
188 * Club GreenSock members, the agreement issued with that membership.
189 * @author: Jack Doyle, [email protected]
190*/var tc,eg,ay,Wu,O1=/(?:\r|\n|\t\t)/g,Nf=/(?:\s\s+)/g,ym=function(ti){return eg.getComputedStyle(ti)},Ac=Array.isArray,Sl=[].slice,tg=function(ti,si){var di;return Ac(ti)?ti:(di=typeof ti)=="string"&&!si&&ti?Sl.call(tc.querySelectorAll(ti),0):ti&&di==="object"&&"length"in ti?Sl.call(ti,0):ti?[ti]:[]},vm=function(ti){return ti.position==="absolute"||ti.absolute===!0},Yg=function(ti,si){for(var di,vi=si.length;--vi>-1;)if(di=si[vi],ti.substr(0,di.length)===di)return di.length},Mv=function(ti,si){ti===void 0&&(ti="");var di=~ti.indexOf("++"),vi=1;return di&&(ti=ti.split("++").join("")),function(){return"<"+si+" style='position:relative;display:inline-block;'"+(ti?" class='"+ti+(di?vi++:"")+"'>":">")}},Kg=function ti(si,di,vi){var _i=si.nodeType;if(_i===1||_i===9||_i===11)for(si=si.firstChild;si;si=si.nextSibling)ti(si,di,vi);else _i!==3&&_i!==4||(si.nodeValue=si.nodeValue.split(di).join(vi))},Au=function(ti,si){for(var di=si.length;--di>-1;)ti.push(si[di])},Lp=function(ti,si,di){for(var vi;ti&&ti!==si;){if(vi=ti._next||ti.nextSibling)return vi.textContent.charAt(0)===di;ti=ti.parentNode||ti._parent}},ly=function ti(si){var di,vi,_i=tg(si.childNodes),ki=_i.length;for(di=0;di<ki;di++)(vi=_i[di])._isSplit?ti(vi):di&&vi.previousSibling&&vi.previousSibling.nodeType===3?(vi.previousSibling.nodeValue+=vi.nodeType===3?vi.nodeValue:vi.firstChild.nodeValue,si.removeChild(vi)):vi.nodeType!==3&&(si.insertBefore(vi.firstChild,vi),si.removeChild(vi))},xh=function(ti,si){return parseFloat(si[ti])||0},L1=function(ti,si,di,vi,_i,ki,$i){var Vi,sn,dn,ln,_n,$n,Ln,Sr,lr,Gn,mr,rr,ir=ym(ti),Fr=xh("paddingLeft",ir),qr=-999,Jr=xh("borderBottomWidth",ir)+xh("borderTopWidth",ir),Wr=xh("borderLeftWidth",ir)+xh("borderRightWidth",ir),Ms=xh("paddingTop",ir)+xh("paddingBottom",ir),Ps=xh("paddingLeft",ir)+xh("paddingRight",ir),Xs=xh("fontSize",ir)*(si.lineThreshold||.2),eo=ir.textAlign,oo=[],Cs=[],Zs=[],Io=si.wordDelimiter||" ",Eo=si.tag?si.tag:si.span?"span":"div",pa=si.type||si.split||"chars,words,lines",Ia=_i&&~pa.indexOf("lines")?[]:null,Da=~pa.indexOf("words"),Ka=~pa.indexOf("chars"),wa=vm(si),fl=si.linesClass,Tl=~(fl||"").indexOf("++"),Ll=[],Ca=ir.display==="flex",dc=ti.style.display;for(Tl&&(fl=fl.split("++").join("")),Ca&&(ti.style.display="block"),dn=(sn=ti.getElementsByTagName("*")).length,_n=[],Vi=0;Vi<dn;Vi++)_n[Vi]=sn[Vi];if(Ia||wa)for(Vi=0;Vi<dn;Vi++)(($n=(ln=_n[Vi]).parentNode===ti)||wa||Ka&&!Da)&&(rr=ln.offsetTop,Ia&&$n&&Math.abs(rr-qr)>Xs&&(ln.nodeName!=="BR"||Vi===0)&&(Ln=[],Ia.push(Ln),qr=rr),wa&&(ln._x=ln.offsetLeft,ln._y=rr,ln._w=ln.offsetWidth,ln._h=ln.offsetHeight),Ia&&((ln._isSplit&&$n||!Ka&&$n||Da&&$n||!Da&&ln.parentNode.parentNode===ti&&!ln.parentNode._isSplit)&&(Ln.push(ln),ln._x-=Fr,Lp(ln,ti,Io)&&(ln._wordEnd=!0)),ln.nodeName==="BR"&&(ln.nextSibling&&ln.nextSibling.nodeName==="BR"||Vi===0)&&Ia.push([])));for(Vi=0;Vi<dn;Vi++)if($n=(ln=_n[Vi]).parentNode===ti,ln.nodeName!=="BR")if(wa&&(lr=ln.style,Da||$n||
190(ln._x+=ln.parentNode._x,ln._y+=ln.parentNode._y),lr.left=ln._x+"px",lr.top=ln._y+"px",lr.position="absolute",lr.display="block",lr.width=ln._w+1+"px",lr.height=ln._h+"px"),!Da&&Ka)if(ln._isSplit)for(ln._next=sn=ln.nextSibling,ln.parentNode.appendChild(ln);sn&&sn.nodeType===3&&sn.textContent===" ";)ln._next=sn.nextSibling,ln.parentNode.appendChild(sn),sn=sn.nextSibling;else ln.parentNode._isSplit?(ln._parent=ln.parentNode,!ln.previousSibling&&ln.firstChild&&(ln.firstChild._isFirst=!0),ln.nextSibling&&ln.nextSibling.textContent===" "&&!ln.nextSibling.nextSibling&&Ll.push(ln.nextSibling),ln._next=ln.nextSibling&&ln.nextSibling._isFirst?null:ln.nextSibling,ln.parentNode.removeChild(ln),_n.splice(Vi--,1),dn--):$n||(rr=!ln.nextSibling&&Lp(ln.parentNode,ti,Io),ln.parentNode._parent&&ln.parentNode._parent.appendChild(ln),rr&&ln.parentNode.appendChild(tc.createTextNode(" ")),Eo==="span"&&(ln.style.display="inline"),oo.push(ln));else ln.parentNode._isSplit&&!ln._isSplit&&ln.innerHTML!==""?Cs.push(ln):Ka&&!ln._isSplit&&(Eo==="span"&&(ln.style.display="inline"),oo.push(ln));else Ia||wa?(ln.parentNode&&ln.parentNode.removeChild(ln),_n.splice(Vi--,1),dn--):Da||ti.appendChild(ln);for(Vi=Ll.length;--Vi>-1;)Ll[Vi].parentNode.removeChild(Ll[Vi]);if(Ia){for(wa&&(Gn=tc.createElement(Eo),ti.appendChild(Gn),mr=Gn.offsetWidth+"px",rr=Gn.offsetParent===ti?0:ti.offsetLeft,ti.removeChild(Gn)),lr=ti.style.cssText,ti.style.cssText="display:none;";ti.firstChild;)ti.removeChild(ti.firstChild);for(Sr=Io===" "&&(!wa||!Da&&!Ka),Vi=0;Vi<Ia.length;Vi++){for(Ln=Ia[Vi],(Gn=tc.createElement(Eo)).style.cssText="display:block;text-align:"+eo+";position:"+(wa?"absolute;":"relative;"),fl&&(Gn.className=fl+(Tl?Vi+1:"")),Zs.push(Gn),dn=Ln.length,sn=0;sn<dn;sn++)Ln[sn].nodeName!=="BR"&&(ln=Ln[sn],Gn.appendChild(ln),Sr&&ln._wordEnd&&Gn.appendChild(tc.createTextNode(" ")),wa&&(sn===0&&(Gn.style.top=ln._y+"px",Gn.style.left=Fr+rr+"px"),ln.style.top="0px",rr&&(ln.style.left=ln._x-rr+"px")));dn===0?Gn.innerHTML="&nbsp;":Da||Ka||(ly(Gn),Kg(Gn,String.fromCharCode(160)," ")),wa&&(Gn.style.width=mr,Gn.style.height=ln._h+"px"),ti.appendChild(Gn)}ti.style.cssText=lr}wa&&($i>ti.clientHeight&&(ti.style.height=$i-Ms+"px",ti.clientHeight<$i&&(ti.style.height=$i+Jr+"px")),ki>ti.clientWidth&&(ti.style.width=ki-Ps+"px",ti.clientWidth<ki&&(ti.style.width=ki+Wr+"px"))),Ca&&(dc?ti.style.display=dc:ti.style.removeProperty("display")),Au(di,oo),Da&&Au(vi,Cs),Au(_i,Zs)},Jg=function(ti,si,di,vi){var _i,ki,$i,Vi,sn,dn,ln,_n,$n=si.tag?si.tag:si.span?"span":"div",Ln=~(si.type||si.split||"chars,words,lines").indexOf("chars"),Sr=vm(si),lr=si.wordDelimiter||" ",Gn=lr!==" "?"":Sr?"&#173; ":" ",mr="</"+$n+">",rr=1,ir=si.specialChars?typeof si.specialChars=="function"?si.specialChars:Yg:null,Fr=tc.createElement("div"),qr=ti.parentNode;for(qr.insertBefore(Fr,ti),Fr.textContent=ti.nodeValue,qr.removeChild(ti),ln=(_i=function Jr(Wr){var Ms=Wr.nodeType,Ps="";if(Ms===1||Ms===9||Ms===11){if(typeof Wr.textContent=="string")return Wr.textContent;for(Wr=Wr.firstChild;Wr;Wr=Wr.nextSibling)Ps+=Jr(Wr)}else if(Ms===3||Ms===4)return Wr.nodeValue;return Ps}(ti=Fr)).indexOf("<")!==-1,si.reduceWhiteSpace!==!1&&(_i=_i.replace(Nf," ").replace(O1,"")),ln&&(_i=_i.split("<").join("{{LT}}")),sn=_i.length,ki=(_i.charAt(0)===" "?Gn:"")+di(),$i=0;$i<sn;$i++)if(dn=_i.charAt($i),ir&&(_n=ir(_i.substr($i),si.specialChars)))dn=_i.substr($i,_n||1),ki+=Ln&&dn!==" "?vi()+dn+"</"+$n+">":dn,$i+=_n-1;else if(dn===lr&&_i.charAt($i-1)!==lr&&$i){for(ki+=rr?mr:"",rr=0;_i.charAt($i+1)===lr;)ki+=Gn,$i++;$i===sn-1?ki+=Gn:_i.charAt($i+1)!==")"&&(ki+=Gn+di(),rr=1)}else dn==="{"&&_i.substr($i,6)==="{{LT}}"?(ki+=Ln?vi()+"{{LT}}</"+$n+">":"{{LT}}",$i+=5):dn.charCodeAt(0)>=55296&&dn.charCodeAt(0)<=56319||_i.charCodeAt($i+1)>=65024&&_i.charCodeAt($i+1)<=65039?(Vi=((_i.substr($i,12).split(oy)||[])[1]||"").length||2,ki+=Ln&&dn!==" "?vi()+_i.substr($i,Vi)+"</"+$n+">":_i.substr($i,Vi),$i+=Vi-1):ki+=Ln&&dn!==" "?vi()+dn+"</"+$n+">":dn;ti.outerHTML=ki+(rr?mr:""),ln&&Kg(qr,"{{LT}}","<")},cy=function ti(si,di,vi,_i){var ki,$i,Vi=tg(si.childNodes),sn=Vi.length,dn=vm(di);if(si.nodeType!==3||sn>1){for(di.absolute=!1,ki=0;ki<sn;ki++)($i=Vi[ki])._next=$i._isFirst=$i._parent=$i._wordEnd=null,($i.nodeType!==3||/\S+/.test($i.nodeValue))&&(dn&&$i.nodeType!==3&&ym($i).display==="inline"&&($i.style.display="inline-block",$i.style.position="relative"),$i._isSplit=!0,ti($i,di,vi,_i));return di.absolute=dn,void(si._isSplit=!0)}Jg(si,di,vi,_i)},pf=function(){function ti(di,vi){ay||(tc=document,eg=window,ay=1),this.elements=tg(di),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=vi||{},this.split(vi)}var si=ti.prototype;return si.split=function(di){this.isSplit&&this.revert(),this.vars=di=di||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var vi,_i,ki,$i=this.elements.length,Vi=di.tag?di.tag:di.span?"span":"div",sn=Mv(di.wordsClass,Vi),dn=Mv(di.charsClass,Vi);--$i>-1;)ki=this.elements[$i],this._originals[$i]=ki.innerHTML,vi=ki.clientHeight,_i=ki.
190clientWidth,cy(ki,di,sn,dn),L1(ki,di,this.chars,this.words,this.lines,_i,vi);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},si.revert=function(){var di=this._originals;if(!di)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(vi,_i){return vi.innerHTML=di[_i]}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},ti.create=function(di,vi){return new ti(di,vi)},ti}();pf.version="3.9.1",nr.registerPlugin(aa,Ir,Aa,Aa,Tr,Gh,Kp,Vl,In,Xr,Jl,ec,uc);var La=Wu=window.punchgs=window.tpGS={};for(var ff in La.gsap=nr,La.TweenLite=aa,La.TweenMax=Ir,La.TimelineLite=Aa,La.TimelineMax=Aa,La.CustomBounce=Tr,La.CustomEase=Gh,La.CustomWiggle=Kp,La.DrawSVGPlugin=Vl,La.MotionPathPlugin=In,La.ScrollToPlugin=Xr,La.CSSPlugin=Jl,La.draggable=ec,La.inertia=uc,La.SplitText=pf,La.RAD2DEG=180/Math.PI,La.DEG2RAD=Math.PI/180,La.gsap.registerPlugin(La.MotionPathPlugin),La.gsap.config({nullTargetWarn:!1}),La.eases=La.gsap.parseEase(),La.eases)La.eases.hasOwnProperty(ff)&&La[ff]===void 0&&(La[ff]=La.eases[ff]);Wu!==void 0&&Wu.TweenLite!==void 0&&Wu.TweenLite.lagSmoothing===void 0&&(Wu.TweenLite.lagSmoothing=function(){});var _u=[];function Qg(ti,si,di){var vi=document.createElement("canvas"),_i=vi.getContext("2d");if(vi.width=100,vi.height=200,ti.length===0)_i.fillStyle=di;else{for(var ki=_i.createLinearGradient(0,0,100,0),$i=0;$i<ti.length;$i++)ki.addColorStop(ti[$i].stop/100,ti[$i].color);_i.fillStyle=ki}_i.fillRect(0,0,100,200);var Vi=_i.getImageData(0,0,100,2).data,sn="";for($i=0;$i<si.length;$i++){var dn=Math.ceil(si[$i]),ln=4*(dn!==0?dn-1:dn);sn+="rgba("+Vi[ln]+","+Vi[ln+1]+","+Vi[ln+2]+","+Vi[ln+3]/255+")",sn+=" "+dn+(si.length-1===$i?"%":"%,")}return vi.remove(),sn}function Yh(ti,si,di,vi){for(var _i="",ki=La.gsap.utils.mapRange(0,vi.length-1,0,ti.length-1),$i=0;$i<vi.length;$i++){var Vi=Math.round(ki($i));_i+=ti[Vi].color,_i+=" "+ti[Vi].stop+(vi.length-1===$i?"%":"%,")}return _i}function _m(ti){var si=/rgb([\s\S]*?)%/g,di=[],vi=[],_i=[];do($i=si.exec(ti))&&di.push($i[0]);while($i);for(var ki=0;ki<di.length;ki++){var $i=di[ki],Vi=(ti=/rgb([\s\S]*?)\)/.exec($i),/\)([\s\S]*?)%/.exec($i));ti[0]&&(ti=ti[0]),Vi[1]&&(Vi=Vi[1]),_i.push(parseFloat(Vi)),vi.push({color:ti,stop:p
190arseFloat(Vi)})}return vi.length===0&&(vi.push({color:ti,stop:0}),_i.push(0),vi.push({color:ti,stop:100}),_i.push(100)),{points:vi,stops:_i}}La.getSSGColors=function(ti,si,di){if(di=di===void 0?"fading":di,ti.indexOf("gradient")===-1&&si.indexOf("gradient")===-1)return{from:ti,to:si};for(var vi={from:ti,to:si},_i=0;_i<_u.length;_i++){if(_u[_i].from===ti&&_u[_i].to===si&&_u[_i].type===di)return{from:_u[_i].rFrom,to:_u[_i].rTo};if(_u[_i].from===si&&_u[_i].to===ti&&_u[_i].type===di)return{from:_u[_i].rTo,to:_u[_i].rFrom}}var ki=_m(ti),$i=_m(si);if(ki.stops.length===$i.stops.length&&ti.indexOf("gradient")!==-1&&si.indexOf("gradient")!==-1)return{from:ti,to:si};var Vi,sn,dn=ki.stops;for(_i=0;_i<$i.stops.length;_i++)dn.indexOf($i.stops[_i])===-1&&dn.push($i.stops[_i]);if(dn.sort(function(_n,$n){return _n-$n}),ti.indexOf("gradient(")!==-1){var ln=ti.indexOf("deg,")!==-1?ti.indexOf("deg,")+4:ti.indexOf("at center,")!==-1?ti.indexOf("at center,")+10:ti.indexOf("gradient(")+9;Vi=ti.substring(0,ln),si.indexOf("gradient(")===-1&&(sn=ti.substring(0,ln))}return si.indexOf("gradient(")!==-1&&(ln=si.indexOf("deg,")!==-1?si.indexOf("deg,")+4:si.indexOf("at center,")!==-1?si.indexOf("at center,")+10:si.indexOf("gradient(")+9,sn=si.substring(0,ln),ti.indexOf("gradient(")===-1&&(Vi=si.substring(0,ln))),di==="fading"?(Vi+=Qg(ki.points,dn,ti),sn+=Qg($i.points,dn,si)):di==="sliding"&&(ki.stops.length>$i.stops.length?sn+=Yh($i.points,dn,si,ki.points):Vi+=Yh(ki.points,dn,ti,$i.points)),Vi+=")",sn+=")",di==="sliding"&&(ki.stops.length>$i.stops.length?Vi=ti:sn=si),vi.rFrom=Vi,vi.rTo=sn,vi.tyep=di,_u.push(vi),{from:Vi,to:sn}}}]);window.RS_MODULES=window.RS_MODULES||{};window.RS_MODULES.tpGS={loaded:!0,version:"6.6.1"};window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal();(function(De,_e){function Ae(){De("body").data("rs-fullScreenMode",!De("body").data("rs-fullScreenMode")),De("body").data("rs-fullScreenMode")&&setTimeout(function(){$e.window.trigger("resize")},200)}function ke(Ue,bi){return De(bi==0?Ue:(bi==1?Ue:(bi==2?Ue:(bi==3?Ue:(bi==4?Ue:Ue.parentNode).parentNode).parentNode).parentNode).parentNode)}function Le(Ue,bi,Ii){if($e[bi]!==_e){$e[bi].syncload--;var Ji,Mn=$e.gA(Ue,"reference");for(Ji in $e[bi].loadqueue)$e[bi].loadqueue.hasOwnProperty(Ji)&&$e[bi].loadqueue[Ji].progress!=="loaded"&&Mn==$e[bi].loadqueue[Ji].src&&($e[bi].loadqueue[Ji].img=Ue,$e[bi].loadqueue[Ji].progress=Ii,$e[bi].loadqueue[Ji].width=Ue.naturalWidth,$e[bi].loadqueue[Ji].height=Ue.naturalHeight);Gi(bi)}}function Fe(Ue){function bi(){Ue!==_e&&$e!==_e&&$e[Ue]!==_e&&(De("body").find($e[Ue].c).length==0||$e[Ue]===null||$e[Ue].c===null||$e[Ue].c===_e||$e[Ue].length===0?(er(Ue),clearInterval($e[Ue].cdint)):($e[Ue].c.trigger("revolution.slide.slideatend"),$e[Ue].c.data("conthoverchanged")==1&&($e[Ue].conthover=$e[Ue].c.data("conthover"),$e[Ue].c.data("conthoverchanged",0)),$e.callingNewSlide(Ue,1,!0)))}var Ii=tpGS.gsap.timeline({paused:!0}),Ji=$e[Ue].progressBar.reset==="reset"||$e[Ue].progressBar.notnew===_e?0:.2,Mn=(Mn=$e[Ue].progressBar.basedon==="slide"?0:$e[Ue].pr_processing_key!==_e?$e[Ue].pr_processing_key:$e[Ue].pr_active_key)===_e?0:Mn;if($e[Ue].progressBar.style==="horizontal"){if(Ii.add(tpGS.gsap.to($e[Ue].progressCBarInner[Mn],Ji,{scaleX:0,transformOrigin:$e[Ue].progressBar.horizontal==="right"?"100% 50%":"0% 50%"})),Ii.add(tpGS.gsap.to($e[Ue].progressCBarInner[Mn],$e[Ue].duration/1e3,{transformOrigin:$e[Ue].progressBar.horizontal==="right"?"100% 50%":"0% 50%",force3D:"auto",scaleX:1,onComplete:bi,delay:.5,ease:$e[Ue].progressBar.ease})),$e[Ue].progressBar.basedon==="module")for(var En=0;En<$e[Ue].slideamount;En++)En!==Mn&&Ii.add(tpGS.gsap.set($e[Ue].progressCBarInner[En],{scaleX:En<Mn?1:0,transformOrigin:$e[Ue].progressBar.horizontal==="right"?"100% 50%":"0% 50%"}),0)}else if($e[Ue].progressBar.style==="vertical"){if($e[Ue].progressCBarInner[Mn]!==_e&&Ii.add(tpGS.gsap.to($e[Ue].progressCBarInner[Mn],Ji,{scaleY:0,transformOrigin:$e[Ue].progressBar.vertical==="bottom"?"50% 100%":"50% 0%"})),$e[Ue].progressCBarInner[Mn]!==_e&&Ii.add(tpGS.gsap.to($e[Ue].progressCBarInner[Mn],$e[Ue].duration/1e3,{transformOrigin:$e[Ue].progressBar.vertical==="bottom"?"50% 100%":"50% 0%",force3D:"auto",scaleY:1,onComplete:bi,delay:.5,ease:$e[Ue].progressBar.ease})),$e[Ue].progressBar.basedon==="module")for(En=0;En<$e[Ue].slideamount;En++)En!==Mn&&$e[Ue].progressCBarInner[En]!==_e&&Ii.add(tpGS.gsap.set($e[Ue].progressCBarInner[En],{scaleY:En<Mn?1:0,transformOrigin:$e[Ue].progressBar.vertical==="botton"?"50% 100%":"50% 0%"}),0)}else{var Fn=$e[Ue].progressBar.basedon==="slide"?0:Math.max(0,360/$e[Ue].slideamount*Mn),Cr=$e[Ue].progressBar.basedon==="slide"?360:360/$e[Ue].slideamount*(Mn+1);$e[Ue].progressBar.style==="ccw"&&$e[Ue].progressBar.basedon!=="slide"&&(Fn=360-Cr,Cr=360-360/$e[Ue].slideamount*Mn),Ii.add(tpGS.gsap.to($e[Ue].progressBar,Ji,{degree:$e[Ue].progressBar.style==="cw"?Fn:Cr,onUpdate:function(){Er(Ue)}})),Ii.add(tpGS.gsap.to($e[Ue].progressBar,$e[Ue].duration/1e3,{degree:$e[Ue].progressBar.style==="cw"?Cr:Fn,onUpdate:function(){Er(Ue)},onComplete:bi,delay:.5,ease:$e[Ue].progressBar.ease}))}return $e[Ue].progressBar.notnew=!0,Ii}function Ve(){De(".rev_redraw_on_blurfocus").each(function(){var Ue=this.id;if($e[Ue]==_e||$e[Ue].c==_e||$e[Ue].c.length===0)return!1;
190$e[Ue].windowfocused!=1&&($e[Ue].windowfocused=!0,tpGS.gsap.delayedCall(.1,function(){$e[Ue].fallbacks.nextSlideOnWindowFocus&&$e[Ue].c.revnext(),$e[Ue].c.revredraw(),$e[Ue].lastsliderstatus=="playing"&&$e[Ue].c.revresume(),$e[Ue].c.trigger("revolution.slide.tabfocused")}))})}function Ie(){document.hasFocus()||De(".rev_redraw_on_blurfocus").each(function(Ue){var bi=this.id;$e[bi].windowfocused=!1,$e[bi].lastsliderstatus=$e[bi].sliderstatus,$e[bi].c.revpause(),$e[bi].c.trigger("revolution.slide.tabblured")})}var je,Ke="Slider Revolution 6.6.18",$e=(window.RSANYID=window.RSANYID===_e?[]:window.RSANYID,window.RSANYID_sliderID=window.RSANYID_sliderID===_e?[]:window.RSANYID_sliderID,De.fn.revolution=De.fn.revolution||{},De.fn.revolution),$e=(De.fn.revolutionInit=function(Ue){return this.each(function(){$e.ISM=$e.ISM||$e.is_mobile();for(var bi=document.getElementsByClassName("rs-p-wp-fix");bi[0];)bi[0].parentNode.removeChild(bi[0]);this.id!==_e?($e[Ii]={anyid:[]},this.id=$e.revCheckIDS(Ii,this,!0)):this.id="rs_module_"+Math.round(1e7*Math.random());var Ii=this.id,Ji=$e.clone(Ue);$e[Ii]=zn(Ue),$e[Ii].ignoreHeightChange=$e.ISM&&$e[Ii].sliderLayout==="fullscreen"&&$e[Ii].ignoreHeightChange,$e[Ii].option_export=Ji,$e[Ii].anyid=[],$e[Ii]._Lshortcuts={},$e[Ii].computedStyle={},$e[Ii].c=De(this),$e[Ii].cpar=$e[Ii].c.parent(),$e[Ii].canvas=$e[Ii].c.find("rs-slides"),$e[Ii].caches={calcResponsiveLayersList:[],contWidthManager:{},middleHeights:{}},$e[Ii].sbgs={},window.RSBrowser=window.RSBrowser===_e?$e.get_browser():window.RSBrowser,$e.setIsIOS(),$e.setIsChrome8889(),$e.useBackdrop===_e&&$e.checkBackdrop(),$e[Ii].noDetach=$e[Ii].BUG_ie_clipPath=window.RSBrowser==="Edge"||window.RSBrowser==="IE",$e.getByTag=qe(),$e[Ii].indexhelper=0,$e[Ii].fullScreenOffsetResult=0,$e[Ii].level=0,$e[Ii].rtl=De("body").hasClass("rtl")||document.dir=="rtl",$e[Ii]._L=$e[Ii]._L===_e?{}:$e[Ii]._L,$e[Ii].emptyObject="{}",$e[Ii].dimensionReCheck={},$e.globalListener===_e&&$e.pageHandler(Ii),$e[Ii].stopAfterLoops!=_e&&-1<$e[Ii].stopAfterLoops?$e[Ii].looptogo=$e[Ii].stopAfterLoops:$e[Ii].looptogo="disabled",window.T=$e[Ii],$e[Ii].BUG_safari_clipPath=$e.get_browser()==="Safari"&&"12"<$e.get_browser_version(),$e[Ii].minHeight=$e[Ii].sliderLayout!=="fullwidth"&&$e[Ii].sliderType!=="carousel"&&$e[Ii].minHeight!=_e&&$e[Ii].minHeight!==""?parseInt($e[Ii].minHeight,0):0,$e[Ii].minHeight=$e[Ii].minHeight===_e?0:$e[Ii].minHeight,$e[Ii].isEdge=$e.get_browser()==="Edge",ci(Ii),$e.updateVisibleArea(Ii),Hi(Ii),$e.mesuredScrollBarDone||$e.mesureScrollBar(),window.requestAnimationFrame(function(){var Mn;$e[Ii].sliderLayout==="fullscreen"&&(Mn=$e.getFullscreenOffsets(Ii))!==0&&$e[Ii].cpar.height($e.getWinH(Ii)-Mn),$e[Ii].cpar[0].style.visibility="visible"}),$e[Ii].sliderType=="hero"&&$e[Ii].c.find("rs-slide").each(function(Mn){0<Mn&&De(this).remove()}),$e[Ii].navigation.use=$e[Ii].sliderType!=="hero"&&($e[Ii].sliderType=="carousel"||$e[Ii].navigation.keyboardNavigation||$e[Ii].navigation.mouseScrollNavigation=="on"||$e[Ii].navigation.mouseScrollNavigation=="carousel"||$e[Ii].navigation.touch.touchenabled||$e[Ii].navigation.arrows.enable||$e[Ii].navigation.bullets.enable||$e[Ii].navigation.thumbnails.enable||$e[Ii].navigation.tabs.enable),$e[Ii].c.find("rs-bgvideo").each(function(){this.tagName!=="RS-BGVIDEO"||this.id!==_e&&this.id!==""||(this.id="rs-bg-video-"+Math.round(1e6*Math.random()))}),tpGS.force3D="auto",$e[Ii].modal.useAsModal===!0&&$e.RS_prioList.indexOf(Ii)===-1&&($e.RS_toInit[Ii]=!1,$e.RS_prioList.push(Ii)),$e.RS_killedlist!==_e&&$e.RS_killedlist.indexOf(Ii)!==-1&&($e.RS_toInit[Ii]=!1,$e.RS_prioList.push(Ii)),$e.RS_prioListFirstInit===!0&&$e[Ii].modal.useAsModal!==!0&&$e.RS_prioList.indexOf(Ii)===-1&&($e.RS_toInit[Ii]=!1,$e.RS_prioList.push(Ii)),$e.initNextRevslider(Ii)})},window.RS_F),qe=(De.fn.extend({getRSJASONOptions:function(Ue){console.log(JSON.stringify($e[Ue].option_export))},getRSVersion:function(Ue){var bi,Ii,Ji=window.SliderRevolutionVersion;if(!Ue){for(var Mn in bi=Ii=`---------------------------------------------------------
191`,bi+=`    Currently Loaded Slider Revolution & SR Modules :
192`+Ii,Ji)Ji.hasOwnProperty(Mn)&&(bi+=Ji[Mn].alias+": "+Ji[Mn].ver+`
193`);bi+=Ii}return Ue?Ji:bi},revremoveslide:function(Ue){return this.each(function(){var bi,Ii=this.id;Ue<0||Ue>$e[Ii].slideamount||$e[Ii]&&0<$e[Ii].slides.length&&(0<Ue||Ue<=$e[Ii].slides.length)&&(bi=$e.gA($e[Ii].slides[Ue],"key"),$e[Ii].slideamount=$e[Ii].slideamount-1,$e[Ii].realslideamount=$e[Ii].realslideamount-1,Ai("rs-bullet",bi,Ii),Ai("rs-tab",bi,Ii),Ai("rs-thumb",bi,Ii),De($e[Ii].slides[Ue]).remove(),$e[Ii].thumbs=gi($e[Ii].thumbs,Ue),$e.updateNavIndexes&&$e.updateNavIndexes(Ii),Ue<=$e[Ii].pr_active_key)&&($e[Ii].pr_active_key=$e[Ii].pr_active_key-1)})},revaddcallback:function(Ue){return this.each(function(){$e[this.id]&&($e[this.id].callBackArray===_e&&($e[this.id].callBackArray=[]),$e[this.id].callBackArray.push(Ue))})},revgetparallaxproc:function(){if($e[this[0].id])return $e[this[0].id].scrollproc},revdebugmode:function(){},revscroll:function(Ue){return this.each(function(){var bi=De(this);De("body,html").animate({scrollTop:bi.offset().top+bi.height()-Ue+"px"},{duration:400})})},revredraw:function(){return this.each(function(){zi(this.id,_e,!0)})},revGoToFrame:function(Ue){var bi;Ue.layerid!=_e&&Ue.frame!=_e&&this!=_e&&this!=null&&(Ue.moduleid=this[0].id,Ue.targetlayer=De("#"+Ue.layerid),Ue.targetlayer!=_e)&&Ue.targetlayer.length!=0&&(bi={layer:Ue.targetlayer,frame:Ue.frame,mode:"trigger",id:Ue.moduleid},Ue.children===!0&&(bi.updateChildren=!0,bi.fastforward=!0),$e.renderLayerAnimation)&&$e.renderLayerAnimation(bi)},revkill:function(){return this.each(function(){if(this!=_e&&this!=null){var Ue=this.id,bi=($e[Ue].c.data("c
193onthover",1),$e[Ue].c.data("conthoverchanged",1),$e[Ue].c.trigger("revolution.slide.onpause"),$e[Ue].tonpause=!0,$e[Ue].c.trigger("stoptimer"),$e[Ue].sliderisrunning=!1,"updateContainerSizes."+$e[Ue].c.attr("id"));$e.window.off(bi),tpGS.gsap.killTweensOf($e[Ue].c.find("*"),!1),tpGS.gsap.killTweensOf($e[Ue].c,!1),$e[Ue].c.off("hover, mouseover, mouseenter,mouseleave, resize"),$e[Ue].c.find("*").each(function(){var Ii=De(this);Ii.off("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer"),Ii.data("mySplitText",null),Ii.data("ctl",null),Ii.data("tween")!=_e&&Ii.data("tween").kill(),Ii.data("pztl")!=_e&&Ii.data("pztl").kill(),Ii.data("timeline_out")!=_e&&Ii.data("timeline_out").kill(),Ii.data("timeline")!=_e&&Ii.data("timeline").kill(),Ii.remove(),Ii.empty()}),tpGS.gsap.killTweensOf($e[Ue].c.find("*"),!1),tpGS.gsap.killTweensOf($e[Ue].c,!1),$e[Ue].progressC.remove();try{$e[Ue].c.closest(".rev_slider_wrapper").detach()}catch{}try{$e[Ue].c.closest("rs-fullwidth-wrap").remove()}catch{}try{$e[Ue].c.closest("rs-module-wrap").remove()}catch{}try{$e[Ue].c.remove()}catch{}$e[Ue].cpar.detach(),$e[Ue].c.html(""),$e[Ue].c=null,window[$e[Ue].revapi]=_e,delete $e[Ue],delete $e.RS_swapList[Ue],delete $e.slidersToScroll[Ue],delete $e.RS_toInit[Ue],$e.nextSlider==Ue&&delete $e.nextSlider,$e.RS_prioList.splice($e.RS_prioList.indexOf(Ue),1),$e.RS_killedlist=$e.RS_killedlist===_e?[]:$e.RS_killedlist,$e.RS_killedlist.indexOf(Ue)===-1&&$e.RS_killedlist.push(Ue)}})},revpause:function(){return this.each(function(){var Ue=De(this);Ue!=_e&&0<Ue.length&&0<De("body").find("#"+Ue.attr("id")).length&&(Ue.data("conthover",1),Ue.data("conthoverchanged",1),Ue.trigger("revolution.slide.onpause"),$e[this.id].tonpause=!0,Ue.trigger("stoptimer"))})},revresume:function(){return this.each(function(){var Ue;$e[this.id]!==_e&&((Ue=De(this)).data("conthover",0),Ue.data("conthoverchanged",1),Ue.trigger("revolution.slide.onresume"),$e[this.id].tonpause=!1,Ue.trigger("starttimer"))})},revmodal:function(Ue){var bi=this instanceof De?this[0]:this,Ii=bi.id;$e[bi.id]!==_e&&$e.revModal(Ii,Ue)},revstart:function(){var Ue=this instanceof De?this[0]:this;return $e[Ue.id]===_e?(console.log("Slider is Not Existing"),!1):$e[Ue.id].sliderisrunning||$e[Ue.id].initEnded===!0?(console.log("Slider Is Running Already"),!1):($e[Ue.id].c=De(Ue),$e[Ue.id].canvas=$e[Ue.id].c.find("rs-slides"),Li(Ue.id),!0)},revnext:function(){return this.each(function(){$e[this.id]!==_e&&$e.callingNewSlide(this.id,1,$e[this.id].sliderType==="carousel")})},revprev:function(){return this.each(function(){$e[this.id]!==_e&&$e.callingNewSlide(this.id,-1,$e[this.id].sliderType==="carousel")})},revmaxslide:function(){return De(this).find("rs-slide").length},revcurrentslide:function(){if($e[De(this)[0].id]!==_e)return parseInt($e[De(this)[0].id].pr_active_key,0)+1},revlastslide:function(){return De(this).find("rs-slide").length},revshowslide:function(Ue){return this.each(function(){$e[this.id]!==_e&&Ue!==_e&&$e.callingNewSlide(this.id,"to"+(Ue-1))})},revcallslidewithid:function(Ue){return this.each(function(){$e[this.id]!==_e&&$e.callingNewSlide(this.id,Ue,$e[this.id].sliderType==="carousel")})}}),$e=De.fn.revolution,De.extend(!0,$e,{isNumeric:function(Ue){return!isNaN(parseFloat(Ue))&&isFinite(Ue)},trim:function(Ue){return Ue!==_e&&Ue!==null&&typeof Ue=="string"?Ue.trim():Ue},setCookie:function(Ue,bi,Mn){var Ji=new Date,Mn=(Ji.setTime(Ji.getTime()+60*Mn*60*1e3),"expires="+Ji.toUTCString());document.cookie=Ue+"="+bi+";"+Mn+";path=/"},getCookie:function(Ue){for(var bi=Ue+"=",Ii=document.cookie.split(";"),Ji=0;Ji<Ii.length;Ji++){for(var Mn=Ii[Ji];Mn.charAt(0)==" ";)Mn=Mn.substring(1);if(Mn.indexOf(bi)==0)return decodeURIComponent(Mn.substring(bi.length,Mn.length))}return""},mesureScrollBar:function(){$e.mesuredScrollBarDone=!0,requestAnimationFrame(function(){var Ue=document.createElement("div");Ue.className="RSscrollbar-measure",document.body.appendChild(Ue),$e.mesuredScrollbarWidth=Ue.offsetWidth-Ue.clientWidth,document.body.removeChild(Ue)})},mobileTimedHeightCheck:function(){requestAnimationFrame(function(){$e.mobileTimedHeightCheck()}),$e.mobileHeights.now=Date.now(),$e.mobileHeights.elapsed=$e.mobileHeights.now-$e.mobileHeights.then,$e.mobileHeights.elapsed>$e.mobileHeights.fpsInterval&&($e.mobileHeights.then=$e.mobileHeights.now-$e.mobileHeights.elapsed%$e.mobileHeights.fpsInterval,$e.getWindowDimension())},pageHandler:function(Ue){$e.globalListener=!0,$e.window=De(window),$e.document=De(document),$e.RS_toInit={},$e.RS_prioList=[],$e.RS_swapping=[],$e.RS_swapList={},window.isSafari11===_e&&(window.isSafari11=$e.isSafari11(),document.body.classList.add("rs-safari")),$e.ISM?(window.addEventListener("orientationchange",function(){$e.getWindowDimension(!1,!0),setTimeout(function(){$e.getWindowDimension(!0,!0)},400)}),window.addEventListener("resize",$e.getWindowDimension),tpGS.gsap.delayedCall(3,function(){window.removeEventListener("resize",$e.getWindowDimension)}),$e.mobileHeights={fpsInterval:500,then:Date.now()},$e[Ue].ignoreHeightChange||$e.mobileHeights.checking||($e.mobileHeights.checking=!0,$e.mobileTimedHeightCheck())):window.addEventListener("resize",$e.getWindowDimension),$e.getW
193indowDimension(!1),$e.stickySupported=!1,window.RSBrowser!=="IE"&&($e.stickySupported=!0),$e.checkParrentOverflows(Ue);var bi,Ii=$e.getByTag(document,"RS-MODULE");for(bi in Ii)Ii.hasOwnProperty(bi)&&($e.RS_toInit[Ii[bi].id]=!1,$e.RS_prioList.push(Ii[bi].id));$e.nextSlider=Ue,$e.RS_prioListFirstInit=!0,$e.document.one("click",function(){$e.clickedOnce=!0}),document.addEventListener("visibilitychange",wi),$e.hasNavClickListener===_e&&($e.document.on($e.is_mobile()?"touchstart":"mouseenter",".tparrows, .tp-bullets, .tp-bullet, .tp-tab, .tp-thumb, .tp-thumbs, .tp-tabs, .tp-rightarrow, .tp-leftarrow",function(Ji){this.classList.add("rs-touchhover")}),$e.document.on($e.is_mobile()?"touchend":"mouseleave",".tparrows, .tp-bullets, .tp-bullet, .tp-tab, .tp-thumb, .tp-tabs,  .tp-rightarrow, .tp-leftarrow",function(Ji){var Mn=this;requestAnimationFrame(function(){Mn.classList.remove("rs-touchhover")})}),$e.hasNavClickListener=!0)},destroyCanvas:function(Ue){Ue&&(Ue.width=Ue.height=0,Ue.remove())},checkParrentOverflows:function(Ue){window.requestAnimationFrame(function(){for(var bi,Ii=$e[Ue].cpar[0];Ii.parentNode&&$e.stickySupported!==!1;)Ii.tagName!=="RS-MODULE-WRAP"&&Ii.tagName!=="RS-FULLWIDTH-WRAP"&&Ii.tagName!=="RS-MODULE-WRAP"&&Ii.className.indexOf("wp-block-themepunch-revslider")===-1&&(bi=window.getComputedStyle(Ii),$e.stickySupported=bi.overflow!=="hidden"&&bi.overflowX!=="hidden"&&bi.overflowY!=="hidden"),Ii=Ii.parentNode})},observeRemoved:function(Ue){new MutationObserver(function(bi){try{document.body.contains(bi[0].target)||$e[Ue].c.revkill()}catch{}}).observe($e[Ue].cpar[0],{childList:!0})},initNextRevslider:function(Ue){$e.RS_prioList[0]===Ue&&$e.RS_toInit[Ue]===!1?($e.RS_toInit[Ue]="waiting",hi(Ue),setTimeout(function(){$e.initNextRevslider(Ue)},19)):$e.RS_prioList[0]===Ue&&$e.RS_toInit[Ue]==="waiting"?setTimeout(function(){$e.initNextRevslider(Ue)},19):$e.RS_prioList[0]===Ue&&$e.RS_toInit[Ue]===!0?($e.RS_prioList.shift(),$e.RS_prioList.length!==0&&setTimeout(function(){$e.initNextRevslider(Ue)},19)):$e.RS_prioList[0]!==Ue&&$e.RS_toInit[Ue]===!1?setTimeout(function(){$e.initNextRevslider(Ue)},19):$e.RS_prioList.length===0&&$e.RS_toInit[Ue]===!0&&hi(Ue)},scrollTicker:function(Ue){$e.scrollTickerAdded!=1&&($e.slidersToScroll=[],$e.scrollTickerAdded=!0,$e.ISM?(tpGS.gsap.ticker.fps(150),tpGS.gsap.ticker.add(function(){$e.generalObserver()})):document.addEventListener("scroll",function(bi){$e.scrollRaF===_e&&($e.scrollRaF=requestAnimationFrame($e.generalObserver.bind(this,!0)))},{passive:!0})),$e.slidersToScroll.push(Ue),$e.generalObserver($e.ISM)},generalObserver:function(Ue,bi){for(var Ii in $e.scrollRaF&&($e.scrollRaF=cancelAnimationFrame($e.scrollRaF)),$e.lastwindowheight=$e.lastwindowheight||$e.winH,$e.scrollY=window.scrollY,$e.slidersToScroll)$e.slidersToScroll.hasOwnProperty(Ii)&&$e.scrollHandling($e.slidersToScroll[Ii],Ue,_e,bi)},wrapObserver:{targets:[],init:function(Ue){var bi=0,Ii=0,Ji=Mn.bind($e.wrapObserver);function Mn(){if(Ii++,requestAnimationFrame(Ji),!(Ii-bi<30)){bi=Ii;for(var En,Fn,Cr=0;Cr<$e.wrapObserver.targets.length;Cr++)$e.wrapObserver.targets.hasOwnProperty(Cr)&&(Fn=(En=$e.wrapObserver.targets[Cr]).elem.getBoundingClientRect(),En.lw===Fn.width&&En.lh===Fn.height||Fn.width===0||(En.callback&&(En.callback.pause(),En.callback.kill(),En.callback=null),En.callback=tpGS.gsap.to({},{duration:.2,onComplete:Ue.bind(window,En.elem,En.id)})),En.lw=Fn.width,En.lh=Fn.height)}}Mn()},observe:function(Ue,bi){var Ii;(Ue=Ue.getBoundingClientRect?Ue:Ue[0].getBoundingClientRect?Ue[0]:"")!==""&&(Ii=Ue.getBoundingClientRect(),$e.wrapObserver.targets.push({elem:Ue,id:bi,lw:Ii.width,lh:Ii.height}))}},enterViewPort:function(Ue,bi){$e[Ue].started!==!0?($e[Ue].started=!0,$e.lazyLoadAllSlides(Ue),$e[Ue].c.trigger("revolution.slide.firstrun"),setTimeout(function(){Sn(Ue),$e[Ue].sliderType!=="hero"&&$e.manageNavigation&&$e[Ue].navigation.use&&$e[Ue].navigation.createNavigationDone===!0&&$e.manageNavigation(Ue),1<$e[Ue].slideamount&&os(Ue),setTimeout(function(){$e[Ue]!==_e&&($e[Ue].revolutionSlideOnLoaded=!0,$e[Ue].c.trigger("revolution.slide.onloaded"),$e.calcScrollToId())},50)},$e[Ue].startDelay),$e[Ue].startDelay=0,window.requestAnimationFrame(function(){Di(Ue)})):($e[Ue].waitForCountDown&&(os(Ue),$e[Ue].waitForCountDown=!1),$e[Ue].sliderlaststatus!="playing"&&$e[Ue].sliderlaststatus!=_e||$e[Ue].c.trigger("starttimer"),$e[Ue].lastplayedvideos!=_e&&0<$e[Ue].lastplayedvideos.length&&De.each($e[Ue].lastplayedvideos,function(Ii,Ji){$e.playVideo(Ji,Ue)}))},leaveViewPort:function(Ue){$e[Ue].sliderlaststatus=$e[Ue].sliderstatus,$e[Ue].c.trigger("stoptimer"),$e[Ue].playingvideos!=_e&&0<$e[Ue].playingvideos.length&&($e[
193Ue].lastplayedvideos=De.extend(!0,[],$e[Ue].playingvideos),$e[Ue].playingvideos)&&De.each($e[Ue].playingvideos,function(bi,Ii){$e[Ue].leaveViewPortBasedStop=!0,$e.stopVideo&&$e.stopVideo(Ii,Ue)})},scrollHandling:function(Ue,bi,Ii,Ji){var Mn,En;$e[Ue]!==_e&&(Mn=($e[Ue].topc!==_e?$e[Ue].topc:$e[Ue].canv.height===0?$e[Ue].cpar:$e[Ue].c)[0].getBoundingClientRect(),En=$e.ISM?window.innerHeight:$e.lastwindowheight,Mn.hheight=(Mn.height===0?$e[Ue].canv.height===0?$e[Ue].module:$e[Ue].canv:Mn).height,$e[Ue].scrollproc=Mn.top<0||Mn.hheight>En&&Mn.top<En?Mn.top/Mn.hheight:Mn.bottom>En?(Mn.bottom-En)/Mn.hheight:0,En=Math.max(0,1-Math.abs($e[Ue].scrollproc)),$e[Ue].viewPort.enable&&($e[Ue].viewPort.vaType[$e[Ue].level]==="%"&&($e[Ue].viewPort.visible_area[$e[Ue].level]<=En||0<En&&En<=1&&$e[Ue].sbtimeline.fixed)||$e[Ue].viewPort.vaType[$e[Ue].level]==="px"&&(Mn.top<=0&&Mn.bottom>=$e.lastwindowheight||0<=Mn.top&&Mn.bottom<=$e.lastwindowheight||0<=Mn.top&&Mn.top<$e.lastwindowheight-$e[Ue].viewPort.visible_area[$e[Ue].level]||Mn.bottom>=$e[Ue].viewPort.visible_area[$e[Ue].level]&&Mn.bottom<$e.lastwindowheight)?$e[Ue].inviewport||($e[Ue].inviewport=!0,$e.enterViewPort(Ue,!0),$e[Ue].c.trigger("enterviewport")):$e[Ue].inviewport&&($e[Ue].inviewport=!1,$e.leaveViewPort(Ue),$e[Ue].c.trigger("leftviewport"))),$e[Ue].inviewport?($e.callBackHandling&&$e.callBackHandling(Ue,"parallax","start"),requestAnimationFrame(function(){$e[Ue].sliderLayout==="fullscreen"&&$e.getFullscreenOffsets(Ue)}),$e.parallaxProcesses(Ue,Mn,Ji,Ii),$e.callBackHandling&&$e.callBackHandling(Ue,"parallax","end")):$e.stickySupported!==!0&&$e[Ue].fixedScrollOnState!==!1&&($e[Ue].topc.removeClass("rs-fixedscrollon"),tpGS.gsap.set($e[Ue].cpar,{top:0,y:0}),$e[Ue].fixedScrollOnState=!1))},clone:function(Ue,bi){return bi===_e&&Ue===_e?{}:function Ii(Ji,Mn){var En,Fn=Array.isArray(Ji)?[]:{};for(En in Ji)Ji.hasOwnProperty(En)&&(Ji[En]!==_e&&typeof Ji[En]=="object"&&Mn?Fn[En]=Ii(Ji[En],!0):Ji[En]!==_e&&(Fn[En]=Ji[En]));return Fn}(Ue,bi)},closest:function(Ue,bi){return Ue&&(bi(Ue)?Ue:$e.closest(Ue.parentNode,bi))},closestNode:function(Ue,bi){return $e.closest(Ue,function(Ii){return Ii.nodeName===bi})},closestClass:function(Ue,bi){return $e.closest(Ue,function(Ii){return 0<=(" "+Ii.className+" ").indexOf(" "+bi+" ")})},getWinH:function(Ue){return $e[Ue].ignoreHeightChange?$e.mobileWinH:$e.winH},getWindowDimension:function(Ue,bi){Ue===!1?($e.rAfScrollbar="skip",$e.winWAll=$e.ISM&&window.visualViewport?document.documentElement.clientWidth:window.innerWidth,$e.winWSbar=document.documentElement.clientWidth,$e.ISM?($e.zoom=bi?1:$e.winWSbar/$e.winWAll,$e.winW=$e.zoom!==1?$e.winWSbar*$e.zoom:Math.min($e.winWAll,$e.winWSbar),$e.winH=$e.zoom!==1?window.innerHeight*$e.zoom:window.innerHeight,bi&&window.visualViewport&&($e.winH*=window.visualViewport.scale,$e.winWAll*=window.visualViewport.scale),$e.scrollBarWidth=0):($e.isModalOpen&&$e.openModalId!==_e&&$e[$e.openModalId]!==_e&&$e[$e.openModalId].canv.height>$e.winH?$e.scrollBarWidth=$e.mesuredScrollbarWidth:$e.scrollBarWidth=$e.winWAll-$e.winWSbar,$e.winW=Math.min($e.winWAll,$e.winWSbar),$e.winH=window.innerHeight),$e.ISM&&125<$e.winH&&($e.lastwindowheight!==_e&&Math.abs($e.lastwindowheight-$e.winH)<125?$e.mobileWinH=$e.lastwindowheight:$e.mobileWinH=$e.winH)):clearTimeout($e.windowDimenstionDelay),$e.windowDimenstionDelay=setTimeout(function(){$e.rAfScrollbar=_e,$e.winWAll=$e.ISM&&window.visualViewport?document.documentElement.clientWidth:window.innerWidth,$e.winWSbar=document.documentElement.clientWidth,$e.ISM?($e.zoom=bi?1:$e.winWSbar/$e.winWAll,$e.RS_px_ratio=window.devicePixelRatio||window.screen.availWidth/document.documentElement.clientWidth,$e.winW=$e.zoom!==1?$e.winWSbar*$e.zoom:Math.min($e.winWAll,$e.winWSbar),$e.winH=$e.zoom!==1?window.innerHeight*$e.zoom:window.innerHeight,bi&&window.visualViewport&&($e.winH*=window.visualViewport.scale,$e.winWAll*=window.visualViewport.scale),$e.scrollBarWidth=0,bi&&tpGS.gsap.delayedCall(.1,function(){$e.getWindowDimension()})):($e.isModalOpen&&$e.openModalId!==_e&&$e[$e.openModalId]!==_e&&$e[$e.openModalId].canv.height>$e.winH?$e.scrollBarWidth=$e.mesuredScrollbarWidth:$e.scrollBarWidth=$e.winWAll-$e.winWSbar,$e.winW=Math.min($e.winWAll,$e.winWSbar),$e.winH=window.innerHeight),$e.ISM&&125<$e.
193winH&&($e.lastwindowheight!==_e&&Math.abs($e.lastwindowheight-$e.winH)<125?$e.mobileWinH=$e.lastwindowheight:$e.mobileWinH=$e.winH),Ue!==!1&&$e.document.trigger("updateContainerSizes")},100)},aC:function(Ue,bi){Ue&&(Ue.classList&&Ue.classList.add?Ue.classList.add(""+bi):De(Ue).addClass(bi))},rC:function(Ue,bi){Ue&&(Ue.classList&&Ue.classList.remove?Ue.classList.remove(""+bi):De(Ue).removeClass(bi))},sA:function(Ue,bi,Ii){Ue&&Ue.setAttribute&&Ue.setAttribute("data-"+bi,Ii)},gA:function(Ue,bi,Ii){return Ue===_e?_e:Ue.hasAttribute&&Ue.hasAttribute("data-"+bi)&&Ue.getAttribute("data-"+bi)!==_e&&Ue.getAttribute("data-"+bi)!==null?Ue.getAttribute("data-"+bi):Ii!==_e?Ii:_e},rA:function(Ue,bi){Ue&&Ue.removeAttribute&&Ue.removeAttribute("data-"+bi)},iWA:function(Ue,bi){return $e[Ue].justifyCarousel?bi==="static"?$e[Ue].carousel.wrapwidth:$e[Ue].carousel.slide_widths[bi!==_e?bi:$e[Ue].carousel.focused]:$e[Ue].gridwidth[$e[Ue].level]},iHE:function(Ue,bi){return $e[Ue].useFullScreenHeight?$e[Ue].canv.height:Math.max($e[Ue].currentRowsHeight,$e[Ue].gridheight[$e[Ue].level])},updateFixedScrollTimes:function(Ue){$e[Ue].sbtimeline.set===!0&&$e[Ue].sbtimeline.fixed===!0&&$e[Ue].sliderLayout!=="auto"&&($e[Ue].sbtimeline.rest=$e[Ue].duration-$e[Ue].sbtimeline.fixEnd,$e[Ue].sbtimeline.time=$e[Ue].duration-($e[Ue].sbtimeline.fixStart+$e[Ue].sbtimeline.rest),$e[Ue].sbtimeline.extended=$e[Ue].sbtimeline.time/10)},addSafariFix:function(Ue){window.isSafari11===!0&&$e[Ue].safari3dFix!==!0&&($e[Ue].safari3dFix=!0,$e[Ue].c[0].className+=" safarifix")},openModalAPI:function(Ue,bi,Ii,Ji,Mn,En){window.RS_60_MODALS!==_e&&De.inArray(Ue,window.RS_60_MODALS)!=-1||window.RS_60_MODAL_API_CALLS!==_e&&De.inArray(Ue,window.RS_60_MODAL_API_CALLS)!=-1?0<=De.inArray(Ue,window.RS_60_MODALS)&&De.fn.revolution.document.trigger("RS_OPENMODAL_"+Ue,bi):(window.RS_60_MODAL_API_CALLS=window.RS_60_MODAL_API_CALLS||[],window.RS_60_MODAL_API_CALLS.push(Ue),(En=En===_e?{}:En).alias===_e&&(En.alias=Ue),Ji&&$e.showModalCover(Mn,En,"show"),De.ajax({type:"post",url:Ii,dataType:"json",data:{action:"revslider_ajax_call_front",client_action:"get_slider_html",alias:Ue,usage:"modal"},success:function(Fn,Cr,_r){if(Fn!==null&&Fn.success==1){if(Mn=Mn==_e?Fn.htmlid:Mn,Fn.waiting!==_e)for(var Or in Fn.waiting)De.inArray(Fn.waiting[Or],RS_MODULES.waiting)==-1&&(RS_MODULES.waiting.push(Fn.waiting[Or]),window.RS_MODULES.minimal=!1);if(Fn.toload!==_e){var _s="";for(Or in(RS_MODULES=RS_MODULES||{}).requestedScripts=[],Fn.toload)!Fn.toload.hasOwnProperty(Or)||RS_MODULES!=_e&&RS_MODULES[Or]!=_e&&RS_MODULES[Or].loaded===!0||De.inArray(Or,RS_MODULES.requestedScripts)===-1&&(RS_MODULES.requestedScripts.push(Or),_s+=Fn.toload[Or]);_s!==""&&De("body").append(_s)}RS_MODULES!==_e&&RS_MODULES.modules[Fn.htmlid]!=_e||De("body").append(Fn.data),Ji&&$e.showModalCover(Mn,En,"hide"),$e[Ue]!==_e&&$e[Ue].openModalApiListener?De.fn.revolution.document.trigger("RS_OPENMODAL_"+Ue,bi):De(document).on("RS_MODALOPENLISTENER_"+Ue,function(so){De.fn.revolution.document.trigger("RS_OPENMODAL_"+Ue,bi)})}else Ji&&$e.showModalCover(Mn,En,"hide")},error:function(Fn){Ji&&$e.showModalCover(Mn,En,"hide"),console.log("Modal Can not be Loaded"),console.log(Fn)}}))},showModalCover:function(Ue,bi,Ii){switch(Ii){case"show":var Ji;bi.spin!==_e&&bi.spin!=="off"&&(Ji=$e.buildSpinner(Ue,"spinner"+bi.spin,bi.spinc,"modalspinner")),bi.bg!==_e&&bi.bg!==!1&&bi.bg!=="false"&&bi.bg!=="transparent"?(Mn=De('<rs-modal-cover data-alias="'+bi.alias+'" data-rid="'+Ue+'" id="'+Ue+'_modal_bg" style="display:none;opacity:0;background:'+bi.bg+'"></rs-modal-cover>'),De("body").append(Mn),bi.speed=parseFloat(bi.speed),bi.speed=200<bi.speed?bi.speed/1e3:bi.speed,bi.speed=Math.max(Math.min(3,bi.speed),.3),tpGS.gsap.to(Mn,bi.speed,{display:"block",opacity:1,ease:"power3.inOut"}),$e.isModalOpen=!0,Ji!==_e&&Mn.append(Ji)):Ji!==_e&&$e[Ue].c.append(Ji);break;case"hide":var Mn;(Mn=De('rs-modal-cover[data-alias="'+bi.alias+'"] .modalspinner'))!==_e&&0<Mn.length?Mn.remove():Ue!==_e&&$e[Ue].c.find(".modalspinner").remove()}},revModal:function(Ue,bi){if(Ue!==_e&&$e[Ue]!==_e&&$e[Ue].modal.closeProtection!=="clicked")if($e[Ue].modal.closeProtection===!0)$e[Ue].modal.closeProtection,setTimeout(function(){$e[Ue].modal.closeProtection=!1,$e.revModal(Ue,bi)},750);
193else switch($e[Ue].modal.lastModalCall=bi.mode,bi.mode){case"show":$e[Ue].modal.isLive!==!0&&$e.anyModalclosing!==!0&&($e.document.trigger("RS_MODALOPENED"),$e[Ue].modal.isLive=!0,bi.slide=bi.slide===_e?"to0":bi.slide,$e[Ue].modal.bodyclass!==_e&&0<=$e[Ue].modal.bodyclass.length&&document.body.classList.add($e[Ue].modal.bodyclass),$e[Ue].modal.bg.attr("data-rid",Ue),tpGS.gsap.to($e[Ue].modal.bg,$e[Ue].modal.coverSpeed,{display:"block",opacity:1,ease:"power3.inOut"}),tpGS.gsap.set($e[Ue].modal.c,{display:$e[Ue].sliderLayout==="auto"?"inline-block":"block",opacity:0}),$e[Ue].cpar.removeClass("hideallscrollbars"),tpGS.gsap.set($e[Ue].cpar,{display:"block",opacity:1}),Ii={a:0},$e.isModalOpen=!0,$e[Ue].clearModalBG=!0,$e[Ue].sliderType==="carousel"&&$e[Ue].pr_active_bg!==_e&&0<$e[Ue].pr_active_bg.length&&tpGS.gsap.to($e[Ue].pr_active_bg,.5,{opacity:1}),tpGS.gsap.fromTo(Ii,$e[Ue].modal.coverSpeed/5,{a:0},{a:10,ease:"power3.inOut",onComplete:function(){$e.openModalId=Ue,$e[Ue].sliderisrunning?(bi.slide!=="to0"&&($e[Ue].startedWithOtherSlide=!0),$e.callingNewSlide(Ue,bi.slide)):(bi.slide!=="to0"&&($e[Ue].startWithSlideKey=bi.slide),Li(Ue))}}),setTimeout(function(){tpGS.gsap.fromTo([$e[Ue].modal.c],.01,{opacity:0},{opacity:1,delay:$e[Ue].modal.coverSpeed/4,ease:"power3.inOut",onComplete:function(){}}),window.overscrollhistory=document.body.style.overflow,$e[Ue].modal.allowPageScroll||(document.body.style.overflow="hidden"),$e[Ue].sliderLayout==="fullscreen"&&$e.getWindowDimension()},250),$e[Ue].sliderLayout!=="fullscreen")&&$e.getWindowDimension();break;case"close":$e.anyModalclosing!==!0&&($e.anyModalclosing=!0,$e.openModalId=_e,Tn(Ue),document.body.style.overflow=window.overscrollhistory,$e[Ue].cpar.addClass("hideallscrollbars"),$e[Ue].c.trigger("stoptimer"),$e[Ue].modal.bodyclass!==_e&&0<=$e[Ue].modal.bodyclass.length&&document.body.classList.remove($e[Ue].modal.bodyclass),tpGS.gsap.to($e[Ue].modal.bg,$e[Ue].modal.coverSpeed,{display:"none",opacity:0,ease:"power3.inOut"}),tpGS.gsap.to($e[Ue].modal.c,$e[Ue].modal.coverSpeed/6.5,{display:"none",delay:$e[Ue].modal.coverSpeed/4,opacity:0,onComplete:function(){tpGS.gsap.set($e[Ue].cpar,{display:"none",opacity:0}),$e.document.trigger("revolution.all.resize"),$e.document.trigger("revolution.modal.close",[$e[Ue].modal]),$e.getWindowDimension(),$e.isModalOpen=!1}}),$e[Ue].modal.closeProtection=!0,clearTimeout($e[Ue].modal.closeTimer),$e[Ue].modal.closeTimer=setTimeout(function(){$e.anyModalclosing=!1,$e[Ue].modal.isLive=!1,$e[Ue].modal.closeProtection=!1},Math.max(750,1020*$e[Ue].modal.coverSpeed)));break;case"init":if(window.RS_60_MODALS=window.RS_60_MODALS===_e?[]:window.RS_60_MODALS,De.inArray($e[Ue].modal.alias,window.RS_60_MODALS)===-1&&window.RS_60_MODALS.push($e[Ue].modal.alias),$e[Ue].modal.listener===_e&&($e[Ue].modal.c=De("#"+Ue+"_modal"),$e[Ue].modal.cover!==!1&&$e[Ue].modal.cover!=="false"||($e[Ue].modal.coverColor="transparent"),$e[Ue].modal.bg=De('rs-modal-cover[data-alias="'+$e[Ue].modal.alias+'"]'),$e[Ue].modal.bg===_e||$e[Ue].modal.bg.length===0?($e[Ue].modal.bg=De('<rs-modal-cover style="display:none;opacity:0;background:'+$e[Ue].modal.coverColor+'" data-rid="'+Ue+'" id="'+Ue+'_modal_bg"></rs-modal-cover>'),($e[Ue].sliderLayout==="auto"&&$e[Ue].modal.cover?De("body"):$e[Ue].modal.c).append($e[Ue].modal.bg)):$e[Ue].modal.bg.attr("data-rid",Ue),$e[Ue].modal.c[0].className+="rs-modal-"+$e[Ue].sliderLayout,$e[Ue].modal.calibration={left:$e[Ue].sliderLayout==="auto"?$e[Ue].modal.horizontal==="center"?"50%":$e[Ue].modal.horizontal==="left"?"0px":"auto":"0px",right:$e[Ue].sliderLayout==="auto"&&($e[Ue].modal.horizontal==="center"||$e[Ue].modal.horizontal==="left")?"auto":"0px",top:$e[Ue].sliderLayout==="auto"||$e[Ue].sliderLayout==="fullwidth"?$e[Ue].modal.vertical==="middle"?"50%":$e[Ue].modal.vertical==="top"?"0px":"auto":"0px",bottom:$e[Ue].sliderLayout!=="auto"&&$e[Ue].sliderLayout!=="fullwidth"||$e[Ue].modal.vertical!=="middle"&&$e[Ue].modal.vertical!=="top"?"0px":"auto",y:($e[Ue].sliderLayout==="auto"||$e[Ue].sliderLayout==="fullwidth")&&$e[Ue].modal.vertical==="middle"?"-50%":0,x:$e[Ue].sliderLayout==="auto"&&$e[Ue].modal.horizontal==="center"?"-50%":0},$e[Ue].modal.calibration.y==="-50%"&&($e[Ue].modal.calibration.filter="blur(0px)"),tpGS.gsap.set($e[Ue].modal.c,$e[Ue].sliderLayout==="auto"||$e[Ue].sliderLayout==="fullscreen"?De.extend(!0,$e[Ue].modal.calibration,{opacity:0,display:"none"}):{opacity:0,display:"none"}),$e[Ue].sliderLayout==="fullwidth"&&tpGS.gsap.set($e[Ue].modal.c.find("rs-module-wrap"),$e[Ue].modal.calibration),$e.document.on("RS_OPENMODAL_"+$e[Ue].modal.alias,function(Cr,_r){Cr!==_e&&Cr.detail!==_e&&Cr.detail.slide!==_e&&_r==_e&&(_r=Cr.detail.slide),$e[Ue].initEnded=!0,$e.revModal(Ue,{mode:"show",
193slide:_r})}),$e[$e[Ue].modal.alias]=$e[$e[Ue].modal.alias]||{},$e[$e[Ue].modal.alias].openModalApiListener=!0,$e.document.trigger("RS_MODALOPENLISTENER_"+$e[Ue].modal.alias),$e.document.on("click","rs-modal-cover",function(){$e.revModal($e.gA(this,"rid"),{mode:"close"})}),$e[Ue].modal.listener=!0,$e[Ue].modal.trigger!==_e)){var Ii,Ji,Mn=$e[Ue].modal.trigger.split(";");for(Ii in $e[Ue].modal.trigger={},Mn)if(Mn.hasOwnProperty(Ii))switch((Ji=Mn[Ii].split(":"))[0]){case"t":$e[Ue].modal.trigger.time=parseInt(Ji[1],0);break;case"s":$e[Ue].modal.trigger.scroll=Ji[1];break;case"so":$e[Ue].modal.trigger.scrollo=parseInt(Ji[1],0);break;case"e":$e[Ue].modal.trigger.event=Ji[1];break;case"ha":$e[Ue].modal.trigger.hash=Ji[1];break;case"co":$e[Ue].modal.trigger.cookie=Ji[1]}var En,Fn=!0;$e[Ue].modal.trigger.cookie!==_e?Fn=$e.getCookie($e[Ue].modal.alias+"_modal_one_time")!=="true":$e.getCookie($e[Ue].modal.alias+"_modal_one_time")=="true"&&$e.setCookie($e[Ue].modal.alias+"_modal_one_time",!1,10),Fn&&($e[Ue].modal.trigger.time!==_e&&$e[Ue].modal.trigger.time!==0&&($e[Ue].modal.trigger.cookie!==_e&&$e.setCookie($e[Ue].modal.alias+"_modal_one_time",!0,$e[Ue].modal.trigger.cookie),setTimeout(function(){$e.document.trigger("RS_OPENMODAL_"+$e[Ue].modal.alias)},$e[Ue].modal.trigger.time)),$e[Ue].modal.trigger.scrollo===_e&&$e[Ue].modal.trigger.scroll===_e||($e[Ue].modal.trigger.scroll!==_e&&De($e[Ue].modal.trigger.scroll)[0]!==_e&&($e[Ue].modal.trigger.scroll=De($e[Ue].modal.trigger.scroll)[0]),En=function(){var Cr;$e[Ue].modal.trigger.scroll!==_e&&(Cr=(Cr=typeof $e[Ue].modal.trigger.scroll=="string"?document.getElementById($e[Ue].modal.trigger.scroll):typeof $e[Ue].modal.trigger.scroll=="object"?$e[Ue].modal.trigger.scroll:_e)!==_e&&Cr!==null?$e[Ue].modal.trigger.scroll.getBoundingClientRect():_e),($e[Ue].modal.trigger.scroll!==_e&&Cr!==_e&&Math.abs(Cr.top+(Cr.bottom-Cr.top)/2-$e.getWinH(Ue)/2)<50||$e[Ue].modal.trigger.scrollo!==_e&&Math.abs($e[Ue].modal.trigger.scrollo-($e.scrollY!==_e?$e:window).scrollY)<100)&&($e.document.trigger("RS_OPENMODAL_"+$e[Ue].modal.alias),$e[Ue].modal.trigger.cookie!==_e&&$e.setCookie($e[Ue].modal.alias+"_modal_one_time",!0,$e[Ue].modal.trigger.cookie),document.removeEventListener("scroll",En))},document.addEventListener("scroll",En,{id:Ue,passive:!0}))),$e[Ue].modal.trigger.event!==_e&&$e.document.on($e[Ue].modal.trigger.event,function(){$e.document.trigger("RS_OPENMODAL_"+$e[Ue].modal.alias)}),$e[Ue].modal.trigger.hash=="t"&&window.location.hash.substring(1)==$e[Ue].modal.alias&&$e.document.trigger("RS_OPENMODAL_"+$e[Ue].modal.alias)}}},smartConvertDivs:function(Ue){var bi="";if(typeof Ue=="string"&&0<=Ue.indexOf("#")){var Ii,Ji=Ue.split(","),Mn=Ji.length-1;for(Ii in Ji)bi=typeof Ji[Ii]=="string"&&Ji[Ii][0]==="#"?bi+Ji[Ii][1]/Ji[Ii][3]*100+"%"+(Ii<Mn?",":""):bi+Ji[Ii]+(Ii<Mn?",":"")}else bi=Ue;return bi},revToResp:function(Ue,bi,Ii,Ji){if((Ue=Ue===_e?Ii:Ue)!==_e){if(Ji=Ji===_e?",":Ji,typeof Ue!="boolean"&&(typeof Ue!="object"||Array.isArray(Ue))){try{Ue=Ue.replace(/[[\]]/g,"").replace(/\'/g,"").split(Ji)}catch{}for(Ue=Array.isArray(Ue)?Ue:[Ue];Ue.length<bi;)Ue[Ue.length]=Ue[Ue.length-1]}return Ue}},loadImages:function(Ue,bi,Ii,Ji){if(Ue!==_e&&Ue.length!==0){var Mn,En=[];if(Array.isArray(Ue))for(var Fn in Ue)Ue.hasOwnProperty(Fn)&&Ue[Fn]!==_e&&En.push(Ue[Fn]);else En.push(Ue);for(Mn in En)if(En.hasOwnProperty(Mn)){var Cr,_r,Or=En[Mn].querySelectorAll("img, rs-sbg, .rs-svg"),_s=$e[bi].lazyOnBg?En[Mn].querySelectorAll("rs-bg-elem, rs-column, rs-layer"):[];for(Fn in Or)Or.hasOwnProperty(Fn)&&(Or[Fn]!==_e&&Or[Fn].dataset!==_e&&Or[Fn].dataset.src!==_e&&0<=Or[Fn].dataset.src.indexOf("dummy.png")&&0<=Or[Fn].src.indexOf("data")&&delete Or[Fn].dataset.src,_r=Ei(Or[Fn],_e,bi),Cr=_r!==_e?_r:$e.gA(Or[Fn],"svg_src")!=_e?$e.gA(Or[Fn],"svg_src"):Or[Fn].src===_e?De(Or[Fn]).data("src"):Or[Fn].src,_r=$e.gA(Or[Fn],"svg_src")!=_e?"svg":"img",Cr!==_e)&&$e[bi].loadqueue!==_e&&$e[bi].loadqueue.filter(function(so){return so.src===Cr}).length==0&&$e[bi].loadqueue.push({src:Cr,img:Or[Fn],index:Fn,starttoload:Date.now(),type:_r||"img",prio:Ii,progress:Or[Fn].complete&&Cr===Or[Fn].src?"loaded":"prepared",static:Ji,width:Or[Fn].complete&&Cr===Or[Fn].src?Or[Fn].width:_e,height:Or[Fn].complete&&Cr===Or[Fn].src?Or[Fn].height:_e});for(Fn in _s)_s.hasOwnProperty(Fn)&&_s[Fn]!==_e&&_s[Fn].dataset!==_e&&_s[Fn].dataset.bglazy!==_e&&0<=_s[Fn].style.backgroundImage.indexOf("dummy.png")&&(_s[Fn].style.backgroundImage='url("'+_s[Fn].dataset.bglazy+'")');_s[Fn]!==_e&&_s[Fn].dataset!==_e&&_s[Fn].dataset.bglazy!==_e&&0<=_s[Fn].style.backgroundImage.indexOf("dummy.png")&&(_s[Fn].style.backgroundImage='url("'+_s[Fn].dataset.bglazy+'")')}!$e[bi].cparBgChecked&&$e[bi].cpar[0]!==_e&&$e[bi].cpar[0].dataset!==_e&&$e[bi].cpar[0].dataset.bglazy!==_e&&0<=$e[bi].cpar[0].style.backgroundImage.indexOf("dummy.png")&&($e[bi].cparBgChecked=!0,$e[bi].cpar[0].style.backgroundImage='url("'+$e[bi].cpar[0].dataset.bglazy+'")'),Gi(bi)}},waitForCurrentImages:function(Ue,bi,Ii){if(Ue!==_e&&Ue.length!==0&&$e[bi]!==_e){var Ji,Mn=!1,En=[];if(Array.isArray(Ue))for(var Fn in Ue)Ue.hasOwnProperty(Fn)&&Ue[Fn]!==_e&&En.push(Ue[Fn]);else En.push(Ue);for(Ji in En)if(En.hasOwnProperty(Ji)){var Cr,_r,Or,_s,so,Ls,go=En[Ji].querySelectorAll("img, rs-sbg, .rs-svg");for(Fn in go)!go.hasOwnProperty(Fn)||Fn==="length"||0<=go[Fn].className.indexOf("rs-pzimg")||(Cr=De(go[Fn]).data(),_r=(_r=Ei(go[Fn],_e,bi))!==_e?_r:$e.gA(go[Fn],"svg_src")!=_e?$e.gA(go[Fn],"svg_src"):(go[Fn].src===_e?Cr:go[Fn]).src,Or=$e.getLoadObj(bi,_r),$e.sA(go[Fn],"src-rs-ref",_r),Cr.loaded===_e&&Or!==_e&&Or.progress&&Or.progress=="loaded"&&(Or.type=="img"?(go[Fn].src.slice(go[Fn].src.length-10)!==Or.src.slice(Or.src.length-10)&&(go[Fn].src=Or.src),Cr.slidebgimage&&(Or.src.indexOf("images/transparent.png")==-1&&Or.src.indexOf("assets/transparent.png")==-1||Cr.bgcolor===_e||Cr.bgcolor!==_e&&Cr.bgcolor!=="transparent"&&(Or.bgColor=!0,Or.useBGColor=!0),$e.sA(En[Ji],"owidth",Or.width),$e.sA(En[Ji],"oheight",Or.height),so=$e.getByTag(En[Ji],"RS-SBG-WRAP"),_s=$e.gA(En[Ji],"ke
193y"),$e[bi].sbgs[_s].loadobj=Or,0<so.length&&($e.sA(so[0],"owidth",Or.width),$e.sA(so[0],"oheight",Or.height)),$e[bi].sliderType==="carousel")&&(so=De(so),Ls=$e.getSlideIndex(bi,_s),($e[bi].carousel.justify&&$e[bi].carousel.slide_widths===_e||$e[bi].carousel.slide_width===_e)&&$e.setCarouselDefaults(bi,!0),so.data("panzoom")===_e||$e[bi].panzoomTLs!==_e&&$e[bi].panzoomTLs[Ls]!==_e||$e.startPanZoom(so,bi,0,Ls,"prepare",_s),$e[bi].sbgs[_s].isHTML5&&!$e[bi].sbgs[_s].videoisplaying&&($e[bi].sbgs[_s].video=$e[bi].sbgs[_s].loadobj.img),En[Ji].getAttribute("data-iratio")!==_e&&!En[Ji].getAttribute("data-iratio")&&Or.img&&Or.img.naturalWidth&&(En[Ji].setAttribute("data-iratio",Or.img.naturalWidth/Or.img.naturalHeight),$e.setCarouselDefaults(bi,"redraw",!0),$e[bi].carousel.ocfirsttun===!0)&&$e.organiseCarousel(bi,"right",!0,!1,!1),$e.updateSlideBGs(bi,_s,$e[bi].sbgs[_s]))):Or.type=="svg"&&Or.progress=="loaded"&&(go[Fn].innerHTML=Or.innerHTML),Cr.loaded=!0),Or&&Or.progress&&Or.progress.match(/inprogress|inload|prepared/g)&&(!Or.error&&Date.now()-Or.starttoload<15e3?Mn=!0:(Or.progress="failed",Or.reported_img||(Or.reported_img=!0,console.log(_r+"  Could not be loaded !")))),$e[bi].youtubeapineeded!=1||window.YT&&YT.Player!=_e||(Mn=cn("youtube",bi)),$e[bi].vimeoapineeded!=1)||window.Vimeo||(Mn=cn("vimeo",bi))}De.each($e[bi].loadqueue,function(As,no){no.static===!0&&(no.progress!="loaded"&&no.progress!=="done"||no.progress==="failed")&&(no.progress!="failed"||no.reported?!no.error&&Date.now()-no.starttoload<5e3?Mn=!0:no.reported||(no.reported=fn(no.src,no.error)):no.reported=fn(no.src,no.error))}),Mn?tpGS.gsap.delayedCall(.02,$e.waitForCurrentImages,[Ue,bi,Ii]):Ii!==_e&&tpGS.gsap.delayedCall(1e-4,Ii)}},updateVisibleArea:function(Ue){for(var bi in $e[Ue].viewPort.visible_area=$e.revToResp($e[Ue].viewPort.visible_area,$e[Ue].rle,"0px"),$e[Ue].viewPort.vaType=new Array(4),$e[Ue].viewPort.visible_area)$e[Ue].viewPort.visible_area.hasOwnProperty(bi)&&($e[Ue].viewPort.local===!1&&$e[Ue].viewPort.global===!0?($e[Ue].viewPort.vaType[bi]=0<=$e[Ue].viewPort.globalDist.indexOf("%")?"%":"px",$e[Ue].viewPort.visible_area[bi]=parseInt($e[Ue].viewPort.globalDist)):($e.isNumeric($e[Ue].viewPort.visible_area[bi])&&($e[Ue].viewPort.visible_area[bi]+="%"),$e[Ue].viewPort.visible_area[bi]!==_e&&($e[Ue].viewPort.vaType[bi]=0<=$e[Ue].viewPort.visible_area[bi].indexOf("%")?"%":"px"),$e[Ue].viewPort.visible_area[bi]=parseInt($e[Ue].viewPort.visible_area[bi],0)),$e[Ue].viewPort.visible_area[bi]=$e[Ue].viewPort.vaType[bi]=="%"?$e[Ue].viewPort.visible_area[bi]/100:$e[Ue].viewPort.visible_area[bi])},observeFonts:function(Ue,bi,Ii){Ii=Ii===_e?0:Ii,$e.fonts===_e&&($e.fonts={},$e.monoWidth=oi("monospace"),$e.sansWidth=oi("sans-serif"),$e.serifWidth=oi("serif")),Ii++;var Ji=$e.fonts[Ue];$e.fonts[Ue]!==!0&&($e.fonts[Ue]=$e.monoWidth!==oi(Ue+",monospace")||$e.sansWidth!==oi(Ue+",sans-serif")||$e.serifWidth!==oi(Ue+",serif")),Ii===100||(Ji===!1||Ji===_e)&&$e.fonts[Ue]===!0?(oi(Ue+",monospace",!0),oi(Ue+",sans-serif",!0),oi(Ue+",serif",!0),bi()):setTimeout(function(){$e.observeFonts(Ue,bi,Ii)},19)},getversion:function(){return Ke},currentSlideIndex:function(Ue){return $e[Ue].pr_active_key},iOSVersion:function(){return!!(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i))&&navigator.userAgent.match(/OS 4_\d like Mac OS X/i)},setIsIOS:function(){$e.isiPhone=/iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,$e.isIOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.standalone!==void 0},setIsChrome8889:function(){$e.isChrome8889=$e.isChrome8889===_e?0<=navigator.userAgent.indexOf("Chrome/88")||0<=navigator.userAgent.indexOf("Chrome/89"):$e.isChrome8889},isIE:function(){var Ue;return $e.isIERes===_e&&((Ue=De('<div style="display:none;"/>').appendTo(De("body"))).html("<!--[if IE 8]><a>&nbsp;</a><![endif]-->"),$e.isIERes=Ue.find("a").length,Ue.remove()),$e.isIERes},is_mobile:function(){var Ue=["android","webos","iphone","ipad","blackberry","Android","webos","iPod","iPhone","iPad","Blackberry","BlackBerry"],bi=!1;if(window.orientation!==_e)bi=!0;else for(var Ii in Ue)Ue.hasOwnProperty(Ii)&&(bi=!!(bi||1<navigator.userAgent.
193split(Ue[Ii]).length)||bi);return bi&&document.body&&document.body.className.indexOf("rs-ISM")===-1&&(document.body.className+=" rs-ISM"),bi},is_android:function(){var Ue,bi=["android","Android"],Ii=!1;for(Ue in bi)bi.hasOwnProperty(Ue)&&(Ii=!!(Ii||1<navigator.userAgent.split(bi[Ue]).length)||Ii);return Ii},callBackHandling:function(Ue,bi,Ii){$e[Ue].callBackArray&&De.each($e[Ue].callBackArray,function(Ji,Mn){Mn&&Mn.inmodule&&Mn.inmodule===bi&&Mn.atposition&&Mn.atposition===Ii&&Mn.callback&&Mn.callback.call()})},get_browser:function(){var Ue,bi=navigator.userAgent,Ii=bi.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(Ii[1])?(Ue=/\brv[ :]+(\d+)/g.exec(bi)||[],"IE"):Ii[1]==="Chrome"&&(Ue=bi.match(/\b(OPR|Edge)\/(\d+)/))!=null?Ue[1].replace("OPR","Opera"):(Ii=Ii[2]?[Ii[1],Ii[2]]:[navigator.appName,navigator.appVersion,"-?"],(Ue=bi.match(/version\/(\d+)/i))!=null&&Ii.splice(1,1,Ue[1]),Ii[0])},get_browser_version:function(){var Ue=navigator.appName,bi=navigator.userAgent,Ii=bi.match(/(edge|opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return Ii&&(bi=bi.match(/version\/([\.\d]+)/i))!=null&&(Ii[2]=bi[1]),(Ii=Ii?[Ii[1],Ii[2]]:[Ue,navigator.appVersion,"-?"])[1]},isFaceBook:function(){return $e.isFaceBookApp==_e&&($e.isFaceBookApp=navigator.userAgent||navigator.vendor||window.opera,$e.isFaceBookApp=-1<$e.isFaceBookApp.indexOf("FBAN")||-1<$e.isFaceBookApp.indexOf("FBAV")),$e.isFaceBookApp},isFirefox:function(Ue){return $e[Ue].isFirefox=$e[Ue].isFirefox===_e?$e.get_browser()==="Firefox":$e[Ue].isFirefox,$e.isFF=$e[Ue].isFirefox,$e[Ue].isFirefox},isSafari11:function(){return $e.trim($e.get_browser().toLowerCase())==="safari"&&11<=parseFloat($e.get_browser_version())},isWebkit:function(){var Ue=/(webkit)[ \/]([\w.]+)/.exec(navigator.userAgent.toLowerCase());return Ue&&Ue[1]&&Ue[1]==="webkit"},isIE11:function(){return $e.IE11=$e.IE11===_e?!!navigator.userAgent.match(/Trident.*rv\:11\./):$e.IE11,$e.IE11},checkBackdrop:function(){var Ue=document.createElement("div"),bi=(Ue.style.cssText="-webkit-backdrop-filter: blur(2px)",Ue.style.length!=0),Ii=document.documentMode===_e||9<document.documentMode;bi&&Ii||(Ue.style.cssText="backdrop-filter: blur(2px)",bi=Ue.style.length!=0),Ue=null,$e.useBackdrop=bi&&Ii},deepLink:function(Ue,bi){if(bi!==_e){var Ii=parseInt(bi.toString().replace(/^slide/,"").replace("-",""),10);if(isNaN(Ii)){for(var Ji in $e[Ue].slides)if($e[Ue].slides.hasOwnProperty(Ji)&&$e.gA($e[Ue].slides[Ji],"deeplink")===bi){Ii=parseInt($e.gA($e[Ue].slides[Ji],"originalindex"),10);break}}return isNaN(Ii)||Ii<1||Ii>
193$e[Ue].realslideamount?void 0:Ii}},getHorizontalOffset:function(Ji,bi){var Ii=ii(Ji,".outer-left"),Ji=ii(Ji,".outer-right");return bi=="left"?Ii:bi=="right"?Ji:bi=="all"?{left:Ii,right:Ji,both:Ii+Ji,inuse:Ii+Ji!=0}:Ii+Ji},getComingSlide:function(Ue,bi){var Ii=$e[Ue].pr_next_key!==_e?$e[Ue].pr_next_key:$e[Ue].pr_processing_key!==_e?$e[Ue].pr_processing_key:$e[Ue].pr_active_key,Ji=0,Ji=0;if($e[Ue].pr_active_slide!==_e&&$e.gA($e[Ue].pr_active_slide[0],"not_in_nav")=="true"&&(Ii=$e[Ue].pr_lastshown_key),bi!==_e&&$e.isNumeric(bi)||bi!==_e&&bi.match(/to/g))Ji=bi===1||bi===-1?parseInt(Ii,0)+bi<0?$e[Ue].slideamount-1:parseInt(Ii,0)+bi>=$e[Ue].slideamount?0:parseInt(Ii,0)+bi:(bi=$e.isNumeric(bi)?bi:parseInt(bi.split("to")[1],0))<0?0:bi>$e[Ue].slideamount-1?$e[Ue].slideamount-1:bi;else if(bi)for(var Mn in $e[Ue].slides)$e[Ue].slides.hasOwnProperty(Mn)&&(Ji=$e[Ue].slides&&$e[Ue].slides[Mn]&&($e.gA($e[Ue].slides[Mn],"key")===bi||$e[Ue].slides[Mn].id===bi)?Mn:Ji);return{nindex:Ji,aindex:Ii}},callingNewSlide:function(Ue,bi,Ii,Ji){bi=$e.getComingSlide(Ue,bi),$e[Ue].pr_next_key=bi.nindex,$e[Ue].sdir=($e[Ue].sc_indicator==="bullet"||$e[Ue].pr_active_key!=$e[Ue].slideamount-1||$e[Ue].pr_next_key!=0)&&$e[Ue].pr_next_key<$e[Ue].pr_active_key?1:0,Ii&&$e[Ue].carousel!==_e&&($e[Ue].carousel.focused=$e[Ue].pr_next_key),$e[Ue].sliderType==="carousel"&&$e[Ue].startedWithOtherSlide&&($e[Ue].carousel.focused=$e[Ue].pr_next_key,delete $e[Ue].startedWithOtherSlide),$e[Ue].ctNavElement?$e[Ue].ctNavElement=!1:$e[Ue].c.trigger("revolution.nextslide.waiting"),($e[Ue].started&&bi.aindex===$e[Ue].pr_next_key&&bi.aindex===$e[Ue].pr_lastshown_key||$e[Ue].pr_next_key!==bi.aindex&&$e[Ue].pr_next_key!=-1&&$e[Ue].pr_lastshown_key!==_e)&&Sn(Ue,Ii)},getLoadObj:function(Ue,bi){return Ue=$e[Ue].loadqueue!==_e&&$e[Ue].loadqueue.filter(function(Ii){return Ii.src===bi})[0],Ue===_e?{src:bi}:Ue},getResponsiveLevel:function(Ue){var bi=9999,Ii=0,Ji=0,Mn=0;if($e[Ue].responsiveLevels&&$e[Ue].responsiveLevels.length)for(var En in $e[Ue].responsiveLevels)$e[Ue].responsiveLevels.hasOwnProperty(En)&&($e.winWAll<$e[Ue].responsiveLevels[En]&&(Ii==0||Ii>parseInt($e[Ue].responsiveLevels[En]))&&(bi=parseInt($e[Ue].responsiveLevels[En]),Mn=parseInt(En),Ii=parseInt($e[Ue].responsiveLevels[En])),$e.winWAll>$e[Ue].responsiveLevels[En])&&Ii<$e[Ue].responsiveLevels[En]&&(Ii=parseInt($e[Ue].responsiveLevels[En]),Ji=parseInt(En));return Ii<bi?Ji:Mn},getSizeMultpilicator:function(Ue,bi,Ii){var Ji={h:0,w:0};return $e[Ue].justifyCarousel?Ji.h=Ji.w=1:(Ji.w=Ii.width/$e[Ue].gridwidth[$e[Ue].level],Ji.h=Ii.height/$e[Ue].gridheight[$e[Ue].level],Ji.w=isNaN(Ji.w)?1:Ji.w,Ji.h=isNaN(Ji.h)?1:Ji.h,$e[Ue].enableUpscaling==1?Ji.h=Ji.w:(Ji.w<Ji.h?Ji.h=Ji.w:Ji.w=Ji.h,(1<Ji.h||1<Ji.w)&&(Ji.w=1,Ji.h=1))),Ji},updateDims:function(Ue,bi){var Ii,Ji=$e[Ue].pr_processing_key||$e[Ue].pr_active_key||0,Mn=$e[Ue].pr_active_key||0,En=$e[Ue].modal!==_e&&$e[Ue].modal.useAsModal,_r=En?$e.winWAll:$e.winW,Fn=!1,Cr=($e[Ue].lastScrollBarWidth=$e.scrollBarWidth,$e[Ue].redraw=$e[Ue].redraw===_e?{}:$e[Ue].redraw,$e[Ue].module=$e[Ue].module===_e?{}
193:$e[Ue].module,$e[Ue].canv=$e[Ue].canv===_e?{}:$e[Ue].canv,$e[Ue].content=$e[Ue].content===_e?{}:$e[Ue].content,$e[Ue].drawUpdates={c:{},cpar:{},canv:{}},$e[Ue].sliderType=="carousel"?$e[Ue].module.margins={top:parseInt($e[Ue].carousel.padding_top||0,0),bottom:parseInt($e[Ue].carousel.padding_bottom||0,0)}:$e[Ue].module.margins={top:0,bottom:0},$e[Ue].module.paddings===_e&&($e[Ue].module.paddings={top:parseInt($e[Ue].cpar.css("paddingTop"),0)||0,bottom:parseInt($e[Ue].cpar.css("paddingBottom"),0)||0}),$e[Ue].blockSpacing!==_e?($e[Ue].block={bottom:$e[Ue].blockSpacing.bottom!==_e?parseInt($e[Ue].blockSpacing.bottom[$e[Ue].level],0):0,top:$e[Ue].blockSpacing.top!==_e?parseInt($e[Ue].blockSpacing.top[$e[Ue].level],0):0,left:$e[Ue].blockSpacing.left!==_e?parseInt($e[Ue].blockSpacing.left[$e[Ue].level],0):0,right:$e[Ue].blockSpacing.right!==_e?parseInt($e[Ue].blockSpacing.right[$e[Ue].level],0):0},$e[Ue].block.hor=$e[Ue].block.left+$e[Ue].block.right,$e[Ue].block.ver=$e[Ue].block.top+$e[Ue].block.bottom):$e[Ue].block===_e&&($e[Ue].block={top:0,left:0,right:0,bottom:0,hor:0,ver:0}),$e[Ue].blockSpacing!==_e&&(Ii={paddingLeft:$e[Ue].block.left,paddingRight:$e[Ue].block.right,marginTop:$e[Ue].block.top,marginBottom:$e[Ue].block.bottom},Cr=JSON.stringify(Ii),Ii!==$e[Ue].emptyObject)&&Cr!==$e[Ue].caches.setsizeBLOCKOBJ&&(tpGS.gsap.set($e[Ue].blockSpacing.block,Ii),$e[Ue].caches.setsizeBLOCKOBJ=Cr,Fn=!0),$e[Ue].levelForced=$e[Ue].level=$e.getResponsiveLevel(Ue),$e[Ue].rowHeights=$e.getRowHeights(Ue),$e[Ue].aratio=$e[Ue].gridheight[$e[Ue].level]/$e[Ue].gridwidth[$e[Ue].level],$e[Ue].module.width=$e[Ue].sliderLayout==="auto"||$e[Ue].disableForceFullWidth==1?$e[Ue].cpar.width():_r-$e[Ue].block.hor,$e[Ue].outNavDims=$e.getOuterNavDimension(Ue),$e[Ue].canv.width=$e[Ue].module.width-$e[Ue].outNavDims.horizontal-(En?$e.scrollBarWidth:0),En&&$e[Ue].sliderLayout==="auto"&&($e[Ue].canv.width=Math.min($e[Ue].gridwidth[$e[Ue].level],_r)),$e[Ue].sliderLayout==="fullscreen"||$e[Ue].infullscreenmode?(Ii=$e.getWinH(Ue)-($e[Ue].modal.useAsModal===!0?0:$e.getFullscreenOffsets(Ue)),$e[Ue].canv.height=Math.max($e[Ue].rowHeights.cur,Math.max(Ii-$e[Ue].outNavDims.vertical,$e[Ue].minHeight)),Mn!==Ji&&($e[Ue].currentSlideHeight=Math.max($e[Ue].rowHeights.last,Math.max(Ii-$e[Ue].outNavDims.vertical,$e[Ue].minHeight)),$e[Ue].redraw.maxHeightOld=!0),$e[Ue].drawUpdates.c.height="100%"):($e[Ue].canv.height=$e[Ue].keepBPHeight?$e[Ue].gridheight[$e[Ue].level]:Math.round($e[Ue].canv.width*$e[Ue].aratio),$e[Ue].canv.height=$e[Ue].autoHeight?$e[Ue].canv.height:Math.min($e[Ue].canv.height,$e[Ue].gridheight[$e[Ue].level]),$e[Ue].carousel.prevNextVisCalculated=$e[Ue].sliderType=="carousel"&&$e[Ue].carousel.orientation=="v"?$e[Ue].carousel.prevNextVisType=="%"?$e[Ue].canv.height*$e[Ue].carousel.prevNextVis:$e[Ue].carousel.prevNextVis:0,$e[Ue].canv.height=Math.max(Math.max($e[Ue].rowHeights.cur,$e[Ue].canv.height),$e[Ue].minHeight)+$e[Ue].carousel.prevNextVisCalculated,$e[Ue].sliderType=="carousel"&&$e[Ue].carousel.orientation=="v"&&($e[Ue].canv.height=Math.min($e[Ue].canv.height,$e.winH)),$e[Ue].drawUpdates.c.height=$e[Ue].canv.height),$e[Ue].sliderLayout!=="fullscreen"&&$e[Ue].sliderLayout!=="fullwidth"||($e[Ue].canv.width-=$e[Ue].cpar.outerWidth()-$e[Ue].cpar.width(),$e[Ue].sliderLayout==="fullscreen"&&($e[Ue].canv.height-=$e[Ue].cpar.outerHeight()-$e[Ue].cpar.height())),$e[Ue].module.height=$e[Ue].canv.height,$e[Ue].sliderLayout!="fullwidth"||$e[Ue].fixedOnTop||($e[Ue].drawUpdates.c.maxHeight=$e[Ue].maxHeight!=0?Math.min($e[Ue].canv.height,$e[Ue].maxHeight):$e[Ue].canv.height),$e[Ue].CM=$e.getSizeMultpilicator(Ue,$e[Ue].enableUpscaling,{width:$e[Ue].canv.width,height:$e[Ue].canv.height}),$e[Ue].content.width=$e[Ue].gridwidth[$e[Ue].level]*$e[Ue].CM.w,$e[Ue].content.height=Math.round(Math.max($e[Ue].rowHeights.cur,$e[Ue].gridheight[$e[Ue].level]*$e[Ue].CM.h)),$e[Ue].module.margins.top+$e[Ue].module.margins.bottom+($e[Ue].sliderLayout==="fullscreen"?0:$e[Ue].outNavDims.vertical)+$e[Ue].canv.height+$e[Ue].module.paddings.top+$e[Ue].module.paddings.bottom),_r=($e[Ue].drawUpdates.cpar.height=Cr,$e[Ue].drawUpdates.cpar.width=$e[Ue].sliderLayout==="auto"?"auto":$e[Ue].module.width,$e[Ue].sliderLayout==="auto"||$e[Ue].sliderLayout==="fullscreen"&&$e[Ue].disableForceFullWidth===!0||$e[Ue].rsFullWidthWrap===_e?$e[Ue].sliderLayout=="fullscreen"&&$e[Ue].disableForceFullWidth==1&&($e[
193Ue].drawUpdates.cpar.left=0):$e[Ue].drawUpdates.cpar.left=0-Math.ceil($e[Ue].rsFullWidthWrap.offset().left-($e[Ue].outNavDims.left+$e[Ue].block.left)),$e[Ue].sbtimeline.set&&$e[Ue].sbtimeline.fixed?($e[Ue].sbtimeline.extended===_e&&$e.updateFixedScrollTimes(Ue),$e[Ue].forcerHeight=2*Cr+$e[Ue].sbtimeline.extended,$e[Ue].sbtimeline.pullc&&$e[Ue].rsFullWidthWrap!==_e&&$e[Ue].rsFullWidthWrap[0]!==null&&requestAnimationFrame(function(){var Or=$e[Ue].rsFullWidthWrapMarginBottom+-1*$e[Ue].forcerHeight;$e[Ue].rsFullWidthWrap[0].style.marginBottom=(isNaN(Or)?$e[Ue].rsFullWidthBottomMarginPush:$e[Ue].rsFullWidthBottomMarginPush+Or)+"px"}),$e[Ue].rsFullWidthWrap!==_e&&$e[Ue].rsFullWidthWrap[0]!==null&&$e[Ue].sliderLayout=="fullscreen"&&($e[Ue].rsFullWidthBottomMarginPush=$e.getFullscreenOffsets(Ue),$e[Ue].rsFullWidthWrap[0].style.marginBottom=$e[Ue].rsFullWidthBottomMarginPush+"px")):$e[Ue].forcerHeight=Cr,$e[Ue].forcerHeight!==$e[Ue].caches.setsizeForcerHeight&&$e[Ue].forcer!==_e&&($e[Ue].caches.setsizeForcerHeight=$e[Ue].forcerHeight,$e[Ue].redraw.forcer=Fn=!0),$e[Ue].drawUpdates.c.width=$e[Ue].canv.width,$e[Ue].sliderLayout==="auto"&&($e[Ue].drawUpdates.c.left=$e[Ue].outNavDims.left),$e[Ue].drawUpdates.c!==$e[Ue].emptyObject&&JSON.stringify($e[Ue].drawUpdates.c)!==$e[Ue].caches.setsizeCOBJ&&($e[Ue].caches.setsizeCOBJ=JSON.stringify($e[Ue].drawUpdates.c),$e[Ue].redraw.c=Fn=!0),$e[Ue].drawUpdates.cpar!==$e[Ue].emptyObject&&JSON.stringify($e[Ue].drawUpdates.cpar)!==$e[Ue].caches.setsizeCPAROBJ&&($e[Ue].caches.setsizeCPAROBJ=JSON.stringify($e[Ue].drawUpdates.cpar),$e[Ue].redraw.cpar=Fn=!0),En&&$e[Ue].sliderLayout==="auto"&&$e[Ue].caches.canWidth!==$e[Ue].canv.width&&($e[Ue].caches.canWidth=$e[Ue].canv.width,$e[Ue].redraw.modalcanvas=Fn=!0),$e[Ue].slayers&&0<$e[Ue].slayers.length&&$e[Ue].outNavDims.left!==$e[Ue].caches.outNavDimsLeft&&$e[Ue].sliderLayout!="fullwidth"&&$e[Ue].sliderLayout!="fullscreen"&&($e[Ue].caches.outNavDimsLeft=$e[Ue].outNavDims.left,$e[Ue].redraw.slayers=!0),En&&$e[Ue].modal.calibration!==_e&&$e[Ue].modal.vertical==="middle"&&($e[Ue].modal.calibration.top=$e.getWinH(Ue)<Cr?"0%":"50%",$e[Ue].modal.calibration.y=$e.getWinH(Ue)<Cr?"0px":"-50%",$e[Ue].sliderLayout==="fullwidth")&&($e[Ue].redraw.modulewrap=Fn=!0),$e[Ue].gridOffsetWidth=($e[Ue].module.width-$e[Ue].gridwidth[$e[Ue].level])/2,$e[Ue].gridOffsetHeight=($e[Ue].module.height-$e[Ue].content.height)/2,$e[Ue].caches.curRowsHeight=$e[Ue].currentRowsHeight=$e[Ue].rowHeights.cur,$e[Ue].caches.moduleWidth=$e[Ue].width=$e[Ue].module.width,$e[Ue].caches.moduleHeight=$e[Ue].height=$e[Ue].module.height,$e[Ue].caches.canWidth=$e[Ue].conw=$e[Ue].canv.width,$e[Ue].caches.canHeight=$e[Ue].conh=$e[Ue].canv.height,$e[Ue].bw=$e[Ue].CM.w,$e[Ue].bh=$e[Ue].CM.h,$e[Ue].caches.outNavDimsLeft=$e[Ue].outNavDims.left,window.requestAnimationFrame(function(){$e[Ue].redraw.forcer&&tpGS.gsap.set($e[Ue].forcer,{height:$e[Ue].forcerHeight}),$e[Ue].redraw.c&&tpGS.gsap.set($e[Ue].c,$e[Ue].drawUpdates.c),$e[Ue].redraw.cpar&&tpGS.gsap.set($e[Ue].cpar,$e[Ue].drawUpdates.cpar),$e[Ue].redraw.modalcanvas&&$e[Ue]!==_e&&($e[Ue].modal!==_e&&$e[Ue].modal.c!==_e&&tpGS.gsap.set($e[Ue].modal.c,{width:$e[Ue].canv.width}),$e[Ue].canvas!==_e)&&tpGS.gsap.set($e[Ue].canvas,{width:$e[Ue].canv.width}),$e[Ue].redraw.maxHeightOld&&($e[Ue].slides[Mn].style.maxHeight=$e[Ue].currentSlideHeight!==$e[Ue].canv.height?$e[Ue].currentSlideHeight+"px":"none"),$e[Ue].redraw.slayers&&tpGS.gsap.set($e[Ue].slayers,{left:$e[Ue].outNavDims.left}),$e[Ue].redraw.modulewrap&&tpGS.gsap.set($e[Ue].modal.c.find("rs-module-wrap"),$e[Ue].modal.calibration),$e[Ue].navigation.initialised!==!0&&bi==="prepared"&&($e[Ue].sliderType!=="hero"&&$e.createNavigation&&$e[Ue].navigation.use&&$e[Ue].navigation.createNavigationDone!==!0&&$e.createNavigation(Ue),$e.resizeThumbsTabs)&&$e.resizeThumbsTabs&&$e[Ue].navigation.use&&$e.resizeThumbsTabs(Ue),$e[Ue].rebuildProgressBar&&Hn(Ue),$e.putRowsInPosition(Ue),$e[Ue].redraw={}}),$e[Ue].inviewport&&($e[Ue].heightInLayers!==_e&&$e[Ue].module.height!==$e[Ue].heightInLayers||$e[Ue].widthInLayers!==_e&&$e[Ue].module.width!==$e[Ue].widthInLayers));return bi!=="ignore"&&_r&&($e[Ue].heightInLayers=_e,$e[Ue].widthInLayers=_e,$e[Ue].sliderType!=="carousel"&&($e[Ue].pr_next_key!==_e?$e.animateTheLayers({slide:$e[Ue].pr_next_key,id:Ue,mode:"rebuild",caller:"swapSlideProgress_1"}):$e[Ue].pr_processing_key!==_e?$e.animateTheLayers({slide:$e[Ue].pr_processing_key,id:Ue,mode:"rebuild",caller:"swapSlideProgress_2"}):$e[Ue].pr_active_key!==_e&&$e.animateTheLayers({slide:$e[Ue].pr_active_key,id:Ue,mode:"rebuild",caller:"swapSlideProgress_3"}
193)),Fn=!0),Fn&&bi!=="ignore"&&$e.requestLayerUpdates(Ue,"enterstage"),$e[Ue].module.height!==$e[Ue].module.lastHeight&&($e[Ue].module.lastHeight=$e[Ue].module.height,window.requestAnimationFrame(function(){window.innerHeight!==screen.height&&Math.round(window.innerHeight*window.devicePixelRatio)!==screen.height&&zi(Ue,_e,!1)})),tpGS.gsap.delayedCall(.1,function(){$e[Ue].lastScrollBarWidth!==$e.scrollBarWidth?($e.updateDims(Ue,"ignore"),zi(Ue)):$e.isModalOpen||$e.scrollBarWidth===window.innerWidth-document.documentElement.clientWidth||$e.rAfScrollbar===_e&&($e.rAfScrollbar=requestAnimationFrame(function(){$e.rAfScrollbar=_e,$e.getWindowDimension(Ue,!1)}))}),Fn},putMiddleZoneInPosition:function(Ue,bi){$e[Ue].middleZones==_e||$e[Ue].middleZones[bi]==_e||$e[Ue].rowMiddleHeights==_e||$e[Ue].rowMiddleHeights[bi]==_e||$e[Ue].caches.middleHeights[bi]===$e[Ue].rowMiddleHeights[bi]&&$e[Ue].caches.lastModuleHeight===$e[Ue].module.height||(tpGS.gsap.set($e[Ue].middleZones[bi],{top:Math.round($e[Ue].module.height/2-$e[Ue].rowMiddleHeights[bi]/2)}),$e[Ue].caches.middleHeights[bi]=$e[Ue].rowMiddleHeights[bi])},putRowsInPosition:function(Ue){var bi=$e[Ue].activeRSSlide||0,Ii=$e[Ue].pr_processing_key;$e.putMiddleZoneInPosition(Ue,bi),bi!==Ii&&Ii!==_e&&$e.putMiddleZoneInPosition(Ue,Ii),$e[Ue].smiddleZones==_e||$e[Ue].rowMiddleHeights==_e||$e[Ue].rowMiddleHeights.static==_e||$e[Ue].caches.middleHeights.static===$e[Ue].rowMiddleHeights.static&&$e[Ue].caches.lastModuleHeight===$e[Ue].module.height||(tpGS.gsap.set($e[Ue].smiddleZones[0],{top:Math.round($e[Ue].module.height/2-$e[Ue].rowMiddleHeights.static/2)}),$e[Ue].caches.middleHeights.static=$e[Ue].rowMiddleHeights.static),$e[Ue].caches.lastModuleHeight=$e[Ue].module.height},getSlideIndex:function(Ue,bi){var Ii,Ji=!1;for(Ii in $e[Ue].slides)!$e[Ue].slides.hasOwnProperty(Ii)||Ji!==!1||(Ji=$e.gA($e[Ue].slides[Ii],"key")===bi?Ii:Ji);return Ji===!1?0:Ji},loadUpcomingContent:function(Ue){var bi,Ii,Ji,Mn;$e[Ue].lazyType=="smart"&&(bi=[],Ji=(Ii=parseInt($e.getSlideIndex(Ue,$e.gA($e[Ue].pr_next_slide[0],"key")),0))-1<0?$e[Ue].realslideamount-1:Ii-1,Mn=Ii+1==$e[Ue].realslideamount?0:Ii+1,Ji!==Ii&&bi.push($e[Ue].slides[Ji]),Mn!==Ii&&bi.push($e[Ue].slides[Mn]),0<bi.length)&&($e.loadImages(bi,Ue,2),$e.waitForCurrentImages(bi,Ue,function(){}))},lazyLoadAllSlides:function(Ue){if($e[Ue].lazyType=="all"&&$e[Ue].lazyLoad_AllDone!==!0&&($e[Ue].viewPort.enable&&$e[Ue].inviewport||!$e[Ue].viewPort.enable)){for(var bi in $e[Ue].slides)$e[Ue].slides.hasOwnProperty(bi)&&($e.loadImages($e[Ue].slides[bi],Ue,bi),$e.waitForCurrentImages($e[Ue].slides[bi],Ue,function(){}));$e[Ue].lazyLoad_AllDone=!0}},getFullscreenOffsets:function(Ue){var bi=0;if($e[Ue].fullScreenOffsetContainer!=_e){var Ii,Ji=(""+$e[Ue].fullScreenOffsetContainer).split(",");for(Ii in Ji)Ji.hasOwnProperty(Ii)&&(bi+=De(Ji[Ii]).outerHeight(!0)||0)}return $e[Ue].fullScreenOffset!=_e&&(!$e.isNumeric($e[Ue].fullScreenOffset)&&1<$e[Ue].fullScreenOffset.split("%").length?bi+=$e.getWinH(Ue)*parseInt($e[Ue].fullScreenOffset,0)/100:$e.isNumeric(parseInt($e[Ue].fullScreenOffset,0))&&(bi+=parseInt($e[Ue].fullScreenOffset,0)||0)),$e[Ue].fullScreenOffsetResult=bi},unToggleState:function(Ue){if(Ue!==_e)for(var bi=0;bi<Ue.length;bi++)try{document.getElementById(Ue[bi]).classList.remove("rs-tc-active")}catch{}},toggleState:function(Ue){if(Ue!==_e)for(var bi=0;bi<Ue.length;bi++)try{document.getElementById(Ue[bi]).classList.add("rs-tc-active")}catch{}},swaptoggleState:function(Ue){if(Ue!=_e&&0<Ue.length)for(var bi=0;bi<Ue.length;bi++){var Ii=document.getElementById(Ue[bi]);if($e.gA(Ii,"toggletimestamp")!==_e&&new Date().getTime()-$e.gA(Ii,"toggletimestamp")<250)return;$e.sA(Ii,"toggletimestamp",new Date().getTime()),Ii!==null&&(0<=Ii.className.indexOf("rs-tc-active")?Ii.classList.remove("rs-tc-active"):Ii.classList.add("rs-tc-active"))}},lastToggleState:function(Ue){if(Ue!==_e)for(var bi=0;bi<Ue.length;bi++)var Ii=document.getElementById(Ue[bi]),Ji=Ji===!0||Ii!==null&&0<=Ii.className.indexOf("rs-tc-active")||Ji;return Ji},revCheckIDS:function(Ue,bi){var Ii,Ji,Mn;return $e.gA(bi,"idcheck")===_e&&(Ii=bi.id,(Mn=-1)!==(Ji=De.inArray(bi.id,window.RSANYID))&&(Mn=De.inArray(bi.id,$e[Ue].anyid),window.RSANYID_sliderID[Ji]===Ue&&Mn===-1||(bi.id=bi.id+"_"+Math.round(9999*Math.random()),console.log("Warning - ID:"+Ii+" exists already. New Runtime ID:"+bi.id),Ji=Mn=-1)),Mn===-1&&$e[Ue].anyid.push(bi.id),Ji===-1)&&(window.RSANYID.push(bi.id),window.RSANYID_sliderID.push(Ue)),$e.sA(bi,"idcheck",!0),bi.id},buildSpinner:function(Ue,bi,Ii,Ji){if(bi!=="off"){Ji=Ji===_e?"":Ji,Ii=Ii===_e?"#ffffff"
193:Ii;var Mn=parseInt(bi.replace("spinner",""),10);if(isNaN(Mn)||Mn<6)var Fn='style="background-color:'+Ii+'"',En=Ji===_e||Mn!==3&&Mn!=4?"":Fn,Fn=De("<rs-loader "+(Ji===_e||Mn!==1&&Mn!=2?"":Fn)+' class="'+bi+" "+Ji+'"><div '+En+' class="dot1"></div><div '+En+' class="dot2"></div><div '+En+' class="bounce1"></div><div '+En+' class="bounce2"></div><div '+En+' class="bounce3"></div></rs-loader>');else{for(var Cr,_r='<div class="rs-spinner-inner"',Or=(Mn===7?(Ii.search("#")!==-1?(Cr=Ii.replace("#",""),Cr="rgba("+parseInt(Cr.substring(0,2),16)+", "+parseInt(Cr.substring(2,4),16)+", "+parseInt(Cr.substring(4,6),16)+", "):Ii.search("rgb")!==-1&&2<(Cr=Ii.substring(Ii.indexOf("(")+1,Ii.lastIndexOf(")")).split(",")).length&&(Cr="rgba("+Cr[0].trim()+", "+Cr[1].trim()+", "+Cr[2].trim()+", "),Cr&&typeof Cr=="string"&&(_r+=' style="border-top-color: '+Cr+"0.65); border-bottom-color: "+Cr+"0.15); border-left-color: "+Cr+"0.65); border-right-color: "+Cr+'0.15)"')):Mn===12&&(_r+=' style="background:'+Ii+'"'),_r+=">",[10,0,4,2,5,9,0,4,4,2][Mn-6]),_s=0;_s<Or;_s++)0<_s&&(_r+=" "),_r+='<span style="background:'+Ii+'"></span>';Fn=De('<rs-loader class="'+bi+" "+Ji+'">'+(_r+="</div>")+"</div></rs-loader>")}return Fn}},addStaticLayerTo:function(Ue,bi,Ii){var Ji;$e[Ue].slayers.length<2?((Ji=document.createElement("rs-static-layers")).className="rs-stl-"+bi,Ji.appendChild(Ii[0]),$e[Ue].c[0].appendChild(Ji),$e[Ue].slayers.push(Ji)):$e[Ue].slayers[1].appendChild(Ii[0])}}),function(){return $e.isIE11()?function(Ue,bi){return Ue.querySelectorAll(bi)}:function(Ue,bi){return Ue.getElementsByTagName(bi)}}),ci=function(Ue){$e[Ue].responsiveLevels=$e.revToResp($e[Ue].responsiveLevels,$e[Ue].rle),$e[Ue].visibilityLevels=$e.revToResp($e[Ue].visibilityLevels,$e[Ue].rle),$e[Ue].responsiveLevels[0]=9999,$e[Ue].rle=$e[Ue].responsiveLevels.length||1,$e[Ue].gridwidth=$e.revToResp($e[Ue].gridwidth,$e[Ue].rle),$e[Ue].gridheight=$e.revToResp($e[Ue].gridheight,$e[Ue].rle),$e[Ue].editorheight!==_e&&($e[Ue].editorheight=$e.revToResp($e[Ue].editorheight,$e[Ue].rle)),$e.updateDims(Ue)},gi=function(Ue,bi){var Ii=[];return De.each(Ue,function(Ji,Mn){Ji!=bi&&Ii.push(Mn)}),Ii},Ai=function(Ue,bi,Ii){$e[Ii].c.find(Ue).each(function(){var Ji=De(this);Ji.data("key")===bi&&Ji.remove()})},oi=function(Ue,bi){if($e["rsfont_"+Ue]==_e&&($e["rsfont_"+Ue]=document.createElement("span"),$e["rsfont_"+Ue].innerHTML=Array(100).join("wi"),$e["rsfont_"+Ue].style.cssText=["position:absolute","width:auto","font-size:128px","left:-99999px"].join(" !important;"),$e["rsfont_"+Ue].style.fontFamily=Ue,document.body.appendChild($e["rsfont_"+Ue])),bi===_e)return $e["rsfont_"+Ue].clientWidth;document.body.removeChild($e["rsfont_"+Ue])},ii=function(Ue,bi){var Ii=0;return Ue.find(bi).each(function(){var Ji=De(this);!Ji.hasClass("tp-forcenotvisible")&&Ii<Ji.outerWidth()&&(Ii=Ji.outerWidth())}),Ii},hi=function(Ue){if(Ue===_e||$e[Ue]===_e||$e[Ue].c===_e)return!1;if($e[Ue].cpar!==_e&&$e[Ue].cpar.data("aimg")!=_e&&($e[Ue].cpar.data("aie8")=="enabled"&&$e.isIE(8)||$e[Ue].cpar.data("amobile")=="enabled"&&$e.ISM))$e[Ue].c.html('<img class="tp-slider-alternative-image" src="'+$e[Ue].cpar.data("aimg")+'">');else{window._rs_firefox13=!1,window._rs_firefox=$e.isFirefox(),window._rs_ie=window._rs_ie===_e?!De.support.opacity:window._rs_ie,window._rs_ie9=window._rs_ie9===_e?document.documentMode==9:window._rs_ie9;var bi,Ii=De.fn.jquery.split("."),Ji=parseFloat(Ii[0]),Mn=parseFloat(Ii[1]),En=(Ji==1&&Mn<7&&$e[Ue].c.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:'+Ii+" <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>"),1<Ji&&(window._rs_ie=!1),$e[Ue].realslideamount=$e[Ue].slideamount=0,$e.getByTag($e[Ue].canvas[0],"RS-SLIDE")),Fn=[];for(bi in $e[Ue].notInNav=[],$e[Ue].slides=[],En)En.hasOwnProperty(bi)&&($e.gA(En[bi],"hsom")=="on"&&$e.ISM?Fn.push(En[bi]):($e.gA(En[bi],"invisible")||$e.gA(En[bi],"invisible")==1?$e[Ue].notInNav.push(En[bi]):($e[Ue].slides.push(En[bi]),$e[Ue].slideamount++),$e[Ue].realslideamount++,$e.sA(En[bi],"originalindex",$e[Ue].realslideamount),$e.sA(En[bi],"origindex",$e[Ue].realslideamount-1)));for(bi in Fn)Fn.hasOwnProperty(bi)&&Fn[bi].remove();for(bi in $e[Ue].notInNav)$e[Ue].notInNav.hasOwnProperty(bi)&&($e.sA($e[Ue].notInNav[bi],"not_in_nav",!0),$e[Ue].canvas[0].appendChild($e[Ue].notInNav[bi]));$e[Ue].canvas.css({visibility:"visible"}),$e[Ue].slayers=$e[Ue].c.find("rs-static-layers"),$e[Ue].slayers[0]&&$e[Ue].slayers.className&&$e[Ue].slayers[0].className.indexOf("rs-stl-visible")!==-1&&$e[Ue].c.addClass("rs-stl-visible"),0<$e[Ue].slayers.length&&$e.sA($e[Ue].slayers[0],"key","staticlayers"),$e[Ue].modal.useAsModal===!0&&($e[
193Ue].cpar.wrap('<rs-modal id="'+$e[Ue].c[0].id+'_modal"></rs-modal>'),$e[Ue].modal.c=De($e.closestNode($e[Ue].cpar[0],"RS-MODAL")),$e[Ue].modal.c.appendTo(De("body")),$e[Ue].modal!==_e)&&$e[Ue].modal.alias!==_e&&$e.revModal(Ue,{mode:"init"}),$e[Ue].waitForInit==1||$e[Ue].modal.useAsModal==1?($e.RS_toInit!==_e&&($e.RS_toInit[Ue]=!0),$e[Ue].c.trigger("revolution.slide.waitingforinit"),$e[Ue].waitingForInit=!0):(window.requestAnimationFrame(function(){Li(Ue)}),$e[Ue].initEnded=!0)}},Ei=function(Ue,bi,Ii){return $e.gA(Ue,"lazyload")!==_e?$e.gA(Ue,"lazyload"):$e[Ii].lazyloaddata!==_e&&0<$e[Ii].lazyloaddata.length&&$e.gA(Ue,$e[Ii].lazyloaddata)!==_e?$e.gA(Ue,$e[Ii].lazyloaddata):$e.gA(Ue,"lazy-src")!==_e?$e.gA(Ue,"lazy-src"):$e.gA(Ue,"lazy-wpfc-original-src")!==_e?$e.gA(Ue,"lazy-wpfc-original-src"):$e.gA(Ue,"lazy")!==_e?$e.gA(Ue,"lazy"):bi},Li=function(Ue){if($e[Ue]!==_e){($e[Ue].sliderisrunning=!0)!==$e[Ue].noDetach&&$e[Ue].c.detach();var bi=$e[Ue].canvas.find("rs-slide:first-child");if($e[Ue].shuffle){for(var Ii=$e.gA(bi[0],"firstanim"),Ji=0;Ji<$e[Ue].slideamount;Ji++)$e[Ue].canvas.find("rs-slide:eq("+Math.round(Math.random()*$e[Ue].slideamount)+")").prependTo($e[Ue].canvas);$e.sA($e[Ue].canvas.find("rs-slide:first-child")[0],"firstanim",Ii)}$e[Ue].slides=$e.getByTag($e[Ue].canvas[0],"RS-SLIDE"),$e[Ue].thumbs=new Array($e[Ue].slides.length),$e[Ue].slots=1,$e[Ue].firststart=1,$e[Ue].loadqueue=[];var Mn,En=$e[Ue].syncload=0,Fn=$e[Ue].sliderType==="carousel"&&$e[Ue].carousel.border_radius!==_e?parseInt($e[Ue].carousel.border_radius,0):0;for(Mn in $e[Ue].sliderType!=="carousel"&&tpGS.gsap.set($e[Ue].slides,{display:"none"}),$e[Ue].sliderType!=="carousel"&&tpGS.gsap.set(bi,{display:"block"}),$e[Ue].slides)if($e[Ue].slides.hasOwnProperty(Mn)&&Mn!=="length"){var Cr=$e[Ue].slides[Mn],_r=$e.getByTag(Cr,"IMG")[0],Or=($e.gA(Cr,"key")===_e&&$e.sA(Cr,"key","rs-"+Math.round(999999*Math.random())),{params:Array(12),id:$e.gA(Cr,"key"),src:$e.gA(Cr,"thumb")!==_e?$e.gA(Cr,"thumb"):Ei(_r,_r!==_e?_r.src:_e,Ue)});$e.gA(Cr,"title")===_e&&$e.sA(Cr,"title",""),$e.gA(Cr,"description")===_e&&$e.sA(Cr,"description",""),Or.params[0]={from:RegExp("\\{\\{title\\}\\}","g"),to:$e.gA(Cr,"title")},Or.params[1]={from:RegExp("\\{\\{description\\}\\}","g"),to:$e.gA(Cr,"description")};for(var _s=1;_s<=10;_s++)$e.gA(Cr,"p"+_s)!==_e?Or.params[_s+1]={from:RegExp("\\{\\{param"+_s+"\\}\\}","g"),to:$e.gA(Cr,"p"+_s)}:Or.params[_s+1]={from:RegExp("\\{\\{param"+_s+"\\}\\}","g"),to:""};if($e[Ue].thumbs[En]=De.extend({},!0,Or),0<Fn&&tpGS.gsap.set(Cr,{borderRadius:Fn+"px"}),$e.gA(Cr,"link")!=_e||$e.gA(Cr,"linktoslide")!==_e){var _r=$e.gA(Cr,"link"),_r=_r!==_e?_r:"slide",so=_r!="slide"?"no":$e.gA(Cr,"linktoslide"),Ls=$e.gA(Cr,"seoz"),go=$e.gA(Cr,"tag");if(so!=_e&&so!="no"&&so!="next"&&so!="prev")for(var As in $e[Ue].slides)$e[Ue].slides.hasOwnProperty(As)&&parseInt($e.gA($e[Ue].slides[As],"origindex"),0)+1==$e.gA(Cr,"linktoslide")&&(so=$e.gA($e[Ue].slides[As],"ke
193y"));_r=="slide"||go!="a"?De(Cr).prepend('<rs-layer class="rs-layer slidelink" id="rs_slidelink_'+Math.round(1e5*Math.random())+'" data-zindex="'+(Ls==="back"?0:Ls==="front"?95:Ls!==_e?parseInt(Ls,0):100)+'" dataxy="x:c;y:c" data-dim="w:100%;h:100%" data-basealign="slide"'+(so=="no"?_r=="slide"||$e.ISM?"":"  data-actions='o:click;a:simplelink;target:"+($e.gA(Cr,"target")||"_self")+";url:"+_r+";'":"  data-actions='"+(so==="scroll_under"?"o:click;a:scrollbelow;offset:100px;":so==="prev"?"o:click;a:jumptoslide;slide:prev;d:0.2;":so==="next"?"o:click;a:jumptoslide;slide:next;d:0.2;":"o:click;a:jumptoslide;slide:"+so+";d:0.2;")+"'")+" data-frame_1='e:power3.inOut;st:100;sp:100' data-frame_999='e:power3.inOut;o:0;st:w;sp:100'>"+($e.ISM?"<a "+(_r!="slide"?($e.gA(Cr,"target")==="_blank"?'rel="noopener" ':"")+'target="'+($e.gA(Cr,"target")||"_self")+'" href="'+_r+'"':"")+"><span></span></a>":"")+"</rs-layer>"):De(Cr).prepend('<a class="rs-layer slidelink" id="rs_slidelink_'+Math.round(1e5*Math.random())+'" data-zindex="'+(Ls==="back"?0:Ls==="front"?95:Ls!==_e?parseInt(Ls,0):100)+'" dataxy="x:c;y:c" data-dim="w:100%;h:100%" data-basealign="slide" href="'+_r+'" target="'+($e.gA(Cr,"target")||"_self")+'" rel="noopener" data-frame_1="e:power3.inOut;st:100;sp:100" data-frame_999="e:power3.inOut;o:0;st:w;sp:100"><span></span></a>')}En++}if($e[Ue].simplifyAll&&($e.isIE(8)||$e.iOSVersion())&&($e[Ue].c.find(".rs-layer").each(function(){var xn=De(this);xn.removeClass("customin customout").addClass("fadein fadeout"),xn.data("splitin",""),xn.data("speed",400)}),$e[Ue].c.find("rs-slide").each(function(){var xn=De(this);xn.data("transition","fade"),xn.data("masterspeed",500),xn.data("slotamount",1),(xn.find(".rev-slidebg")||xn.find(">img").first()).data("panzoom",null)})),window._rs_desktop=window._rs_desktop===_e?!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i):window._rs_desktop,$e[Ue].autoHeight=$e[Ue].sliderLayout=="fullscreen"||$e[Ue].autoHeight,$e[Ue].sliderLayout!="fullwidth"||$e[Ue].autoHeight||$e[Ue].sliderType==="carousel"&&$e[Ue].carousel.orientation==="v"||$e[Ue].c.css({maxHeight:$e[Ue].gridheight[$e[Ue].level]+"px"}),$e[Ue].sliderLayout=="auto"||$e.closestNode($e[Ue].c[0],"RS-FULLWIDTH-WRAP")!==null||$e[Ue].sliderLayout==="fullscreen"&&$e[Ue].disableForceFullWidth==1?$e[Ue].topc=$e[Ue].cpar:(Ii=$e[Ue].cpar[0].style.marginTop,bi=$e[Ue].cpar[0].style.marginBottom,$e[Ue].rsFullWidthWrapMarginBottom=parseInt(bi,0),$e[Ue].rsFullWidthWrap=$e[Ue].topc=De('<rs-fullwidth-wrap id="'+$e[Ue].c[0].id+'_forcefullwidth" style="'+(Ii=Ii===_e||Ii===""?"":"margin-top:"+Ii+";")+(bi=bi===_e||bi===""?"":"margin-bottom:"+bi+";")+'"></rs-fullwidth-wrap>'),$e[Ue].forcer=De('<rs-fw-forcer style="height:'+($e[Ue].forcerHeight===_e?$e[Ue].cpar.height():$e[Ue].forcerHeight)+'px"></rs-fw-forcer>'),$e[Ue].topc.append($e[Ue].forcer),$e[Ue].topc.insertBefore($e[Ue].cpar),$e[Ue].cpar.detach(),$e[Ue].cpar.css({marginTop:"0px",marginBottom:"0px",position:"absolute"}),$e[Ue].cpar.prependTo($e[Ue].topc)),$e[Ue].forceOverflow?$e[Ue].topc[0].classList.add("rs-forceoverflow"):$e[Ue].parallax.type==="3D"&&$e[Ue].topc[0].classList.add("rs-parallax-hidden-of"),$e[Ue].sliderType==="carousel"&&$e[Ue].overflowHidden!==!0&&$e[Ue].c.css({overflow:"visible"}),$e[Ue].maxHeight!==0&&tpGS.gsap.set([$e[Ue].cpar,$e[Ue].c,$e[Ue].topc],{maxHeight:$e[Ue].maxHeight+"px"}),$e[Ue].fixedOnTop&&tpGS.gsap.set($e[Ue].blockSpacing!==_e&&$e[Ue].blockSpacing.block!==_e?$e[Ue].blockSpacing.block:$e[Ue].topc,{position:"fixed",top:"0px",left:"0px",pointerEvents:"none",zIndex:5e3}),$e[Ue].shadow!==_e&&0<$e[Ue].shadow&&$e[Ue].cpar.addClass("tp-shadow"+$e[Ue].shadow).append('<div class="tp-shadowcover" style="background-color:'+$e[Ue].cpar.css("backgroundColor")+";background-image:"+$e[Ue].cpar.css("backgroundImage")+'"></div>'),$e.updateDims(Ue,"prepared"),$e.observeWraps===_e&&($e.observeWraps=new $e.wrapObserver.init(function(xn,Yn){zi(Yn,_e,!0)})),!$e[Ue].c.hasClass("revslider-initialised")){$e[Ue].c[0].classList.add("revslider-initialised"),$e[Ue].c[0].id=$e[Ue].c[0].id===_e?"revslider-"+Math.round(1e3*Math.random()+5):$e[Ue].c[0].id,$e.revCheckIDS(Ue,$e[Ue].c[0]),$e[Ue].origcd=parseInt($e[Ue].duration,0),$e[Ue].scrolleffect._L=[],$e[Ue].sbas=$e[Ue].sbas===_e?{}:$e[Ue].sbas,$e[Ue].layers=$e[Ue].layers||{},$e[Ue].sortedLayers=$e[Ue].sortedLayers||{};var no,Ws=$e[Ue].c[0].querySelectorAll("rs-layer, rs-row, rs-column, rs-group,  rs-bgvideo, .rs-layer");for(no in Ws)if(Ws.hasOwnProperty(no)){!$e.ISM&&Ws[no].classList.contains("iospermaccwait")&&Ws[no].remove();var ro,qs,hs=De(Ws[no]),Nr=hs.data();if(Nr.startclasses=Ws[no].className,Nr.startclasses=Nr.startclasses===_e||Nr.startclasses===null?"":Nr.startclasses,Nr.animationonscroll=!!$e[Ue].sbtimeline.set&&$e[Ue].sbtimeline.layers,Nr.animationonscroll=Nr.animationonscroll===!0||Nr.animationonscroll=="true",Nr.filteronscroll=!!$e[Ue].scrolleffect.set&&$e[Ue].scrolleffect.layers,Nr.pxundermask=0<=Nr.startclasses.indexOf("rs-pxmask")&&$e[Ue].parallax.type!=="off"&&0<=Nr.startclasses.indexOf("rs-pxl
193-"),Nr.noPevents=0<=Nr.startclasses.indexOf("rs-noevents"),Nr.sba)for(var _s in ro=Nr.sba.split(";"))ro.hasOwnProperty(_s)&&((qs=ro[_s].split(":"))[0]=="t"&&(Nr.animationonscroll=qs[1],qs[1]=="false")&&(Nr.animOnScrollForceDisable=!0),qs[0]=="e"&&(Nr.filteronscroll=qs[1]),qs[0]=="so")&&(Nr.scrollBasedOffset=parseInt(qs[1])/1e3);if(Nr.animationonscroll!="true"&&Nr.animationonscroll!=1||(Nr.startclasses+=" rs-sba",hs[0].className+=" rs-sba"),0<=Nr.startclasses.indexOf("rs-layer-static")&&$e.handleStaticLayers&&$e.handleStaticLayers(hs,Ue),hs[0].tagName!=="RS-BGVIDEO"){if(hs[0].classList.add("rs-layer"),Nr.type==="column"&&(Nr.columnwidth="33.33%",Nr.verticalalign="top",Nr.column!==_e))for(var ea in ro=Nr.column.split(";"))ro.hasOwnProperty(ea)&&((qs=ro[ea].split(":"))[0]==="w"&&(Nr.columnwidth=qs[1]),qs[0]==="a")&&(Nr.verticalalign=qs[1]);if(Nr.type==="group"&&(Nr.verticalalign="top",Nr.column!==_e))for(var ea in ro=Nr.column.split(";"))ro.hasOwnProperty(ea)&&(qs=ro[ea].split(":"))[0]==="a"&&(Nr.verticalalign=qs[1]);var $a=0<=Nr.startclasses.indexOf("slidelink")?"z-index:"+Nr.zindex+";width:100% !important;height:100% !important;":"",ao=Nr.type!=="column"&&Nr.type!=="group"?"":Nr.verticalalign===_e?" vertical-align:top;":" vertical-align:"+Nr.verticalalign+";",Do=Nr.type==="row"||Nr.type==="column"||Nr.pos==="r"?"position:relative;":"position:absolute;",el="",Fa=Nr.type==="row"?"rs-row-wrap":Nr.type==="column"?"rs-column-wrap":Nr.type==="group"?"rs-group-wrap":"rs-layer-wrap",cl="",Zn="";Nr.noPevents,Nr.type==="row"||Nr.type==="column"||Nr.type==="group"?(hs[0].classList.remove("tp-resizeme"),Nr.type==="column"&&(Nr.width="auto",hs[0].group="row",tpGS.gsap.set(hs,{width:"auto"}),Nr.filteronscroll=!1)):(cl="display:"+(hs[0].style.display==="inline-block"?"inline-block":"block")+";",$e.closestNode(hs[0],"RS-COLUMN")!==null?(hs[0].group="column",Nr.filteronscroll=!1):$e.closestNode(hs[0],"RS-GROUP-WRAP")!==null&&(hs[0].group="group",Nr.filteronscroll=!1)),Nr.wrpcls!==_e&&(el=el+" "+Nr.wrpcls),Nr.wrpid!==_e&&(Zn='id="'+Nr.wrpid+'"'),Nr.thFixed=Nr.wrpcls!==_e&&Nr.wrpcls.includes("th-fixed")||Nr.startclasses!==_e&&Nr.startclasses.includes("ddd_mousebox"),Nr.reqWrp={loop:!($e[Ue].rtl!=1&&!Nr.thFixed&&Nr.loop_0===_e&&Nr.loop_999===_e),level:{m:0,lp:0,p:0}},Nr.perspFix=window.isSafari11&&(Nr.btrans!==_e&&Nr.btrans.includes("iosfx:p")||$e[Ue].sliderType==="carousel"&&!Ws[no].classList.contains("rs-mtrap")),Nr.reqWrp.mask=!!(Nr.perspFix||Nr.reqWrp.loop||$e[Ue].rtl==1||Nr.pxundermask||Nr.thFixed||Nr.btrans!==_e||Nr.frame_hover!==_e&&Nr.frame_hover.includes("m:t")||Nr.clip!==_e||Nr.sba!==_e||Nr.frame_0_sfx!==_e||Nr.frame_1_sfx!==_e||Nr.frame_999_sfx!==_e||Nr.frame_0_mask!==_e||Nr.frame_1_mask!==_e||Nr.frame_2_mask!==_e||Nr.frame_3_mask!==_e||Nr.frame_4_mask!==_e||Nr.frame_999_mask!==_e),Nr.reqWrp.level.m=Nr.pxundermask?2:Nr.reqWrp.mask?1:0,Nr.reqWrp.level.lp=Nr.reqWrp.level.m+(Nr.reqWrp.loop?1:0),Nr.reqWrp.level.p=Nr.reqWrp.level.lp+1,Nr.perspFix&&($a+="transform:perspective(600px);"),hs.wrap("<"+Fa+" "+Zn+' class="rs-parallax-wrap '+el+'" style="'+ao+" "+$a+Do+cl+';pointer-events:none">'+(Nr.reqWrp.loop?'<rs-loop-wrap style="'+$a+Do+cl+'">':"")+(Nr.reqWrp.mask?'<rs-mask-wrap style="'+$a+Do+cl+'">':"")+(Nr.pxundermask?"<rs-px-mask></rs-px-mask>":"")+(Nr.reqWrp.mask?"</rs-mask-wrap>":"")+(Nr.reqWrp.loop?"</rs-loop-wrap>":"")+"</"+Fa+">"),Nr.filteronscroll!==!0&&Nr.filteronscroll!="true"||$e[Ue].scrolleffect._L.push(hs.parent()),hs[0].id=hs[0].id===_e?"layer-"+Math.round(999999999*Math.random()):hs[0].id,$e.revCheckIDS(Ue,hs[0]),$e[Ue]._Lshortcuts[hs[0].id]={p:ke(hs[0],Nr.reqWrp.level.p),lp:ke(hs[0],Nr.reqWrp.level.lp),m:ke(hs[0],Nr.reqWrp.level.m)},Nr.type!=="column"||hs[0].style.background==""&&hs[0].style.backgroundColor===""&&hs[0].style.backgroundImage===""&&Nr.border===_e?Nr.cbgexists=!1:($e[Ue]._Lshortcuts[hs[0].id].p.append('<rs-cbg-mask-wrap><rs-column-bg id="'+hs[0].id+'_rs_cbg"></rs-column-bg></rs-cbg-mask-wrap>'),Nr.cbgexists=!0),Nr.type==="text"&&0<$e.getByTag(hs[0],"IFRAME").length&&($e[Ue].slideHasIframe=!0,hs[0].classList.add("rs-ii-o")),$e[Ue].BUG_safari_clipPath&&Nr.animationonscroll!="true"&&Nr.animationonscroll!=1&&hs[0].classList.add("rs-pelock"),hs[0].dataset.staticz!==_e&&Nr.type!=="row"&&hs[0].group!=="row"&&hs[0].group!=="column"&&$e.addStaticLayerTo(Ue,hs[0].dataset.staticz,$e[Ue]._Lshortcuts[hs[0].id].p)}$e.gA(hs[0],"actions")&&$e.checkActions&&$e.checkActions(hs,Ue,$e[Ue]),!$e.checkVideoApis||window.rs_addedvim&&window.rs_addedyt||$e[Ue].youtubeapineeded&&$e[Ue].vimeoapineeded||$e.checkVideoApis(hs,Ue)}$e.checkActions&&$e.checkActions(_e,Ue),$e[Ue].c[0].addEventListener("mousedown",function(){var or;
193$e[Ue].onceClicked!==!0&&($e[Ue].onceClicked=!0)!==$e[Ue].onceVideoPlayed&&$e[Ue].activeRSSlide!==_e&&$e[Ue].slides!==_e&&$e[Ue].slides[$e[Ue].activeRSSlide]!==_e&&(or=De($e[Ue].slides[$e[Ue].activeRSSlide]).find("rs-bgvideo"))!==_e&&or!==null&&0<or.length&&$e.playVideo(or,Ue)}),$e[Ue].c[0].addEventListener("mouseenter",function(){$e[Ue].c.trigger("tp-mouseenter"),$e[Ue].overcontainer=!0},{passive:!0}),$e[Ue].c[0].addEventListener("mouseover",function(){$e[Ue].c.trigger("tp-mouseover"),$e[Ue].overcontainer=!0},{passive:!0}),$e[Ue].c[0].addEventListener("mouseleave",function(){$e[Ue].c.trigger("tp-mouseleft"),$e[Ue].overcontainer=!1},{passive:!0}),$e[Ue].c.find(".rs-layer video").each(function(or){var yr=De(this);yr.removeClass("video-js vjs-default-skin"),yr.attr("preload",""),yr.css({display:"none"})}),$e[Ue].rs_static_layer=$e.getByTag($e[Ue].c[0],"RS-STATIC-LAYERS"),$e.preLoadAudio&&0<$e[Ue].rs_static_layer.length&&$e.preLoadAudio(De($e[Ue].rs_static_layer),Ue,1),0<$e[Ue].rs_static_layer.length&&($e.loadImages($e[Ue].rs_static_layer[0],Ue,0,!0),$e.waitForCurrentImages($e[Ue].rs_static_layer[0],Ue,function(){$e[Ue]!==_e&&$e[Ue].c.find("rs-static-layers img").each(function(){this.src=$e.getLoadObj(Ue,$e.gA(this,"src")!=_e?$e.gA(this,"src"):this.src).src})})),$e[Ue].rowzones=[],$e[Ue].rowzonesHeights=[],$e[Ue].topZones=[],$e[Ue].middleZones=[],$e[Ue].bottomZones=[],$e[Ue].rowMiddleHeights={};var bn,Ii=$e.deepLink(Ue,Qi("#")[0]),bi=(Ii!==_e&&($e[Ue].startWithSlide=Ii,$e[Ue].deepLinkListener=!0,window.addEventListener("hashchange",function(){var or;$e[Ue].ignoreDeeplinkChange!==!0&&(or=$e.deepLink(Ue,Qi("#")[0]))!==_e&&$e.callingNewSlide(Ue,or,!0),$e[Ue].ignoreDeeplinkChange=!1})),$e[Ue].loader=$e.buildSpinner(Ue,$e[Ue].spinner,$e[Ue].spinnerclr),$e[Ue].loaderVisible=!0,$e[Ue].c.append($e[Ue].loader),Je(Ue),($e[Ue].parallax.type!=="off"||$e[Ue].scrolleffect.set||$e[Ue].sbtimeline.set)&&$e.checkForParallax&&$e.checkForParallax(Ue),$e[Ue].fallbacks.disableFocusListener||$e[Ue].fallbacks.disableFocusListener=="true"||$e[Ue].fallbacks.disableFocusListener===!0||($e[Ue].c.addClass("rev_redraw_on_blurfocus"),Zi()),$e[Ue].viewPort);for(_s in $e[Ue].navigation.mouseScrollNavigation==="on"&&(bi.enable=!0),$e[Ue].slides)$e[Ue].slides.hasOwnProperty(_s)&&(bn=De($e[Ue].slides[_s]),$e[Ue].rowzones[_s]=[],$e[Ue].rowzonesHeights[_s]=[],$e[Ue].topZones[_s]=[],$e[Ue].middleZones[_s]=[],$e[Ue].bottomZones[_s]=[],bn.find("rs-zone").each(function(){$e[Ue].rowzones[_s].push(De(this)),0<=this.className.indexOf("rev_row_zone_top")&&$e[Ue].topZones[_s].push(this),0<=this.className.indexOf("rev_row_zone_middle")&&($e[Ue].middleZones[_s].push(this),this.dataset.middle="true"),0<=this.className.indexOf("rev_row_zone_bottom")&&$e[Ue].bottomZones[_s].push(this)}));$e.lazyLoadAllSlides(Ue),$e[Ue].srowzones=[],$e[Ue].smiddleZones=[],$e[Ue].slayers&&$e[Ue].slayers.find("rs-zone").each(function(){$e[Ue].srowzones.push(De(this)),0<=this.className.indexOf("rev_row_zone_middle")&&($e[Ue].smiddleZones.push(this),this.dataset.middle="true")}),$e[Ue].sliderType==="carousel"&&tpGS.gsap.set($e[Ue].canvas,{scale:1,perspective:1200,transformStyle:"flat",opacity:0}),$e[Ue].c.prependTo($e[Ue].cpar),De("body").data("rs-fullScreenMode",!1),window.addEventListener("fullscreenchange",Ae,{passive:!0}),window.addEventListener("mozfullscreenchange",Ae,{passive:!0}),window.addEventListener("webkitfullscreenchange",Ae,{passive:!0}),$e.document.on("updateContainerSizes."+$e[Ue].c.attr("id"),function(){if($e[Ue]!==_e)return $e[Ue].c!=_e&&void($e.updateDims(Ue,"ignore")&&window.requestAnimationFrame(function(){$e.updateDims(Ue,"ignore"),$e[Ue].fullScreenMode=$e.checkfullscreenEnabled(Ue),$e.lastwindowheight=$e.getWinH(Ue),zi(Ue)}))}),bi.presize&&($e[Ue].pr_next_slide=De($e[Ue].slides[0]),$e.loadImages($e[Ue].pr_next_slide[0],Ue,0,!0),$e.waitForCurrentImages($e[Ue].pr_next_slide.find(".tp-layers"),Ue,function(){$e.animateTheLayers&&$e.animateTheLayers({slide:$e[Ue].pr_next_key,id:Ue,mode:"preset",caller:"runSlider"})})),$e[Ue].parallax.type=="off"&&!$e[Ue].sbtimeline.set&&bi.enable!==!0||$e.scrollTicker(Ue),bi.enable!==!0&&($e[
193Ue].inviewport=!0,$e.enterViewPort(Ue)),$e.RS_toInit!==_e&&($e.RS_toInit[Ue]=!0),$e[Ue].observeWrap&&$e.observeWraps&&$e.wrapObserver.observe(($e[Ue].rsFullWidthWrap!==_e?$e[Ue].rsFullWidthWrap:$e[Ue].cpar)[0],Ue)}}},Di=function(Ue,bi){$e.winW<$e[Ue].hideSliderAtLimit?($e[Ue].c.trigger("stoptimer"),$e[Ue].sliderIsHidden!==!0&&($e.sA($e[Ue].cpar[0],"displaycache",$e[Ue].cpar.css("display")!="none"?$e[Ue].cpar.css("display"):$e.gA($e[Ue].cpar[0],"displaycache")),$e[Ue].cpar.css({display:"none"}),$e[Ue].sliderIsHidden=!0)):($e[Ue].sliderIsHidden===!0||$e[Ue].sliderIsHidden===_e&&$e[Ue].c.is(":hidden"))&&bi&&($e[Ue].cpar[0].style.display=$e.gA($e[Ue].cpar[0],"displaycache")!=_e&&$e.gA($e[Ue].cpar[0],"displaycache")!="none"?$e.gA($e[Ue].cpar[0],"displaycache"):"block",$e[Ue].sliderIsHidden=!1,$e[Ue].c.trigger("restarttimer"),window.requestAnimationFrame(function(){zi(Ue,!0)})),$e.hideUnHideNav&&$e[Ue].navigation.use&&$e.hideUnHideNav(Ue)},zi=function(Ue,bi,Ii){if($e[Ue].c===_e)return!1;if($e[Ue].dimensionReCheck={},$e[Ue].c.trigger("revolution.slide.beforeredraw"),$e[Ue].infullscreenmode==1&&($e[Ue].minHeight=$e.getWinH(Ue)),$e.ISM&&($e[Ue].lastMobileHeight=$e.getWinH(Ue)),Ii&&$e.updateDims(Ue),!$e.resizeThumbsTabs||$e.resizeThumbsTabs(Ue)===!0){if(window.requestAnimationFrame(function(){Di(Ue,bi!==!0),Hn(Ue)}),$e[Ue].started){if($e[Ue].sliderType=="carousel")for(var Ji in $e.prepareCarousel(Ue),$e[Ue].sbgs)$e[Ue].sbgs.hasOwnProperty(Ji)&&$e[Ue].sbgs[Ji].mDIM!==_e&&$e.updateSlideBGs(Ue,$e[Ue].sbgs[Ji].key,$e[Ue].sbgs[Ji]);else $e.updateSlideBGs(Ue);if($e[Ue].sliderType==="carousel"&&($e[Ue].carCheckconW!=$e[Ue].canv.width||$e[Ue].sliderLayout=="fullscreen"&&$e[Ue].carCheckconH!=$e[Ue].canv.height)){for(var Mn in clearTimeout($e[Ue].pcartimer),$e[Ue].sbgs)$e[Ue].sbgs[Mn].loadobj!==_e&&$e.updateSlideBGs(Ue,$e[Ue].sbgs[Mn].key,$e[Ue].sbgs[Mn]);$e[Ue].carousel.orientation=="v"&&tpGS.gsap.set($e[Ue].canvas,{height:$e[Ue].carousel.slide_height}),requestAnimationFrame(function(){$e.prepareCarousel(Ue),$e.animateTheLayers({slide:"individual",id:Ue,mode:"rebuild",caller:"containerResized_1"}),$e[Ue].carCheckconW=$e[Ue].canv.width,$e[Ue].carCheckconH=$e[Ue].canv.height}),$e[Ue].lastconw=$e[Ue].canv.width}if($e[Ue].pr_processing_key!==_e?$e.animateTheLayers({slide:$e[Ue].pr_processing_key,id:Ue,mode:"rebuild",caller:"containerResized_2"}):$e[Ue].pr_active_key!==_e&&$e.animateTheLayers({slide:$e[Ue].pr_active_key,id:Ue,mode:"rebuild",caller:"containerResized_3"}),$e[Ue].sliderType==="carousel")for(var Mn in $e[Ue].panzoomTLs){var En;$e[Ue].panzoomTLs.hasOwnProperty(Mn)&&(En=$e.gA($e[Ue].panzoomBGs[Mn][0],"key"),$e.startPanZoom($e[Ue].panzoomBGs[Mn],Ue,$e[Ue].panzoomTLs[Mn].progress(),Mn,$e[Ue].panzoomTLs[Mn].isActive()?"play":"reset",En))}else $e[Ue].pr_active_bg!==_e&&$e[Ue].pr_active_bg[0]!==_e&&an(Ue,$e[Ue].pr_active_bg,$e[Ue].pr_active_bg[0].dataset.key),$e[Ue].pr_next_bg!==_e&&$e[Ue].pr_next_bg[0]!==_e&&an(Ue,$e[Ue].pr_next_bg,$e[Ue].pr_next_bg[0].dataset.key);clearTimeout($e[Ue].mNavigTimeout),$e.manageNavigation&&($e[Ue].mNavigTimeout=setTimeout(function(){$e.manageNavigation(Ue)},20))}$e.prepareCoveredVideo(Ue)}$e[Ue].c.trigger("revolution.slide.afterdraw",[{id:Ue}])},an=function(Ue,bi,Ii){var Ji;$e[Ue].panzoomTLs!==_e&&(Ji=$e.getSlideIndex(Ue,Ii),$e.startPanZoom(bi,Ue,$e[Ue].panzoomTLs[Ji]!==_e?$e[Ue].panzoomTLs[Ji].progress():0,Ji,"play",Ii))},Je=function(Ue){$e[Ue].noDetach!==!0&&$e[Ue].canvas.detach();var bi,Ii=$e.isFaceBook()?"visible":"hidden";$e[Ue].autoHeight&&tpGS.gsap.set([$e[Ue].c,$e[Ue].cpar],{maxHeight:"none"}),tpGS.gsap.set($e[Ue].canvas,$e[Ue].modal!==_e&&$e[Ue].modal.useAsModal?{overflow:Ii,width:"100%",height:"100%"}:{overflow:Ii,width:"100%",height:"100%",maxHeight:$e[Ue].autoHeight?"none":$e[Ue].cpar.css("maxHeight")}),$e[Ue].sliderType==="carousel"&&(bi="margin-top:"+parseInt($e[Ue].carousel.padding_top||0,0)+"px;",$e[Ue].canvas.css({overflow:"visible"}).wrap('<rs-carousel-wrap style="'+bi+'"></rs-carousel-wrap>'),$e[Ue].cpar.prepend("<rs-carousel-space></rs-carousel-space>").append("<rs-carousel-space></rs-carousel-space>"),$e.defineCarouselElements(Ue)),$e[Ue].startWithSlide=$e[Ue].startWithSlide===_e?_e:Math.max(1,($e[
193Ue].sliderType,parseInt($e[Ue].startWithSlide))),$e[Ue].cpar.css({overflow:"visible"}),$e[Ue].scrolleffect.bgs=[];for(var Ji=0;Ji<$e[Ue].slides.length;Ji++){var Mn,En,Fn=De($e[Ue].slides[Ji]),Cr=$e.gA(Fn[0],"key"),_r=Fn.find(".rev-slidebg")||Fn.find(">img"),Or=$e[Ue].sbgs[Cr]=fi(_r.data(),Ue),_s=Fn.data("mediafilter"),so=(Or.skeyindex=$e.getSlideIndex(Ue,Cr),Or.bgvid=Fn.find("rs-bgvideo"),_r.detach(),Or.bgvid.detach(),($e[Ue].startWithSlide!=_e&&$e.gA($e[Ue].slides[Ji],"originalindex")==$e[Ue].startWithSlide||$e[Ue].startWithSlide===_e&&Ji==0)&&($e[Ue].pr_next_key=$e[Ue].carousel.focused=Fn.index()),tpGS.gsap.set(Fn,{width:"100%",height:"100%",overflow:Ii}),_r.wrap('<rs-sbg-px><rs-sbg-wrap data-key="'+Cr+'"></rs-sbg-wrap></rs-sbg-px>'),Or.wrap=De($e.closestNode(_r[0],"RS-SBG-WRAP")),Or.src=_r[0].src,Or.lazyload=Or.lazyload=Ei(_r[0],_e,Ue),Or.slidebgimage=!0,Or.loadobj=Or.loadobj===_e?{}:Or.loadobj,Or.mediafilter=_s=_s==="none"||_s===_e?"":_s,Or.sbg=document.createElement("rs-sbg"),Or.sbg.alt=_r[0].alt,$e[Ue].overlay!==_e&&$e[Ue].overlay.type!="none"&&$e[Ue].overlay.type!=_e&&(so=$e.createOverlay(Ue,$e[Ue].overlay.type,$e[Ue].overlay.size,{0:$e[Ue].overlay.colora,1:$e[Ue].overlay.colorb}),(Mn=document.createElement("rs-dotted")).style.backgroundImage=so,Or.wrap.append(Mn),Or.overlay=Mn),_r.data("mediafilter",_s),Or.canvas=document.createElement("canvas"),Or.sbg.appendChild(Or.canvas),Or.canvas.style.width="100%",Or.canvas.style.height="100%",Or.ctx=Or.canvas.getContext("2d"),Or.lazyload!==_e&&(Or.sbg.dataset.lazyload=Or.lazyload),Or.sbg.className=_s,Or.sbg.src=Or.src,Or.sbg.dataset.bgcolor=Or.bgcolor,Or.sbg.style.width="100%",Or.sbg.style.height="100%",Or.key=Cr,Or.wrap[0].dataset.key=Cr,De(Or.sbg).data(Or),Or.wrap.data(Or),Or.wrap[0].appendChild(Or.sbg),document.createComment("Runtime Modification - Img tag is Still Available for SEO Goals in Source - "+_r.get(0).outerHTML)),Ls=(_r.replaceWith(so),$e.gA(Fn[0],"sba")===_e&&$e.sA(Fn[0],"sba",""),{}),go=$e.gA(Fn[0],"sba").split(";");for(En in go)if(go.hasOwnProperty(En)){var As=go[En].split(":");switch(As[0]){case"f":Ls.f=As[1];break;case"b":Ls.b=As[1];break;case"g":Ls.g=As[1];break;case"t":Ls.s=As[1]}}$e.sA(Fn[0],"scroll-based",!!$e[Ue].sbtimeline.set&&Ls.s!==_e&&Ls.s),0<Or.bgvid.length&&(Or.bgvidid=Or.bgvid[0].id,Or.animateDirection="idle",Or.bgvid.addClass("defaultvid").css({zIndex:30}),_s!==_e&&_s!==""&&_s!=="none"&&Or.bgvid.addClass(_s),Or.bgvid.appendTo(Or.wrap),Or.parallax!=_e&&(Or.bgvid.data("parallax",Or.parallax),Or.bgvid.data("showcoveronpause","on"),Or.bgvid.data("mediafilter",_s)),Or.poster=!1,(Or.src!==_e&&Or.src.indexOf("assets/dummy.png")==-1&&Or.src.indexOf("assets/transparent.png")==-1||Or.lazyload!==_e&&Or.lazyload.indexOf("assets/transparent.png")==-1&&Or.lazyload.indexOf("assets/dummy.png")==-1)&&(Or.poster=!0),Or.bgvid.data("bgvideo",1),Or.bgvid[0].dataset.key=Cr,Or.bgvid.find(".rs-fullvideo-cover").length==0)&&Or.bgvid.append('<div class="rs-fullvideo-cover"></div>'),$e[Ue].scrolleffect.set?($e[Ue].scrolleffect.bgs.push({fade:Ls.f!==_e?Ls.f:!!$e[Ue].scrolleffect.slide&&$e[Ue].scrolleffect.fade,blur:Ls.b!==_e?Ls.b:!!$e[Ue].scrolleffect.slide&&$e[Ue].scrolleffect.blur,grayscale:Ls.g!==_e?Ls.g:!!$e[Ue].scrolleffect.slide&&$e[Ue].scrolleffect.grayscale,c:Or.wrap.wrap("<rs-sbg-effectwrap></rs-sbg-effectwrap>").parent()}),Fn.prepend(Or.wrap.parent().parent())):Fn.prepend(Or.wrap.parent())}$e[Ue].sliderType==="carousel"?(tpGS.gsap.set($e[Ue].carousel.wrap,{opacity:0}),$e[Ue].c[0].appendChild($e[Ue].carousel.wrap[0])):$e[Ue].c[0].appendChild($e[Ue].canvas[0])},fi=function(Ue,bi){Ue.bg=Ue.bg===_e?"":Ue.bg;var Ii,Ji=Ue.bg.split(";"),Mn={bgposition:"50% 50%",bgfit:"cover",bgrepeat:"no-repeat",bgcolor:"transparent"};for(Ii in Ji)if(Ji.hasOwnProperty(Ii)){var Fn=Ji[Ii].split(":"),En=Fn[0],Fn=Fn[1],Cr="";switch(En){case"p":Cr="bgposition";break;case"f":Cr="bgfit";break;case"r":Cr="bgrepeat";break;case"c":Cr="bgcolor"}Cr!==_e&&(Mn[Cr]=Fn)}return $e[bi].fallbacks.panZoomDisableOnMobile&&$e.ISM&&(Mn.panzoom=_e,Mn.bgfit="cover",Ue.panzoom=_e),De.extend(!0,Ue,Mn)},Gi=function(Ue){$e[Ue].syncload!=4&&$e[Ue].loadqueue&&De.each($e[Ue].loadqueue,function(bi,Ii){var Ji;Ii.progress=="prepared"&&$e[Ue].syncload<=4&&($e[Ue].syncload++,Ii.type=="img"?(Ji=new Image,$e.sA(Ji,"reference",Ii.src
193),Ii.img.tagName=="RS-SBG"&&Ii.img&&Ii.img.alt&&(Ji.alt=Ii.img.alt),!/^([\w]+\:)?\/\//.test(Ii.src)||Ii.src.indexOf(location.host)!==-1&&Ii.src.indexOf("."+location.host)===-1||$e[Ue].imgCrossOrigin===""||$e[Ue].imgCrossOrigin===_e||(Ji.crossOrigin=$e[Ue].imgCrossOrigin),Ji.onload=function(){Le(this,Ue,"loaded"),Ii.error=!1},Ji.onerror=function(){Ji.failedOnce||(Ji.failedOnce=!0,delete Ji.crossOrigin,Ji.removeAttribute("crossorigin"),Ji.src=Ii.src,Le(this,Ue,"failed"),Ii.error=!0)},Ji.src=Ii.src,Ii.starttoload=Date.now()):De.get(Ii.src,function(Mn){Ii.innerHTML=new XMLSerializer().serializeToString(Mn.documentElement),Ii.progress="loaded",$e[Ue].syncload--,Gi(Ue)}).fail(function(){Ii.progress="failed",$e[Ue].syncload--,Gi(Ue)}),Ii.progress="inload")})},fn=function(Ue,bi){return console.log("Static Image "+Ue+"  Could not be loaded in time. Error Exists:"+bi),!0},cn=function(Ue,bi){return 5e3<Date.now()-$e[bi][Ue+"starttime"]&&$e[bi][Ue+"warning"]!=1&&($e[bi][Ue+"warning"]=!0,Ue=Ue+" Api Could not be loaded !",location.protocol==="https:"&&(Ue+=" Please Check and Renew SSL Certificate !"),console.error(Ue),$e[bi].c.append('<div style="position:absolute;top:50%;width:100%;color:#e74c3c;  font-size:16px; text-align:center; padding:15px;background:#000; display:block;"><strong>'+Ue+"</strong></div>")),!0},Tn=function(Ue){$e[Ue]!==_e&&($e[Ue].pr_active_slide=De($e[Ue].slides[$e[Ue].pr_active_key]),$e[Ue].pr_next_slide=De($e[Ue].slides[$e[Ue].pr_processing_key]),$e[Ue].pr_active_bg=$e[Ue].pr_active_slide.find("rs-sbg-wrap"),$e[Ue].pr_next_bg=$e[Ue].pr_next_slide.find("rs-sbg-wrap"),$e[Ue].pr_active_bg!==_e&&0<$e[Ue].pr_active_bg.length&&tpGS.gsap.to($e[Ue].pr_active_bg,.5,{opacity:0}),$e[Ue].pr_next_bg!==_e&&0<$e[Ue].pr_next_bg.length&&tpGS.gsap.to($e[Ue].pr_next_bg,.5,{opacity:0}),tpGS.gsap.set($e[Ue].pr_active_slide,{zIndex:18}),$e[Ue].pr_next_slide!==_e&&0<$e[Ue].pr_next_slide.length&&tpGS.gsap.set($e[Ue].pr_next_slide,{autoAlpha:0,zIndex:20}),$e[Ue].tonpause=!1,$e[Ue].pr_active_key!==_e&&$e.removeTheLayers($e[Ue].pr_active_slide,Ue,!0),$e[Ue].firststart=1,setTimeout(function(){delete $e[Ue].pr_active_key,delete $e[Ue].pr_processing_key},200))},Sn=function(Ue,bi,Ii){if($e[Ue]!==_e)if(clearTimeout($e[Ue].waitWithSwapSlide),$e[Ue].pr_processing_key!==_e&&$e[Ue].firstSlideShown===!0)$e[Ue].waitWithSwapSlide=setTimeout(function(){Sn(Ue,bi)},18);else{if(clearTimeout($e[Ue].waitWithSwapSlide),$e[Ue].startWithSlideKey!==_e&&($e[Ue].pr_next_key=$e.getComingSlide(Ue,$e[Ue].startWithSlideKey).nindex,$e[Ue].startedWithOtherSlide=!0,delete $e[Ue].startWithSlideKey),$e[Ue].pr_active_slide=De($e[Ue].slides[$e[Ue].pr_active_key]),$e[Ue].pr_next_slide=De($e[Ue].slides[$e[Ue].pr_next_key]),$e[Ue].pr_next_key==$e[Ue].pr_active_key)return delete $e[Ue].pr_next_key;var Ji=$e.gA($e[Ue].pr_next_slide[0],"key"),Ji=($e[Ue].sbgs[Ji]!==_e&&$e[Ue].sbgs[Ji].bgvid&&0<$e[Ue].sbgs[Ji].bgvid.length&&($e[Ue].videos==_e||$e[Ue].videos[$e[Ue].sbgs[Ji].bgvid[0].id]===_e)&&$e.manageVideoLayer($e[Ue].sbgs[Ji].bgvid,Ue,Ji),$e[Ue].pr_processing_key=$e[Ue].pr_next_key,$e[Ue].pr_cache_pr_next_key=$e[Ue].pr_next_key,delete $e[Ue].pr_next_key,$e[Ue].pr_next_slide!==_e&&$e[Ue].pr_next_slide[0]!==_e&&$e.gA($e[Ue].pr_next_slide[0],"hal")!==_e&&$e.sA($e[Ue].pr_next_slide[0],"sofacounter",$e.gA($e[Ue].pr_next_slide[0],"sofacounter")===_e?1:parseInt($e.gA($e[Ue].pr_next_slide[0],"sofacounter"),0)+1),$e[Ue].stopLoop&&$e[Ue].pr_processing_key==$e[Ue].lastslidetoshow-1&&($e[Ue].progressC.css({visibility:"hidden"}),$e[Ue].c.trigger("revolution.slide.onstop"),$e[Ue].noloopanymore=1),$e[Ue].pr_next_slide.index()===$e[Ue].slideamount-1&&0<$e[Ue].looptogo&&$e[Ue].looptogo!=="disabled"&&($e[Ue].looptogo--,$e[Ue].looptogo<=0)&&($e[Ue].stopLoop=!0),$e[Ue].tonpause=!0,$e[Ue].slideInSwapTimer=!0,$e[Ue].c.trigger("stoptimer"),$e[Ue].spinner==="off"?$e[Ue].loader!==_e&&$e[Ue].loaderVisible===!0&&($e[Ue].loader.css({display:"none"}),$e[Ue].loaderVisible=!1):$e[Ue].loadertimer=setTimeout(function(){$e[Ue].loader!==_e&&$e[Ue].loaderVisible!==!0&&($e[Ue].loader.css({display:"block"}),$e[Ue].loaderVisible=!0)},100),$e[Ue].sliderType==="carousel"&&$e[Ue].lazyType!=="all"?$e.loadVisibleCarouselItems(Ue):$e[Ue].pr_next_slide[0]);$e.loadImages(Ji,Ue,1),$e.preLoadAudio&&$e.preLoadAudio($e[Ue].pr_next_slide,Ue,1),$e.waitForCurrentImages(Ji,Ue,function(){$e[Ue].firstSlideShown=!0,$e[Ue].pr_next_slide.find("rs-bgvideo").each(function(){$e.prepareCoveredVideo(Ue)}),$e.loadUpcomingContent(Ue),window.requestAnimationFrame(function(){Cn($e[Ue].pr_next_slide.find("rs-sbg"),Ue,bi)})})}},Cn=function(Ue,bi,Ii,Ji){if($e[bi]!==_e){Hn(bi),$e[bi].pr_active_slide=De($e[bi].slides[$e[bi].pr_active_key]),$e[bi].pr_next_slide=De($e[bi].slides[$e[bi].pr_processing_key]),$e[bi].pr_active_bg=$e[bi].pr_active_slide.find("rs-sbg-wrap"),$e[bi].pr_next_bg=$e[bi].pr_next_slide.find("rs-sbg-wrap"),$e[bi].tonpause=!1,clearTimeout($e[bi].loadertimer),$e[bi].loader!==_e&&$e[bi].loaderVisible===!0&&(window.requestAnimationFrame(function(){$e[bi].loader.css({display:"none"})}
193),$e[bi].loaderVisible=!1),$e[bi].onBeforeSwap={slider:bi,slideIndex:parseInt($e[bi].pr_active_key,0)+1,slideLIIndex:$e[bi].pr_active_key,nextSlideIndex:parseInt($e[bi].pr_processing_key,0)+1,nextSlideLIIndex:$e[bi].pr_processing_key,nextslide:$e[bi].pr_next_slide,slide:$e[bi].pr_active_slide,currentslide:$e[bi].pr_active_slide,prevslide:$e[bi].pr_lastshown_key!==_e?$e[bi].slides[$e[bi].pr_lastshown_key]:""},$e[bi].sliderType!=="carousel"&&tpGS.gsap.set($e[bi].pr_next_slide,{display:"block"}),$e[bi].c.trigger("revolution.slide.onbeforeswap",$e[bi].onBeforeSwap);var Mn,En=$e.gA($e[bi].pr_active_slide[0],"key"),En=$e[bi].sbgs[En];if(En&&En.panzoom&&En.pzAnim&&(En.pzLastFrame=!0,$e.pzDrawShadow(bi,En,En.pzAnim.start)),$e[bi].sbgs[$e.gA($e[bi].pr_next_slide[0],"key")]&&tpGS.gsap.fromTo($e[bi].sbgs[$e.gA($e[bi].pr_next_slide[0],"key")].overlay,{opacity:0},{opacity:1,duration:1,ease:"none"}),En&&tpGS.gsap.to(En.overlay,{opacity:0,duration:1,ease:"none"}),$e[bi].transition=1,$e[bi].stopByVideo=!1,$e[bi].pr_next_slide[0]!==_e&&$e.gA($e[bi].pr_next_slide[0],"duration")!=_e&&$e.gA($e[bi].pr_next_slide[0],"duration")!=""?$e[bi].duration=parseInt($e.gA($e[bi].pr_next_slide[0],"duration"),0):$e[bi].duration=$e[bi].origcd,$e[bi].pr_next_slide[0]===_e||$e.gA($e[bi].pr_next_slide[0],"ssop")!="true"&&$e.gA($e[bi].pr_next_slide[0],"ssop")!==!0?$e[bi].ssop=!1:$e[bi].ssop=!0,$e[bi].sbtimeline.set&&$e[bi].sbtimeline.fixed&&$e.updateFixedScrollTimes(bi),$e[bi].c.trigger("nulltimer"),$e[bi].sdir=($e[bi].sc_indicator==="bullet"||$e[bi].pr_active_key!=$e[bi].slideamount-1||$e[bi].pr_processing_key!=0)&&$e[bi].pr_processing_key<$e[bi].pr_active_key?1:0,$e[bi].sc_indicator=="arrow"&&($e[bi].sdir=$e[bi].sc_indicator_dir),$e[bi].lsdir=$e[bi].sdir,$e[bi].pr_active_key!=$e[bi].pr_processing_key&&$e[bi].firststart!=1&&$e[bi].sliderType!=="carousel"&&$e.removeTheLayers&&$e.removeTheLayers($e[bi].pr_active_slide,bi),$e.gA($e[bi].pr_next_slide[0],"rspausetimeronce")!==1&&$e.gA($e[bi].pr_next_slide[0],"rspausetimeralways")!==1?$e[bi].c.trigger("restarttimer"):($e[bi].stopByVideo=!0,$e.unToggleState($e[bi].slidertoggledby)),$e.sA($e[bi].pr_next_slide[0],"rspausetimeronce",0),$e[bi].pr_next_slide[0]!==_e&&$e.sA($e[bi].c[0],"slideactive",$e.gA($e[bi].pr_next_slide[0],"key")),$e[bi].sliderType=="carousel"?($e[bi].mtl=tpGS.gsap.timeline(),$e.prepareCarousel(bi),$e[bi].carousel.orientation=="v"&&tpGS.gsap.set($e[bi].canvas,{height:$e[bi].carousel.slide_height}),tr(bi),$e.updateSlideBGs(bi),$e[bi].carousel.checkFVideo!==!0&&(Mn=$e.gA($e[bi].pr_next_slide[0],"key"),$e[bi].sbgs[Mn]!==_e&&$e[bi].sbgs[Mn].bgvid!==_e&&$e[bi].sbgs[Mn].bgvid.length!==0&&$e.playBGVideo(bi,Mn),$e[bi].carousel.checkFVideo=!0),$e[bi].transition=0,$e[bi].startedWithOtherSlide&&(setTimeout(function(){$e[bi].carousel.focused=$e[bi].pr_active_key,$e.positionCarousel(bi)}),delete $e[bi].startedWithOtherSlide)):($e[bi].pr_lastshown_key=$e[bi].pr_lastshown_key===_e?$e[bi].pr_next_key!==_e?$e[bi].pr_next_key:$e[bi].pr_processing_key!==_e?$e[bi].pr_processing_key:$e[bi].pr_active_key!==_e?$e[bi].pr_active_key:$e[bi].pr_lastshown_key:$e[bi].pr_lastshown_key,$e[bi].mtl=tpGS.gsap.timeline({paused:!0,onComplete:function(){tr(bi)}}),$e[bi].pr_next_key!==_e?$e.animateTheLayers({slide:$e[bi].pr_next_key,id:bi,mode:"preset",caller:"swapSlideProgress_1"}):$e[bi].pr_processing_key!==_e?$e.animateTheLayers({slide:$e[bi].pr_processing_key,id:bi,mode:"preset",caller:"swapSlideProgress_2"}):$e[bi].pr_active_key!==_e&&$e.animateTheLayers({slide:$e[bi].pr_active_key,id:bi,mode:"preset",caller:"swapSlideProgress_3"}),$e[bi].firststart==1&&($e[bi].pr_active_slide[0]!==_e&&tpGS.gsap.set($e[bi].pr_active_slide,{autoAlpha:0}),$e[bi].firststart=0),$e[bi].pr_active_slide[0]!==_e&&tpGS.gsap.set($e[bi].pr_active_slide,{zIndex:18}),$e[bi].pr_next_slide[0]!==_e&&tpGS.gsap.set($e[bi].pr_next_slide,{autoAlpha:0,zIndex:20}),Mn=$e.gA($e[bi].pr_next_slide[0],"key"),$e[bi].sbgs[Mn]!==_e&&$e[bi].sbgs[Mn].alt===_e&&($e[bi].sbgs[Mn].alt=$e.gA($e[bi].pr_next_slide[0],"alttrans")||!1,$e[bi].sbgs[Mn].alt=$e[bi].sbgs[Mn].alt!==!1&&$e[bi].sbgs[Mn].alt.split(","),$e[bi].sbgs[Mn].altIndex=0,$e[bi].sbgs[Mn].altLen=$e[bi].sbgs[Mn].alt!==!1?$e[bi].sbgs[Mn].alt.length:0),$e[b
193i].firstSlideAnimDone===_e&&$e[bi].fanim!==_e&&$e[bi].fanim!==!1||$e[bi].sbgs[Mn].slideanimation===_e||$e[bi].sbgs[Mn].slideanimationRebuild||$e[bi].sbgs[Mn].random!==_e&&$e.SLTR!==_e||0<$e[bi].sbgs[Mn].altLen&&$e.SLTR,$e[bi].sbgs[Mn].slideanimation=$e[bi].firstSlideAnimDone===_e&&$e[bi].fanim!==_e&&$e[bi].fanim!==!1?$e.convertSlideAnimVals(De.extend(!0,{},$e.getSlideAnim_EmptyObject(),$e[bi].fanim)):$e[bi].sbgs[Mn].slideanimation===_e||$e[bi].sbgs[Mn].slideanimationRebuild||0<$e[bi].sbgs[Mn].altLen&&$e[bi].sbgs[Mn].alt[$e[bi].sbgs[Mn].altIndex]=="default_first_anim"?$e.getSlideAnimationObj(bi,{anim:$e.gA($e[bi].pr_next_slide[0],"anim"),filter:$e.gA($e[bi].pr_next_slide[0],"filter"),in:$e.gA($e[bi].pr_next_slide[0],"in"),out:$e.gA($e[bi].pr_next_slide[0],"out"),d3:$e.gA($e[bi].pr_next_slide[0],"d3")},Mn):$e[bi].sbgs[Mn].random!==_e&&$e.SLTR!==_e?$e.convertSlideAnimVals(De.extend(!0,{},$e.getSlideAnim_EmptyObject(),$e.getAnimObjectByKey($e.getRandomSlideTrans($e[bi].sbgs[Mn].random.rndmain,$e[bi].sbgs[Mn].random.rndgrp,$e.SLTR),$e.SLTR))):0<$e[bi].sbgs[Mn].altLen&&$e.SLTR!==_e?$e.convertSlideAnimVals(De.extend(!0,{altAnim:$e[bi].sbgs[Mn].alt[$e[bi].sbgs[Mn].altIndex]},$e.getSlideAnim_EmptyObject(),$e.getAnimObjectByKey($e[bi].sbgs[Mn].alt[$e[bi].sbgs[Mn].altIndex],$e.SLTR))):$e[bi].sbgs[Mn].slideanimation,0<$e[bi].sbgs[Mn].altLen&&($e[bi].sbgs[Mn].firstSlideAnimDone!==_e?($e[bi].sbgs[Mn].altIndex++,$e[bi].sbgs[Mn].altIndex=$e[bi].sbgs[Mn].altIndex>=$e[bi].sbgs[Mn].altLen?0:$e[bi].sbgs[Mn].altIndex):($e[bi].sbgs[Mn].firstSlideAnimDone=!0,$e.SLTR===_e&&$e.SLTR_loading===_e&&$e.loadSlideAnimLibrary(bi),$e[bi].sbgs[Mn].alt.push("default_first_anim"),$e[bi].sbgs[Mn].altLen++)),$e[bi].sbgs[Mn].currentState="animating",$e.animateSlide(bi,$e[bi].sbgs[Mn].slideanimation),$e[bi].firstSlideAnimDone===_e&&$e[bi].fanim!==_e&&$e[bi].fanim!==!1&&($e[bi].sbgs[Mn].slideanimationRebuild=!0),$e[bi].firstSlideAnimDone=!0,$e[bi].pr_next_bg.data("panzoom")!==_e&&requestAnimationFrame(function(){var Cr=$e.gA($e[bi].pr_next_slide[0],"key");$e.startPanZoom($e[bi].pr_next_bg,bi,0,$e.getSlideIndex(bi,Cr),"first",Cr)}),$e[bi].mtl.pause()),$e.animateTheLayers?$e[bi].sliderType==="carousel"?($e[bi].carousel.showLayersAllTime!==!1&&($e[bi].carousel.allLayersStarted?$e.animateTheLayers({slide:"individual",id:bi,mode:"rebuild",caller:"swapSlideProgress_5"}):$e.animateTheLayers({slide:"individual",id:bi,mode:"start",caller:"swapSlideProgress_4"}),$e[bi].carousel.allLayersStarted==_e)&&($e.updateCarouselRows(bi),$e[bi].carousel.allLayersStarted=!0),$e[bi].firststart!==0?$e.animateTheLayers({slide:0,id:bi,mode:"start",caller:"swapSlideProgress_6"}):Ii!==!0&&$e.animateTheLayers({slide:$e[bi].pr_next_key!==_e?$e[bi].pr_next_key:$e[bi].pr_processing_key!==_e?$e[bi].pr_processing_key:$e[bi].pr_active_key,id:bi,mode:"start",caller:"swapSlideProgress_7"}),$e[bi].firststart=0):$e.animateTheLayers({slide:$e[bi].pr_next_key!==_e?$e[bi].pr_next_key:$e[bi].pr_processing_key!==_e?$e[bi].pr_processing_key:$e[bi].pr_active_key,id:bi,mode:"start",caller:"swapSlideProgress_8"}):$e[bi].mtl!=_e&&setTimeout(function(){$e[bi].mtl.resume()},18),$e[bi].sliderType!=="carousel")if($e[bi].scwDur=.001,Array.isArray($e[bi].scwCallback)&&0<$e[bi].scwCallback.length&&$e[bi].pr_next_slide[0].classList.contains("rs-addon-pano-active")){$e[bi].scwDone=!1,$e[bi].scwCount=$e[bi].scwCallback.length;for(var Fn=0;Fn<$e[bi].scwCallback.length;Fn++)$e[bi].scwCallback[Fn]();$e[bi].scwTimeout=tpGS.gsap.delayedCall(2,function(){0<$e[bi].scwCount&&($e[bi].scwTween&&typeof $e[bi].scwTween.kill=="function"&&($e[bi].scwTween.kill(),$e[bi].scwTween=null),$e[bi].scwTween=tpGS.gsap.to($e[bi].pr_next_slide,{duration:$e[bi].scwDur,autoAlpha:1}))})}else tpGS.gsap.to($e[bi].pr_next_slide,{duration:$e[bi].scwDur,autoAlpha:1})}},tr=function(Ue){if($e[Ue]!==_e&&($e.RS_swapList[Ue]!=="done"&&($e.RS_swapList[Ue]="done",Ii=De.inArray(Ue,$e.RS_swapping),$e.RS_swapping.splice(Ii,1)),$e[Ue].firstSlideAvailable===_e&&($e[Ue].firstSlideAvailable=!0,window.requestAnimationFrame(function(){$e[Ue].sliderType!=="hero"&&$e.createNavigation&&$e[Ue].navigation.use&&$e[Ue].navigation.createNavigationDone!==!0&&$e.createNavigation(Ue)})),$e[Ue].sliderType==="carousel"&&tpGS.gsap.to($e[Ue].carousel.wrap,1,{opacity:1}),$e[Ue].pr_active_key=$e[Ue].pr_processing_key!==_e?$e[Ue].pr_processing_key:$e[Ue].pr_active_key,delete $e[Ue].pr_processing_key,$e[Ue].parallax.type!="scroll"&&$e[Ue].parallax.type!="scroll+mouse"&&$e[Ue].parallax.type!="mouse+scroll"||($e[Ue].lastscrolltop=-999,$e.generalObserver($e.ISM)),$e[Ue].mtldiff=$e[Ue].mtl.time(),delete $e[Ue].mtl,$e[Ue].pr_active_key!==_e)){if($e.gA($e[
193Ue].slides[$e[Ue].pr_active_key],"sloop")!==_e){var bi=Ue;if($e[bi]!==_e){$e[bi].sloops=$e[bi].sloops===_e?{}:$e[bi].sloops;var Ii=$e.gA($e[bi].slides[$e[bi].pr_active_key],"key");if((Mn=$e[bi].sloops[Ii])===_e){var Ji,Mn={s:2500,e:4500,r:"unlimited"},En=$e.gA($e[bi].slides[$e[bi].pr_active_key],"sloop").split(";");for(Ji in En)if(En.hasOwnProperty(Ji)){var Fn=En[Ji].split(":");switch(Fn[0]){case"s":Mn.s=parseInt(Fn[1],0)/1e3;break;case"e":Mn.e=parseInt(Fn[1],0)/1e3;break;case"r":Mn.r=Fn[1]}}Mn.r=Mn.r==="unlimited"?-1:parseInt(Mn.r,0),($e[bi].sloops[Ii]=Mn).key=Ii}Mn.ct={time:Mn.s},Mn.tl=tpGS.gsap.timeline({}),Mn.timer=tpGS.gsap.fromTo(Mn.ct,Mn.e-Mn.s,{time:Mn.s},{time:Mn.e,ease:"none",onRepeat:function(){for(var Or in $e[bi].layers[Mn.key])$e[bi].layers[Mn.key].hasOwnProperty(Or)&&$e[bi]._L[Or].timeline.play(Mn.s);var _s=$e[bi].progressC;_s!==_e&&_s[0]!==_e&&_s[0].tween!==_e&&_s[0].tween.time(Mn.s)},onUpdate:function(){},onComplete:function(){}}).repeat(Mn.r),Mn.tl.add(Mn.timer,Mn.s),Mn.tl.time($e[bi].mtldiff)}}$e.sA($e[Ue].slides[$e[Ue].activeRSSlide],"isactiveslide",!1),$e[Ue].activeRSSlide=$e[Ue].pr_active_key,$e.sA($e[Ue].slides[$e[Ue].activeRSSlide],"isactiveslide",!0);var Cr=$e.gA($e[Ue].slides[$e[Ue].pr_active_key],"key"),_r=$e.gA($e[Ue].slides[$e[Ue].pr_lastshown_key],"key"),_r=($e.sA($e[Ue].c[0],"slideactive",Cr),_r!==_e&&$e[Ue].panzoomTLs!==_e&&$e[Ue].panzoomTLs[$e.getSlideIndex(Ue,_r)]!==_e&&($e[Ue].sliderType==="carousel"?($e[Ue].panzoomTLs[$e.getSlideIndex(Ue,_r)].timeScale(3),$e[Ue].panzoomTLs[$e.getSlideIndex(Ue,_r)].reverse()):$e[Ue].panzoomTLs[$e.getSlideIndex(Ue,_r)].pause()),xr(Ue,Cr),{slider:Ue,slideIndex:parseInt($e[Ue].pr_active_key,0)+1,slideLIIndex:$e[Ue].pr_active_key,slide:$e[Ue].pr_next_slide,currentslide:$e[Ue].pr_next_slide,prevSlideIndex:$e[Ue].pr_lastshown_key!==_e&&parseInt($e[Ue].pr_lastshown_key,0)+1,prevSlideLIIndex:$e[Ue].pr_lastshown_key!==_e&&parseInt($e[Ue].pr_lastshown_key,0),prevSlide:$e[Ue].pr_lastshown_key!==_e&&$e[Ue].slides[$e[Ue].pr_lastshown_key]}),_r=($e[Ue].c.trigger("revolution.slide.onchange",_r),$e[Ue].c.trigger("revolution.slide.onafterswap",_r),""+$e[Ue].pr_lastshown_key!=""+$e[Ue].pr_active_key&&$e[Ue].sliderType!=="carousel"&&tpGS.gsap.set(_r.prevSlide,{display:"none",delay:.01}),($e[Ue].deepLinkListener||$e[Ue].enableDeeplinkHash)&&(Cr=$e.gA($e[Ue].slides[$e[Ue].pr_active_key],"deeplink"))!==_e&&0<Cr.length&&($e[Ue].ignoreDeeplinkChange=!0,window.location.hash=$e.gA($e[Ue].slides[$e[Ue].pr_active_key],"deeplink")),$e[Ue].pr_lastshown_key=$e[Ue].pr_active_key,$e[Ue].startWithSlide!==_e&&$e[Ue].startWithSlide!=="done"&&$e[Ue].sliderType==="carousel"&&($e[Ue].firststart=0),$e[Ue].duringslidechange=!1,0<$e[Ue].pr_active_slide.length&&$e.gA($e[Ue].pr_active_slide[0],"hal")!=0&&$e.gA($e[Ue].pr_active_slide[0],"hal")<=$e.gA($e[Ue].pr_active_slide[0],"sofacounter")&&$e[Ue].c.revremoveslide($e[Ue].pr_active_slide.index()),$e[Ue].pr_processing_key||$e[Ue].pr_active_key||0);$e[Ue].rowzones!=_e&&(_r=_r>$e[Ue].rowzones.length?$e[Ue].rowzones.length:_r),($e[Ue].rowzones!=_e&&0<$e[Ue].rowzones.length&&$e[Ue].rowzones[_r]!=_e&&0<=_r&&_r<=$e[Ue].rowzones.length&&0<$e[Ue].rowzones[_r].length||$e.winH<$e[Ue].module.height)&&$e.updateDims(Ue),$e[Ue].firstLetItFree===_e&&($e.generalObserver($e.ISM),$e[Ue].firstLetItFree=!0),$e[Ue].skipAttachDetach=!1}},xr=function(Ue,bi){$e[Ue].sbgs[bi]===_e||$e[Ue].sbgs[bi].loadobj.img?$e[Ue].pr_next_bg.data("panzoom")!==_e&&($e[Ue].panzoomTLs!==_e&&$e[Ue].panzoomTLs[$e.getSlideIndex(Ue,bi)]!==_e?($e[Ue].panzoomTLs[$e.getSlideIndex(Ue,bi)].timeScale(1),$e[Ue].panzoomTLs[$e.getSlideIndex(Ue,bi)].play()):$e.startPanZoom($e[Ue].pr_next_bg,Ue,0,$e.getSlideIndex(Ue,bi),"play",bi)):tpGS.gsap.delayedCall(.1,function(){xr(Ue,bi)})},er=function(Ue){$e[Ue].c.children().each(function(){try{De(this).die("click")}catch{}try{De(this).die("mouseenter")}catch{}try{De(this).die("mouseleave")}catch{}try{De(this).off("hover")}catch{}});try{$e[Ue].c.die("click","mouseenter","mouseleave")}catch{}clearInterval($e[Ue].cdint),$e[Ue].c=null},Hn=function(Ue){var bi,Ii,Ji,Mn,En=$e[Ue].progressBar;if($e[Ue].progressC===_e||$e[Ue].progressC.length==0)if($e[Ue].progressC=De('<rs-progress style="visibility:hidden;"></rs-progress>'),En.style==="horizontal"||En.style==="vertical"){if(En.basedon==="module"){for(var Fn="",Cr=0;Cr<$e[Ue].slideamount;Cr++)Fn+="<rs-progress-bar></rs-progress-bar>";
193for(Fn+="<rs-progress-bgs>",Cr=0;Cr<$e[Ue].slideamount;Cr++)Fn+="<rs-progress-bg></rs-progress-bg>";if(Fn+="</rs-progress-bgs>",En.gaptype!=="nogap")for(Cr=0;Cr<$e[Ue].slideamount;Cr++)Fn+="<rs-progress-gap></rs-progress-gap>";$e[Ue].progressC[0].innerHTML=Fn,$e[Ue].noDetach===!0&&$e[Ue].c.append($e[Ue].progressC),$e[Ue].progressCBarBGS=$e.getByTag($e[Ue].progressC[0],"RS-PROGRESS-BG"),$e[Ue].progressCBarGAPS=$e.getByTag($e[Ue].progressC[0],"RS-PROGRESS-GAP"),En.gaptype!=="nogap"&&tpGS.gsap.set($e[Ue].progressCBarGAPS,{backgroundColor:En.gapcolor,zIndex:En.gaptype==="gapbg"?17:27}),tpGS.gsap.set($e[Ue].progressCBarBGS,{backgroundColor:En.bgcolor})}else $e[Ue].progressC[0].innerHTML="<rs-progress-bar></rs-progress-bar>",$e[Ue].noDetach===!0&&$e[Ue].c.append($e[Ue].progressC);$e[Ue].progressCBarInner=$e.getByTag($e[Ue].progressC[0],"RS-PROGRESS-BAR"),tpGS.gsap.set($e[Ue].progressCBarInner,{background:En.color})}else $e[Ue].progressC[0].innerHTML='<canvas width="'+2*En.radius+'" height="'+2*En.radius+'" style="position:absolute" class="rs-progress-bar"></canvas>',$e[Ue].noDetach===!0&&$e[Ue].c.append($e[Ue].progressC),$e[Ue].progressCBarInner=$e[Ue].progressC[0].getElementsByClassName("rs-progress-bar")[0],$e[Ue].progressBCanvas=$e[Ue].progressCBarInner.getContext("2d"),$e[Ue].progressBar.degree=$e[Ue].progressBar.style==="cw"?360:0,Er(Ue);$e[Ue].noDetach!==!0&&$e[Ue].progressC.detach(),$e[Ue].progressBar.visibility[$e[Ue].level]&&$e[Ue].progressBar.disableProgressBar!=1?En.style==="horizontal"||En.style==="vertical"?(bi=$e[Ue].slideamount-1,En.style==="horizontal"?(Mn=En.alignby==="grid"?$e[Ue].gridwidth[$e[Ue].level]:$e[Ue].module.width,Ii=Math.ceil(Mn/$e[Ue].slideamount),Ji=Math.ceil((Mn-bi*En.gapsize)/$e[Ue].slideamount),tpGS.gsap.set($e[Ue].progressC,{visibility:"visible",top:En.vertical==="top"?En.y+(En.alignby==="grid"&&$e[Ue].gridOffsetHeight!==_e?Math.max(0,$e[Ue].gridOffsetHeight):0):En.vertical==="center"?"50%":"auto",bottom:En.vertical==="top"||En.vertical==="center"?"auto":En.y+(En.alignby==="grid"&&$e[Ue].gridOffsetHeight!==_e?Math.max(0,$e[Ue].gridOffsetHeight):0),left:En.horizontal==="left"&&En.alignby==="grid"&&$e[Ue].gridOffsetWidth!==_e?Math.max(0,$e[Ue].gridOffsetWidth):"auto",right:En.horizontal==="right"&&En.alignby==="grid"&&$e[Ue].gridOffsetWidth!==_e?Math.max(0,$e[Ue].gridOffsetWidth):"auto",y:En.vertical==="center"?En.y:0,height:En.size,backgroundColor:En.basedon==="module"?"transparent":En.bgcolor,marginTop:En.vertical==="bottom"||En.vertical==="top"?0:parseInt(En.size,0)/2,width:En.alignby==="grid"?$e[Ue].gridwidth[$e[Ue].level]:"100%"}),tpGS.gsap.set($e[Ue].progressCBarInner,{x:En.basedon==="module"?En.gap?function(_r){return(En.horizontal==="right"?bi-_r:_r)*(Ji+En.gapsize)}:function(_r){return(En.horizontal==="right"?bi-_r:_r)*Ii}:0,width:En.basedon==="module"?En.gap?Ji+"px":100/$e[Ue].slideamount+"%":"100%"}),En.basedon==="module"&&(tpGS.gsap.set($e[Ue].progressCBarBGS,{x:En.basedon==="module"?En.gap?function(_r){return _r*(Ji+En.gapsize)}:function(_r){return _r*Ii}:0,width:En.basedon==="module"?En.gap?Ji+"px":100/$e[Ue].slideamount+"%":"100%"}),tpGS.gsap.set($e[Ue].progressCBarGAPS,{width:En.gap?En.gapsize+"px":0,x:En.gap?function(_r){return(_r+1)*Ji+parseInt(En.gapsize,0)*_r}:0}))):En.style==="vertical"&&(Mn=En.alignby==="grid"?$e[Ue].gridheight[$e[Ue].level]:$e[Ue].module.height,Ii=Math.ceil(Mn/$e[Ue].slideamount),Ji=Math.ceil((Mn-bi*En.gapsize)/$e[Ue].slideamount),tpGS.gsap.set($e[Ue].progressC,{visibility:"visible",left:En.horizontal==="left"?En.x+(En.alignby==="grid"&&$e[Ue].gridOffsetWidth!==_e?Math.max(0,$e[Ue].gridOffsetWidth):0):En.horizontal==="center"?"50%":"auto",right:En.horizontal==="left"||En.horizontal==="center"?"auto":En.x+(En.alignby==="grid"&&$e[Ue].gridOffsetWidth!==_e?Math.max(0,$e[Ue].gridOffsetWidth):0),x:En.horizontal==="center"?En.x:0,top:En.vertical==="top"&&En.alignby==="grid"&&$e[Ue].gridOffsetHeight!==_e?Math.max($e[Ue].gridOffsetHeight,0):"auto",bottom:En.vertical==="bottom"&&En.alignby==="grid"&&$e[Ue].gridOffsetHeight!==_e?Math.max($e[Ue].gridOffsetHeight,0):"auto",width:En.size,marginLeft:En.horizontal==="left"||En.horizontal==="right"?0:parseInt(En.size,0)/2,backgroundColor:En.basedon==="module"?"transparent":En.bgcolor,height:En.alignby==="grid"?$e[Ue].gridheight[$e[Ue].level]:"100%"}),tpGS.gsap.set($e[Ue].progressCBarInner,{y:En.basedon==="module"?En.gap?function(_r){return(En.vertical==="bottom"?bi-_r:_r)*(Ji+En.gapsize)}:function(_r){return(En.vertical==="bottom"?bi-_r:_r)*Ii}:0,height:En.basedon==="module"?En.gap?Ji+"px":100/$e[Ue].slideamount+"%":"100%"}),En.basedon==="module")&&(tpGS.gsap.set($e[Ue].progressCBarBGS,{y:En.basedon==="module"?En.gap?function(_r){return _r*(Ji+En.gapsize)}:function(_r){return _r*Ii}:0,height:En.basedon==="module"?En.gap?Ji+"px":100/$e[Ue].slideamount+"%":"100%"}),tpGS.gsap.set($e[Ue].progressCBarGAPS,{height:En.gap?En.gapsize+"px":0,y:En.gap?function(_r){return(_r+1)*Ji+parseInt(En.gapsize,0)*_r}:0}))):tpGS.gsap.set($e[Ue].progressC,{top:En.vertical==="top"?En.y+(En.alignby==="grid"&&$e[Ue].gridOffsetHeight!==_e?Math.max(0,$e[Ue].gridOffsetHeight):0):En.vertical==="center"?"50%":"auto",bottom:En.vertical==="top"||En.vertical==="center"?"auto":En.y+(En.alignby==="grid"&&$e[Ue].gridOffsetHeight!==_e?Math.max(0,$e[Ue].gridOffsetHeight):0),left:En.horizontal==="left"?En.x+(En.alignby==="grid"&&$e[Ue].gridOffsetWidth!==_e?Math.max(0,$e[Ue].gridOffsetWidth):0):En.horizontal==="center"?"50%":"auto",right:En.horizontal==="left"||En.horizontal==="center"?"auto":En.x+(En.alignby==="grid"&&$e[Ue].gridOffsetWidth!==_e?Math.max(0,$e[Ue].gridOffsetWidth):0),y:En.vertical==="center"?En.y:0,x:En.horizontal==="center"?En.x:0,width:2*En.radius,height:2*En.radius,marginTop:En.vertical==="center"?0-En.radius:0,marginLeft:En.horizontal==="center"?0-En.radius:0,backgroundColor:"transparent",visibility:"visible"}):$e[Ue].progressC[0].style.visibility="hidden",$e[Ue].noDetach!==!0&&$e[Ue].c.append($e[Ue].progressC),$e[Ue].gridOffsetWidth===_e&&En.alignby==="grid"?$e[Ue].rebuildProgressBar=!0:$e[Ue].rebuildProgressBar=!1},Er=function(Ue){var bi=$e[Ue].progressBar,Ii=(bi.radius-parseInt(bi.size,0)<=0&&(bi.size=bi.radius/4),parseInt(bi.radius)),Ji=parseInt(bi.radius);$e[Ue].progressBCanvas.lineCap="round",$e[Ue].progressBCanvas.clearRect(0,0,2*bi.radius,2*bi.radius),$e[Ue].progressBCanvas.beginPath(),$e[Ue].progressBCanvas.arc(Ii,Ji,bi.radius-parseInt(bi.size,0),Math.PI/180*270,Math.PI/180*630),$e[Ue].progressBCanvas.strokeStyle=bi.bgcolor,$e[Ue].progressBCanvas.lineWidth=parseInt(bi.size,0)-1,$e[Ue].progressBCanvas.stroke(),$e[Ue].progressBCanvas.beginPath(),$e[Ue].progressBCanvas.strokeStyle=bi.color,$e[Ue].progressBCanvas.lineWidth=parseInt(bi.size,0),$e[Ue].progressBCanvas.arc(Ii,Ji,bi.radius-parseInt(bi.size,0),Math.PI/180*270,Math.PI/180*(270+$e[Ue].progressBar.degree),bi.style!=="cw"),$e[Ue].progressBCanvas.stroke()},os=function(Ue){$e[Ue].progressC==_e&&Hn(Ue),$e[Ue].loop=0,$e[Ue].stopAtSlide!=_e&&-1<$e[Ue].stopAtSlide?$e[Ue].lastslidetoshow=$e[Ue].stopAtSlide:$e[Ue].lastslidetoshow=999,$e[Ue].stopLoop=!1,$e[Ue].looptogo==0&&($e[
193Ue].stopLoop=!0),$e[Ue].c.on("stoptimer",function(){$e[Ue].progressC!=_e&&($e[Ue].progressC[0].tween.pause(),$e[Ue].progressBar.disableProgressBar&&($e[Ue].progressC[0].style.visibility="hidden"),$e[Ue].sliderstatus="paused",$e[Ue].slideInSwapTimer||$e.unToggleState($e[Ue].slidertoggledby),$e[Ue].slideInSwapTimer=!1)}),$e[Ue].c.on("starttimer",function(){$e[Ue].progressC==_e||$e[Ue].forcepaused||($e[Ue].conthover!=1&&$e[Ue].stopByVideo!=1&&$e[Ue].module.width>$e[Ue].hideSliderAtLimit&&$e[Ue].tonpause!=1&&$e[Ue].overnav!=1&&$e[Ue].ssop!=1&&($e[Ue].noloopanymore===1||$e[Ue].viewPort.enable&&!$e[Ue].inviewport||($e[Ue].progressBar.visibility[$e[Ue].level]||($e[Ue].progressC[0].style.visibility="visible"),$e[Ue].progressC[0].tween.resume(),$e[Ue].sliderstatus="playing")),!$e[Ue].progressBar.disableProgressBar&&$e[Ue].progressBar.visibility[$e[Ue].level]||($e[Ue].progressC[0].style.visibility="hidden"),$e.toggleState($e[Ue].slidertoggledby))}),$e[Ue].c.on("restarttimer",function(){if(!($e[Ue].modal!==_e&&$e[Ue].modal.useAsModal&&$e[Ue].modal.lastModalCall=="close"||$e[Ue].progressC==_e||$e[Ue].forcepaused)){if($e[Ue].mouseoncontainer&&$e[Ue].navigation.onHoverStop=="on"&&!$e.ISM)return!1;$e[Ue].noloopanymore===1||$e[Ue].viewPort.enable&&!$e[Ue].inviewport||$e[Ue].ssop==1?$e.unToggleState($e[Ue].slidertoggledby):($e[Ue].progressBar.visibility[$e[Ue].level]||($e[Ue].progressC[0].style.visibility="visible"),$e[Ue].progressC[0].tween!==_e&&$e[Ue].progressC[0].tween.kill(),$e[Ue].progressC[0].tween=Fe(Ue),$e[Ue].progressC[0].tween.play(),$e[Ue].sliderstatus="playing",$e.toggleState($e[Ue].slidertoggledby)),!$e[Ue].progressBar.disableProgressBar&&$e[Ue].progressBar.visibility[$e[Ue].level]||($e[Ue].progressC[0].style.visibility="hidden"),$e[Ue].mouseoncontainer&&$e[Ue].navigation.onHoverStop==1&&!$e.ISM&&($e[Ue].c.trigger("stoptimer"),$e[Ue].c.trigger("revolution.slide.onpause"))}}),$e[Ue].c.on("nulltimer",function(){$e[Ue].progressC!=_e&&$e[Ue].progressC[0]!==_e&&($e[Ue].progressC[0].tween!==_e&&$e[Ue].progressC[0].tween.kill(),$e[Ue].progressC[0].tween=Fe(Ue),$e[Ue].progressC[0].tween.pause(0),!$e[Ue].progressBar.disableProgressBar&&$e[Ue].progressBar.visibility[$e[Ue].level]||($e[Ue].progressC[0].style.visibility="hidden"),$e[Ue].sliderstatus="paused")}),$e[Ue].progressC!==_e&&($e[Ue].progressC[0].tween=Fe(Ue)),1<$e[Ue].slideamount&&($e[Ue].stopAfterLoops!=0||$e[Ue].stopAtSlide!=1)?$e[Ue].c.trigger("starttimer"):($e[Ue].noloopanymore=1,$e[Ue].c.trigger("nulltimer")),$e[Ue].c.on("tp-mouseenter",function(){$e[Ue].mouseoncontainer=!0,$e[Ue].navigation.onHoverStop!=1||$e.ISM||($e[Ue].c.trigger("stoptimer"),$e[Ue].c.trigger("revolution.slide.onpause"))}),$e[Ue].c.on("tp-mouseleft",function(){$e[Ue].mouseoncontainer=!1,$e[Ue].c.data("conthover")!=1&&$e[Ue].navigation.onHoverStop==1&&($e[Ue].viewPort.enable==1&&$e[Ue].inviewport||$e[Ue].viewPort.enable==0)&&($e[Ue].c.trigger("revolution.slide.onresume"),$e[Ue].c.trigger("starttimer"))})},wi=function(){De("rs-module").each(function(){var Ue,bi=this.id;!$e[bi].inviewport&&$e[bi].viewPort.enable||(Ue=$e[bi].pr_active_slide!==_e&&$e[bi].pr_active_slide.data("key")!==_e?$e[bi].pr_active_slide.data("key"):$e[bi].pr_next_slide!==_e&&$e[bi].pr_next_slide.data("key")!==_e?$e[bi].pr_next_slide.data("key"):_e)!=_e&&0<$e[bi].sbgs[Ue].bgvid.length&&$e[bi].videos[$e[bi].sbgs[Ue].bgvid[0].id].loop&&(document.visibilityState==="visible"?$e.playVideo($e[bi].sbgs[Ue].bgvid,bi):$e.stopVideo($e[bi].sbgs[Ue].bgvid,bi))})},Zi=function(){var Ue=document.documentMode===_e,bi=window.chrome;$e.revslider_focus_blur_listener!==1&&($e.revslider_focus_blur_listener=1,Ue&&!bi?$e.window.on("focusin",function(){$e.windowIsFocused!==!0&&Ve(),$e.windowIsFocused=!0}).on("focusout",function(){$e.windowIsFocused!==!0&&$e.windowIsFocused!==_e||Ie(),$e.windowIsFocused=!1}):window.addEventListener?(window.addEventListener("focus",function(Ii){$e.windowIsFocused!==!0&&Ve(),$e.windowIsFocused=!0},{capture:!1,passive:!0}),window.addEventListener("blur",function(Ii){$e.windowIsFocused!==!0&&$e.windowIsFocused!==_e||Ie(),$e.windowIsFocused=!1},{capture:!1,passive:!0})):(window.attachEvent("focus",function(Ii){$e.windowIsFocused!==!0&&Ve(),$e.windowIsFocused=!0}),window.attachEvent("blur",function(Ii){$e.windowIsFocused!==!0&&$e.windowIsFocused!==_e||Ie(),$e.windowIsFocused=!1})))},Qi=function(Ue){for(var bi,Ii=[],Ji=window.location.href.slice(window.location.href.indexOf(Ue)+1).split("_"),Mn=0;Mn<Ji.length;Mn++)Ji[Mn]=Ji[Mn].replace("%3D","="),bi=Ji[Mn].split("="),Ii.push(bi[0]),Ii[bi[0]]=bi[1];return Ii},Hi=function(Ue){if($e[Ue].blockSpacing!==_e){var bi,Ii=$e[Ue].blockSpacing.split(";");for(bi in $e[Ue].blockSpacing={},Ii)if(Ii.hasOwnProperty(bi)){var Ji=Ii[bi].split(":");switch(Ji[0]){case"t":$e[Ue].blockSpacing.top=$e.revToResp(Ji[1],4,0);break;case"b":$e[Ue].blockSpacing.bottom=$e.revToResp(Ji[1],4,0);break;case"l":$e[Ue].blockSpacing.left=$e.revToResp(Ji[1],4,0);break;
193case"r":$e[Ue].blockSpacing.right=$e.revToResp(Ji[1],4,0)}}$e[Ue].blockSpacing.block=De($e.closestClass($e[Ue].c[0],"wp-block-themepunch-revslider")),$e[Ue].level!==_e&&$e[Ue].blockSpacing!==_e&&tpGS.gsap.set($e[Ue].blockSpacing.block,{paddingLeft:$e[Ue].blockSpacing.left[$e[Ue].level],paddingRight:$e[Ue].blockSpacing.right[$e[Ue].level],marginTop:$e[Ue].blockSpacing.top[$e[Ue].level],marginBottom:$e[Ue].blockSpacing.bottom[$e[Ue].level]})}},vn=function(Ue){return Ue.charAt(0).toUpperCase()+Ue.slice(1)},zn=function(Ue){var bi,Ii=De.extend(!0,{DPR:"dpr",sliderType:"standard",sliderLayout:"auto",overlay:{type:"none",size:1,colora:"transparent",colorb:"#000000"},duration:9e3,imgCrossOrigin:"",modal:{useAsModal:!1,cover:!0,coverColor:"rgba(0,0,0,0.5)",horizontal:"center",vertical:"middle",coverSpeed:1},navigation:{keyboardNavigation:!1,keyboard_direction:"horizontal",mouseScrollNavigation:"off",wheelViewPort:50,wheelCallDelay:"1000ms",onHoverStop:!0,mouseScrollReverse:"default",target:"window",threshold:50,touch:{touchenabled:!1,touchOnDesktop:!1,swipe_treshold:75,swipe_min_touches:1,swipe_direction:"horizontal",drag_block_vertical:!1,mobileCarousel:!0,desktopCarousel:!0},arrows:{style:"",enable:!1,hide_onmobile:!1,hide_under:0,hide_onleave:!1,hide_delay:200,hide_delay_mobile:1200,hide_over:9999,tmp:"",rtl:!1,left:{h_align:"left",v_align:"center",h_offset:20,v_offset:0,container:"slider"},right:{h_align:"right",v_align:"center",h_offset:20,v_offset:0,container:"slider"}},bullets:{enable:!1,hide_onmobile:!1,hide_onleave:!1,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",h_align:"center",v_align:"bottom",space:5,h_offset:0,v_offset:20,tmp:'<span class="tp-bullet-image"></span><span class="tp-bullet-title"></span>',container:"slider",rtl:!1,style:""},thumbnails:{container:"slider",rtl:!1,style:"",enable:!1,width:100,height:50,min_width:100,wrapper_padding:2,wrapper_color:"transparent",tmp:'<span class="tp-thumb-image"></span><span class="tp-thumb-title"></span>',visibleAmount:5,hide_onmobile:!1,hide_onleave:!1,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",span:!1,position:"inner",space:2,h_align:"center",v_align:"bottom",h_offset:0,v_offset:20,mhoff:0,mvoff:0},tabs:{container:"slider",rtl:!1,style:"",enable:!1,width:100,min_width:100,height:50,wrapper_padding:10,wrapper_color:"transparent",tmp:'<span class="tp-tab-image"></span>',visibleAmount:5,hide_onmobile:!1,hide_onleave:!1,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",span:!1,space:0,position:"inner",h_align:"center",v_align:"bottom",h_offset:0,v_offset:20,mhoff:0,mvoff:0}},responsiveLevels:4064,visibilityLevels:[2048,1024,778,480],gridwidth:960,gridheight:500,minHeight:0,maxHeight:0,keepBPHeight:!1,useFullScreenHeight:!0,overflowHidden:!1,forceOverflow:!1,fixedOnTop:!1,autoHeight:!1,gridEQModule:!1,disableForceFullWidth:!1,fullScreenOffsetContainer:"",fullScreenOffset:"0",hideLayerAtLimit:0,hideAllLayerAtLimit:0,hideSliderAtLimit:0,progressBar:{disableProgressBar:!1,style:"horizontal",size:"5px",radius:10,vertical:"bottom",horizontal:"left",x:0,y:0,color:"rgba(255,255,255,0.5)",bgcolor:"transparent",basedon:"slide",gapsize:0,reset:"reset",gaptype:"gapboth",gapcolor:"rgba(255,255,255,0.5)",ease:"none",visibility:{0:!0,1:!0,2:!0,3:!0}},stopAtSlide:-1,stopAfterLoops:0,shadow:0,startDelay:0,lazyType:"none",lazyOnBg:!1,spinner:"off",shuffle:!1,perspective:"600px",perspectiveType:"local",viewPort:{enable:!1,global:!1,globalDist:"-400px",outof:"wait",visible_area:"200px",presize:!1},fallbacks:{isJoomla:!1,panZoomDisableOnMobile:!1,simplifyAll:!0,nextSlideOnWindowFocus:!1,disableFocusListener:!1,allowHTML5AutoPlayOnAndroid:!0},fanim:!1,parallax:{type:"off",levels:[10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85],origo:"enterpoint",disable_onmobile:!1,ddd_shadow:!1,ddd_bgfreeze:!1,ddd_overflow:"visible",ddd_layer_overflow:"visible",ddd_z_correction:65,speed:400,speedbg:0,speedls:0},scrolleffect:{set:!1,fade:!1,blur:!1,scale:!1,grayscale:!1,maxblur:10,layers:!1,slide:!1,direction:"both",multiplicator:1.35,multiplicator_layers:.5,tilt:30,disable_onmobile:!1},sbtimeline:{set:!1,fixed:!1,fixStart:0,fixEnd:0,layers:!1,slide:!1,ease:"none",speed:500},carousel:{orientation:"h",prevNextVis:"50px",easing:"power3.inOut",speed:800,showLayersAllTime:!1,horizontal_align:"center",vertical_align:"center",snap:!0,infinity:!1,stopOnClick:!0,space:0,maxVisibleItems:3,stretch:!1,fadeout:!0,maxRotation:0,maxOpacity:100,minScale:0,offsetScale:!1,vary_fade:!1,vary_rotation:!1,vary_scale:!1,border_radius:"0px",padding_top:0,padding_bottom:0,skewX:0,skewY:0,spin:"off",spinAngle:0,overshoot:!1},observeWrap:!1,extensions:"extensions/",extensions_suffix:".min.js",stopLoop:!1,waitForInit:!1,ignoreHeightChange:!0,onedpronmobile:!1},Ue);for(bi in Ii.minHeight=Ii.minHeight===_e||Ii.minHeight==="none"||Ii.minHeight==="0"||Ii.minHeight==="0px"||Ii.minHeight==""||Ii.minHeight==" "?0:parseInt(Ii.minHeight,0),Ii.maxHeight=Ii.maxHeight==="none"||Ii.maxHeight==="0"?0:parseInt(Ii.maxHeight,0),Ii.carousel.maxVisibleItems=Ii.carousel.maxVisibleItems<1?999:Ii.carousel.maxVisibleItems,Ii.carousel.vertical_align=Ii.carousel.vertical_align==="top"?"0%":Ii.carousel.vertical_align==="bottom"?"100%":"50%",Ii.carousel.space=parseInt(Ii.carousel.space,0),Ii.carousel.maxOpacity=parseInt(Ii.carousel.maxOpacity,0),Ii.carousel.maxOpacity=1<Ii.carousel.maxOpacity?Ii.carousel.maxOpacity/100:Ii.carousel.maxOpacity,Ii.carousel.showLayersAllTime=Ii.carousel.showLayersAllTime==="true"||Ii.carousel.showLayersAllTime===!0?"all":Ii.carousel.showLayersAllTime,Ii.carousel.maxRotation=parseInt(Ii.carousel.maxRotation,0),Ii.carousel.minScale=parseInt(Ii.carousel.minScale,0),Ii.carousel.minScale=.9<Ii.carousel.minScale?Ii.carousel.minScale/100:Ii.carousel.minScale,Ii.carousel.speed=parseInt(Ii.carousel.speed,0),Ii.carousel.skewX=parseFloat(Ii.carousel.skewX),Ii.carousel.skewY=parseFloat(Ii.carousel.skewY),Ii.carousel.spinAngle=parseFloat(Ii.carousel.spinAngle),Ii.
193carousel.spinAngle===0&&(Ii.carousel.spinAngle=1),Ii.carousel.orientation==="v"&&(Ii.carousel.justify=!1),Ii.navigation.maintypes=["arrows","tabs","thumbnails","bullets"],Ii.perspective=parseInt(Ii.perspective,0),Ii.navigation.maintypes)Ii.navigation.maintypes.hasOwnProperty(bi)&&Ii.navigation[Ii.navigation.maintypes[bi]]!==_e&&(Ii.navigation[Ii.navigation.maintypes[bi]].animDelay=Ii.navigation[Ii.navigation.maintypes[bi]].animDelay===_e?1e3:Ii.navigation[Ii.navigation.maintypes[bi]].animDelay,Ii.navigation[Ii.navigation.maintypes[bi]].animSpeed=Ii.navigation[Ii.navigation.maintypes[bi]].animSpeed===_e?1e3:Ii.navigation[Ii.navigation.maintypes[bi]].animSpeed,Ii.navigation[Ii.navigation.maintypes[bi]].animDelay=parseInt(Ii.navigation[Ii.navigation.maintypes[bi]].animDelay,0)/1e3,Ii.navigation[Ii.navigation.maintypes[bi]].animSpeed=parseInt(Ii.navigation[Ii.navigation.maintypes[bi]].animSpeed,0)/1e3);if($e.isNumeric(Ii.scrolleffect.tilt)||Ii.scrolleffect.tilt.indexOf("%")!==-1&&(Ii.scrolleffect.tilt=parseInt(Ii.scrolleffect.tilt)),Ii.scrolleffect.tilt=Ii.scrolleffect.tilt/100,Ii.navigation.thumbnails.position=Ii.navigation.thumbnails.position=="outer-horizontal"?Ii.navigation.thumbnails.v_align=="bottom"?"outer-bottom":"outer-top":Ii.navigation.thumbnails.position=="outer-vertical"?Ii.navigation.thumbnails.h_align=="left"?"outer-left":"outer-right":Ii.navigation.thumbnails.position,Ii.navigation.tabs.position=Ii.navigation.tabs.position=="outer-horizontal"?Ii.navigation.tabs.v_align=="bottom"?"outer-bottom":"outer-top":Ii.navigation.tabs.position=="outer-vertical"?Ii.navigation.tabs.h_align=="left"?"outer-left":"outer-right":Ii.navigation.tabs.position,Ii.sbtimeline.speed=parseInt(Ii.sbtimeline.speed,0)/1e3||.5,Ii.sbtimeline.set===!0&&Ii.sbtimeline.fixed===!0&&Ii.sliderLayout!=="auto"?(Ii.sbtimeline.fixStart=parseInt(Ii.sbtimeline.fixStart),Ii.sbtimeline.fixEnd=parseInt(Ii.sbtimeline.fixEnd)):Ii.sbtimeline.fixed=!1,Ii.progressBar===_e||Ii.progressBar.disableProgressBar!="true"&&Ii.progressBar.disableProgressBar!=1||(Ii.progressBar.disableProgressBar=!0),Ii.startDelay=parseInt(Ii.startDelay,0)||0,Ii.navigation!==_e&&Ii.navigation.arrows!=_e&&Ii.navigation.arrows.hide_under!=_e&&(Ii.navigation.arrows.hide_under=parseInt(Ii.navigation.arrows.hide_under)),Ii.navigation!==_e&&Ii.navigation.bullets!=_e&&Ii.navigation.bullets.hide_under!=_e&&(Ii.navigation.bullets.hide_under=parseInt(Ii.navigation.bullets.hide_under)),Ii.navigation!==_e&&Ii.navigation.thumbnails!=_e&&Ii.navigation.thumbnails.hide_under!=_e&&(Ii.navigation.thumbnails.hide_under=parseInt(Ii.navigation.thumbnails.hide_under)),Ii.navigation!==_e&&Ii.navigation.tabs!=_e&&Ii.navigation.tabs.hide_under!=_e&&(Ii.navigation.tabs.hide_under=parseInt(Ii.navigation.tabs.hide_under)),Ii.navigation!==_e&&Ii.navigation.arrows!=_e&&Ii.navigation.arrows.hide_over!=_e&&(Ii.navigation.arrows.hide_over=parseInt(Ii.navigation.arrows.hide_over)),Ii.navigation!==_e&&Ii.navigation.bullets!=_e&&Ii.navigation.bullets.hide_over!=_e&&(Ii.navigation.bullets.hide_over=parseInt(Ii.navigation.bullets.hide_over)),Ii.navigation!==_e&&Ii.navigation.thumbnails!=_e&&Ii.navigation.thumbnails.hide_over!=_e&&(Ii.navigation.thumbnails.hide_over=parseInt(Ii.navigation.thumbnails.hide_over)),Ii.navigation!==_e&&Ii.navigation.tabs!=_e&&Ii.navigation.tabs.hide_over!=_e&&(Ii.navigation.tabs.hide_over=parseInt(Ii.navigation.tabs.hide_over)),Ii.lazyloaddata!==_e&&0<Ii.lazyloaddata.length&&0<Ii.lazyloaddata.indexOf("-")){var Ji=Ii.lazyloaddata.split("-");for(Ii.lazyloaddata=Ji[0],bi=1;bi<Ji.length;bi++)Ii.lazyloaddata+=vn(Ji[bi])}return Ii.duration=parseInt(Ii.duration),Ii.lazyType==="single"&&Ii.sliderType==="carousel"&&(Ii.lazyType="smart"),Ii.sliderType==="carousel"&&Ii.carousel.justify&&(Ii.justifyCarousel=!0,Ii.keepBPHeight=!0),Ii.enableUpscaling=Ii.enableUpscaling==1&&Ii.sliderType!=="carousel"&&Ii.sliderLayout==="fullwidth",Ii.useFullScreenHeight=Ii.sliderType==="carousel"&&Ii.sliderLayout==="fullscreen"&&Ii.useFullScreenHeight===!0&&Ii.carousel.orientation!=="v",Ii.progressBar.y=parseInt(Ii.progressBar.y,0),Ii.progressBar.x=parseInt(Ii.progressBar.x,0),window.RSBrowser!=="IE"&&Ii.customEases!==_e&&(!Ii.customEases.SFXBounceLite&&Ii.customEases.SFXBounceLite!="true"||tpGS.SFXBounceLite!==_e||(tpGS.SFXBounceLite=tpGS.CustomBounce.create("SFXBounceLite",{strength:.3,squash:1,squashID:"SFXBounceLite-squash"})),!Ii.customEases.SFXBounceSolid&&Ii.customEases.SFXBounceSolid!="true"||tpGS.SFXBounceSolid!==_e||(tpGS.SFXBounceSolid=tpGS.CustomBounce.create("SFXBounceSolid",{strength:.5,squash:2,squashID:"SFXBounceSolid-squash"})),!Ii.customEases.SFXBounceStrong&&Ii.customEases.SFXBounceStrong!="true"||tpGS.SFXBounceStrong!==_e||(tpGS.SFXBounceStrong=tpGS.CustomBounce.create("SFXBounceStrong",{strength:.7,squash:3,squashID:"SFXBounceStrong-squash"})),!Ii.customEases.SFXBounceExtrem&&Ii.customEases.SFXBounceExtrem!="true"||tpGS.SFXBounceExtrem!==_e||(tpGS.SFXBounceExtrem=tpGS.CustomBounce.create("SFXBounceExtrem",{strength:.9,squash:4,squashID:"SFXBounceExtrem-squash"})),!Ii.customEases.BounceLite&&Ii.customEases.BounceLite!="true"||tpGS.BounceLite!==_e||(tpGS.BounceLite=tpGS.CustomBounce.create("BounceLite",{strength:.3})),!Ii.customEases.BounceSolid&&Ii.customEases.BounceSolid!="true"||tpGS.BounceSolid!==_e||(tpGS.BounceSolid=tpGS.CustomBounce.create("BounceSolid",{strength:.5})),!Ii.customEases.BounceStrong&&Ii.customEases.BounceStrong!="true"||tpGS.BounceStrong!==_e||(tpGS.BounceStrong=tpGS.CustomBounce.create("BounceStrong",{strength:.7}
193)),!Ii.customEases.BounceExtrem&&Ii.customEases.BounceExtrem!="true"||tpGS.BounceExtrem!==_e||(tpGS.BounceExtrem=tpGS.CustomBounce.create("BounceExtrem",{strength:.9}))),Ii.modal.coverSpeed=parseFloat(Ii.modal.coverSpeed),Ii.modal.coverSpeed=200<Ii.modal.coverSpeed?Ii.modal.coverSpeed/1e3:Ii.modal.coverSpeed,Ii.modal.coverSpeed=Math.max(Math.min(3,Ii.modal.coverSpeed),.3),Ii.navigation.wheelViewPort=Ii.navigation.wheelViewPort===_e?.5:Ii.navigation.wheelViewPort/100,Ii.navigation.wheelCallDelay=Ii.navigation.wheelCallDelay===_e?1e3:parseInt(Ii.navigation.wheelCallDelay),Ii.autoDPR=typeof Ii.DPR=="string"&&Ii.DPR.indexOf("ax")!==-1,Ii.DPR=Ii.DPR.replace("ax",""),Ii.DPR=parseInt(Ii.DPR.replace("x","")),Ii.DPR=isNaN(Ii.DPR)?window.devicePixelRatio:Ii.autoDPR?Math.min(window.devicePixelRatio,Ii.DPR):Ii.DPR,Ii.DPR=Ii.onedpronmobile!=1&&Ii.onedpronmobile!="true"||!$e.ISM?Ii.DPR:1,Ii.viewPort.global===!1?Ii.viewPort.enable=!1:Ii.viewPort.global===!0&&(Ii.viewPort.local=Ii.viewPort.enable,Ii.viewPort.enable=!0),Ii.carousel!==_e&&Ii.carousel.orientation=="v"&&(Ii.carousel.prevNextVisType=(""+Ii.carousel.prevNextVis).includes("%")?"%":"px",Ii.carousel.prevNextVis=parseInt(Ii.carousel.prevNextVis,0)/(Ii.carousel.prevNextVisType=="%"?100:1)),Ii},ji=(window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.waiting=window.RS_MODULES.waiting||[],["DOM","main","parallax","video","slideanims","actions","layeranimation","navigation","carousel","panzoom"]);for(je in ji)window.RS_MODULES.waiting.indexOf(ji[je])==-1&&window.RS_MODULES.waiting.push(ji[je]);function hr(Ue){window.elementorFrontend!==_e&&elementorFrontend.hooks!==_e&&elementorFrontend.hooks.removeAction("frontend/element_ready/global",hr),window.RS_MODULES.elementor={loaded:!0,version:"6.5.0"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}function Ri(){if(window.elementorFrontend===_e||window.elementorFrontend.hooks===_e||window.elementorFrontend.hooks.addAction===_e)return window.RS_MODULES.elementorCounter++,window.RS_MODULES.elementorCounterCheck&&20<window.RS_MODULES.elementorCounter?void hr():void requestAnimationFrame(Ri);window.elementorFrontend.config.environmentMode.edit?elementorFrontend.hooks.addAction("frontend/element_ready/widget",hr):hr()}function xs(){RS_MODULES.checkElementorCalled!=1&&(RS_MODULES.checkElementorCalled=!0,document.body)&&(0<=document.body.className.indexOf("elementor-page")||0<=document.body.className.indexOf("elementor-default"))&&(window.RS_MODULES.waiting=window.RS_MODULES.waiting===_e?[]:window.RS_MODULES.waiting,window.RS_MODULES.waiting.indexOf("elementor")==-1&&window.RS_MODULES.waiting.push("elementor"),document.body&&document.body.className.indexOf("elementor-editor-active")==-1&&(window.RS_MODULES.elementorCounterCheck=!0),window.RS_MODULES.elementorCounter=0,Ri())}window.RS_MODULES.main={loaded:!0,version:Ke},window.RS_MODULES.minimal=!1,window.RS_MODULES.callSliders=function(){for(var Ue in RS_MODULES.modules)RS_MODULES.modules[Ue].once!==!0&&window.RS_MODULES!==_e&&window.RS_MODULES.minimal&&(RS_MODULES.modules[Ue].once=!0,RS_MODULES.modules[Ue].init())},document.readyState==="loading"?document.addEventListener("readystatechange",function(){document.readyState!=="interactive"&&document.readyState!=="complete"||(xs(),window.RS_MODULES.DOM={loaded:!0},window.RS_MODULES.checkMinimal())}):document.readyState!=="complete"&&document.readyState!=="interactive"||(xs(),window.RS_MODULES.DOM={loaded:!0}),window.RS_MODULES.checkMinimal=function(){if(window.RS_MODULES.minimal==0){var Ue=window.RS_MODULES.minimal==1||window.RS_MODULES.waiting!==_e&&De.fn.revolution!==_e&&window.tpGS!==_e&&window.tpGS.gsap!==_e;if(Ue)for(var bi in window.RS_MODULES.waiting)window.RS_MODULES.waiting.hasOwnProperty(bi)&&typeof window.RS_MODULES.waiting[bi]!="function"&&Ue&&window.RS_MODULES[window.RS_MODULES.waiting[bi]]===_e&&(Ue=!1);Ue&&(window.RS_MODULES.minimal!==!0&&De(document).trigger("REVSLIDER_READY_TO_USE"),window.RS_MODULES.minimal=!0)}else window.RS_MODULES.minimal=!0;window.RS_MODULES.minimal===!0&&window.RS_MODULES.callSliders()},window.RS_MODULES.checkMinimal()})($$2),function($,undefined$1){var version="6.6.0",_R=($$2.fn.revolution=$$2.fn.revolution||{},$$2.fn.revolution),moduleEnterLeaveActions=($$2.extend(!0,_R,{checkActions:function(De,_e){De
193===undefined$1?moduleEnterLeaveActions(_e):checkActions_intern(De,_e)},delayer:function(De,_e,Ae){_R[De].timeStamps=_R[De].timeStamps===undefined$1?{}:_R[De].timeStamps;var ke=new Date().getTime(),Le=_R[De].timeStamps[Ae]===undefined$1?parseInt(_e)+100:ke-_R[De].timeStamps[Ae],Le=parseInt(Le)>_e;return Le&&(_R[De].timeStamps[Ae]=ke),Le},getURLDetails:function(De){(De=De===undefined$1?{}:De).url=De.url===undefined$1?window.location.href:De.url,De.url=De.url.replace("www",""),De.protocol=De.url.indexOf("http://")===0?"http://":De.url.indexOf("https://")===0?"https://":De.url.indexOf("//")===0?"//":"relative";var _e=(_e=De.url.replace("https://","")).replace("http://",""),_e=(_e=(_e=De.protocol==="relative"?_e.replace("//",""):_e).split("#"),De.anchor=(De.anchor===undefined$1||De.anchor==""||De.anchor.length==0)&&1<_e.length?_e[1]:De.anchor===undefined$1?"":De.anchor.replace("#",""),De.anchor=De.anchor.split("?"),De.queries=_e[0].split("?"),De.queries=1<De.queries.length?De.queries[1]:"",De.queries=1<De.queries.length?De.queries[1]:1<De.anchor.length?De.anchor[1]:De.queries,De.anchor=De.anchor[0],(_e=_e[0]).split("/"),_e.split("/"));return De.host=_e[0],_e.splice(0,1),De.path="/"+_e.join("/"),De.path[De.path.length-1]=="/"&&(De.path=De.path.slice(0,-1)),De.origin=De.protocol!=="relative"?De.protocol+De.host:window.location.origin.replace("www","")+window.location.pathname,De.hash=(De.queries!==""&&De.queries!==undefined$1?"?"+De.queries:"")+(De.anchor!==""&&De.anchor!==undefined$1?"#"+De.anchor:""),De},scrollToId:function(De){var _e,Ae;_R.scrollToObj=De,window.isSafari11||(_e=tpGS.gsap.getProperty("html","scrollBehavior"),Ae=tpGS.gsap.getProperty("body","scrollBehavior"),tpGS.gsap.set("html,body",{scrollBehavior:"auto"}),De.scrollBehaviorHtml=_e,De.scrollBehaviorBody=Ae),_R.calcScrollToId()},calcScrollToId:function(){var De,_e,Ae,ke,Le;_R.scrollToObj&&(_e=(De=_R.scrollToObj).tween&&De.tween.progress?De.tween.progress():0,De.tween&&De.tween.kill&&De.tween.kill(),De.startScrollPos!==undefined$1&&De.startScrollPos!==null||(De.startScrollPos=(_R[De.id].modal.useAsModal?_R[De.id].cpar:_R.document).scrollTop()),Ae=De.action==="scrollbelow"?(getOffContH(_R[De.id].fullScreenOffsetContainer)||0)-(parseInt(De.offset,0)||0)||0:0-(parseInt(De.offset,0)||0),ke=0<(ke=De.action==="scrollbelow"?_R[De.id].c:$$2("#"+De.anchor)).length?ke.offset().top:0,Le={_y:_R[De.id].modal.useAsModal?_R[De.id].cpar[0].scrollTop:window.pageYOffset===document.documentElement.scrollTop||window.pageYOffset!==0?window.pageYOffset:document.documentElement.scrollTop},ke+=De.action==="scrollbelow"?_R[De.id].sbtimeline.fixed?_R[De.id].cpar.parent().height()+_R[De.id].fullScreenOffsetResult:$$2(_R[De.id].slides[0]).height():0,De.tween=tpGS.gsap.fromTo(Le,De.speed/1e3,{_y:De.startScrollPos},{_y:ke-Ae,ease:De.ease,onUpdate:function(){(_R[De.id].modal.useAsModal?_R[De.id].cpar:_R.document).scrollTop(Le._y)},onComplete:function(){De.hash!==undefined$1&&history.pushState(null,null,De.hash),window.isSafari11||(tpGS.gsap.set("html",{scrollBehavior:De.scrollBehaviorHtml}),tpGS.gsap.set("body",{scrollBehavior:De.scrollBehaviorBody})),_R.scrollToObj&&(_R.scrollToObj.tween&&(_R.scrollToObj.tween.kill(),_R.scrollToObj.tween=null),_R.scrollToObj.startScrollPos=null,_R.scrollToObj=null)}}),De.tween.progress(_e))}}),function(De){!_R[De].moduleActionsPrepared&&0<_R[De].c[0].getElementsByClassName("rs-on-sh").length&&(_R[De].c.on("tp-mouseenter",function(){_R[De].mouseoncontainer=!0;var _e,Ae=_R[De].pr_next_key!==undefined$1?_R[De].pr_next_key:_R[De].pr_processing_key!==undefined$1?_R[De].pr_processing_key:_R[De].pr_active_key!==undefined$1?_R[De].pr_active_key:_R[De].pr_next_key;if(Ae!=="none"&&Ae!==undefined$1){if((Ae=_R.gA(_R[De].slides[Ae],"key"))!==undefined$1&&_R[De].layers[Ae])for(_e in _R[De].layers[Ae])0<=_R[De].layers[Ae][_e].className.indexOf("rs-on-sh")&&_R.renderLayerAnimation({layer:$$2(_R[De].layers[Ae][_e]),frame:"frame_1",mode:"trigger",id:De});for(_e in _R[De].layers.static)0<=_R[De].layers.static[_e].className.indexOf("rs-on-sh")&&_R.renderLayerAnimation({layer:$$2(_R[De].layers.static[_e]),frame:"frame_1",mode:"trigger",id:De})}}),_R[De].c.on("tp-mouseleft",function(){_R[De].mouseoncontainer=!0;var _e,Ae=_R[De].pr_next_key!==undefined$1?_R[De].pr_next_key:_R[De].pr_processing_key!==undefined$1?_R[De].pr_processing_key:_R[De].pr_active_key!==undefined$1?_R[De].pr_active_key:_R[De].pr_next_key;if(Ae!=="none"&&Ae!==undefined$1){if((Ae=_R.gA(_R[De].slides[Ae],"key"))!==undefined$1&&_R[De].layers[Ae])for(_e in _R[De].layers[Ae])0<=_R[De].layers[Ae][_e].className.indexOf("rs-on-sh")&&_R.renderLayerAnimation({layer:$$2(_R[De].layers[Ae][_e]),frame:"frame_999",mode:"trigger",id:De});for(_e in _R[De].layers.static)0<=_R[De].layers.static[_e].className.indexOf("rs-on-sh")&&_R.renderLayerAnimation({layer:$$2(_R[De].layers.static[_e]),frame:"frame_999",mode:"trigger",id:De})}})),_R[De].moduleActionsPrepared=!0}),checkActions_intern=function(layer,id){var actions=_R.gA(layer[0],"actions"),wrap,_L=(layer[0].tagName=="RS-COLUMN"&&(wrap=_R.closestNode(layer[0],"RS-COLUMN-WRAP"),wrap!==null)&&wrap!==undefined$1&&(_R.sA(wrap,"action",actions),layer=$$2(wrap)),layer.data()),ei,actions=actions.split("||");for(ei in layer.addClass("rs-waction"),_L.events=_L.events===undefined$1?[]:_L.events,actions)if(actions.hasOwnProperty(ei)){var event=getEventParam
193s(actions[ei].split(";")),targetlayer=(_L.events.push(event),event.on==="click"&&layer[0].classList.add("rs-wclickaction"),_R[id].fullscreen_esclistener||event.action!="exitfullscreen"&&event.action!="togglefullscreen"||(_R.document.keyup(function(De){De.keyCode==27&&0<$$2("#rs-go-fullscreen").length&&layer.trigger(event.on)}),_R[id].fullscreen_esclistener=!0),event.layer=="backgroundvideo"?$$2("rs-bgvideo"):event.layer=="firstvideo"?$$2("rs-slide").find(".rs-layer-video"):$$2("#"+event.layer));switch($$2.inArray(event.action,["toggleslider","toggle_mute_video","toggle_global_mute_video","togglefullscreen"])!=-1&&(_L._togglelisteners=!0),event.action){case"togglevideo":$$2.each(targetlayer,function(){updateToggleByList($$2(this),"videotoggledby",layer[0].id)});break;case"togglelayer":$$2.each(targetlayer,function(){updateToggleByList($$2(this),"layertoggledby",layer[0].id),$$2(this).data("triggered_startstatus",event.togglestate)});break;case"toggle_global_mute_video":case"toggle_mute_video":$$2.each(targetlayer,function(){updateToggleByList($$2(this),"videomutetoggledby",layer[0].id)});break;case"toggleslider":_R[id].slidertoggledby==undefined$1&&(_R[id].slidertoggledby=[]),_R[id].slidertoggledby.push(layer[0].id);break;case"togglefullscreen":_R[id].fullscreentoggledby==undefined$1&&(_R[id].fullscreentoggledby=[]),_R[id].fullscreentoggledby.push(layer[0].id)}}_R[id].actionsPrepared=!0,_R[id].actionListenerHook=_R[id].actionListenerHook==undefined$1?{_on:""}:_R[id].actionListenerHook,layer.on("click mouseenter mouseleave "+_R[id].actionListenerHook._on,function(e){for(var i in _L.events)if(_L.events.hasOwnProperty(i)&&_L.events[i].on.includes(e.type)){var event=_L.events[i];if(!(event.repeat!==undefined$1&&0<event.repeat)||_R.delayer(id,1e3*event.repeat,_L.c[0].id+"_"+event.action)){if(event.on==="click"&&layer.hasClass("tp-temporarydisabled"))return!1;(""+event.layer).includes("layer-sta_")&&(_R[id].staticPrefix=_R[id].staticPrefix||Object.keys(_R[id].layers.static)[0],(""+_R[id].staticPrefix).includes("layer-"))&&(event.layer=_R[id].staticPrefix.split("layer-")[0]+"layer-"+event.layer.split("layer-sta_")[1]);var targetlayer=event.layer=="backgroundvideo"?$$2(_R[id].slides[_R[id].pr_active_key]).find("rs-sbg-wrap rs-bgvideo"):event.layer=="firstvideo"?$$2(_R[id].slides[_R[id].pr_active_key]).find(".rs-layer-video").first():$$2("#"+event.layer),tex=0<targetlayer.length;if(_R[id].actionListenerHook._on!=""&&e.type!=="click"&&e.type!=="mouseenter"&&e.type!=="mouseleave"){var keepgoing=!0,cbs;for(cbs in _R[id].actionListenerHook.callBacks){if(keepgoing!==!0)break;_R[id].actionListenerHook.callBacks.hasOwnProperty(cbs)&&typeof _R[id].actionListenerHook.callBacks[cbs]=="function"&&(keepgoing=_R[id].actionListenerHook.callBacks[cbs]({event,layer,targetlayer,L:_L}))}if(!keepgoing)continue}switch(event.action){case"menulink":var linkto=_R.getURLDetails({url:event.url,anchor:event.anchor}),linkfrom=_R.getURLDetails();linkto.host==linkfrom.host&&linkto.path==linkfrom.path&&event.target==="_self"?_R.scrollToId({id,offset:event.offset,action:event.action,anchor:event.anchor,hash:linkto.hash,speed:event.speed,ease:event.ease}):event.target==="_self"?window.location=linkto.url+(linkto.anchor!==undefined$1&&linkto.anchor!==""?"#"+linkto.anchor:""):window.open(linkto.url+(linkto.anchor!==undefined$1&&linkto.anchor!==""?"#"+linkto.anchor:"")),e.preventDefault();break;case"getAccelerationPermission":_R.getAccelerationPermission(id);break;case"nextframe":case"prevframe":case"gotoframe":case"togglelayer":case"toggleframes":case"startlayer":case"stoplayer":if(targetlayer[0]!==undefined$1){var _=_R[id]._L[targetlayer[0].id],frame=event.frame,tou="triggerdelay";if(e.type==="click"&&_.clicked_time_stamp!==undefined$1&&new Date().getTime()-_.clicked_time_stamp<300||e.type==="mouseenter"&&_.mouseentered_time_stamp!==undefined$1&&new Date().getTime()-_.mouseentered_time_stamp<300)return;if(clearTimeout(_.triggerdelayIn),clearTimeout(_.triggerdelayOut),clearTimeout(_.triggerdelay),e.type==="click"&&(_.clicked_time_stamp=new Date().getTime()),e.type==="mouseenter"&&(_.mouseentered_time_stamp=new Date().getTime()),e.type==="mouseleave"&&(_.mouseentered_time_stamp=undefined$1),event.action==="nextframe"||event.action==="prevframe"){_.forda=_.forda===undefined$1?getFordWithAction(_):_.forda;var inx=$$2.inArray(_.currentframe,_.ford);for(event.action==="nextframe"&&inx++,event.action==="prevframe"&&inx--;_.forda[inx]!=="skip"&&0<inx&&inx<_.forda.length-1;)event.action==="nextframe"&&inx++,event.action==="prevframe"&&inx--,inx=Math.min(Math.max(0,inx),_.forda.length-1);frame=_.ford[inx]}0<=$$2.inArray(event.action,["toggleframes","togglelayer","startlayer","stoplayer"])&&(_.triggeredstate=event.action==="startlayer"||event.action==="togglelayer"&&_.currentframe!=="frame_1"||event.action==="toggleframes"&&_.currentframe!==event.frameN,event.action==="togglelayer"&&_.triggeredstate===!0&&_.currentframe!==undefined$1&&_.currentframe!=="frame_999"&&(_.triggeredstate=!1),frame=_.triggeredstate?event.action==="toggleframes"?event.frameN:"frame_1":event.action==="toggleframes"?event.frameM:"frame_999",tou=_.triggeredstate?"triggerdelayIn":"triggerdelayOut",_.triggeredstate?_R.toggleState(_.layertoggledby):(_R.stopVideo&&_R.stopVideo(targetlayer,id),_R.unToggleState(_.layertoggledby)));var pars={layer:targetlayer,frame,mode:"trigger",id};event.children===!0&&(pars.updateChildren=!0,pars.fastforward=!0),_R.renderLayerAnimation&&(clearTimeout(_[tou]),_[tou]=setTimeout(function(De){_R.renderLayerAnimation(De)},1e3*event.delay,pars))}break;case"playvideo":tex&&_R.playVideo(targetlayer,id);break;case"stopvideo":tex&&_R.stopVideo&&_R.stopVideo(targetlayer,id);break;case"togglevideo":tex&&(_R.isVideoPlaying(targetlayer,id)?_R.stopVideo&&_R.stopVideo(targetlayer,id):_R.playVideo(targetlayer,id));break;case"mutevideo":tex&&_R.Mute(targetlayer,id,!0);break;case"unmutevideo":tex&&_R.Mute&&_R.Mute(targetlayer,id,!1);break;case"toggle_mute_video":tex&&(_R.Mute(targetlayer,id)?_R.Mute(targetlayer,id,!1):_R.Mute&&_R.Mute(targetlayer,id,!0));break;case"toggle_global_mute_video":var pvl=_R[id].playingvideos!=undefined$1&&0<_R[id].playingvideos.length;pvl&&(_R[id].globalmute?$$2.each(_R[id].playingvideos,function(De,_e){_R.Mute&&_R.Mute(_e,id,!1)}):$$2.each(_R[id].playingvideos,function(De,_e){_R.Mute&&_R.Mute(_e,id,!0)})),_R[id].globalmute=!_R[id].globalmute;break;default:tpGS.gsap.delayedCall(event.delay,function(targetlayer,id,event,layer){switch(event.action){case"openmodal":_R.openModalAPI(event.modal,event.modalslide===undefined$1?0:event.modalslide,_R[id].ajaxUrl,!0,id,event);break;case"closemodal":_R.revModal(id,{mode:"close"});break;case"callback":eval(event.callback);break;case"simplelink":window.open(event.url,event.target);break;case"simulateclick":0<targetlayer.length&&targetlayer.trigger("click");break;case"toggleclass":0<targetlayer.length&&targetlayer.toggleClass(event.classname);break;case"scrollbelow":case"scrollto":event.action==="scrollbelow"&&layer.addClass("tp-scrollbelowslider"),_R.scrollToId({id,offset:event.offset,action:event.action,anchor:event.id,speed:event.speed,ease:event.ease});break;case"jumptoslide":switch(_R[id].skipAttachDetach=!0,event.slide.toLowerCase()){case"rs-random":var ts=Math.min(Math.max(0,Math.ceil(Math.random()*_R[id].realslideamount)-1));ts=_R[id].activeRSSlide==ts?0<ts?ts-1:ts+1:ts,_R.callingNewSlide(id,_R[id].slides[ts].dataset.key,_R[id].sliderType==="carousel");break;case"+1":case"next":case"rs-next":_R[id].sc_indicator="arrow",_R[id].sc_indicator_dir=0,_R.callingNewSlide(id,1,_R[id].sliderType==="carousel");break;case"rs-previous":case"rs-prev":case"previous":case"prev":case"-1":_R[id].sc_indicator="arrow",_R[id].sc_indicator_dir=1,_R.callingNewSlide(id,-1,_R[id].sliderType==="carousel");break;case"first":case"rs-first":_R[id].sc_indicator="arrow",_R[id].sc_indicator_dir=1,_R.callingNewSlide(id,0,_R[id].sliderType==="carousel");break;case"last":case"rs-last":_R[id].sc_indicator="arrow",_R[id].sc_indicator_dir=0,_R.callingNewSlide(id,_R[id].slideamount-1,_R[id].sliderType==="carousel");break;default:var ts=_R.isNumeric(event.slide)?parseInt(event.slide,0):event.slide;_R.callingNewSlide(id,ts,_R[id].sliderType==="carousel")}break;case"toggleslider":_R[id].noloopanymore=0,_R[id].sliderstatus=="playing"?(_R[id].c.revpause(),_R[id].forcepaused=!0,_R.unToggleState(_R[id].slidertoggledby)):(_R[id].forcepaused=!1,_R[id].c.revresume(),_R.toggleState(_R[id].slidertoggledby));break;case"pauseslider":_R[id].c.revpause(),_R.unToggleState(_R[id].slidertoggledby);break;case"playslider":_R[id].noloopanymore=0,_R[id].c.revresume(),_R.toggleState(_R[id].slidertoggledby);break;case"gofullscreen":case"exitfullscreen":case"togglefullscreen":var gf;tpGS.gsap.set(_R[id].parallax.bgcontainers,{y:0}),0<$$2(".rs-go-fullscreen").length&&(event.action=="togglefullscreen"||event.action=="exitfullscreen")?($$2(".rs-go-fullscreen").removeClass("rs-go-fullscreen"),gf=0<_R[id].c.closest("rs-fullwidth-wrap").length?_R[id].c.closest("rs-fullwidth-wrap"):_R[id].c.closest("rs-module-wrap"),_R[id].minHeight=_R[id].oldminheight,_R[id].infullscreenmode=!1,_R[id].c.revredraw(),_R[id].c.revredraw(),$$2(window).trigger("resize"),_R.unToggleState(_R[id].fullscreentoggledby)):$$2(".rs-go-fullscreen").length!=0||event.action!="togglefullscreen"&&event.action!="gofullscreen"||(gf=0<_R[id].c.closest("rs-fullwidth-wrap").length?_R[id].c.closest("rs-fullwidth-wrap"):_R[id].c.closest("rs-module-wrap"),gf.addClass("rs-go-fullscreen"),_R[id].oldminheight=_R[id].minHeight,_R[id].minHeight=_R.getWinH(id),_R[id].infullscreenmode=!0,$$2(window).trigger("resize"),_R.toggleState(_R[id].fullscreentoggledby),_R[id].c.revredraw());break;default:_R[id].c.trigger("layeraction",[event.action,layer,event])}},[targetlayer,id,event,layer])}}}})};function getFordWithAction(De){var _e,Ae=[];for(_e in De.ford)De.frames[De.ford[_e]].timeline.waitoncall?Ae.push(De.ford[_e]):Ae.push("skip");return Ae}function updateToggleByList(De,_e,Ae){var ke=De.data(_e);
193(ke=ke===undefined$1?[]:ke).push(Ae),De.data(_e,ke)}function getEventParams(De){var _e,Ae={on:"click",delay:0,ease:"power2.out",speed:400};for(_e in De)if(De.hasOwnProperty(_e)){var ke=De[_e].split(":");switch(2<ke.length&&ke[0]==="call"&&(ke[1]=ke.join(":").replace(ke[0]+":","")),ke[0]){case"modal":Ae.modal=ke[1];break;case"ms":Ae.modalslide=ke[1];break;case"m":Ae.frameM=ke[1];break;case"n":Ae.frameN=ke[1];break;case"o":Ae.on=ke[1]==="click"||ke[1]==="c"?"click":ke[1]==="ml"||ke[1]==="mouseleave"?"mouseleave":ke[1]==="mouseenter"||ke[1]==="me"?"mouseenter":ke[1];break;case"d":Ae.delay=parseInt(ke[1],0)/1e3,Ae.delay=Ae.delay==="NaN"||isNaN(Ae.delay)?0:Ae.delay;break;case"rd":Ae.repeat=parseInt(ke[1],0)/1e3,Ae.repeat=Ae.repeat==="NaN"||isNaN(Ae.repeat)?0:Ae.repeat;break;case"a":Ae.action=ke[1];break;case"f":Ae.frame=ke[1];break;case"slide":Ae.slide=ke[1];break;case"layer":Ae.layer=ke[1];break;case"sp":Ae.speed=parseInt(ke[1],0);break;case"e":Ae.ease=ke[1];break;case"ls":Ae.togglestate=ke[1];break;case"offset":Ae.offset=ke[1];break;case"call":Ae.callback=ke[1];break;case"url":Ae.url="";for(var Le=1;Le<ke.length;Le++)Ae.url+=ke[Le]+(Le===ke.length-1?"":":");break;case"target":Ae.target=ke[1];break;case"class":Ae.classname=ke[1];break;case"ch":Ae.children=ke[1]=="true"||ke[1]==1||ke[1]=="t";break;default:0<ke[0].length&&ke[0]!==""&&(Ae[ke[0]]=ke[1])}}return Ae}var getOffContH=function(De){var _e,Ae;return De==undefined$1?0:1<De.split(",").length?(_e=De.split(","),Ae=0,_e&&$$2.each(_e,function(ke,Le){0<$$2(Le).length&&(Ae+=$$2(Le).outerHeight(!0))}),Ae):$$2(De).height()};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.actions={loaded:!0,version},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(),function(){$$2.fn.revolution=$$2.fn.revolution||{};var De=$$2.fn.revolution,_e=($$2.extend(!0,De,{prepareCarousel:function(Fe,Ve,Ie,je){var Ke;Fe===void 0||((Ke=De[Fe].carousel).slidesWithRowAdjustions={},Ve=Ke.lastdirection=Le(Ve,Ke.lastdirection),De.setCarouselDefaults(Fe,void 0,je),De.organiseCarousel(Fe,"right",!0,!1,!1),Ke.swipeTo!==void 0&&De.isNumeric(Ke.swipeTo)?Ie!==void 0?De.swipeAnimate({id:Fe,to:Ke.swipeTo,distance:Ke.swipeToDistance,direction:Ve,fix:!0,speed:Ie}):De.swipeAnimate({id:Fe,to:Ke.swipeTo,distance:Ke.swipeToDistance,direction:Ve,fix:!0}):De.swipeAnimate({id:Fe,to:0,direction:Ve,speed:0}),De[Fe].sliderType!=="carousel")||Ke.fadein||(tpGS.gsap.to(De[Fe].canvas,1,{scale:1,opacity:1}),Ke.fadein=!0)},setupCarousel:function(Fe){var Ve=De[Fe].carousel;Ve.orientation=="v"?(Ve.length="height",Ve.translate="y",Ve.slide_dims="slide_heights",Ve.deltaT="deltaY",Ve.sliderLength="sliderHeight",Ve.slide_length="slide_height",Ve.wraplength="wrapheight",Ve.align=Ve.vertical_align==="0%"?"start":Ve.vertical_align==="50%"?"center":"end",!Ve.snap||Ve.justify||Ve.infinity||(Ve.forceBAlign=!0)):(Ve.length="width",Ve.translate="x",Ve.slide_dims="slide_widths",Ve.deltaT="deltaX",Ve.sliderLength="sliderWidth",Ve.slide_length="slide_width",Ve.wraplength="wrapwidth",Ve.align=Ve.horizontal_align==="left"?"start":Ve.horizontal_align==="center"?"center":"end"),Ve[Ve.sliderLength]=De[Fe].canv[Ve.length],Ve.proxy=document.createElement("div"),Ve.follower=document.createElement("div"),Ve.slideamount=De[Fe].slideamount,Ve.infinity||Ve.snap||(De[Fe].carousel.align="start"),ke(Fe),Ae(Fe,Ve.align),Ve.inited=!0,Ve.lerpHandler=De.carLerpHandler.bind(this,Fe),Ve.animInList===void 0&&(Ve.animInList=[]),Ve.draggableObj={trigger:De[Fe].c[0],type:Ve.translate,edgeResistance:.5,zIndexBoost:!1,cursor:"grab",activeCursor:"grabbing",allowContextMenu:!0,inertia:!0,throwResistance:Ve.snap?8e3:500,onPress:function(Ie){De.closestClass(Ie.target,"rs-nav-element")?(Ve.draggable.endDrag(),Ve.draggable.disable()):De[Fe].c.trigger("stoptimer"),Ve.focusedOnPress=Ve.focused,Ve.isPressed=!0,Ve.fromWheel=!1,Ve.cX=Ve.lerpX=this.pointerX,Ve.cY=Ve.lerpY=this.pointerY,Ve.tween&&Ve.tween.kill&&(Ve.tween.kill(),delete Ve.tween)},onClick:function(Ie){Ve.isPressed=!1,De.closestClass(Ie.target,"rs-nav-element")||De.closestClass(Ie.target,"rs-waction")||Ve.draggable.enabled()&&De[Fe].carousel.stopOnClick===!1&&De[Fe].c.trigger("starttimer")},onDragStart:function(){Ve.lerpSpeed=.1,Ve.lerp||(Ve.lerp=requestAnimationFrame(Ve.lerpHandler)),De.ISM&&Ve.forceBAlign&&(this.getDirection()==="up"&&Ve.focused==Ve.slideamount-1||this.getDirection()==="down"&&Ve.focused==0?Ve.forceScroll=!0:Ve.forceScroll=!1)},onDrag:function(){Ve.cX=this.pointerX,Ve.cY=this.pointerY},snap:function(Ie){var je;return De.getLastPos(Fe),Ve.isPressed=!1,Ve.forceScroll&&Ve.forceBAlign?(je=this.getDirection()==="up"?De[Fe].cpar.offset().top+De[Fe].module.height:De.document.scrollTop()-(window.innerHeight-De[Fe].cpar[0].getBoundingClientRect().top),De[Fe].modal.useAsModal||tpGS.gsap.to([window,"body"],{scrollTo:je}),Ve.focused!=Ve.slideamount-1||Ve.infinity?Ve.lastPos:Ve[Ve.wraplength]-Ve.totalWidth):(De.calculateSnap(Fe,Ie),Ie)}},Ve.draggable=tpGS.draggable.create(Ve.proxy,Ve.draggableObj)[0],De[Fe].c.one("revolution.slide.onchange",function(){_e(Fe)})},positionCarousel:function(Fe){var Ve=De[Fe].carousel;if(Ve[Ve.sliderLength]=De[Fe].canv[Ve.length],Ve.draggable&&!Ve.draggable.isPressed){for(var Ie=0,je=0;je<Ve.slideamount;je++)Ve.arr[je].elem===De[Fe].slides[Ve.closest]&&(Ie=Ve.arr[je].prog);if(Number.isNaN(Ie)&&(Ie=0),ke(Fe),De.ISM&&De[Fe].navigation.touch.mobileCarousel||De.ISM!==!0&&De[Fe].navigation.touch.desktopCarou
193sel?(Ve.draggable.vars.cursor="grab",Ve.draggable.enable()):(Ve.draggable.vars.cursor="pointer",Ve.draggable.disable()),De[Fe].carousel.justify)for(je=Ve.wrapperWidth=0;je<De[Fe].carousel[Ve.slide_dims].length;je++)Ve.wrapperWidth+=De[Fe].carousel[Ve.slide_dims][je];else Ve.wrapperWidth=Ve.slide_width*De[Fe].slides.length;for(Ve.focused===void 0&&(Ve.focused=0),Ve.activeSlide=Ve.oldfocused=Ve.focused===void 0||Ve.closest===void 0?0:Ve.closest,je=0;je<Ve.arr.length;je++)De.updateSlideWidth(Fe,je);var Ke,$e,qe,ci=0,gi=(Ve.lastWrapwidth=Ve.wrapwidth,Ve.lastWrapheight=Ve.wrapheight,$e=Ke=De[Fe].carousel.align==="start"?0:De[Fe].carousel.align==="center"?(Ve[Ve.wraplength]-Ve.arr[Ve.activeSlide][Ve.length])/2:Ve[Ve.wraplength]-Ve.arr[Ve.activeSlide][Ve.length],Ve.infinity||Ve.orientation!=="v"||Ve.activeSlide!=Ve.slideamount-1||(Ke=Ve[Ve.wraplength]-Ve.arr[Ve.activeSlide][Ve.length]),tpGS.gsap.set([Ve.proxy,Ve.follower],{x:Ke,y:Ke}),Ve.arr[0][Ve.length]*Ie);if(Ve.infinity){for(je=Ve.activeSlide;je<Ve.arr.length;je++)je!==Ve.activeSlide&&(ci+=Ve.space),Ve.orientation==="h"?tpGS.gsap.set(Ve.arr[je].elem,{x:ci+Ke+gi}):tpGS.gsap.set(Ve.arr[je].elem,{y:ci+Ke+gi}),Ve.arr[je].posX=ci+Ke+gi,Ve.arr[je][Ve.translate]=ci+Ke+gi,ci+=Ve.arr[je][Ve.length];for(var Ai=Ke+gi,je=Ve.activeSlide-1;0<=je;je--)Ai-=Ve.arr[je][Ve.length]+Ve.space,Ve.arr[je].posX=Ai+gi,Ve.arr[je][Ve.translate]=Ai,Ve.orientation==="h"?tpGS.gsap.set(Ve.arr[je].elem,{x:Ai}):tpGS.gsap.set(Ve.arr[je].elem,{y:Ai}),ci+=Ve.arr[je][Ve.length]+Ve.space}else{for(var oi=0,je=0;je<Ve.arr.length;je++)0<je&&(ci+=Ve.space),je==Ve.activeSlide&&(oi+=ci),Ve.arr[je].posX=ci+Ke+gi,Ve.arr[je][Ve.translate]=ci+Ke+gi,Ve.orientation==="h"?tpGS.gsap.set(Ve.arr[je].elem,{x:ci+Ke+gi}):tpGS.gsap.set(Ve.arr[je].elem,{y:ci+Ke+gi}),ci+=Ve.arr[je][Ve.length];for(tpGS.gsap.set([Ve.proxy,Ve.follower],{x:Ke-oi,y:Ke-oi}),Ve.orientation==="h"?tpGS.gsap.set([De[Fe].slides],{x:"-="+oi}):tpGS.gsap.set([De[Fe].slides],{y:"-="+oi}),je=0;je<Ve.arr.length;je++)Ve.arr[je].posX-=oi,Ve.arr[je][Ve.translate]-=oi}for(Ve.startOffset=$e,De.swapCarouselSlides(Fe,!0),Ve.infinity?Ve.draggable.applyBounds({minX:-1/0,maxX:1/0}):!Ve.infinity&&Ve.snap?Ve.draggable.applyBounds({minX:-(Ve.startOffset+ci),maxX:Ve.startOffset}):Ve.infinity||Ve.snap||Ve.draggable.applyBounds({minX:Ve.wrapwidth-ci,maxX:0}),Ve.lastActiveSlide=Ve.activeSlide,Ve.totalWidth=ci,Ve.lastTotalWidth=ci,Ve.spin!=="off"&&($e=Ve[Ve.slide_length]/2,Ve.spinAngle=Math.max(Math.min(Ve.spinAngle,360/Ve.arr.length),-360/Ve.arr.length),qe=$e/Math.sin(Ve.spinAngle/2*Math.PI/180),Ve.spinR=(Math.sqrt(qe*qe-$e*$e)+Ve.space)*Math.sign(Ve.spinAngle),Ve.spin==="2d"&&Ve.orientation==="h"?Ve.spinR+=(Ve.spinAngle<=0?0:1)*(De[Fe].sliderLayout==="fullscreen"?Ve.wrapheight:Ve.slide_height):Ve.spin==="2d"&&(Ve.spinR+=(Ve.spinAngle<=0?0:1)*(De[Fe].sliderLayout==="fullscreen"?Ve.wrapwidth:Ve.slide_width))),je=0;je<Ve.trackArr.length;je++)for(var ii=0;ii<Ve.arr.length;ii++)Ve.trackArr[je].elem===Ve.arr[ii].elem&&(Ve.trackArr[je].width=Ve.arr[ii].width,Ve.trackArr[je].height=Ve.arr[ii].height);De.swapCarouselSlides(Fe,!0),De.applyDistanceEffect(Fe),De.swipeAnimate({id:Fe,from:"none"})}},updateSlideWidth:function(Fe,Ve){var Ie=De[Fe].carousel;if(Ie.justify)for(var je=0;je<De[Fe].slides.length;je++)De[Fe].slides[je]===Ie.arr[Ve].elem&&(Ie.arr[Ve][Ie.length]=Ie[Ie.slide_dims][je]);else Ie.arr[Ve][Ie.length]=Ie[Ie.slide_length]},swapCarouselSlides:function(Fe){var Ve,Ie=De[Fe].carousel,je=!0;if(Ie.infinity&&!(Ie.totalWidth<Ie[Ie.wraplength]))for(;je;){var Ke,$e,qe=0<parseFloat(Ie.arr[0][Ie.translate])||Ie.arr[0].progress!==void 0&&Ie.arr[0].progress<=Ie.maxVisibleItems/2&&!(Ie.arr[Ie.arr.length-1].progress<=Ie.maxVisibleItems/2)&&parseFloat(Ie.arr[Ie.arr.length-1][Ie.translate])>=Ie[Ie.wraplength],ci=parseFloat(Ie.arr[Ie.arr.length-1][Ie.translate])<Ie[Ie.wraplength]-Ie.arr[Ie.arr.length-1][Ie.length]||Ie.arr[Ie.arr.length-1].progress!==void 0&&Ie.arr[Ie.arr.length-1].progress<=Ie.maxVisibleItems/2&&!(Ie.arr[0].progress<=Ie.maxVisibleItems/2)&&parseFloat(Ie.arr[0][Ie.translate])+Ie.arr[0][Ie.length]<=0;qe?(Ke=parseFloat(Ie.arr[0][Ie.translate])-Ie.space,$e=Ie.arr.pop(),Ie.arr.unshift($e),Ve===$e&&(je=!1),Ve=$e,Ie.arr[0].posX=Ie.arr[0][Ie.translate]=Ke-Ie.arr[0][Ie.length],De.getCarActiveSlide(Fe)):ci?(Ke=parseFloat(Ie.arr[Ie.arr.length-1][Ie.translate])+Ie.space,$e=Ie.arr.shift(),Ie.arr.push($e),Ve===$e&&(je=!1),Ve=$e,Ie.arr[Ie.arr.length-1].posX=Ie.arr[Ie.arr.length-1][Ie.translate]=Ke+Ie.arr[Ie.arr.length-2][Ie.length],De.getCarActiveSlide(Fe)):je=!1}},onThrowComplete:function(Fe){for(var Ve=De[Fe].carousel,Ie=(De[Fe].sliderType!=="carousel"||Ve.fadein||(tpGS.gsap.to(De[Fe].canvas,1,{scale:1,op
193acity:1}),Ve.fadein=!0),De.getCarActiveSlide(Fe,!0),Ve.arr[Ve.activeSlide]),je=0;je<De[Fe].slides.length;je++){if(De[Fe].slides[je]===Ie.elem){if(Ve.focused=parseFloat(je),De[Fe].pr_next_key=Ve.focused,Ve.animInList.includes(Ve.oldfocused.toString())||Ve.animInList.push(Ve.oldfocused.toString()),Ve.showLayersAllTime!=="all")for(;1<=Ve.animInList.length;){var Ke=Ve.animInList.pop();Ve.focused!=Ke&&De.removeTheLayers($$2(De[Fe].slides[Ke]),Fe)}for(var $e in De.callingNewSlide(Fe,De[Fe].slides[je].getAttribute("data-key"),!0,!0),De[Fe].c.trigger("revolution.nextslide.waiting"),_e(Fe),Ve.focused!=Ve.oldfocused&&Ve.showLayersAllTime!=="all"&&(Ve.animInList.includes(Ve.focused.toString())||Ve.animInList.push(Ve.focused.toString()),De.animateTheLayers({slide:Ve.focused,id:Fe,mode:"start"}),De.animateTheLayers({slide:"individual",id:Fe,mode:De[Fe].carousel.allLayersStarted?"rebuild":"start"})),De[Fe].sbgs)De[Fe].sbgs.hasOwnProperty($e)&&De[Fe].sbgs[$e].bgvid!==void 0&&De[Fe].sbgs[$e].bgvid.length!==0&&(""+De[Fe].sbgs[$e].skeyindex==""+Ve.focused?De.playBGVideo(Fe,De.gA(De[Fe].pr_next_slide[0],"key")):De.stopBGVideo(Fe,De[Fe].sbgs[$e].key));Ve.oldfocused=Ve.focused}for(var qe=De[Fe].slides[je].querySelectorAll(".rs-on-car"),ci=0;ci<qe.length;ci++)De[Fe].slides[je]!==Ie.elem&&qe[ci].classList.contains("rs-layer-video")&&De[Fe].videos[qe[ci].id].pauseOnSlideChange&&De.stopVideo($$2(qe[ci]),Fe)}Ve.draggable[Ve.deltaT]=0,De[Fe].c.trigger("restarttimer")},calculateSnap:function(Fe,Ve){var Ie,je,Ke=De[Fe].carousel,$e=(tpGS.gsap.killTweensOf(Ke.proxy,Ke.translate),Ke.orientation==="v"?Ve-Ke.draggable.endY:Ve-Ke.draggable.endX),qe=(Math.abs($e)<3&&($e=0),!0),ci=Ke.orientation==="v"?Math.abs(Ke.draggable.endY-Ke.draggable.startY):Math.abs(Ke.draggable.endX-Ke.draggable.startX);Ke.focusedPreSnap=Ke.focused,Ke.snap?(Ie=Ke.direction=0<=Ke.draggable[Ke.deltaT]?"right":"left",$e=(Ie=De.getNextSlide(Fe,$e,Ie,!0,ci<300)).delta,qe=Ie.overshoot,Ke.target=Ie.target):Ke.target=Ve,(Ke.infinity||Ke.snap)&&(Ke.infinity||Ke.orientation!=="v")||(Ke.target<=Ke[Ke.wraplength]-Ke.totalWidth?Ke.target=Ke[Ke.wraplength]-Ke.totalWidth:0<=Ke.target&&!Ke.snap&&(Ke.target=0)),Ke.swiped=!0,Ke.overshoot&&qe?(tpGS.gsap.to(Ke,{duration:Ke.snap?.3:.5,lerpSpeed:.8}),qe=Math.min(Ke.draggable[Ke.deltaT]===0?Math.abs($e)/20:Math.abs(Ke.draggable[Ke.deltaT])/2,Ke[Ke.wraplength]/4)*Math.sign($e),je=Math.abs(qe/100),Ke.time=Math.min(Math.max(je/10,Ke.speed/1e3*.6),Ke.speed/1e3),Ke.tween=tpGS.gsap.timeline({onComplete:function(){De.snapCompleted(Fe)}}),Ke.tween.to(Ke.proxy,{x:Ke.target+qe,y:Ke.target+qe,duration:Ke.time,ease:"power2.out"}).to(Ke.proxy,{x:Ke.target,y:Ke.target,duration:Math.min(2*Ke.time,.6),ease:Ke.easing.replace(".inOut",".out").replace(".in",".out")},"overshoot").to(Ke,{duration:Math.min(2*Ke.time,.6),lerpSpeed:1},"overshoot")):(je=Math.abs($e/100),Ke.time=Math.min(Math.max(je/10,Ke.speed/1e3*.6),Ke.speed/1e3),Ke.tween=tpGS.gsap.to(Ke.proxy,{x:Ke.target,y:Ke.target,duration:Ke.time,ease:Ke.easing.replace(".inOut",".out").replace(".in",".out"),onComplete:function(){De.snapCompleted(Fe)}}),tpGS.gsap.to(Ke,{duration:Ke.time,lerpSpeed:1}))},carLerpHandler:function(Fe,Ke){var Ie=De[Fe].carousel,Ke=(Ke!=="skip"&&(Ie.lerp=requestAnimationFrame(Ie.lerpHandler)),parseFloat(Ie.proxy._gsap[Ie.translate])),je=parseFloat(Ie.follower._gsap[Ie.translate]),Ke=je+(Ke-je)*Ie.lerpSpeed-je;De[Fe].parallax.type=="mousedrag"&&(Ie.delta=Ke,Ie.lerpX=Ie.lerpX+(Ie.cX-Ie.lerpX)*Ie.lerpSpeed,Ie.lerpY=Ie.lerpY+(Ie.cY-Ie.lerpY)*Ie.lerpSpeed,De[Fe].parallax.frame=window.requestAnimationFrame(De[Fe].parallax.parallaxHandler)),tpGS.gsap.set(De[Fe].canvas,{skewX:Ie.skewX*Math.max(-1,Math.min(1,Ke/100)),skewY:Ie.skewY*Math.max(-1,Math.min(1,Ke/100))}),Ie.orientation==="h"?(tpGS.gsap.set(Ie.follower,{x:"+="+Ke}),tpGS.gsap.set(Ie.arr,{x:"+="+Ke})):(tpGS.gsap.set(Ie.follower,{y:"+="+Ke}),tpGS.gsap.set(Ie.arr,{y:"+="+Ke})),De.swapCarouselSlides(Fe),De.applyDistanceEffect(Fe)},snapCompleted:function(Fe){var Ve=De[Fe].carousel;Ve.lerp=cancelAnimationFrame(Ve.lerp),Ve.scrollFrame=cancelAnimationFrame(Ve.scrollFrame),Ve.swiped=!1,tpGS.gsap.set(Ve.follower,{x:Ve.proxy._gsap[Ve.translate],y:Ve.proxy._gsap[Ve.translate]}),De.onThrowComplete(Fe)},applyDistanceEffect:function(Fe){var Ve,Ie=De[Fe].carousel,je=1/0,Ke=0,$e=0,qe=(Ie.lastSlideProgress===void 0&&(Ie.lastSlideProgress=1),Ie.startOffset);
193for(Ve in Ie.startOffsetCache=Ie.startOffset,Ie.tempAlign===void 0&&(Ie.tempAlign=Ie.align),Ie.orientation!=="v"||Ie.infinity||Ie.justify||(qe=Ie.startOffset+(Ie[Ie.wraplength]-Ie[Ie.slide_length]-Ie.startOffset)*(1-Ie.lastSlideProgress)),Ie.arr){var hi=parseFloat(Ie.arr[Ve][Ie.translate])-qe;if(Ie.infinity&&(hi%=Ie.totalWidth),Math.abs(hi)<je){for(var ci=0;ci<De[Fe].slides.length;ci++)De[Fe].slides[ci]===Ie.arr[Ve].elem&&($e=ci,Ie.closestArr=Ve);je=Math.abs(hi)}Ie.arr[Ve].loaded&&Ke++,Ie.infinity||Ie.snap||(Ie.activeSlide===0?hi=parseFloat(Ie.arr[Ve][Ie.translate]):Ie.activeSlide===Ie.arr.length-1&&(hi=parseFloat(Ie.arr[Ve][Ie.translate])-(Ie[Ie.wraplength]-Ie.arr[Ve][Ie.length])));var gi=Math.sign(hi),Ai=Ie.arr[Ve].progress=Math.abs(hi)/(Ie[Ie.slide_length]+Ie.space);if(Ie.arr[Ve].prog=hi/(Ie[Ie.slide_length]+Ie.space),!Ie.justify&&De[Fe].parallax.type==="mousedrag")for(ci=0;ci<De[Fe].slides.length;ci++)De[Fe].slides[ci]===Ie.arr[Ve].elem&&(Ie.trackArr[ci].progress=Ai);Ie.orientation!=="v"||Ie.infinity||Ve!=Ie.slideamount-1||(Ai<=(Ie.direction==="left"?.9:.1)&&!Ie.vertAlignBottom?(tpGS.gsap.to(Ie,{lastSlideProgress:0,duration:.2}),Ie.vertAlignDefault=!1,Ie.vertAlignBottom=!0,Ie.tempAlign="end",Ae(Fe,"end")):Ai>(Ie.direction==="left"?.9:.1)&&!Ie.vertAlignDefault&&(tpGS.gsap.to(Ie,{lastSlideProgress:1,duration:.2}),Ie.vertAlignDefault=!0,Ie.vertAlignBottom=!1,Ie.tempAlign=Ie.align,Ae(Fe,Ie.align))),Ie.arr[Ve].sign=gi;var oi,ii,hi=Ie.arr[Ve].progress/Math.ceil(Ie.pDiv)*(Ie.tempAlign==="center"?1:Ie.tempAlign==="start"?gi:-gi),Ei=+Math.min(Ie.arr[Ve].progress,1),Li=100-5*Math.round(Ie.arr[Ve].progress),Di={};Ie.justify||Ie.spin==="off"?Ie.minScale===0||Ie.justify?Di[Ie.translate]=Ie.arr[Ve][Ie.translate]:(oi=1-(Ie.vary_scale?hi:Ei)*(1-Ie.minScale),ii=Ie.offsetScale?Ie.arr[Ve].sign*(Ie[Ie.slide_length]+Ie.space-(Ie[Ie.slide_length]+Ie.space)*oi)/2*Ie.arr[Ve].progress:Ie.arr[Ve].sign*(Ie[Ie.slide_length]-Ie[Ie.slide_length]*oi)/2*Ie.arr[Ve].progress,Di[Ie.translate]=Ie.arr[Ve][Ie.translate]-ii,window.isSafari11&&(Di.z=-150*(1-oi)),Di.scale=oi):(Di[Ie.translate]=qe,Ie.spin==="2d"?(Di.rotation=Ie.spinAngle*Ai*(Ie.orientation==="h"?gi:-gi),Ie.orientation==="h"?Di.transformOrigin="center "+Ie.spinR+"px 0":Di.transformOrigin=Ie.spinR+"px center 0"):(Ie.orientation==="h"?Di.rotationY=Ie.spinAngle*Ie.arr[Ve].progress*-gi:Di.rotationX=Ie.spinAngle*Ie.arr[Ve].progress*gi,Di.transformOrigin="center center "+Ie.spinR+"px")),Di.opacity=1,Ie.justify||(Ie.maxRotation!==0&&(Di.rotationY=Ie.maxRotation*(Ie.vary_rotation?hi:Ei)*-gi),Di.opacity=1+(Ie.maxOpacity-1)*(Ie.vary_fade?hi:Ei),hi>Ie.edgeRatio?Di.opacity=Ie.oRange(hi):hi<0?Di.opacity=Ie.oRangeMin(hi):Ie.maxOpacity===1&&(Di.opacity=1)),Di.zIndex=Li,0<Di.opacity?(Ie.arr[Ve].elem.style.visibility!=="visible"&&(Di.visibility="visible"),tpGS.gsap.set(Ie.arr[Ve].elem,Di)):(Ie.arr[Ve].elem.style.visibility!=="hidden"&&(Di.visibility="hidden"),tpGS.gsap.set(Ie.arr[Ve].elem,{visibility:Di.visibility,opacity:Di.opacity}))}if($e!==Ie.closest){if(Ie.closest=$e,Ke!==Ie.arr.length&&De.loadVisibleCarouselItems(Fe,!0,Ie.closest),Ie.draggable.isPressed){if(Ie.focused=Ie.closest,De[Fe].pr_next_key=Ie.focused,Ie.oldfocused=Ie.oldfocused===void 0?0:Ie.oldfocused,De[Fe].carousel.allLayersStarted?De.updateCarouselRows(Fe):De.carouselRowAdjustment(Ie,Fe,Ie.focused),Ie.showLayersAllTime!=="all")for(Ie.animInList.includes(Ie.oldfocused.toString())||Ie.animInList.push(Ie.oldfocused.toString());1<=Ie.animInList.length;){var zi=Ie.animInList.pop();Ie.focused!=zi&&De.removeTheLayers($$2(De[Fe].slides[zi]),Fe)}Ie.focused!=Ie.oldfocused&&(Ie.showLayersAllTime!=="all"&&(Ie.animInList.includes(Ie.focused.toString())||Ie.animInList.push(Ie.focused.toString()),De.animateTheLayers({slide:Ie.focused,id:Fe,mode:"start"}),De.animateTheLayers({slide:"individual",id:Fe,mode:De[Fe].carousel.allLayersStarted?"rebuild":"start"})),_e(Fe,!0),Ie.oldfocused=Ie.focused),De[Fe].c.trigger("revolution.nextslide.waiting")}for(var an in De[Fe].sbgs)De[Fe].sbgs.hasOwnProperty(an)&&De[Fe].sbgs[an].bgvid!==void 0&&De[Fe].sbgs[an].bgvid.length!==0&&""+De[Fe].sbgs[an].skeyindex!=""+Ie.focused&&De.stopBGVideo(Fe,De[Fe].sbgs[an].key)}},getCarActiveSlide:function(Fe){var Ve,Ie,je,Ke=De[Fe].carousel,$e=999999,qe=0;for(Ie in Ke.arr)Ke.arr.hasOwnProperty(Ie)&&(je=De[Fe].carousel.align==="center"?Math.abs(parseFloat(Ke.arr[Ie][Ke.translate])-(Ke[Ke.wraplength]-Ke.arr[Ie][Ke.length])/2):De[Fe].carousel.align==="start"?Math.abs(parseFloat(Ke.arr[Ie][Ke.translate])):Math.abs(parseFloat(Ke.arr[Ie][Ke.translate])-(Ke[Ke.wraplength]-Ke.arr[Ie][Ke.length])),(je=Ke.vertAlignBottom?Math.abs(parseFloat(Ke.arr[Ie][Ke.translate])-(Ke[Ke.wraplength]-Ke.arr[Ie][Ke.length])):je)<$e)&&(Ve=Ke.arr[Ie],$e=je,qe=Ie);return qe=parseInt(qe),Ke.activeSlide=qe,Ve},loadVisibleCarouselItems:function(Fe,Ve,Ie){var je=De[Fe].carousel,Ke=[],$e=Ie?je.closest:je.focused;
193je.focused=parseInt($e,0),je.focused=De.isNumeric($e)?$e:0;for(var qe=0;qe<Math.ceil(De[Fe].carousel.maxVisibleItems/2);qe++){var ci=De[Fe].carousel.align==="end"?$e-qe:$e+qe,gi=De[Fe].carousel.align==="center"?$e-qe:De[Fe].carousel.align==="start"?De[Fe].carousel.maxVisibleItems+ci-1:ci-De[Fe].carousel.maxVisibleItems+1,ci=ci>=De[Fe].slideamount?ci-De[Fe].slideamount+0:ci,gi=gi>=De[Fe].slideamount?gi-De[Fe].slideamount+0:gi;if(ci=ci<0?De[Fe].slideamount+ci:ci,gi=gi<0?De[Fe].slideamount+gi:gi,Ke.push(De[Fe].slides[ci]),ci!==gi&&Ke.push(De[Fe].slides[gi]),je.arr)for(var Ai=0;Ai<je.arr.length;Ai++)De[Fe].slides[ci]===je.arr[Ai].elem&&(je.arr[Ai].loaded=!0),De[Fe].slides[gi]===je.arr[Ai].elem&&(je.arr[Ai].loaded=!0)}return Ve&&(De.loadImages(Ke,Fe,1),De.waitForCurrentImages(Ke,Fe)),Ke},organiseCarousel:function(Fe,Ve,Ie,je,Ke){var $e=De[Fe].carousel;if(De[Fe].slides)for(var qe=0;qe<De[Fe].slides.length;qe++){var ci={width:$e.justify===!0?$e.slide_widths[qe]:$e.slide_width};$e.spin==="off"&&(ci.transformOrigin="50% "+($e.orientation==="h"?$e.vertical_align:"center")),ci.force3D=!0,ci.transformStyle=De[Fe].parallax.type!="3D"&&De[Fe].parallax.type!="3d"?"flat":"preserve-3d",Ke!==!0&&tpGS.gsap.set(De[Fe].slides[qe],ci)}},updateCarouselRows:function(Fe){if(De[Fe].sliderType==="carousel")for(var Ve=0;Ve<De[Fe].slideamount;Ve++)De.carouselRowAdjustment(De[Fe].carousel,Fe,Ve)},carouselRowAdjustment:function(Fe,Ve,Ie){Fe.slidesWithRowAdjustions!==void 0&&Fe.slidesWithRowAdjustions[Ie]===void 0&&(Fe.slidesWithRowAdjustions[Ie]=!0,De.getRowHeights(Ve,Ie),De.putMiddleZoneInPosition(Ve,Ie))},getNextSlide:function(Fe,Ve,Ie,je,Ke){var $e,qe=De[Fe].carousel,ci=0,gi=!1,Ai=Ve,oi=Ve;if(qe.trackIndex===void 0){for(var ii=0;ii<qe.trackArr.length;ii++)if(qe.arr[qe.activeSlide].elem===qe.trackArr[ii].elem){$e=ii;break}}else $e=qe.trackIndex;Ie===void 0&&(gi=!0);for(var hi=!1;(qe.snap||!je)&&!gi;){if(hi||je&&Math.abs(ci)>=Math.abs(Ve)||Ve===void 0&&De[Fe].slides[qe.focused]===qe.trackArr[$e].elem){Ve=ci;break}var Ai=ci,Ei=De.getNext(Fe,Ie,ci,$e,je===void 0);(hi=Ei.breakLoop)||(ci=Ei.tempDelta,$e=Ei.trackIndex)}var Li=qe.lastPos+Ve;return je&&qe.focusedOnPress!=qe.focusedPreSnap&&(Li=Math.abs(oi+qe.lastPos-Li)<=Math.abs(oi+qe.lastPos-(Ai+qe.lastPos))?Li:Ai+qe.lastPos),gi&&(Li=qe.lastPos,Ve=-qe.arr[qe.closestArr][qe.translate]),{target:Li,overshoot:!0,delta:Ve,trackIndex:$e}},getNext:function($e,Ve,Ie,je,Ke){var $e=De[$e].carousel,qe=Ve==="right"?1:-1,ci=!1;return $e.align==="start"&&Ve==="left"?Ie+=($e.trackArr[je][$e.length]+$e.space)*qe:$e.align==="center"?Ie+=($e.trackArr[je][$e.length]+$e.space)/2*qe:$e.align==="end"&&Ve==="right"&&(Ie+=($e.trackArr[je][$e.length]+$e.space)*qe),Ve==="right"?--je<0&&(je=$e.infinity?$e.trackArr.length-1:je+1,$e.infinity||(ci=!0)):++je>=$e.trackArr.length&&(je=$e.infinity?0:je-1,$e.infinity||(ci=!0)),ci||($e.align==="start"&&Ve==="right"&&(Ie+=($e.trackArr[je][$e.length]+$e.space)*qe),$e.align==="center"?Ie+=($e.trackArr[je][$e.length]+$e.space)/2*qe:$e.align==="end"&&Ve==="left"&&(Ie+=($e.trackArr[je][$e.length]+$e.space)*qe)),{tempDelta:Ie,trackIndex:je,breakLoop:ci}},getCarDir:function(Ke,Ve,Ie){var je=De[Ke].carousel,Ke=Ie-Ve,$e="right",qe=(je.sameSlide=!1,0),ci=0;if(je.infinity){for(var gi=Ve;gi!=Ie;)ci+=1,gi=++gi>=je.slideamount?0:gi;for(gi=Ve;gi!=Ie;)qe+=1,gi=--gi<0?je.slideamount-1:gi;$e=ci<=qe?"left":"right"}else je.infinity||($e=0<=Ie-Ve?"left":"right",ci=Math.abs(Ie-Ve),Ke==0&&($e="right",je.sameSlide=!0));return je.steps=ci<=qe?ci:qe,je.direction=$e},getLastPos:function(Fe){var Ve=De[Fe].carousel;if(Ve.trackArr){for(var Ie=0,je=0,Ke=0;Ke<Ve.trackArr.length;Ke++)De[Fe].slides[Ve.closest]===Ve.trackArr[Ke].elem&&(Ve.trackIndex=Ke),De[Fe].slides[Ve.closest]===Ve.arr[Ke].elem&&(Ie=Ve.arr[Ke][Ve.translate],Ve.align==="center"&&(je=(Ve[Ve.wraplength]-Ve.arr[Ke][Ve.length])/2),Ve.align==="end"&&(je=Ve[Ve.wraplength]-Ve.arr[Ke][Ve.length]),Ve.lastOffset=je);Ve.lastPos=parseFloat(Ve.proxy._gsap[Ve.translate])-Ie-(parseFloat(Ve.proxy._gsap[Ve.translate])-parseFloat(Ve.follower._gsap[Ve.translate])),Ve.lastPos+=je}},swipeAnimate:function(Fe){var Ve,Ie=De[Fe.id].carousel,je=Fe.id;De.getLastPos(je),Ie.arr&&Ie.arr[Ie.closestArr]&&(Ie.arr[Ie.closestArr].elem==De[Fe.id].slides[Ie.focused]||(Ve=De.getCarDir(je,Ie.trackIndex,Ie.focused),Fe=De.getNextSlide(Fe.id,void 0,Ve,!1),Ie.target=Fe.target,(Ie.infinity||Ie.snap)&&(Ie.infinity||Ie.orientation!=="v")||(Ie.target<=Ie[Ie.wraplength]-Ie.totalWidth?Ie.target=Ie[Ie.wraplength]-Ie.totalWidth:0<=Ie.target&&!Ie.snap&&(Ie.target=0)),Ie.lerpSpeed=1,Ie.fromWheel=!1,Ie.tween&&Ie.tween.kill&&(Ie.tween.kill(),delete Ie.tween),Ie.tween=tpGS.gsap.to(Ie.proxy,{x:Ie.target,y:Ie.target,ease:Ie.easing,duration:Ie.speed/1e3+(2<=Ie.steps?(Ie.steps-1)*Ie.speed/2e3:0),onComplete:function(){Ie.lerp=cancelAnimationFrame(Ie.lerp),Ie.scrollFrame=cancelAnimationFrame(Ie.scrollFrame),De.carLerpHandler(je,"skip"),Ie.activeSlide=Ie.closestArr,De.snapCompleted(je)}}),Ie.lerp=cancelAnimationFrame(Ie.lerp),Ie.scrollFrame=cancelAnimationFrame(Ie.scrollFrame),Ie.lerp)||(Ie.lerp=requestAnimationFrame(Ie.lerpHandler)))},carScrollTicker:function(Fe){var Ve=De[Fe].carousel,je=(Ve.scrollFrame=requestAnimationFrame(Ve.scrollTicker),parseFloat(Ve.proxy._gsap[Ve.translate])),Ie=je+.5*(Ve.scrollProxy-je),je=Ie-je;tpGS.gsap.set(Ve.proxy,{[Ve.translate]:Ie}),Math.abs(je)<.03&&(Ve.scrollFrame=cancelAnimationFrame(Ve.scrollFrame),Ve.lerp=cancelAnimationFrame(Ve.lerp),Ve.activeSlide=Ve.closestArr,De.snapCompleted(
193Fe))},scrollCar:function(Fe,Ve,Ie){var je=De[Fe].carousel,Ke=(je.scrollFrame=cancelAnimationFrame(je.scrollFrame),je.lerp=cancelAnimationFrame(je.lerp),tpGS.gsap.to(je,{lerpSpeed:1}),je.fromWheel=!0,Math.round(parseFloat(je.proxy._gsap[je.translate])));je.tween&&je.tween.kill&&(je.tween.kill(),delete je.tween),Ie==1&&je.focused==je.slideamount-1&&Ke<=je[je.wraplength]-je.totalWidth&&!je.infinity||Ie==-1&&je.focused==0&&0<=Ke&&!je.infinity?(Ie=Ie==1?De[Fe].cpar.offset().top+De[Fe].module.height:De.document.scrollTop()-(window.innerHeight-De[Fe].cpar[0].getBoundingClientRect().top),De[Fe].modal.useAsModal||tpGS.gsap.to([window,"body"],{scrollTo:Ie})):(Fe=Ke+-8*Ve,(je.infinity||je.snap)&&(je.infinity||je.orientation!=="v")||(Fe<=je[je.wraplength]-je.totalWidth?Fe=je[je.wraplength]-je.totalWidth:0<=Fe&&!je.snap&&(Fe=0)),je.tween=tpGS.gsap.to(je,{scrollProxy:Fe,duration:.5,ease:je.easing}),je.scrollFrame=requestAnimationFrame(je.scrollTicker),je.lerp||(je.lerp=requestAnimationFrame(je.lerpHandler)))},defineCarouselElements:function(Fe){var Ve=De[Fe].carousel;Ve.infbackup=Ve.infinity,Ve.maxVisiblebackup=Ve.maxVisibleItems,Ve.slide_offset="none",Ve.slide_offset=0,Ve.cached_slide_offset=0,Ve.wrap=$$2(De[Fe].canvas[0].parentNode),Ve.maxRotation===0||De[Fe].parallax.type!=="3D"&&De[Fe].parallax.type!=="3d"||tpGS.gsap.set(Ve.wrap,{perspective:"1600px",transformStyle:"preserve-3d"})},setCarouselDefaults:function(Fe,Ve,Ie){var je,Ke,$e=De[Fe].carousel;if($e.stretchCache=$e.stretchCache===void 0?$e.stretch:$e.stretchCache,$e.stretch=!!De[Fe].infullscreenmode||$e.stretchCache,$e.slide_width=Math.round($e.stretch!==!0&&$e.orientation!=="v"?De[Fe].gridwidth[De[Fe].level]*(De[Fe].CM.w===0?1:De[Fe].CM.w):De[Fe].canv.width),$e.slide_height=Math.round($e.stretch!==!0?De[Fe].infullscreenmode?De.getWinH(Fe)-De.getFullscreenOffsets(Fe):De[Fe].gridheight[De[Fe].level]*(De[Fe].CM.w===0?1:De[Fe].CM.w):De[Fe].canv.height),$e.ratio=$e.slide_width/$e.slide_height,$e.len=De[Fe].slides.length,$e.maxwidth=De[Fe].slideamount*$e.slide_width,$e.maxheight=De[Fe].slideamount*$e.slide_height,$e.justify!=1&&$e.maxVisiblebackup>$e.len&&($e.maxVisibleItems=$e.len%2?$e.len:$e.len+1),$e.wrapwidth=$e.maxVisibleItems*$e.slide_width+($e.maxVisibleItems-1)*$e.space,$e.wrapheight=$e.maxVisibleItems*$e.slide_height+($e.maxVisibleItems-1)*$e.space,$e.wrapwidth=De[Fe].sliderLayout!="auto"?$e.wrapwidth>De[Fe].canv.width?De[Fe].canv.width:$e.wrapwidth:$e.wrapwidth>De[Fe].module.width?(De[Fe].module.width!==0?De[Fe].module:De[Fe].canv).width:$e.wrapwidth,$e.wrapheight=De[Fe].sliderLayout!="auto"?$e.wrapheight>De[Fe].canv.height?De[Fe].canv.height:$e.wrapheight:$e.wrapheight>De[Fe].module.height?(De[Fe].module.height!==0?De[Fe].module:De[Fe].canv).height:$e.wrapheight,$e.justify===!0){$e.slide_height=Math.round(De[Fe].sliderLayout==="fullscreen"?De[Fe].module.height:De[Fe].gridheight[De[Fe].level]),$e.slide_widths=[],$e.slide_heights=[],$e.slide_widthsCache=$e.slide_widthsCache===void 0?[]:$e.slide_widthsCache,$e.slide_heightsCache=$e.slide_heightsCache===void 0?[]:$e.slide_heightsCache;for(var qe,ci=$e.maxwidth=0;ci<$e.len;ci++)De[Fe].slides.hasOwnProperty(ci)&&(qe=(qe=De.gA(De[Fe].slides[ci],"iratio"))===void 0||qe===0||qe===null?$e.ratio:qe,qe=parseFloat(qe),$e.slide_widths[ci]=Math.round($e.slide_height*qe),$e.slide_heights[ci]=Math.round($e.slide_height),$e.justifyMaxWidth!==!1&&($e.slide_widths[ci]=Math.min($e.wrapwidth,$e.slide_widths[ci])),$e.justifyMaxWidth!==!1&&($e.slide_heights[ci]=Math.min($e.wrapheight,$e.slide_heights[ci])),$e.slide_widths[ci]!==$e.slide_widthsCache[ci]&&($e.slide_widthsCache[ci]=$e.slide_widths[ci],Ve!==!0)&&tpGS.gsap.set(De[Fe].slides[ci],{width:$e.slide_widths[ci]}),$e.slide_heights[ci]!==$e.slide_heightsCache[ci]&&($e.slide_heightsCache[ci]=$e.slide_heights[ci],Ve!==!0)&&tpGS.gsap.set(De[Fe].slides[ci],{height:$e.slide_heights[ci]}),$e.maxwidth+=$e.slide_widths[ci]+$e.space,$e.maxheight+=$e.slide_heights[ci]+$e.space)}$e.infinity=!($e.wrapwidth>=$e.maxwidth)&&$e.infbackup,$e.forceBAlign&&$e.slide_height<.6*$e.wrapheight&&$e.wrapwidth<$e.maxwidth?$e.infinity=!0:$e.forceBAlign&&($e.infinity=!1),$e.quickmode!==!0&&($e.wrapoffset=$e.horizontal_align==="center"?(De[Fe].canv.width-De[Fe].outNavDims.right-De[Fe].outNavDims.left-$e.wrapwidth)/2:0,$e.wrapoffset=De[Fe].sliderLayout!="auto"&&De[Fe].outernav?0:$e.wrapoffset<De[Fe].outNavDims.left?De[Fe].outNavDims.left:$e.wrapoffset,je=De[Fe].parallax.type=="3D"||De[Fe].parallax.type=="3d"?"visible":"hidden",Ke=$e.horizontal_align==="right"?{left:"auto",right:$e.wrapoffset+"px",width:$e.wrapwidth,overflow:je}:$e.horizontal_align==="left"||$e.wrapwidth<De.winW?{right:"auto",left:$e.wrapoffset+"px",width:$e.wrapwidth,overflow:je}:{right:"auto",left:"auto",width:"100%",overflow:je},$e.cacheWrapObj!==void 0&&Ke.left===$e.cacheWrapObj.left&&Ke.right===$e.cacheWrapObj.right&&Ke.width===$e.cacheWrapObj.width||(window.requestAnimationFrame(function(){tpGS.gsap.set($e.wrap,Ke),0<De[Fe].carousel.wrapoffset&&tpGS.gsap.set(De[Fe].canvas,{left:0})}),$e.cacheWrapObj=$$2.extend(!0,{},Ke)),$e.inneroffset=$e.horizontal_align==="right"?$e.wrapwidth-$e.slide_width:0,$e.windhalf=De[Fe].sliderLayout==="auto"?De[Fe].module.width/2:De.winW/2),$e.lastWrapwidth===$e.wrapwidth&&$e.lastWrapheight===$e.wrapheight||window.requestAnimationFrame(function(){De.positionCarousel(Fe)})}}),function(Fe,je){var Ie=De[Fe].carousel,je=je&&De[Fe].slides[De[Fe].pr_next_key]?$$2(De[Fe].slides[De[Fe].pr_next_key]):De[Fe].pr_next_slide;De[Fe].c.trigger("revolution.slide.carouselchange",{slider:Fe,slideIndex:parseInt(De[Fe].pr_active_key,0)+1,slideLIIndex:De[Fe].pr_active_key,slide:je,currentslide:je,prevSlideIndex:De[Fe].pr_lastshown_key!==void 0&&parseInt(De[Fe].pr_lastshown_key,0)+1,prevSlideLIIndex:De[Fe].pr_lastshown_key!==void 0&&parseInt(De[Fe].pr_lastshown_key,0),prevSlide:Ie.oldfocused!==void 0&&De[Fe].slides[Ie.oldfocused]})}),Ae=function(Fe,Ve){var Ie=De[Fe].carousel;Fe!==void 0&&Ie!==void 0&&(Ie.pDiv=Ve==="center"?Ie.maxVisibleItems/2:Ie.maxVisibleItems,Ie.edgeRatio=Math.floor(Ie.pDiv-(Ve==="center"?0:1))/Math.ceil(Ie.pDiv),Ie.maxVisibleItems===1&&(Ie.edgeRatio=1),Ie.oEdge=Ie.maxOpacity===1?1:Ie.vary_fade?1+(Ie.maxOpacity-1)*Ie.edgeRatio:Ie.maxOpacity,Ie.oEdge=Ie.maxVisibleItems===1?Ie.maxOpacity:Ie.oEdge,Ie.oRange=1<Ie.maxVisibleItems?tpGS.gsap.utils.mapRange(Ie.edgeRatio,1,Ie.oEdge,0):tpGS.gsap.utils.mapRange(1,1.1,Ie.oEdge,0),Ie.oRangeMin=tpGS.gsap.utils.mapRange(-1/Ie.maxVisibleItems,-1.1/Ie.maxVisibleItems,1,0))},ke=function(Fe){var Ve=De[Fe].carousel;if(Fe!==void 0&&Ve!==void 0){tpGS.gsap.set([Ve.proxy,Ve.follower],{x:"+=0",y:"+=0"}),Ve.arr=[],Ve.trackArr=[];for(var Ie=0;Ie<De[Fe].slides.length;Ie++)Ve.arr.push({elem:De[Fe].slides[Ie]}),Ve.trackArr.push({elem:De[Fe].slides[Ie]})}},Le=function(Fe,Ve){return Fe===null||$$2.isEmptyObject(Fe)?Ve:Fe===void 0?"right":Fe};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.carousel={loaded:!0,version:"6.6.17"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(),function(){function De(wi){var Zi;return wi===void 0?"":(Zi="",qe.isChrome8889&&wi.b_blur===0&&(wi.b_blur=.05),Zi=wi.b_blur!==void 0?"blur("+(wi.b_blur||0)+"px)":"",(Zi=(Zi=(Zi=(Zi+=wi.b_grayscale!==void 0?(0<Zi.length?" ":"")+"grayscale("+(wi.b_grayscale||0)+"%)":"")+(wi.b_sepia!==void 0?(0<Zi.length?" ":"")+"sepia("+(wi.b_sepia||0)+"%)":""))+(wi.b_invert!==void 0?(0<Zi.length?" ":"")+"invert("+(wi.b_invert||0)+"%)":""))+(wi.b_brightness!==void 0?(0<Zi.length?" ":"")+"brightness("+(wi.b_brightness||100)+"%)":""))||"none")}function _e(wi,Zi,Qi,Hi,vn){return Zi&&(Zi[Hi]=Zi[Hi]==="true"||Zi[Hi]),qe[vn].sdir===0||Zi===void 0||(Qi==="mask"?Hi=Hi==="x"?"mX":Hi==="y"?"mY":Hi:Qi==="chars"?Hi=Hi==="x"?"cX":Hi==="y"?"cY":Hi==="dir"?"c
193D":Hi:Qi==="words"?Hi=Hi==="x"?"wX":Hi==="y"?"wY":Hi==="dir"?"wD":Hi:Qi==="lines"&&(Hi=Hi==="x"?"lX":Hi==="y"?"lY":Hi==="dir"?"lD":Hi),Zi[Hi]===void 0)||Zi[Hi]===!1?wi:Zi!==void 0&&Zi[Hi]===!0?wi==="t"||wi==="top"?"b":wi==="b"||wi==="bottom"?"t":wi==="l"||wi==="left"?"r":wi==="r"||wi==="right"?"l":-1*parseFloat(wi)+(0<=(""+wi).indexOf("px")?"px":0<=(""+wi).indexOf("%")?"%":""):void 0}function Ae(wi,Zi,Qi,Hi,vn){var zn,ji,hr,Ri={},xs={},Ue={};for(hr in Hi=Hi===void 0?"transform":Hi,vn==="loop"?(Ue.autoRotate=!1,Ue.yoyo_filter=!1,Ue.yoyo_rotate=!1,Ue.yoyo_move=!1,Ue.yoyo_scale=!1,Ue.curved=!1,Ue.curviness=2,Ue.ease="none",Ue.speed=1e3,Ri.x=Ue.st=0,Ri.y=0,Ri.z=0,Ri.xr=0,Ri.yr=0,Ri.zr=0,Ri.scaleX=1,Ri.scaleY=1,Ri.originX="50%",Ri.originY="50%",Ri.originZ="0",Ri.rotationX="0deg",Ri.rotationY="0deg",Ri.rotationZ="0deg"):(Ue.speed=300,Qi?Ue.ease="default":Ri.ease="default"),vn==="sfx"&&(Ri.fxc="#ffffff"),wi=wi.split(";"))if(wi.hasOwnProperty(hr)){var bi=wi[hr].split(":");switch(bi[0]){case"u":Ri.use=bi[1]==="true"||bi[1]==="t"||fasle;break;case"c":zn=bi[1];break;case"fxc":Ri.fxc=bi[1];break;case"bgc":ji=bi[1];break;case"auto":Ri.auto=bi[1]==="t"||bi[1]===void 0||bi[1]==="true";break;case"o":Ri.opacity=bi[1];break;case"oX":Ri.originX=bi[1];break;case"oY":Ri.originY=bi[1];break;case"oZ":Ri.originZ=bi[1];break;case"sX":Ri.scaleX=bi[1];break;case"sY":Ri.scaleY=bi[1];break;case"skX":Ri.skewX=bi[1];break;case"skY":Ri.skewY=bi[1];break;case"rX":Ri.rotationX=bi[1],bi[1]!=0&&bi[1]!=="0deg"&&qe.addSafariFix(Zi);break;case"rY":Ri.rotationY=bi[1],bi[1]!=0&&bi[1]!=="0deg"&&qe.addSafariFix(Zi);break;case"rZ":Ri.rotationZ=bi[1];break;case"sc":Ri.color=bi[1];break;case"se":Ri.effect=bi[1];break;case"bos":Ri.borderStyle=bi[1];break;case"boc":Ri.borderColor=bi[1];break;case"td":Ri.textDecoration=bi[1];break;case"zI":Ri.zIndex=bi[1];break;case"tp":Ri.transformPerspective=qe[Zi].perspectiveType==="isometric"?0:qe[Zi].perspectiveType==="global"?qe[Zi].perspective:bi[1];break;case"cp":Ri.clip=parseInt(bi[1],0);break;case"cpb":Ri.clipB=parseInt(bi[1],0);break;case"aR":Ue.autoRotate=bi[1]=="t";break;case"rA":Ue.radiusAngle=bi[1];break;case"yyf":Ue.yoyo_filter=bi[1]=="t";break;case"yym":Ue.yoyo_move=bi[1]=="t";break;case"yyr":Ue.yoyo_rotate=bi[1]=="t";break;case"yys":Ue.yoyo_scale=bi[1]=="t";break;case"crd":Ue.curved=bi[1]=="t";break;case"x":Ri.x=vn==="reverse"?bi[1]==="t"||bi[1]===!0||bi[1]=="true":vn==="loop"?parseInt(bi[1],0):qe.revToResp(bi[1],qe[Zi].rle);break;case"y":Ri.y=vn==="reverse"?bi[1]==="t"||bi[1]===!0||bi[1]=="true":vn==="loop"?parseInt(bi[1],0):qe.revToResp(bi[1],qe[Zi].rle);break;case"z":Ri.z=vn==="loop"?parseInt(bi[1],0):qe.revToResp(bi[1],qe[Zi].rle),bi[1]!=0&&qe.addSafariFix(Zi);break;case"bow":Ri.borderWidth=qe.revToResp(bi[1],4,0).toString().replace(/,/g," ");break;case"bor":Ri.borderRadius=qe.revToResp(bi[1],4,0).toString().replace(/,/g," ");break;case"m":Ri.mask=bi[1]==="t"||bi[1]!=="f"&&bi[1];break;case"iC":Ri.instantClick=bi[1]==="t"||bi[1]!=="f"&&bi[1];break;case"xR":Ri.xr=parseInt(bi[1],0),qe.addSafariFix(Zi);break;case"yR":Ri.yr=parseInt(bi[1],0),qe.addSafariFix(Zi);break;case"zR":Ri.zr=parseInt(bi[1],0);break;case"iosfx":bi[1]!=="default"&&bi[1]!=="d"&&bi[1]!=="p"&&(xs.iosfx=bi[1]);break;case"blu":vn==="loop"?Ri.blur=parseInt(bi[1],0):xs.blur=parseInt(bi[1],0);break;case"gra":vn==="loop"?Ri.grayscale=parseInt(bi[1],0):xs.grayscale=parseInt(bi[1],0);break;case"bri":vn==="loop"?Ri.brightness=parseInt(bi[1],0):xs.brightness=parseInt(bi[1],0);break;case"bB":xs.b_blur=parseInt(bi[1],0);break;case"bG":xs.b_grayscale=parseInt(bi[1],0);break;case"bR":xs.b_brightness=parseInt(bi[1],0);break;case"bI":xs.b_invert=parseInt(bi[1],0);break;case"bS":xs.b_sepia=parseInt(bi[1],0);break;case"sp":Ue.speed=parseInt(bi[1],0);break;case"d":Ri.delay=parseInt(bi[1],0);break;case"crns":Ue.curviness=parseInt(bi[1],0);break;case"st":Ue.start=bi[1]==="w"||bi[1]==="a"?"+=0":bi[1],Ue.waitoncall=bi[1]==="w"||bi[1]==="a";break;case"sA":Ue.startAbsolute=bi[1];break;case"sR":Ue.startRelative=bi[1];break;case"e":Qi?Ue.ease=bi[1]:Ri.ease=bi[1];break;default:0<bi[0].length&&(Ri[bi[0]]=bi[1]==="t"||bi[1]!=="f"&&bi[1])}}var Ii={timeline:Ue};return $$2.isEmptyObject(xs)||(vn==="split"?Ri=$$2.extend(!0,Ri,xs):Ii.filter=xs),vn==="split"&&(Ri.dir=Ri.dir===void 0?"start":Ri.dir==="backward"?"end":Ri.dir==="middletoedge"?"center":Ri.dir==="edgetomiddle"?"edge":Ri.dir),$$2.isEmptyObject(zn)||(Ii.color=zn),$$2.isEmptyObject(ji)||(Ii.bgcolor=ji),Ii[Hi]=Ri,Ii}function ke(wi){return wi!==void 0&&(wi.rotationY!==void 0||wi.rotationX!==void 0||wi.z!==void 0)}function Le(wi){return(wi=qe.isNumeric(wi)?wi:wi.toLowerCase())==="thin"?"00":wi==="extra light"?200:wi==="light"?300:wi==="normal"?400:wi==="medium"?500:wi==="semi bold"?600:wi==="bold"?700:wi==="extra bold"?800:wi==="ultra bold"||wi==="black"?900:wi}function Fe(wi,Zi,Qi,Hi,vn){var zn=qe.isNumeric(wi)||wi===void 0?"":0<=wi.indexOf("px")?"px":0<=wi.indexOf("%")?"%":"";return wi=qe.isNumeric(parseInt(wi))?parseInt(wi):wi,wi=(wi=(wi=qe.isNumeric(wi)?wi*Zi+zn:wi)==="full"?Hi:wi==="auto"||wi==="none"?Qi:wi)==null?vn:wi}function Ve(wi){return wi!=null&&parseInt(wi,0)!==0}var Ie=["chars","words","lines"],je=["Top","Right","Bottom","Left"],Ke=["TopLeft","TopRight","BottomRight","BottomLeft"],$e=["top","right","bottom","left"],qe=($$2.fn.revolution=$$2.fn.revolution||{},$$2.fn.revolution),ci=($$2.extend(!0,qe,{checkLayerDimensions:function(wi){var Zi,Qi,Hi,vn=!1;for(Zi in qe[wi.id].layers[wi.skey])qe[wi.id].layers[wi.skey].hasOwnProperty(Zi)&&(Qi=qe[wi.id].layers[wi.skey][Zi],(Hi=qe[wi.id]._L[Qi.id]).eow!==Qi.offsetWidth&&qe.gA(Qi,"vary-layer-dims")!=="true"&&(vn=!0),Hi.lastknownwidth=Hi.eow,Hi.lastknownheight=Hi.eoh,Hi._slidelink||qe[wi.id].caches.calcResponsiveLayersList.push({a:qe[wi.id]._L[Qi.id].c,b:wi.id,c:0,d:Hi.rsp_bd,e:wi.slideIndex}));return vn},requestLayerUpdates:function(wi,Zi,Qi,Hi){var vn,zn;if(Qi!==void 0){var ji=qe[wi]._L[Qi],hr=ji._ligid!==void 0?qe[wi]._L[ji._ligid]:void 0;ji.pVisRequest!==ji.pVisStatus&&(vn=hr==null||hr.childrenAtStartNotVisible!==!0?(ji.pVisStatus=ji.pVisRequest,hr=(ji.type==="row"||ji.type==="column"||ji.type==="group")&&ji.frames!==void 0&&ji.frames.frame_999!==void 0&&ji.frames.frame_999.transform!==void 0&&""+ji.frames.frame_999.transform.opacity!="0",zn=ji.pVisRequest===1?"remove":hr?zn:"add",ji.pVisRequest===1?"remove":hr?"add":vn):(zn="add","remove"),ji.type==="group"&&vn=="add"&&(ji.pVisStatus===1?"visible":ji.pVisStatus===0?"hidden":ji.pVisStatus)=="hidden"&&(zn="add"),vn!==void 0&&ji.p[0].classList[vn]("rs-forceuntouchable"),zn!==void 0)&&ji.p[0].classList[zn]("rs-forcehidden"),ji.pPointerStatus!==ji.pPeventsRequest&&(ji.pPointerStatus=ji.pPeventsRequest,tpGS.gsap.set(ji.p[0],{pointerEvents:ji.pPointerStatus,visibility:ji.pVisStatus===1?"visible":ji.pVisStatus===0?"hidden":ji.pVisStatus})),Hi!==void 0&&Hi!=="ignore"&&Hi!==0&&(Hi++,Zi==="enterstage"||Zi==="leavestage"||Zi==="framestarted"?qe.isFirefox(wi)?ji.p[0].style.transform.indexOf("perspective")===-1&&(ji.p[0].style.transform+=(ji.p[0].style.transform.length===0?" ":"")+"perspective("+Hi+"px)"):(window.isSafari11||ji.maskHasPerspective===!0||ji.p[0].style.perspective.length!==0)&&ji.p[0].style.perspective!="none"||(ji.p[0].style.perspective=Hi+"px"):Zi==="frameended"&&(qe.isFirefox(wi)?ji.p[0].style.transform=ji.p[0].style.transform.replace("perspective("+Hi+"px)",""):window.isSafari11||(ji.p[0].style.perspective=ji.p[0].style.perspective.replace(Hi-1+"px",""))))}else for(var Ri in qe[wi]._L)qe[wi]._L.hasOwnProperty(Ri)&&(qe[wi]._L[Ri].pVisRequest!==qe[wi]._L[Ri].pVisStatus&&(qe[wi]._L[Ri].pVisStatus=qe[wi]._L[Ri].pVisRequest,qe[wi]._L[Ri].pVisStatus===0?qe[wi]._L[Ri].p[0].classList.add("rs-forcehidden"):qe[wi]._L[Ri].p[0].classList.remove("rs-forcehidden")),qe[wi]._L[Ri].pPointerStatus!==qe[wi]._L[Ri].pPeventsRequest)&&(qe[wi]._L[Ri].pPointerStatus=qe[wi]._L[Ri].pPeventsRequest,tpGS.gsap.set(qe[wi]._L[Ri].p[0],{pointerEvents:qe[wi]._L[Ri].pPointerStatus,visibility:qe[wi]._L[Ri].pVisStatus}));Zi==="enterstage"&&Qi!==void 0&&qe[wi]._L[Qi].esginside!==void 0&&0<qe[wi]._L[Qi].esginside.length&&qe[wi]._L[Qi].esginside.esredraw!==void 0&&qe[wi]._L[Qi].esginside.esredraw()},updateMiddleZonesAndESG:function(wi){var Zi,Qi=qe[wi].pr_processing_key||qe[wi].pr_active_key||0;if(qe[wi].middleZones&&0<qe[wi].middleZones.length&&qe[wi].middleZones[Qi]!==void 0)for(Zi=0;Zi<qe[wi].middleZones[Qi].length;Zi++)tpGS.gsap.set(qe[wi].middleZones[Qi][Zi],{y:Math.round(qe[wi].module.height/2-qe[wi].middleZones[Qi][Zi].offsetHeight/2)+"px"});
193if(qe[wi].smiddleZones&&0<qe[wi].smiddleZones.length)for(Zi=0;Zi<qe[wi].smiddleZones.length;Zi++)tpGS.gsap.set(qe[wi].smiddleZones[Zi],{y:Math.round(qe[wi].module.height/2-qe[wi].smiddleZones[Zi].offsetHeight/2)+"px"})},getRowHeights:function(wi,Ri){if(!qe[wi].firstLayerCalculated)return{cur:0,last:0,cache:[],tz:0};var hr=0,Qi=0,Hi=0,vn=Ri!==void 0?Ri:qe[wi].pr_processing_key||qe[wi].pr_active_key||0,zn=Ri!==void 0?Ri:qe[wi].pr_active_key||0;if(qe[wi].rowMiddleHeights=qe[wi].rowMiddleHeights==null?{}:qe[wi].rowMiddleHeights,qe[wi].rowMiddleHeights[vn]=0,qe[wi].rowzones&&0<qe[wi].rowzones.length){if(qe[wi].rowzones[vn]!==void 0)for(var ji=0;ji<qe[wi].rowzones[vn].length;ji++)qe[wi].rowzonesHeights[vn][ji]=qe[wi].rowzones[vn][ji][0].offsetHeight,hr+=qe[wi].rowzonesHeights[vn][ji],qe[wi].rowzones[vn][ji][0].dataset.middle=="true"&&(qe[wi].rowMiddleHeights[vn]+=qe[wi].rowzonesHeights[vn][ji]);if(zn!==vn)for(ji=qe[wi].rowMiddleHeights[zn]=0;ji<qe[wi].rowzones[zn].length;ji++)qe[wi].rowzonesHeights[zn][ji]=qe[wi].rowzones[zn][ji][0].offsetHeight,Qi+=qe[wi].rowzonesHeights[zn][ji],qe[wi].rowzones[zn][ji][0].dataset.middle=="true"&&(qe[wi].rowMiddleHeights[zn]+=qe[wi].rowzonesHeights[zn][ji])}if(qe[wi].srowzones&&0<qe[wi].srowzones.length)for(ji=qe[wi].rowMiddleHeights.static=0;ji<qe[wi].srowzones.length;ji++)Hi+=qe[wi].srowzones[ji][0].offsetHeight,qe[wi].srowzones[ji][0].dataset.middle=="true"&&(qe[wi].rowMiddleHeights.static+=qe[wi].srowzones[ji][0].offsetHeight);var hr=hr<Hi?Hi:hr,Ri=qe[wi].rowHeights===void 0?[]:qe[wi].rowHeights.cache,xs=new Date().getTime();return qe[wi].rowHeights!==void 0&&xs-qe[wi].rowHeights.tz<300?5<qe[wi].rowHeights.cache.length&&(hr=qe[wi].rowHeights.cache[qe[wi].rowHeights.cache.length-1]===hr?qe[wi].rowHeights.cache[qe[wi].rowHeights.cache.length-2]:qe[wi].rowHeights.cache[qe[wi].rowHeights.cache.length-1],xs=qe[wi].rowHeights.tz):Ri=[],{cur:hr,last:Qi,cache:Ri,tz:xs}},getGridOffset:function(wi,hr,Qi,Hi){var vn=Qi==="grid"||qe[wi].sliderType!=="carousel"||Hi?qe[wi].canv.width:qe[wi].carousel.slide_width,zn=(qe[wi].useFullScreenHeight?qe[wi].module:Qi==="grid"?qe[wi].content:qe[wi].sliderType!=="carousel"||Hi?qe[wi].module:qe[wi].canv).height,ji=Qi==="slide"||qe[wi].sliderType=="carousel"&&qe[wi].carousel.orientation=="v"?0:Math.max(0,qe[wi].sliderLayout=="fullscreen"?qe[wi].module.height/2-qe.iHE(wi)*(qe[wi].keepBPHeight?1:qe[wi].CM.h)/2:qe[wi].autoHeight||qe[wi].minHeight!=null&&0<qe[wi].minHeight||qe[wi].keepBPHeight?qe[wi].canv.height/2-qe.iHE(wi)*qe[wi].CM.h/2:0),hr=Qi==="slide"?0:Math.max(0,qe[wi].sliderType==="carousel"&&qe[wi].carousel.orientation!=="v"?0:qe[wi].canv.width/2-qe.iWA(wi,hr)*qe[wi].CM.w/2);return[vn,zn,hr=Qi!=="slide"&&qe[wi].sliderType==="carousel"&&Hi&&qe[wi].carousel!==void 0&&qe[wi].carousel.horizontal_align!==void 0?Math.max(0,qe[wi].carousel.horizontal_align==="center"?0+(qe[wi].module.width-qe.iWA(wi,"static")*qe[wi].CM.w)/2:qe[wi].carousel.horizontal_align==="right"?qe[wi].module.width-qe[wi].gridwidth[qe[wi].level]*qe[wi].CM.w:hr):hr,ji]},initLayer:function(wi){var Zi,Qi,Hi,vn,zn=wi.id,ji=wi.skey;for(vn in qe[zn].layers[wi.skey])if(qe[zn].layers[wi.skey].hasOwnProperty(vn)){var En=qe[zn].layers[wi.skey][vn],hr=$$2(En),Mn=qe.gA(En,"initialised"),Ri=Mn?qe[zn]._L[En.id]:hr.data();if(wi.skey==="individual"&&(Ri.slideKey=Ri.slideKey===void 0?qe.gA(hr.closest("rs-slide")[0],"key"):Ri.slideKey,Ri.slideIndex=Ri.slideIndex===void 0?qe.getSlideIndex(zn,Ri.slideKey):Ri.slideIndex,wi.slideIndex=Ri.slideIndex,ji=Ri.slideKey),Mn===void 0){if(qe.revCheckIDS(zn,En),(qe[zn]._L[En.id]=Ri).ford=Ri.ford===void 0?"frame_0;frame_1;frame_999":Ri.ford,Ri.ford=Ri.ford[Ri.ford.length-1]==";"?Ri.ford.substring(0,Ri.ford.length-1):Ri.ford,Ri.ford=Ri.ford.split(";"),Ri.clip!==void 0)for(Zi in Ri.clipPath={use:!1,origin:"l",type:"rectangle"},Ri.clip=Ri.clip.split(";"),Ri.clip)Ri.clip.hasOwnProperty(Zi)&&((Qi=Ri.clip[Zi].split(":"))[0]=="u"&&(Ri.clipPath.use=Qi[1]=="true"),Qi[0]=="o"&&(Ri.clipPath.origin=Qi[1]),Qi[0]=="t")&&(Ri.clipPath.type=Qi[1]);Ri.frames=cn(Ri,zn),Ri.caches={},Ri.OBJUPD={},Ri.c=hr,Ri.p=qe[zn]._Lshortcuts[En.id].p,Ri.lp=Ri.reqWrp.loop?qe[zn]._Lshortcuts[En.id].lp:void 0,Ri.m=Ri.reqWrp.mask?qe[zn]._Lshortcuts[En.id].m:void 0,Ri.triggercache=Ri.triggercache===void 0?"reset":Ri.triggercache,Ri.rsp_bd=Ri.rsp_bd===void 0?Ri.t
193ype==="column"||Ri.type==="row"?"off":"on":Ri.rsp_bd,Ri.rsp_o=Ri.rsp_o===void 0?"on":Ri.rsp_o,Ri.basealign=Ri.basealign===void 0?"grid":Ri.basealign;let Ls;if(Ri.group=Ri.type!=="group"&&(Ls=qe.closestNode(hr[0],"RS-GROUP"))!==null||Ri.type==="group"&&(Ls=qe.closestNode(hr[0].parentNode,"RS-GROUP"))!==null?"group":Ri.type!=="column"&&(Ls=qe.closestNode(hr[0],"RS-COLUMN"))!==null?"column":Ri.type!=="row"&&(Ls=qe.closestNode(hr[0],"RS-ROW"))!==null?"row":void 0,Ri._lig=Ls!=null?$$2(Ls):void 0,Ri._ligid=Ri._lig!==void 0?Ri._lig[0].id:void 0,Ri._column=hr[0].tagName==="RS-COLUMN"?$$2(qe.closestNode(hr[0],"RS-COLUMN-WRAP")):"none",Ri._row=hr[0].tagName==="RS-COLUMN"&&$$2(qe.closestNode(hr[0],"RS-ROW")),Ri._ingroup=Ri.group==="group",Ri._incolumn=Ri.group==="column",Ri._inrow=Ri.group==="row",Ri.fsom=Ri.fsom=="true"||Ri.fsom==1,Ri.fullinset=""+Ri.fullinset=="true",Ri.position=Ri.pos!==void 0?Ri.pos=="r"?"relative":"absolute":Ri._incolumn?"relative":"absolute",(Ri._ingroup||Ri._incolumn)&&0<=Ri._lig[0].className.indexOf("rs-sba")&&(Ri.animationonscroll!==!1||Ri.frames.loop===void 0)&&Ri.animOnScrollForceDisable!==!0&&(Ri.animationonscroll=!0,hr[0].className+=" rs-sba",qe[zn].sbas[ji][En.id]=hr[0]),Ri.animOnScrollRepeats=0,Ri._isgroup=hr[0].tagName==="RS-GROUP",Ri.type=Ri.type||"none",Ri.type==="row"&&(Ri.cbreak===void 0&&(Ri.cbreak=2),Ri.zone===void 0)&&(Ri.zone=qe.closestNode(hr[0],"RS-ZONE"),Ri.zone=Ri.zone!==null&&Ri.zone!==void 0?Ri.zone.className:""),Ri.esginside=$$2(hr[0].getElementsByClassName("esg-grid")[0]),Ri._isnotext=$$2.inArray(Ri.type,["video","image","audio","shape","row","group"])!==-1,Ri._mediatag=Ri.audio=="html5"?"audio":"video",Ri.img=hr.find("img"),Ri.deepiframe=qe.getByTag(hr[0],"iframe"),Ri.deepmedia=qe.getByTag(hr[0],Ri._mediatag),Ri.layertype=Ri.type==="image"?"image":0<=hr[0].className.indexOf("rs-layer-video")||0<=
193hr[0].className.indexOf("rs-layer-audio")||0<Ri.deepiframe.length&&(0<Ri.deepiframe[0].src.toLowerCase().indexOf("youtube")||0<Ri.deepiframe[0].src.toLowerCase().indexOf("vimeo"))||0<Ri.deepmedia.length?"video":"html",0<Ri.deepiframe.length&&qe.sA(Ri.deepiframe[0],"layertype",Ri.layertype),Ri.type==="column"&&Ri.cbgexists&&(Ri.cbg=$$2(qe.getByTag(Ri.p[0],"RS-COLUMN-BG")[0]),Ri.cbgmask=$$2(qe.getByTag(Ri.p[0],"RS-CBG-MASK-WRAP")[0])),Ri._slidelink=0<=hr[0].className.indexOf("slidelink"),Ri._isstatic=0<=hr[0].className.indexOf("rs-layer-static"),Ri.slidekey=Ri._isstatic?"staticlayers":ji,Ri._togglelisteners=0<hr[0].getElementsByClassName("rs-toggled-content").length,Ri.type==="text"&&(Ri.c[0].innerHTML.indexOf("{{total_slide_count}}")!==-1&&(Ri.c[0].innerHTML=Ri.c[0].innerHTML.replace("{{total_slide_count}}",qe[zn].realslideamount)),0<=Ri.c[0].innerHTML.indexOf("{{current_slide_index}}"))&&(Ri._isstatic?(Ri.metas=Ri.metas||{},Ri.metas.csi={},Ri.c[0].innerHTML=Ri.c[0].innerHTML.replace("{{current_slide_index}}","<cusli>"+qe[zn].realslideamount+"</cusli>"),Ri.metas.csi.c=Ri.c[0].getElementsByTagName("CUSLI")[0]):(Ii=parseInt(wi.slideIndex)+1,Ri.c[0].innerHTML=Ri.c[0].innerHTML.replace("{{current_slide_index}}",(Ii<10&&9<qe[zn].realslideamount?"0":"")+Ii))),Ri.bgcol=Ri.bgcol===void 0?0<=hr[0].style.background.indexOf("gradient")?hr[0].style.background:hr[0].style.backgroundColor:Ri.bgcol,Ri.bgcol=Ri.bgcol===""?"rgba(0, 0, 0, 0)":Ri.bgcol,Ri.bgcol=Ri.bgcol.indexOf("rgba(0, 0, 0, 0)")===0&&18<Ri.bgcol.length?Ri.bgcol.replace("rgba(0, 0, 0, 0)",""):Ri.bgcol,Ri.zindex=Ri.zindex===void 0?parseInt(hr[0].style.zIndex):parseInt(Ri.zindex),Ri._isgroup&&(Ri.frames.frame_1.timeline.waitoncall&&(Ri.childrenAtStartNotVisible=!0),Ri.pVisRequest=0),Ri._togglelisteners&&hr.on("click",function(){qe.swaptoggleState([this.id])}),Ri.border!==void 0){for(Zi in Ri.border=Ri.border.split(";"),Ri.bordercolor="transparent",Ri.border)if(Ri.border.hasOwnProperty(Zi))switch((Qi=Ri.border[Zi].split(":"))[0]){case"boc":Ri.bordercolor=Qi[1];break;case"bow":Ri.borderwidth=qe.revToResp(Qi[1],4,0);break;case"bos":Ri.borderstyle=qe.revToResp(Qi[1],4,0);break;case"bor":Ri.borderradius=qe.revToResp(Qi[1],4,0)}}if(Ri.type==="svg"&&(Ri.svg=hr.find("svg"),Ri.svgI=an(Ri.svgi,zn),Ri.svgPath=Ri.svg.find(Ri.svgI.svgAll?"path, circle, ellipse, line, polygon, polyline, rect":"path"),Ri.svgH=Ri.svgi!==void 0&&Ri.svgi.indexOf("oc:t")===-1?an(Ri.svgh,zn):{}),Ri.btrans!==void 0){var xs=Ri.btrans;for(Zi in Ri.btrans={rX:0,rY:0,rZ:0,o:1},xs=xs.split(";"))if(xs.hasOwnProperty(Zi))switch((Qi=xs[Zi].split(":"))[0]){case"rX":Ri.btrans.rX=Qi[1];break;case"rY":Ri.btrans.rY=Qi[1];break;case"rZ":Ri.btrans.rZ=Qi[1];break;case"o":Ri.btrans.o=Qi[1];break;case"iosfx":Ri.iOSFix=Qi[1]=="default"?"d":Qi[1]=="r"?"rotationX":Qi[1]=="p"?"d":Qi[1]}}if(Ri.tsh!==void 0){for(Zi in Ri.tshadow={c:"rgba(0,0,0,0.25)",v:0,h:0,b:0},Ri.tsh=Ri.tsh.split(";"),Ri.tsh)if(Ri.tsh.hasOwnProperty(Zi))switch((Qi=Ri.tsh[Zi].split(":"))[0]){case"c":Ri.tshadow.c=Qi[1];break;case"h":Ri.tshadow.h=Qi[1];break;case"v":Ri.tshadow.v=Qi[1];break;case"b":Ri.tshadow.b=Qi[1]}}if(Ri.tst!==void 0){for(Zi in Ri.tstroke={c:"rgba(0,0,0,0.25)",w:1},Ri.tst=Ri.tst.split(";"),Ri.tst)if(Ri.tst.hasOwnProperty(Zi))switch((Qi=Ri.tst[Zi].split(":"))[0]){case"c":Ri.tstroke.c=Qi[1];break;case"w":Ri.tstroke.w=Qi[1]}}if(Ri.bsh!==void 0){for(Zi in Ri.bshadow={e:"c",c:"rgba(0,0,0,0.25)",v:0,h:0,b:0,s:0},Ri.bsh=Ri.bsh.split(";"),Ri.bsh)if(Ri.bsh.hasOwnProperty(Zi))switch((Qi=Ri.bsh[Zi].split(":"))[0]){case"c":Ri.bshadow.c=Qi[1];break;case"h":Ri.bshadow.h=Qi[1];break;case"v":Ri.bshadow.v=Qi[1];break;case"b":Ri.bshadow.b=Qi[1];break;case"s":Ri.bshadow.s=Qi[1];break;case"e":Ri.bshadow.e=Qi[1]}}if(Ri.dim!==void 0){for(Zi in Ri.dim=Ri.dim.split(";"),Ri.dim)if(Ri.dim.hasOwnProperty(Zi))switch((Qi=Ri.dim[Zi].split(":"))[0]){case"w":Ri.width=Qi[1];break;case"h":Ri.height=Qi[1];break;case"maxw":Ri.maxwidth=Qi[1];break;case"maxh":Ri.maxheight=Qi[1];break;case"minw":Ri.minwidth=Qi[1];break;case"minh":Ri.minheight=Qi[1]}}if(Ri.xy!==void 0&&Ri.type!=="row"&&Ri.type!=="column"){for(Zi in Ri.xy=Ri.xy.split(";"),Ri.xy)if(Ri.xy.hasOwnProperty(Zi))switch((Qi=Ri.xy[Zi].split(":"))[0]){case"x":Ri.x=Qi[1].replace("px","");break;case"y":Ri.y=Qi[1].replace("px","");break;case"xo":Ri.hoffset=Qi[1].replace("px","");break;case"yo":Ri.voffset=Qi[1].replace("px","")}}if(Ri._isnotext||Ri.text===void 0)if(Ri._isgroup&&Ri.text!==void 0)for(Zi in Ri.text=Ri.text.split(";"),Ri.text)Ri.text.hasOwnProperty(Zi)&&(Qi=Ri.text[Zi].split(":"))[0]==="a"&&(Ri.textalign=Qi[1]);else Ri.type==="column"&&Ri.textDecoration!==void 0&&delete Ri.textDecoration;else for(Zi in Ri.text=Ri.text.split(";"),Ri.text)if(Ri.text.hasOwnProperty(Zi))switch((Qi=Ri.text[Zi].split(":"))[0]){case"w":Ri.whitespace=Qi[1];break;case"td":Ri.textDecoration=Qi[1];break;case"c":Ri.clear=Qi[1];break;case"f":Ri.float=Qi[1];break;case"s":Ri.fontsize=Qi[1];break;case"l":Ri.lineheight=Qi[1];break;case"ls":Ri.letterspacing=Qi[1];break;case"fw":Ri.fontweight=Qi[1];break;case"a":Ri.textalign=Qi[1]}if(Ri.flcr!==void 0){for(Zi in Ri.flcr=Ri.flcr.split(";"),Ri.flcr)if(Ri.flcr.hasOwnProperty(Zi))switch((Qi=Ri.flcr[Zi].split(":"))[0]){case"c":Ri.clear=Qi[1];break;case"f":Ri.float=Qi[1]}}if(Ri.padding!==void 0){for(Zi in Ri.padding=Ri.padding.split(";"),Ri.padding)if(Ri.padding.hasOwnProperty(Zi))switch((Qi=Ri.padding[Zi].split(":"))[0]){case"t":Ri.paddingtop=Qi[1];break;case"b":Ri.paddingbottom=Qi[1];break;case"l":Ri.paddingleft=Qi[1];break;case"r":Ri.paddingright=Qi[1]}}if(Ri.margin!==void 0){for(Zi in Ri.margin=Ri.margin.split(";"),Ri.margin)if(Ri.margin.hasOwnProperty(Zi))switch((Qi=Ri.margin[Zi].split(":"))[0]){case"t":Ri.margintop=Qi[1];break;case"b":Ri.marginbottom=Qi[1];break;case"l":Ri.marginleft=Qi[1];break;case"r":Ri.marginright=Qi[1]}}if(Ri.spike!==void 0&&(Ri.spike=Er(Ri.spike)),Ri.corners!==void 0)for(Zi in Hi=Ri.corners.split(";"),Ri.corners={},Hi)Hi.hasOwnProperty(Zi)&&0<Hi[Zi].length&&(Ri.corners[Hi[Zi]]=$$2("<"+Hi[Zi]+"></"+Hi[Zi]+">"),Ri.c.append(Ri.corners[Hi[Zi]]));Ri.textalign=Je(Ri.textalign),Ri.vbility=qe.revToResp(Ri.vbility,qe[zn].rle,!0),Ri.hoffset=qe.revToResp(Ri.hoffset,qe[zn].rle,0),Ri.voffset=qe.revToResp(Ri.voffset,qe[zn].rle,0),Ri.x=qe.revToResp(Ri.x,qe[zn].rle,"l"),Ri.y=qe.revToResp(Ri.y,qe[zn].rle,"t"),xr(hr,0,zn),qe.sA(En,"initialised",!0),qe[zn].c.trigger("layerinitialised",{layer:hr[0].id,slider:zn})}var Ue,bi,Ii,Ji,Mn=Ri.x[qe[zn].level],En=Ri.y[qe[zn].level],Or=qe.getGridOffset(zn,wi.slideIndex,Ri.basealign,Ri._isstatic),Fn=Or[0],Cr=Or[1],_r=Or[2],Or=Or[3];
193if(Ri.slideIndex=wi.slideIndex,wi.mode!=="updateposition"&&(Ri.vbility[qe[zn].levelForced]==0||Ri.vbility[qe[zn].levelForced]=="f"||Fn<qe[zn].hideLayerAtLimit&&Ri.layeronlimit=="on"||Fn<qe[zn].hideAllLayerAtLimit?(Ri.layerIsHidden!==!0&&Ri.p[0].classList.add("rs-layer-hidden"),Ri.layerIsHidden=!0):(Ri.layerIsHidden&&Ri.p[0].classList.remove("rs-layer-hidden"),Ri.layerIsHidden=!1),Ri.poster=Ri.poster==null&&Ri.thumbimage!==void 0?Ri.thumbimage:Ri.poster,Ri.layertype==="image"?(Ri.imgOBJ={},Ri.img.data("c")==="cover-proportional"?(qe.sA(Ri.img[0],"owidth",qe.gA(Ri.img[0],"owidth",Ri.img[0].width)),qe.sA(Ri.img[0],"oheight",qe.gA(Ri.img[0],"oheight",Ri.img[0].height)),bi=qe.gA(Ri.img[0],"owidth")/qe.gA(Ri.img[0],"oheight"),Ue=Ri.img[0].width<=Ri.img[0].height?Cr/Fn:Fn/Cr,Ri.imgOBJ=Ue<bi&&bi<=1||bi<Ue&&1<bi?{width:"100%",height:"auto",left:Mn==="c"||Mn==="center"?"50%":Mn==="left"||Mn==="l"?"0":"auto",right:Mn==="r"||Mn==="right"?"0":"auto",top:En==="c"||En==="center"||En==="middle"||En==="m"?"50%":En==="top"||En==="t"?"0":"auto",bottom:En==="b"||En==="bottom"?"0":"auto",x:Mn==="c"||Mn==="center"||Mn==="middle"||Mn==="m"?"-50%":"0",y:En==="c"||En==="center"||En==="middle"||En==="m"?"-50%":"0"}:{height:"100%",width:"auto",left:Mn==="c"||Mn==="center"?"50%":Mn==="left"||Mn==="l"?"0":"auto",right:Mn==="r"||Mn==="right"?"0":"auto",top:En==="c"||En==="center"||En==="middle"||En==="m"?"50%":En==="top"||En==="t"?"0":"auto",bottom:En==="b"||En==="bottom"?"0":"auto",x:Mn==="c"||Mn==="center"||Mn==="middle"||Mn==="m"?"-50%":"0",y:En==="c"||En==="center"||En==="middle"||En==="m"?"-50%":"0"}):(Ri.group===void 0&&Ri.width[qe[zn].level]==="auto"&&Ri.height[qe[zn].level]==="auto"&&(Ri.width[qe[zn].level]=qe.gA(Ri.img[0],"owidth",Ri.img[0].width),Ri.height[qe[zn].level]=qe.gA(Ri.img[0],"owidth",Ri.img[0].height)),Ri.imgOBJ={width:Ri.width[qe[zn].level]!=="auto"||isNaN(Ri.width[qe[zn].level])&&0<=Ri.width[qe[zn].level].indexOf("%")?"100%":"auto",height:Ri.height[qe[zn].level]!=="auto"||isNaN(Ri.height[qe[zn].level])&&0<=Ri.height[qe[zn].level].indexOf("%")?"100%":"auto"})):Ri.layertype==="video"&&(qe.manageVideoLayer(hr,zn,ji),wi.mode!=="rebuild"&&qe.resetVideo(hr,zn,wi.mode),Ri.aspectratio!=null&&1<Ri.aspectratio.split(":").length&&Ri.bgvideo==1&&qe.prepareCoveredVideo(zn,hr),Ri.media=Ri.media===void 0?0<Ri.deepiframe.length?$$2(Ri.deepiframe[0]):$$2(Ri.deepmedia[0]):Ri.media,Ri.html5vid=Ri.html5vid===void 0?!(0<Ri.deepiframe.length):Ri.html5vid,Ri.mediaOBJ={display:"block"},Ue=Ri.width[qe[zn].level],bi=Ri.height[qe[zn].level],Ue=Ue==="auto"?Ue:!qe.isNumeric(Ue)&&0<Ue.indexOf("%")?Ri._incolumn||Ri._ingroup?"100%":Ri.basealign==="grid"?qe.iWA(zn,wi.slideIndex)*qe[zn].CM.w*parseFloat(Ue)/100:Fn*parseFloat(Ue)/100:Ri.rsp_bd!=="off"?parseFloat(Ue)*qe[zn].CM.w+"px":parseFloat(Ue)+"px",bi=bi==="auto"?bi:!qe.isNumeric(bi)&&0<bi.indexOf("%")?Ri.basealign==="grid"?qe.iHE(zn)*qe[zn].CM.w:Cr:Ri.rsp_bd!=="off"?parseFloat(bi)*qe[zn].CM.h+"px":parseFloat(bi)+"px",Ri.vd=Ri.vd===void 0?1<qe[zn].videos[hr[0].id].ratio.split(":").length?qe[zn].videos[hr[0].id].ratio.split(":")[0]/qe[zn].videos[hr[0].id].ratio.split(":")[1]:1:Ri.vd,!Ri._incolumn||Ue!=="100%"&&bi!=="auto"||Ri.ytid===void 0?(hr[0].className.indexOf("rs-fsv")==-1?(bi=bi==="auto"&&Ri.vd!==void 0&&Ue!=="auto"?Ue==="100%"?hr.width()/Ri.vd:Ue/Ri.vd:bi,Ri.vidOBJ={width:Ue,height:bi}):(Ri.basealign!=="grid"&&(Or=_r=0),Ri.x=qe.revToResp(0,qe[zn].rle,0),Ri.y=qe.revToResp(0,qe[zn].rle,0),Ri.vidOBJ={width:Ue,height:qe[zn].autoHeight?qe[zn].canv.height:bi}),Ri.html5vid!=0&&hr.hasClass("rs-fsv")||(Ri.mediaOBJ={width:Ue,height:bi,display:"block"}),Ri._ingroup&&Ri.vidOBJ.width!==null&&Ri.vidOBJ.width!==void 0&&!qe.isNumeric(Ri.vidOBJ.width)&&0<Ri.vidOBJ.width.indexOf("%")&&(
193Ri.OBJUPD.lppmOBJ={minWidth:Ue})):(Ji=hr.width(),Ji=bi==="auto"?Ji/Ri.vd:bi,Ri.vidOBJ={width:"auto",height:Ji},Ri.heightSetByVideo=!0)),Ri._slidelink||qe[zn].caches.calcResponsiveLayersList.push({a:hr,b:zn,c:0,d:Ri.rsp_bd,e:wi.slideIndex}),Ri.rsp_ch==="on")&&Ri.type!=="row"&&Ri.type!=="column"&&Ri.type!=="group"&&Ri.type!=="image"&&Ri.type!=="video"&&Ri.type!=="shape"&&hr.find("*").each(function(){var Ls=$$2(this);qe.gA(this,"stylerecorder")!=="true"&&qe.gA(this,"stylerecorder")!==!0&&xr(Ls,"rekursive",zn),qe[zn].caches.calcResponsiveLayersList.push({a:Ls,b:zn,c:"rekursive",d:Ri.rsp_bd,e:wi.slideIndex,RSL:hr})}),wi.mode!=="preset"){if(Ri.oldeow=Ri.eow,Ri.oldeoh=Ri.eoh,Ri.eow=hr.outerWidth(!0),Ri.eoh=hr.outerHeight(!0),Ri.eoh==0&&Ri.type=="group"&&Ri.height[qe[zn].level]=="auto"&&(Ri.eoh=Ri.p[0].offsetHeight),Ri.metas!==void 0&&Ri.metas.csi!==void 0&&Ri.metas.csi.change!==qe[zn].focusedSlideIndex&&(Ri.metas.csi.change=qe[zn].focusedSlideIndex,Ii=parseInt(Ri.metas.csi.change)+1,Ri.metas.csi.c.innerHTML=(9<qe[zn].realslideamount&&Ii<10?"0":"")+Ii),Ri.imgInFirefox=Ri.type=="image"&&Ri.width[qe[zn].level]=="auto"&&Ri.height[qe[zn].level]=="100%"&&qe.isFirefox(zn),Ri.imgInFirefox&&(Ji=Ri.img.width(),Ri.eow=Ji!==0?Ji:Ri.eow),Ri.eow<=0&&Ri.lastknownwidth!==void 0&&(Ri.eow=Ri.lastknownwidth),Ri.eoh<=0&&Ri.lastknownheight!==void 0&&(Ri.eoh=Ri.lastknownheight),Ri.corners!==void 0&&(Ri.type==="text"||Ri.type==="button"||Ri.type==="shape")){for(Hi in Ri.corners)Ri.corners.hasOwnProperty(Hi)&&(Ri.corners[Hi].css("borderWidth",Ri.eoh+"px"),Ri.corners[Hi].css("border"+(Hi==="rs-fcrt"||Hi==="rs-fcr"?"Right":"Left"),"0px solid transparent"),Ri.corners[Hi].css("border"+(Hi=="rs-fcrt"||Hi=="rs-bcr"?"Bottom":"Top")+"Color",Ri.bgcol));Ri.eow=hr.outerWidth(!0)}Ri.eow==0&&Ri.eoh==0&&(Ri.eow=(Ri.basealign==="grid"?qe[zn].content:qe[zn].module).width,Ri.eoh=(Ri.basealign==="grid"?qe[zn].content:qe[zn].module).height),Ri.basealign=qe[zn].justifyCarousel?"grid":Ri.basealign;var _s=Ri.rsp_o==="on"?parseInt(Ri.voffset[qe[zn].level],0)*qe[zn].CM.w:parseInt(Ri.voffset[qe[zn].level],0),so=Ri.rsp_o==="on"?parseInt(Ri.hoffset[qe[zn].level],0)*qe[zn].CM.h:parseInt(Ri.hoffset[qe[zn].level],0),Fn=Ri.basealign==="grid"?qe.iWA(zn,wi.slideIndex)*qe[zn].CM.w:Fn,Cr=Ri.basealign==="grid"||qe[zn].sliderType=="carousel"&&qe[zn].carousel.orientation==="v"?qe.iHE(zn)*(qe[zn].keepBPHeight||qe[zn].currentRowsHeight>qe[zn].gridheight[qe[zn].level]?1:qe[zn].CM.h):Cr;(qe[zn].gridEQModule==1||Ri._lig!==void 0&&Ri.type!=="row"&&Ri.type!=="column"&&(Ri.type!=="group"||Ri._ingroup||Ri._incolumn))&&(Fn=Ri._lig!==void 0?Ri._lig.width():qe[zn].module.width,Cr=Ri._lig!==void 0?Ri._lig.height():qe[zn].module.height,Or=_r=0),qe[zn].keepBPHeight&&Cr==qe[zn].module.height&&(Or=0),Ri.type==="video"&&Ri.vidOBJ!=null&&(0<=Ri.vidOBJ.height&&Ri.eoh===0&&(Ri.eoh=Ri.vidOBJ.height),0<=Ri.vidOBJ.width)&&Ri.eow===0&&(Ri.eow=Ri.vidOBJ.width),Mn=Ri.position=="relative"?0:Mn==="c"||Mn==="m"||Mn==="center"||Mn==="middle"?Fn/2-Ri.eow/2+so:Mn==="l"||Mn==="left"?so:Mn==="r"||Mn==="right"?Fn-Ri.eow-so:Ri.rsp_o!=="off"?Mn*qe[zn].CM.w:Mn,En=Ri.position=="relative"?0:En==="m"||En==="c"||En==="center"||En==="middle"?Cr/2-Ri.eoh/2+_s:En==="t"||En=="top"?_s:En==="b"||En=="bottom"?Cr-Ri.eoh-_s:Ri.rsp_o!=="off"?En*qe[zn].CM.w:En,Mn=Ri._slidelink?0:qe[zn].rtl&&(""+Ri.width[qe[zn].level]).indexOf("%")==-1?parseInt(Mn)+Ri.eow:Mn,Ri.calcx=Ri.position!="relative"||Ri.type!=="group"&&!Ri._incolumn?parseInt(Mn,0)+_r:0,Ri.calcy=Ri.position!="relative"||Ri.type!=="group"&&!Ri._incolumn?parseInt(En,0)+Or:0,Ri.type!=="row"&&Ri.type!=="column"?Ri.OBJUPD.POBJ={zIndex:Ri.zindex,top:Ri.calcy,left:Ri.calcx,overwrite:"auto"}:Ri.type!=="row"?Ri.OBJUPD.POBJ={zIndex:Ri.zindex,width:Ri.columnwidth,top:0,left:0,overwrite:"auto"}:Ri.type==="row"&&(Ri.OBJUPD.POBJ={zIndex:Ri.zindex,width:Ri.basealign==="grid"?Fn+"px":"100%",top:0,left:qe[zn].rtl?-1*_r:_r,overwrite:"auto"},Ri.cbreak<=qe[zn].level?hr[0].className.indexOf("rev_break_columns")===-1&&hr[0].classList.add("rev_break_columns"):0<hr[0].className.indexOf("rev_break_columns")&&hr[0].classList.remove("rev_break_columns"),Ri.rowcalcx=Ri.OBJUPD.POBJ.left,Ri.pow=Ri.p.outerWidth(!0)),Ri.blendmode!==void 0&&(Ri.OBJUPD.POBJ.mixBlendMode=Ri.blendmode==="color"&&window.isSafari11?"color-burn":Ri.blendmode),Ri.frames.loop===void 0&&!Ri.imgInFirefox||(Ri.OBJUPD.LPOBJ={width:Ri.eow,height:Ri.eoh}
193),Ri._ingroup&&(Ri._groupw!==void 0&&!qe.isNumeric(Ri._groupw)&&0<Ri._groupw.indexOf("%")&&(Ri.OBJUPD.lppmOBJ.minWidth=Ri._groupw),Ri._grouph!==void 0)&&!qe.isNumeric(Ri._grouph)&&0<Ri._grouph.indexOf("%")&&(Ri.OBJUPD.lppmOBJ.minHeight=Ri._grouph),wi.mode!=="updateposition"||Ri.caches.POBJ_LEFT===Ri.OBJUPD.POBJ.left&&Ri.caches.POBJ_TOP===Ri.OBJUPD.POBJ.top||(tpGS.gsap.set(Ri.p,Ri.OBJUPD.POBJ),Ri.caches.POBJ_LEFT=Ri.OBJUPD.POBJ.left,Ri.caches.POBJ_TOP=Ri.OBJUPD.POBJ.top),wi.animcompleted&&qe.animcompleted(hr,zn)}}},hoverReverseDone:function(wi){qe[wi.id]._L[wi.L[0].id].textDecoration&&tpGS.gsap.set(qe[wi.id]._L[wi.L[0].id].c,{textDecoration:qe[wi.id]._L[wi.L[0].id].textDecoration})},animcompleted:function(wi,Zi,Qi){var Hi;qe[Zi].videos!==void 0&&(Hi=qe[Zi].videos[wi[0].id])!=null&&Hi.type!=null&&Hi.type!="none"&&(Hi.aplay==1||Hi.aplay=="true"||Hi.aplay=="on"||Hi.aplay=="1sttime"?((Hi.slideid==="static"||qe[Zi].sliderType!=="carousel"||wi.closest("rs-slide").index()==qe[Zi].carousel.focused||wi.closest("rs-slide").index()==qe[Zi].activeRSSlide&&qe[Zi].carousel.oldfocused==qe[Zi].carousel.focused||Qi)&&qe.playVideo(wi,Zi),qe.toggleState(wi.data("videotoggledby")),!Hi.aplay1&&Hi.aplay!="1sttime"||(Hi.aplay1=!1,Hi.aplay=!1)):(Hi.aplay=="no1sttime"&&(Hi.aplay=!0),qe.unToggleState(wi.data("videotoggledby"))))},convertHoverTransform:function(wi,Zi,Qi){var Hi,vn=qe.clone(wi.transform);return(vn.originX||vn.originY||vn.originZ)&&(vn.transformOrigin=(vn.originX===void 0?"50%":vn.originX)+" "+(vn.originY===void 0?"50%":vn.originY)+" "+(vn.originZ===void 0?"50%":vn.originZ),delete vn.originX,delete vn.originY,delete vn.originZ),wi!==void 0&&wi.filter!==void 0&&(vn.filter=Li(wi.filter),vn["-webkit-filter"]=vn.filter),vn.color=vn.color===void 0?"rgba(255,255,255,1)":vn.color,vn.force3D="auto",vn.borderRadius!==void 0&&((Hi=vn.borderRadius.split(" ")).length,vn.borderTopLeftRadius=Hi[0],vn.borderTopRightRadius=Hi[1],vn.borderBottomRightRadius=Hi[2],vn.borderBottomLeftRadius=Hi[3],delete vn.borderRadius),vn.borderWidth!==void 0&&((Hi=vn.borderWidth.split(" ")).length,vn.borderTopWidth=Hi[0],vn.borderRightWidth=Hi[1],vn.borderBottomWidth=Hi[2],vn.borderLeftWidth=Hi[3],delete vn.borderWidth),Qi.bg!==void 0&&Qi.bg.indexOf("url")!==-1||(wi=Qi.bgCol.search("gradient")!==-1,(Hi=vn.backgroundImage&&typeof vn.backgroundImage=="string"&&vn.backgroundImage.search("gradient")!==-1)&&wi?(zi(Qi.bgCol)!==180&&zi(vn.backgroundImage)==180&&(vn.backgroundImage=Di(vn.backgroundImage,180)),vn.backgroundImage=tpGS.getSSGColors(Qi.bgCol,vn.backgroundImage,vn.gs===void 0?"fading":vn.gs).to):Hi&&!wi?vn.backgroundImage=tpGS.getSSGColors(Qi.bgCol,vn.backgroundImage,vn.gs===void 0?"fading":vn.gs).to:!Hi&&wi&&(vn.backgroundImage=tpGS.getSSGColors(Qi.bgCol,vn.backgroundColor,vn.gs===void 0?"fading":vn.gs).to)),delete vn.gs,vn},handleStaticLayers:function(wi,Zi){var Qi=0,Hi=qe[Zi].realslideamount+1;if(qe.gA(wi[0],"onslides")!==void 0){var vn,zn,ji=qe.gA(wi[0],"onslides").split(";");for(vn in ji)ji.hasOwnProperty(vn)&&((zn=ji[vn].split(":"))[0]==="s"&&(Qi=parseInt(zn[1],0)),zn[0]==="e")&&(Hi=parseInt(zn[1],0))}Qi=Math.max(0,Qi),Hi=Math.min(qe[Zi].realslideamount,Hi<0?qe[Zi].realslideamount:Hi),Hi=Qi!==1&&Qi!==0||Hi!==qe[Zi].realslideamount?Hi:qe[Zi].realslideamount+1,wi.data("startslide",Qi),wi.data("endslide",Hi),qe.sA(wi[0],"startslide",Qi),qe.sA(wi[0],"endslide",Hi)},updateLayersOnFullStage:function(wi){if(0<qe[wi].caches.calcResponsiveLayersList.length){qe[wi].slideHasIframe!==!0&&qe[wi].fullScreenMode!==!0&&qe[wi].skipAttachDetach!==!0&&(qe[wi].sliderType==="carousel"?qe[wi].carousel.wrap:qe[wi].canvas).detach();for(var Zi=0;Zi<qe[wi].caches.calcResponsiveLayersList.length;Zi++)qe[wi].caches.calcResponsiveLayersList[Zi]!==void 0&&Hn(qe[wi].caches.calcResponsiveLayersList[Zi]);qe[wi].slideHasIframe!==!0&&qe[wi].fullScreenMode!==!0&&qe[wi].skipAttachDetach!==!0&&(qe[wi].sliderType==="carousel"?qe[wi].c[0].appendChild(qe[wi].carousel.wrap[0]):qe[wi].c[0].appendChild(qe[wi].canvas[0]))}},animateTheLayers:function(wi){if(wi.slide===void 0)return!1;var Zi=wi.id;if(qe[Zi].slides[wi.slide]===void 0&&wi.slide!=="individual")return!1;if(qe[Zi].sliderType==="carousel"){if(wi.mode==="start"&&qe[Zi].lastATLmode==="start"){if(wi.slide===qe[Zi].lastATLslide&&new Date().getTime()-qe[Zi].lastATLtime<1500)return;qe[Zi].lastATLtime=new Date().getTime()}qe[Zi].lastATLmode=wi.mode,qe[Zi].lastATLslide=wi.slide}var Qi=wi.slide!=="individual"?qe.gA(qe[Zi].slides[wi.slide],"key"):"individual",Hi=qe[Zi].pr_processing_key!==void 0?qe[Zi].pr_processing_key:qe[Zi].pr_active_key!==void 0?qe[Zi].pr_active_key:0,vn=(qe[Zi].focusedSlideIndex=Hi,qe[Zi].caches.calcResponsiveLayersList=[],qe[Zi].layers=qe[Zi].layers||{},Qi==="individual"?qe[Zi].layers.individual=qe[Zi].layers.individual===void 0?qe[Zi].carousel.showLayersAllTime==="all"?tr($$2(qe[Zi].c),"rs-layer","rs-layer-static"):tr($$2(qe[Zi].c),"rs-on-car"):qe[Zi].layers.individual:(qe[Zi].layers[Qi]=qe[Zi].layers[Qi]===void 0?qe[Zi].carousel.showLayersAllTime==="all"?[]:tr($$2(qe[Zi].slides[wi.slide]),"rs-layer",qe[Zi].sliderType==="carousel"?"rs-on-car":void 0):qe[Zi].layers[Qi],qe[Zi].layers.static=qe[Zi].layers.static===void 0?tr($$2(qe[Zi].c.find("rs-static-layers")),"rs-layer","rs-on-car"):qe[Zi].layers.static,qe[Zi].sbas[Qi]=qe[Zi].sbas[Qi]===void 0?tr($$2(qe[Zi].slides[wi.slide]),"rs-sba"):qe[Zi].sbas[Qi]),wi.mode==="rebuild"&&qe[Zi].sliderType==="carousel"&&Qi==="individual"),zn=(Qi!==void 0&&qe[Zi].layers[Qi]&&qe.initLayer({id:Zi,slideIndex:wi.slide,skey:
193Qi,mode:wi.mode,animcompleted:vn}),qe[Zi].layers.static&&qe.initLayer({id:Zi,skey:"static",slideIndex:"static",mode:wi.mode,animcompleted:vn}),qe.updateLayersOnFullStage(Zi),wi.mode!=="preset"||qe[Zi].slidePresets!==void 0&&qe[Zi].slidePresets[wi.slide]!==void 0||(qe[Zi].slidePresets=qe[Zi].slidePresets===void 0?{}:qe[Zi].slidePresets,qe[Zi].slidePresets[wi.slide]=!0,qe[Zi].c.trigger("revolution.slideprepared",{slide:wi.slide,key:Qi})),qe[Zi].heightInLayers=qe[Zi].module.height,qe[Zi].widthInLayers=qe[Zi].module.width,qe[Zi].levelInLayers=qe[Zi].level,{id:Zi,skey:Qi,slide:wi.slide,key:Qi,mode:wi.mode,index:Hi});window.requestAnimationFrame(function(){if(qe[Zi].dimensionReCheck[Qi]===void 0?(qe.updateLayerDimensions(zn),qe[Zi].doubleDimensionCheck!==!0?setTimeout(function(){qe.updateLayerDimensions(zn),qe.updateRowZones(zn)},150):qe.updateRowZones(zn),qe[Zi].doubleDimensionCheck=!0,qe[Zi].dimensionReCheck[Qi]=!0):qe.updateRowZones(zn),Qi!==void 0&&qe[Zi].layers[Qi])for(var ji in qe[Zi].layers[Qi])qe[Zi].layers[Qi].hasOwnProperty(ji)&&qe.renderLayerAnimation({layer:$$2(qe[Zi].layers[Qi][ji]),id:Zi,mode:wi.mode,caller:wi.caller});if(qe[Zi].layers.static)for(var ji in qe[Zi].layers.static)qe[Zi].layers.static.hasOwnProperty(ji)&&qe.renderLayerAnimation({layer:$$2(qe[Zi].layers.static[ji]),id:Zi,mode:wi.mode,caller:wi.caller});qe[Zi].mtl!=null&&qe[Zi].mtl.resume()})},updateRowZones:function(wi){(qe[wi.id].rowzones!==void 0&&0<qe[wi.id].rowzones.length&&0<=wi.index&&qe[wi.id].rowzones[Math.min(wi.index,qe[wi.id].rowzones.length)]&&0<qe[wi.id].rowzones[Math.min(wi.index,qe[wi.id].rowzones.length)].length||qe[wi.id].srowzones!==void 0&&0<qe[wi.id].srowzones.length||qe[wi.id].smiddleZones!==void 0&&0<qe[wi.id].smiddleZones.length)&&(qe.updateDims(wi.id),qe.initLayer({id:wi.id,skey:wi.key,slideIndex:wi.slide,mode:"updateposition"}),qe.initLayer({id:wi.id,skey:"static",slideIndex:"static",mode:"updateposition"}),wi.mode!=="start"&&wi.mode!=="preset"||qe.manageNavigation(wi.id),window.requestAnimationFrame(function(){qe.putRowsInPosition(wi.id)}))},updateLayerDimensions:function(wi){var Zi=!1;qe[wi.id].caches.calcResponsiveLayersList=[],wi.key===void 0||wi.key!="individual"&&qe[wi.id].layers[wi.key]===void 0||!qe.checkLayerDimensions({id:wi.id,skey:wi.key,slideIndex:wi.slide})||(Zi=!0),qe.initLayer({id:wi.id,skey:wi.key,slideIndex:wi.slide,mode:"updateAndResize"}),qe[wi.id].layers.static&&qe.checkLayerDimensions({id:wi.id,skey:"static",slideIndex:"static"})&&(Zi=!0,qe.initLayer({id:wi.id,skey:"static",slideIndex:"static",mode:"updateAndResize"})),Zi&&qe.updateLayersOnFullStage(wi.id)},updateAnimatingLayerPositions:function(wi){qe.initLayer({id:wi.id,skey:wi.key,slideIndex:wi.slide,mode:"updateposition"})},removeTheLayers:function(wi,Zi,Qi){var Hi,vn=qe.gA(wi[0],"key");for(Hi in qe[Zi].sloops&&qe[Zi].sloops[vn]&&qe[Zi].sloops[vn].tl&&qe[Zi].sloops[vn].tl.pause(),qe[Zi].layers[vn])qe[Zi].layers[vn].hasOwnProperty(Hi)&&qe.renderLayerAnimation({layer:$$2(qe[Zi].layers[vn][Hi]),frame:"frame_999",mode:"continue",remove:!0,id:Zi,allforce:Qi});for(Hi in qe[Zi].layers.static)qe[Zi].layers.static.hasOwnProperty(Hi)&&qe.renderLayerAnimation({layer:$$2(qe[Zi].layers.static[Hi]),frame:"frame_999",mode:"continue",remove:!0,id:Zi,allforce:Qi})},renderLayerAnimation:function(wi){var Zi,Qi,Hi=wi.layer,vn=wi.id,zn=qe[vn].level,ji=qe[vn]._L[Hi[0].id],hr=ji.timeline!==void 0?ji.timeline.time():void 0,Ri=!1,xs=!1,Ue="none",bi=!1;if((wi.caller!=="containerResized_2"&&wi.caller!=="swapSlideProgress_2"||ji.animationRendered===!0)&&(ji.animationRendered=!0,wi.mode!=="preset"||ji.frames.frame_1.timeline.waitoncall===!0||ji.scrollBasedOffset!==void 0)){if(wi.mode=="trigger"&&(ji.triggeredFrame=wi.frame),ji._isstatic){var Ii=qe[vn].sliderType==="carousel"&&qe[vn].carousel.oldfocused!==void 0?parseInt(qe[vn].carousel.oldfocused)+1:qe[vn].focusedSlideIndex===void 0?0:parseInt(qe[vn].focusedSlideIndex,0)+1,Mn=qe[vn].sliderType==="carousel"?qe[vn].pr_next_key===void 0?Ii==0?1:Ii:parseInt(qe[vn].pr_next_key,0)+1:qe[vn].pr_processing_key===void 0?Ii==0?1:Ii:parseInt(qe[vn].pr_processing_key,0)+1,Ji=Ii>=ji.startslide&&Ii<=ji.endslide,Mn=Mn>=ji.startslide&&Mn<=ji.endslide,En=ji.frames.frame_999!==void 0&&ji.frames.frame_999.timeline!==void 0&&ji.frames.frame_999.timeline.waitoncall!==!0&&Ii===ji.endslide;if(qe[vn].modal===void 0||wi.mode!="start"&&wi.mode!="continue"||(wi.mode==="continue"&&qe[vn].modal.lastModalCall=="close"&&(Mn=!1),wi.mode!=="start"||qe[vn].modal.lastModalCall!=="show"&&qe[vn].modal.lastModalCall!=="init"||qe[vn].modal.lastModalCall===ji.lastModalCall||(ji.triggeredFrame=void 0,ji.triggercache="reset",ji.timeline!==void 0&&ji.timeline.currentLabel()!==void 0&&ji.timeline.currentLabel().indexOf("frame_999")==-1&&ji.timeline.pause(0)),ji.lastModalCall=qe[vn].modal.lastModalCall),Ue=wi.mode==="start"&&En||Ii===ji.endslide&&wi.mode==="continue"||(wi.mode==="continue"||Ii===ji.endslide)&&"none",ji.animatedFrame==="frame_999"&&ji.animatingFrame==="done"|ji.animatingFrame==null&&(ji.lastRequestedMainFrame="frame_999"),ji.timeline!==void 0&&ji.timeline.currentLabel()!==void 0&&ji.timeline.currentLabel().indexOf("frame_999")==-1&&(bi=!0),wi.allforce===!0||Ue===!0){if(wi.mode==="continue"&&Mn&&En&&ji.timeline!==void 0)return void(0<=ji.timeline.currentLabel().indexOf("frame_999")?ji.timeline.pause(ji.timeline.previousLabel()):ji.timeline.pause(ji.timeline.currentLabel()));if(wi.mode==="continue"&&wi.frame==="frame_999"&&(Mn||ji.lastRequestedMainFrame===void 0))return}else if(wi.mode==="preset"&&(ji.elementHovered||!Mn)||wi.mode==="rebuild"&&!Ji&&!Mn||wi.mode==="start"&&Mn&&ji.lastRequestedMainFrame==="frame_1"||(wi.mode==="start"||wi.mode==="preset")&&ji.lastRequestedMainFrame==="frame_999"&&ji.left
193stage!==!0||wi.mode==="continue"&&wi.frame==="frame_999"&&(Mn||ji.lastRequestedMainFrame===void 0)||wi.mode==="start"&&!Mn||wi.mode==="rebuild"&&ji.elementHovered&&ji._isstatic&&ji.hovertimeline)return}else wi.mode==="start"&&ji.triggercache!=="keep"&&(ji.triggeredFrame=void 0);wi.mode==="start"&&(ji.layerLoop!==void 0&&(ji.layerLoop.count=0),wi.frame=ji.triggeredFrame===void 0?bi?void 0:0:ji.triggeredFrame),wi.mode==="continue"||wi.mode==="trigger"||ji.timeline===void 0||ji._isstatic&&ji.leftstage===!0||ji.timeline.pause(0),wi.mode!=="continue"&&wi.mode!=="trigger"||ji.timeline===void 0||ji.timeline.pause(),ji.timeline=tpGS.gsap.timeline({paused:!0}),ji.type!=="text"&&ji.type!=="button"||ji.splitText!==void 0&&(ji.splitTextFix!==void 0||wi.mode!=="start"&&wi.mode!=="preset")||(fi({layer:Hi,id:vn}),wi.mode==="start"&&(ji.splitTextFix=!0));let jr=qe[vn].duration;if(qe[vn].sliderType==="carousel")for(var Fn of qe[vn].slides)ji.slidekey==Fn.dataset.key&&qe.gA(Fn,"duration")!=null&&qe.gA(Fn,"duration")!=""&&(jr=parseInt(qe.gA(Fn,"duration"),0));for(var Cr in ji.ford)if(ji.ford.hasOwnProperty(Cr)){var _r=ji.ford[Cr],Or=!1;if(_r!=="frame_0"&&_r!=="frame_hover"&&_r!=="loop"){if(_r==="frame_999"&&!ji.frames[_r].timeline.waitoncall&&ji.frames[_r].timeline.start>=jr&&wi.remove!==!0&&(ji.frames[_r].timeline.waitoncall=!0),wi.mode==="start"&&ji.triggercache!=="keep"&&(ji.frames[_r].timeline.callstate=ji.frames[_r].timeline.waitoncall?"waiting":""),wi.mode==="trigger"&&ji.frames[_r].timeline.waitoncall&&(_r===wi.frame?(ji.frames[_r].timeline.triggered=!0,ji.frames[_r].timeline.callstate="called"):ji.frames[_r].timeline.triggered=!1),wi.mode==="rebuild"||ji.frames[_r].timeline.triggered||(ji.frames[_r].timeline.callstate=ji.frames[_r].timeline.waitoncall?"waiting":""),wi.fastforward!==!1){if((wi.mode==="continue"||wi.mode==="trigger")&&xs===!1&&_r!==wi.frame||(wi.mode==="rebuild"||wi.mode==="preset")&&xs===!1&&ji.triggeredFrame!==void 0&&_r!==ji.triggeredFrame)continue;(_r===wi.frame||wi.mode==="rebuild"&&_r===ji.triggeredFrame)&&(xs=!0)}else _r===wi.frame&&(xs=!0);if(_r!==wi.frame&&ji.frames[_r].timeline.waitoncall&&ji.frames[_r].timeline.callstate!=="called"&&(Ri=!0),_r!==wi.frame&&xs&&(Ri=Ri===!0&&ji.frames[_r].timeline.waitoncall?"skiprest":Ri!==!0&&Ri),ji.hideonfirststart===void 0&&_r==="frame_1"&&ji.frames[_r].timeline.waitoncall&&(ji.hideonfirststart=!0),Ri&&ji.frames[_r].timeline.callstate==="waiting"&&wi.mode==="preset"&&ji.firstTimeRendered!=1){if(ji._isstatic&&ji.currentframe===void 0)continue;ji.firstTimeRendered=Or=!0}else if(Ri==="skiprest"||ji.frames[_r].timeline.callstate!=="called"&&Ri&&wi.toframe!==_r)continue;if(_r!=="frame_999"||Ue!==!1||wi.mode!=="continue"&&wi.mode!=="start"&&wi.mode!=="rebuild"){ji.fff=_r==="frame_1"&&(wi.mode!=="trigger"||ji.currentframe==="frame_999"||ji.currentframe==="frame_0"||ji.currentframe===void 0),wi.mode==="trigger"&&wi.frame==="frame_1"&&ji.leftstage===!1&&(ji.fff=!1),Or||(ji.frames[_r].timeline.callstate="called",ji.currentframe=_r);var _s,so,Ls,go,As,no,Ws=ji.frames[_r],ro=ji.fff?ji.frames.frame_0:void 0,qs=tpGS.gsap.timeline(),hs=tpGS.gsap.timeline(),Cr=ji.c,Nr=Ws.sfx!==void 0&&Gi(Ws.sfx.effect,ji.m,Ws.timeline.ease),ea=Ws.timeline.speed/1e3,$a=0,ao=fn({id:vn,frame:Ws,layer:Hi,ease:Ws.timeline.ease,splitAmount:Cr.length,target:_r,forcefilter:ji.frames.frame_hover!==void 0&&ji.frames.frame_hover.filter!==void 0}),Do=ji.fff?fn({id:vn,frame:ro,layer:Hi,ease:Ws.timeline.ease,splitAmount:Cr.length,target:"frame_0"}):void 0,el=Ws.mask!==void 0?fn({id:vn,frame:{transform:{x:Ws.mask.x,y:Ws.mask.y}},layer:Hi,ease:ao.ease,target:"mask"}):void 0,Fa=el!==void 0&&ji.fff?fn({id:vn,frame:{transform:{x:ro.mask.x,y:ro.mask.y}},layer:Hi,ease:ao.ease,target:"frommask"}):void 0,cl=ao.ease;if(ao.force3D=!0,Nr.type==="block"&&(Nr.ft[0].background=Ws.sfx.fxc,Nr.ft[0].visibility="visible",Nr.ft[1].visibility="visible",window.isSafari11&&(no=Math.max(Do&&Do.z?Do.z:0,ao&&ao.z?ao.z:0),Nr.ft[0].z=Math.max(0,no+1),Nr.ft[1].z=Math.max(0,no+1),Nr.t.z=Math.max(0,no+1),Nr.ft[1].transformPerspective=Nr.ft[0].transformPerspective=Nr.t.transformPerspective=ao.transformPerspective),qs.add(tpGS.gsap.fromTo(Nr.bmask_in,ea/2,Nr.ft[0],Nr.ft[1],0)),qs.add(tpGS.gsap.fromTo(Nr.bmask_in,ea/2,Nr.ft[1],Nr.t,ea/2)),_r!=="frame_0"&&_r!=="frame_1"||(Do.opacity=0)),Ws.color!==void 0?ao.color=Ws.c
193olor:ji.color!==void 0&&ji.color[zn]!=="npc"&&(ao.color=ji.color[zn]),ro!==void 0&&ro.color!==void 0?Do.color=ro.color:ro!==void 0&&ji.color!==void 0&&ji.color[zn]!=="npc"&&(Do.color=ji.color[zn]),Ws.bgcolor!==void 0?0<=Ws.bgcolor.indexOf("gradient")?ao.background=Ws.bgcolor:ao.backgroundColor=Ws.bgcolor:ji.bgcolinuse===!0&&(0<=ji.bgcol.indexOf("gradient")?ao.background=ji.bgcol:ao.backgroundColor=ji.bgcol),ro!==void 0&&(ro.bgcolor!==void 0?0<=ro.bgcolor.indexOf("gradient")?Do.background=ro.bgcolor:Do.backgroundColor=ro.bgcolor:ji.bgcolinuse===!0&&(0<=ji.bgcol.indexOf("gradient")?Do.background=ji.bgcol:Do.backgroundColor=ji.bgcol)),ji.splitText!==void 0&&ji.splitText!==!1)for(var Zn in Ie)Ws[Ie[Zn]]===void 0||ji.quickRendering||(_s=ji.splitText[Ie[Zn]],Ls=fn({id:vn,frame:Ws,source:Ie[Zn],ease:cl,layer:Hi,splitAmount:_s.length,target:_r+"_"+Ie[Zn]}),go=ji.fff?fn({id:vn,frame:ro,ease:Ls.ease,source:Ie[Zn],layer:Hi,splitAmount:_s.length,target:"frame_0_"+Ie[Zn]}):void 0,so=ji.frames[_r].dosplit?Ws[Ie[Zn]].delay===void 0?.05:Ws[Ie[Zn]].delay/100:0,ji.color[zn]===ao.color&&_r==="frame_1"||(Ls.color=ao.color),Do!==void 0&&ji.color[zn]!==Do.color&&(go.color=Do.color),go!==void 0&&go.color!==ao.color&&(Ls.color=ao.color),Ls=qe.clone(Ls),go=ji.fff?qe.clone(go):void 0,As=Ws[Ie[Zn]].dir,delete Ls.dir,Ls.data={splitted:!0},Ls.stagger=As==="center"||As==="edge"?oi({each:so,offset:so/2,from:As}):{each:so,from:As},Ls.duration=ea,go!==void 0&&(go.opacity!==void 0&&(qe.ISM||window.isSafari11)&&(go.opacity=Math.max(.001,parseFloat(go.opacity))),delete go.dir),ji.fff?qs.add(hs.fromTo(_s,go,Ls),0):qs.add(hs.to(_s,Ls),0),$a=Math.max($a,_s.length*so));ea+=$a,Zi===void 0&&(Zi=qe[vn].perspectiveType==="isometric"?0:qe[vn].perspectiveType==="local"?ao.transformPerspective!==void 0?ao.transformPerspective:ji.fff&&Do.transfromPerspective!==void 0?Do.transfromPerspective:qe[vn].perspective:qe[vn].perspective),ji.knowTransformPerspective=Zi,ji.fsom&&(ao.filter!==void 0||ji.fff&&Do.filter!==void 0)?(el.filter=ao.filter,el["-webkit-filter"]=ao.filter,delete ao.filter,delete ao["-webkit-filter"],ji.fff&&Do.filter!==void 0&&((Fa=Fa||{}).filter=Do.filter,Fa["-webkit-filter"]=Do.filter,delete Do.filter,delete Do["-webkit-filter"]),ji.forceFsom=!0):ji.forceFsom=!1,ji.useMaskAnimation=ji.pxundermask||el!==void 0&&(ro!==void 0&&ro.mask.overflow==="hidden"||Ws.mask.overflow==="hidden"),ji.useMaskAnimation||ji.forceFsom?(ji.useMaskAnimation?qs.add(tpGS.gsap.to(ji.m,.001,{overflow:"hidden"}),0):qs.add(tpGS.gsap.to(ji.m,.001,{overflow:"visible"}),0),ji.type==="column"&&ji.cbgexists&&ji.useMaskAnimation&&qs.add(tpGS.gsap.to(ji.cbgmask,.001,{overflow:"hidden"}),0),ji.btrans&&(Fa&&(Fa.rotationX=ji.btrans.rX,Fa.rotationY=ji.btrans.rY,Fa.rotationZ=ji.btrans.rZ,Fa.opacity=ji.btrans.o),el.rotationX=ji.btrans.rX,el.rotationY=ji.btrans.rY,el.rotationZ=ji.btrans.rZ,el.opacity=ji.btrans.o),ji.fff?qs.add(tpGS.gsap.fromTo(ji.m!==void 0&&ji.cbgmask!==void 0?[ji.m,ji.cbgmask]:ji.m!==void 0?ji.m:ji.cbgmask,ea,qe.clone(Fa),qe.clone(el)),.001):qs.add(tpGS.gsap.to(ji.m!==void 0&&ji.cbgmask!==void 0?[ji.m,ji.cbgmask]:ji.m!==void 0?ji.m:ji.cbgmask,ea,qe.clone(el)),.001)):ji.btrans!==void 0?(no={x:0,y:0,filter:"none",opacity:ji.btrans.o,rotationX:ji.btrans.rX,rotationY:ji.btrans.rY,rotationZ:ji.btrans.rZ,overflow:"visible"},ji.btrans.rX===0&&ji.btrans.rY==0||(ji.maskHasPerspective=!0,no.transformPerspective=Zi),qs.add(tpGS.gsap.to(ji.m,.001,no),0)):qs.add(tpGS.gsap.to(ji.m,.001,{clearProps:"transform",overflow:ji.ofHidOnHov=="hidden"?"hidden":"visible"}),0),ao.force3D="auto",ji.fff?(ao.visibility="visible",ji.cbg!==void 0&&qs.fromTo(ji.cbg,ea,Do,ao,0),!qe[vn].BUG_safari_clipPath||Do.clipPath||ao.clipPath||ji.spike,ea=0<ea?ea-.001:ea,ji.cbg!==void 0&&ji.type==="column"?qs.fromTo(Cr,ea,ci(Do),ci(ao),0):qs.fromTo(Cr,ea,Do,ao,0),qs.invalidate()):(ji.frame!=="frame_999"&&(ao.visibility="visible"),ji.cbg!==void 0&&qs.to(ji.cbg,ea,ao,0),ji.cbg!==void 0&&ji.type==="column"?qs.to(Cr,ea,ci(ao),0):qs.to(Cr,ea,ao,0)),cl!==void 0&&typeof cl!="object"&&typeof cl!="function"&&0<=cl.indexOf("SFXBounce")&&qs.to(Cr,ea,{scaleY:.5,scaleX:1.3,ease:ao.ease+"-squash",transformOrigin:"bottom"},1e-4),Nr=wi.mode!=="trigger"&&(Ri!==!0&&Ri!=="skiprest"||wi.mode!=="rebuild")||wi.frame===_r||Ws.timeline.start===void 0||!qe.isNumeric(Ws.timeline.start)?Ws.timeline.start==="+=0"||Ws.timeline.start===void 0?"+=0.001":parseInt(Ws.timeline.start,0)/1e3:"+="+parseInt(Ws.timeline.startRelative===void 0?0:Ws.timeline.startRelative,0)/1e3,ji.timeline.addLabel(_r,Nr),ji.timeline.add(qs,Nr),ji.timeline.addLabel(_r+"_end","+=0.01"),qs.eventCallback("onStart",ii,[{id:vn,frame:_r,L:Hi,tPE:Zi}]),ji.animationonscroll=="true"||ji.animationonscroll==1?(qs.eventCallback("onUp
193date",hi,[{id:vn,frame:_r,L:Hi}]),qs.smoothChildTiming=!0):qs.eventCallback("onUpdate",hi,[{id:vn,frame:_r,L:Hi}]),qs.eventCallback("onComplete",Ei,[{id:vn,frame:_r,L:Hi,tPE:Zi}])}}}if(ji.frames.loop!==void 0){var Ii=parseInt(ji.frames.loop.timeline.speed,0)/1e3,En=parseInt(ji.frames.loop.timeline.start)/1e3||0,Ji=wi.mode!=="trigger"&&wi.frame!=="frame_999"||wi.frame!=="frame_999"?.2:0,Mn=En+Ji,bi=(ji.loop={root:tpGS.gsap.timeline({}),preset:tpGS.gsap.timeline({}),move:tpGS.gsap.timeline({repeat:-1,yoyo:ji.frames.loop.timeline.yoyo_move}),rotate:tpGS.gsap.timeline({repeat:-1,yoyo:ji.frames.loop.timeline.yoyo_rotate}),scale:tpGS.gsap.timeline({repeat:-1,yoyo:ji.frames.loop.timeline.yoyo_scale}),filter:tpGS.gsap.timeline({repeat:-1,yoyo:ji.frames.loop.timeline.yoyo_filter})},ji.frames.loop.frame_0),En=ji.frames.loop.frame_999,bn="blur("+parseInt(bi.blur||0,0)+"px) grayscale("+parseInt(bi.grayscale||0,0)+"%) brightness("+parseInt(bi.brightness||100,0)+"%)",xn="blur("+(En.blur||0)+"px) grayscale("+(En.grayscale||0)+"%) brightness("+(En.brightness||100)+"%)";if(ji.loop.root.add(ji.loop.preset,0),ji.loop.root.add(ji.loop.move,Ji),ji.loop.root.add(ji.loop.rotate,Ji),ji.loop.root.add(ji.loop.scale,Ji),ji.loop.root.add(ji.loop.filter,Ji),bn==="blur(0px) grayscale(0%) brightness(100%)"&&xn==="blur(0px) grayscale(0%) brightness(100%)"&&(xn=bn="none"),En.originX=bi.originX,En.originY=bi.originY,En.originZ=bi.originZ,Zi===void 0&&(Zi=qe[vn].perspectiveType==="isometric"?0:qe[vn].perspectiveType==="local"&&ao!==void 0?ao.transformPerspective!==void 0?ao.transformPerspective:ji.fff&&Do.transfromPerspective!==void 0?Do.transfromPerspective:qe[vn].perspective:qe[vn].perspective),ji.frames.loop.timeline.curved){var Yn,or=parseInt(ji.frames.loop.timeline.radiusAngle,0)||0,yr=[{x:(bi.x-bi.xr)*qe[vn].CM.w,y:0,z:(bi.z-bi.zr)*qe[vn].CM.w},{x:0,y:(bi.y+bi.yr)*qe[vn].CM.w,z:0},{x:(En.x+En.xr)*qe[vn].CM.w,y:0,z:(En.z+En.zr)*qe[vn].CM.w},{x:0,y:(En.y-En.yr)*qe[vn].CM.w,z:0}],Rr={type:"thru",curviness:ji.frames.loop.timeline.curviness,path:[],autoRotate:ji.frames.loop.timeline.autoRotate};for(Yn in yr)yr.hasOwnProperty(Yn)&&(Rr.path[Yn]=yr[or],or=++or==yr.length?0:or);(wi.mode!=="trigger"&&wi.frame!=="frame_999"||wi.frame!=="frame_999")&&ji.loop.preset.fromTo(ji.lp,Ji,{"-webkit-filter":bn,filter:bn,x:0,y:0,z:0,minWidth:ji._incolumn||ji._ingroup?"100%":ji.eow===void 0?0:ji.eow,minHeight:ji._incolumn||ji._ingroup?"100%":ji.eoh===void 0?0:ji.eoh,scaleX:1,scaleY:1,skewX:0,skewY:0,rotationX:0,rotationY:0,rotationZ:0,transformPerspective:Zi,transformOrigin:En.originX+" "+En.originY+" "+En.originZ,opacity:1},Ai({x:Rr.path[3].x,y:Rr.path[3].y,z:Rr.path[3].z,scaleX:bi.scaleX,skewX:bi.skewX,skewY:bi.skewY,scaleY:bi.scaleY,rotationX:bi.rotationX,rotationY:bi.rotationY,rotationZ:bi.rotationZ,"-webkit-filter":bn,filter:bn,ease:"sine.inOut",opacity:bi.opacity}),0),gi(Rr)&&ji.loop.move.to(ji.lp,ji.frames.loop.timeline.yoyo_move?Ii/2:Ii,{motionPath:Rr,ease:ji.frames.loop.timeline.ease})}else(wi.mode!=="trigger"&&wi.frame!=="frame_999"||wi.frame!=="frame_999")&&ji.loop.preset.fromTo(ji.lp,Ji,{"-webkit-filter":bn,filter:bn,x:0,y:0,z:0,minWidth:ji._incolumn||ji._ingroup?"100%":ji.eow===void 0?0:ji.eow,minHeight:ji._incolumn||ji._ingroup?"100%":ji.eoh===void 0?0:ji.eoh,scaleX:1,scaleY:1,skewX:0,skewY:0,rotationX:0,rotationY:0,rotationZ:0,transformPerspective:Zi,transformOrigin:En.originX+" "+En.originY+" "+En.originZ,opacity:1},Ai({x:bi.x*qe[vn].CM.w,y:bi.y*qe[vn].CM.w,z:bi.z*qe[vn].CM.w,scaleX:bi.scaleX,skewX:bi.skewX,skewY:bi.skewY,scaleY:bi.scaleY,rotationX:bi.rotationX,rotationY:bi.rotationY,rotationZ:bi.rotationZ,ease:"sine.out",opacity:bi.opacity,"-webkit-filter":bn,filter:bn}),0),ji.loop.move.to(ji.lp,ji.frames.loop.timeline.yoyo_move?Ii/2:Ii,{x:En.x*qe[vn].CM.w,y:En.y*qe[vn].CM.w,z:En.z*qe[vn].CM.w,ease:ji.frames.loop.timeline.ease});ji.loop.rotate.to(ji.lp,ji.frames.loop.timeline.yoyo_rotate?Ii/2:Ii,{rotationX:En.rotationX,rotationY:En.rotationY,rotationZ:En.rotationZ,ease:ji.frames.loop.timeline.ease}),ji.loop.scale.to(ji.lp,ji.frames.loop.timeline.yoyo_scale?Ii/2:Ii,Ai({scaleX:En.scaleX,scaleY:En.scaleY,skewX:En.skewX,skewY:En.skewY,ease:ji.frames.loop.timeline.ease})),Ji={opacity:En.opacity||1,ease:ji.frames.loop.timeline.ease,"-webkit-filter":xn,filter:xn},ji.loop.filter.to(ji.lp,ji.frames.loop.timeline.yoyo_filter?Ii/2:Ii,Ji),ji.timeline.add(ji.loop.root,Mn)}if(ji.frames.frame_hover===void 0||wi.mode!=="start"&&ji.hoverframeadded!==void 0||(ji.hoverframeadded=!0,Qi=ji.frames.frame_hover.timeline.speed/1e3,ji.cachedHoverSpeed=Qi=Qi==0?1e-5:Qi,ji.hoverlistener)||(ji.hoverlistener=!0,qe.document.on("mouseenter mousemove",(ji.type==="column"&&ji.cbg!==void 0?"#"+ji.cbg[0].id+",":"")+"#"+ji.c[0].id,function(bs){ji.mouseIsOver=!0,ji.ignoreHoverFrames==1||bs.type==="mousemove"&&ji.ignoremousemove===!0||((ji.animationonscroll||ji.readyForHover)&&(ji.elementHovered=!0,ji.hovertimeline||(ji.hovertimeline=tpGS.gsap.timeline({paused:!0})),ji.hovertimeline.progress()==0&&(ji.lastHoveredTimeStamp===void 0||150<new Date().getTime()-ji.lastHoveredTimeStamp)&&(ji.ignoremousemove=!0,ji.ofHidOnHov=ji.frames.frame_hover.mask?"hidden":"visible",ji.hovertimeline.to(ji.m!==void 0&&ji.cbgmask!==void 0?[ji.m,ji.cbgmask]:ji.m!==void 0?ji.m:ji.
193cbgmask,Qi,{overflow:ji.ofHidOnHov},0),ji.type==="column"&&ji.cbg!=null&&ji.hovertimeline.to(ji.cbg,Qi,qe.clone(qe.convertHoverTransform(ji.frames.frame_hover,ji.cbg,{bgCol:ji.bgcol,bg:ji.styleProps.background})),0),ji.type!=="text"&&ji.type!=="button"||ji.splitText===void 0||ji.splitText===!1||ji.hovertimeline.to([ji.splitText.lines,ji.splitText.words,ji.splitText.chars],Qi,{color:ji.frames.frame_hover.color,ease:ji.frames.frame_hover.transform.ease},0),ji.type==="column"?ji.hovertimeline.to(ji.c,Qi,ci(qe.clone(qe.convertHoverTransform(ji.frames.frame_hover,ji.c,{bgCol:ji.bgcol,bg:ji.styleProps.background}))),0):ji.hovertimeline.to(ji.c,Qi,qe.clone(qe.convertHoverTransform(ji.frames.frame_hover,ji.c,{bgCol:ji.bgcol,bg:ji.styleProps.background})),0),ji.pZindex=ji.p[0].style.zIndex,ji.p[0].style.zIndex=parseInt(ji.frames&&ji.frames.frame_hover&&ji.frames.frame_hover.transform.zIndex!==void 0?ji.frames.frame_hover.transform.zIndex:ji.pZindex),ji.type==="svg")&&(ji.svgHTemp=qe.clone(ji.svgH),delete ji.svgHTemp.svgAll,bs=Array.isArray(ji.svgHTemp.fill)?ji.svgHTemp.fill[qe[vn].level]:ji.svgHTemp.fill,ji.svgHTemp.fill=bs,ji.hovertimeline.to(ji.svg,Qi,ji.svgHTemp,0),ji.svg.length<=0&&(ji.svg=Hi.find("svg")),ji.svgPath.length<=0&&(ji.svgPath=ji.svg.find(ji.svgI.svgAll?"path, circle, ellipse, line, polygon, polyline, rect":"path")),ji.hovertimeline.to(ji.svgPath,Qi,{fill:bs},0)),ji.hovertimeline.play()),ji.lastHoveredTimeStamp=new Date().getTime())}),qe.document.on("mouseleave",(ji.type==="column"&&ji.cbg!==void 0?"#"+ji.cbg[0].id+",":"")+"#"+ji.c[0].id,function(){ji.mouseIsOver=!1,ji.ignoreHoverFrames!=1&&(ji.elementHovered=!1,ji.animationonscroll||ji.readyForHover)&&ji.hovertimeline!==void 0&&(ji.hovertimeline.reverse(),ji.p[0].style.zIndex=ji.pZindex||ji.zIndex,ji.hovertimeline.eventCallback("onReverseComplete",qe.hoverReverseDone,[{id:vn,L:Hi}]))})),Or||(ji.lastRequestedMainFrame=wi.mode==="start"?"frame_1":wi.mode==="continue"?wi.frame===void 0?ji.currentframe:wi.frame:ji.lastRequestedMainFrame),wi.totime!==void 0?ji.tSTART=wi.totime:hr!==void 0&&wi.frame===void 0?ji.tSTART=hr:wi.frame!==void 0?ji.tSTART=wi.frame:ji.tSTART=0,ji.tSTART===0&&ji.startedAnimOnce===void 0&&ji.leftstage===void 0&&ji.startedAnimOnce===void 0&&ji.hideonfirststart===!0&&wi.mode==="preset"&&(qe[vn]._L[Hi[0].id].pVisRequest=0,ji.hideonfirststart=!1),(ji.tSTART!=="frame_999"&&ji.triggeredFrame!=="frame_999"||!ji.leftstage&&ji.startedAnimOnce!==void 0)&&(ji.animationonscroll!="true"&&ji.animationonscroll!=1?ji.timeline.play(ji.tSTART):ji.timeline.time(ji.tSTART),0<=$$2.inArray(ji.type,["group","row","column"]))&&(wi.frame!==void 0||wi.updateChildren===!0)){if(ji.childrenJS===void 0)for(var Zn in ji.childrenJS={},qe[vn]._L){var kr=qe[vn]._L[Zn]._lig!==void 0?qe[vn]._L[Zn]._lig[0]:void 0;kr!=null&&kr.id===Hi[0].id&&kr.id!==qe[vn]._L[Zn].c[0].id&&(ji.childrenJS[qe[vn]._L[Zn].c[0].id]=qe[vn]._L[Zn].c)}wi.frame=wi.frame=="0"?"frame_0":wi.frame,wi.frame=wi.frame=="1"?"frame_1":wi.frame,wi.frame=wi.frame=="999"?"frame_999":wi.frame;var br=wi.totime===void 0?ji.frames[wi.frame].timeline.startAbsolute!==void 0?parseInt(ji.frames[wi.frame].timeline.startAbsolute,0)/1e3:ji.frames[wi.frame].timeline.start!==void 0?qe.isNumeric(ji.frames[wi.frame].timeline.start)?parseInt(ji.frames[wi.frame].timeline.start,0)/1e3:0:.001:wi.totime;if(wi.updateChildren===!0)for(var Zn in ji.childrenJS)ji.childrenJS.hasOwnProperty(Zn)&&qe.renderLayerAnimation({layer:ji.childrenJS[Zn],fastforward:!1,id:vn,mode:"continue",updateChildren:!0,totime:br});else for(var Zn in ji.childrenJS)ji.childrenJS.hasOwnProperty(Zn)&&qe[vn]._L[Zn].pausedTrueParrent&&(qe.renderLayerAnimation({layer:ji.childrenJS[Zn],fastforward:!1,id:vn,mode:"continue",updateChildren:!0,totime:br}),qe[vn]._L[Zn].pausedTrueParrent=!1)}}}}),function(wi){return wi=qe.clone(wi),delete wi.backgroundColor,delete wi.background,delete wi.backgroundImage,delete wi.borderSize,delete wi.borderStyle,delete wi["backdrop-filter"],wi}),gi=function(wi){if(wi!==void 0&&wi.path!==void 0&&Array.isArray(wi.path)){var Zi,Qi=0,Hi=0;for(Zi in wi.path)!wi.path.hasOwnProperty(Zi)||0<Qi||0<Hi||(Qi+=wi.path[Zi].x,Hi+=wi.path[Zi].y);return Qi!=0||Hi!=0}},Ai=function(wi){return wi.skewX===void 0&&delete wi.skewX,wi.skewY===void 0&&delete wi.skewY,wi},oi=function(wi){wi.from=wi.from==="edge"?"edges":wi.from;var Zi=tpGS.gsap.utils.distribute(wi);return function(Qi,Hi,vn){return Zi(Qi,Hi,vn)+(!(Qi<=vn.length/2)&&wi.offset||0)}},ii=function(wi){var Zi=qe[wi.id]._L[wi.L[0].id],Qi=qe[wi.id]._L[Zi._ligid],Hi=(qe[wi.id].BUG_safari_clipPath&&wi.L[0].classList.remove("rs-pelock"),!(Zi._ingroup||Zi._incolumn||Zi._inrow)||Qi===void 0||Qi.timeline===void 0||Qi.timeline.isActive()||Zi===void 0||Zi.frames[Zi.timeline.currentLabel()]===void 0||(Qi.timezone==null||Qi.timezone.to<=parseInt(Zi.frames[Zi.timeline.currentLabel()].timeline.start,0))&&Zi.animOnScrollForceDisable!==!0&&(Zi.pausedTrueParrent=!0,Zi.timeline.pause()),Zi.hovertimeline),Hi=(Hi&&0<Hi.time()&&(Hi.pause(),Hi.time(0),Hi.kill(),delete Zi.hovertimeline),delete Zi.childrenAtStartNotVisible,Zi.pVisRequest=1,{layer:wi.L});Zi.tweenOnStart=!0,Zi.animatingFrame=wi.frame,Zi.ignoremousemove=!1,Zi.leftstage=!1,Zi.readyForHover=!1,Zi.tweenDirection=Zi.animationonscroll==1||Zi.animationonscroll=="true"?Zi.animteToTimeCache>Zi.animteToTime?-1:1:void 0,Zi.layerLoop!==void 0&&Zi.layerLoop.from===wi.frame&&Zi.layerLoop.count++,""+Zi.tweenDirection=="-1"&&(wi.frame==="frame_0"||wi.frame=="frame_1"&&Zi.animteToTime<=.01)&&Zi.type!=="column"&&Zi.type!=="row"&&Zi.type!=="group"?(Zi.left
193stage=!0,Zi.pVisRequest=0,Zi.pPeventsRequest="none",window.requestAnimationFrame(function(){qe.requestLayerUpdates(wi.id,"leftstage",wi.L[0].id)})):(wi.frame==="frame_1"&&window.RSBrowser==="Safari"&&Zi.safariRenderIssue===void 0&&(tpGS.gsap.set([Zi.c],{opacity:1}),Zi.safariRenderIssue=!0),wi.frame!=="frame_999"&&(Zi.startedAnimOnce=!0,Zi.pPeventsRequest=Zi.noPevents?"none":"auto"),Hi.eventtype=wi.frame==="frame_0"||wi.frame==="frame_1"?"enterstage":wi.frame==="frame_999"?"leavestage":"framestarted",Zi._ingroup&&Qi!==void 0&&Qi.frames.frame_1.timeline.waitoncall!==!0&&(Qi.pVisRequest=1),qe.requestLayerUpdates(wi.id,Hi.eventtype,wi.L[0].id,Zi.frames[wi.frame]!==void 0&&Zi.frames[wi.frame].timeline!==void 0&&Zi.frames[wi.frame].timeline.usePerspective==0?wi.tPE:"ignore")),Hi.id=wi.id,Hi.layerid=wi.L[0].id,Hi.layertype=Zi.type,Hi.frame_index=wi.frame,Hi.layersettings=Zi,qe[wi.id].c.trigger("revolution.layeraction",[Hi]),Hi.eventtype==="enterstage"&&qe.toggleState(Zi.layertoggledby),wi.frame==="frame_1"&&qe.animcompleted(wi.L,wi.id)},hi=function(wi){var Zi=qe[wi.id]._L[wi.L[0].id];Zi.animatingFrame=wi.frame,Zi.tweenOnStart=!1,Zi.tweenOnEnd=!1,wi.frame==="frame_999"&&(Zi.pVisRequest=1,Zi.pPeventsRequest=Zi.noPevents?"none":"auto",Zi.leftstage=!1,window.requestAnimationFrame(function(){qe.requestLayerUpdates(wi.id,"update",wi.L[0].id)}))},Ei=function(wi){var Zi,Qi=qe[wi.id]._L[wi.L[0].id],Hi=!0,vn=(Qi.type!=="column"&&Qi.type!=="row"&&Qi.type!=="group"||(Zi=Qi.timeline.currentLabel(),vn=$$2.inArray(Zi,Qi.ford),vn=Qi.ford.length>++vn?Qi.ford[vn]:Zi,Qi.frames[vn]!==void 0&&Qi.frames[Zi]!==void 0&&(Qi.timezone={from:parseInt(Qi.frames[Zi].timeline.startAbsolute,0),to:parseInt(Qi.frames[vn].timeline.startAbsolute,0)})),wi.frame!=="frame_999"&&qe[wi.id].isEdge&&Qi.type==="shape"&&(Zi=Qi.c[0].style.opacity,Qi.c[0].style.opacity=Zi-1e-4,tpGS.gsap.set(Qi.c[0],{opacity:Zi-.001,delay:.05}),tpGS.gsap.set(Qi.c[0],{opacity:Zi,delay:.1})),Qi.animatingFrame="done",Qi.animatedFrame=wi.frame,Qi.tweenOnStart=!1,Qi.tweenOnEnd=!0,Qi.tweenDirection=Qi.animationonscroll==1||Qi.animationonscroll=="true"?Qi.animteToTimeCache>Qi.animteToTime?-1:1:void 0,{});vn.layer=wi.L,vn.eventtype=wi.frame==="frame_0"||wi.frame==="frame_1"?"enteredstage":wi.frame==="frame_999"?"leftstage":"frameended",Qi.readyForHover=!0,vn.layertype=Qi.type,vn.frame_index=wi.frame,vn.layersettings=Qi,qe[wi.id].c.trigger("revolution.layeraction",[vn]),wi.frame==="frame_999"&&vn.eventtype==="leftstage"?(Qi.leftstage=!0,Qi.pVisRequest=0,Hi=!(Qi.pPeventsRequest="none"),window.requestAnimationFrame(function(){qe.requestLayerUpdates(wi.id,"leftstage",wi.L[0].id)})):(wi.L[0].id,Qi.frames[wi.frame]!==void 0&&Qi.frames[wi.frame].timeline!==void 0&&Qi.frames[wi.frame].timeline.usePerspective==0&&window.requestAnimationFrame(function(){qe.requestLayerUpdates(wi.id,"frameended",wi.L[0].id,wi.tPE)})),vn.eventtype==="leftstage"&&qe[wi.id].videos!==void 0&&qe[wi.id].videos[wi.L[0].id]!==void 0&&qe.stopVideo&&qe.stopVideo(wi.L,wi.id),Qi.type==="column"&&Qi.cbg!==void 0&&tpGS.gsap.to(Qi.cbg,.01,{visibility:"visible"}),vn.eventtype==="leftstage"&&(qe.unToggleState(wi.layertoggledby),Qi.type==="video")&&qe.resetVideo&&setTimeout(function(){qe.resetVideo(wi.L,wi.id)},100),qe[wi.id].BUG_safari_clipPath&&!Hi&&wi.L[0].classList.add("rs-pelock"),Qi.layerLoop!==void 0&&Qi.layerLoop.to===wi.frame&&(Qi.layerLoop.repeat==-1||Qi.layerLoop.repeat>Qi.layerLoop.count)&&Qi.timeline.seek(Qi.layerLoop.from).play()},Li=function(wi){var Zi;return wi===void 0?"":(Zi="",qe.isChrome8889&&wi.blur===0&&(wi.blur=.05),Zi=wi.blur!==void 0?"blur("+(wi.blur||0)+"px)":"",(Zi=(Zi+=wi.grayscale!==void 0?(0<Zi.length?" ":"")+"grayscale("+(wi.grayscale||0)+"%)":"")+(wi.brightness!==void 0?(0<Zi.length?" ":"")+"brightness("+(wi.brightness||100)+"%)":""))||"none")},Di=function(wi,Zi){var Qi=(wi=wi.split("("))[0];return wi.shift(),Qi+"("+Zi+"deg, "+wi.join("(")},zi=function(wi){return wi.search("deg,")!==-1&&(wi=wi.split("deg,")[0],wi.search(/\(/)!==-1)?parseInt(wi.split("(")[1],10):180},an=function(wi,Zi){if(wi!==void 0&&0<=wi.indexOf("oc:t"))return{};wi=wi===void 0?"":wi.split(";");var Qi,Hi={fill:qe.revToResp("#ffffff",qe[Zi].rle),stroke:"transparent","stroke-width":"0px","stroke-dasharray":"0","stroke-dashoffset":"0"};for(Qi in wi)if(wi.hasOwnProperty(Qi)){var vn=wi[Qi].split(":");switch(vn[0]){case"c":Hi.fill=qe.revToResp(vn[1],qe[Zi].rle,void 0,"||");break;case"sw":Hi["stroke-width"]=vn[1];break;case"sc":Hi.stroke=vn[1];break;case"so":Hi["stroke-dashoffset"]=vn[1];break;case"sa":Hi["stroke-dasharray"]=vn[1];break;case"sall":Hi.svgAll=vn[1]}}return Hi}
193,Je=function(wi){return wi==="c"?"center":wi==="l"?"left":wi==="r"?"right":wi},fi=function(wi){var Zi=qe[wi.id]._L[wi.layer[0].id],Qi=!1;if(Zi.splitText&&Zi.splitText!==!1&&Zi.splitText.revert(),Zi.type==="text"||Zi.type==="button"){for(var Hi in Zi.frames)if(Zi.frames[Hi].chars!==void 0||Zi.frames[Hi].words!==void 0||Zi.frames[Hi].lines!==void 0){Qi=!0;break}Zi.splitText=!!Qi&&new tpGS.SplitText(Zi.c,{type:"lines,words,chars",wordsClass:"rs_splitted_words",linesClass:"rs_splitted_lines",charsClass:"rs_splitted_chars"})}else Zi.splitText=!1},Gi=function(wi,Zi,Qi){if(wi!==void 0&&0<=wi.indexOf("block")){var Hi={};switch(Zi[0].getElementsByClassName("tp-blockmask_in").length===0&&(Zi.append('<div class="tp-blockmask_in"></div>'),Zi.append('<div class="tp-blockmask_out"></div>')),Hi.ft=[{scaleY:1,scaleX:0,transformOrigin:"0% 50%"},{scaleY:1,scaleX:1,ease:Qi=Qi===void 0?"power3.inOut":Qi,immediateRender:!1}],Hi.t={scaleY:1,scaleX:0,transformOrigin:"100% 50%",ease:Qi,immediateRender:!1},Hi.bmask_in=Zi.find(".tp-blockmask_in"),Hi.bmask_out=Zi.find(".tp-blockmask_out"),Hi.type="block",wi){case"blocktoleft":case"blockfromright":Hi.ft[0].transformOrigin="100% 50%",Hi.t.transformOrigin="0% 50%";break;case"blockfromtop":case"blocktobottom":Hi.ft=[{scaleX:1,scaleY:0,transformOrigin:"50% 0%"},{scaleX:1,scaleY:1,ease:Qi,immediateRender:!1}],Hi.t={scaleX:1,scaleY:0,transformOrigin:"50% 100%",ease:Qi,immediateRender:!1};break;case"blocktotop":case"blockfrombottom":Hi.ft=[{scaleX:1,scaleY:0,transformOrigin:"50% 100%"},{scaleX:1,scaleY:1,ease:Qi,immediateRender:!1}],Hi.t={scaleX:1,scaleY:0,transformOrigin:"50% 0%",ease:Qi,immediateRender:!1}}return Hi.ft[1].overwrite="auto",Hi.t.overwrite="auto",Hi}return!1},fn=function(wi){var Zi,Qi,Hi=qe[wi.id]._L[wi.layer[0].id],vn=wi.source===void 0?qe.clone(wi.frame.transform):qe.clone(wi.frame[wi.source]),zn={originX:"50%",originY:"50%",originZ:"0"},ji=Hi._lig!==void 0&&qe[wi.id]._L[Hi._lig[0].id]!==void 0?qe[wi.id]._L[Hi._lig[0].id].eow:qe[wi.id].conw,hr=Hi._lig!==void 0&&qe[wi.id]._L[Hi._lig[0].id]!==void 0?qe[wi.id]._L[Hi._lig[0].id].eoh:qe[wi.id].conh;for(Qi in vn)if(vn.hasOwnProperty(Qi)){if(vn[Qi]=typeof vn[Qi]=="object"?vn[Qi][qe[wi.id].level]:vn[Qi],vn[Qi]==="inherit"||Qi==="delay"||Qi==="direction"||Qi==="use")delete vn[Qi];else if(Qi==="originX"||Qi==="originY"||Qi==="originZ")zn[Qi]=vn[Qi],delete vn[Qi];else if(qe.isNumeric(vn[Qi],0))vn[Qi]=_e(vn[Qi],wi.frame.reverse,wi.target,Qi,wi.id,wi.id);else if(vn[Qi][0]==="r"&&vn[Qi][1]==="a"&&vn[Qi][3]==="(")vn[Qi]=vn[Qi].replace("ran","random");else if(0<=vn[Qi].indexOf("cyc(")){var Ri=vn[Qi].replace("cyc(","").replace(")","").replace("[","").replace("]","").split("|");vn[Qi]=new function(Mn){return tpGS.gsap.utils.wrap(Ri,void 0)}}else if(0<=vn[Qi].indexOf("%")&&qe.isNumeric(Zi=parseInt(vn[Qi],0)))vn[Qi]=Qi==="x"?_e((Hi.eow||0)*Zi/100,wi.frame.reverse,wi.target,Qi,wi.id):Qi==="y"?_e((Hi.eoh||0)*Zi/100,wi.frame.reverse,wi.target,Qi,wi.id):vn[Qi];else{vn[Qi]=vn[Qi].replace("[","").replace("]",""),vn[Qi]=_e(vn[Qi],wi.frame.reverse,wi.target,Qi,wi.id,wi.id);var xs={t:0,b:0};switch(Hi.type==="row"&&(Hi.zone==="rev_row_zone_top"&&qe[wi.id].topZones[Hi.slideIndex]!==void 0&&qe[wi.id].topZones[Hi.slideIndex][0]!==void 0?xs={t:0,b:0}:Hi.zone==="rev_row_zone_middle"&&qe[wi.id].middleZones[Hi.slideIndex]!==void 0&&qe[wi.id].middleZones[Hi.slideIndex][0]!==void 0?xs={t:Math.round(qe[wi.id].module.height/2-qe[wi.id].middleZones[Hi.slideIndex][0].offsetHeight/2),b:Math.round(qe[wi.id].module.height/2+qe[wi.id].middleZones[Hi.slideIndex][0].offsetHeight/2)}:Hi.zone==="rev_row_zone_bottom"&&qe[wi.id].bottomZones[Hi.slideIndex]!==void 0&&qe[wi.id].bottomZones[Hi.slideIndex][0]!==void 0&&(xs={t:Math.round(qe[wi.id].module.height-qe[wi.id].bottomZones[Hi.slideIndex][0].offsetHeight),b:qe[wi.id].module.height+qe[wi.id].bottomZones[Hi.slideIndex][0].offsetHeight})),vn[Qi]){case"t":case"top":vn[Qi]=0-(Hi.eoh||0)-(Hi.type!=="column"&&Hi.calcy||0)-qe.getLayerParallaxOffset(wi.id,wi.layer[0].id,"v")-(Hi.type==="row"&&Hi.marginTop!==void 0?Hi.marginTop[qe[wi.id].level]:0)-xs.b;break;case"b":case"bottom":vn[Qi]=hr-(Hi.type!=="column"&&Hi.type!=="row"&&Hi.calcy||0)+qe.getLayerParallaxOffset(wi.id,wi.layer[0].id,"v")-xs.t;break;case"l":case"left":vn[Qi]=0-(Hi.type==="row"?Hi.pow:Hi.eow||0)-(Hi.type==="column"?0:Hi.type==="row"?Hi.rowcalcx:Hi.calcx||0)-qe.getLayerParallaxOffset(wi.id,wi.layer[0].id,"h");break;case"r":case"right":vn[Qi]=ji-(Hi.type==="column"?0:Hi.type==="row"?Hi.rowcalcx:Hi.calcx||0)+qe.getLayerParallaxOffset(wi.id,wi.layer[0].id,"h");break;case"m":case"c":case"middle":case"center":vn[Qi]=Qi==="x"?_e(ji/2-(Hi.type!=="column"&&Hi.calcx||0)-(Hi.eow||0)/2,wi.frame.reverse,wi.target,Qi,wi.id):Qi==="y"?_e(hr/2-(Hi.type!=="column"&&Hi.calcy||0)-(Hi.eoh||0)/2,wi.frame.reverse,wi.target,Qi,wi.id):vn[Qi]}}Qi==="skewX"&&vn[Qi]!==void 0&&(vn.scaleY=vn.scaleY===void 0?1:parseFloat(vn.scaleY),vn.scaleY*=Math.cos(parseFloat(vn[Qi])*tpGS.DEG2RAD)),Qi==="skewY"&&vn[Qi]!==void 0&&(vn.scaleX=vn.scaleX===void 0?1:parseFloat(vn.scaleX),vn.scaleX*=Math.cos(parseFloat(vn[Qi])*tpGS.DEG2RAD))}if(vn.transformOrigin=zn.originX+" "+zn.originY+" "+zn.originZ,!qe[wi.id].BUG_ie_clipPath&&vn.clip!==void 0&&Hi.clipPath!==void 0&&Hi.clipPath.use){vn.clipB=vn.clipB==null?100:vn.clipB;var Ue=Hi.clipPath.type=="rectangle",bi=parseInt(vn.clip,0),Ii=100-parseInt(vn.clipB,0),Ji=Math.round(bi/2);
193switch(Hi.clipPath.origin){case"invh":vn.clipPath="polygon(0% 0%, 0% 100%, "+bi+"% 100%, "+bi+"% 0%, 100% 0%, 100% 100%, "+Ii+"% 100%, "+Ii+"% 0%, 0% 0%)";break;case"invv":vn.clipPath="polygon(100% 0%, 0% 0%, 0% "+bi+"%, 100% "+bi+"%, 100% 100%, 0% 100%, 0% "+Ii+"%, 100% "+Ii+"%, 100% 0%)";break;case"cv":vn.clipPath=Ue?"polygon("+(50-Ji)+"% 0%, "+(50+Ji)+"% 0%, "+(50+Ji)+"% 100%, "+(50-Ji)+"% 100%)":"circle("+bi+"% at 50% 50%)";break;case"ch":vn.clipPath=Ue?"polygon(0% "+(50-Ji)+"%, 0% "+(50+Ji)+"%, 100% "+(50+Ji)+"%, 100% "+(50-Ji)+"%)":"circle("+bi+"% at 50% 50%)";break;case"l":vn.clipPath=Ue?"polygon(0% 0%, "+bi+"% 0%, "+bi+"% 100%, 0% 100%)":"circle("+bi+"% at 0% 50%)";break;case"r":vn.clipPath=Ue?"polygon("+(100-bi)+"% 0%, 100% 0%, 100% 100%, "+(100-bi)+"% 100%)":"circle("+bi+"% at 100% 50%)";break;case"t":vn.clipPath=Ue?"polygon(0% 0%, 100% 0%, 100% "+bi+"%, 0% "+bi+"%)":"circle("+bi+"% at 50% 0%)";break;case"b":vn.clipPath=Ue?"polygon(0% 100%, 100% 100%, 100% "+(100-bi)+"%, 0% "+(100-bi)+"%)":"circle("+bi+"% at 50% 100%)";break;case"lt":vn.clipPath=Ue?"polygon(0% 0%,"+2*bi+"% 0%, 0% "+2*bi+"%)":"circle("+bi+"% at 0% 0%)";break;case"lb":vn.clipPath=Ue?"polygon(0% "+(100-2*bi)+"%, 0% 100%,"+2*bi+"% 100%)":"circle("+bi+"% at 0% 100%)";break;case"rt":vn.clipPath=Ue?"polygon("+(100-2*bi)+"% 0%, 100% 0%, 100% "+2*bi+"%)":"circle("+bi+"% at 100% 0%)";break;case"rb":vn.clipPath=Ue?"polygon("+(100-2*bi)+"% 100%, 100% 100%, 100% "+(100-2*bi)+"%)":"circle("+bi+"% at 100% 100%)";break;case"clr":vn.clipPath=Ue?"polygon(0% 0%, 0% "+bi+"%, "+(100-bi)+"% 100%, 100% 100%, 100% "+(100-bi)+"%, "+bi+"% 0%)":"circle("+bi+"% at 50% 50%)";break;case"crl":vn.clipPath=Ue?"polygon(0% "+(100-bi)+"%, 0% 100%, "+bi+"% 100%, 100% "+bi+"%, 100% 0%, "+(100-bi)+"% 0%)":"circle("+bi+"% at 50% 50%)"}qe.isFirefox(wi.id)!==!0&&(vn["-webkit-clip-path"]=vn.clipPath),vn["clip-path"]=vn.clipPath,delete vn.clip,delete vn.clipB}else delete vn.clip;return wi.target!=="mask"&&(wi.frame===void 0||wi.frame.filter===void 0&&!wi.forcefilter||(vn.filter=Li(wi.frame.filter),vn["-webkit-filter"]=vn.filter,qe.useBackdrop&&(window.isSafari11?vn["-webkit-backdrop-filter"]=De(wi.frame.filter):vn["backdrop-filter"]=De(wi.frame.filter)),window.isSafari11&&vn.filter!==void 0&&vn[Hi.iOSFix==null||Hi.iOSFix=="d"?Hi.type=="shape"?"z":"x":Hi.iOSFix]===void 0&&wi.frame.filter!==void 0&&wi.frame.filter.blur!==void 0&&(vn[Hi.iOSFix==null||Hi.iOSFix=="d"?Hi.type=="shape"?"z":"x":Hi.iOSFix]=1e-4)),0<=$$2.inArray(wi.source,["chars","words","lines"])&&(wi.frame[wi.source].blur!==void 0||wi.forcefilter)&&(vn.filter=Li(wi.frame[wi.source]),vn["-webkit-filter"]=vn.filter),delete vn.grayscale,delete vn.blur,delete vn.brightness),vn.ease=(vn.ease!==void 0?vn:vn.ease===void 0&&wi.ease!==void 0||vn.ease!==void 0&&wi.ease!==void 0&&vn.ease==="inherit"?wi:wi.frame.timeline).ease,vn.ease=vn.ease===void 0||vn.ease==="default"?"power3.inOut":vn.ease,vn},cn=function(wi,Zi){var Qi,Hi={},vn=0;for(vn in qe[Zi]._rdF0===void 0&&(Qi=Ae("x:0;y:0;z:0;rX:0;rY:0;rZ:0;o:0;skX:0;skY:0;sX:0;sY:0;oX:50%;oY:50%;oZ:0;dir:forward;d:5",Zi).transform,qe[Zi]._rdF0=qe[Zi]._rdF1={transform:Ae("x:0;y:0;z:0;rX:0;rY:0;rZ:0;o:0;skX:0;skY:0;sX:0;sY:0;oX:50%;oY:50%;oZ:0;tp:600px",Zi,!0).transform,mask:Ae("x:0;y:0",Zi,!0).transform,chars:$$2.extend(!0,{blur:0,grayscale:0,brightness:100},Qi),words:$$2.extend(!0,{blur:0,grayscale:0,brightness:100},Qi),lines:$$2.extend(!0,{blur:0,grayscale:0,brightness:100},Qi)},qe[Zi]._rdF1.transform.opacity=qe[Zi]._rdF1.chars.opacity=qe[Zi]._rdF1.words.opacity=qe[Zi]._rdF1.lines.opacity=qe[Zi]._rdF1.transform.scaleX=qe[Zi]._rdF1.chars.scaleX=qe[Zi]._rdF1.words.scaleX=qe[Zi]._rdF1.lines.scaleX=qe[Zi]._rdF1.transform.scaleY=qe[Zi]._rdF1.chars.scaleY=qe[Zi]._rdF1.words.scaleY=qe[Zi]._rdF1.lines.scaleY=1),wi.frame_0===void 0&&(wi.frame_0="x:0"),wi.frame_1===void 0&&(wi.frame_1="x:0"),wi.dddNeeded=!1,wi.ford)if(wi.ford.hasOwnProperty(vn)){var zn=wi.ford[vn];if(wi[zn]){if(Hi[zn]=Ae(wi[zn],Zi,!0),Hi[zn].bgcolor!==void 0&&(wi.bgcolinuse=!0),qe[Zi].BUG_ie_clipPath&&wi.clipPath!==void 0&&wi.clipPath.use&&Hi[zn].transform.clip!==void 0){var ji=wi.clipPath.type==="rectangle"?100-parseInt(Hi[zn].transform.clip):100-Math.min(100,2*parseInt(Hi[zn].transform.clip));switch(wi.clipPath.origin){case"clr":case"rb":case"rt":case"r":wi[zn+"_mask"]="u:t;x:"+ji+"%;y:0px;",Hi[zn].transform.x=qe.revToResp("-"+ji+"%",qe[Zi].rle);break;case"crl":case"lb":case"lt":case"cv":case"l":wi[zn+"_mask"]="u:t;x:-"+ji+"%;y:0px;",Hi[zn].transform.x=qe.revToResp(ji+"%",qe[Zi].rle);break;case"ch":case"t":wi[zn+"_mask"]="u:t;y:-"+ji+"%;y:0px;",Hi[zn].transform.y=qe.revToResp(ji+"%",qe[Zi].rle);break;case"b":wi[zn+"_mask"]="u:t;y:"+ji+"%;y:0px;",Hi[zn].transform.y=qe.revToResp("-"+ji+"%",qe[Zi].rle)}delete Hi[zn].transform.clip,delete Hi[zn].transform.clipB}wi[zn+"_mask"]&&(Hi[zn].mask=Ae(wi[zn+"_mask"],Zi).transform),Hi[zn].mask!=null&&Hi[zn].mask.use?(Hi[zn].mask.x=Hi[zn].mask.x===void 0?0:Hi[zn].mask.x,Hi[zn].mask.y=Hi[zn].mask.y===void 0?0:Hi[zn].mask.y,delete Hi[zn].mask.use,Hi[zn].mask.overflow="hidden"):Hi[zn].mask={ease:"default",overflow:"visible"},wi[zn+"_chars"]&&(Hi[zn].chars=Ae(wi[zn+"_chars"],Zi,void 0,void 0,"split").transform),wi[zn+"_words"]&&(Hi[zn].words=Ae(wi[zn+"_words"],Zi,void 0,void 0,"split").transform),wi[zn+"_lines"]&&(Hi[zn].lines=Ae(wi[zn+"_lines"],Zi,void 0,void 0,"split").transform),(wi[zn+"_chars"]||wi[zn+"_words"]||wi[zn+"_lines"])&&(Hi[zn].dosplit=!0),Hi.frame_0=Hi.frame_0===void 0?{transform:{}}:Hi.frame_0,Hi[zn].transform.auto&&(Hi[zn].transform=qe.clone(Hi.frame_0.transform),Hi[zn].transform.opacity=Hi[zn].transform.opacity===void 0?0:Hi[zn].transform.opacity,Hi.frame_0.filter!==void 0&&(Hi[zn].filter=qe.clone(Hi.frame_0.filter)),Hi.frame_0.mask!==void 0&&(Hi[zn].mask=qe.clone(Hi.frame_0.mask)),Hi.frame_0.chars!==void 0&&(Hi[zn].chars=qe.clone(Hi.frame_0.chars)),Hi.frame_0.words!==void 0&&(Hi[zn].words=qe.clone(Hi.frame_0.words)),Hi.frame_0.lines!==void 0&&(Hi[zn].lines=qe.clone(Hi.frame_0.lines)),Hi.frame_0.chars===void 0&&Hi.frame_0.words===void 0&&Hi.frame_0.lines===void 0||(Hi[zn].dosplit=!0)),wi[zn+"_sfx"]&&(Hi[zn].sfx=Ae(wi[zn+"_sfx"],Zi,!1,void 0,"sfx").transform),wi[zn+"_reverse"]&&(Hi[zn].reverse=Ae(wi[zn+"_reverse"],Zi,!1,void 0,"reverse").transform)}}if(Hi.frame_0.dosplit&&(Hi.frame_1.dosplit=!0),wi.frame_hover===void 0&&wi.svgh===void 0||(Hi.frame_hover=Ae(wi.frame_hover===void 0?"":wi.frame_hover,Zi),!qe.ISM||Hi.frame_hover.transform.instantClick!="true"&&Hi.frame_hover.transform.instantClick!=1?(delete Hi.frame_hover.transform.instantClick,Hi.frame_hover.transform.color=Hi.frame_hover.color,Hi.frame_hover.transform.color===void 0&&delete Hi.frame_hover.transform.color,Hi.frame_hover.bgcolor!==void 0&&0<=Hi.frame_hover.bgcolor.indexOf("gradient")?Hi.frame_hover.transform.backgroundImage=Hi.frame_hover.bgcolor:Hi.frame_hover.bgcolor!==void 0&&(Hi.frame_hover.transform.backgroundColor=Hi.frame_hover.bgcolor),Hi.frame_hover.bgcolor!==void 0&&(wi.bgcolinuse=!0),Hi.frame_hover.transform.opacity=Hi.frame_hover.transform.opacity===void 0?1:Hi.frame_hover.transform.opacity,Hi.frame_hover.mask=
193Hi.frame_hover.transform.mask!==void 0&&Hi.frame_hover.transform.mask,delete Hi.frame_hover.transform.mask,Hi.frame_hover.transform!==void 0&&((Hi.frame_hover.transform.borderWidth||Hi.frame_hover.transform.borderStyle)&&(Hi.frame_hover.transform.borderColor=Hi.frame_hover.transform.borderColor===void 0?"transparent":Hi.frame_hover.transform.borderColor),Hi.frame_hover.transform.borderStyle!=="none"&&Hi.frame_hover.transform.borderWidth===void 0&&(Hi.frame_hover.transform.borderWidth=qe.revToResp(0,4,0).toString().replace(/,/g," ")),wi.bordercolor===void 0&&Hi.frame_hover.transform.borderColor!==void 0&&(wi.bordercolor="transparent"),wi.borderwidth===void 0&&Hi.frame_hover.transform.borderWidth!==void 0&&(wi.borderwidth=qe.revToResp(Hi.frame_hover.transform.borderWidth,4,0)),wi.borderstyle===void 0)&&Hi.frame_hover.transform.borderStyle!==void 0&&(wi.borderstyle=qe.revToResp(Hi.frame_hover.transform.borderStyle,4,0))):delete Hi.frame_hover),wi.tloop!==void 0){wi.layerLoop={from:"frame_1",to:"frame_999",repeat:-1,keep:!0,children:!0};var hr=wi.tloop.split(";");for(vn in hr)if(hr.hasOwnProperty(vn)){var Ri=hr[vn].split(":");switch(Ri[0]){case"f":wi.layerLoop.from=Ri[1];break;case"t":wi.layerLoop.to=Ri[1];break;case"k":wi.layerLoop.keep=Ri[1];break;case"r":wi.layerLoop.repeat=parseInt(Ri[1],0);break;case"c":wi.layerLoop.children=Ri[1]}}wi.layerLoop.count=0}for(vn in(wi.loop_0||wi.loop_999)&&(Hi.loop=Ae(wi.loop_999,Zi,!0,"frame_999","loop"),Hi.loop.frame_0=Ae(wi.loop_0||"",Zi,!1,void 0,"loop").transform),Hi.frame_0.transform.opacity=Hi.frame_0.transform.opacity===void 0?0:Hi.frame_0.transform.opacity,Hi.frame_1.transform.opacity=Hi.frame_1.transform.opacity===void 0?1:Hi.frame_1.transform.opacity,Hi.frame_999.transform.opacity=Hi.frame_999.transform.opacity===void 0?"inherit":Hi.frame_999.transform.opacity,wi.clipPath&&wi.clipPath.use&&(Hi.frame_0.transform.clip=Hi.frame_0.transform.clip===void 0?100:parseInt(Hi.frame_0.transform.clip),Hi.frame_1.transform.clip=Hi.frame_1.transform.clip===void 0?100:parseInt(Hi.frame_1.transform.clip)),wi.resetfilter=!1,wi.useFilter={blur:!1,grayscale:!1,brightness:!1,b_blur:!1,b_grayscale:!1,b_brightness:!1,b_invert:!1,b_sepia:!1},Hi)Hi[vn].filter!==void 0?(wi.resetfilter=!0,wi.useFilter=Sn(wi.useFilter,Hi[vn].filter)):Hi[vn].filter==null&&(Hi[vn].filter={},wi.useFilter.blur&&(Hi[vn].filter.blur=0),wi.useFilter.grayscale&&(Hi[vn].filter.grayscale=0),wi.useFilter.brightness&&(Hi[vn].filter.brightness=100),wi.useFilter.b_blur&&(Hi[vn].filter.b_blur=0),wi.useFilter.b_grayscale&&(Hi[vn].filter.b_grayscale=0),wi.useFilter.b_brightness)&&(Hi[vn].filter.b_brightness=100);if(wi.resetFilter!==!0&&Hi.frame_hover!==void 0&&(wi.useFilter=Sn(wi.useFilter,Hi.frame_hover)),wi.resetfilter)for(var vn in Hi.frame_0.filter=qe.clone(Hi.frame_0.filter),Hi.frame_0.filter=Tn(wi.useFilter,qe.clone(Hi.frame_0.filter)),Hi)Hi[vn].filter!==void 0&&vn!=="frame_1"&&vn!=="frame_0"&&(Hi[vn].filter=qe.clone(Hi[vn].filter),Hi[vn].filter=Tn(wi.useFilter,qe.clone(Hi[vn].filter)));return Hi.frame_0.filter!==void 0&&(Hi.frame_1.filter=qe.clone(Hi.frame_1.filter),Hi.frame_0.filter.blur!==void 0&&Hi.frame_1.filter.blur!==0&&(Hi.frame_1.filter.blur=Hi.frame_1.filter.blur===void 0?0:Hi.frame_1.filter.blur),Hi.frame_0.filter.brightness!==void 0&&Hi.frame_1.filter.brightness!==100&&(Hi.frame_1.filter.brightness=Hi.frame_1.filter.brightness===void 0?100:Hi.frame_1.filter.brightness),Hi.frame_0.filter.grayscale!==void 0&&Hi.frame_1.filter.grayscale!==0&&(Hi.frame_1.filter.grayscale=Hi.frame_1.filter.grayscale===void 0?0:Hi.frame_1.filter.grayscale),Hi.frame_0.filter.b_blur!==void 0&&Hi.frame_1.filter.b_blur!==0&&(Hi.frame_1.filter.b_blur=Hi.frame_1.filter.b_blur===void 0?0:Hi.frame_1.filter.b_blur),Hi.frame_0.filter.b_brightness!==void 0&&Hi.frame_1.filter.b_brightness!==100&&(Hi.frame_1.filter.b_brightness=Hi.frame_1.filter.b_brightness===void 0?100:Hi.frame_1.filter.b_brightness),Hi.frame_0.filter.b_grayscale!==void 0&&Hi.frame_1.filter.b_grayscale!==0&&(Hi.frame_1.filter.b_grayscale=Hi.frame_1.filter.b_grayscale===void 0?0:Hi.frame_1.filter.b_grayscale),Hi.frame_0.filter.b_invert!==void 0&&Hi.frame_1.filter.b_invert!==0&&(Hi.frame_1.filter.b_invert=Hi.frame_1.filter.b_invert===void 0?0:Hi.frame_1.filter.b_invert),Hi.frame_0.filter.b_sepia!==void 0)&&Hi.frame_1.filter.b_sepia!==0&&(Hi.frame_1.filter.b_sepia=Hi.frame_1.filter.b_sepia===void 0?0:Hi.frame_1.filter.b_sepia),Cn(Hi,Zi,wi)},Tn=function(wi,Zi){return wi.blur?Zi.blur=Zi.blur===void 0?0:Zi.blur:delete Zi.blur,wi.brightness?Zi.brightness=Zi.brightness===void 0?100:Zi.brightness:delete Zi.brightness,wi.grayscale?Zi.grayscale=Zi.grayscale===void 0?0:Zi.grayscale:delete Zi.grayscale,wi.b_blur?Zi.b_blur=Zi.b_blur===void 0?0:Zi.b_blur:delete Zi.b_blur,wi.b_brightness?Zi.b_brightness=Zi.b_brightness===void 0?100:Zi.b_brightness:delete Zi.b_brightness,wi.b_grayscale?Zi.b_grayscale=Zi.b_grayscale===void 0?0:Zi.b_grayscale:delete Zi.b_grayscale,wi.b_invert?Zi.b_invert=Zi.b_invert===void 0?0:Zi.b_invert:delete Zi.b_invert,wi.b_sepia?Zi.b_sepia=Zi.b_sepia===void 0?0:Zi.b_sepia:delete Zi.b_sepia,Zi},Sn=function(wi,Zi){return wi.blur=wi.blur===!0||Zi.blur!==void 0&&Zi.blur!==0&&Zi.blur!=="0px",wi.grayscale=wi.grayscale===!0||Zi.grayscale!==void 0&&Zi.grayscale!==0&&Zi.grayscale!=="0%",wi.brightness=wi.brightness===!0||Zi.brightness!==void 0&&Zi.brightness!==100&&Zi.brightness!=="100%",wi.b_blur=wi.b_blur===!0||Zi.b_blur!==void 0&&Zi.b_blur!==0&&Zi.b_blur!=="0px",wi.b_grayscale=wi.b_grayscale===!0||Zi.b_grayscale!==void 0&&Zi.b_grayscale!==0&&Zi.b_grayscale!=="0%",wi.b_brightness=wi.b_brightness===!0||Zi.b_brightness!==void 0&&Zi.b_brightness!==100&&Zi.b_brightness!=="100%",wi.b_invert=wi.b_invert===!0||Zi.b_invert!==void 0&&Zi.b_invert!==0&&Zi.b_invert!=="0%",wi.b_sepia=wi.b_sepia===!0||Zi.b_sepia!==void 0&&Zi.b_sepia!==0&&Zi.b_sepia!=="0%",wi},Cn=function(wi,Zi,Qi){var Hi,vn={},zn=["transform","words","chars","lines","mask"],ji=qe[Zi].perspectiveType=="global"?qe[Zi].perspective:0,hr=!0,Ri=!1;for(Ue in wi)Ue!=="loop"&&Ue!=="frame_hover"&&(vn=$$2.extend(!0,vn,wi[Ue]));for(Ue in wi)if(wi.hasOwnProperty(Ue)&&(wi[Ue].timeline!==void 0&&(wi[Ue].timeline.usePerspective=!1),Ue!=="loop")&&Ue!=="frame_hover"){for(Hi in vn.transform)vn.transform.hasOwnProperty(Hi)&&(vn.transform[Hi]=(wi[Ue].transform[Hi]===void 0?Ue==="frame_0"?qe[Zi]._rdF0:Ue==="frame_1"?qe[Zi]._rdF1:vn:wi[Ue]).transform[Hi],wi[Ue].transform[Hi]=(wi[Ue].transform[Hi]===void 0?vn:wi[Ue]).transform[Hi]);for(var xs=1;xs<=4;xs++)for(Hi in vn[zn[xs]])vn[zn[xs]].hasOwnProperty(Hi)&&(wi[Ue][zn[xs]]=wi[Ue][zn[xs]]===void 0?{}:wi[Ue][zn[xs]],vn[zn[xs]][Hi]=(wi[Ue][zn[xs]][Hi]===void 0?Ue==="frame_0"?qe[Zi]._rdF0:Ue==="frame_1"?qe[Zi]._rdF1:vn:wi[Ue])[zn[xs]][Hi],wi[Ue][zn[xs]][Hi]=(wi[Ue][zn[xs]][Hi]===void 0?vn:wi[Ue])[zn[xs]][Hi]);wi[Ue].timeline!==void 0&&wi[Ue].timeline.usePerspective===!1&&wi[Ue].transform!==void 0&&(wi[Ue].transform.rotationY!==void 0||wi[Ue].transform.rotationX!==void 0||wi[Ue].transform.z!==void 0||ke(wi[Ue].chars)||ke(wi[Ue].words)||ke(wi[Ue].lines))&&(ji=qe[Zi].perspectiveType=="local"?wi[Ue].transform.transformPerspective===void 0?600:wi[Ue].transform.transformPerspective:ji,wi[Ue].timeline.usePerspective=!0,(ke(wi[Ue].chars)||ke(wi[Ue].words)||ke(wi[Ue].lines))&&!qe.is
193Firefox(Zi)&&(Ri=!0),hr=!1)}if(Ri&&requestAnimationFrame(function(){tpGS.gsap.set(Qi.c,{transformStyle:"preserve-3d"})}),wi.frame_0.timeline!==void 0&&wi.frame_0.timeline.usePerspective&&(wi.frame_0.transform.transformPerspective=qe[Zi].perspectiveType==="local"?wi.frame_0.transform.transformPerspective===void 0?ji:wi.frame_0.transform.transformPerspective:qe[Zi].perspectiveType==="isometric"?0:qe[Zi].perspective),hr)for(var Ue in wi)!wi.hasOwnProperty(Ue)||wi[Ue].transform===void 0||delete wi[Ue].transform.transformPerspective;return wi},tr=function(wi,Zi,Qi){if(wi.length===0)return{};for(var Hi=wi[0].getElementsByClassName(Zi),vn={},zn=0;zn<Hi.length;zn++)Qi!==void 0&&Hi[zn].className.indexOf(Qi)!==-1||(vn[Hi[zn].id]=Hi[zn]);if(wi[1]!==void 0)for(Hi=wi[1].getElementsByClassName(Zi),zn=0;zn<Hi.length;zn++)Qi!==void 0&&Hi[zn].className.indexOf(Qi)!==-1||(vn[Hi[zn].id]=Hi[zn]);return vn},xr=function(wi,Zi,Qi){if(wi[0].nodeName=="BR"||wi[0].tagName=="br"||typeof wi[0].className!="object"&&0<=wi[0].className.indexOf("rs_splitted_"))return!1;qe.sA(wi[0],"stylerecorder",!0),wi[0].id===void 0&&(wi[0].id="rs-layer-sub-"+Math.round(1e6*Math.random())),qe[Qi].computedStyle[wi[0].id]=window.getComputedStyle(wi[0],null);var Hi=wi[0].id!==void 0&&qe[Qi]._L[wi[0].id]!==void 0?qe[Qi]._L[wi[0].id]:wi.data(),vn=Zi==="rekursive"?$$2(qe.closestClass(wi[0],"rs-layer")):void 0,zn=(vn!==void 0&&(qe[Qi].computedStyle[vn[0].id]=qe[Qi].computedStyle[vn[0].id]===void 0?window.getComputedStyle(vn[0],null):qe[Qi].computedStyle[vn[0].id]),vn!==void 0&&qe[Qi].computedStyle[wi[0].id].fontSize==qe[Qi].computedStyle[vn[0].id].fontSize&&Le(qe[Qi].computedStyle[wi[0].id].fontWeight)==Le(qe[Qi].computedStyle[vn[0].id].fontWeight)&&qe[Qi].computedStyle[wi[0].id].lineHeight==qe[Qi].computedStyle[vn[0].id].lineHeight),ji=zn?vn[0].id!==void 0&&qe[Qi]._L[vn[0].id]!==void 0?qe[Qi]._L[vn[0].id]:vn.data():void 0,hr=0;for(Hi.basealign=Hi.basealign===void 0?"grid":Hi.basealign,Hi._isnotext||(Hi.fontSize=qe.revToResp(zn?ji.fontsize===void 0?parseInt(qe[Qi].computedStyle[vn[0].id].fontSize,0)||20:ji.fontsize:Hi.fontsize===void 0?Zi!=="rekursive"?20:"inherit":Hi.fontsize,qe[Qi].rle),Hi.fontWeight=qe.revToResp(zn?ji.fontweight===void 0?qe[Qi].computedStyle[vn[0].id].fontWeight||"inherit":ji.fontweight:Hi.fontweight===void 0?qe[Qi].computedStyle[wi[0].id].fontWeight||"inherit":Hi.fontweight,qe[Qi].rle),Hi.whiteSpace=qe.revToResp(zn?ji.whitespace===void 0?"nowrap":ji.whitespace:Hi.whitespace===void 0?"nowrap":Hi.whitespace,qe[Qi].rle),Hi.textAlign=qe.revToResp(zn?ji.textalign===void 0?"left":ji.textalign:Hi.textalign===void 0?"left":Hi.textalign,qe[Qi].rle),Hi.letterSpacing=qe.revToResp(zn?ji.letterspacing===void 0?parseInt(qe[Qi].computedStyle[vn[0].id].letterSpacing,0)||"inherit":ji.letterspacing:Hi.letterspacing===void 0?parseInt(qe[Qi].computedStyle[wi[0].id].letterSpacing==="normal"?0:qe[Qi].computedStyle[wi[0].id].letterSpacing,0)||"inherit":Hi.letterspacing,qe[Qi].rle),Hi.textDecoration=zn?ji.textDecoration===void 0?"none":ji.textDecoration:Hi.textDecoration===void 0?"none":Hi.textDecoration,hr=25,hr=vn===void 0||wi[0].tagName!=="I"&&wi[0].tagName!=="STRONG"?hr:"inherit",Hi.tshadow!==void 0&&(Hi.tshadow.b=qe.revToResp(Hi.tshadow.b,qe[Qi].rle),Hi.tshadow.h=qe.revToResp(Hi.tshadow.h,qe[Qi].rle),Hi.tshadow.v=qe.revToResp(Hi.tshadow.v,qe[Qi].rle))),Hi.type==="group"&&(Hi.whiteSpace="normal",Hi.textAlign=qe.revToResp(zn?ji.textalign===void 0?"left":ji.textalign:Hi.textalign===void 0?"left":Hi.textalign,qe[Qi].rle)),Hi.bshadow!==void 0&&(Hi.bshadow.b=qe.revToResp(Hi.bshadow.b,qe[Qi].rle),Hi.bshadow.h=qe.revToResp(Hi.bshadow.h,qe[Qi].rle),Hi.bshadow.v=qe.revToResp(Hi.bshadow.v,qe[Qi].rle),Hi.bshadow.s=qe.revToResp(Hi.bshadow.s,qe[Qi].rle)),Hi.tstroke!==void 0&&(Hi.tstroke.w=qe.revToResp(Hi.tstroke.w,qe[Qi].rle)),Hi.display=(zn?ji.display===void 0?qe[Qi].computedStyle[vn[0].id]:ji:Hi.display===void 0?qe[Qi].computedStyle[wi[0].id]:Hi).display,Hi.float=qe.revToResp(zn?ji.float===void 0?qe[Qi].computedStyle[vn[0].id].float||"none":ji.float:Hi.float===void 0?"none":Hi.float,qe[Qi].rle),Hi.clear=qe.revToResp(zn?ji.clear===void 0?qe[Qi].computedStyle[vn[0].id].clear||"none":ji.clear:Hi.clear===void 0?"none":Hi.clear,qe[Qi].rle),Hi.lineHeight=qe.revToResp(wi.is("img")||$$2.inArray(Hi.layertype,["video","image","audio"])!=-1?hr:zn?ji.lineheight===void 0?parseInt(qe[Qi].computedStyle[vn[0].id].lineHeight,0)||hr:ji.lineheight:Hi.lineheight===void 0?hr:Hi.lineheight,qe[Qi].rle),Hi.zIndex=zn?ji.zindex===void 0?parseInt(qe[Qi].computedStyle[vn[0].id].zIndex,0)||"inherit":ji.zindex:Hi.zindex===void 0?parseInt(qe[Qi].computedStyle[wi[0].id].zIndex,0)||"inherit":parseInt(Hi.zindex),Ri=0;Ri<4;Ri++)Hi["padding"+je[Ri]]=qe.revToResp(Hi["padding"+$e[Ri]]===void 0?parseInt(qe[Qi].computedStyle[wi[0].id]["padding"+je[Ri]],0)||0:Hi["padding"+$e[Ri]],qe[Qi].rle),Hi["margin"+je[Ri]]=qe.revToResp(Hi["margin"+$e[Ri]]===void 0?parseInt(qe[Qi].computedStyle[wi[0].id]["margin"+je[Ri]],0)||0:Hi["margin"+$e[Ri]],qe[Qi].rle),Hi["border"+je[Ri]+"Width"]=Hi.borderwidth===void 0?parseInt(qe[Qi].computedStyle[wi[0].id]["border"+je[Ri]+"Width"],0)||0:Hi.borderwidth[Ri],Hi["border"+je[Ri]+"Color"]=Hi.bordercolor===void 0?qe[Qi].computedStyle[wi[0].id]["border-"+$e[Ri]+"-color"]:Hi.bordercolor,Hi["border"+Ke[Ri]+"Radius"]=qe.revToResp(Hi.borderradiu
193s===void 0?qe[Qi].computedStyle[wi[0].id]["border"+Ke[Ri]+"Radius"]||0:Hi.borderradius[Ri],qe[Qi].rle);if(Hi.borderStyle=qe.revToResp(Hi.borderstyle===void 0?qe[Qi].computedStyle[wi[0].id].borderStyle||0:Hi.borderstyle,qe[Qi].rle),Zi!=="rekursive"?(Hi.color=qe.revToResp(Hi.color===void 0?"#ffffff":Hi.color,qe[Qi].rle,void 0,"||"),Hi.minWidth=qe.revToResp(Hi.minwidth===void 0?parseInt(qe[Qi].computedStyle[wi[0].id].minWidth,0)||0:Hi.minwidth,qe[Qi].rle),Hi.minHeight=qe.revToResp(Hi.minheight===void 0?parseInt(qe[Qi].computedStyle[wi[0].id].minHeight,0)||0:Hi.minheight,qe[Qi].rle),Hi.width=qe.revToResp(Hi.width===void 0?"auto":qe.smartConvertDivs(Hi.width),qe[Qi].rle),Hi.height=qe.revToResp(Hi.height===void 0?"auto":qe.smartConvertDivs(Hi.height),qe[Qi].rle),Hi.maxWidth=qe.revToResp(Hi.maxwidth===void 0?parseInt(qe[Qi].computedStyle[wi[0].id].maxWidth,0)||"none":Hi.maxwidth,qe[Qi].rle),Hi.maxHeight=qe.revToResp($$2.inArray(Hi.type,["column","row"])!==-1?"none":Hi.maxheight!==void 0?parseInt(qe[Qi].computedStyle[wi[0].id].maxHeight,0)||"none":Hi.maxheight,qe[Qi].rle)):Hi.layertype==="html"&&(Hi.width=qe.revToResp(wi[0].width,qe[Qi].rle),Hi.height=qe.revToResp(wi[0].height,qe[Qi].rle)),Hi._incolumn)for(var Ri=0;Ri<Hi.height.length;Ri++)Hi.height[Ri].indexOf("%")!==-1&&98<parseFloat(Hi.height[Ri])&&(Hi.height[Ri]=Hi.height[Ri].replace("%","px"));for(Hi.styleProps={background:wi[0].style.background,"background-color":wi[0].style["background-color"],color:wi[0].style.color,cursor:wi[0].style.cursor,"font-style":wi[0].style["font-style"]},Hi.bshadow==null&&(Hi.styleProps.boxShadow=wi[0].style.boxShadow),Hi.styleProps.background!==""&&Hi.styleProps.background!==void 0&&Hi.styleProps.background!==Hi.styleProps["background-color"]||delete Hi.styleProps.background,Hi.styleProps.color==""&&(Hi.styleProps.color=qe[Qi].computedStyle[wi[0].id].color),Ri=0;Ri<4;Ri++)er(Hi["padding"+je[Ri]],0)&&delete Hi["padding"+je[Ri]],er(Hi["margin"+je[Ri]],0)&&delete Hi["margin"+je[Ri]],(er(Hi["border"+Ke[Ri]+"Radius"],"0px")||er(Hi["border"+Ke[Ri]+"Radius"],"0"))&&delete Hi["border"+Ke[Ri]+"Radius"];if(er(Hi.borderStyle,"none"))for(delete Hi.borderStyle,Ri=0;Ri<4;Ri++)delete Hi["border"+je[Ri]+"Width"],delete Hi["border"+je[Ri]+"Color"]},er=function(wi,Zi){return Zi===wi[0]&&Zi===wi[1]&&Zi===wi[2]&&Zi===wi[3]},Hn=function(wi){var Zi,Qi,Hi,vn,zn,ji=wi.a,hr=wi.b,Ri=wi.c,xs=wi.d,En=wi.e,Ue={},bi={},Ji=qe[hr]._L[ji[0].id],Ii=ji[0].className,Ji=Ji===void 0?{}:Ji;if(typeof Ii=="object"&&(Ii=""),ji!==void 0&&ji[0]!==void 0&&(0<=Ii.indexOf("rs_splitted")||ji[0].nodeName=="BR"||ji[0].tagName=="br"||0<ji[0].tagName.indexOf("FCR")||0<ji[0].tagName.indexOf("BCR")))return!1;var Mn,En=En==="individual"?Ji.slideIndex:En,Fn=function(As,no,Ws){if(As!==void 0){if(As[0].nodeName=="BR"||As[0].tagName=="br")return!1;var ro,qs=qe[no].level,hs=As[0]!==void 0&&As[0].id!==void 0&&qe[no]._L[As[0].id]!==void 0?qe[no]._L[As[0].id]:As.data(),Nr=((hs=hs.basealign===void 0?Ws.data():hs)._isnotext===void 0&&(hs._isnotext=Ws!==void 0&&Ws[0]!==void 0&&0<Ws[0].length?qe.gA(Ws[0],"_isnotext"):hs._isnotext),{basealign:hs.basealign===void 0?"grid":hs.basealign,lineHeight:hs.basealign===void 0?"inherit":parseInt(hs.lineHeight[qs]),color:hs.color===void 0?void 0:hs.color[qs],width:hs.width===void 0?void 0:hs.width[qs]==="a"?"auto":hs.width[qs],height:hs.height===void 0?void 0:hs.height[qs]==="a"?"auto":hs.height[qs],minWidth:hs.minWidth===void 0?void 0:hs.minWidth[qs]==="n"?"none":hs.minWidth[qs],minHeight:hs.minHeight===void 0?void 0:hs.minHeight[qs]=="n"?"none":hs.minHeight[qs],maxWidth:hs.maxWidth===void 0?void 0:hs.maxWidth[qs]=="n"?"none":hs.maxWidth[qs],maxHeight:hs.maxHeight===void 0?void 0:hs.maxHeight[qs]=="n"?"none":hs.maxHeight[qs],float:hs.float[qs],clear:hs.clear[qs]});for(hs.borderStyle&&(Nr.borderStyle=hs.borderStyle[qs]),ro=0;ro<4;ro++)hs["padding"+je[ro]]&&(Nr["padding"+je[ro]]=hs["padding"+je[ro]][qs]),hs["margin"+je[ro]]&&(Nr["margin"+je[ro]]=parseInt(hs["margin"+je[ro]][qs])),hs["border"+Ke[ro]+"Radius"]&&(Nr["border"+Ke[ro]+"Radius"]=hs["border"+Ke[ro]+"Radius"][qs]),Nr.borderStyle!==void 0&&Nr.borderStyle!=="none"&&(hs["border"+je[ro]+"Color"]&&(Nr["border"+je[ro]+"Color"]=hs["border"+je[ro]+"Color"]),hs["border"+je[ro]+"Width"])&&(Nr["border"+je[ro]+"Width"]=parseInt(hs["border"+je[ro]+"Width"]));return hs._isnotext||(Nr.textDecoration=hs.textDecoration,Nr.fontSize=parseInt(hs.fontSize[qs]),Nr.fontWeight=parseInt(hs.fontWeight[qs]),Nr.letterSpacing=parseInt(hs.letterSpacing[qs])||0,Nr.textAlign=hs.textAlign[qs],Nr.whiteSpace=hs.whiteSpace[qs],Nr.whiteSpace=Nr.whiteSpace==="normal"&&Nr.width==="auto"&&(hs._incolumn!==!0&&hs._ingroup!==!0||hs.position!=="relative")?"
193nowrap":Nr.whiteSpace,Nr.display=hs.display,hs.tshadow!==void 0&&(Nr.textShadow=parseInt(hs.tshadow.h[qs],0)+"px "+parseInt(hs.tshadow.v[qs],0)+"px "+hs.tshadow.b[qs]+" "+hs.tshadow.c),hs.tstroke!==void 0&&(Nr.textStroke=parseInt(hs.tstroke.w[qs],0)+"px "+hs.tstroke.c)),hs.type==="group"&&(Nr.whiteSpace=hs.whiteSpace,Nr.textAlign=hs.textAlign[qs],Nr.display=hs.display),hs.bshadow!==void 0&&(Nr.boxShadow=parseInt(hs.bshadow.h[qs],0)+"px "+parseInt(hs.bshadow.v[qs],0)+"px "+parseInt(hs.bshadow.b[qs],0)+"px "+parseInt(hs.bshadow.s[qs],0)+"px "+hs.bshadow.c),Nr}}(ji,hr,wi.RSL),Cr=xs==="off"?1:qe[hr].CM.w;if(Ji._isnotext===void 0&&(Ji._isnotext=Fn.RSL!==void 0&&Fn.RSL[0]!==void 0&&0<Fn.RSL[0].length?qe.gA(Fn.RSL[0],"_isnotext"):Ji._isnotext),Ji._incolumn&&(Ji.type==="shape"||Ji.type==="text"||Ji.type==="button")&&(""+Fn.height).indexOf(!1)&&(Fn.height=Fn.height),Ji.OBJUPD=Ji.OBJUPD==null?{}:Ji.OBJUPD,Ji.caches=Ji.caches==null?{}:Ji.caches,Ji.type==="column"){for(Qi={},Mn={},Zi=0;Zi<4;Zi++)Fn["margin"+je[Zi]]!==void 0&&(Qi["padding"+je[Zi]]=Math.round(Fn["margin"+je[Zi]]*Cr)+"px",Mn["margin"+je[Zi]]=Fn["margin"+je[Zi]],delete Fn["margin"+je[Zi]]);$$2.isEmptyObject(Qi)||tpGS.gsap.set(Ji._column,Qi)}var _r=qe.clone(Ji.OBJUPD.POBJ),Or=qe.clone(Ji.OBJUPD.LPOBJ);if(Ii.indexOf("rs_splitted_")===-1){for(Qi={overwrite:"auto"},Zi=0;Zi<4;Zi++)Fn["border"+Ke[Zi]+"Radius"]!==void 0&&(Qi["border"+Ke[Zi]+"Radius"]=Fn["border"+Ke[Zi]+"Radius"]),Fn["padding"+je[Zi]]!==void 0&&(Qi["padding"+je[Zi]]=Math.round(Fn["padding"+je[Zi]]*Cr)+"px"),Fn["margin"+je[Zi]]===void 0||Ji._incolumn||Ji._ingroup&&Ji.position!="absolute"||(Qi["margin"+je[Zi]]=Ji.type==="row"?0:Math.round(Fn["margin"+je[Zi]]*Cr)+"px");if(Ji.spike!==void 0&&(Qi["clip-path"]=Qi["-webkit-clip-path"]=Ji.spike),Fn.boxShadow&&(Qi.boxShadow=Fn.boxShadow),Ji.type!=="column"&&(Fn.borderStyle!==void 0&&Fn.borderStyle!=="none"&&(Fn.borderTopWidth!==0||0<Fn.borderBottomWidth||0<Fn.borderLeftWidth||0<Fn.borderRightWidth)?(Qi.borderTopWidth=Math.round(Fn.borderTopWidth*Cr)+"px",Qi.borderBottomWidth=Math.round(Fn.borderBottomWidth*Cr)+"px",Qi.borderLeftWidth=Math.round(Fn.borderLeftWidth*Cr)+"px",Qi.borderRightWidth=Math.round(Fn.borderRightWidth*Cr)+"px",Qi.borderStyle=Fn.borderStyle,Qi.borderTopColor=Fn.borderTopColor,Qi.borderBottomColor=Fn.borderBottomColor,Qi.borderLeftColor=Fn.borderLeftColor,Qi.borderRightColor=Fn.borderRightColor):(Fn.borderStyle==="none"&&(Qi.borderStyle="none"),Fn.borderTopColor!==void 0&&(Qi.borderTopColor=Fn.borderTopColor),Fn.borderBottomColor!==void 0&&(Qi.borderBottomColor=Fn.borderBottomColor),Fn.borderLeftColor!==void 0&&(Qi.borderLeftColor=Fn.borderLeftColor),Fn.borderRightColor!==void 0&&(Qi.borderRightColor=Fn.borderRightColor))),Ji.type!=="shape"&&Ji.type!=="image"||!(Ve(Fn.borderTopLeftRadius)||Ve(Fn.borderTopRightRadius)||Ve(Fn.borderBottomLeftRadius)||Ve(Fn.borderBottomRightRadius))||(Qi.overflow="hidden"),Ji._isnotext||(Ji.type!=="column"&&(Qi.fontSize=Math.round(Fn.fontSize*Cr)+"px",Qi.fontWeight=Fn.fontWeight,Qi.letterSpacing=Fn.letterSpacing*Cr+"px",Fn.textShadow&&(Qi.textShadow=Fn.textShadow),Fn.textStroke)&&(Qi["-webkit-text-stroke"]=Fn.textStroke),Qi.lineHeight=Math.round(Fn.lineHeight*Cr)+"px",Qi.textAlign=Fn.textAlign),Ji.type==="video"&&Ji.html5vid&&Ji.deepmedia!==void 0&&Ji.deepmedia[0]!==void 0&&Ji.deepmedia[0].parentNode!=null&&(Ve(Fn.borderTopLeftRadius)||Ve(Fn.borderTopRightRadius)||Ve(Fn.borderBottomLeftRadius)||Ve(Fn.borderBottomRightRadius))&&tpGS.gsap.set(Ji.deepmedia[0].parentNode,function(As){return As=qe.clone(As),As.top=0-((parseInt(As.borderTopWidth)||0)+(parseInt(As.borderBottomWidth)||0))/2+"px",As.left=0-((parseInt(As.borderLeftWidth)||0)+(parseInt(As.borderRightWidth)||0))/2+"px",As.borderStyle=As.borderTopWidth!==void 0||As.borderBottomWidth!==void 0||As.borderLeftWidth!==void 0||As.borderRightWidth!==void 0?"solid":"none",As.borderColor="transparent",As.boxSizing="content-box",As}(Qi)),Ji.type==="column"&&Ji.cbg!==void 0&&(Ji.cbg_set===void 0&&(Ji.cbg_set=Ji.styleProps["background-color"],Ji.cbg_set=Ji.cbg_set==""||Ji.cbg_set===void 0||Ji.cbg_set.length==0?"transparent":Ji.cbg_set,Ji.cbg_img=ji[0].dataset.bglazy!==void 0?'url("'+ji[0].dataset.bglazy+'")':ji.css("backgroundImage"),Ji.cbg_img!==""&&Ji.cbg_img!==void 0&&Ji.cbg_img!=="none"&&(Ji.cbg_img_r=ji.css("backgroundRepeat"),Ji.cbg_img_p=ji.css("backgroundPosition"),Ji.cbg_img_s=ji.css("backgroundSize")),Ji.cbg_o=Ji.bgopacity&&1,Ue.backgroundColor="transparent",Ue.backgroundImage=""),Qi.backgroundColor="transparent",Qi.backgroundImage="none"),Ji._isstatic&&Ji.elementHovered&&(vn=ji.data("frames"))&&vn.frame_hover&&vn.frame_hover.transform)for(zn in Qi)Qi.hasOwnProperty(zn)&&vn.frame_hover.transform.hasOwnProperty(zn)&&delete Qi[zn];if(ji[0].nodeName=="IFRAME"&&qe.gA(ji[0],"layertype")==="html"&&(_s=Fn.basealign=="slide"?qe[hr].module.width:qe.iWA(hr,En),so=Fn.basealign=="slide"||qe[hr].sliderType=="carousel"&&qe[hr].carousel.orientation==="v"?qe[hr].module.height:qe.iHE(hr),Qi.width=!qe.isNumeric(Fn.width)&&0<=Fn.width.indexOf("%")?!Ji._isstatic||Ji._incolumn||Ji._ingroup?Fn.width:_s*parseInt(Fn.width,0)/100:Fe(Fn.width,Cr,"auto",_s,"auto"),Qi.height=!qe.isNumeric(Fn.height)&&0<=Fn.height.indexOf("%")?!Ji._isstatic||Ji._incolumn||Ji._ingroup?Fn.height:so*parseInt(Fn.height,0)/100:Fe(Fn.height,Cr,"auto",_s,"auto")),Ue=$$2.extend(!0,Ue,Qi),qe[hr].firstLayerCalculated=!0,Ri!="rekursive"){var _s=Fn.basealign=="slide"?qe[hr].module.width:qe.iWA(hr,En),so=Fn.basealign=="slide"||qe[hr].sliderType=="carousel"&&qe[hr].carousel.orientation==="v"?qe[hr].module.height:qe.iHE(hr),xs=!qe.isNumeric(Fn.width)&&0<=Fn.width.indexOf("%")?!Ji._isstatic||Ji._incolumn||Ji._ingroup?Fn.width:_s*parseInt(Fn.width,0)/100:Fe(Fn.width,Cr,"auto",_s,"auto"),Ii=!qe.isNumeric(Fn.height)&&0<=Fn.height.indexOf("%")?!Ji._isstatic||Ji._incolumn||Ji._ingroup?Fn.height:so*parseInt(Fn.height,0)/100:Fe(Fn.height,Cr,"auto",_s,"auto"),Ls={maxWidth:Fe(Fn.maxWidth,Cr,"none",_s,"none"),maxHeight:Fe(Fn.maxHeight,Cr,"none",so,"none"),minWidth:Fe(Fn.minWidth,Cr,"0px",_s,0),minHeight:Fe(Fn.minHeight,Cr,"0px",so,0),height:Ii,width:xs,overwrite:"auto"},Ri=(Ji.heightSetByVideo==1&&(Ls.height=Ji.vidOBJ.height),!1);if(Ji._incolumn){for(_r=$$2.extend(!0,_r,{minWidth:xs,maxWidth:xs,float:Fn.float,clear:Fn.clear}),Zi=0;Zi<4;Zi++)Fn["margin"+je[Zi]]!==void 0&&(_r["margin"+je[Zi]]=Fn["margin"+je[Zi]]*Cr+"px");Or.width="100%",Fn.display!==void 0&&Fn.display!=="inline-block"||(bi={width:"100%"}),Ls.width=!qe.isNumeric(Fn.width)&&0<=Fn.width.indexOf("%")?"100%":xs,Ji.type==="image"&&tpGS.gsap.set(Ji.img,{width:"100%"})}else!qe.isNumeric(Fn.width)&&0<=Fn.width.indexOf("%")&&(Ji._isgroup&&Ji.position==="absolute"||(Ji._ingroup===!0||Ji._incolumn==1)&&Ji.position==="relative"||Ji.reqWrp!==void 0&&(!Ji.reqWrp.loop||!Ji.reqWrp.mask)?_r.width=J
193i.basealign==="slide"||Ji._ingroup===!0||Ji._isstatic?xs:qe.iWA(hr,En)*qe[hr].CM.w*parseInt(xs)/100+"px":_r.minWidth=Ji.basealign==="slide"||Ji._ingroup===!0||Ji._isstatic?xs:qe.iWA(hr,En)*qe[hr].CM.w*parseInt(xs)/100+"px",Or.width="100%",bi.width="100%");if(Ji._ingroup===!0&&Ji.position==="relative"&&(_r.float=Fn.float,_r.lineHeight=Fn.lineHeight+"px",Ue.verticalAlign="top",bi.verticalAlign="top",Or.verticalAlign="top",_r.verticalAlign="inherit"),!qe.isNumeric(Fn.height)&&0<=Fn.height.indexOf("%")&&(_r.minHeight=Ji.basealign==="slide"||Ji._ingroup===!0||Ji._isstatic?Ii:qe.iHE(hr)*(qe[hr].currentRowsHeight>qe[hr].gridheight[qe[hr].level]?1:qe[hr].CM.w)*parseInt(Ii)/100+"px",Ji.reqWrp===void 0||Ji.reqWrp.loop||Ji.reqWrp.mask||(_r.height=_r.minHeight),Or.height="100%",bi.height="100%",Ri=!0),Ji._isnotext?Ji.type=="group"&&(Ls.whiteSpace="normal"):(Ls.whiteSpace=Fn.whiteSpace,Ls.textAlign=Fn.textAlign,Ls.textDecoration=Fn.textDecoration),Fn.color!="npc"&&Fn.color!==void 0&&(Ls.color=Fn.color),Ji._ingroup&&(Ji._groupw=Ls.minWidth,Ji._grouph=Ls.minHeight),Ji.type==="row"&&(qe.isNumeric(Ls.minHeight)||0<=Ls.minHeight.indexOf("px"))&&Ls.minHeight!=="0px"&&Ls.minHeight!==0&&Ls.minHeight!=="0"&&Ls.minHeight!=="none"?Ls.height=Ls.minHeight:Ji.type==="row"&&(Ls.height="auto"),Ji._isstatic&&Ji.elementHovered&&(vn=ji.data("frames"))&&vn.frame_hover&&vn.frame_hover.transform)for(zn in Ls)Ls.hasOwnProperty(zn)&&vn.frame_hover.transform.hasOwnProperty(zn)&&delete Ls[zn];if(Ji.type!=="group"&&Ji.type!=="row"&&Ji.type!=="column"&&(!qe.isNumeric(Ls.width)&&0<=Ls.width.indexOf("%")&&(Ls.width="100%"),!qe.isNumeric(Ls.height))&&0<=Ls.height.indexOf("%")&&(Ls.height="100%"),Ji._isgroup){for(!qe.isNumeric(Ls.width)&&0<=Ls.width.indexOf("%")&&(Ls.width="100%"),Ji.position!="absolute"||Ji._ingroup||Ji._incolumn||!Ri?_r.he
193ight=Ri?"100%":Ls.height:(_r.height=_r.minHeight,Ls.height="100%"),Ls.lineHeight=Fn.lineHeight===void 0||Ri?"initial":Fn.lineHeight+"px",Ls.verticalAlign=Ji.verticalalign,Ls.textAlign=Fn.textAlign,Zi=0;Zi<4;Zi++)Ue["border"+Ke[Zi]+"Radius"]!==void 0&&(bi["border"+Ke[Zi]+"Radius"]=Ue["border"+Ke[Zi]+"Radius"]);Ji.position=="relative"&&Fn.display!==void 0&&(_r.display=Fn.display),Fn.width=="auto"&&(bi.position="relative")}Ue=$$2.extend(!0,Ue,Ls),Ji.svg_src!=null&&Ji.svgI!==void 0&&(typeof Ji.svgI.fill=="string"&&(Ji.svgI.fill=[Ji.svgI.fill]),Ji.svgTemp=qe.clone(Ji.svgI),delete Ji.svgTemp.svgAll,Ji.svgTemp.fill!==void 0&&(Ji.elementHovered&&Ji._isstatic)!==!0&&(Ji.svgTemp.fill=Ji.svgTemp.fill[qe[hr].level],Ji.svg.length<=0&&(Ji.svg=ji.find("svg")),Ji.svgPath.length<=0&&(Ji.svgPath=Ji.svg.find(Ji.svgI.svgAll?"path, circle, ellipse, line, polygon, polyline, rect":"path")),tpGS.gsap.set(Ji.svgPath,{fill:Ji.svgI.fill[qe[hr].level]})),tpGS.gsap.set(Ji.svg,Ji.svgTemp))}if(Ji.type==="row")for(Zi=0;Zi<4;Zi++)Fn["margin"+je[Zi]]!==void 0&&(_r["padding"+je[Zi]]=Fn["margin"+je[Zi]]*Cr+"px");if(Ji._ingroup&&Ji.position=="relative"){for(Zi=0;Zi<4;Zi++)Fn["margin"+je[Zi]]!==void 0&&(_r["margin"+je[Zi]]=Fn["margin"+je[Zi]]*Cr+"px");Ji.type==="shape"&&bi.width=="100%"&&bi.height=="100%"&&(bi.position="absolute")}if(Ji.type==="column"&&Ji.cbg&&0<Ji.cbg.length){for(Ji.cbg_img_s!==void 0&&Ji.cbg!==void 0&&(Ji.cbg[0].style.backgroundSize=Ji.cbg_img_s),Qi={},Ji.styleProps.cursor!==""&&(Qi.cursor=Ji.styleProps.cursor),Ji.cbg_set!==""&&Ji.cbg_set!=="transparent"&&(Qi.backgroundColor=Ji.cbg_set),Ji.cbg_img!==""&&Ji.cbg_img!=="none"&&(Qi.backgroundImage=Ji.cbg_img,Ji.cbg_img_r!==""&&(Qi.backgroundRepeat=Ji.cbg_img_r),Ji.cbg_img_p!=="")&&(Qi.backgroundPosition=Ji.cbg_img_p),Ji.cbg_o!==""&&Ji.cbg_o!==void 0&&(Qi.opacity=Ji.cbg_o),Zi=0;Zi<4;Zi++)Fn.borderStyle!==void 0&&Fn.borderStyle!=="none"&&(Fn["border"+je[Zi]+"Width"]!==void 0&&(Qi["border"+je[Zi]+"Width"]=Math.round(parseInt(Fn["border"+je[Zi]+"Width"])*Cr)+"px"),Fn["border"+je[Zi]+"Color"]!==void 0)&&(Qi["border"+je[Zi]+"Color"]=Fn["border"+je[Zi]+"Color"]),Fn["border"+Ke[Zi]+"Radius"]&&(Qi["border"+Ke[Zi]+"Radius"]=Fn["border"+Ke[Zi]+"Radius"]);for(Fn.borderStyle!==void 0&&Fn.borderStyle!=="none"&&(Qi.borderStyle=Fn.borderStyle),(Hi=JSON.stringify(Qi))!==qe[hr].emptyObject&&Hi!==Ji.caches.cbgS&&tpGS.gsap.set(Ji.cbg,Qi),Ji.caches.cbgS=Hi,Qi={},Zi=0;Zi<4;Zi++)Mn["margin"+je[Zi]]&&(Qi[$e[Zi]]=Mn["margin"+je[Zi]]*Cr+"px");(Hi=JSON.stringify(Qi))!==qe[hr].emptyObject&&Hi!==Ji.caches.cbgmaskS&&(tpGS.gsap.set(Ji.cbgmask,Qi),Ji.caches.cbgmaskS=Hi)}for(var go in Ji.reqWrp===void 0||Ji.reqWrp.loop||Ji.reqWrp.mask||Ue.width!="100%"||Ue.height!="100%"||(Ue.position="absolute"),_r.maxWidth==="auto"&&(_r.maxWidth="inherit"),_r.maxHeight==="auto"&&(_r.maxHeight="inherit"),bi.maxWidth==="auto"&&(bi.maxWidth="inherit"),bi.maxHeight==="auto"&&(bi.maxHeight="inherit"),Or.maxWidth==="auto"&&(Or.maxWidth="inherit"),Or.maxHeight==="auto"&&(Or.maxHeight="inherit"),Ji.fullinset&&Ji._ingroup==1&&Ji.position==="absolute"&&(_r.width="auto",_r.minHeight="auto",_r.height="auto",_r.left=Ue.marginLeft!==void 0&&Ue.marginLeft!=="0px"?Ue.marginLeft:"0px",_r.right=Ue.marginRight!==void 0&&Ue.marginRight!=="0px"?Ue.marginRight:"0px",_r.top=Ue.marginTop!==void 0&&Ue.marginTop!=="0px"?Ue.marginTop:"0px",_r.bottom=Ue.marginBottom!==void 0&&Ue.marginBottom!=="0px"?Ue.marginBottom:"0px",delete Ue.marginLeft,delete Ue.marginRight,delete Ue.marginTop,delete Ue.marginBottom),Ji.vidOBJ!==void 0&&(Ue.width=Ji.vidOBJ.width,Ue.height=Ji.vidOBJ.height),Ji.OBJUPD.lppmOBJ!==void 0&&(Ji.OBJUPD.lppmOBJ.minWidth!==void 0&&(Or.minWidth=Ji.OBJUPD.lppmOBJ.minWidth,bi.minWidth=Ji.OBJUPD.lppmOBJ.minWidth),Ji.OBJUPD.lppmOBJ.minHeight!==void 0)&&(Or.minHeight=Ji.OBJUPD.lppmOBJ.minHeight,bi.minHeight=Ji.OBJUPD.lppmOBJ.minHeight,_r.minHeight=Ji.OBJUPD.lppmOBJ.minHeight),Ji._incolumn&&Ji.type=="group"&&_r!==void 0&&_r.minWidth=="100%"&&(bi.width="100%"),Ji._isgroup&&Ji.thFixed&&Ji.reqWrp!==void 0&&Ji.reqWrp.loop&&Ji.reqWrp.mask&&Fn.width=="auto"&&(Or.position="relative"),!Ji._ingroup||Ji.reqWrp.loop||Ji.reqWrp.mask||Ji.position!="absolute"||_r.minHeight!="100%"||(_r.height="100%"),qe[hr].calcResponsiveLayerHooks)go=qe[hr].calcResponsiveLayerHooks[go]({id:hr,L:ji,obj:Fn,_:Ji,inobj:wi,LOBJ:Ue,LPOBJ:Or,MOBJ:bi,POBJ:_r}),go!=null&&(go.obj!==void 0&&(Fn=$$2.extend(!0,Fn,go.obj)),go.LOBJ!==void 0&&(Ue=$$2.extend(!0,Ue,go.LOBJ)),go.LPOBJ!==void 0&&(Or=$$2.extend(!0,Or,go.LPOBJ)),go.MOBJ!==void 0&&(bi=$$2.extend(!0,bi,go.MOBJ)),go.POBJ!==void 0)&&(_r=$$2.extend(!0,_r,go.POBJ));Hi=JSON.stringify(Ue),_s=JSON.stringify(Or),so=JSON.stringify(bi),En=JSON.stringify(_r),Ji.imgOBJ===void 0||Ji.caches.imgOBJ!==void 0&&Ji.caches.imgOBJ.width===Ji.imgOBJ.width&&Ji.caches.imgOBJ.height===Ji.imgOBJ.height&&Ji.caches.imgOBJ.left===Ji.imgOBJ.left&&Ji.caches.imgOBJ.right===Ji.imgOBJ.right&&Ji.caches.imgOBJ.top===Ji.imgOBJ.top&&Ji.caches.imgOBJ.bottom===Ji.imgOBJ.bottom||(Ji.caches.imgOBJ=qe.clone(Ji.imgOBJ),Ji.imgOBJ.position="relative",tpGS.gsap.set(Ji.img,Ji.imgOBJ)),Ji.mediaOBJ===void 0||Ji.caches.mediaOBJ!==void 0&&Ji.caches.mediaOBJ.width===Ji.mediaOBJ.width&&Ji.caches.mediaOBJ.height===Ji.mediaOBJ.height&&Ji.caches.mediaOBJ.display===Ji.mediaOBJ.display||(Ji.caches.mediaOBJ=qe.clone(Ji.mediaOBJ),Ji.media.css(Ji.mediaOBJ)),Hi!=qe[hr].emptyObject&&Hi!=Ji.caches.LOBJ&&(tpGS.gsap.set(ji,Ue),Ji.caches.LOBJ=Hi),Ji.lp!==void 0&&_s!=qe[hr].emptyObject&&_s!=Ji.caches.LPOBJ&&(tpGS.gsap.set(Ji.lp,Or),Ji.caches.LPOBJ=_s),so!=qe[hr].emptyObject&&so!=Ji.caches.MOBJ&&(tpGS.gsap.set(Ji.m,bi),Ji.caches.MOBJ=so),En!=qe[hr].emptyObject&&En!=Ji.caches.POBJ&&(tpGS.gsap.set(Ji.p,_r),Ji.caches.POBJ=En,Ji.caches.POBJ_LEFT=_r.left,Ji.caches.POBJ_TOP=_r.top)}},Er=function(wi){var Zi,Qi={l:"none",lw:10,r:"none",rw:10};for(Zi in wi=wi.split(";"))if(wi.hasOwnProperty(Zi)){var Hi=wi[Zi].split(":");switch(Hi[0]){case"l":Qi.l=Hi[1];break;case"r":Qi.r=Hi[1];break;case"lw":Qi.lw=Hi[1];break;case"rw":Qi.rw=Hi[1]}}
193return"polygon("+os(Qi.l,0,parseFloat(Qi.lw))+","+os(Qi.r,100,100-parseFloat(Qi.rw),!0)+")"},os=function(wi,Zi,Qi,Hi){switch(wi){case"none":zn=Zi+"% 100%,"+Zi+"% 0%";break;case"top":zn=Qi+"% 100%,"+Zi+"% 0%";break;case"middle":zn=Qi+"% 100%,"+Zi+"% 50%,"+Qi+"% 0%";break;case"bottom":zn=Zi+"% 100%,"+Qi+"% 0%";break;case"two":zn=Qi+"% 100%,"+Zi+"% 75%,"+Qi+"% 50%,"+Zi+"% 25%,"+Qi+"% 0%";break;case"three":zn=Zi+"% 100%,"+Qi+"% 75%,"+Zi+"% 50%,"+Qi+"% 25%,"+Zi+"% 0%";break;case"four":zn=Zi+"% 100%,"+Qi+"% 87.5%,"+Zi+"% 75%,"+Qi+"% 62.5%,"+Zi+"% 50%,"+Qi+"% 37.5%,"+Zi+"% 25%,"+Qi+"% 12.5%,"+Zi+"% 0%";break;case"five":zn=Zi+"% 100%,"+Qi+"% 90%,"+Zi+"% 80%,"+Qi+"% 70%,"+Zi+"% 60%,"+Qi+"% 50%,"+Zi+"% 40%,"+Qi+"% 30%,"+Zi+"% 20%,"+Qi+"% 10%,"+Zi+"% 0%"}if(Hi){var vn=zn.split(","),zn="";for(Qi in vn)vn.hasOwnProperty(Qi)&&(zn+=vn[vn.length-1-Qi]+(Qi<vn.length-1?",":""))}return zn};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.layeranimation={loaded:!0,version:"6.6.17"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(),function(){$$2.fn.revolution=$$2.fn.revolution||{};var De=$$2.fn.revolution;function _e(Je,fi){return Je=new Object({single:".tp-"+fi,c:De[Je].cpar.find(".tp-"+fi+"s")}),Je.mask=Je.c.find(".tp-"+fi+"-mask"),Je.wrap=Je.c.find(".tp-"+fi+"s-inner-wrapper"),Je}$$2.extend(!0,De,{hideUnHideNav:function(Je){window.requestAnimationFrame(function(){var fi=!1;ci(De[Je].navigation.arrows)&&(fi=an(De[Je].navigation.arrows,Je,fi)),ci(De[Je].navigation.bullets)&&(fi=an(De[Je].navigation.bullets,Je,fi)),ci(De[Je].navigation.thumbnails)&&(fi=an(De[Je].navigation.thumbnails,Je,fi)),(fi=ci(De[Je].navigation.tabs)?an(De[Je].navigation.tabs,Je,fi):fi)&&De.manageNavigation(Je)})},getOuterNavDimension:function(Je){De[Je].navigation.scaler=Math.max(0,Math.min(1,(De.winW-480)/500));var fi={left:0,right:0,horizontal:0,vertical:0,top:0,bottom:0};return De[Je].navigation.thumbnails&&De[Je].navigation.thumbnails.enable&&(De[Je].navigation.thumbnails.isVisible=De[Je].navigation.thumbnails.hide_under<De[Je].module.width&&De[Je].navigation.thumbnails.hide_over>De[Je].module.width,De[Je].navigation.thumbnails.cw=Math.max(Math.round(De[Je].navigation.thumbnails.width*De[Je].navigation.scaler),De[Je].navigation.thumbnails.min_width),De[Je].navigation.thumbnails.ch=Math.round(De[Je].navigation.thumbnails.cw/De[Je].navigation.thumbnails.width*De[Je].navigation.thumbnails.height),De[Je].navigation.thumbnails.isVisible&&De[Je].navigation.thumbnails.position==="outer-left"?fi.left=De[Je].navigation.thumbnails.cw+2*De[Je].navigation.thumbnails.wrapper_padding:De[Je].navigation.thumbnails.isVisible&&De[Je].navigation.thumbnails.position==="outer-right"?fi.right=De[Je].navigation.thumbnails.cw+2*De[Je].navigation.thumbnails.wrapper_padding:De[Je].navigation.thumbnails.isVisible&&De[Je].navigation.thumbnails.position==="outer-top"?fi.top=De[Je].navigation.thumbnails.ch+2*De[Je].navigation.thumbnails.wrapper_padding:De[Je].navigation.thumbnails.isVisible&&De[Je].navigation.thumbnails.position==="outer-bottom"&&(fi.bottom=De[Je].navigation.thumbnails.ch+2*De[Je].navigation.thumbnails.wrapper_padding)),De[Je].navigation.tabs&&De[Je].navigation.tabs.enable&&(De[Je].navigation.tabs.isVisible=De[Je].navigation.tabs.hide_under<De[Je].module.width&&De[Je].navigation.tabs.hide_over>De[Je].module.width,De[Je].navigation.tabs.cw=Math.max(Math.round(De[Je].navigation.tabs.width*De[Je].navigation.scaler),De[Je].navigation.tabs.min_width),De[Je].navigation.tabs.ch=Math.round(De[Je].navigation.tabs.cw/De[Je].navigation.tabs.width*De[Je].navigation.tabs.height),De[Je].navigation.tabs.isVisible&&De[Je].navigation.tabs.position==="outer-left"?fi.left+=De[Je].navigation.tabs.cw+2*De[Je].navigation.tabs.wrapper_padding:De[Je].navigation.tabs.isVisible&&De[Je].navigation.tabs.position==="outer-right"?fi.right+=De[Je].navigation.tabs.cw+2*De[Je].navigation.tabs.wrapper_padding:De[Je].navigation.tabs.isVisible&&De[Je].navigation.tabs.position==="outer-top"?fi.top+=De[Je].navigation.tabs.ch+2*De[Je].navigation.tabs.wrapper_padding:De[Je].navigation.tabs.isVisible&&De[Je].navigation.tabs.position==="outer-bottom"&&(fi.bottom+=De[Je].navigation.tabs.ch+2*De[Je].navigation.tabs.wrapper_padding)),{left:fi.left,right:fi.right,horizontal:fi.left+fi.right,vertical:fi.top+fi.bottom,top:fi.top,bottom:fi.bottom}},resizeThumbsTabs:function(Je,fi){var Gi,fn,cn,Tn,Sn;return De[Je]!==void 0&&De[Je].navigation.use&&(De[Je].navigation&&De[Je].navigation.bullets.enable||De[Je].navigation&&De[Je].navigation.tabs.enable||De[Je].navigation&&De[Je].navigation.thumbnails.enable)&&(Gi=tpGS.gsap.timeline(),fn=De[Je].navigation.tabs,cn=De[Je].navigation.thumbnails,Tn=De[Je].navigation.bullets,Gi.pause(),ci(fn)&&(fi||fn.width>fn.min_width)&&Ve(Je,Gi,De[Je].c,fn,De[Je].slideamount,"tab"),ci(cn)&&(fi||cn.width>cn.min_width)&&Ve(Je,Gi,De[Je].c,cn,De[Je].slideamount,"thumb"),ci(Tn)&&fi&&(Sn=De[Je].c.find(".tp-bullets")).find(".tp-bullet").each(function(xr){var tr=$$2(this),xr=xr+1,er
193=tr.outerWidth()+parseInt(Tn.space===void 0?0:Tn.space,0),Hn=tr.outerHeight()+parseInt(Tn.space===void 0?0:Tn.space,0);Tn.direction==="vertical"?(tr.css({top:(xr-1)*Hn+"px",left:"0px"}),Sn.css({height:(xr-1)*Hn+tr.outerHeight(),width:tr.outerWidth()})):(tr.css({left:(xr-1)*er+"px",top:"0px"}),Sn.css({width:(xr-1)*er+tr.outerWidth(),height:tr.outerHeight()}))}),Gi.play()),!0},updateNavIndexes:function(Je){var fi=De[Je].c;function Gi(fn){0<fi.find(fn).lenght&&fi.find(fn).each(function(cn){$$2(this).data("liindex",cn)})}Gi("rs-tab"),Gi("rs-bullet"),Gi("rs-thumb"),De.resizeThumbsTabs(Je,!0),De.manageNavigation(Je)},manageNavigation:function(Je,fi){De[Je].navigation.use&&(ci(De[Je].navigation.bullets)&&(De[Je].sliderLayout!="fullscreen"&&De[Je].sliderLayout!="fullwidth"&&(De[Je].navigation.bullets.h_offset_old=De[Je].navigation.bullets.h_offset_old===void 0?parseInt(De[Je].navigation.bullets.h_offset,0):De[Je].navigation.bullets.h_offset_old,De[Je].navigation.bullets.h_offset=De[Je].navigation.bullets.h_align==="center"?De[Je].navigation.bullets.h_offset_old+De[Je].outNavDims.left/2-De[Je].outNavDims.right/2:De[Je].navigation.bullets.h_offset_old+De[Je].outNavDims.left),Li(De[Je].navigation.bullets,Je)),ci(De[Je].navigation.thumbnails)&&Li(De[Je].navigation.thumbnails,Je),ci(De[Je].navigation.tabs)&&Li(De[Je].navigation.tabs,Je),ci(De[Je].navigation.arrows)&&(De[Je].sliderLayout!="fullscreen"&&De[Je].sliderLayout!="fullwidth"&&(De[Je].navigation.arrows.left.h_offset_old=De[Je].navigation.arrows.left.h_offset_old===void 0?parseInt(De[Je].navigation.arrows.left.h_offset,0):De[Je].navigation.arrows.left.h_offset_old,De[Je].navigation.arrows.left.h_offset=(De[Je].navigation.arrows.left.h_align,De[Je].navigation.arrows.left.h_offset_old),De[Je].navigation.arrows.right.h_offset_old=De[Je].navigation.arrows.right.h_offset_old===void 0?parseInt(De[Je].navigation.arrows.right.h_offset,0):De[Je].navigation.arrows.right.h_offset_old,De[Je].navigation.arrows.right.h_offset=(De[Je].navigation.arrows.right.h_align,De[Je].navigation.arrows.right.h_offset_old)),Li(De[Je].navigation.arrows.left,Je),Li(De[Je].navigation.arrows.right,Je)),fi!==!1)&&(ci(De[Je].navigation.thumbnails)&&Fe(De[Je].navigation.thumbnails,Je),ci(De[Je].navigation.tabs))&&Fe(De[Je].navigation.tabs,Je)},showFirstTime:function(Je){Ai(Je),De.hideUnHideNav(Je)},selectNavElement:function(Je,fi,Gi,fn){for(var cn=De[Je].cpar[0].getElementsByClassName(Gi),Tn=0;Tn<cn.length;Tn++)De.gA(cn[Tn],"key")===fi?(cn[Tn].classList.add("selected"),fn!==void 0&&fn()):cn[Tn].classList.remove("selected")},transferParams:function(Je,fi){if(fi!==void 0)for(var Gi in fi.params)Je=Je.replace(fi.params[Gi].from,fi.params[Gi].to);return Je},updateNavElementContent:function(Je,fi,Gi,fn,cn){if(De[Je].pr_next_key!==void 0||De[Je].pr_active_key!==void 0){var Tn,Sn=De[Je].pr_next_key===void 0?De[Je].pr_cache_pr_next_key===void 0?De[Je].pr_active_key:De[Je].pr_cache_pr_next_key:De[Je].pr_next_key,Cn=De.gA(De[Je].slides[Sn],"key"),tr=0,xr=!1;for(Tn in Gi.enable&&De.selectNavElement(Je,Cn,"tp-bullet"),fn.enable&&De.selectNavElement(Je,Cn,"tp-thumb",function(){Fe(fn,Je)}),cn.enable&&De.selectNavElement(Je,Cn,"tp-tab",function(){Fe(cn,Je)}),De[Je].thumbs)tr=xr===!0?tr:Tn,xr=De[Je].thumbs[Tn].id===Cn||Tn==Cn||xr;Sn=0<(tr=parseInt(tr,0))?tr-1:De[Je].slideamount-1,Gi=tr+1==De[Je].slideamount?0:tr+1,fi.enable===!0&&fi.pi!==Sn&&fi.ni!==Gi&&(fi.pi=Sn,fi.ni=Gi,fi.left.c[0].innerHTML=De.transferParams(fi.tmp,De[Je].thumbs[Sn]),Gi>De[Je].slideamount||(fi.right.c[0].innerHTML=De.transferParams(fi.tmp,De[Je].thumbs[Gi]),fi.right.iholder=fi.right.c.find(".tp-arr-imgholder"),fi.left.iholder=fi.left.c.find(".tp-arr-imgholder"),fi.rtl?(fi.left.iholder[0]!==void 0&&tpGS.gsap.set(fi.left.iholder,{backgroundImage:"url("+De[Je].thumbs[Gi].src+")"}),De[Je].thumbs[Sn]!==void 0&&fi.right.iholder[0]!==void 0&&tpGS.gsap.set(fi.right.iholder,{backgroundImage:"url("+De[Je].thumbs[Sn].src+")"})):(De[Je].thumbs[Sn]!==void 0&&fi.left.iholder[0]!==void 0&&tpGS.gsap.set(fi.left.iholder,{backgroundImage:"url("+De[Je].thumbs[Sn].src+")"}),fi.right.iholder[0]!==void 0&&tpGS.gsap.set(fi.right.iholder,{backgroundImage:"url("+De[Je].thumbs[Gi].src+")"}))))}},createNavigation:function(Je){var fi,Gi,fn,cn=De[Je].navigation.arrows,Tn=De[Je].navigation.bullets,Sn=De[Je].navigation.thumbnails,Cn=De[Je].navigation.tabs,tr=ci(cn),xr=ci(Tn),er=ci(Sn),Hn=ci(Cn);for(fi in Ie(Je),je(Je),tr&&(Ei(cn,Je),cn.c=De[Je].cpar.find(".tparrows")),De[Je].slides)De[Je].slides.hasOwnProperty(fi)&&De.gA(De[Je].slides[fi],"not_in_nav")!="true"&&(Gi=$$2(De[Je].slides[De[Je].slides.length-1-fi]),fn=$$2(De[Je].slides[fi]),xr&&(De[Je].navigation.bullets.rtl?Di(De[Je].c,Tn,Gi,Je):Di(De[Je].c,Tn,fn,Je)),er&&(De[Je].navigation.thumbnails.rtl?zi(De[Je].c,Sn,Gi,"tp-thumb",Je):zi(De[Je].c,Sn,fn,"tp-thumb",Je)),Hn)&&(De[Je].navigation.tabs.rtl?zi(De[Je].c,Cn,Gi,"tp-tab",Je):zi(De[Je].c,Cn,fn,"tp-tab",Je));xr&&Li(Tn,Je),er&&Li(Sn,Je),Hn&&Li(Cn,Je),(er||Hn)&&De.updateDims(Je),De[Je].navigation.createNavigationDone=!0,er&&$$2.extend(!0,Sn,_e(Je,"thumb")),Hn&&$$2.extend(!0,Cn,_e(Je,"tab")),De[Je].c.on("revolution.slide.onafterswap revolution.nextslide.waiting",function(){De.updateNavElementContent(Je,cn,Tn,Sn,Cn)}),qe(cn),qe(Tn),qe(Sn),qe(Cn),De[Je].cpar.on(De.ISM?"touchstart touchmove":"mouseenter mousemove",function(Er){Er.target!==void 0&&Er.target.className!==void 0&&typeof Er.target.className=="string"&&0<=Er.target.className.indexOf("rs-waction")||De[Je].tpMouseOver!==!0&&De[Je].firstSlideAvailable&&(De[Je].tpMouseOver=!0,Ai(Je),De.ISM)&&De[Je].someNavIsDragged!==!0&&(gi(De[Je].hideAllNavElementTimer),De[Je].hideAllNavElementTimer=setTimeout(function(){De[Je].tpMouseOver=!1,ii(Je)},150))}
193),De[Je].cpar.on(De.ISM?"touchend":"mouseleave ",function(){De[Je].tpMouseOver=!1,ii(Je)}),(er||Hn||De[Je].sliderType==="carousel"||De[Je].navigation.touch.touchOnDesktop||De[Je].navigation.touch.touchenabled&&De.ISM)&&$e(Je),De[Je].navigation.initialised=!0,De.updateNavElementContent(Je,cn,Tn,Sn,Cn),De.showFirstTime(Je)}});function Ae(Je,fi){var Gi,fn=!1;for(Gi in fi.path!==void 0&&!De.ISM||(fn=Ke(fi.target,Je)),fi.path)fi.path.hasOwnProperty(Gi)&&fi.path[Gi].tagName===Je&&(fn=!0);return fn}function ke(Je,fi,Sn,cn){var cn=cn===void 0?Je.outerHeight(!0):cn,Tn=De[Sn]==null?0:(De[Sn].canv.height==0?De[Sn].module:De[Sn].canv).height,Tn=fi.container=="layergrid"?De[Sn].sliderLayout=="fullscreen"?De[Sn].module.height/2-De[Sn].gridheight[De[Sn].level]*De[Sn].CM.h/2:De[Sn].autoHeight||De[Sn].minHeight!=null&&0<De[Sn].minHeight?Tn/2-De[Sn].gridheight[De[Sn].level]*De[Sn].CM.h/2:0:0,Sn=fi.v_align==="top"?{top:"0px",y:Math.round(fi.v_offset+Tn)+"px"}:fi.v_align==="center"?{top:"50%",y:Math.round(0-cn/2+fi.v_offset)+"px"}:{top:"100%",y:Math.round(0-(cn+fi.v_offset+Tn))+"px"};Je.hasClass("outer-bottom")||tpGS.gsap.set(Je,Sn)}function Le(Je,fi,Gi,fn){fn=fn===void 0?Je.outerWidth():fn,Gi=fi.container==="layergrid"?De[Gi].module.width/2-De[Gi].gridwidth[De[Gi].level]*De[Gi].CM.w/2:0,fn=fi.h_align==="left"?{left:"0px",x:Math.round(fi.h_offset+Gi)+"px"}:fi.h_align==="center"?{left:"50%",x:Math.round(0-fn/2+fi.h_offset)+"px"}:{left:"100%",x:Math.round(0-(fn+fi.h_offset+Gi))+"px"},tpGS.gsap.set(Je,fn)}var Fe=function(Je,fi){var Gi,fn,cn,Tn,Sn,Cn,tr;Je===void 0||Je.mask==null||(Gi=Je.direction==="vertical"?Je.mask.find(Je.single).first().outerHeight(!0)+Je.space:Je.mask.find(Je.single).first().outerWidth(!0)+Je.space,fn=Je.direction==="vertical"?Je.mask.height():Je.mask.width(),Tn=Je.mask.find(Je.single+".selected").data("liindex"),Tn=0<(Tn=(Tn=Je.rtl?De[fi].slideamount-Tn:Tn)===void 0?0:Tn)&&De[fi].sdir===1&&1<Je.visibleAmount?Tn-1:Tn,fi=fn/Gi,cn=Je.direction==="vertical"?Je.mask.height():Je.mask.width(),Cn=(Tn=0-Tn*Gi)<0-((Sn=Je.direction==="vertical"?Je.wrap.height():Je.wrap.width())-cn)?0-(Sn-cn):Tn,tr=(tr=De.gA(Je.wrap[0],"offset"))===void 0?0:tr,2<fi&&(Cn=Tn-(tr+Gi)<=0?Tn-(tr+Gi)<0-Gi?tr:Cn+Gi:Cn,Cn=Tn-Gi+tr+fn<Gi&&Tn+(Math.round(fi)-2)*Gi<tr?Tn+(Math.round(fi)-2)*Gi:Cn),Cn=Je.direction!=="vertical"&&Je.mask.width()>=Je.wrap.width()||Je.direction==="vertical"&&Je.mask.height()>=Je.wrap.height()?0:Cn<0-(Sn-cn)?0-(Sn-cn):0<Cn?0:Cn,Je.c.hasClass("dragged"))||(Je.direction==="vertical"?Je.wrap.data("tmmove",tpGS.gsap.to(Je.wrap,.5,{top:Cn+"px",ease:"power3.inOut"})):Je.wrap.data("tmmove",tpGS.gsap.to(Je.wrap,.5,{left:Cn+"px",ease:"power3.inOut"})),Je.wrap.data("offset",Cn))},Ve=function(Je,fi,Hn,fn,xr,Tn){var Hn=Hn.parent().find(".tp-"+Tn+"s"),Sn=Hn.find(".tp-"+Tn+"s-inner-wrapper"),Cn=Hn.find(".tp-"+Tn+"-mask"),tr=fn.direction==="vertical"?fn.cw:fn.cw*xr+parseFloat(fn.space)*(xr-1),xr=fn.direction==="vertical"?fn.ch*xr+parseInt(fn.space)*(xr-1):fn.ch,er=fn.direction==="vertical"?{width:fn.cw+"px"}:{height:fn.ch+"px"},Hn=(fi.add(tpGS.gsap.set(Hn,er)),fi.add(tpGS.gsap.set(Sn,{width:tr+"px",height:xr+"px"})),fn.direction==="horizontal"?(Hn=Math.min(tr,fn.cw*fn.visibleAmount+parseFloat(fn.space)*(fn.visibleAmount-1)),fi.add(tpGS.gsap.set(Cn,{width:Hn+"px",height:xr+"px"}))):(er=Math.min(xr,fn.ch*fn.visibleAmount+parseFloat(fn.space)*(fn.visibleAmount-1)),fi.add(tpGS.gsap.set(Cn,{width:tr+"px",height:er+"px"}))),Sn.outerWidth()!==null&&(De[Je].thumbResized=!0),Sn.find(".tp-"+Tn));return Hn&&$$2.each(Hn,function(Er,os){fn.direction==="vertical"?fi.add(tpGS.gsap.set(os,{top:Er*(fn.ch+parseInt(fn.space===void 0?0:fn.space,0)),width:fn.cw+"px",height:fn.ch+"px"})):fn.direction==="horizontal"&&fi.add(tpGS.gsap.set(os,{left:Er*(fn.cw+parseInt(fn.space===void 0?0:fn.space,0)),width:fn.cw+"px",height:fn.ch+"px"}))}),fi},Ie=function(Je){De[Je].navigation.keyboardNavigation===!0&&De.document.on("keydown",function(fi){if(De[Je].navigation.keyboard_direction=="horizontal"&&fi.keyCode==39||De[Je].navigation.keyboard_direction=="vertical"&&fi.keyCode==40){if(De[Je].keydown_time_stamp!==void 0&&new Date().getTime()-De[Je].keydown_time_stamp<1e3)return;De[Je].sc_indicator="arrow",De[Je].sc_indicator_dir=0,De[Je].sliderType==="carousel"&&(De[Je].ctNavElement=!0),De.callingNewSlide(Je,1,De[Je].sliderType==="carousel")}if(De[Je].navigation.keyboard_direction=="horizontal"&&fi.keyCode==37||De[Je].navigation.keyboard_direction=="vertical"&&fi.keyCode==38){if(De[Je].keydown_time_stamp!==void 0&&new Date().getTime()-De[Je].keydown_time_stamp<1e3)return;De[Je].sc_indicator="arrow",De[Je].sc_indicator_dir=1,De[Je].sliderType==="carousel"&&(De[Je].ctNavElement=!0),De.callingNewSlide(Je,-1,De[Je].sliderType==="carousel")}De[Je].keydown_time_stamp=new Date().getTime()})},je=function(Je){De[Je].carousel.scrollTicker=De.carScrollTicker.bind(window,Je),De[Je].navigation.mouseScrollNavigation!==!0&&De[Je].navigation.mouseScrollNavigation!=="on"&&De[Je].navigation.mouseScrollNavigation!=="carousel"||De[Je].c[0].addEventListener("wheel",function(fi){var Cn=function(er){var Hn=0;return"deltaY"in er||"deltaX"in er?Hn=er.deltaY!=0&&er.deltaY!=-0||!(er.deltaX<0||0<er.deltaX)?er.deltaY:er.deltaX:("detail"in er&&(Hn=er.detail),"wheelDelta"in er&&(Hn=-er.wheelDelta/120),"wheelDeltaY"in er&&(Hn=-er.wheelDeltaY/120
193)),(300<(Hn=navigator.userAgent.match(/mozilla/i)?10*Hn:Hn)||Hn<-300)&&(Hn/=10),Hn}(fi),Gi=!1,fn=De[Je].pr_active_key==0||De[Je].pr_processing_key==0,cn=De[Je].pr_active_key==De[Je].slideamount-1||De[Je].pr_processing_key==De[Je].slideamount-1,Tn=(De[Je].topc!==void 0?De[Je].topc:De[Je].canv.height===0?De[Je].cpar:De[Je].c)[0].getBoundingClientRect(),Sn=0<=Tn.top&&Tn.bottom<=De.winH?1:0<=Tn.top&&Tn.bottom>=De.winH?(De.winH-Math.round(Tn.top))/Tn.height:Tn.top<=0&&Tn.bottom<=De.winH?Math.round(Tn.bottom)/Tn.height:1,Cn=Cn<0?-1:1,tr=De[Je].navigation.wheelViewPort;Sn=Math.round(100*Sn)/100,De[Je].navigation.mouseScrollReverse=="reverse"&&(xr=cn,cn=fn,fn=xr);{var xr;!(tr-Sn<=De[Je].navigation.threshold/100)||tr<=Sn||0<=Tn.top&&Cn==-1||Tn.top<=0&&Cn==1||(fi.preventDefault(),De[Je].mScrollTween)||(xr=De[Je].navigation.target!=="window"&&De[Je].navigation.target?De[Je].navigation.target:window,De[Je].mScrollTween=tpGS.gsap.to(xr,{duration:$$2.fn.revolution.isWebkit()?.1:.7,scrollTo:{y:De[Je].topc},ease:"power2.out",onComplete:function(){De[Je].mScrollTween.kill(),delete De[Je].mScrollTween}}))}if(Math.abs(Sn-tr)<.1||tr<=Sn)return De[Je].sc_indicator_dir=De[Je].navigation.mouseScrollReverse==="reverse"&&Cn<0||De[Je].navigation.mouseScrollReverse!=="reverse"&&0<Cn?De[Je].navigation.mouseScrollReverse!=="reverse"?0:1:De[Je].navigation.mouseScrollReverse!=="reverse"?1:0,De[Je].navigation.mouseScrollNavigation=="carousel"||De[Je].sc_indicator_dir===0&&!cn||De[Je].sc_indicator_dir===1&&!fn?De[Je].pr_processing_key===void 0&&De[Je].justmouseScrolled!==!0&&(De[Je].sc_indicator="arrow",De[Je].sliderType==="carousel"&&(De[Je].ctNavElement=!0),De.callingNewSlide(Je,De[Je].sc_indicator_dir===0?De[Je].navigation.mouseScrollReverse==="reverse"?-1:1:De[Je].navigation.mouseScrollReverse==="reverse"?1:-1,De[Je].sliderType==="carousel"),De[Je].justmouseScrolled=!0,setTimeout(function(){De[Je].justmouseScrolled=!1},De[Je].navigation.wheelCallDelay)):De[Je].justmouseScrolled!==!0&&(Gi=!0),!!Gi||(fi.preventDefault(fi),!1)},{passive:!1})},Ke=function(Je,fi){for(;Je&&Je!==document;Je=Je.parentNode)if(Je.tagName===fi)return Je;return!1},$e=function(Je){var fi,Gi,fn=De[Je].carousel,cn=De.is_android();$$2(".bullet, .bullets, .tp-bullets, .tparrows").addClass("noSwipe"),De[Je].navigation.touch=De[Je].navigation.touch===void 0?{}:De[Je].navigation.touch,De[Je].navigation.touch.swipe_direction=De[Je].navigation.touch.swipe_direction===void 0?"horizontal":De[Je].navigation.touch.swipe_direction,De[Je].cpar.find(".rs-nav-element").rsswipe({allowPageScroll:"vertical",triggerOnTouchLeave:!0,treshold:De[Je].navigation.touch.swipe_treshold,fingers:5<De[Je].navigation.touch.swipe_min_touches?1:De[Je].navigation.touch.swipe_min_touches,excludedElements:"button, input, select, textarea, .noSwipe, .rs-waction",tap:function(Tn,Sn){var Cn;((Cn=Sn!==void 0?$$2(Sn).closest("rs-thumb"):Cn)!==void 0&&0<Cn.length||0<(Cn=$$2(Sn).closest("rs-tab")).length||0<(Cn=$$2(Sn).closest("rs-bullet")).length)&&Cn.trigger("click")},swipeStatus:function(Tn,Sn,Cn,tr,xr,er,Hn){if(Sn!=="start"&&Sn!=="move"&&Sn!=="end"&&Sn!="cancel")return!0;var Er=Ae("RS-THUMB",Tn),Qi=Ae("RS-TAB",Tn),os=(Er===!1&&Qi===!1&&!(Er=Tn.target.tagName==="RS-THUMBS-WRAP"||Tn.target.tagName==="RS-THUMBS"||0<=Tn.target.className.indexOf("tp-thumb-mask"))&&Tn.target.tagName!=="RS-TABS-WRAP"&&Tn.target.tagName!=="RS-TABS"&&Tn.target.className.indexOf("tp-tab-mask"),Sn==="start"?0:cn?Hn[0].end.x-Hn[0].start.x:Tn.pageX-fn.screenX),wi=Sn==="start"?0:cn?Hn[0].end.y-Hn[0].start.y:Tn.pageY-fn.screenY,Zi=Er?".tp-thumbs":".tp-tabs",Qi=Er?".tp-thumbs-inner-wrapper":".tp-tabs-inner-wrapper",Hi=Er?".tp-thumb":".tp-tab",vn=Er?De[Je].navigation.thumbnails:De[Je].navigation.tabs,zn=De[Je].cpar.find(Er?".tp-thumb-mask":".tp-tab-mask"),ji=zn.find(Qi),hr=vn.direction,Ri=hr==="vertical"?ji.height():ji.width(),xs=hr==="vertical"?zn.height():zn.width(),Ue=hr==="vertical"?zn.find(Hi).first().outerHeight(!0)+parseFloat(vn.space):zn.find(Hi).first().outerWidth(!0)+parseFloat(vn.space),bi=ji.data("offset")===void 0?0:parseInt(ji.data("offset"),0),Ii=0;switch(Sn){case"start":hr==="vertical"&&Tn.preventDefault(),fn.screenX=cn?Hn[0].end.x:Tn.pageX,fn.screenY=cn?Hn[0].end.y:Tn.pageY,De[Je].cpar.find(Zi).addClass("dragged"),bi=hr==="vertical"?ji.position().top:ji.position().left,ji.data("offset",bi),ji.data("tmmove")&&ji.data("tmmove").pause(),De[Je].someNavIsDragged=!0,oi(Je);break;case"move":if(Ri<=xs)return!1;var Ii=0<(Ii=bi+(hr==="vertical"?wi:os))?hr==="horizontal"?Ii-ji.width()*(Ii/ji.width()*Ii/ji.width()):Ii-ji.height()*(Ii/ji.height()*Ii/ji.height()):Ii,Ji=hr==="vertical"?0-(ji.height()-zn.height()):0-(ji.width()-zn.width());Ii=Ii<Ji?hr==="horizontal"?Ii+ji.width()*(Ii-Ji)/ji.width()*(Ii-Ji)/ji.width():Ii+ji.height()*(Ii-Ji)/ji.height()*(Ii-Ji)/ji.height():Ii,hr==="vertical"?tpGS.gsap.set(ji,{top:Ii+"px"}):tpGS.gsap.set(ji,{left:Ii+"px"}),gi(De[Je].hideAllNavElementTimer);break;case"end":case"cancel":return De[Je].navigation.draggable&&De[Je].navigation.draggable.enable&&De[Je].navigation.draggable.enable(),fn.draggable&&fn.draggable.enable&&fn.draggable.enable(),Ii=bi+(hr==="vertical"?wi:os),Ii=0<(Ii=hr==="vertical"?Ii<0-(ji.height()-zn.height())?0-(ji.height()-zn.height()):Ii:Ii<0-(ji.width()-zn.width())?0-(ji.width()-zn.width()):Ii)?0:Ii,Ii=Math.abs(tr)>Ue/10?tr<=0?Math.floor(Ii/Ue)*Ue:Math.ceil(Ii/Ue)*Ue:tr<0?Math.ceil(Ii/Ue)*Ue:Math.floor(Ii/Ue)*Ue,Ii=0<(Ii=hr==="vertical"?Ii<0-(ji.height()-zn.height())?0-(ji.height()-zn.height()):Ii:Ii<0-(ji.width()-zn.width())?0-(ji.width()-zn.width()):Ii)?0:Ii,hr==="vertical"?tpGS.gsap.to(ji,.5,{top:Ii+"px",ease:"power3.out"}):tpGS.gsap.to(ji,.5,{left:Ii+"px",ease:"power3.out"}),Ii=Ii||(hr==="vertical"?ji.position().top:ji.position().left),ji.data("offset",Ii),ji.data("distance",tr),De[Je].cpar.find(Zi).removeClass("dragged"),!(De[Je].someNavIsDragged=!1)}}}),De[Je].sliderType==="carousel"&&De.setupCarousel(Je),De[Je].sliderType!=="carousel"&&(De.ISM&&De[Je].navigation.touch.touchenabled||De.ISM!==!0&&De[Je].navigation.touch.touchOnDesktop)&&(De[Je].navigation.proxy=document.createElement("div"),fi=De[Je].navigation,Gi={trigger:De[Je].c[0],type:De[Je].navigation.touch.swipe_direction==="horizontal"?"x":"y",cursor:"pointer",lockAxis:!0,onPress:function(Tn){De.closestClass(Tn.target,"rs-nav-element")&&(De[Je].navigation.draggable.endDrag(
193),De[Je].navigation.draggable.disable()),fi.touch.pressX=Tn.pageX,fi.touch.pressY=Tn.pageY},onDragStart:function(){var Tn=De[Je].pr_processing_key!==void 0?De[Je].pr_processing_key:De[Je].pr_active_key===void 0?0:De[Je].pr_active_key;this.getDirection()==="up"&&Tn==De[Je].slideamount-1||this.getDirection()==="down"&&Tn===0?fi.forceScroll=!0:fi.forceScroll=!1},onDragEnd:function(Tn){De[Je].sc_indicator="arrow";var Sn=this.getDirection(),Cn=De[Je].navigation;if(Math.abs(Tn.pageY-Cn.touch.pressY)>Math.abs(Tn.pageX-Cn.touch.pressX)){if(Sn==="right"||Sn==="left")return}else if(Math.abs(Tn.pageY-Cn.touch.pressY)>Math.abs(Tn.pageX-Cn.touch.pressX)&&(Sn==="up"||Sn==="down"))return;if(!Cn.forceScroll)return De[Je].navigation.touch.swipe_direction=="horizontal"&&Sn=="left"||De[Je].navigation.touch.swipe_direction=="vertical"&&Sn=="up"?(De[Je].sc_indicator_dir=0,De.callingNewSlide(Je,1),!1):De[Je].navigation.touch.swipe_direction=="horizontal"&&Sn=="right"||De[Je].navigation.touch.swipe_direction=="vertical"&&Sn=="down"?(De[Je].sc_indicator_dir=1,De.callingNewSlide(Je,-1),!1):void 0;Tn=this.getDirection()==="up"?De[Je].cpar.offset().top+De[Je].module.height:De.document.scrollTop()-(window.innerHeight-De[Je].cpar[0].getBoundingClientRect().top),De[Je].modal.useAsModal||tpGS.gsap.to([window,"body"],{scrollTo:Tn})}},fi.touch.drag_block_vertical||(De.ISM&&(Gi.allowContextMenu=!0),Gi.allowEventDefault=!0),De[Je].navigation.draggable=tpGS.draggable.create(De[Je].navigation.proxy,Gi)),De[Je].sliderType==="carousel"&&(De.ISM&&De[Je].navigation.touch.mobileCarousel==0||De.ISM!==!0&&De[Je].navigation.touch.desktopCarousel===!1)&&fn.wrap.addClass("noswipe"),De[Je].navigation.touch.drag_block_vertical&&De[Je].c.addClass("disableVerticalScroll")},qe=function(Je){Je.hide_delay=De.isNumeric(parseInt(Je.hide_delay,0))?Je.hide_delay:.2,Je.hide_delay_mobile=De.isNumeric(parseInt(Je.hide_delay_mobile,0))?Je.hide_delay_mobile:.2},ci=function(Je){return Je&&Je.enable},gi=function(Je){clearTimeout(Je)},Ai=function(Je){var fi,Gi=De[Je].navigation.maintypes;for(fi in Gi)Gi.hasOwnProperty(fi)&&ci(De[Je].navigation[Gi[fi]])&&De[Je].navigation[Gi[fi]].c!==void 0&&(gi(De[Je].navigation[Gi[fi]].showCall),De[Je].navigation[Gi[fi]].showCall=setTimeout(function(fn){gi(fn.hideCall),fn.hide_onleave&&De[Je].tpMouseOver!==!0||(fn.tween===void 0?fn.tween=hi(fn):fn.tween.play())},De[Je].navigation[Gi[fi]].hide_onleave&&De[Je].tpMouseOver!==!0?0:parseInt(De[Je].navigation[Gi[fi]].animDelay),De[Je].navigation[Gi[fi]]))},oi=function(Je){var fi,Gi=De[Je].navigation.maintypes;for(fi in Gi)Gi.hasOwnProperty(fi)&&De[Je].navigation[Gi[fi]]!==void 0&&De[Je].navigation[Gi[fi]].hide_onleave&&ci(De[Je].navigation[Gi[fi]])&&gi(De[Je].navigation[Gi[fi]].hideCall)},ii=function(Je,fi){var Gi,fn=De[Je].navigation.maintypes;for(Gi in fn)fn.hasOwnProperty(Gi)&&De[Je].navigation[fn[Gi]]!==void 0&&De[Je].navigation[fn[Gi]].hide_onleave&&ci(De[Je].navigation[fn[Gi]])&&(gi(De[Je].navigation[fn[Gi]].hideCall),De[Je].navigation[fn[Gi]].hideCall=setTimeout(function(cn){gi(cn.showCall),cn.tween&&cn.tween.reverse()},De.ISM?parseInt(De[Je].navigation[fn[Gi]].hide_delay_mobile,0):parseInt(De[Je].navigation[fn[Gi]].hide_delay,0),De[Je].navigation[fn[Gi]]))},hi=function(Je){Je.speed=Je.animSpeed===void 0?.5:Je.animSpeed,Je.anims=[],Je.anim!==void 0&&Je.left===void 0&&Je.anims.push(Je.anim),Je.left!==void 0&&Je.anims.push(Je.left.anim),Je.right!==void 0&&Je.anims.push(Je.right.anim);var fi,Gi=tpGS.gsap.timeline();for(fi in Gi.add(tpGS.gsap.to(Je.c,Je.speed,{delay:Je.animDelay,opacity:1,ease:"power3.inOut"}),0),Je.anims)if(Je.anims.hasOwnProperty(fi))switch(Je.anims[fi]){case"left":Gi.add(tpGS.gsap.fromTo(Je.c[fi],Je.speed,{marginLeft:-50},{delay:Je.animDelay,marginLeft:"0px",ease:"power3.inOut"}),0);break;case"right":Gi.add(tpGS.gsap.fromTo(Je.c[fi],Je.speed,{marginLeft:50},{delay:Je.animDelay,marginLeft:"0px",ease:"power3.inOut"}),0);break;case"top":Gi.add(tpGS.gsap.fromTo(Je.c[fi],Je.speed,{marginTop:-50},{delay:Je.animDelay,marginTop:"0px",ease:"power3.inOut"}),0);break;case"bottom":Gi.add(tpGS.gsap.fromTo(Je.c[fi],Je.speed,{marginTop:50},{delay:Je.animDelay,marginTop:"0px",ease:"power3.inOut"}),0);break;case"zoomin":Gi.add(tpGS.gsap.fromTo(Je.c[fi],Je.speed,{scale:.5},{delay:Je.animDelay,scale:1,ease:"power3.inOut"}),0);break;case"zoomout":Gi.add(tpGS.gsap.fromTo(Je.c[fi],Je.speed,{scale:1.2},{delay:Je.animDelay,scale:1,ease:"power3.inOut"}),0)}return Gi.play(),Gi},Ei=function(Je,fi){Je.style=Je.style===void 0?"":Je.style,Je.left.style=Je.left.style===void 0?"":Je.left.style,Je.right.style=Je.right.style===void 0?"":Je.right.style,Je.left.c===void 0&&(Je.left.c=$$2('<rs-arrow 
193style="opacity:0" class="tp-leftarrow tparrows '+Je.style+" "+Je.left.style+'">'+Je.tmp+"</rs-arrow>"),De[fi].c.append(Je.left.c)),Je.right.c===void 0&&(Je.right.c=$$2('<rs-arrow style="opacity:0"  class="tp-rightarrow tparrows '+Je.style+" "+Je.right.style+'">'+Je.tmp+"</rs-arrow>"),De[fi].c.append(Je.right.c)),Je[Je.rtl?"left":"right"].c.on("click",function(){De[fi].sliderType==="carousel"&&(De[fi].ctNavElement=!0),De[fi].sc_indicator="arrow",De[fi].sc_indicator_dir=0,De[fi].c.revnext()}),Je[Je.rtl?"right":"left"].c.on("click",function(){De[fi].sliderType==="carousel"&&(De[fi].ctNavElement=!0),De[fi].sc_indicator="arrow",De[fi].sc_indicator_dir=1,De[fi].c.revprev()}),Je.padding_top=parseInt(De[fi].carousel.padding_top||0,0),Je.padding_bottom=parseInt(De[fi].carousel.padding_bottom||0,0),Li(Je.left,fi),Li(Je.right,fi),Je.position!="outer-left"&&Je.position!="outer-right"||(De[fi].outernav=!0)},Li=function(Je,fi){var Gi,fn,cn,Tn,Sn;Je==null||Je.c===void 0||(Gi=(De[fi].sliderLayout=="fullwidth"||De[fi].sliderLayout=="fullscreen"?De[fi].module:De[fi].canv).width,cn=Je.c.outerWidth(),fn=Je.c.outerHeight(),cn<=0)||fn<=0||(ke(Je.c,Je,fi,fn),Le(Je.c,Je,fi,cn),Je.position==="outer-left"?tpGS.gsap.set(Je.c,{left:0-cn+"px",x:Je.h_offset+"px"}):Je.position==="outer-right"&&tpGS.gsap.set(Je.c,{right:0-cn+"px",x:Je.h_offset+"px"}),Je.type!=="tp-thumb"&&Je.type!=="tp-tab")||(fn=parseInt(Je.padding_top||0,0),cn=parseInt(Je.padding_bottom||0,0),Tn={},Sn={},Je.maxw>Gi&&Je.position!=="outer-left"&&Je.position!=="outer-right"?(Tn.left="0px",Tn.x=0,Tn.maxWidth=Gi-2*Je.wpad+"px",Sn.maxWidth=Gi-2*Je.wpad+"px"):(Tn.maxWidth=Je.maxw,Sn.maxWidth=Gi+"px"),Je.maxh+2*Je.wpad>De[fi].conh&&Je.position!=="outer-bottom"&&Je.position!=="outer-top"?(Tn.top="0px",Tn.y=0,Tn.maxHeight=fn+cn+(De[fi].conh-2*Je.wpad)+"px",Sn.maxHeight=fn+cn+(De[fi].conh-2*Je.wpad)+"px"):(Tn.maxHeight=Je.maxh+"px",Sn.maxHeight=Je.maxh+"px"),Je.mask=Je.mask===void 0?Je.c.find("rs-navmask"):Je.mask,(0<Je.mhoff||0<Je.mvoff)&&(Sn.padding=Je.mvoff+"px "+Je.mhoff+"px"),Je.span?(Je.container=="layergrid"&&Je.position!=="outer-left"&&Je.position!=="outer-right"&&(fn=cn=0),Je.direction==="vertical"?(Tn.maxHeight=fn+cn+(De[fi].conh-2*Je.wpad)+"px",Tn.height=fn+cn+(De[fi].conh-2*Je.wpad)+"px",Tn.top=0,Tn.y=0,Sn.maxHeight=fn+cn+Math.min(Je.maxh,De[fi].conh-2*Je.wpad)+"px",tpGS.gsap.set(Je.c,Tn),tpGS.gsap.set(Je.mask,Sn),ke(Je.mask,Je,fi)):Je.direction==="horizontal"&&(Tn.maxWidth="100%",Tn.width=Gi-2*Je.wpad+"px",Tn.left=0,Tn.x=0,Sn.maxWidth=Je.maxw>=Gi?"100%":Math.min(Je.maxw,Gi)+"px",tpGS.gsap.set(Je.c,Tn),tpGS.gsap.set(Je.mask,Sn),Le(Je.mask,Je,fi))):(tpGS.gsap.set(Je.c,Tn),tpGS.gsap.set(Je.mask,Sn)))},Di=function(Je,fi,Cn,fn){Je.find(".tp-bullets").length===0&&(fi.style=fi.style===void 0?"":fi.style,fi.c=$$2('<rs-bullets style="opacity:0"  class="tp-bullets '+fi.style+" "+fi.direction+" nav-pos-hor-"+fi.h_align+" nav-pos-ver-"+fi.v_align+" nav-dir-"+fi.direction+'"></rs-bullets>'));var cn=Cn.data("key"),Tn=fi.tmp,Sn=(De[fn].thumbs[Cn.index()]!==void 0&&$$2.each(De[fn].thumbs[Cn.index()].params,function(Er,os){Tn=Tn.replace(os.from,os.to)}),$$2('<rs-bullet data-key="'+cn+'" class="tp-bullet">'+Tn+"</rs-bullet>")),Cn=(De[fn].thumbs[Cn.index()]!==void 0&&Sn.find(".tp-bullet-image").css({backgroundImage:"url("+De[fn].thumbs[Cn.index()].src+")"}),fi.c.append(Sn),Je.append(fi.c),fi.c.find(".tp-bullet").length),tr=Sn.outerWidth(),xr=Sn.outerHeight(),er=tr+parseInt(fi.space
193===void 0?0:fi.space,0),Hn=xr+parseInt(fi.space===void 0?0:fi.space,0);fi.direction==="vertical"?(Sn.css({top:(Cn-1)*Hn+"px",left:"0px"}),fi.c.css({height:(Cn-1)*Hn+xr,width:tr})):(Sn.css({left:(Cn-1)*er+"px",top:"0px"}),fi.c.css({width:(Cn-1)*er+tr,height:xr})),Sn.on("click",function(){De[fn].sliderType==="carousel"&&(De[fn].ctNavElement=!0),De[fn].sc_indicator="bullet",Je.revcallslidewithid(cn),Je.find(".tp-bullet").removeClass("selected"),$$2(this).addClass("selected")}),fi.padding_top=parseInt(De[fn].carousel.padding_top||0,0),fi.padding_bottom=parseInt(De[fn].carousel.padding_bottom||0,0),fi.position!="outer-left"&&fi.position!="outer-right"||(De[fn].outernav=!0)},zi=function(Je,fi,wi,Hn,cn){var Tn=Hn==="tp-thumb"?".tp-thumbs":".tp-tabs",tr=Hn==="tp-thumb"?".tp-thumb-mask":".tp-tab-mask",Sn=Hn==="tp-thumb"?".tp-thumbs-inner-wrapper":".tp-tabs-inner-wrapper",Zi=Hn==="tp-thumb"?".tp-thumb":".tp-tab",os=Hn==="tp-thumb"?".tp-thumb-image":".tp-tab-image",Er=Hn==="tp-thumb"?"rs-thumb":"rs-tab",Cn=(fi.type=Hn,fi.visibleAmount=fi.visibleAmount>De[cn].slideamount?De[cn].slideamount:fi.visibleAmount,fi.sliderLayout=De[cn].sliderLayout,fi.c===void 0&&(fi.wpad=fi.wrapper_padding,fi.c=$$2("<"+Er+'s style="opacity:0" class="nav-dir-'+fi.direction+" nav-pos-ver-"+fi.v_align+" nav-pos-hor-"+fi.h_align+" rs-nav-element "+Hn+"s "+(fi.span===!0?"tp-span-wrapper":"")+" "+fi.position+" "+(fi.style===void 0?"":fi.style)+'"><rs-navmask class="'+Hn+'-mask" style="overflow:hidden;position:relative"><'+Er+'s-wrap class="'+Hn+'s-inner-wrapper" style="position:relative;"></'+Er+"s-wrap></rs-navmask></"+Er+"s>"),fi.c.css({overflow:"visible",position:fi.position==="outer-top"||fi.position==="outer-bottom"?"relative":"absolute",background:fi.wrapper_color,padding:fi.wpad+"px",boxSizing:"contet-box"}),fi.position==="outer-top"?Je.parent().prepend(fi.c):fi.position==="outer-bottom"?Je.after(fi.c):Je.append(fi.c),fi.position!=="outer-left"&&fi.position!=="outer-right"||tpGS.gsap.set(De[cn].c,{overflow:"visible"}),fi.padding_top=parseInt(De[cn].carousel.padding_top||0,0),fi.padding_bottom=parseInt(De[cn].carousel.padding_bottom||0,0),fi.position!="outer-left"&&fi.position!="outer-right"||(De[cn].outernav=!0)),wi.data("key")),tr=fi.c.find(tr),xr=tr.find(Sn),er=fi.tmp,Hn=(fi.space=parseFloat(fi.space)||0,fi.maxw=fi.direction==="horizontal"?fi.width*fi.visibleAmount+fi.space*(fi.visibleAmount-1):fi.width,fi.maxh=fi.direction==="horizontal"?fi.height:fi.height*fi.visibleAmount+fi.space*(fi.visibleAmount-1),fi.maxw+=2*fi.mhoff,fi.maxh+=2*fi.mvoff,De[cn].thumbs[wi.index()]!==void 0&&$$2.each(De[cn].thumbs[wi.index()].params,function(Hi,vn){er=er.replace(vn.from,vn.to)}),$$2("<"+Er+' data-liindex="'+wi.index()+'" data-key="'+Cn+'" class="'+Hn+'" style="width:'+fi.width+"px;height:"+fi.height+'px;">'+er+"<"+Er+">")),Er=(De[cn].thumbs[wi.index()]!==void 0&&Hn.find(os).css({backgroundImage:"url("+De[cn].thumbs[wi.index()].src+")"}),xr.append(Hn),fi.c.find(Zi).length),os=Hn.outerWidth(),wi=Hn.outerHeight(),Zi=os+parseInt(fi.space
193===void 0?0:fi.space,0),Qi=wi+parseInt(fi.space===void 0?0:fi.space,0);fi.direction==="vertical"?(Hn.css({top:(Er-1)*Qi+"px",left:"0px"}),xr.css({height:(Er-1)*Qi+wi,width:os})):(Hn.css({left:(Er-1)*Zi+"px",top:"0px"}),xr.css({width:(Er-1)*Zi+os,height:wi})),tr.css({maxWidth:fi.maxw+"px",maxHeight:fi.maxh+"px"}),fi.c.css({maxWidth:fi.maxw+"px",maxHeight:fi.maxh+"px"}),Hn.on("click",function(){De[cn].sc_indicator="bullet",De[cn].sliderType==="carousel"&&(De[cn].ctNavElement=!0);var Hi=(Hi=Je.parent().find(Sn).data("distance"))===void 0?0:Hi;Math.abs(Hi)<10&&(Je.revcallslidewithid(Cn),Je.parent().find(Tn).removeClass("selected"),$$2(this).addClass("selected"))})},an=function(Je,fi,Gi){return Je!=null&&Je.c!==void 0&&(Je.hide_under>De[fi].canv.width||De[fi].canv.width>Je.hide_over?(Je.tpForceNotVisible!==!0&&(Je.c.addClass("tp-forcenotvisible"),Gi=!(Je.isVisible=!1)),Je.tpForceNotVisible=!0):(Je.tpForceNotVisible!==!1&&(Je.c.removeClass("tp-forcenotvisible"),Gi=Je.isVisible=!0),Je.tpForceNotVisible=!1)),Gi};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.navigation={loaded:!0,version:"6.6.0"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(),function(){window._R_is_Editor?RVS._R=RVS._R===void 0?{}:RVS._R:window._R_is_Editor=!1,$$2.fn.revolution=$$2.fn.revolution||{};var De=_R_is_Editor?RVS._R:$$2.fn.revolution;$$2.extend(!0,De,{bgW:function(_e,Ae){return _R_is_Editor?RVS.RMD.width:De[_e].sliderType==="carousel"?De[_e].justifyCarousel?De[_e].carousel.slide_widths[Ae!==void 0?Ae:De[_e].carousel.focused]:De[_e].carousel.slide_width:De[_e].module.width},bgH:function(_e,Ae){return _R_is_Editor?RVS.RMD.height:De[_e].sliderType==="carousel"?De[_e].carousel.slide_height:De[_e].module.height},getPZSides:function(_e,Ae,ke,Le,Fe,Ve,Ie){return _e*=ke,Ae*=ke,ke=Math.abs(Le-_e),Le=Math.abs(Fe-Ae),Fe=new Object,Fe.l=(0-Ve)*ke,Fe.r=Fe.l+_e,Fe.t=(0-Ie)*Le,Fe.b=Fe.t+Ae,Fe.h=Ve,Fe.v=Ie,Fe},getPZCorners:function(Ve,Ae,ke,Le){var Ve=Ve.bgposition.split(" ")||"center center",Fe=Ve[0]=="center"?"50%":Ve[0]=="left"||Ve[1]=="left"?"0%":Ve[0]=="right"||Ve[1]=="right"?"100%":Ve[0],Ve=Ve[1]=="center"?"50%":Ve[0]=="top"||Ve[1]=="top"?"0%":Ve[0]=="bottom"||Ve[1]=="bottom"?"100%":Ve[1],Fe=parseInt(Fe,0)/100||0,Ve=parseInt(Ve,0)/100||0,Ie=new Object;return Ie.start=De.getPZSides(Le.start.width,Le.start.height,Le.start.scale,Ae,ke,Fe,Ve),Ie.end=De.getPZSides(Le.start.width,Le.start.height,Le.end.scale,Ae,ke,Fe,Ve),Ie},getPZValues:function(_e){var Ae,ke=_e.panzoom.split(";"),Le={duration:10,ease:"none",scalestart:1,scaleend:1,rotatestart:.01,rotateend:0,blurstart:0,blurend:0,offsetstart:"0/0",offsetend:"0/0"};for(Ae in ke)if(ke.hasOwnProperty(Ae)){var Fe=ke[Ae].split(":"),Ve=Fe[0],Ie=Fe[1];switch(Ve){case"d":Le.duration=parseInt(Ie,0)/1e3;break;case"e":Le.ease=Ie;break;case"ss":Le.scalestart=parseInt(Ie,0)/100;break;case"se":Le.scaleend=parseInt(Ie,0)/100;break;case"rs":Le.rotatestart=parseInt(Ie,0);break;case"re":Le.rotateend=parseInt(Ie,0);break;case"bs":Le.blurstart=parseInt(Ie,0);break;case"be":Le.blurend=parseInt(Ie,0);break;case"os":Le.offsetstart=Ie;break;case"oe":Le.offsetend=Ie}}return Le.offsetstart=Le.offsetstart.split("/")||[0,0],Le.offsetend=Le.offsetend.split("/")||[0,0],Le.rotatestart=Le.rotatestart===0?.01:Le.rotatestart,_e.panvalues=Le,_e.bgposition=_e.bgposition=="center center"?"50% 50%":_e.bgposition,Le},pzCalcL:function(_e,Ae,ke){var Le,Fe,Ve,Ie=ke.panvalues===void 0?$$2.extend(!0,{},De.getPZValues(ke)):$$2.extend(!0,{},ke.panvalues),je=Ie.offsetstart,Ke=Ie.offsetend,$e={start:{width:_e,height:_R_is_Editor?_e/ke.loadobj.width*ke.loadobj.height:_e/ke.owidth*ke.oheight,rotation:Math.PI/180*Ie.rotatestart,rotationV:Ie.rotatestart,scale:Ie.scalestart,transformOrigin:"0% 0%"},end:{rotation:Math.PI/180*Ie.rotateend,rotationV:Ie.rotateend,scale:Ie.scaleend}};return Ie.scalestart,ke.owidth,ke.oheight,Ie.scaleend,ke.owidth,ke.oheight,$e.start.height<Ae&&(Ve=Ae/$e.start.height,$e.start.height=Ae,$e.start.width=$e.start.width*Ve),Ie.rotatestart===.01&&Ie.rotateend===0&&(delete $e.start.rotation,delete $e.end.rotation),Ve=De.getPZCorners(ke,_e,Ae,$e),je[0]=parseFloat(je[0])+Ve.start.l,Ke[0]=parseFloat(Ke[0])+Ve.end.l,je[1]=parseFloat(je[1])+Ve.start.t,Ke[1]=parseFloat(Ke[1])+Ve.end.t,ke=Ve.start.r-Ve.start.l,Le=Ve.start.b-Ve.start.t,Fe=Ve.end.r-Ve.end.l,Ve=Ve.end.b-Ve.end.t,je[0]=0<je[0]?0:ke+je[0]<_e?_e-ke:je[0],Ke[0]=0<Ke[0]?0:Fe+Ke[0]<_e?_e-Fe:Ke[0],je[1]=0<je[1]?0:Le+je[1]<Ae?Ae-Le:je[1],Ke[1]=0<Ke[1]?0:Ve+Ke[1]<Ae?Ae-Ve:Ke[1],$e.start.x=je[0],$e.start.y=je[1],$e.end.x=Ke[0],$e.end.y=Ke[1],$e.end.ease=Ie.ease,$e},pzDrawShadow:function(_e,Ae,ke){Ae.currentState!=="animating"&&Ae.panFake!=null&&!Ae.pzLastFrame||(Ae.pzLastFrame=!1,Ae.shadowCTX.clearRect(0,0,Ae.shadowCanvas.width,Ae.shadowCanvas.height),Ae.shadowCTX.save(),ke.rotation!==void 0?Ae.shadowCTX.transform(Math.cos(ke.rotation)*ke.scale,Math.sin(ke.rotation)*ke.scale,Math.sin(ke.rotation)*-ke.scale,Math.cos(ke.rotation)*ke.scale,ke.x,ke.y):Ae.shadowCTX.transform(ke.scale,0,0,ke.scale,ke.x,ke.y),Ae.shadowCTX.drawImage(Ae.loadobj.img,0,0,ke.width,ke.height),Ae.shadowCTX.restore(
193)),Ae.currentState!=="animating"?Ae.panFake!=null?(Ae.panFake.visible||(Ae.panFake.visible=!0,Ae.panFake.img.style.opacity=1,Ae.canvas.style.opacity=0),tpGS.gsap.set(Ae.panFake.img,{width:ke.width,height:ke.height,force3D:!0,x:ke.x,y:ke.y,transformOrigin:"0% 0%",rotationZ:ke.rotationV+"deg",scale:ke.scale}),ke.blur!==void 0&&(Ae.panFake.img.style.filter=ke.blur===0?"none":"blur("+ke.blur+"px)")):(De.updateSlideBGs(_e,ke.slidekey,Ae,!0),ke.blur!==void 0&&(Ae.canvas.style.filter=ke.blur===0?"none":"blur("+ke.blur+"px)")):(Ae.panFake!==void 0&&Ae.panFake.visible!==!1&&(Ae.panFake.visible=!1,Ae.panFake.img.style.opacity=0,Ae.canvas.style.opacity=1,Ae.panFake.img.style.filter="none"),ke.blur!==void 0&&Ae.canvasFilter?Ae.canvasFilterBlur=ke.blur:Ae.canvas.style.filter=ke.blur===0?"none":"blur("+ke.blur+"px)")},startPanZoom:function(_e,Ae,ke,Le,Fe,Ve){var Ie,je,Ke,$e,qe=_R_is_Editor?_e:_e.data();qe.panzoom!==void 0&&qe.panzoom!==null&&(Ie=_R_is_Editor?qe:De[Ae].sbgs[Ve],_R_is_Editor||De[Ae].sliderType!=="carousel"||(De[Ae].carousel.justify&&De[Ae].carousel.slide_widths===void 0&&De.setCarouselDefaults(Ae,!0),De[Ae].carousel.justify)||(De[Ae].carousel.slide_width===void 0&&(De[Ae].carousel.slide_width=De[Ae].carousel.stretch!==!0?De[Ae].gridwidth[De[Ae].level]*(De[Ae].CM.w===0?1:De[Ae].CM.w):De[Ae].canv.width),De[Ae].carousel.slide_height===void 0&&(De[Ae].carousel.slide_height=De[Ae].carousel.stretch!==!0?De[Ae].gridheight[De[Ae].level]*(De[Ae].CM.w===0?1:De[Ae].CM.w):De[Ae].canv.height)),je=De.getmDim(Ae,Le,Ie),Ke=De.pzCalcL(je.width,je.height,qe),Ie.pzAnim=Ke,_R_is_Editor||(De[Ae].panzoomTLs=De[Ae].panzoomTLs===void 0?{}:De[Ae].panzoomTLs,De[Ae].panzoomBGs=De[Ae].panzoomBGs===void 0?{}:De[Ae].panzoomBGs,De[Ae].panzoomBGs[Le]===void 0&&(De[Ae].panzoomBGs[Le]=_e),$e=De[Ae].panzoomTLs[Le]),ke=ke||0,$e!==void 0&&($e.pause(),$e.kill(),$e=void 0),$e=tpGS.gsap.timeline({paused:!0}),qe.panvalues.duration=qe.panvalues.duration===NaN||qe.panvalues.duration===void 0?10:qe.panvalues.duration,_R_is_Editor||qe===void 0||Ie===void 0||(Ie.panvalues=qe.panvalues),Ie!==void 0)&&(Ie.shadowCanvas===void 0&&(Ie.shadowCanvas=document.createElement("canvas"),Ie.shadowCTX=Ie.shadowCanvas.getContext("2d"),Ie.shadowCanvas.style.background="transparent",Ie.shadowCanvas.style.opacity=1),Ie.shadowCanvas.width!==je.width&&(Ie.shadowCanvas.width=je.width),Ie.shadowCanvas.height!==je.height&&(Ie.shadowCanvas.height=je.height),Ke.slideindex=Le,Ke.slidekey=_R_is_Editor?void 0:Ve,Ke.start.slidekey=Ke.slidekey,De.pzDrawShadow(Ae,Ie,Ke.start),Ke.end.onUpdate=function(){De.pzDrawShadow(Ae,Ie,Ke.start)},Ie.panStart=$$2.extend(!0,{},Ke.start),qe.panvalues.blurstart===void 0||qe.panvalues.blurend===void 0||qe.panvalues.blurstart===0&&qe.panvalues.blurend===0||(Ke.start.blur=qe.panvalues.blurstart,Ke.end.blur=qe.panvalues.blurend),(!_R_is_Editor&&Ke.start.blur===void 0&&!De.isFF||window.isSafari11&&De.ISM)&&(Ie.panFake=Ie.panFake===void 0?{img:Ie.loadobj.img.cloneNode(!0)}:Ie.panFake,Ie.panFake!==void 0)&&(Ie.panFake.appended!==!0&&(Ie.panFake.appended=!0,Ie.sbg.appendChild(Ie.panFake.img),Ie.panFake.img.style.position="absolute",Ie.panFake.img.style.display="block",Ie.panFake.img.style.zIndex=0,Ie.panFake.img.style.opacity=0,Ie.panFake.img.style.top="0px",Ie.panFake.img.style.left="0px"),Ie.panFake.img.width=Ke.start.width,Ie.panFake.img.height=Ke.start.height),$e.add(tpGS.gsap.to(Ke.start,qe.panvalues.duration,Ke.end),0),$e.progress(ke),Fe!=="play"&&Fe!=="first"||$e.play(),_R_is_Editor?RVS.TL[RVS.S.slideId].panzoom=$e:De[Ae].panzoomTLs[Le]=$e)}}),window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.panzoom={loaded:!0,version:"6.6.0"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(),function(De){$$2.fn.revolution=$$2.fn.revolution||{};var _e=$$2.fn.revolution,Ae=($$2.extend(!0,_e,{checkForParallax:function(Le){var Fe=_e[Le].parallax;if(!Fe.done){if(Fe.done=!0,_e.ISM&&Fe.disable_onmobile)return!1;if(Fe.type=="3D"||Fe.type=="3d"){for(Ve in _e.addSafariFix(Le),tpGS.gsap.set(_e[Le].c,{overflow:Fe.ddd_overflow}),tpGS.gsap.set(_e[Le].canvas,{overflow:Fe.ddd_overflow}),(_e[Le].sliderType!="carousel"||_e[Le].sliderType=="carousel"&&_e[Le].parallax.type=="mousedrag")&&Fe.ddd_shadow&&(qe=$$2('<div class="dddwrappershadow"></div>'),tpGS.gsap.set(qe,{force3D:"auto",transformPerspective:1600,transformOrigin:"50% 50%",width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:0}),_e[Le].c.prepend(qe)),_e[Le].slides)_e[Le].slides.hasOwnProperty(Ve)&&Ae($$2(_e[Le].slides[Ve]),Le);0<_e[Le].c.find("rs-static-layers").length&&(tpGS.gsap.set(_e[Le].c.find("rs-static-layers"),{top:0,left:0,width:"100%",height:"100%"}),Ae(_e[Le].c.find("rs-static-layers"),Le))}Fe.pcontainers={},Fe.bgcontainers=[],Fe.bgcontainer_depths=[],Fe.speed=Fe.speed===void 0?0:parseInt(Fe.speed,0),Fe.speedbg=Fe.speedbg===void 0?0:parseInt(Fe.speedbg,0),Fe.speedls=Fe.speedls===void 0?0:parseInt(Fe.speedls,0),_e[Le].c.find("rs-slide rs-sbg-wrap, rs-slide rs-bgvideo").each(function(){var ci=$$2(this),gi=ci.data("parallax");window.isSafari11||(_e[Le].parZ=1),(gi=gi=="on"||gi===!0?1:gi)!==void 0&&gi!=="off"&&gi!==!1&&(Fe.bgcontainers.push(ci.
193closest("rs-sbg-px")),Fe.bgcontainer_depths.push(_e[Le].parallax.levels[parseInt(gi,0)-1]/100))});for(var Ve=1;Ve<=Fe.levels.length;Ve++){for(var Ie in _e[Le].slides)_e[Le].slides.hasOwnProperty(Ie)&&(je=(Ke=_e[Le].slides[Ie]).dataset.key,Fe.pcontainers[je]===void 0&&(Fe.pcontainers[je]={}),ke(Ve,Fe,Ke,Fe.pcontainers[je]));var je="static";Fe.pcontainers[je]===void 0&&(Fe.pcontainers[je]={}),ke(Ve,Fe,_e[Le].slayers[0],Fe.pcontainers[je]),JSON.stringify(Fe.pcontainers[je])==JSON.stringify({})&&delete Fe.pcontainers[je]}if(Fe.type=="mouse"||Fe.type=="mousedrag"||Fe.type=="mousescroll"||Fe.type=="3D"||Fe.type=="3d"){var Ke,$e="rs-slide .dddwrapper, .dddwrappershadow, rs-slide .dddwrapper-layer, rs-static-layers .dddwrapper-layer";for(Ie in _e[Le].sliderType==="carousel"&&($e="rs-slide .dddwrapper, rs-slide .dddwrapper-layer, rs-static-layers .dddwrapper-layer"),Fe.sctors={},_e[Le].slides)_e[Le].slides.hasOwnProperty(Ie)&&(je=(Ke=_e[Le].slides[Ie]).dataset.key,Fe.sctors[je]=Ke.querySelectorAll($e));_e[Le].slayers[0]&&(Fe.sctors.static=_e[Le].slayers[0].querySelectorAll($e)),Fe.mouseEntered=!1,_e[Le].c.on("mouseenter",function(ci){var gi=_e[Le].c.offset().top,Ai=_e[Le].c.offset().left;Fe.mouseEnterX=ci.pageX-Ai,Fe.mouseEnterY=ci.pageY-gi,Fe.mouseEntered=!0}),Fe.parallaxHandler=this.updateParallax.bind(this,Le,Fe),Fe.hasAlreadyPermission=!1,Fe.type!="mousedrag"&&_e[Le].c.on("mousemove.hoverdir, mouseleave.hoverdir, trigger3dpath",function(ci){Fe.eventData=ci,Fe.frame!==void 0&&ci.type!=="mouseleave"||(Fe.frame=window.requestAnimationFrame(Fe.parallaxHandler))}),_e.ISM&&(_e.modulesNeedOrientationListener=_e.modulesNeedOrientationListener==null?{}:_e.modulesNeedOrientationListener,_e.modulesNeedOrientationListener[Le]=!0,_e.addDeviceOrientationListener(Le))}var qe=_e[Le].scrolleffect;
193qe.set&&(qe.multiplicator_layers=parseFloat(qe.multiplicator_layers),qe.multiplicator=parseFloat(qe.multiplicator)),qe._L!==void 0&&qe._L.length===0&&(qe._L=!1),qe.bgs!==void 0&&qe.bgs.length===0&&(qe.bgs=!1)}},removeIOSPermissionWait:function(){document.querySelectorAll(".iospermaccwait").forEach(function(Le){Le.classList.add("permanenthidden")})},addDeviceOrientationListener:function(Le){var Fe=_e[Le].parallax;window.addEventListener("deviceorientation",function(Ve){_e.modulesNeedOrientationListener[Le]&&(_e.modulesNeedOrientationListener[Le]=!1,_e.removeIOSPermissionWait()),Fe.eventData=Ve,Fe.frame===void 0&&(Fe.frame=window.requestAnimationFrame(Fe.parallaxHandler))})},getAccelerationPermission:function(Le){DeviceMotionEvent.requestPermission().then(function(Fe){if(Fe=="granted")for(var Ve in _e.modulesNeedOrientationListener)_e.modulesNeedOrientationListener.hasOwnProperty(Ve)&&(_e.modulesNeedOrientationListener[Ve]=!1,_e.removeIOSPermissionWait(),_e.addDeviceOrientationListener(Ve))})},getLayerParallaxOffset:function(Le,Fe,Ve){return _e[Le].parallax!==void 0&&_e[Le].parallax.pcontainers!==void 0&&_e[Le].parallax.pcontainers[_e[Le]._L[Fe].slidekey]!==void 0&&_e[Le].parallax.pcontainers[_e[Le]._L[Fe].slidekey][Fe]!==void 0?Math.abs(_e[Le].parallax.pcontainers[_e[Le]._L[Fe].slidekey][Fe]["offs"+Ve]):0},updateParallax:function(Le,Fe){Fe.frame&&(Fe.frame=window.cancelAnimationFrame(Fe.frame));var Ve,Ie,je,Ke,$e,qe,ci,gi,Ai,oi,ii=Fe.eventData,hi=_e[Le].c.offset().left,Ei=_e[Le].c.offset().top,Li=_e[Le].canv.width,Di=_e[Le].canv.height,zi=Fe.speed/1e3||3;if(Fe.type=="mousedrag"?(Ie=-20*_e[Le].carousel.delta,Ve=-20*_e[Le].carousel.delta,_e[Le].carousel.fromWheel?_e[Le].carousel.orientation==="v"?Ve=0:Ie=0:_e[Le].carousel.orientation==="v"?Ve=_e[Le].carousel.cX-_e[Le].carousel.lerpX:Ie=_e[Le].carousel.cY-_e[Le].carousel.lerpY):Fe.origo=="enterpoint"&&ii.type!=="deviceorientation"?(Fe.mouseEntered===!1&&(Fe.mouseEnterX=ii.pageX-hi,Fe.mouseEnterY=ii.pageY-Ei,Fe.mouseEntered=!0),Ve=Fe.mouseEnterX-(ii.pageX-hi),Ie=Fe.mouseEnterY-(ii.pageY-Ei),zi=Fe.speed/1e3||.4):ii.type!=="deviceorientation"&&(Ve=Li/2-(ii.pageX-hi),Ie=Di/2-(ii.pageY-Ei)),(_e[Le].parallax.type!="mousedrag"||_e[Le].carousel.isPressed)&&ii&&ii.type=="deviceorientation"){var an,hi=ii.beta-60,Je=(an=ii.gamma,hi=hi,1<Math.abs(Fe.orientationX-an)||1<Math.abs(Fe.orientationY-hi));if(Fe.orientationX=an,Fe.orientationY=hi,!Je)return;_e.winW>_e.getWinH(Le)&&(Je=an,an=hi,hi=Je),Ve=360/Li*(an*=1.5),Ie=180/Di*(hi*=1.5)}for(cn in!ii||ii.type!=="mouseleave"&&ii.type!=="mouseout"?_e[Le].parallax.type=="mousedrag"&&_e[Le].carousel.isPressed&&(_e[Le].carousel.orientation==="v"&&Fe.car_dir=="same"&&(Ve=0),Fe.car_dir=="same"?_e[Le].carousel.orientation==="v"?Ve=0:Ie=0:Fe.car_dir=="opposite"&&(_e[Le].carousel.orientation==="v"?(Ve=Ie,Ie=0):(Ie=Ve,Ve=0)),_e[Le].carousel.orientation==="v"?(Ie*=Fe.car_smulti,Ve*=Fe.car_omulti):(Ie*=Fe.car_omulti,Ve*=Fe.car_smulti)):Fe.mouseEntered=!1,Fe.pcontainers)if(Fe.pcontainers.hasOwnProperty(cn)){var fi,Gi=!1;if(Fe.type=="mousedrag"&&!_e[Le].carousel.justify)for(var fn=0;fn<_e[Le].slideamount;fn++)_e[Le].carousel.trackArr[fn].elem.getAttribute("data-key")===cn&&Math.abs(_e[Le].carousel.trackArr[fn].progress<=1)&&(Gi=!0);if(_e[Le].activeRSSlide===void 0||cn==="static"||Gi&&Fe.car_env=="all"||_e[Le].slides[_e[Le].activeRSSlide].dataset.key===cn)for(var fn in Fe.pcontainers[cn])Fe.pcontainers[cn].hasOwnProperty(fn)&&((fi=Fe.pcontainers[cn][fn]).pl=Fe.type=="3D"||Fe.type=="3d"?fi.depth/200:fi.depth/100,fi.offsh=Ve*fi.pl,fi.offsv=Ie*fi.pl,Fe.type=="mousescroll"?tpGS.gsap.to(fi.tpw,zi,{force3D:"auto",x:fi.offsh,ease:"power3.out",overwrite:"all"}):tpGS.gsap.to(fi.tpw,zi,{force3D:"auto",x:fi.offsh,y:fi.offsv,ease:"power3.out",overwrite:"all"}))}if(Fe.type=="3D"||Fe.type=="3d"){for(var cn in Fe.sctors)if(Fe.sctors.hasOwnProperty(cn)&&(_e[Le].activeRSSlide===void 0||cn==="static"||_e[Le].slides[_e[Le].activeRSSlide].dataset.key===cn||_e.isFF))for(var fn in Fe.sctors[cn])Fe.sctors[cn].hasOwnProperty(fn)&&(Ei=$$2(Fe.sctors[cn][fn]),Ke=Ve*(je=_e.isFirefox()?Math.min(25,Fe.levels[Fe.levels.length-1])/200:Fe.levels[Fe.levels.length-1]/200),$e=Ie*je,qe=_e[Le].canv.width!=0&&Math.round(Ve/_e[Le].canv.width*je*100)||0,ci=_e[Le].canv.height!=0&&Math.round(Ie/_e[Le].canv.height*je*100)||0,gi=Ei.closest("rs-slide"),Ai=0,oi=!1,ii.type==="deviceorientation"&&(Ke=Ve*(je=Fe.levels[Fe.levels.length-1]/200),$e=Ie*je*3,qe=_e[Le].canv.width!=0&&Math.round(Ve/_e[Le].canv.width*je*500)||0,ci=_e[Le].canv.height!=0&&Math.round(Ie/_e[Le].canv.height*je*700)||0),Ei.hasClass("dddwrapper-layer")&&(Ai=Fe.ddd_z_correction||65,oi=!0),Ei.hasClass("dddwrapper-layer")&&($e=Ke=0),gi.index()===_e[Le].pr_active_key||_e[Le].sliderType!="carousel"||_e[Le].sliderType=="carousel"&&_e[Le].parallax.type=="mousedrag"?!Fe.ddd_bgfreeze||oi?tpGS.gsap.to(Ei,zi,{rotationX:ci,rotationY:-qe,x:Ke,z:Ai,y:$e,ease:"power3.out",overwrite:"all"}):tpGS.gsap.to(Ei,.5,{force3D:"auto",rotationY:0,rotationX:0,z:0,ease:"power3.out",overwrite:"all"}):tpGS.gsap.to(Ei,.5,{force3D:"auto",rotationY:0,x:0,y:0,rotationX:0,z:0,ease:"power3.out",overwrite:"all"}),ii.type!="mouseleave"&&ii.type!=="mouseout"||tpGS.gsap.to(this,3.8,{z:0,ease:"power3.out"}))}},parallaxProcesses:function(Le,Fe,Ve,Ie){var je=_e[Le].fixedOnTop?Math.min(1,Math.max(0,window.scrollY/_e.lastwindowheight)):Math.min(1,Math.max(0,(0-(Fe.top-_e.lastwindowheight))/(Fe.hheight+_e.lastwindowheight))),Ke=(0<=Fe.top&&Fe.top<=_e.lastwindowheight||Fe.top<=0&&0<=Fe.bottom||Fe.top<=0&&Fe.bottom,_e[Le].slides[_e[Le].pr_active_key===void 0?0:_e[Le].pr_active_key]);if(_e[Le].scrollProg=je,_e[Le].scrollProgBasics={top:Fe.top,height:Fe.hheight,bottom:Fe.bottom},_e[Le].sbtimeline.fixed?(_e[Le].fixedScrollOnState===!1||_e[Le].drawUpdates.cpar.left!==0||!_e.stickySupported||_e[Le].fullScreenOffsetResult!=0&&_e[Le].fullScreenOffsetResult!=null?_e.stickySupported=!1:(_e[Le].topc.addClass("rs-stickyscrollon"),_e[Le].fixedScrollOnState=!0),_e[Le].sbtimeline.rest===void 0&&_e.updateFixedScrollTimes(Le),Fe.top>=_e[Le].fullScreenOffsetResult&&Fe.top<=_e.lastwindowheight?(je=_e[Le].sbtimeline.fixStart*(1-Fe.top/_e.lastwindowheight)/1e3,_e.stickySupported!==!0&&_e[Le].fixedScrollOnState!==!1&&(_e[Le].topc.removeClass("rs-fixedscrollon"),tpGS.gsap.set(_e[Le].cpar,{top:0,y:0}),_e[Le].fixedScrollOnState=!1)):je=Fe.top<=_e[Le].fullScreenOffsetResult&&Fe.bottom>=_e[Le].module.height?(_e.stickySupported!==!0&&_e[Le].fixedScrollOnState!==!0&&(_e[Le].fixedScrollOnState=!0,_e[Le].topc.addClass("rs-fixedscrollon"),tpGS.gsap.set(_e[Le].cpar,{top:0,y:_e[Le].fullScreenOffsetResult})),(_e[Le].sbtimeline.fixStart+_e[Le].sbtimeline.time*(Math.abs(Fe.top)/(Fe.hheight-_e[Le].module.height)))/1e3):(_e.
193stickySupported!==!0&&(tpGS.gsap.set(_e[Le].cpar,{top:0<=_e[Le].scrollproc?0:Fe.height-_e[Le].module.height}),_e[Le].fixedScrollOnState!==!1)&&(_e[Le].topc.removeClass("rs-fixedscrollon"),_e[Le].fixedScrollOnState=!1),Fe.top>_e.lastwindowheight?0:(_e[Le].sbtimeline.fixEnd+_e[Le].sbtimeline.rest*(1-Fe.bottom/_e[Le].module.height))/1e3)):je=_e[Le].duration*je/1e3,Ke!==void 0&&_e.gA(Ke,"key")!==void 0&&Ve!==!0){var $e,qe,ci=0;for($e in _e[Le].sbas[_e.gA(Ke,"key")])_e[Le]._L[$e]!==void 0&&_e[Le]._L[$e].timeline==null&&ci++,_e[Le]._L[$e]===void 0||_e[Le]._L[$e].timeline===void 0||_e[Le]._L[$e].animationonscroll!=1&&_e[Le]._L[$e].animationonscroll!="true"||(ci=-9999,qe=_e[Le]._L[$e].scrollBasedOffset!==void 0?je+_e[Le]._L[$e].scrollBasedOffset:je,_e[Le]._L[$e].animteToTime!==(qe=qe<=0?0:qe<.1?.1:qe)&&(_e[Le]._L[$e].animteToTimeCache=_e[Le]._L[$e].animteToTime,_e[Le]._L[$e].animteToTime=qe,tpGS.gsap.to(_e[Le]._L[$e].timeline,_e[Le].sbtimeline.speed,{time:qe,ease:_e[Le].sbtimeline.ease})));0<ci&&requestAnimationFrame(function(){_e.parallaxProcesses(Le,Fe,Ve,Ie)}),_e[Le].c.trigger("timeline_scroll_processed",{id:Le,mproc:je,speed:_e[Le].sbtimeline.speed})}if(_e.ISM&&_e[Le].parallax.disable_onmobile)return!1;var gi,Ai,oi=_e[Le].parallax;if(_e[Le].slides[_e[Le].pr_processing_key]!==void 0&&_e[Le].slides[_e[Le].pr_processing_key].dataset!==void 0&&(gi=_e[Le].slides[_e[Le].pr_processing_key].dataset.key),oi.type!="3d"&&oi.type!="3D"){if(oi.type=="scroll"||oi.type=="mousescroll"){for(var ii in oi.pcontainers)if(oi.pcontainers.hasOwnProperty(ii)&&(_e[Le].activeRSSlide===void 0||ii==="static"||_e[Le].slides[_e[Le].activeRSSlide].dataset.key===ii||gi===ii))for(var hi in oi.pcontainers[ii])oi.pcontainers[ii].hasOwnProperty(hi)&&(Ai=oi.pcontainers[ii][hi],Di=Ie!==void 0?Ie:oi.speedls/1e3||0,Ai.pl=Ai.depth/100,Ai.offsv=Math.round(_e[Le].scrollproc*-(Ai.pl*_e[Le].canv.height)*10)/10||0,tpGS.gsap.to(Ai.tpw,Di,{overwrite:"auto",force3D:"auto",y:Ai.offsv}))}if(oi.bgcontainers)for(hi=0;hi<oi.bgcontainers.length;hi++){var Ei=oi.bgcontainers[hi],Li=oi.bgcontainer_depths[hi],Li=_e[Le].scrollproc*-(Li*_e[Le].canv.height)||0,Di=Ie!==void 0?Ie:oi.speedbg/1e3||.015;Di=_e[Le].parallax.lastBGY!==void 0&&Di===0&&50<Math.abs(Li-_e[Le].parallax.lastBGY)?.15:Di,tpGS.gsap.to(Ei,Di,{position:"absolute",top:"0px",left:"0px",backfaceVisibility:"hidden",force3D:"true",y:Li+"px"}),_e[Le].parallax.lastBGY=Li}}var zi=_e[Le].scrolleffect;if(zi.set&&(!_e.ISM||zi.disable_onmobile===!1)){var an,Ke=(Ke=Math.abs(_e[Le].scrollproc)-zi.tilt/100)<0?0:Ke;if(zi._L!==!1&&(fn=1-Ke*zi.multiplicator_layers,cn={force3D:"true"},zi.direction=="top"&&0<=_e[Le].scrollproc&&(fn=1),fn=1<(fn=zi.direction=="bottom"&&_e[Le].scrollproc<=0?1:fn)?1:fn<0?0:fn,zi.fade&&(cn.opacity=fn),zi.scale&&(an=fn,cn.scale=1-an+1),zi.blur&&(fi=(1-fn)*zi.maxblur,cn["-webkit-filter"]="blur("+(fi=fi<=.03?0:fi)+"px)",cn.filter="blur("+fi+"px)",window.isSafari11)&&zi._L!==void 0&&zi._L[0]!==void 0&&zi._L[0][0]!==void 0&&zi._L[0][0].tagName=="RS-MASK-WRAP"&&(cn.z=.001),zi.grayscale&&(Gi="grayscale("+100*(1-fn)+"%)",cn["-webkit-filter"]=cn["-webkit-filter"]===void 0?Gi:cn["-webkit-filter"]+" "+Gi,cn.filter=cn.filter===void 0?Gi:cn.filter+" "+Gi),tpGS.gsap.set(zi._L,cn)),zi.bgs!==!1){var Je,fi,Gi,fn=1-Ke*zi.multiplicator,cn={backfaceVisibility:"hidden",force3D:"true"};for(Je in zi.direction=="top"&&0<=_e[Le].scrollproc&&(fn=1),fn=1<(fn=zi.direction=="bottom"&&_e[Le].scrollproc<=0?1:fn)?1:fn<0?0:fn,zi.bgs)zi.bgs.hasOwnProperty(Je)&&(zi.bgs[Je].fade&&(cn.opacity=fn),zi.bgs[Je].blur&&(fi=(1-fn)*zi.maxblur,cn["-webkit-filter"]="blur("+fi+"px)",cn.filter="blur("+fi+"px)"),zi.bgs[Je].grayscale&&(Gi="grayscale("+100*(1-fn)+"%)",cn["-webkit-filter"]=cn["-webkit-filter"]===void 0?Gi:cn["-webkit-filter"]+" "+Gi,cn.filter=cn.filter===void 0?Gi:cn.filter+" "+Gi),tpGS.gsap.set(zi.bgs[Je].c,cn))}}}}),function(Le,Fe){var Ve=_e[Fe].parallax,Ie=(Le.find("rs-sbg-wrap").wrapAll('<div class="dddwrapper" style="width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden"></div>'),Le[0].querySelectorAll(".rs-parallax-wrap")),je=document.createElement("div");je.className="dddwrapper-layer",je.style.width="100%",je.style.height="100%",
193je.style.position="absolute",je.style.top="0px",je.style.left="0px",je.style.zIndex=5,je.style.overflow=Ve.ddd_layer_overflow;for(var Ke=0;Ke<Ie.length;Ke++)Ie.hasOwnProperty(Ke)&&_e.closestNode(Ie[Ke],"RS-GROUP")===null&&_e.closestNode(Ie[Ke],"RS-ROW")===null&&je.appendChild(Ie[Ke]);Le[0].appendChild(je),Le.find(".rs-pxl-tobggroup").closest(".rs-parallax-wrap").wrapAll('<div class="dddwrapper-layertobggroup" style="position:absolute;top:0px;left:0px;z-index:50;width:100%;height:100%"></div>');var $e=Le.find(".dddwrapper"),qe=Le.find(".dddwrapper-layer");Le.find(".dddwrapper-layertobggroup").appendTo($e),_e[Fe].sliderType=="carousel"&&(Ve.ddd_shadow&&$e.addClass("dddwrappershadow"),tpGS.gsap.set($e,{borderRadius:_e[Fe].carousel.border_radius})),tpGS.gsap.set(Le,{overflow:"visible",transformStyle:"preserve-3d",perspective:1600}),tpGS.gsap.set($e,{force3D:"auto",transformOrigin:"50% 50%",transformStyle:"preserve-3d",transformPerspective:1600}),tpGS.gsap.set(qe,{force3D:"auto",transformOrigin:"50% 50%",zIndex:5,transformStyle:"flat",transformPerspective:1600}),tpGS.gsap.set(_e[Fe].canvas,{transformStyle:"preserve-3d",transformPerspective:1600})});function ke(Le,Fe,Ve,Ie){De(Ve).find(".rs-pxl-"+Le).each(function(){var je=0<=this.className.indexOf("rs-pxmask"),Ke=je?_e.closestNode(this,"RS-PX-MASK"):_e.closestClass(this,"rs-parallax-wrap");Ke&&(je&&!window.isSafari11&&(tpGS.gsap.set(Ke,{z:1}),tpGS.gsap.set(_e.closestNode(Ke,"RS-BG-ELEM"),{z:1})),Ke.dataset.parallaxlevel=Fe.levels[Le-1],Ke.classList.add("tp-parallax-container"),Ie[this.id]={tpw:Ke,depth:Fe.levels[Le-1],offsv:0,offsh:0})})}window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.parallax={loaded:!0,version:"6.6.0"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}($$2),function(){window._R_is_Editor?RVS._R=RVS._R===void 0?{}:RVS._R:window._R_is_Editor=!1;var De="power1.inOut",_e="power2.inOut",Ae=($$2.fn.revolution=$$2.fn.revolution||{},_R_is_Editor?RVS._R:$$2.fn.revolution),ke=(_R_is_Editor&&(RVS._R.isNumeric=RVS.F.isNumeric),$$2.extend(!0,Ae,{getSlideAnimationObj:function(oi,ii,hi){var Ei,Li,Di,zi,an={};for(Li in ii.anim===void 0&&ii.in==null&&(ii.in="o:0"),ii)if(ii.hasOwnProperty(Li)&&ii[Li]!==void 0)for(zi in Di=ii[Li].split(";"))Di.hasOwnProperty(zi)&&(Ei=Di[zi].split(":"))[0]!==void 0&&Ei[1]!==void 0&&(an[Li]=an[Li]===void 0?{}:an[Li],an[Li][Ei[0]]=Li==="d3"&&Ei[0]==="c"?Ei[1]:Ei[1].split(",")[0]);return an.in=an.in===void 0?{}:an.in,an.anim=an.anim===void 0?{e:"basic"}:an.anim,_R_is_Editor||an.in===void 0||an.in.prst===void 0||Ae.loadSlideAnimLibrary(oi,{key:hi,prst:an.in.prst}),Ae[oi].sbgs[hi].slideanimationRebuild=!1,an},loadSlideAnimLibrary:function(oi,ii){Ae.SLTR===void 0&&Ae.SLTR_loading!==!0?(Ae.SLTR_loading=!0,$$2.ajax({type:"post",url:Ae[oi].ajaxUrl,dataType:"json",data:{action:"revslider_ajax_call_front",client_action:"get_transitions"},success:function(hi,Ei,Li){hi.success==1&&(Ae.SLTR=hi.transitions,ii!==void 0)&&Ae.setRandomDefaults(oi,ii.key,ii.prst)},error:function(hi){console.log("Transition Table can not be loaded"),console.log(hi)}})):ii!==void 0&&Ae.SLTR!==void 0&&Ae.setRandomDefaults(oi,ii.key,ii.prst)},convertSlideAnimVals:function(oi){return{anim:{eng:oi.eng,ms:parseInt(oi.speed,0),o:oi.o,e:oi.e,f:oi.f,p:oi.p,d:parseInt(oi.d,0),adpr:oi.adpr},d3:{f:oi.d3.f,d:oi.d3.d,z:oi.d3.z,t:oi.d3.t,c:oi.d3.c,e:oi.d3.e,fdi:oi.d3.fdi,fdo:oi.d3.fdo,fz:oi.d3.fz,su:oi.d3.su,smi:oi.d3.smi,sma:oi.d3.sma,sc:oi.d3.sc,sl:oi.d3.sl},in:{eng:oi.in.eng,o:_R_is_Editor&&oi.preset!==void 0&&oi.preset.indexOf("rnd")===0?0:Ae.valBeau(oi.in.o),x:Ae.valBeau(oi.in.x),y:Ae.valBeau(oi.in.y),r:Ae.valBeau(oi.in.r),sx:Ae.valBeau(oi.in.sx),sy:Ae.valBeau(oi.in.sy),m:oi.in.m,e:oi.in.e,row:oi.in.row,col:oi.in.col,mo:oi.in.mou!=="false"&&oi.in.mou!==!1?Ae.valBeau(oi.in.mo):0,moo:oi.in.mou!=="false"&&oi.in.mou!==!1?Ae.valBeau(oi.in.moo):"none",mou:oi.in.mou},out:oi.out.a===void 0||oi.out.a=="true"||oi.out.a===!0?void 0:{a:Ke(oi.out.a),o:Ae.valBeau(oi.out.o),x:Ae.valBeau(oi.out.x),y:Ae.valBeau(oi.out.y),r:Ae.valBeau(oi.out.r),sx:Ae.valBeau(oi.out.sx),sy:Ae.valBeau(oi.out.sy),m:oi.out.m,e:oi.out.e,row:Ae.valBeau(oi.out.row),col:Ae.valBeau(oi.out.col)},filter:{u:oi.filter.u,e:oi.filter.e,b:oi.filter.b,g:oi.filter.g,h:oi.filter.h,s:oi.filter.s,c:oi.filter.c,i:oi.filter.i},addOns:oi.addOns}},setRandomDefaults:function(oi,ii,hi){Ae[oi].sbgs[ii].random=Ae.getAnimObjectByKey(hi,Ae.SLTR)},getSlideAnim_AddonDefaults:function(){var oi,ii={};for(oi in Ae.enabledSlideAnimAddons)ii=$$2.extend(!0,ii,Ae[Ae.enabledSlideAnimAddons[oi]].defaults());return ii},getSlideAnim_EmptyObject:function(){return{speed:1e3,o:"inout",e:"basic",f:"start",p:"none",d:15,eng:"animateCore",adpr:!0,d3:{f:"none",d:"horizontal",z:300,t:0,c:"#ccc",e:"power2.inOut",fdi:1.5,fdo:2,fz:0,su:!1,smi:0,sma:.5,sc:"#000",sl:1},filter:{u:!1,e:"default",b:0,g:0,h:100,s:0,c:100,i:0},in:{o:1,x:0,y:0,r:0,sx:1,sy:1,m:!1,e:"power2.inOut",row:1,col:1,mo:80,mou:!1},out:{a:"true",o:1,x:0,y:0,r:0,sx:1,sy:1,m:!1,e:"power2.inOut",row:1,col:1},addOns:Ae.getSlideAnim_AddonDefaults()}},getAnimObjectByKey:function(oi,ii){if(Ae.getAnimObjectCacheKey===oi)return Ae.getAnimObjectCache;var hi,Ei;for(Ei in Ae.getAnimObjectCacheKey=oi,ii)if(ii.hasOwnProperty(Ei)&&hi===void 0){for(var Li in ii[Ei])if(ii[Ei].hasOwnProperty(Li)&&hi===void 0)if(oi===Li&&oi.indexOf("rnd")===0)(hi=ii[Ei][Li]).main=Ei,hi.group=Li;else for(var Di in ii[Ei][Li])ii[Ei][Li].hasOwnProperty(Di)&&hi===void 0&&Di===oi&&((hi=ii[Ei][Li][Di]).main=Ei,hi.group=Li)}return Ae.getAnimObjectCache=$$2.extend(!0,{},hi),hi},getRandomSlideTrans:function(oi,ii,hi){if(Ae.randomSlideAnimCac
193he===void 0||Ae.randomSlideAnimCache[oi]===void 0||Ae.randomSlideAnimCache[oi][ii]===void 0){for(var Ei in Ae.randomSlideAnimCache=Ae.randomSlideAnimCache===void 0?{}:Ae.randomSlideAnimCache,Ae.randomSlideAnimCache[oi]=Ae.randomSlideAnimCache[oi]===void 0?{}:Ae.randomSlideAnimCache[oi],Ae.randomSlideAnimCache[oi][ii]=Ae.randomSlideAnimCache[oi][ii]===void 0?[]:Ae.randomSlideAnimCache[oi][ii],hi)if(hi.hasOwnProperty(Ei)&&Ei!=="random"&&Ei!=="custom"&&(oi=="all"||Ei==oi)){for(var Li in hi[Ei])if(hi[Ei].hasOwnProperty(Li)&&Li!=="icon"&&(""+ii=="undefined"||0<=ii.indexOf(Li)))for(var Di in hi[Ei][Li])hi[Ei][Li].hasOwnProperty(Di)&&$$2.inArray(hi[Ei][Li][Di].title,["*north*","*south*","*east*","*west*"])==-1&&Ae.randomSlideAnimCache[oi][ii].push(Di)}}return Ae.randomSlideAnimCache[oi][ii][Math.floor(Math.random()*Ae.randomSlideAnimCache[oi][ii].length)]},cbgW:function(oi,ii){return _R_is_Editor?RVS.RMD.width:Ae[oi].sliderType==="carousel"?Ae[oi].justifyCarousel?Ae[oi].carousel.slide_widths[ii!==void 0?ii:Ae[oi].carousel.focused]:Ae[oi].carousel.slide_width:Ae[oi].canv.width},cbgH:function(oi,ii){return _R_is_Editor?RVS.RMD.height:Ae[oi].sliderType==="carousel"?Ae[oi].carousel.orientation=="v"&&(Ae[oi].sliderLayout==="fullscreen"||Ae[oi].infullscreenmode)||Ae[oi].carousel.justify===!0?Ae[oi].carousel.slide_height:Ae[oi].sliderLayout==="fullscreen"||Ae[oi].infullscreenmode?Ae[oi].module.height:Math.min(Ae[oi].canv.height,Ae[oi].gridheight[Ae[oi].level]):Ae[oi].maxHeight!==void 0&&0<Ae[oi].maxHeight&&!Ae[oi].fixedOnTop?Math.min(Ae[oi].canv.height,Ae[oi].maxHeight):Ae[oi].canv.height},valBeau:function(oi){return oi=(""+(oi=(""+(oi=(""+(oi=(""+(oi=(""+oi).split(",").join("|"))).replace("{","ran("))).replace("}",")"))).replace("[","cyc("))).replace("]",")")},animateSlide:function(oi,ii){return _R_is_Editor&&RVS.F.resetSlideTL(),tpGS.eases.late===void 0&&(tpGS.CustomEase.create("late","M0,0,C0,0,0.474,0.078,0.724,0.26,0.969,0.438,1,1,1,1"),tpGS.CustomEase.create("late2","M0,0 C0,0 0.738,-0.06 0.868,0.22 1,0.506 1,1 1,1 "),tpGS.CustomEase.create("late3","M0,0,C0,0,0.682,0.157,0.812,0.438,0.944,0.724,1,1,1,1")),Ve(oi,ii)},getBasic:function(oi){return $$2.extend(!0,{attr:oi==null||oi.attr===void 0?["o","r","sx","sy","x","y","m","e","row","col","mo","moo"]:oi.attr,in:{f:"start",m:!1,o:1,r:0,sx:1,sy:1,x:0,y:0,row:1,col:1,e:_e,ms:1e3,mo:0,moo:"none"},out:{f:"start",m:!1,o:1,r:0,sx:1,sy:1,x:0,y:0,row:1,col:1,e:_e,ms:1e3}},oi)},playBGVideo:function(oi,ii,hi){if(_R_is_Editor)hi=hi===void 0?RVS.SBGS[RVS.S.slideId].n:hi;else{if(hi===void 0&&(Ae[oi].pr_next_bg===void 0||Ae[oi].pr_next_bg.length===0))return;hi=hi===void 0?Ae[oi].sbgs[ii===void 0?Ae[oi].pr_next_bg[0].dataset.key:ii]:hi}hi.bgvid!==void 0&&0<hi.bgvid.length&&(qe(oi,{},hi,"in"),Ae.resetVideo(hi.bgvid,oi),Ae.playVideo(hi.bgvid,oi,!0),tpGS.gsap.to(hi.bgvid[0],.2,{zIndex:30,display:"block",autoAlpha:1,delay:.075,overwrite:"all"}))},stopBGVideo:function(oi,ii,hi){if(_R_is_Editor)hi=hi===void 0?RVS.SBGS[RVS.S.slideId].n:hi;else{if(hi===void 0&&(Ae[oi].pr_next_bg===void 0||Ae[oi].pr_next_bg.length===0))return;hi=hi===void 0?Ae[oi].sbgs[ii===void 0?Ae[oi].pr_next_bg[0].dataset.key:ii]:hi}hi.bgvid!==void 0&&0<hi.bgvid.length&&(hi.drawVideoCanvasImagesRecall=!1,Ae.stopVideo(hi.bgvid,oi),tpGS.gsap.to(hi.bgvid[0],.2,{autoAlpha:0,zIndex:0,display:"none"}))},SATools:{getOffset:function(oi,ii,hi,Ei){var Li=0<=(""+oi).indexOf("%");return(oi=Ae.SATools.getSpecialValue(oi,Ei,hi))==0||oi===void 0?0:Li?ii*(parseInt(oi)/100):parseInt(oi)},getSpecialValue:function(oi,ii,hi,Ei){var Li;return Ae.isNumeric(parseFloat(oi,0))?parseFloat(oi,0):(oi=((Li=1<(""+oi).split("ran(").length?"random":1<(""+oi).split("cyc(").length?"wrap":1<(""+oi).split("(").length?"dir":"unknown")=="random"||Li=="wrap"?oi.slice(4,-1):oi.slice(1,-1)).split("|"),Li=="random"?tpGS.gsap.utils.random(parseFloat(oi[0]),parseFloat(1<oi.length?oi[1]:0-oi[0])):Li=="wrap"?1<(""+(ii=tpGS.gsap.utils.wrap(oi,ii))).split("(").length?parseFloat(ii.slice(1,-1))*hi+(Ei?"%":""):ii:Li=="dir"?parseFloat(oi[0])*hi+(Ei?"%":""):void 0)}},getmDim:function(oi,Li,hi){var Ei=Ae.cbgW(oi,Li),Li=Ae.cbgH(oi,Li);return hi.DPR=_R_is_Editor?Math.min(window.devicePixelRatio,2):Ae[oi].DPR,Ae.maxDimCheck(hi,Ei,Li)},maxDimCheck:function(oi,ii,hi){var Ei,Li,Di,zi,an,Je;return oi.video!==void 0&&oi.video.tagName!=="img"&&oi.video.videoWidth!=null&&oi.video.videoWidth,(oi.currentState==="animating"||oi.panzoom!=null)&&(oi.currentState!=="animating"||oi.panzoom!=null||oi.slideanimation!=null&&oi.slideanimation.anim!=null&&oi.slideanimation.anim.adpr==="true")||1<oi.DPR&&Ae.ISM&&1024<hi?(oi.DPR=1,Ei=ii,Li=hi):((Di={w:oi.video==null||oi.isVidImg||oi.video.videoWidth==0?oi.loadobj.width:oi.video.videoWidth,h:oi.video==null||oi.isVidImg||oi.video.videoHeight==0?oi.loadobj.height:oi.video.videoHeight}).w===void 0&&(Di.w=oi.loadobj.width),Di.h===void 0&&(Di.h=oi.loadobj.height),Je=hi/Di.w,zi=ii/Di.h,(an=Math.max(Je,zi))>oi.DPR||1<=Je&&1<=zi?oi.DPR=1:oi.DPR>an&&(oi.DPR=Math.min(oi.DPR,oi.DPR/an)),Ei=ii*oi.DPR,Li=hi*oi.DPR,1<oi.DPR&&(Je=ii/hi,Di.h<Di.w&&Di.w<Ei?(Li=(Ei=Math.max(Ei,Di.w))/Je,oi.DPR=1):Di.w<Di.h&&Di.h<Li&&(Ei=(Li=Math.max(Li,Di.h))*Je,oi.DPR=1))),{width:Math.round(Ei),height:Math.round(Li),w:ii,h:hi}},updateSlideBGs:function(oi,ii,hi,Ei){if(_R_is_Editor)hi=hi===void 0?RVS.SBGS[RVS.S.slideId].n:hi;else{if(hi===void 0&&(Ae[oi].pr_next_bg===void 0||Ae[oi].pr_next_bg.length===0))return;hi=hi===void 0?Ae[oi].sbgs[ii===void 0?Ae[oi].pr_next_bg[0].dataset.key:ii]:hi}
193(Ei=hi.mDIM!==void 0&&Ei)||(hi.mDIM=Ae.getmDim(oi,hi.skeyindex,hi)),hi.video!==void 0?(hi.video.tagName!=="IMG"&&(hi.isVidImg=""),hi.cDIMS=Ae.getBGCanvasDetails(oi,hi),hi.canvas.width=hi.mDIM.width,hi.canvas.height=hi.mDIM.height,hi.ctx.clearRect(0,0,hi.mDIM.width,hi.mDIM.height),hi.ctx.drawImage(hi.shadowCanvas,0,0)):(hi.cDIMS=Ae.getBGCanvasDetails(oi,hi,Ei),hi.canvas.width=hi.mDIM.width,hi.canvas.height=hi.mDIM.height,hi.currentState==="panzoom"||hi.currentState==="animating"||hi.currentState===void 0&&!_R_is_Editor&&Ae[oi].sliderType!="carousel"||(hi.ctx.clearRect(0,0,hi.mDIM.width,hi.mDIM.height),hi.shadowCanvas.width!==0&&hi.shadowCanvas.height!==0&&hi.ctx.drawImage(hi.shadowCanvas,0,0))),hi.currentState==="animating"&&Ae[oi].sliderType!=="carousel"&&Ae.animatedCanvasUpdate(oi,hi)},addCanvas:function(){var oi=document.createElement("canvas");return x=oi.getContext("2d"),oi.style.background="transparent",oi.style.opacity=1,x},updateVideoFrames:function(oi,ii,hi){var Ei;ii.now=Date.now(),ii.then=ii.then===void 0?ii.now-500:ii.then,ii.elapsed=ii.now-ii.then,ii.fps=ii.currentState==="animating"&&window._rs_firefox?50:33,ii.elapsed>ii.fps&&(ii.then=ii.now-ii.elapsed%ii.fps,Ei=ii.video.tagName==="img"||ii.video.videoWidth==null||ii.video.videoWidth==0,ii.video!==void 0&&!ii.video.BGrendered&&ii.loadobj!==void 0&&ii.loadobj.img!==void 0||Ae.ISM&&Ae.isFirefox(oi)?(ii.mDIM=Ae.getmDim(oi,ii.skeyindex,ii),ii.pDIMS=Ie(ii.mDIM,ii,{width:ii.mDIM.width,height:ii.mDIM.height,x:0,y:0,contw:ii.loadobj.width,conth:ii.loadobj.height}),ii.shadowCanvas.width!==ii.mDIM.width&&(ii.shadowCanvas.width=ii.mDIM.width),ii.shadowCanvas.height!==ii.mDIM.height&&(ii.shadowCanvas.height=ii.mDIM.height),ii.shadowCTX.drawImage(ii.loadobj.img,ii.pDIMS.x,ii.pDIMS.y,ii.pDIMS.width,ii.pDIMS.height)):(!hi&&ii.sDIMS!==void 0&&Ei===ii.isVidImg&&ii.sDIMS.width!==0&&ii.sDIMS.height!==0||(ii.isVidImg=Ei,ii.mDIM=Ae.getmDim(oi,ii.skeyindex,ii),ii.sDIMS=Ie(ii.mDIM,ii,{width:ii.mDIM.width,height:ii.mDIM.height,x:0,y:0,contw:ii.isVidImg?ii.loadobj.width:ii.video.videoWidth,conth:ii.isVidImg?ii.loadobj.height:ii.video.videoHeight})),ii.sDIMS!==void 0&&ii.sDIMS.width!==0&&ii.sDIMS.height!==0&&(ii.currentState==="animating"?(ii.shadowCanvas.width!==ii.mDIM.width&&(ii.shadowCanvas.width=ii.mDIM.width),ii.shadowCanvas.height!==ii.mDIM.height&&(ii.shadowCanvas.height=ii.mDIM.height),ii.shadowCTX.drawImage(ii.video,ii.sDIMS.x,ii.sDIMS.y,ii.sDIMS.width,ii.sDIMS.height)):ii.animateDirection===void 0&&(ii.canvas.width!==ii.mDIM.width&&(ii.canvas.width=ii.mDIM.width),ii.canvas.height!==ii.mDIM.height&&(ii.canvas.height=ii.mDIM.height),ii.ctx.drawImage(ii.video,ii.sDIMS.x,ii.sDIMS.y,ii.sDIMS.width,ii.sDIMS.height)),ii.shadowCanvas_Drawn=!0))),(hi||ii.drawVideoCanvasImagesRecall&&ii.currentState==="animating"||ii.currentState==="animating"&&ii.shadowCanvas_Drawn===void 0)&&window.requestAnimationFrame(function(){Ae.updateVideoFrames(oi,ii)})},createOverlay:function(oi,ii,hi,Li){if(ii==="none")return"none";hi=hi===void 0?1:hi;var Li=Li===void 0?{0:"rgba(0, 0, 0, 0)",1:"rgba(0, 0, 0, 1)"}:Li,Di={none:[[0]],1:[[1,0],[0,0]],2:[[1,0,0],[0,0,0],[0,0,0]],3:[[1,0,0,0],[0,0,0,0],[0,0,0,0]],4:[[1],[0]],5:[[1],[0],[0]],6:[[1],[0],[0],[0]],7:[[1,0]],8:[[1,0,0]],9:[[1,0,0,0]],10:[[1,0,0,0,0],[0,1,0,1,0],[0,0,0,0,0],[0,1,0,1,0],[0,0,0,0,1]],11:[[0,0,1,0,0],[0,1,0,1,0],[1,0,0,0,1],[0,1,0,1,0],[0,0,1,0,0]],12:[[1,0,0],[0,1,0],[0,0,1]],13:[[0,0,1],[0,1,0],[1,0,0]],14:[[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,0]],15:[[0,0,0,0,1],[0,0,0,1,0],[0,0,1,0,0],[0,1,0,0,0],[1,0,0,0,0]],16:[[1,0,0,0,1],[0,1,0,1,0],[0,0,1,0,0],[0,1,0,1,0],[1,0,0,0,1]]},zi=Di[ii=ii===void 0?1:ii]===void 0?Di[2]:Di[ii];_R_is_Editor&&(Ae[oi]=Ae[oi]===void 0?{}:Ae[oi]),Ae[oi].patternCanvas=document.createElement("canvas"),Ae[oi].patternCtx=Ae[oi].patternCanvas.getContext("2d"),Ae[oi].patternCanvas.width=zi[0].length*hi,Ae[oi].patternCanvas.height=zi.length*hi;for(var an=0;an<zi.length;an++)for(var Je=0;Je<zi[an].length;Je++)Li[zi[an][Je]]!="transparent"&&(Ae[oi].patternCtx.fillStyle=Li[zi[an][Je]],Ae[oi].patternCtx.fillRect(Je*hi,an*hi,hi,hi));
193return"url("+Ae[oi].patternCanvas.toDataURL()+")"},getBGCanvasDetails:function(oi,ii,hi){var Ei;return hi||(ii.mDIM=Ae.getmDim(oi,ii.skeyindex,ii)),ii.usepattern=(ii.bgfit==="auto"||0<=ii.bgfit.indexOf("%"))&&(ii.loadobj===void 0||ii.loadobj.useBGColor!==!0),_R_is_Editor&&ii.panzoom===void 0&&delete ii.shadowCanvas,ii.shadowCanvas===void 0&&(ii.shadowCanvas=document.createElement("canvas"),ii.shadowCTX=ii.shadowCanvas.getContext("2d"),ii.shadowCanvas.style.background="transparent",ii.shadowCanvas.style.opacity=1),ii.replaceShadowCanvas===!0||ii.loadobj.bgColor===!0||ii.usebgColor===!0||ii.panzoom!==void 0||ii.isHTML5!=null&&ii.poster!=1||ii.usepattern?(Ei={width:ii.mDIM.width,height:ii.mDIM.height,x:0,y:0},ii.usepattern&&ii.loadobj!==void 0&&ii.loadobj.img!==void 0?Ae.getCanvasPattern(oi,ii,{ratio:ii.loadobj.height/ii.loadobj.width}):(ii.loadobj.bgColor||ii.usebgColor)&&(ii.shadowCanvas.width!==ii.mDIM.width&&(ii.shadowCanvas.width=ii.mDIM.width),ii.shadowCanvas.height!==ii.mDIM.height&&(ii.shadowCanvas.height=ii.mDIM.height),Ae.getCanvasGradients(oi,ii))):(Ei=Ie(ii.mDIM,ii,{width:ii.mDIM.width,height:ii.mDIM.height,x:0,y:0,contw:ii.loadobj.width,conth:ii.loadobj.height}),ii.shadowCanvas.width!==ii.mDIM.width&&(ii.shadowCanvas.width=ii.mDIM.width),ii.shadowCanvas.height!==ii.mDIM.height&&(ii.shadowCanvas.height=ii.mDIM.height),ii.loadobj!==void 0&&ii.loadobj.img!==void 0&&ii.shadowCTX.drawImage(ii.loadobj.img,Ei.x,Ei.y,Ei.width,Ei.height),Ei={width:ii.mDIM.width,height:ii.mDIM.height,x:0,y:0}),Ei},getCanvasPattern:function(oi,ii,hi){ii.patternImageCanvas===void 0&&(ii.patternImageCanvas=document.createElement("canvas"),ii.patternImageCTX=ii.patternImageCanvas.getContext("2d"));var Ei=ii.bgfit.split(" "),Ei=(Ei.length===1&&(Ei[1]=Ei[0]),hi.width=Ei[0]==="auto"?ii.loadobj.width:ii.loadobj.width*(parseInt(Ei[0],0)/100),hi.height=Ei[1]==="auto"?ii.loadobj.height:hi.width*hi.ratio,ii.DPR=_R_is_Editor?Math.min(window.devicePixelRatio,2):Ae[oi].DPR,hi.width/hi.height);hi.width=hi.width*ii.DPR,hi.height=hi.height*ii.DPR,Ae.isIOS&&15728640<hi.width*hi.height&&(ii.mDIM.width>ii.mDIM.height?(hi.width=ii.mDIM.width,hi.height=Math.round(ii.mDIM.width/Ei)):(hi.height=ii.mDIM.height,hi.width=Math.round(ii.mDIM.height*Ei))),ii.patternImageCanvas.width=hi.width,ii.patternImageCanvas.height=hi.height,ii.patternImageCTX.drawImage(ii.loadobj.img,0,0,hi.width,hi.height),ii.shadowCanvas.width!==ii.mDIM.width&&(ii.shadowCanvas.width=ii.mDIM.width),ii.shadowCanvas.height!==ii.mDIM.height&&(ii.shadowCanvas.height=ii.mDIM.height),ii.shadowCTX.clearRect(0,0,ii.shadowCTX.canvas.width,ii.shadowCTX.canvas.height),ii.pattern=ii.shadowCTX.createPattern(ii.patternImageCanvas,ii.bgrepeat),ii.shadowCTX.fillStyle=ii.pattern,ii.shadowShifts={h:ii.bgposition.split(" ")[0],v:ii.bgposition.split(" ")[1]},ii.shadowShifts.hperc=Ae.isNumeric(parseInt(ii.shadowShifts.h))?parseInt(ii.shadowShifts.h)/100*ii.mDIM.width:0,ii.shadowShifts.vperc=Ae.isNumeric(parseInt(ii.shadowShifts.v))?parseInt(ii.shadowShifts.v)/100*ii.mDIM.height:0,ii.shadowShifts.x=ii.shadowShifts.h==="left"?0:ii.shadowShifts.h==="center"||ii.shadowShifts.h=="50%"?ii.bgrepeat=="repeat"||ii.bgrepeat=="repeat-x"?ii.mDIM.width/2-hi.width/2-Math.ceil(ii.mDIM.width/2/hi.width)*hi.width:ii.mDIM.width/2-hi.width/2:ii.shadowShifts.h==="right"?ii.bgrepeat=="repeat"||ii.bgrepeat=="repeat-x"?-(hi.width-ii.mDIM.width%hi.width):ii.mDIM.width-hi.width:ii.bgrepeat=="repeat"||ii.bgrepeat=="repeat-x"?-(hi.width-ii.shadowShifts.hperc%hi.width):ii.shadowShifts.hperc,ii.shadowShifts.y=ii.shadowShifts.v==="top"?0:ii.shadowShifts.v==="center"||ii.shadowShifts.v=="50%"?ii.bgrepeat=="repeat"||ii.bgrepeat=="repeat-y"?ii.mDIM.height/2-hi.height/2-Math.ceil(ii.mDIM.height/2/hi.height)*hi.height:ii.mDIM.height/2-hi.height/2:ii.shadowShifts.v==="bottom"?ii.bgrepeat=="repeat"||ii.bgrepeat=="repeat-y"?-(hi.height-ii.mDIM.height%hi.height):ii.mDIM.height-hi.height:ii.bgrepeat=="repeat"||ii.bgrepeat=="repeat-y"?-(hi.height-ii.shadowShifts.vperc%hi.height):ii.shadowShifts.vperc,ii.shadowCTX.save(),ii.shadowCTX.translate(ii.shadowShifts.x,ii.shadowShifts.y),ii.shadowCTX.fillRect(0,0,ii.mDIM.width-ii.shadowShifts.x,ii.mDIM.height-ii.shadowShifts.y),ii.shadowCTX.restore(
193)},getCanvasGradients:function(oi,ii){if(0<=ii.bgcolor.indexOf("gradient")){ii.gradient=ii.gradient==null||_R_is_Editor?Ae.getGradients(ii.bgcolor):ii.gradient,ii.shadowGrd=ii.gradient.type==="radialGradient"?ii.shadowCTX.createRadialGradient(ii.mDIM.width/2,ii.mDIM.height/2,0,ii.mDIM.width/2,ii.mDIM.height/2,Math.max(ii.mDIM.width/2,ii.mDIM.height/2)):Ae.calcLinearGradient(ii.shadowCTX,ii.shadowCanvas.width,ii.shadowCanvas.height,ii.gradient.deg);for(var hi=0;hi<ii.gradient.stops.length;hi+=2)ii.shadowGrd.addColorStop(ii.gradient.stops[hi+1],ii.gradient.stops[hi]);ii.shadowCTX.clearRect(0,0,ii.mDIM.width,ii.mDIM.height),ii.shadowCTX.fillStyle=ii.shadowGrd}else ii.shadowCTX.clearRect(0,0,ii.mDIM.width,ii.mDIM.height),ii.shadowCTX.fillStyle=ii.bgcolor;ii.shadowCTX.fillRect(0,0,ii.mDIM.width,ii.mDIM.height)},cNS:function(oi){for(var ii in oi.n=document.createElementNS("http://www.w3.org/2000/svg",oi.n),oi.v)oi.n.setAttributeNS(null,ii.replace(/[A-Z]/g,function(hi,Ei,Li,Di){return"-"+hi.toLowerCase()}),oi.v[ii]);for(ii in oi.c!==void 0&&oi.n.setAttribute("class",oi.c),oi.id!==void 0&&(oi.n.id=oi.id),oi.t!==void 0&&(oi.n.textContent=oi.t),oi.s)oi.s.hasOwnProperty(ii)&&(oi.n.style[ii]=oi.s[ii]);return oi.n},rgbToHex:function(oi){return"#"+$e(oi[0])+$e(oi[1])+$e(oi[2])},getSVGGradient:function(oi){if(oi!==void 0&&(oi=_R_is_Editor?RSColor.convert(oi):oi).indexOf("gradient")!=-1){for(var ii=Ae.getGradients(oi),hi=(Ae.gradSVG===void 0&&(Ae.gradSVG=Ae.cNS({n:"svg",id:"tp_svg_gradients",s:{width:"100%",height:"100%",opacity:0,pointerEvents:"none"}}),Ae.gradSVG.setAttribute("viewBox","0 0 1 1"),Ae.gradSVG.setAttribute("preserveAspectRatio","none"),document.body.appendChild(Ae.gradSVG),Ae.svgGradients=[]),!1),Ei=JSON.stringify(oi),Li=0;Li<Ae.svgGradients.length;Li++)hi||Ae.svgGradients[Li].src==Ei&&(hi=!0,oi=Ae.svgGradients[Li].url);if(!hi){for(var Di,zi=ii.type==="radialGradient"?0:ii.deg*(Math.PI/180),zi=ii.type==="radialGradient"?0:{x1:Math.round(50+50*Math.sin(zi))+"%",y1:Math.round(50+50*Math.cos(zi))+"%",x2:Math.round(50+50*Math.sin(zi+Math.PI))+"%",y2:Math.round(50+50*Math.cos(zi+Math.PI))+"%"},an=Ae.cNS({n:ii.type,id:"tp_svg_gradient_"+Ae.svgGradients.length,v:ii.type==="radialGradient"?void 0:{gradientUnits:"userSpaceOnUse",x1:zi.x1,y1:zi.y1,x2:zi.x2,y2:zi.y2}}),Je=0;Je<=ii.stops.length/2;Je+=2)Di=tpGS.gsap.utils.splitColor(ii.stops[Je]),Di=Ae.cNS({n:"stop",v:{offset:100*ii.stops[Je+1]+"%",stopColor:Ae.rgbToHex(Di),stopOpacity:3<Di.length?Di[3]:1}}),an.appendChild(Di);Ae.gradSVG.appendChild(an),oi="url(#tp_svg_gradient_"+Ae.svgGradients.length+")",Ae.svgGradients.push({url:oi,src:Ei,g:an})}}return oi},getGradients:function(oi){return 0<=oi.indexOf("radial-gradient")?{stops:Ae.getGradientColorStopPoints(oi.split("radial-gradient(ellipse at center, ")[1]),type:"radialGradient",deg:0}:oi.indexOf("gradient")!==-1?Ae.getLinearGradientStops(oi):oi},getLinearGradientStops:function(Ei){var ii,hi=Ei.split("linear-gradient(")[1],hi=(1<(Ei=(hi=_R_is_Editor?(hi=hi.split(", ").join(",")).split(",rgba").join(", rgba"):hi).split("deg, ")).length?Ei[1]:Ei[0]).split(" "),Ei=1<Ei.length?Ei[0]:180;for(ii in hi)hi.hasOwnProperty(ii)&&0<=hi[ii].indexOf("%")&&(hi[ii]=""+Math.round(100*parseFloat(hi[ii].split("%,")[0].split("%)")[0]))/1e4);return{stops:hi,deg:Ei,type:"linearGradient"}},getGradientColorStopPoints:function(oi){for(var ii=/rgb([\s\S]*?)%/g,hi=[],Ei=[];(Di=ii.exec(oi))&&hi.push(Di[0]),Di;);for(var Li=0;Li<hi.length;Li++){var Di=hi[Li],oi=/rgb([\s\S]*?)\)/.exec(Di),zi=/\)([\s\S]*?)%/.exec(Di);oi[0]&&(oi=oi[0]),zi[1]&&(zi=zi[1]),Ei.push(oi),Ei.push(parseFloat(zi)/100)}return Ei},calcLinearGradient:function(oi,ii,hi,Ei){Ei=Ei*Math.PI/180+Math.PI/2;for(var Li,Di,zi=ii/2,an=hi/2,Je=Math.sqrt(zi*zi+an*an),fi={x1:Math.cos(Ei)*Je+zi,y1:Math.sin(Ei)*Je+an,x2:zi,y2:an},Gi=[gi({x:0,y:0},Ei),gi({x:ii,y:0},Ei),gi({x:ii,y:hi},Ei),gi({x:0,y:hi},Ei)],fn=[],cn=0;cn<Gi.length;cn++)fn.push(Ai(Gi[cn],fi));return Je=(ci(zi,an,fn[0].x,fn[0].y)>ci(zi,an,fn[1].x,fn[1].y)?(Li=fn[0].x,fn[0]):(Li=fn[1].x,fn[1])).y,ii=(ci(zi,an,fn[2].x,fn[2].y)>ci(zi,an,fn[3].x,fn[3].y)?(Di=fn[2].x,fn[2]):(Di=fn[3].x,fn[3])).y,Math.round(100*Math.atan2(an-Je,zi-Li))/100==Math.round(Ei%(2*Math.PI)*100)/100&&(hi=Li,an=Je,Li=Di,Je=ii,Di=hi,ii=an),oi.createLinearGradient(Math.round(Li),Math.round(Je),Math.round(Di),Math.round(ii))},transitions:{filter:{update:function(oi,ii,hi){oi!==void 0&&oi.tl!==void 0&&(hi=hi!==void 0||oi.tl.blur!==void 0?" blur("+(hi!==void 0?hi:0+oi.tl.blur!==void 0?oi.tl.blur:0)+"px)":"",ii.canvas.style.filter=oi.tl.filter===void 0?hi:oi.tl.filter+hi)},extendTimeLine:function(oi,ii,hi){var Ei;
193ii!=null&&(Ei=ii.g!==void 0&&ii.g!=="0%"&&ii.g!==0?(Ei===""?"":" ")+"grayscale(_g_%)":"",(Ei=(Ei=(Ei=(Ei+=ii.h!==void 0&&ii.h!=="100%"&&ii.h!==100?(Ei===""?"":" ")+"brightness(_h_%)":"")+(ii.s!==void 0&&ii.s!=="0px"&&ii.s!==0?(Ei===""?"":" ")+"sepia(_s_%)":""))+(ii.c!==void 0&&ii.c!==100?(Ei===""?"":" ")+"contrast(_c_%)":""))+(ii.i!==void 0&&ii.i!==0?(Ei===""?"":" ")+"invert(_i_%)":""))!=""&&(ii.tl={filter:Ei.replace("_g_",parseFloat(ii.g)).replace("_h_",parseFloat(ii.h)).replace("_s_",parseFloat(ii.s)).replace("_c_",parseFloat(ii.c)).replace("_i_",parseFloat(ii.i))}),ii.b!==void 0&&ii.b!=="0px"&&ii.b!==0&&(ii.tl===void 0?ii.tl={blur:parseFloat(ii.b)}:ii.tl.blur=parseFloat(ii.b)),ii.tl!==void 0)&&(oi.add(tpGS.gsap.to(ii.tl,ii.ms/ii.sec,ii.tl.filter===void 0?{blur:0}:ii.tl.blur===void 0?{filter:Ei.replace("_g_","0").replace("_h_","100").replace("_s_","0").replace("_c_",100).replace("_i_",0),ease:ii.e}:{blur:0,filter:Ei.replace("_g_","0").replace("_h_","100").replace("_s_","0").replace("_c_",100).replace("_i_",0),ease:ii.e}),0),hi.canvasFilter=!0)}},slidingoverlay:{getBasic:function(){return Ae.getBasic({attr:["x","y"],in:{m:!0,o:-1,_xy:20,_gxys:10,_gxye:-10,zIndex:20,e:De},out:{m:!0,reversed:!1,_xy:-100,o:0,zIndex:10,e:De}})},updateAnim:function(oi,ii,Li){var Ei=ii.in.x!==void 0&&ii.in.x!==0&&ii.in.x!=="0%"?"x":"y",Li=(ii.in["g"+Ei+"s"]=Ae.SATools.getOffset(ii.in[Ei],ii.in._gxys,Li,1)+"%",ii.in["g"+Ei+"e"]=Ae.SATools.getOffset(ii.in[Ei],ii.in._gxye,Li,1)+"%",ii.out[Ei]=Ae.SATools.getOffset(ii.in[Ei],ii.out._xy,Li,1)+"%",ii.in[Ei]=Ae.SATools.getOffset(ii.in[Ei],ii.in._xy,Li,1)+"%",0<=parseInt(ii.in[Ei]));return ii.in.d=Ei=="x"?Li?"left":"right":Li?"up":"down",ii},beforeDraw:function(oi,ii,hi,Ei){hi.d!==void 0&&(hi._dxs=hi.d==="right"?0+hi.mw:hi.d==="left"?0-hi.mw:0,hi._dys=hi.d==="down"?0+hi.mh:hi.d==="up"?0-hi.mh:0,hi._xs=hi.d==="left"?0-hi.mw:0,hi._ys=hi.d==="up"?0-hi.mh:0,hi._xe=hi.d==="right"?Ei.SLOT.OW+hi.mw:hi.d==="left"?Ei.SLOT.OW-hi.mw:Ei.SLOT.OW,hi._ye=hi.d==="down"?Ei.SLOT.OH+hi.mh:hi.d==="up"?Ei.SLOT.OH-hi.mh:Ei.SLOT.OH,ii.beginPath(),ii.rect(hi.d==="left"?Math.max(0,hi._xs):hi.d==="right"?Math.min(0,hi._xs):0,hi.d==="up"?Math.max(0,hi._ys):hi.d==="down"?Math.min(0,hi._ys):0,hi.d==="left"?Math.max(Ei.SLOT.OW,hi._xe):hi.d==="right"?Math.min(Ei.SLOT.OW,hi._xe):hi._xe,hi.d==="up"?Math.max(Ei.SLOT.OH,hi._ye):hi.d==="down"?Math.min(Ei.SLOT.OH,hi._ye):hi._ye),ii.clip())},afterDraw:function(oi,ii,hi,Ei,Li){hi.d!==void 0&&(ii.save(),ii.beginPath(),ii.rect(Math.max(0,hi._dxs),Math.max(0,hi._dys),hi._xe,hi._ye),ii.clip(),ii.save(),ii.transform(Li.csx,Li.ssx,Li.ssy,Li.csy,.5*Ei.SLOT.OW+hi.x+hi.sgx,.5*Ei.SLOT.OH+hi.y+hi.sgy),ii.drawImage(Ei.shadowCanvas!==void 0?Ei.shadowCanvas:Ei.loadobj.img,0,0,Ei.SLOT.OW,Ei.SLOT.OH,hi.sgx-Ei.SLOT.OW/2,hi.sgy-Ei.SLOT.OH/2,Ei.SLOT.OW,Ei.SLOT.OH),ii.restore(),ii.fillStyle="rgba(0,0,0,0.6)",ii.fillRect(hi.gx,hi.gy,Ei.SLOT.OW,Ei.SLOT.OH),ii.restore())},extendTimeLine:function(oi,ii,hi,Ei,Li,Di){Li.direction!=="in"||Ei.gxe===void 0&&Ei.gye===void 0||($$2.extend(!0,hi[0],{d:Ei.d,gx:Ei.gxs===void 0?0:2*Ae.SATools.getOffset(Ei.gxs,Di.width,Li.sdir,0),gy:Ei.gys===void 0?0:2*Ae.SATools.getOffset(Ei.gys,Di.height,Li.sdir,0),sgx:Ei.gxs===void 0?0:Ae.SATools.getOffset(Ei.gxs,Di.width,Li.sdir,0),sgy:Ei.gys===void 0?0:Ae.SATools.getOffset(Ei.gys,Di.height,Li.sdir,0),mw:0-Di.width,mh:0-Di.height}),ii.add(tpGS.gsap.to(hi,Ei.ms/Ei.sec,{gx:Ei.gxe===void 0?0:2*Ae.SATools.getOffset(Ei.gxe,Di.width,Li.sdir,0),gy:Ei.gye===void 0?0:2*Ae.SATools.getOffset(Ei.gye,Di.height,Li.sdir,0),sgx:Ei.gxe===void 0?0:2*Ae.SATools.getOffset(Ei.gxe,Di.width,Li.sdir,0),sgy:Ei.gye===void 0?0:2*Ae.SATools.getOffset(Ei.gye,Di.height,Li.sdir,0),mw:Di.width,mh:Di.height,ease:Ei.e}),0))}},motionFilter:{init:function(oi,ii){return ii!==void 0&&0<parseFloat(ii)?(ii=parseFloat(ii),oi.fmExists=!0,oi.fmShadow=oi.fmShadow===void 0?document.createElement("canvas"):oi.fmShadow,oi.fmCtx=oi.fmShadow.getContext("2d"),oi.fmShadow.width=oi.ctx.canvas.width,oi.fmShadow.height=oi.ctx.canvas.height,oi.fmCtx.globalAlpha=tpGS.gsap.utils.mapRange(100,0,40,0,ii)/100,oi.fmCtx.clearRect(0,0,oi.
193ctx.canvas.width,oi.ctx.canvas.height)):oi.fmExists=!1,ii},render:function(oi,ii){ii==="partial"&&(oi.fmCtx.globalCompositeOperation="source-over"),oi.fmCtx.drawImage(oi.canvas,0,0,oi.canvas.width,oi.canvas.height),oi.ctx.clearRect(0,0,oi.canvas.width,oi.canvas.height),oi.ctx.drawImage(oi.fmCtx.canvas,0,0,oi.canvas.width,oi.canvas.height),ii==="partial"&&(oi.fmCtx.globalCompositeOperation="source-atop"),ii!=="partial"&&ii!=="full"||(oi.fmCtx.fillStyle="rgba(255, 255, 255, 0.1)",oi.fmCtx.fillRect(0,0,oi.canvas.width,oi.canvas.height))},clearFull:function(oi,ii){oi.fmExists&&oi.fmCtx!==void 0&&(oi.ctx.clearRect(0,0,oi.canvas.width,oi.canvas.height),oi.fmCtx.clearRect(0,0,oi.canvas.width,oi.canvas.height),ii!==void 0)&&ii.render(ii.time(),!0,!0)},complete:function(oi){oi.fmShadow&&oi.fmShadow.remove()}},d3:{ticker:function(oi,ii,hi){var Ei,Li;oi.helper!==void 0&&(Ei=oi.smi*(hi==="in"?oi.helper.oo:oi.helper.o),Li=oi.sma*(hi==="in"?oi.helper.oo:oi.helper.o),oi.gradient=oi.d==="vertical"?hi==="in"?ii.ctx.createLinearGradient(0,0,0,ii.canvas.height):ii.ctx.createLinearGradient(0,ii.canvas.height,0,0):hi==="in"?ii.ctx.createLinearGradient(0,0,ii.canvas.width,0):ii.ctx.createLinearGradient(ii.canvas.width,0,0,0),oi.gradient.addColorStop(0,"rgba("+oi.sc+","+Ei+")"),oi.gradient.addColorStop(oi.sl,"rgba("+oi.sc+","+Li+")"),ii.ctx.fillStyle=oi.gradient,ii.ctx.fillRect(0,0,ii.canvas.width,ii.canvas.height),ii.cube!==void 0)&&ii.cube.ctx&&(Ei=(hi=oi.roomhelper!==void 0&&oi.roomhelper!==!1&&(90-oi.roomhelper.r)/90)!==!1?hi:oi.smi*oi.helper.o,Li=hi!==!1?hi:oi.sma*oi.helper.o,ii.cube.ctx.clearRect(0,0,ii.cube.ctx.canvas.width,ii.cube.ctx.canvas.height),oi.gradientW=hi!==!1?oi.d==="vertical"?oi.t<0&&oi.sdir===1||0<oi.t&&oi.sdir===-1?ii.ctx.createRadialGradient(0,ii.cube.ctx.canvas.width/2,0,0,0,2*ii.cube.ctx.canvas.width):ii.ctx.createRadialGradient(ii.cube.ctx.canvas.width,0,0,0,0,2*ii.cube.ctx.canvas.width):0<oi.t&&oi.sdir===1||oi.t<0&&oi.sdir===-1?ii.ctx.createRadialGradient(ii.cube.ctx.canvas.width/2,ii.cube.ctx.canvas.height,0,ii.cube.ctx.canvas.width/2,ii.cube.ctx.canvas.height,ii.cube.ctx.canvas.width):ii.ctx.createRadialGradient(ii.cube.ctx.canvas.width/2,.2*ii.cube.ctx.canvas.height,0,ii.cube.ctx.canvas.width/2,.2*ii.cube.ctx.canvas.height,ii.cube.ctx.canvas.width):oi.d==="vertical"?ii.ctx.createLinearGradient(0,0,0,ii.cube.ctx.canvas.height):ii.ctx.createLinearGradient(0,0,ii.cube.ctx.canvas.width,0),oi.gradientW.addColorStop(0,"rgba("+oi.sc+","+(hi!==!1?oi.DIR==="a"?Li:0:oi.DIR==="a"?0:Li)+")"),oi.gradientW.addColorStop(1,"rgba("+oi.sc+","+(hi!==!1?oi.DIR==="a"?0:Li:oi.DIR==="a"?Li:0)+")"),ii.cube.ctx.fillStyle=oi.gradientW,ii.cube.ctx.fillRect(0,0,ii.cube.ctx.canvas.width,ii.cube.ctx.canvas.height))},setWall:function(oi,ii,hi,Ei,Li,Di){return oi.TL=tpGS.gsap.timeline(),oi.TL.add(tpGS.gsap.to(oi.c,.2,{display:"block"}),0),hi==="rotationX"?(oi.ctx.canvas.width=Ei.w,oi.ctx.canvas.height=Ei.w,oi.TL.add(tpGS.gsap.set(oi.w,{backgroundColor:Li,width:Ei.w,height:Ei.w,transformOrigin:"50% 50% -"+Ei.w/2+"px",x:0,y:0<ii?-(Ei.w-Ei.h):0,rotationX:0<ii?-90:90,rotationY:0}),0)):(oi.ctx.canvas.width=Di?Ei.w:Ei.h,oi.ctx.canvas.height=Ei.h,oi.TL.add(tpGS.gsap.set(oi.w,{backgroundColor:Li,width:Di?Ei.w:Ei.h,height:Ei.h,transformOrigin:"50% 50% -"+(Di?Ei.w:Ei.h)/2+"px",x:ii<0?Ei.w-Ei.h:0,y:0,rotationX:0,rotationY:0<ii?-90:90}),0)),oi.TL},buildCube:function(oi){oi.cube={c:document.createElement("div"),w:document.createElement("canvas")},oi.cube.ctx=oi.cube.w.getContext("2d"),oi.cube.c.className="rs_fake_cube",oi.cube.w.className="rs_fake_cube_wall",tpGS.gsap.set(oi.cube.c,{width:oi.mDIM.w,height:oi.mDIM.h}),tpGS.gsap.set(oi.cube.w,{width:oi.mDIM.w,height:oi.mDIM.h,backgroundColor:"#ccc"}),oi.cube.c.appendChild(oi.cube.w),oi.sbg.appendChild(oi.cube.c)},cubeTL:function(oi,ii,hi,Ei){var Li,Di,zi,an,Je,fi,Gi,fn,cn,Tn,Sn,Cn,tr,xr,er,Hn;if(ii.f!=="none"&&ii.f!==void 0)return hi.sbg.style.transformStyle="preserve-3d",Li=tpGS.gsap.timeline(),Di=ii.f==="incube"?1:-1,zi=ii.f==="incube"||ii.f==="cube",xr=ii.f==="fly"?-30:90,an=ii.f!=="turn"&&ii.t!==!1&&(_R_is_Editor||Ae[oi].firstSlideAnimDone===!0),Je=-1*ii.z,fi={},Gi={z:an?0:Je,ease:"power1.inOut"},fn={ease:ii.e},cn=[hi.canvas],Tn=zi?"50% 50% ":"20% 20% ",Sn="rotationX",Cn="rotationY",Hn="y",er="height",tr=ii.fd,ii.d!=="vertical"?(Sn="rotationY",Cn="rotationX",Hn="x",er="width",ii.DIR=ii.sdir===1?"b":"a"):ii.DIR=ii.sdir===1?"a":"b",er=er==="width"?"w":er==="height"?"h":er,ii.f==="turn"?(xr=ii.d==="vertical"?-120:120,Tn=ii.d==="vertical"?ii.sdir===1?Ei==="in"?"0% 0% 0%":"0% 100% 0%":Ei==="in"?"0% 100% 0%":"0% 0% 0%":ii.sdir===1?Ei==="in"?"0% 0% 0%":"100% 0% 0%":Ei==="in"?"100% 0% 0%":"0% 0% 0%",Gi.z=0,fn.ease=Ei==="out"?"power3.out":fn.ease,tr=Ei==="out"?tr/2:tr):Tn+=Di*hi.mDIM[er]/2+"px",fn[Sn]=0,fn[Hn]=0,Ei==="in"?fi[Sn]=xr*ii.sdir:fn[Sn]=-xr*ii.sdir,ii.f==="fly"&&(xr=ii.fz===void 0?20*Math.random()-10:parseInt(ii.fz),Ei==="in"?(fi[Hn]=hi.mDIM[er]*(ii.fdi===void 0?1.5:parseFloat(ii.fdi))*ii.sdir,fi.rotateZ=ii.sdir*xr,fn.rotateZ=0):(fn[Hn]=hi.mDIM[er]*(ii.fdo===void 0?2:parseFloat(ii.fdo))*ii.sdir*-1,fn.rotateZ=ii.sdir*xr*-1)),hi.sbg.style.perspective=an?"2500px":"1500px",an?(Hn={z:0,ease:"power1.inOut"},(er={z:Je*(ii.f==="fly"?1.5:3),ease:"power1.inOut"})[Cn]=-1*ii.t,ii.roomhelper={r:Hn[Cn]=0},Li.add(tpGS.gsap.set(_R_is_Editor?RVS.SBGS[RVS.S.slideId].wrap:hi.wrap[0],{perspective:1200,transformStyle:"preserve-3d",transformOrigin:Tn}),0),Li.add(tpGS.gsap.to(hi.sbg,3*ii.md,er),0),Li.add(tpGS.gsap.to(hi.sbg,3*ii.md,Hn),tr-ii.md),Li.add(tpGS.gsap.to(ii.roomhelper,3*ii.md,{r:Math.abs(ii.t)}),0),Li.add(tpGS.gsap.to(ii.roomhelper,3*ii.md,{r:0}),tr-ii.md),Ei==="in"&&Di!=1&&zi&&(hi.cube===void 0&&Ae.transitions.d3.buildCube(hi),Li.add(Ae.transitions.d3.setWall(hi.cube,er[Cn],Cn,hi.mDIM,ii.c),0),cn.push(hi.cube.c))):(ii.roomhelper=!1,Li.add(tpGS.gsap.set(_R_is_Editor?RVS.SBGS[RVS.S.slideId].wrap:hi.wrap[0],{perspective:"none",transformStyle:"none",transformOrigin:"50% 50%"}),0),!_R_is_Editor&&Ae[oi].firstSlideAnimDone!==!0&&zi&&(hi.cube===void 0&&Ae.transitions.d3.buildCube(hi),Li.add(Ae.transitions.d3.setWall(hi.cube,fi[Sn],Sn,hi.mDIM,ii.c,!0),0),Li.add(tpGS.gsap.fromTo(hi.cube.w,4*ii.md,{opacity:0}
193,{opacity:1}),0),cn.push(hi.cube.c))),ii.helper={o:0,oo:1},Li.add(tpGS.gsap.to(ii.helper,tr,{o:1,oo:0,ease:ii.e}),ii.md+0),Li.add(tpGS.gsap.set(cn,$$2.extend(!0,{},fi,{force3D:!0,transformOrigin:Tn})),0),ii.f!=="turn"&&Li.add(tpGS.gsap.to(cn,3*ii.md,Gi),0),Li.add(tpGS.gsap.to(cn,tr,fn),ii.md+0),ii.f!=="turn"&&Li.add(tpGS.gsap.to(cn,3*ii.md,{z:0,ease:"power1.inOut"}),tr-ii.md),Ei==="out"&&Di!=1&&Li.add(tpGS.gsap.to(cn,2*ii.md,{opacity:0}),ii.dur-2*ii.md),Li}}},animatedCanvasUpdate:function(oi,ii){ii.cDIMS=Ae.getBGCanvasDetails(oi,ii),ii.canvas.style.backgroundColor="transparent",ii.canvas.style.opacity=1,ii.canvas.width!==ii.mDIM.width&&(ii.canvas.width=ii.mDIM.width),ii.canvas.height!==ii.mDIM.height&&(ii.canvas.height=ii.mDIM.height),_R_is_Editor||Ae[oi].clearModalBG!==!0||(ii.ctx.clearRect(0,0,ii.canvas.width,ii.canvas.height),Ae[oi].clearModalBG=!1,ii.sbg.parentNode.style.opacity=1),ii.col=Math.min(ii.col||1,ii.canvas.width-10),ii.row=Math.min(ii.row||1,ii.canvas.height-10),ii.SLOT=$$2.extend(!0,{s:{},c:{}},Le(oi,ii.col,ii.row,ii.mDIM,"OW","OH")),ii.SLOT.DX=0-ii.SLOT.OW/2,ii.SLOT.DY=0-ii.SLOT.OH/2,ii.row=Math.ceil(ii.mDIM.height/ii.SLOT.OH)||1,ii.callFromAnimatedCanvasUpdate!==void 0&&ii.callFromAnimatedCanvasUpdate()},slideAnimFinished:function(oi,ii,hi,Ei){ii!==void 0&&(ii.bgvid!==void 0&&0<ii.bgvid.length&&hi.direction==="out"&&(ii.drawVideoCanvasImagesRecall=!1,Ae.stopVideo(ii.bgvid,oi),ii.bgvid[0].style.display="none",ii.bgvid[0].style.zIndex=0),ii.panFake&&ii.panFake.img&&(hi.direction==="out"?ii.panFake.img.style.display="none":ii.panFake.img.style.display="block"),hi.direction==="in"&&(Ae.transitions.motionFilter.complete(ii),ii.ctx.canvas.style.filter="none",tpGS.gsap.set(hi.slide,{zIndex:20}),delete ii.animateDirection,0<ii.bgvid.length)&&(ii.isHTML5?tpGS.gsap.set(ii.bgvid[0],{zIndex:30,display:"block",opacity:1}):(Ae.resetVideo(ii.bgvid,oi),tpGS.gsap.delayedCall(.1,function(){Ae.playVideo(ii.bgvid,oi,!0),tpGS.gsap.set(ii.bgvid[0],{zIndex:30,display:"block",opacity:1})}))),hi.direction==="out"?(tpGS.gsap.set(hi.slide,{zIndex:10}),tpGS.gsap.set(ii.canvas,{rotationX:0,rotationY:0,rotationZ:0,x:0,y:0,z:0,opacity:1}),ii.currentState=void 0):ii.currentState="idle",ii.cube!==void 0&&(ii.cube.c.style.display="none"),hi.direction==="in")&&(Ae.updateSlideBGs(oi,ii.skeyindex,ii),ii.panzoom===void 0||_R_is_Editor||Ae.startPanZoom(Ae[oi].pr_next_bg,oi,Ae[oi].panzoomTLs[ii.skeyindex]!==void 0?Ae[oi].panzoomTLs[ii.skeyindex].progress():0,ii.skeyindex,"play",ii.key),hi.BG!==void 0)&&Ei!==!0&&hi.BG.ctx.clearRect(0,0,2*ii.canvas.width,2*ii.canvas.height)},animateCore:function(oi,ii,hi,Ei){var Li,Di,zi,an,Je=ii.canvas,fi=ii.ctx,Gi=0;if(ii.col=hi.col,ii.row=hi.row,_R_is_Editor&&ii.three){for(ii.canvas.style.display="block";0<ii.three.scene.children.length;)ii.three.scene.remove(ii.three.scene.children[0]);ii.three.canvas.parentNode.removeChild(ii.three.canvas),ii.three=void 0}Ae.animatedCanvasUpdate(oi,ii),hi.row=ii.row,ii.animateDirection=Ei.direction,Ei.delay=Ei.delay===void 0?0:Ei.delay,zi=hi.col*hi.row,an=Array(zi),ii.help_canvas===void 0&&Ei.direction==="out"&&Ei.bgColor!==void 0&&(ii.help_canvas=document.createElement("canvas"),ii.help_ctx=ii.help_canvas.getContext("2d"),ii.help_canvas.style.backgroundColor="transparent"),Ei.direction==="out"&&Ei.bgColor!==void 0&&(ii.help_canvas.width=ii.mDIM.width,ii.help_canvas.height=ii.mDIM.height,ii.help_ctx.fillStyle=Ei.bgColor,ii.help_ctx.fillRect(0,0,ii.mDIM.width,ii.mDIM.height)),hi.mo=Ae.transitions.motionFilter.init(ii,hi.mo),hi.dur=hi.ms/hi.sec,Ei.d3!==void 0&&(Ei.d3.dur=hi.dur,Ei.d3.fd=.7*hi.dur,Ei.d3.md=.15*hi.dur,Ei.d3.sdir=Ei.sdir),ii.SLOT.c={ws:0,hs:0,wd:0,hd:0},0<hi.mo&&_R_is_Editor&&fi.clearRect(0,0,Je.width,Je.height);var fn=tpGS.gsap.timeline({onUpdate:function(){if((Gi=0)<hi.mo?Ae.transitions.motionFilter.render(ii,hi.moo):fi.clearRect(0,0,Je.width,Je.height),ii.help_canvas&&Ei.direction==="out"&&fi.drawImage(ii.help_canvas,0,0),(Ei.filter&&Ei.filter.u||!_R_is_Editor)&&Ae.transitions.filter.update(Ei.filter,fi,ii.canvasFilterBlur),_R_is_Editor&&hi.zIndex!==0&&hi.zIndex!==void 0&&tpGS.gsap.set(Ei.slide,{zIndex:hi.zIndex}),ii.shadowCanvas!==void 0)for(Li=0;Li<hi.col;Li++)for(ii.SLOT.SX=ii.SLOT.OW*Li,ii.SLOT.tw=ii.SLOT.OW*(Li+.5),ii.SLOT.c.wd=ii.mDIM.width-(ii.SLOT.tw+ii.SLOT.DX+ii.SLOT.OW),ii.SLOT.c.wd=ii.SLOT.c.wd<0?ii.SLOT.c.wd:0,ii.SLOT.DW=ii.SLOT.SW=ii.SLOT.OW+ii.SLOT.c.wd,Di=0;Di<hi.row;Di++){fi.save();var Cn=-Math.PI/180*an[Gi].r,cn=hi.r!==0?Math.cos(Cn)*an[Gi].sx:an[Gi].sx,Tn=hi.r!==0?Math.cos(Cn)*an[Gi].sy:an[Gi].sy,Sn=hi.r!==0?Math.sin(Cn)*an[Gi].sx:0,Cn=hi.r!==0?Math.sin(Cn)*-an[Gi].sy:0;ii.SLOT.SY=ii.SLOT.OH*Di,ii.SLOT.th=ii.SLOT.OH*(Di+.5),Ae.transitions[Ei.effect]&&Ae.transitions[Ei.effect].beforeDraw&&Ae.transitions[Ei.effect].beforeDraw(oi,fi,an[Gi],ii),hi.m&&(fi.beginPath(),fi.rect(ii.SLOT.OW*Li,ii.SLOT.OH*Di,ii.SLOT.OW,ii.SLOT.OH),fi.clip()),fi.transform(cn,Sn,Cn,Tn,ii.SLOT.tw+an[Gi].x,ii.SLOT.th+an[Gi].y),fi.globalAlpha=Math.max(0,an[Gi].o),ii.SLOT.c.hd=ii.mDIM.height-(ii.SLOT.th+ii.SLOT.DY+ii.SLOT.OH),ii.SLOT.c.hd=ii.SLOT.c.hd<0?ii.SLOT.c.hd:0,ii.SLOT.DH=ii.SLOT.SH=ii.SLOT.OH+ii.SLOT.c.hd,1<ii.SLOT.SW&&1<ii.SLOT.SH&&fi.drawImage(ii.shadowCanvas,ii.SLOT.SX,ii.SLOT.SY,ii.SLOT.SW,ii.SLOT.SH,ii.SLOT.DX,ii.SLOT.DY,ii.SLOT.DW,ii.SLOT.DH),fi.restore(
193),Ae.transitions[Ei.effect]&&Ae.transitions[Ei.effect].afterDraw&&Ae.transitions[Ei.effect].afterDraw(oi,fi,an[Gi],ii,{csx:cn,csy:Tn,ssx:Sn,ssy:Cn}),Gi++}Ei.d3!==void 0&&Ei.d3.su&&Ae.transitions.d3.ticker(Ei.d3,ii,Ei.direction),ii.currentState="animating"},onComplete:function(){Ae.slideAnimFinished(oi,ii,Ei)}});if(hi.col*hi.row<2&&(hi.f="start"),hi.zIndex!==0&&hi.zIndex!==void 0&&fn.add(tpGS.gsap.set(Ei.slide,{zIndex:parseInt(hi.zIndex,0)}),0),hi.m=hi.m!="false"&&hi.m!==!1,Ei.direction==="in"){for(Li=0;Li<zi;Li++)an[Li]={x:Ae.SATools.getOffset(hi.x,hi.m?ii.SLOT.OW:ii.mDIM.width,Ei.sdir,Li),y:Ae.SATools.getOffset(hi.y,hi.m?ii.SLOT.OH:ii.mDIM.height,Ei.sdir,Li),o:Ae.SATools.getSpecialValue(hi.o,Li,Ei.sdir),sx:Ae.SATools.getSpecialValue(hi.sx,Li,Ei.sdir),sy:Ae.SATools.getSpecialValue(hi.sy,Li,Ei.sdir),r:hi.r!==0?Ae.SATools.getSpecialValue(hi.r,Li,Ei.sdir):0};fn.add(tpGS.gsap.to(an,hi.dur,{o:1,sx:1,sy:1,r:0,x:0,y:0,ease:hi.e,stagger:{amount:hi.f==="nodelay"?0:hi.ms/hi.stasec,grid:[hi.col,hi.row],from:hi.f==="nodelay"?"start":hi.f}}),Ei.delay),Ei.d3!==void 0&&fn.add(Ae.transitions.d3.cubeTL(oi,Ei.d3,ii,"in"),0),Ae.transitions.filter.extendTimeLine(fn,Ei.filter,ii)}else{for(Li=0;Li<zi;Li++)an[Li]={x:0,y:0,o:1,sx:1,sy:1,r:0};fn.add(tpGS.gsap.to(an,hi.dur,{o:function(cn){return Ae.SATools.getSpecialValue(hi.o,cn,Ei.sdir)},sx:function(cn){return Ae.SATools.getSpecialValue(hi.sx,cn,Ei.sdir)},sy:function(cn){return Ae.SATools.getSpecialValue(hi.sy,cn,Ei.sdir)},r:hi.r!==0&&hi.r!==void 0?function(cn){return Ae.SATools.getSpecialValue(hi.r,cn,Ei.sdir)}:0,x:function(cn){return Ae.SATools.getOffset(hi.x,hi.m?ii.SLOT.OW:ii.mDIM.width,Ei.sdir,cn)*(hi.reversed?-1:1)},y:function(cn){return Ae.SATools.getOffset(hi.y,hi.m?ii.SLOT.OH:ii.mDIM.height,Ei.sdir,cn)*(hi.reversed?-1:1)},ease:hi.e,stagger:{amount:hi.f==="nodelay"?0:hi.ms/hi.stasec,grid:[hi.col,hi.row],from:hi.f==="nodelay"?"start":hi.f}}),Ei.delay+(hi.outdelay!==void 0?hi.outdelay:0)),Ei.d3!==void 0&&fn.add(Ae.transitions.d3.cubeTL(oi,Ei.d3,ii,"out"),0)}Ae.transitions[Ei.effect]&&Ae.transitions[Ei.effect].extendTimeLine&&Ae.transitions[Ei.effect].extendTimeLine(oi,fn,an,hi,Ei,ii.mDIM),_R_is_Editor?RVS.TL[RVS.S.slideId].slide.add(fn,0):Ae[oi].mtl.add(fn,Ei.delay)}}),function(oi,ii){return ii!==void 0&&Ae.isNumeric(ii)?parseFloat(ii,0):ii==null||ii==="default"||ii==="d"?oi:ii}),Le=function(oi,ii,hi,Ei,Li,Di){var zi={};return zi[Li]=Math.ceil(Ei.width/ii),zi[Di]=(_R_is_Editor,Math.ceil(Ei.height/hi)),zi},Fe=function(oi){return oi==null||oi===0||oi===NaN?1:oi},Ve=function(oi,ii){_R_is_Editor||(Ae[oi].duringslidechange=!0);var hi,zi=_R_is_Editor?-1:Ae[oi].sc_indicator!="arrow"||Ae[oi].sc_indicator_dir===void 0?Ae[oi].sdir:Ae[oi].sc_indicator_dir,Li=!!_R_is_Editor||Ae[oi].pr_next_bg!==void 0&&0<Ae[oi].pr_next_bg.length&&Ae[oi].pr_next_bg[0]!==void 0,Ei=!!_R_is_
193Editor||Ae[oi].pr_active_bg!==void 0&&0<Ae[oi].pr_active_bg.length&&Ae[oi].pr_active_bg[0]!==void 0,Li=_R_is_Editor?RVS.SBGS[RVS.S.slideId].n:Li?Ae[oi].sbgs[Ae[oi].pr_next_bg[0].dataset.key]:void 0,Di=_R_is_Editor?RVS.SBGS[RVS.S.slideId].c:Ei?Ae[oi].sbgs[Ae[oi].pr_active_bg[0].dataset.key]:void 0,zi=zi===1?-1:1;_R_is_Editor||(delete Ae[oi].sc_indicator,delete Ae[oi].sc_indicator_dir),hi=$$2.extend(!0,{},function(an,Je,fi){var Gi,fn,cn=(Ae.transitions[Je.anim.e]!==void 0&&Ae.transitions[Je.anim.e].getBasic!==void 0?Ae.transitions[Je.anim.e]:Ae).getBasic();cn.out=cn.out==null?{}:cn.out,cn.out.reversed=Je.out===void 0&&(cn.out.reversed===void 0||cn.out.reversed),Je.iw!==void 0&&parseInt(Je.iw,0),Je.ow!==void 0&&parseInt(Je.ow,0);for(fn in cn.attr)Gi=cn.attr[fn],cn.in[Gi]=ke(cn.in[Gi],Je.in[Gi]),cn.out[Gi]=cn.out.reversed?cn.in[Gi]:Je.out===void 0?cn.out[Gi]:ke(cn.out[Gi],Je.out[Gi]);return cn.filter=Je.filter!==void 0?$$2.extend(!0,Je.filter,Je.filter):cn.filter,(cn=Ae.transitions[Je.anim.e]&&Ae.transitions[Je.anim.e].updateAnim?Ae.transitions[Je.anim.e].updateAnim(an,cn,fi):cn).e=Je.anim.e,cn.in!==void 0&&(cn.in.col=cn.in.col==="random"?tpGS.gsap.utils.random(1,10,1):Fe(cn.in.col),cn.in.row=cn.in.row==="random"?tpGS.gsap.utils.random(1,10,1):Fe(cn.in.row)),cn.out!==void 0&&(cn.out.col=cn.out.col==="random"?tpGS.gsap.utils.random(1,10,1):Fe(cn.out.col),cn.out.row=cn.out.row==="random"?tpGS.gsap.utils.random(1,10,1):Fe(cn.out.row)),cn}(oi,ii,zi)),Li.random!==void 0&&Ae.SLTR!==void 0&&Di!==void 0&&(delete Di.help_canvas,delete Di.help_ctx),hi.ms=ke(void 0,ii.anim.ms===void 0?1e3:ii.anim.ms),hi.f=ke(void 0,ii.anim.f),hi.p=ke(void 0,ii.anim.p),hi.d=ke(void 0,ii.anim.d),hi.o=ii.anim.o,ii.d3!==void 0&&(ii.d3.t=ii.d3.t!==void 0&&ii.d3.t!==0&&ii.d3.t,ii.d3.su=ii.d3.su=="true"||ii.d3.su==1,ii.d3.su&&(ii.d3.smi=ii.d3.smi===void 0?0:parseFloat(ii.d3.smi),ii.d3.sl=ii.d3.sl===void 0?1:parseFloat(ii.d3.sl),ii.d3.sma=ii.d3.sma===void 0?.5:parseFloat(ii.d3.sma),ii.d3.sc=ii.d3.sc===void 0?"0,0,0":tpGS.gsap.utils.splitColor(ii.d3.sc).join(",")),hi.p="none",hi.in.row!==void 0)&&hi.in.col!==void 0&&200<hi.in.row*hi.in.col&&(hi.filter=void 0),hi.in.sec=hi.in.sec===void 0?1e3:hi.in.sec,hi.in.stasec=hi.in.stasec===void 0?hi.d===void 0?1500:100*hi.d:hi.in.stasec,hi.in.ms=hi.ms==="default"||hi.ms==="d"?hi.in.ms:hi.ms==="random"?Math.round(1e3*Math.random()+300):hi.ms!=null?parseInt(hi.ms,0):hi.in.ms,hi.out.ms=hi.in.ms,hi.filter!==void 0&&(hi.filter.ms=hi.in.ms,hi.filter.sec=hi.in.sec,hi.filter.e=(hi.filter.e===void 0||hi.filter.e==="default"?hi.in:hi.filter).e),hi.in.f=(hi.f===void 0||hi.f==="default"||hi.f==="d"?hi.in:hi).f,hi.in.f=hi.in.f==="slidebased"?zi==1?"start":"end":hi.in.f==="oppslidebased"?zi==1?"end":"start":hi.in.f,hi.out.f=hi.in.f,hi.out=$$2.extend(!0,{},hi.in,hi.out),hi.in.eng=hi.out.eng=ii.anim.eng,hi.out.eng!==void 0&&Ae[hi.out.eng]==null&&(hi.out.o=0,hi.in.o=0,hi.in.ms=hi.out.ms=1e3,hi.in.eng=hi.out.eng="animateCore"),hi.p!==void 0&&hi.p!=="none"&&(hi.in.bg=hi.p==="dark"?"#000":hi.p==="light"?"#fff":"transparent",hi.out.delay=hi.p!=="none"?function(an,Je){return an/2.5}:0,hi.out.o===1)&&hi.out.x===0&&hi.out.y===0&&(hi.out.o=0),hi.o==="forceinout"?(hi.in.zIndex=20,hi.out.zIndex=10):hi.o!=="outin"&&(hi.in.o!==1||hi.in.x!==0||hi.in.y!==0||ii.out===void 0||hi.out.o===1&&hi.out.x===0&&hi.out.y===0)||(hi.in.zIndex=10,hi.out.zIndex=20),0<Li.bgvid.length&&(hi.in=qe(oi,hi.in,Li,"in")),Ei&&Di.bgvid!==void 0&&0<Di.bgvid.length&&(hi.out=qe(oi,hi.out,Di,"out")),hi.out!==void 0&&(hi.out.simplify||hi.in.simplify)&&(hi.out=je(hi.out)),hi.in.simplify&&(hi.in=je(hi.in)),_R_is_Editor||requestAnimationFrame(function(){Ae.generalObserver(Ae.ISM,!0)}),hi.in.eng=hi.in.eng===void 0?"animateCore":hi.in.eng,hi.out.eng=hi.out.eng===void 0?"animateCore":hi.out.eng,Ei&&hi.out.skip!==!0&&Ae[hi.out.eng](oi,Di,hi.out,{effect:hi.e,slide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].c.sbg:Ae[oi].pr_active_slide,direction:"out",delay:0,bgColor:hi.in.bg,sdir:zi,filter:void 0,d3:ii.d3,addOns:_R_is_Editor?ii.addOns:void 0}),hi.in.skip!==!0&&Ae[hi.in.eng](oi,Li,hi.in,{effect:hi.e,slide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].n.sbg:Ae[oi].pr_next_slide,direction:"in",delay:Ei?typeof hi.out.delay=="function"?hi.out.delay(hi.in.ms/1e3,hi.out.row*hi.out.col):hi.out.delay:hi.in.delay,BG:Di,outslide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].c.sbg:Ae[oi].pr_active_slide,sdir:zi,filter:hi.filter,d3:ii.d3,addOns:_R_is_Editor?ii.addOns:void 0})},Ie=function(oi,ii,hi){var Ei=oi.height/oi.width,Ei=(hi.ratio=hi.conth/hi.contw,hi.ratio<Ei&&ii.bgfit==="contain"||hi.ratio>Ei&&ii.bgfit==="cover"?hi.height=oi.width*hi.ratio:hi.ratio>Ei&&ii.bgfit==="contain"||hi.ratio<Ei&&ii.bgfit==="cover"?hi.width=oi.width*Ei/hi.ratio:hi.ratio!==Ei||ii.bgfit!=="contain"&&ii.bgfit!=="cover"?((Ei=ii.bgfit.split(" ")).length===1&&(Ei[1]=Ei[0]),hi.width=Ei[0]==="auto"?hi.contw:oi.width*(parseInt(Ei[0],0)
193/100),hi.height=Ei[1]==="auto"?hi.conth:hi.width*hi.ratio,ii.usepattern=!0):hi.width=oi.width,Ei=oi,oi=hi,(ii=(ii=ii.bgposition).split(" ")).length===1&&(ii[1]=ii[0]),{x:ii[0]==="center"||ii[0]==="50%"?(Ei.width-oi.width)/2:ii[0]==="left"?0:ii[0]==="right"?Ei.width-oi.width:Ae.isNumeric(ii[0])?0:0<=ii[0].indexOf("%")?parseInt(ii[0],0)/100*Ei.width-parseInt(ii[0],0)/100*oi.width:parseInt(ii[0],0),y:ii[1]==="center"||ii[1]==="50%"?(Ei.height-oi.height)/2:ii[1]==="top"?0:ii[1]==="bottom"?Ei.height-oi.height:Ae.isNumeric(ii[1])?0:0<=ii[1].indexOf("%")?parseInt(ii[1],0)/100*Ei.height-parseInt(ii[1],0)/100*oi.height:parseInt(ii[1],0)});return hi.x=Ei.x,hi.y=Ei.y,hi},je=function(oi){return oi.o=0,oi.r=0,oi.row=1,oi.col=1,oi.x=0,oi.y=0,oi.sx=1,oi.sy=1,oi},Ke=function(oi){return oi=oi!=="false"&&oi!==!1&&oi!=="off"&&oi!==void 0&&oi!==0&&oi!==-1},$e=function(oi){return oi=oi.toString(16),oi.length==1?"0"+oi:oi},qe=function(oi,ii,hi,Ei){return ii.skip=!1,Ei==="in"?hi.isHTML5?(hi.bgvid[0].style.display="none",Ae.resetVideo(hi.bgvid,oi),hi.animateDirection="in",hi.currentState="animating",hi.drawVideoCanvasImagesRecall=!0,Ae.updateVideoFrames(oi,hi,!0),Ae.playVideo(hi.bgvid,oi)):(Ae[oi].videos[hi.bgvid[0].id].pauseCalled=!1,ii.waitToSlideTrans=Ae[oi].videos[hi.bgvid[0].id].waitToSlideTrans,hi.poster!==!0?(Ae.resetVideo(hi.bgvid,oi),!(Ae[oi].videos[hi.bgvid[0].id].prePlayForaWhile=!1)!==ii.waitToSlideTrans&&Ae.playVideo(hi.bgvid,oi,!0),tpGS.gsap.fromTo(hi.bgvid,ii.ms/ii.sec,{zIndex:30,display:"block",opacity:0}
193,{opacity:1,zIndex:30,display:"block"}),hi.loadobj.bgColor=!0,hi.bgcolor="#000",ii.simplify=!0):(Ae[oi].videos[hi.bgvid[0].id].prePlayForaWhile=!1,Ae.resetVideo(hi.bgvid,oi),Ae.playVideo(hi.bgvid,oi),hi.bgvid[0].style.display="none",hi.bgvid[0].style.zIndex=0,hi.bgvid[0].style.opacity=0)):Ei==="out"&&(hi.isHTML5?(hi.currentState="animating",hi.drawVideoCanvasImagesRecall=!0,Ae.updateVideoFrames(oi,hi,!0),window.requestAnimationFrame(function(){tpGS.gsap.to(hi.bgvid,.1,{zIndex:0,display:"none"})})):(Ae.stopVideo(hi.bgvid,oi,!0),hi.poster!==!0&&(hi.loadobj.bgColor=!0,hi.bgcolor="#000"))),ii},ci=function(oi,ii,hi,Ei){return Math.sqrt(Math.pow(oi-hi,2)+Math.pow(ii-Ei,2))},gi=function(oi,ii){return ii+=Math.PI/2,{x1:oi.x,y1:oi.y,x2:oi.x+100*Math.cos(ii),y2:oi.y+100*Math.sin(ii)}},Ai=function(Li,an){var hi=Li.y2-Li.y1,Ei=Li.x1-Li.x2,Li=hi*Li.x1+Ei*Li.y1,Di=an.y2-an.y1,zi=an.x1-an.x2,an=Di*an.x1+zi*an.y1,Je=hi*zi-Di*Ei;return Je!=0&&{x:Math.round((zi*Li-Ei*an)/Je*100)/100,y:Math.round((hi*an-Di*Li)/Je*100)/100}};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.slideanims={loaded:!0,version:"6.6.0"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(),function(){$$2.fn.revolution=$$2.fn.revolution||{};var De=$$2.fn.revolution;function _e(Di){return Di==null?-1:!De.isNumeric(Di)&&1<Di.split(":").length?60*parseInt(Di.split(":")[0],0)+parseInt(Di.split(":")[1],0):Di}$$2.extend(!0,De,{preLoadAudio:function(Di,zi){De[zi].videos=De[zi].videos===void 0?{}:De[zi].videos,Di.find(".rs-layer-audio").each(function(){var an=$$2(this),Je=De[zi].videos[an[0].id]=De[zi].videos[an[0].id]===void 0?ii(an.data(),"audio",De.gA(Di[0],"key")):De[zi].videos[an[0].id],fi={};an.find("audio").length===0&&(fi.src=Je.mp4!=null?Je.mp4:"",fi.pre=Je.pload||"",this.id=this.id===void 0||this.id===""?an.attr("audio-layer-"+Math.round(199999*Math.random())):this.id,fi.id=this.id,De[zi].audioqueue===void 0&&(De[zi].audioqueue=[]),De[zi].audioqueue.push(fi),De.manageVideoLayer(an,zi,De.gA(Di[0],"key"),!0))})},preLoadAudioDone:function(Di,zi,an){var Je=De[zi].videos[Di[0].id];De[zi].audioqueue&&0<De[zi].audioqueue.length&&$$2.each(De[zi].audioqueue,function(fi,Gi){Je.mp4!==Gi.src||Gi.pre!==an&&Gi.pre!=="auto"||(Gi.status="loaded")})},checkfullscreenEnabled:function(Di){var zi;return window.fullScreen!==void 0?window.fullScreen:document.fullscreen!==void 0?document.fullscreen:document.mozFullScreen!==void 0?document.mozFullScreen:document.webkitIsFullScreen!==void 0?document.webkitIsFullScreen:(zi=De.isWebkit()&&/Apple Computer/.test(navigator.vendor)?42:5,screen.width==De.winW&&Math.abs(screen.height-De.getWinH(Di))<zi)},showVideo:function(Di){tpGS.gsap.to(Di,.3,{opacity:1,display:"block",ease:"power3.inOut"})},resetVideo:function(Di,zi,an){if(an!=="updateAndResize"){var Je=De[zi].videos[Di[0].id];if(Je.cRS!=="resetVideo")switch(Je.cRS="resetVideo",Je.type){case"youtube":Je.rwd&&Je.player!=null&&Je.player.seekTo!==void 0&&(Je.player.seekTo(Je.ssec==-1?0:Je.ssec),Je.player.pauseVideo()),Je.bgvideo||an==="preset"||Je.jsposter.length!=0||De.showVideo(Di.find("iframe"));break;case"vimeo":Je.vimeoplayer!==void 0&&Je.rwd&&(Je.ssec!==0&&Je.ssec!==-1||Je.bgvideo||0<Je.jsposter.length)&&(Je.vimeoplayer.setCurrentTime(Je.ssec==-1?0:Je.ssec),Je.vimeoplayer.pause()),Je.jsposter.length!=0||Je.bgvideo||an==="preset"||De.showVideo(Di.find("iframe"));break;case"html5":if(De.ISM&&Je.notonmobile)return!1;Je.bgvideo||De.showVideo(Je.jvideo),Je.rwd&&Je.cSS!=="playing"&&!isNaN(Je.video.duration)&&(Je.justReseted=!0,Je.video.currentTime=Je.ssec==-1?0:Je.ssec),Je.volume!="mute"&&!De.lastToggleState(Di.videomutetoggledby)&&De[zi].globalmute!==!0||(Je.video.muted=!0)}}},Mute:function(Di,zi,an){var Je=!1,fi=De[zi].videos[Di[0].id];switch(fi.type){case"youtube":fi.player&&(an===!0&&fi.player.mute(),an===!1&&je(fi,parseInt(fi.volcache,0)),Je=fi.player.isMuted?fi.player.isMuted():fi.volume==="mute");break;case"vimeo":fi.volcachecheck||(fi.volcache=1<fi.volcache?fi.volcache/100:fi.volcache,fi.volcachecheck=!0),fi.volume=an===!0?"mute":an===!1?fi.volcache:fi.volume,an!==void 0&&fi.vimeoplayer!=null&&Ie(fi,an===!0?0:fi.volcache),Je=fi.volume=="mute"||fi.volume===0;break;case"html5":fi.volcachecheck||(fi.volcache=1<fi.volcache?fi.volcache/100:fi.volcache,fi.volcachecheck=!0),fi.video.volume=fi.volcache,an!==void 0&&fi.video&&(fi.video.muted=an),Je=fi.video!==void 0?fi.video.muted:Je}if(an===void 0)return Je},stopVideo:function(Di,zi,an){if(De[zi]!==void 0&&De[zi]!==void 0){var Je=De[zi].videos[Di[0].id];if(Je!==void 0&&(Je.cRS!=="stopVideo"||Je.cSS!=="paused"))switch(Je.cRS="stopVideo",De[zi].leaveViewPortBasedStop||(De[zi].lastplayedvideos=[]),De[zi].leaveViewPortBasedStop=!1,Je.type){case"youtube":Je.player!==void 0&&Je.player.getPlayerState()!==2&&Je.player.getPlayerState()!==5&&(Je.player.pauseVideo(),an!==void 0)&&ci(zi,Je,"hide");break;case"vimeo":Je.vimeoplayer!==void 0&&(Je.vimeoplayer.pause(),an!==void 0)&&ci(zi,Je,"hide");break;case"html5":Je.video&&(Je.video.pause(),De.ISM)&&Li(Je,1)}}},playVideo:function(Di,zi,an){var Je=De[zi].videos[Di[0].id];if(clearTimeout(Je.videoplaywait),Je.cRS!=="playVideo"||Je.cSS!=="playing")switch(Je.cRS="playVideo",Je.type){case"youtube":Di.find("iframe").length==0?(Di.append(Je.videomarkup),gi(Di,zi,!0)):Je.player!==void 0&&Je.player.playVideo!=null?(fi=Je.player.getCurrentTime(),Je.nseTriggered&&(Je.nseTriggered=!(fi=-1)),Je.ssec!=-1&&Je.ssec>fi&&Je.player.seekTo(Je.ssec),qe(Je)):Je.videoplaywait=setTimeout(function(){De.playVideo(Di,zi)},50);break;case"vimeo":Di.find("iframe").length==0?(delete Je.vimeoplayer,Di.append(Je.videomarkup),gi(Di,zi,!0)):Di.hasClass("rs-apiready")&&(Je.vimeoplayer=Je.vimeoplayer==null?new Vimeo.Player(Di.find("iframe").attr("id")):Je.vimeoplayer,Je.vimeoplayer.getPaused())?(fi=Je.currenttime===void 0?0:Je.currenttime,Je.nseTriggered&&(Je.nseTriggered=!(fi=-1)),Je.ssec!=-1&&Je.ssec>fi&&Je.vimeoplayer.setCurrentTime(Je.ssec),Je.volume!="mute"&&Je.volume!==0&&!De.lastToggleState(Di.data("videomutetoggledby"))&&De[zi].globalmute!==!0||(Je.volumetoken=!0,Je.vimeoplayer.setMuted(!0)),$e(Je)):Je.videoplaywait=setTimeout(function(){De.playVideo(Di,zi)},50);break;case"html5":if(Je.metaloaded){if((""+Je.video.duration=="NaN"||Je.video.readyState<4)&&!an)return Je.loadRequested||(Je.video.load(),Je.loadRequested=!0),void setTimeout(function(){De.playVideo(Di,zi)},50);var fi=Je.video.currentTime;Je.nseTriggered&&(Je.nseTriggered=!(fi=-1)),Je.ssec!=-1&&Je.ssec>fi&&Je.ssec<Je.video.duration&&(Je.video.currentTime=Je.ssec),Ke(Je,void 0,zi)}else Fe(Je.video,"loadedmetadata",void De.playVideo(Di,zi))}},isVideoPlaying:function(Di,zi){var an=!1;return De[zi].playingvideos!=null&&$$2.each(De[zi].playingvideos,function(Je,fi){Di.attr("id")==fi.attr("id")&&(an=!0)}),an},removeMediaFromList:function(Di,zi){Ei(Di,zi)},prepareCoveredVideo:function(Di){clearTimeout(De[Di].resizePrepareCoverVideolistener);var zi=De[Di].sliderType==="carousel"?De[Di].carousel.justify?De[Di].carousel.slide_widths===void 0?void 0:De[Di].c
193arousel.slide_widths[De[Di].carousel.focused]:De[Di].carousel.slide_width:De[Di].canv.width,an=De[Di].sliderType==="carousel"?De[Di].carousel.slide_height:De[Di].canv.height;if(zi===0||an===0||zi===void 0||an===void 0)De[Di].resizePrepareCoverVideolistener=setTimeout(function(){De.prepareCoveredVideo(Di)},100);else for(var Je in De[Di].videos){var fi,Gi,fn,Je=De[Di].videos[Je];Je.jvideo!==void 0&&(Je.bgvideo||Je.jvideo.parent().hasClass("rs-fsv")||De.closestNode(Je.video,"RS-LAYER")&&De.closestNode(Je.video,"RS-LAYER").classList.contains("rs-fsv"))&&(Je.type==="html5"&&Je.jvideo!==void 0&&tpGS.gsap.set(Je.jvideo,{width:zi}),De[Di].activeRSSlide!==void 0&&Je.slideid!==De.gA(De[Di].slides[De[Di].activeRSSlide],"key")&&De[Di].pr_next_slide!==void 0&&Je.slideid!==De.gA(De[Di].pr_next_slide[0],"key")||(Je.vd=1<Je.ratio.split(":").length?Je.ratio.split(":")[0]/Je.ratio.split(":")[1]:1,fi=Je.vd*(fn=zi/an)*100,Gi=Je.vd/fn*100,fn=De.get_browser()==="Edge"||De.get_browser()==="IE"?fn>Je.vd?{minWidth:"100%",height:fi+"%",x:"-50%",y:"-50%",top:"50%",left:"50%",position:"absolute"}:{minHeight:"100%",width:Gi+"%",x:"-50%",y:"-50%",top:"50%",left:"50%",position:"absolute"}:(Je.bgvideo&&Je.vimeoid!==void 0&&De[Di].sliderType=="carousel"&&(Gi=fi=100),fn>Je.vd?{height:(Je.fitCover?100:fi)+"%",width:"100%",top:Je.fitCover?0:-(fi-100)/2+"%",left:"0px",position:"absolute"}:{width:(Je.fitCover?100:Gi)+"%",height:"100%",left:Je.fitCover?0:-(Gi-100)/2+"%",top:"0px",position:"absolute"}),Je.vimeoid===void 0&&Je.ytid===void 0||(fn.maxWidth="none",fn.maxHeight="none"),tpGS.gsap.set(Je.jvideo,fn)))}},checkVideoApis:function(Di,zi){var an,Je,fi;De[zi].youtubeapineeded||(an=Di.find("iframe"),(Di.data("ytid")!=null||0<an.length&&an.attr("src")&&0<an.attr("src").toLowerCase().indexOf("youtube"))&&(De[zi].youtubeapineeded=!0),De[zi].youtubeapineeded&&!window.rs_addedyt&&(De[zi].youtubestarttime=Date.now(),window.rs_addedyt=!0,an=document.createElement("script"),Je=De.getByTag(document,"script")[0],fi=!0,an.src="https://www.youtube.com/iframe_api",$$2("head").find("*").each(function(){$$2(this).attr("src")=="https://www.youtube.com/iframe_api"&&(fi=!1)}),fi)&&Je.parentNode.insertBefore(an,Je)),De[zi].vimeoapineeded||(an=Di.find("iframe"),(Di.data("vimeoid")!=null||0<an.length&&an.attr("src")&&0<an.attr("src").toLowerCase().indexOf("vimeo"))&&(De[zi].vimeoapineeded=!0),De[zi].vimeoapineeded&&!window.rs_addedvim&&(De[zi].vimeostarttime=Date.now(),window.rs_addedvim=!0,Di=document.createElement("script"),Je=De.getByTag(document,"script")[0],fi=!0,Di.src="https://player.vimeo.com/api/player.js",$$2("head").find("*").each(function(){$$2(this).attr("src")=="https://player.vimeo.com/api/player.js"&&(fi=!1)}),fi)&&Je.parentNode.insertBefore(Di,Je))},manageVideoLayer:function(Di,zi,an,Je){if(De[zi].videos=De[zi].videos===void 0?{}:De[zi].videos,De[zi].videos[Di[0].id]===void 0||Je===!0){var fi=De[zi].videos[Di[0].id]=De[zi].videos[Di[0].id]===void 0?ii(Di.data(),void 0,an):De[zi].videos[Di[0].id];if(fi.audio=fi.audio!==void 0&&fi.audio,De.ISM&&fi.opom)Di.find("rs-poster").length==0&&Di.append('<rs-poster class="noSwipe" style="background-image:url('+fi.poster+');"></rs-poster>');else{fi.jsposter=Di.find("rs-poster"),fi.id=Di[0].id,fi.pload=fi.pload==="auto"||fi.pload==="canplay"||fi.pload==="canplaythrough"||fi.pload==="progress"?"auto":fi.pload,fi.type=fi.mp4!=null||fi.webm!=null?"html5":fi.ytid!=null&&1<String(fi.ytid).length?"youtube":fi.vimeoid!=null&&1<String(fi.vimeoid).length?"vimeo":"none",fi.newtype=fi.type=="html5"&&Di.find(fi.audio?"audio":"video").length==0?"html5":fi.type=="youtube"&&Di.find("iframe").length==0?"youtube":fi.type=="vimeo"&&Di.find("iframe").length==0?"vimeo":"none",fi.extras="",fi.posterMarkup=fi.posterMarkup===void 0?"":fi.posterMarkup,!fi.audio&&fi.aplay=="1sttime"&&fi.pausetimer&&fi.bgvideo&&De.sA(Di.closest("rs-slide")[0],"rspausetimeronce",1),fi.audio||!fi.bgvideo||!fi.pausetimer||fi.aplay!=1&&fi.aplay!="true"&&fi.aplay!="no1sttime"||De.sA(Di.closest("rs-slide")[0],"rspausetimeralways",1),fi.noInt&&Di.find("*").addClass("rs-nointeraction"),!(fi.poster!=null&&2<fi.poster.length)||De.ISM&&fi.npom||fi.jsposter.length==0&&(fi.posterMarkup+='<rs-poster class="noSwipe" style="background-image:url('+fi.poster+');"></rs-poster>');var Gi=!0;switch(fi.cSS="created",fi.cRS="created",fi.newtype){case"html5":window.isSafari11==1&&(De[zi].slideHasIframe=!0),fi.audio&&Di.addClass("rs-audio"),fi.tag=fi.audio?"audio":"video";var fn=fi.tag==="video"&&(De.is_mobile()||De.isSafari11())?fi.aplay&&fi.aplay!=="no1sttime"||fi.aplay==="true"?"muted playsinline autoplay":fi.inline?" playsinline":"":"",cn='<div class="html5vid rs_html5vidbasicstyles '+(fi.afs===!1?"hidefullscreen":"")+'">',Tn=fi.bgvideo&&/^([\w]+\:)?\/\//.test(fi.mp4)&&(fi.mp4.indexOf(location.host)===-1||fi.mp4.indexOf("."+location.host)!==-1)&&fi.crossOriginVideo?' crossOrigin="anonymous" ':"";cn+="<"+fi.tag+" "+fn+" "+(fi.controls&&fi.controls!=="none"?" controls":"")+Tn+(fi.bgvideo&&fn.indexOf("autoplay")==-1?" autoplay":"")+(fi.bgvideo&&fn.indexOf("muted")==-1?" muted":"")+' style="'+(De.get_browser()!=="Edge"?(fi.fitCover?"object-fit:cover;background-size:cover;":"")+"opacity:0;width:100%; height:100%":"")+'" class="" '+(fi.loop?"loop":"")+' preload="'+fi.pload+'">',fi.tag==="video"&&fi.webm!=null&&De.get_browser().toLowerCase()=="firefox"&&(cn=cn+'<source src="'+fi.webm+'" type="video/webm" />'),fi.mp4!=null&&(cn=cn+'<source src="'+fi.mp4+'" type="'+(fi.tag==="video"?"video/mp4":0<fi.mp4.toLowerCase().indexOf("m4a")?"audio/x-m4a":"audio/mpeg")+'" />'),fi.ogv!=null&&(cn=cn+'<source src="'+fi.mp4+'" type="'+fi.tag+'/ogg" />'),cn=(cn+="</"+fi.tag+"></div>")+fi.posterMarkup,fi.controls&&!fi.audio&&fi.poster===void 0||fi.bgvideo||(cn+='<div class="tp-video-play-button"><i class="revicon-right-dir"></i><span class="tp-revstop">&nbsp;</span></div>'),fi.videomarkup=cn,Gi=!1,De.ISM&&fi.notonmobile||De.isIE(8)||Di.append(cn),fi.jvideo=Di.find(fi.tag),fi.video=fi.jvideo[0],fi.html5vid=fi.jvideo.parent(),Fe(fi.video,"canplay",(oi(Tn=Di,zi),void De.resetVideo(Tn,zi)));break;case"youtube":De[zi].slideHasIframe=!0,fi.controls&&fi.controls!=="none"||(fi.vatr=fi.vatr.replace("controls=1","controls=0"),fi.vatr.toLowerCase().indexOf("controls")==-1&&(fi.vatr=fi.vatr+"&controls=0")),!fi.inline&&Di[0].tagName!=="RS-BGVIDEO"||(fi.vatr=fi.vatr+"&playsinline=1"),fi.ssec!=-1&&(fi.vatr+="&start="+fi.ssec),fi.esec!=-1&&(fi.vatr+="&end="+fi.esec),fn=fi.vatr.split("origin=https://"),fi.vatrnew=1<fn.length?fn[0]+"origin=https://"+(self.location.href.match(/www/gi)&&!fn[1].match(/www/gi)?"www."+fn[1]:fn[1]):fi.vatr,fi.videomarkup='<iframe allow="autoplay;
193 '+(fi.afs===!0?"fullscreen":"")+'" type="text/html" src="https://www.youtube-nocookie.com/embed/'+fi.ytid+"?"+fi.vatrnew+'"  width="100%" height="100%" class="intrinsic-ignore" style="opacity:0;visibility:visible;width:100%;height:100%"></iframe>';break;case"vimeo":De[zi].slideHasIframe=!0,fi.vatr=fi.vatr.replaceAll("&background=0","").replaceAll("&background=1",""),fi.vatr=fi.vatr.replaceAll("background=0","").replaceAll("background=1",""),!fi.controls||fi.controls==="none"||fi.bgvideo?(fi.vatr=fi.vatr.replace("background=0","background=1"),fi.vatr.toLowerCase().indexOf("background")==-1&&(fi.vatr=fi.vatr+"&background=1")):(fi.vatr=fi.vatr.replace("background=1","background=0"),fi.vatr.toLowerCase().indexOf("background")==-1&&(fi.vatr=fi.vatr+"&background=0")),fi.vatr="autoplay="+(fi.aplay===!0?1:0)+(fi.vatr[0]=="&"?"":"&")+fi.vatr,fi.bgvideo&&(fi.prePlayForaWhile=!0),De.ISM&&fi.aplay===!0&&(fi.vatr="muted=1"+(fi.vatr[0]=="&"?"":"&")+fi.vatr),fi.loop&&(fi.vatr="loop=1"+(fi.vatr[0]=="&"?"":"&")+fi.vatr),fi.videomarkup='<iframe  allow="autoplay; '+(fi.afs===!0?"fullscreen":"")+'" src="https://player.vimeo.com/video/'+fi.vimeoid+"?"+fi.vatr+'" '+(fi.afs===!0?"webkitallowfullscreen mozallowfullscreen allowfullscreen":"")+' width="100%" height="100%" class="intrinsic-ignore" style="opacity:0;visibility:visible;width:100%;height:100%"></iframe>'}if(!(fi.poster!=null&&2<fi.poster.length)||De.ISM&&fi.npom){if(De.ISM&&fi.notonmobile)return!1;Di.find("iframe").length!=0||fi.type!="youtube"&&fi.type!="vimeo"||(delete fi.vimeoplayer,Di.append(fi.videomarkup),gi(Di,zi,!(fi.newtype!=="vimeo"||!fi.bgvideo),!0))}else Gi&&Di.find("rs-poster").length==0&&Di.append(fi.posterMarkup),Di.find("iframe").length==0&&(fi.jsposter=Di.find("rs-poster"),fi.jsposter.on("click",function(){if(De.playVideo(Di,zi,!0),De.ISM){if(fi.notonmobile)return!1;tpGS.gsap.to(fi.jsposter,.3,{opacity:0,visibility:"hidden",force3D:"auto",ease:"power3.inOut"}),De.showVideo(Di.find("iframe"))}}));fi.doverlay!=="none"&&fi.doverlay!==void 0&&(Je=De.createOverlay(zi,fi.doverlay,fi.doverlaysize,{0:fi.doverlaycolora,1:fi.doverlaycolorb}),fi.bgvideo&&Di.closest("rs-sbg-wrap").find("rs-dotted").length!=1?Di.closest("rs-sbg-wrap").append('<rs-dotted style="background-image:'+Je+'"></rs-dotted>'):fi.bgvideo||Di.find("rs-dotted").length==1||Di.append('<rs-dotted style="background-image:'+Je+'"></rs-dotted>')),fi.bgvideo&&(fi.type!=="youtube"&&fi.type!=="vimeo"&&(Di[0].style.display="none"),Di[0].style.zIndex=0,tpGS.gsap.set(Di.find("video, iframe"),{opacity:0}))}}}});function Ae(Di,zi){var an=De[Di].videos[zi[0].id];(an.bgvideo||zi.hasClass("rs-fsv"))&&((an.ratio===void 0||an.ratio.split(":").length<=1)&&(an.ratio="16:9"),requestAnimationFrame(function(){De.prepareCoveredVideo(Di)}))}function ke(Di,zi,an){Di.cSS="playing",Di.vimeostarted=!0,Di.nextslidecalled=!1,Di.jsposter=Di.jsposter===void 0||Di.jsposter.length===0?zi.find("rs-poster"):Di.jsposter,Di.jvideo=zi.find("iframe"),De[an].c.trigger("revolution.slide.onvideoplay",Ve(Di.vimeoplayer,"vimeo",Di)),De[an].stopByVideo=Di.pausetimer,hi(zi,an),Di.volume=="mute"||Di.volume===0||De.lastToggleState(zi.data("videomutetoggledby"))||De[an].globalmute===!0?(Di.volumetoken=!0,Di.vimeoplayer.setMuted(!0)):Ie(Di,parseInt(Di.volcache,0)/100||.75),De.toggleState(Di.videotoggledby)}function Le(Di){return Di==="t"||Di===!0||Di==="true"||Di!=="f"&&Di!==!1&&Di!=="false"&&Di}var Fe=function(Di,zi,an){Di.addEventListener?Di.addEventListener(zi,an,{capture:!1,passive:!0}):Di.attachEvent(zi,an,{capture:!1,passive:!0})},Ve=function(Di,zi,an){var Je={};return Je.video=Di,Je.type=zi,Je.settings=an,Je},Ie=function(Di,zi){var an=Di.vimeoplayer;an.getPaused().then(function(Gi){Di.volumetoken=!0;var fi=!Gi,Gi=an.setVolume(zi);Gi!==void 0&&Gi.then(function(fn){an.getPaused().then(function(cn){fi===cn&&(Di.volume="mute",an.getMuted().then(function(Tn){Tn||(Di.volumetoken=!0,an.setMuted(!0))}),an.play())}).catch(function(cn){console.log("Get Paused Function Failed for Vimeo Volume Changes Inside the Promise")})}).catch(function(fn){fi&&(Di.volume="mute",Di.volumetoken=!0,an.setMuted(!0),an.play()),De.ISM&&Li(Di,0)})}).catch(function(){console.log("Get Paused Function Failed for Vimeo Volume Changes")}
193)},je=function(Di,zi){var an=Di.player.getPlayerState?Di.player.getPlayerState():-1;zi==="mute"?Di.player.mute&&Di.player.mute():(Di.player.unMute&&Di.player.unMute(),Di.player.setVolume&&Di.player.setVolume(zi)),setTimeout(function(){an===1&&Di.player.getPlayerState()!==1&&(Di.player.mute(),Di.player.playVideo())},39)},Ke=function(Di,zi,an){var Je;Di.cRS==="playVideo"&&((Je=Di.video.play())!==void 0&&Je.then(function(fi){Di.twaudio===!0&&De[an].globalmute!==!0&&(Di.twaudio=!1,De.clickedOnce)&&(Di.video.volume=Di.volcache,Di.volume=Di.volcache,Di.video.muted=!1)}).catch(function(fi){Di.video.pause(),zi!==!0&&Ke(Di,!0,an)}),De.ISM)&&Li(Di,0)},$e=function(Di){var zi;Di.cRS==="playVideo"&&(zi=Di.vimeoplayer.play())!==void 0&&zi.then(function(an){}).catch(function(an){Di.vimeoplayer.volumetoken=!0,Di.vimeoplayer.setMuted(!0),Di.vimeoplayer.play()})},qe=function(Di){Di.cRS==="playVideo"&&(Di.player.playVideo(),Di.player.getPlayerState()!==1)&&tpGS.gsap.delayedCall(.5,function(){qe(Di)})},ci=function(Di,zi,an,Je){clearTimeout(zi.repeatedPosterCalls),zi.repeatedPosterCalls=setTimeout(function(){an==="show"||zi.cSS==="playing"&&zi.VideoIsVisible!==!0?(zi.showhideposter!==void 0&&zi.showhideposter.pause(),zi.showhideposter=tpGS.gsap.timeline(),0<zi.jsposter.length&&zi.showhideposter.add(tpGS.gsap.to(zi.jsposter,.3,{zIndex:5,autoAlpha:0,force3D:"auto",ease:"power3.inOut"}),0),0<zi.jvideo.length&&zi.showhideposter.add(tpGS.gsap.to(zi.jvideo,Je!==void 0?Je:.001,{opacity:1,display:"block",ease:0<zi.jsposter.length?"power3.inOut":"power3.out"}),0),zi.VideoIsVisible=!0):(an==="hide"||zi.cSS==="paused"&&De.checkfullscreenEnabled(Di)!=1&&0<zi.jsp
193oster.length&&zi.VideoIsVisible!==!1&&zi.seeking!==!0)&&(zi.showhideposter!==void 0&&zi.showhideposter.pause(),zi.showhideposter=tpGS.gsap.timeline(),0<zi.jsposter.length&&zi.showhideposter.add(tpGS.gsap.to(zi.jsposter,.3,{zIndex:5,autoAlpha:1,force3D:"auto",ease:"power3.inOut"}),0),0<zi.jvideo.length&&zi.showhideposter.add(tpGS.gsap.to(zi.jvideo,Je!==void 0?Je:.001,{opacity:0,ease:0<zi.jsposter.length?"power3.inOut":"power3.out"}),.3),zi.bgvideo&&zi.nBG!==void 0&&zi.nBG.loadobj!==void 0&&(zi.nBG.video=zi.nBG.loadobj.img),zi.VideoIsVisible=!1)},an!==void 0?0:100)},gi=function(Di,zi,an,Je){var fi=De[zi].videos[Di[0].id],Gi="iframe"+Math.round(1e5*Math.random()+1);if(fi.jvideo=Di.find("iframe"),Ae(zi,Di),fi.jvideo.attr("id",Gi),fi.startvideonow=an,fi.videolistenerexist){if(an)switch(fi.type){case"youtube":De.playVideo(Di,zi),fi.ssec!=-1&&fi.player.seekTo(fi.ssec);break;case"vimeo":De.playVideo(Di,zi),fi.ssec!=-1&&fi.vimeoplayer.seekTo(fi.ssec)}}else switch(fi.type){case"youtube":typeof YT>"u"||YT.Player===void 0?(De.checkVideoApis(Di,zi),setTimeout(function(){gi(Di,zi,an,Je)},50)):fi.player=new YT.Player(Gi,{events:{onStateChange:function(Hn){Hn.data==YT.PlayerState.PLAYING?(fi.cSS="playing",!(De[zi].onceVideoPlayed=!0)===fi.player.isMuted()&&(fi.volume=fi.volcache=fi.player.getVolume()),fi.volume=="mute"||fi.volume===0||De.lastToggleState(Di.data("videomutetoggledby"))||De[zi].globalmute===!0?fi.player.mute():je(fi,parseInt(fi.volcache,0)||75),De[zi].stopByVideo=!0,hi(Di,zi),fi.pausetimer?De[zi].c.trigger("stoptimer"):De[zi].stopByVideo=!1,De[zi].c.trigger("revolution.slide.onvideoplay",Ve(fi.player,"youtube",fi)),De.toggleState(fi.videotoggledby)):(fi.cSS="paused",Hn.data==0&&fi.loop&&(fi.ssec!=-1&&fi.player.seekTo(fi.ssec),De.playVideo(Di,zi),De.toggleState(fi.videotoggledby)),Hn.data!=-1&&Hn.data!=3&&(De[zi].stopByVideo=!1,De[zi].tonpause=!1,Ei(Di,zi),De[zi].c.trigger("starttimer"),De[zi].c.trigger("revolution.slide.onvideostop",Ve(fi.player,"youtube",fi)),De[zi].videoIsPlaying!=null&&De[zi].videoIsPlaying.attr("id")!=Di.attr("id")||De.unToggleState(fi.videotoggledby)),Hn.data==0&&fi.nse?(document.fullscreenElement!==Di.find("iframe")[0]&&document.webkitFullscreenElement!==Di.find("iframe")[0]||Ai(),fi.nseTriggered=!0,De[zi].c.revnext(),Ei(Di,zi)):(Ei(Di,zi),De[zi].stopByVideo=!1,Hn.data!==3&&(fi.lasteventdata!=-1&&fi.lasteventdata!=3&&fi.lasteventdata!==void 0||Hn.data!=-1&&Hn.data!=3)&&De[zi].c.trigger("starttimer"),De[zi].c.trigger("revolution.slide.onvideostop",Ve(fi.player,"youtube",fi)),De[zi].videoIsPlaying!=null&&De[zi].videoIsPlaying.attr("id")!=Di.attr("id")||De.unToggleState(fi.videotoggledby))),clearTimeout(fi.postOrVideoTimer),Hn.data!==3&&(fi.postOrVideoTimer=setTimeout(function(){ci(zi,fi)},fi.lasteventdata===1&&Hn.data===2||fi.lasteventdata===2&&Hn.data!==3?1e3:0),fi.lasteventdata=Hn.data)},onReady:function(Hn){var Er,os=De.is_mobile(),wi=Di.hasClass("rs-layer-video");fi.ready=!0,!os&&(!De.isSafari11()||os&&wi)||Di[0].tagName!=="RS-BGVIDEO"&&(!wi||fi.aplay!==!0&&fi.aplay!=="true")||(Er=!0,fi.player.setVolume(fi.volcache),fi.volume="mute",fi.player.mute(),clearTimeout(Di.data("mobilevideotimr")),fi.player.getPlayerState()!==2&&fi.player.getPlayerState()!==-1)||Di.data("mobilevideotimr",setTimeout(function(){De.playVideo(Di,zi)},500)),Er||fi.volume!="mute"||(fi.player.setVolume(fi.volcache),fi.player.mute()),Di.addClass("rs-apiready"),fi.speed==null&&fi.speed===1||Hn.target.setPlaybackRate(parseFloat(fi.speed)),fi.jsposter.off("click"),fi.jsposter.on("click",function(){De.playVideo(Di,zi,!0)}),fi.startvideonow?(De.playVideo(Di,zi),fi.ssec!=-1&&fi.player.seekTo(fi.ssec)):Je&&ci(zi,fi,"show",.2),fi.videolistenerexist=!0}}});break;case"vimeo":if(typeof Vimeo>"u"||Vimeo.Player===void 0)De.checkVideoApis(Di,zi),setTimeout(function(){gi(Di,zi,an,Je)},50);else{for(var fn,cn={},Tn=tr=fi.jvideo.attr("src"),Sn=/([^&=]+)=([^&]*)/g;fn=Sn.exec(Tn);)cn[decodeURIComponent(fn[1])]=decodeURIComponent(fn[2]);var Cn,tr=(tr=cn.player_id!=null?tr.replace(cn.player_id,Gi):tr+"&player_id="+Gi).replace(/&api=0|&api=1/g,""),xr=De.is_mobile()||De.isSafari11(),er=Di[0].tagName==="RS-BGVIDEO";xr&&er&&(tr+="&background=1"),fi.jvideo.attr("src",tr),fi.vimeoplayer=fi.vimeoplayer===void 0||fi.vimeoplayer===!1?new Vimeo.Player(Gi):fi.vimeoplayer,xr&&(Cn=!(!er&&!fi.aplay&&fi.aplay!=="true")||Cn)&&(fi.volumetoken=!0,fi.vimeoplayer.setMuted(!0),fi.volume="mute"),fi.vimeoplayer.on("play",function(Hn){De[zi].onceVideoPlayed=!0,fi.cSS="playing",fi.vimeostarted||ke(fi,Di,zi)}),fi.vimeoplayer.on("loaded",function(Hn){var Er={};fi.vimeoplayer.getVideoWidth().then(function(os){Er.width=os,Er.width!==void 0&&Er.height!==void 0&&(fi.ratio=Er.width+":"+Er.height,fi.vimeoplayerloaded=!0,Ae(zi,Di))}),fi.vimeoplayer.getVideoHeight().then(function(os){Er.height=os,Er.width!==void 0&&Er.height!==void 0&&(fi.ratio=Er.width+":"+Er.height,fi.vimeoplayerloaded=!0,Ae(zi,Di))}),fi.startvideonow?(fi.volume==="mute"&&(fi.volumetoken=!0,fi.vimeoplayer.setMuted(!0)),De.playVideo(Di,zi),fi.ssec!=-1&&fi.vimeoplayer.setCurrentTime(fi.ssec)):Je&&ci(zi,fi,"show",.2),fi.speed==null&&fi.speed===1||fi.vimeoplayer.setPlaybackRate(parseFloat(fi.speed))}),Di.addClass("rs-apiready"),fi.vimeoplayer.on("volumechange",function(Hn){fi.volumetoken&&(fi.volume=Hn.volume),fi.volumetoken=!1}),fi.vimeoplayer.on("timeupdate",function(Hn){ci(zi,fi),fi.vimeostarted||Hn.percent===0||De[zi].activeRSSlide!==void 0&&fi.slideid!==De.gA(De[zi].slides[De[zi].activeRSSlide],"key")||ke(fi,Di,zi),fi.pausetimer&&De[zi].sliderstatus=="playing"&&(De[zi].stopByVideo=!0,De[zi].c.trigger("stoptimer")),fi.currenttime=Hn.seconds,fi.esec!=0&&fi.esec!==-1&&fi.esec<Hn.seconds&&fi.nextslidecalled!==!0&&(fi.loop?(De.playVideo(Di,zi),fi.vimeoplayer.setCurrentTime(fi.ssec!==-1?fi.ssec:0)):(fi.nse&&(fi.nseTriggered=!0,fi.nextslidecalled=!0,De[zi].c.revnext()),fi.vimeoplayer.pause())),fi.prePlayForaWhile&&fi.vimeoplayer.pause()}),fi.vimeoplayer.on("ended",function(Hn){fi.cSS="paused",ci(zi,fi),fi.vimeostarted=!1,Ei(Di,zi),De[zi].stopByVideo=!1,De[zi].c.trigger("starttimer"),De[zi].c.trigger("revolution.slide.onvideostop",Ve(fi.vimeoplayer,"vimeo",fi)),fi.nse&&(fi.nseTriggered=!0,De[zi].c.revnext()),De[zi].videoIsPlaying!=null&&De[zi].videoIsPlaying.attr("id")!=Di.attr("id")||De.unToggleState(fi.videotoggledby)}),fi.vimeoplayer.on("pause",function(Hn){fi.vimeostarted=!1,fi.cSS="paused",ci(zi,fi),De[zi].stopByVideo=!1,De[zi].tonpause=!1,Ei(Di,zi),De[zi].c.trigger("starttimer"),De[zi].c.trigger("revolution.slide.onvideostop",Ve(fi.vimeoplayer,"vimeo",fi)),De[zi].videoIsPlaying!=null&&De[zi].videoIsPlaying.attr("id")!=Di.attr("id")||De.unToggleState(fi.videotoggledby)}),fi.jsposter.off("click"),fi.jsposter.on("click",function(){if(!De.ISM)return De.playVideo(Di,zi,!0),!1}),fi.videolistenerexist=!0}}},Ai=function(){document.exitFullscreen&&document.fullscreen?document.exitFullscreen():document.mozCancelFullScreen&&document.mozFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitIsFullScreen&&document.webkitExitFullscreen()},oi=function(Di,zi,an){var Je,fi=De[zi].videos[Di[0].id];if(De.ISM&&fi.notonmobile)return!1;fi.metaloaded=!0,fi.newtype==="html5"&&fi.bgvideo&&(fi.nBG=De[zi].sbgs[Di[0].dataset.key],fi.nBG.shadowCanvas===void 0&&(fi.nBG.shadowCanvas=document.createElement("canvas"),fi.nBG.shadowCTX=fi.n
193BG.shadowCanvas.getContext("2d"),fi.nBG.shadowCanvas.style.background="transparent",fi.nBG.shadowCanvas.style.opacity=1),fi.nBG.isHTML5=!0,fi.nBG.video=fi.nBG.loadobj!==void 0&&fi.nBG.loadobj.img!==void 0?fi.nBG.loadobj.img:fi.video,fi.nBG.drawVideoCanvasImagesRecall=!1),fi.controls&&!fi.audio&&fi.poster===void 0||fi.noInt||(Di.find(".tp-video-play-button").length!=0||De.ISM||Di.append('<div class="tp-video-play-button"><i class="revicon-right-dir"></i><span class="tp-revstop">&nbsp;</span></div>'),Je="video, rs-poster, .tp-video-play-button",fi.poster!==void 0&&fi.controls&&(Je=".tp-video-play-button"),Di.find(Je).on("click",function(){fi.loop===!1&&0<fi.esec&&fi.esec<=fi.video.currentTime||(Di.hasClass("videoisplaying")?De.stopVideo(Di,zi):De.playVideo(Di,zi,!0))})),(Di.hasClass("rs-fsv")||fi.bgvideo)&&(fi.bgvideo||Di.hasClass("rs-fsv")?(fi.html5vid.addClass("fullcoveredvideo"),fi.ratio!==void 0&&fi.ratio.split(":").length!=1||(fi.ratio="16:9"),De.prepareCoveredVideo(zi)):fi.html5vid.addClass("rs-fsv")),Fe(fi.video,"canplaythrough",function(){De.preLoadAudioDone(Di,zi,"canplaythrough")}),Fe(fi.video,"canplay",function(){De.preLoadAudioDone(Di,zi,"canplay")}),Fe(fi.video,"progress",function(){De.preLoadAudioDone(Di,zi,"progress")}),Fe(fi.video,"pause",function(){De.ISM&&Li(fi,1)}),Fe(fi.video,"timeupdate",function(Gi){this.BGrendered=!0,ci(zi,fi),fi.esec===-1&&fi.loop&&window.isSafari11==1&&(fi.esec=fi.video.duration-.075),fi.lastCurrentTime!==void 0?fi.fps=fi.video.currentTime-fi.lastCurrentTime:fi.fps=.1,fi.lastCurrentTime=fi.video.currentTime,fi.esec!=0&&fi.esec!=-1&&fi.esec<fi.video.currentTime&&!fi.nextslidecalled&&(fi.loop?(Ke(fi,void 0,zi),fi.video.currentTime=fi.ssec===-1?.5:fi.ssec):(fi.nse&&(fi.nseTriggered=!0,fi.nextslidecalled=!0,De[zi].jcnah=!0,De[zi].c.revnext(),setTimeout(function(){De[zi].jcnah=!1},1e3)),fi.video.pause()))}),Fe(fi.video,"play",function(){fi.cSS="playing",ci(zi,fi),fi.bgvideo&&(fi.nBG.drawVideoCanvasImagesRecall=!0,fi.nBG.videoisplaying=!0,fi.nBG.video=fi.video,De.updateVideoFrames(zi,fi.nBG)),De[zi].onceVideoPlayed=!0,fi.nextslidecalled=!1,fi.volume=fi.volume!=null&&fi.volume!="mute"?parseFloat(fi.volcache):fi.volume,fi.volcache=fi.volcache!=null&&fi.volcache!="mute"?parseFloat(fi.volcache):fi.volcache,De.is_mobile()||(De[zi].globalmute===!0?fi.video.muted=!0:fi.video.muted=fi.volume=="mute",fi.volcache=De.isNumeric(fi.volcache)&&1<fi.volcache?fi.volcache/100:fi.volcache,fi.volume=="mute"?fi.video.muted=!0:fi.volcache!=null&&(fi.video.volume=fi.volcache)),Di.addClass("videoisplaying"),hi(Di,zi),clearTimeout(fi.showCoverSoon),fi.pausetimer!==!0||fi.tag=="audio"?(De[zi].stopByVideo=!1,De[zi].c.trigger("revolution.slide.onvideostop",Ve(fi.video,"html5",fi))):(De[zi].stopByVideo=!0,De[zi].c.trigger("revolution.slide.onvideoplay",Ve(fi.video,"html5",fi))),fi.pausetimer&&De[zi].sliderstatus=="playing"&&(De[zi].stopByVideo=!0,De[zi].c.trigger("stoptimer")),De.toggleState(fi.videotoggledby)}),Fe(fi.video,"seeked",function(){fi.seeking=!1}),Fe(fi.video,"seeking",function(){fi.seeking=!0}),Fe(fi.video,"pause",function(Gi){fi.cSS="paused",ci(zi,fi),Di.removeClass("videoisplaying"),fi.bgvideo&&(fi.nBG.drawVideoCanvasImagesRecall=!1,fi.nBG.videoisplaying=!1),De[zi].stopByVideo=!1,Ei(Di,zi),fi.tag!="audio"&&De[zi].c.trigger("starttimer"),De[zi].c.trigger("revolution.slide.onvideostop",Ve(fi.video,"html5",fi)),De[zi].videoIsPlaying!=null&&De[zi].videoIsPlaying.attr("id")!=Di.attr("id")||De.unToggleState(fi.videotoggledby)}),Fe(fi.video,"ended",function(){fi.cSS="paused",document.fullscreenElement!==fi.video&&document.webkitFullscreenElement!==fi.video||Ai(),ci(zi,fi),Ei(Di,zi),De[zi].stopByVideo=!1,Ei(Di,zi),fi.tag!="audio"&&De[zi].c.trigger("starttimer"),De[zi].c.trigger("revolution.slide.onvideostop",Ve(fi.video,"html5",Di.data())),fi.nse&&0<fi.video.currentTime&&(!De[zi].jcnah==1&&(fi.nseTriggered=!0,De[zi].c.revnext(),De[zi].jcnah=!0),setTimeout(function(){De[zi].jcnah=!1},1500)),Di.removeClass("videoisplaying"),fi.bgvideo&&(fi.nBG.drawVideoCanvasImagesRecall=!1,fi.nBG.videoisplaying=!1),De[zi].inviewport!==!0&&De[zi].inviewport!==void 0||(De[zi].lastplayedvideos=[])}),Fe(fi.video,"volumechange",function(){fi.video.muted?fi.volume="mute":fi.volume=fi.volcache=fi.video.volume})},ii=function(Di,zi,an){Di.audio=zi==="audio";var Je,fi=Di.video===void 0?[]:Di.video.split(";"),Gi={volume:Di.audio?1:"mute",pload:"auto",ratio:"16:9",loop:!0,aplay:"true",fitCover:!0,afs:!0,controls:!1,nse:!0,npom:!1,opom:!1,inline:!0,notonmobile:!1,start:-1,end:-1,doverlay:"none",doverlaysize:1,doverlaycolora:"transparent",doverlaycolorb:"#000000",scop:!1,rwd:!0,speed:1,ploadwait:5,stopAV:Di.bgvideo!==1,noInt:!1,volcache:75,crossOriginVideo:!1};for(Je in fi)if(fi.hasOwnProperty(Je)){var fn=fi[Je].split(":");switch(fn[0]){case"v":Gi.volume=fn[1];break;case"twa":Gi.twaudio=fn[1];break;case"vd":Gi.volcache=fn[1];break;case"p":Gi.pload=fn[1];break;case"ar":Gi.ratio=fn[1]+(fn[2]!==void 0?":"+fn[2]:"");break;case"ap":Gi.aplay=Le(fn[1]);break;case"vfc":Gi.fitCover=Le(fn[1]);break;case"afs":Gi.afs=Le(fn[1]);break;case"vc":Gi.controls=fn[1];break;case"nse":Gi.nse=Le(fn[1]);break;case"npom":Gi.npom=Le(fn[1]);break;
193case"opom":Gi.opom=Le(fn[1]);break;case"t":Gi.vtype=fn[1];break;case"inl":Gi.inline=Le(fn[1]);break;case"nomo":Gi.notonmobile=Le(fn[1]);break;case"sta":Gi.start=fn[1]+(fn[2]!==void 0?":"+fn[2]:"");break;case"end":Gi.end=fn[1]+(fn[2]!==void 0?":"+fn[2]:"");break;case"do":Gi.doverlay=fn[1];break;case"dos":Gi.doverlaysize=fn[1];break;case"doca":Gi.doverlaycolora=fn[1];break;case"docb":Gi.doverlaycolorb=fn[1];break;case"scop":Gi.scop=Le(fn[1]);break;case"rwd":Gi.rwd=Le(fn[1]);break;case"sp":Gi.speed=fn[1];break;case"vw":Gi.ploadwait=parseInt(fn[1],0)||5;break;case"sav":Gi.stopAV=Le(fn[1]);break;case"noint":Gi.noInt=Le(fn[1]);break;case"l":Gi.loopcache=fn[1],Gi.loop=fn[1]==="loop"||fn[1]==="loopandnoslidestop"||fn[1]!=="none"&&Le(fn[1]);break;case"ptimer":Gi.pausetimer=Le(fn[1]);break;case"sat":Gi.waitToSlideTrans=Le(fn[1]);break;case"crossOriginVideo":Gi.crossOriginVideo=Le(fn[1]);break;case"poch":Gi.pauseOnSlideChange=Le(fn[1])}}return Di.mp4==null&&Di.webm==null&&(Gi.fitCover=!1),Di.bgvideo!==void 0&&(Gi.bgvideo=Di.bgvideo),Gi.noInt&&(Gi.controls=!1),Di.mp4!==void 0&&(Gi.mp4=Di.mp4),Di.videomp4!==void 0&&(Gi.mp4=Di.videomp4),Di.ytid!==void 0&&(Gi.ytid=Di.ytid),Di.ogv!==void 0&&(Gi.ogv=Di.ogv),Di.webm!==void 0&&(Gi.webm=Di.webm),Di.vimeoid!==void 0&&(Gi.vimeoid=Di.vimeoid),Di.vatr!==void 0&&(Gi.vatr=Di.vatr),Di.videoattributes!==void 0&&(Gi.vatr=Di.videoattributes),Di.poster!==void 0&&(Gi.poster=Di.poster),Gi.slideid=an,Gi.aplay=Gi.aplay==="true"||Gi.aplay,Gi.bgvideo===1&&(Gi.volume="mute"),Gi.ssec=_e(Gi.start),Gi.esec=_e(Gi.end),Gi.pausetimer=Gi.pausetimer===void 0?Gi.loopcache!=="loopandnoslidestop":Gi.pausetimer,Gi.inColumn=Di._incolumn,Gi.audio=Di.audio,Gi.loop!==!0&&Gi.loop!=="true"||Gi.nse!==!0&&Gi.nse!=="true"||(Gi.loop=!1),Gi.aplay&&Gi.twaudio&&!Gi.bgvideo&&(Gi.twaudio=!0),Gi},hi=function(Di,zi){if(De[zi].playingvideos=De[zi].playingvideos===void 0?new Array:De[zi].playingvideos,De[zi].videos[Di[0].id].stopAV&&De[zi].playingvideos!==void 0&&0<De[zi].playingvideos.length)for(var an in De[zi].lastplayedvideos=$$2.extend(!0,[],De[zi].playingvideos),De[zi].playingvideos)De[zi].playingvideos.hasOwnProperty(an)&&De.stopVideo(De[zi].playingvideos[an],zi);De[zi].playingvideos.push(Di),De[zi].videoIsPlaying=Di},Ei=function(Di,zi){De[zi]!==void 0&&De[zi]!==void 0&&De[zi].playingvideos!=null&&0<=$$2.inArray(Di,De[zi].playingvideos)&&De[zi].playingvideos.splice($$2.inArray(Di,De[zi].playingvideos),1)},Li=function(Di,zi){var an,Je,fi;Di!==void 0&&(zi===void 0&&(zi=0),De.ISM)&&!Di.bgvideo&&(Di.playPauseBtnTween&&Di.playPauseBtnTween.kill&&Di.playPauseBtnTween.kill(),an=De.closestNode(Di.video,"RS-LAYER"),Je=Di.controls?1:0,fi=Di.controls?0:.3,Di.controls&&Di.poster&&zi===0&&(Je=fi=0),an)&&(Di.playPauseBtnTween=tpGS.gsap.to(an.querySelector(".tp-video-play-button"),{duration:fi,delay:Je,opacity:zi}))};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.video={loaded:!0,version:"6.6.9"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}();function _assertThisInitialized(De){if(De===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return De}function _inheritsLoose(De,_e){De.prototype=Object.create(_e.prototype),De.prototype.constructor=De,De.__proto__=_e}/*!
194 * GSAP 3.13.0
195 * https://gsap.com
196 *
197 * @license Copyright 2008-2025, GreenSock. All rights reserved.
198 * Subject to the terms at https://gsap.com/standard-license
199 * @author: Jack Doyle, [email protected]
200*/var _config={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_defaults={duration:.5,overwrite:!1,delay:0},_suppressOverwrites,_reverting$1,_context,_bigNum$1=1e8,_tinyNum=1/_bigNum$1,_2PI=Math.PI*2,_HALF_PI=_2PI/4,_gsID=0,_sqrt=Math.sqrt,_cos=Math.cos,_sin=Math.sin,_isString=function De(_e){return typeof _e=="string"},_isFunction=function De(_e){return typeof _e=="function"},_isNumber=function De(_e){return typeof _e=="number"},_isUndefined=function De(_e){return typeof _e>"u"},_isObject=function De(_e){return typeof _e=="object"},_isNotFalse=function De(_e){return _e!==!1},_windowExists$1=function De(){return typeof window<"u"},_isFuncOrString=function De(_e){return _isFunction(_e)||_isString(_e)},_isTypedArray=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},_isArray=Array.isArray,_strictNumExp=/(?:-?\.?\d|\.)+/gi,_numExp=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,_numWithUnitExp=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,_complexStringNumExp=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,_relExp=/[+-]=-?[.\d]+/,_delimitedValueExp=/[^,'"\[\]\s]+/gi,_unitExp=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,_globalTimeline,_win$1,_coreInitted,_doc$1,_globals={},_installScope={},_coreReady,_install=function De(_e){return(_installScope=_merge(_e,_globals))&&gsap},_missingPlugin=function De(_e,Ae){return console.warn("Invalid property",_e,"set to",Ae,"Missing plugin? gsap.registerPlugin()")},_warn=function De(_e,Ae){return!Ae&&console.warn(_e)},_addGlobal=function De(_e,Ae){return _e&&(_globals[_e]=Ae)&&_installScope&&(_installScope[_e]=Ae)||_globals},_emptyFunc=function De(){return 0},_startAtRevertConfig={suppressEvents:!0,isStart:!0,kill:!1},_revertConfigNoKill={suppressEvents:!0,kill:!1},_revertConfig={suppressEvents:!0},_reservedProps={},_lazyTweens=[],_lazyLookup={},_lastRenderedFrame,_plugins={},_effects={},_nextGCFrame=30,_harnessPlugins=[],_callbackNames="",_harness=function De(_e){var Ae=_e[0],ke,Le;if(_isObject(Ae)||_isFunction(Ae)||(_e=[_e]),!(ke=(Ae._gsap||{}).harness)){for(Le=_harnessPlugins.length;Le--&&!_harnessPlugins[Le].targetTest(Ae););ke=_harnessPlugins[Le]}for(Le=_e.length;Le--;)_e[Le]&&(_e[Le]._gsap||(_e[Le]._gsap=new GSCache(_e[Le],ke)))||_e.splice(Le,1);return _e},_getCache=function De(_e){return _e._gsap||_harness(toArray(_e))[0]._gsap},_getProperty=function De(_e,Ae,ke){return(ke=_e[Ae])&&_isFunction(ke)?_e[Ae]():_isUndefined(ke)&&_e.getAttribute&&_e.getAttribute(Ae)||ke}
vendor: 4,384 bytes, line 200
200,_forEachName=function De(_e,Ae){return(_e=_e.split(",")).forEach(Ae)||_e},_round=function De(_e){return Math.round(_e*1e5)/1e5||0},_roundPrecise=function De(_e){return Math.round(_e*1e7)/1e7||0},_parseRelative=function De(_e,Ae){var ke=Ae.charAt(0),Le=parseFloat(Ae.substr(2));return _e=parseFloat(_e),ke==="+"?_e+Le:ke==="-"?_e-Le:ke==="*"?_e*Le:_e/Le},_arrayContainsAny=function De(_e,Ae){for(var ke=Ae.length,Le=0;_e.indexOf(Ae[Le])<0&&++Le<ke;);return Le<ke},_lazyRender=function De(){var _e=_lazyTweens.length,Ae=_lazyTweens.slice(0),ke,Le;for(_lazyLookup={},_lazyTweens.length=0,ke=0;ke<_e;ke++)Le=Ae[ke],Le&&Le._lazy&&(Le.render(Le._lazy[0],Le._lazy[1],!0)._lazy=0)},_isRevertWorthy=function De(_e){return!!(_e._initted||_e._startAt||_e.add)},_lazySafeRender=function De(_e,Ae,ke,Le){_lazyTweens.length&&!_reverting$1&&_lazyRender(),_e.render(Ae,ke,Le||!!(_reverting$1&&Ae<0&&_isRevertWorthy(_e))),_lazyTweens.length&&!_reverting$1&&_lazyRender()},_numericIfPossible=function De(_e){var Ae=parseFloat(_e);return(Ae||Ae===0)&&(_e+"").match(_delimitedValueExp).length<2?Ae:_isString(_e)?_e.trim():_e},_passThrough=function De(_e){return _e},_setDefaults=function De(_e,Ae){for(var ke in Ae)ke in _e||(_e[ke]=Ae[ke]);return _e},_setKeyframeDefaults=function De(_e){return function(Ae,ke){for(var Le in ke)Le in Ae||Le==="duration"&&_e||Le==="ease"||(Ae[Le]=ke[Le])}},_merge=function De(_e,Ae){for(var ke in Ae)_e[ke]=Ae[ke];return _e},_mergeDeep=function De(_e,Ae){for(var ke in Ae)ke!=="__proto__"&&ke!=="constructor"&&ke!=="prototype"&&(_e[ke]=_isObject(Ae[ke])?De(_e[ke]||(_e[ke]={}),Ae[ke]):Ae[ke]);return _e},_copyExcluding=function De(_e,Ae){var ke={},Le;for(Le in _e)Le in Ae||(ke[Le]=_e[Le]);return ke},_inheritDefaults=function De(_e){var Ae=_e.parent||_globalTimeline,ke=_e.keyframes?_setKeyframeDefaults(_isArray(_e.keyframes)):_setDefaults;if(_isNotFalse(_e.inherit))for(;Ae;)ke(_e,Ae.vars.defaults),Ae=Ae.parent||Ae._dp;return _e},_arraysMatch=function De(_e,Ae){for(var ke=_e.length,Le=ke===Ae.length;Le&&ke--&&_e[ke]===Ae[ke];);return ke<0},_addLinkedListItem=function De(_e,Ae,ke,Le,Fe){ke===void 0&&(ke="_first"),Le===void 0&&(Le="_last");var Ve=_e[Le],Ie;if(Fe)for(Ie=Ae[Fe];Ve&&Ve[Fe]>Ie;)Ve=Ve._prev;return Ve?(Ae._next=Ve._next,Ve._next=Ae):(Ae._next=_e[ke],_e[ke]=Ae),Ae._next?Ae._next._prev=Ae:_e[Le]=Ae,Ae._prev=Ve,Ae.parent=Ae._dp=_e,Ae},_removeLinkedListItem=function De(_e,Ae,ke,Le){ke===void 0&&(ke="_first"),Le===void 0&&(Le="_last");var Fe=Ae._prev,Ve=Ae._next;Fe?Fe._next=Ve:_e[ke]===Ae&&(_e[ke]=Ve),Ve?Ve._prev=Fe:_e[Le]===Ae&&(_e[Le]=Fe),Ae._next=Ae._prev=Ae.parent=null},_removeFromParent=function De(_e,Ae){_e.parent&&(!Ae||_e.parent.autoRemoveChildren)&&_e.parent.remove&&_e.parent.remove(_e),_e._act=0},_uncache=function De(_e,Ae){if(_e&&(!Ae||Ae._end>_e._dur||Ae._start<0))for(var ke=_e;ke;)ke._dirty=1,ke=ke.parent;return _e},_recacheAncestors=function De(_e){for(var Ae=_e.parent;Ae&&Ae.parent;)Ae._dirty=1,Ae.totalDuration(),Ae=Ae.parent;return _e},_rewindStartAt=function De(_e,Ae,ke,Le){return _e._startAt&&(_reverting$1?_e._startAt.revert(_revertConfigNoKill):_e.vars.immediateRender&&!_e.vars.autoRevert||_e._startAt.render(Ae,!0,Le))},_hasNoPausedAncestors=function De(_e){return!_e||_e._ts&&De(_e.parent)},_elapsedCycleDuration=function De(_e){return _e._repeat?_animationCycle(_e._tTime,_e=_e.duration()+_e._rDelay)*_e:0},_animationCycle=function De(_e,Ae){var ke=Math.floor(_e=_roundPrecise(_e/Ae));return _e&&ke===_e?ke-1:ke},_parentToChildTotalTime=function De(_e,Ae){return(_e-Ae._start)*Ae._ts+(Ae._ts>=0?0:Ae._dirty?Ae.totalDuration():Ae._tDur)},_setEnd=function De(_e){return _e._end=_roundPrecise(_e._start+(_e._tDur/Math.abs(_e._ts||_e._rts||_tinyNum)||0))},_alignPlayhead=function De(_e,Ae){var ke=_e._dp;return ke&&ke.smoothChildTiming&&_e._ts&&(_e._start=_roundPrecise(ke._time-(_e._ts>0?Ae/_e._ts:((_e._dirty?_e.totalDuration():_e._tDur)-Ae)/-_e._ts)),_setEnd(_e),ke._dirty||_uncache(ke,_e)),_e},_postAddChecks=function De(_e,Ae){var ke;if((Ae._time||!Ae._dur&&Ae._initted||Ae._start<_e._time&&(Ae._dur||!Ae.add))&&(ke=_parentToChildTotalTime(_e.rawTime(),Ae),(!Ae._dur||_clamp(0,Ae.totalDuration(),ke)-Ae._tTime>_tinyNum)&&Ae.render(ke,!0)),_uncache(_e,Ae)._dp&&_e._initted&&_e._time>=_e._dur&&_e._ts){if(_e._dur<_e.duration())for(ke=_e;ke._dp;)ke.rawTime()>=0&&ke.totalTime(ke._tTime),ke=ke._dp;_e._zTime=-_tinyNum}}
vendor: 13,664 bytes, line 200
200,_addToTimeline=function De(_e,Ae,ke,Le){return Ae.parent&&_removeFromParent(Ae),Ae._start=_roundPrecise((_isNumber(ke)?ke:ke||_e!==_globalTimeline?_parsePosition(_e,ke,Ae):_e._time)+Ae._delay),Ae._end=_roundPrecise(Ae._start+(Ae.totalDuration()/Math.abs(Ae.timeScale())||0)),_addLinkedListItem(_e,Ae,"_first","_last",_e._sort?"_start":0),_isFromOrFromStart(Ae)||(_e._recent=Ae),Le||_postAddChecks(_e,Ae),_e._ts<0&&_alignPlayhead(_e,_e._tTime),_e},_scrollTrigger=function De(_e,Ae){return(_globals.ScrollTrigger||_missingPlugin("scrollTrigger",Ae))&&_globals.ScrollTrigger.create(Ae,_e)},_attemptInitTween=function De(_e,Ae,ke,Le,Fe){if(_initTween(_e,Ae,Fe),!_e._initted)return 1;if(!ke&&_e._pt&&!_reverting$1&&(_e._dur&&_e.vars.lazy!==!1||!_e._dur&&_e.vars.lazy)&&_lastRenderedFrame!==_ticker.frame)return _lazyTweens.push(_e),_e._lazy=[Fe,Le],1},_parentPlayheadIsBeforeStart=function De(_e){var Ae=_e.parent;return Ae&&Ae._ts&&Ae._initted&&!Ae._lock&&(Ae.rawTime()<0||De(Ae))},_isFromOrFromStart=function De(_e){var Ae=_e.data;return Ae==="isFromStart"||Ae==="isStart"},_renderZeroDurationTween=function De(_e,Ae,ke,Le){var Fe=_e.ratio,Ve=Ae<0||!Ae&&(!_e._start&&_parentPlayheadIsBeforeStart(_e)&&!(!_e._initted&&_isFromOrFromStart(_e))||(_e._ts<0||_e._dp._ts<0)&&!_isFromOrFromStart(_e))?0:1,Ie=_e._rDelay,je=0,Ke,$e,qe;if(Ie&&_e._repeat&&(je=_clamp(0,_e._tDur,Ae),$e=_animationCycle(je,Ie),_e._yoyo&&$e&1&&(Ve=1-Ve),$e!==_animationCycle(_e._tTime,Ie)&&(Fe=1-Ve,_e.vars.repeatRefresh&&_e._initted&&_e.invalidate())),Ve!==Fe||_reverting$1||Le||_e._zTime===_tinyNum||!Ae&&_e._zTime){if(!_e._initted&&_attemptInitTween(_e,Ae,Le,ke,je))return;for(qe=_e._zTime,_e._zTime=Ae||(ke?_tinyNum:0),ke||(ke=Ae&&!qe),_e.ratio=Ve,_e._from&&(Ve=1-Ve),_e._time=0,_e._tTime=je,Ke=_e._pt;Ke;)Ke.r(Ve,Ke.d),Ke=Ke._next;Ae<0&&_rewindStartAt(_e,Ae,ke,!0),_e._onUpdate&&!ke&&_callback(_e,"onUpdate"),je&&_e._repeat&&!ke&&_e.parent&&_callback(_e,"onRepeat"),(Ae>=_e._tDur||Ae<0)&&_e.ratio===Ve&&(Ve&&_removeFromParent(_e,1),!ke&&!_reverting$1&&(_callback(_e,Ve?"onComplete":"onReverseComplete",!0),_e._prom&&_e._prom()))}else _e._zTime||(_e._zTime=Ae)},_findNextPauseTween=function De(_e,Ae,ke){var Le;if(ke>Ae)for(Le=_e._first;Le&&Le._start<=ke;){if(Le.data==="isPause"&&Le._start>Ae)return Le;Le=Le._next}else for(Le=_e._last;Le&&Le._start>=ke;){if(Le.data==="isPause"&&Le._start<Ae)return Le;Le=Le._prev}},_setDuration=function De(_e,Ae,ke,Le){var Fe=_e._repeat,Ve=_roundPrecise(Ae)||0,Ie=_e._tTime/_e._tDur;return Ie&&!Le&&(_e._time*=Ve/_e._dur),_e._dur=Ve,_e._tDur=Fe?Fe<0?1e10:_roundPrecise(Ve*(Fe+1)+_e._rDelay*Fe):Ve,Ie>0&&!Le&&_alignPlayhead(_e,_e._tTime=_e._tDur*Ie),_e.parent&&_setEnd(_e),ke||_uncache(_e.parent,_e),_e},_onUpdateTotalDuration=function De(_e){return _e instanceof Timeline?_uncache(_e):_setDuration(_e,_e._dur)},_zeroPosition={_start:0,endTime:_emptyFunc,totalDuration:_emptyFunc},_parsePosition=function De(_e,Ae,ke){var Le=_e.labels,Fe=_e._recent||_zeroPosition,Ve=_e.duration()>=_bigNum$1?Fe.endTime(!1):_e._dur,Ie,je,Ke;return _isString(Ae)&&(isNaN(Ae)||Ae in Le)?(je=Ae.charAt(0),Ke=Ae.substr(-1)==="%",Ie=Ae.indexOf("="),je==="<"||je===">"?(Ie>=0&&(Ae=Ae.replace(/=/,"")),(je==="<"?Fe._start:Fe.endTime(Fe._repeat>=0))+(parseFloat(Ae.substr(1))||0)*(Ke?(Ie<0?Fe:ke).totalDuration()/100:1)):Ie<0?(Ae in Le||(Le[Ae]=Ve),Le[Ae]):(je=parseFloat(Ae.charAt(Ie-1)+Ae.substr(Ie+1)),Ke&&ke&&(je=je/100*(_isArray(ke)?ke[0]:ke).totalDuration()),Ie>1?De(_e,Ae.substr(0,Ie-1),ke)+je:Ve+je)):Ae==null?Ve:+Ae},_createTweenType=function De(_e,Ae,ke){var Le=_isNumber(Ae[1]),Fe=(Le?2:1)+(_e<2?0:1),Ve=Ae[Fe],Ie,je;if(Le&&(Ve.duration=Ae[1]),Ve.parent=ke,_e){for(Ie=Ve,je=ke;je&&!("immediateRender"in Ie);)Ie=je.vars.defaults||{},je=_isNotFalse(je.vars.inherit)&&je.parent;Ve.immediateRender=_isNotFalse(Ie.immediateRender),_e<2?Ve.runBackwards=1:Ve.startAt=Ae[Fe-1]}return new Tween(Ae[0],Ve,Ae[Fe+1])},_conditionalReturn=function De(_e,Ae){return _e||_e===0?Ae(_e):Ae},_clamp=function De(_e,Ae,ke){return ke<_e?_e:ke>Ae?Ae:ke},getUnit=function De(_e,Ae){return!_isString(_e)||!(Ae=_unitExp.exec(_e))?"":Ae[1]},clamp$1=function De(_e,Ae,ke){return _conditionalReturn(ke,function(Le){return _clamp(_e,Ae,Le)})},_slice=[].slice,_isArrayLike=function De(_e,Ae){return _e&&_isObject(_e)&&"length"in _e&&(!Ae&&!_e.length||_e.length-1 in _e&&_isObject(_e[0]))&&!_e.nodeType&&_e!==_win$1},_flatten=function De(_e,Ae,ke){return ke===void 0&&(ke=[]),_e.forEach(function(Le){var Fe;return _isString(Le)&&!Ae||_isArrayLike(Le,1)?(Fe=ke).push.apply(Fe,toArray(Le)):ke.push(Le)})||ke},toArray=function De(_e,Ae,ke){return _context&&!Ae&&_context.selector?_context.selector(_e):_isString(_e)&&!ke&&(_coreInitted||!_wake())?_slice.call((Ae||_doc$1).querySelectorAll(_e),0):_isArray(_e)?_flatten(_e,ke):_isArrayLike(_e)?_slice.call(_e,0):_e?[_e]:[]},selector=function De(_e){return _e=toArray(_e)[0]||_warn("Invalid scope")||{},function(Ae){var ke=_e.current||_e.nativeElement||_e;return toArray(Ae,ke.querySelectorAll?ke:ke===_e?_warn("Invalid scope")||_doc$1.createElement("div"):_e)}},shuffle=function De(_e){return _e.sort(function(){return .5-Math.random()})},distribute=function De(_e){if(_isFunction(_e))return _e;var Ae=_isObject(_e)?_e:{each:_e},ke=_parseEase(Ae.ease),Le=Ae.from||0,Fe=parseFloat(Ae.base)||0,Ve={},Ie=Le>0&&Le<1,je=isNaN(Le)||Ie,Ke=Ae.axis,$e=Le,qe=Le;return _isString(Le)?$e=qe={center:.5,edges:.5,end:1}[Le]||0:!Ie&&je&&($e=Le[0],qe=Le[1]),function(ci,gi,Ai){var oi=(Ai||Ae).length,ii=Ve[oi],hi,Ei,Li,Di,zi,an,Je,fi,Gi;if(!ii){if(Gi=Ae.grid==="auto"?0:(Ae.grid||[1,_bigNum$1])[1],!Gi){for(Je=-_bigNum$1;Je<(Je=Ai[Gi++].getBoundingClientRect().left)&&Gi<oi;);Gi<oi&&Gi--}for(ii=Ve[oi]=[],hi=je?Math.min(Gi,oi)*$e-.5:Le%Gi,Ei=Gi===_bigNum$1?0:je?oi*qe/Gi-.5:Le/Gi|0,Je=0,fi=_bigNum$1,an=0;an<oi;an++)Li=an%Gi-hi,Di=Ei-(an/Gi|0),ii[an]=zi=Ke?Math.abs(Ke==="y"?Di:Li):_sqrt(Li*Li+Di*Di),zi>Je&&(Je=zi),zi<fi&&(fi=zi);Le==="random"&&shuffle(ii),ii.max=Je-fi,ii.min=fi,ii.v=oi=(parseFloat(Ae.amount)||parseFloat(Ae.each)*(Gi>oi?oi-1:Ke?Ke==="y"?oi/Gi:Gi:Math.max(Gi,oi/Gi))||0)*(Le==="edges"?-1:1),ii.b=oi<0?Fe-oi:Fe,ii.u=getUnit(Ae.amount||Ae.each)||0,ke=ke&&oi<0?_invertEase(ke):ke}return oi=(ii[ci]-ii.min)/ii.max||0,_roundPrecise(ii.b+(ke?ke(oi):oi)*ii.v)+ii.u}},_roundModifier=function De(_e){var Ae=Math.pow(10,((_e+"").split(".")[1]||"").length);return function(ke){var Le=_roundPrecise(Math.round(parseFloat(ke)/_e)*_e*Ae);return(Le-Le%1)/Ae+(_isNumber(ke)?0:getUnit(ke))}},snap=function De(_e,Ae){var ke=_isArray(_e),Le,Fe;return!ke&&_isObject(_e)&&(Le=ke=_e.radius||_bigNum$1,_e.values?(_e=toArray(_e.values),(Fe=!_isNumber(_e[0]))&&(Le*=Le)):_e=_roundModifier(_e.increment)),_conditionalReturn(Ae,ke?_isFunction(_e)?function(Ve){return Fe=_e(Ve),Math.abs(Fe-Ve)<=Le?Fe:Ve}:function(Ve){for(var Ie=parseFloat(Fe?Ve.x:Ve),je=parseFloat(Fe?Ve.y:0),Ke=_bigNum$1,$e=0,qe=_e.length,ci,gi;qe--;)Fe?(ci=_e[qe].x-Ie,gi=_e[qe].y-je,ci=ci*ci+gi*gi):ci=Math.abs(_e[qe]-Ie),ci<Ke&&(Ke=ci,$e=qe);return $e=!Le||Ke<=Le?_e[$e]:Ve,Fe||$e===Ve||_isNumber(Ve)?$e:$e+getUnit(Ve)}:_roundModifier(_e))},random=function De(_e,Ae,ke,Le){return _conditionalReturn(_isArray(_e)?!Ae:ke===!0?!!(ke=0):!Le,function(){return _isArray(_e)?_e[~~(Math.random()*_e.length)]:(ke=ke||1e-5)&&(Le=ke<1?Math.pow(10,(ke+"").length-2):1)&&Math.floor(Math.round((_e-ke/2+Math.random()*(Ae-_e+ke*.99))/ke)*ke*Le)/Le})},pipe=function De(){for(var _e=arguments.length,Ae=new Array(_e),ke=0;ke<_e;ke++)Ae[ke]=arguments[ke];return function(Le){return Ae.reduce(function(Fe,Ve){return Ve(Fe)},Le)}},unitize=function De(_e,Ae){return function(ke){return _e(parseFloat(ke))+(Ae||getUnit(ke))}},normalize=function De(_e,Ae,ke){return mapRange(_e,Ae,0,1,ke)},_wrapArray=function De(_e,Ae,ke){return _conditionalReturn(ke,function(Le){return _e[~~Ae(Le)]})},wrap=function De(_e,Ae,ke){var Le=Ae-_e;return _isArray(_e)?_wrapArray(_e,De(0,_e.length),Ae):_conditionalReturn(ke,function(Fe){return(Le+(Fe-_e)%Le)%Le+_e})},wrapYoyo=function De(_e,Ae,ke){var Le=Ae-_e,Fe=Le*2;return _isArray(_e)?_wrapArray(_e,De(0,_e.length-1),Ae):_conditionalReturn(ke,function(Ve){return Ve=(Fe+(Ve-_e)%Fe)%Fe||0,_e+(Ve>Le?Fe-Ve:Ve)})},_replaceRandom=function De(_e){for(var Ae=0,ke="",Le,Fe,Ve,Ie;~(Le=_e.indexOf("random(",Ae));)Ve=_e.indexOf(")",Le),Ie=_e.charAt(Le+7)==="[",Fe=_e.substr(Le+7,Ve-Le-7).match(Ie?_delimitedValueExp:_strictNumExp),ke+=_e.substr(Ae,Le-Ae)+random(Ie?Fe:+Fe[0],Ie?0:+Fe[1],+Fe[2]||1e-5),Ae=Ve+1;return ke+_e.substr(Ae,_e.length-Ae)},mapRange=function De(_e,Ae,ke,Le,Fe){var Ve=Ae-_e,Ie=Le-ke;return _conditionalReturn(Fe,function(je){return ke+((je-_e)/Ve*Ie||0)})},interpolate=function De(_e,Ae,ke,Le){var Fe=isNaN(_e+Ae)?0:function(gi){return(1-gi)*_e+gi*Ae};if(!Fe){var Ve=_isString(_e),Ie={},je,Ke,$e,qe,ci;if(ke===!0&&(Le=1)&&(ke=null),Ve)_e={p:_e},Ae={p:Ae};else if(_isArray(_e)&&!_isArray(Ae)){for($e=[],qe=_e.length,ci=qe-2,Ke=1;Ke<qe;Ke++)$e.push(De(_e[Ke-1],_e[Ke]));qe--,Fe=function(Ai){Ai*=qe;var oi=Math.min(ci,~~Ai);return $e[oi](Ai-oi)},ke=Ae}else Le||(_e=_merge(_isArray(_e)?[]:{},_e));if(!$e){for(je in Ae)_addPropTween.call(Ie,_e,je,"get",Ae[je]);Fe=function(Ai){return _renderPropTweens(Ai,Ie)||(Ve?_e.p:_e)}}}return _conditionalReturn(ke,Fe)},_getLabelInDirection=function De(_e,Ae,ke){var Le=_e.labels,Fe=_bigNum$1,Ve,Ie,je;for(Ve in Le)Ie=Le[Ve]-Ae,Ie<0==!!ke&&Ie&&Fe>(Ie=Math.abs(Ie))&&(je=Ve,Fe=Ie);return je},_callback=function De(_e,Ae,ke){var Le=_e.vars,Fe=Le[Ae],Ve=_context,Ie=_e._ctx,je,Ke,$e;if(Fe)return je=Le[Ae+"Params"],Ke=Le.callbackScope||_e,ke&&_lazyTweens.length&&_lazyRender(),Ie&&(_context=Ie),$e=je?Fe.apply(Ke,je):Fe.call(Ke),_context=Ve,$e},_interrupt=function De(_e){return _removeFromParent(_e),_e.scrollTrigger&&_e.scrollTrigger.kill(!!_reverting$1),_e.progress()<1&&_callback(_e,"onInterrupt"),_e},_quickTween,_registerPluginQueue=[],_createPlugin=function De(_e){if(_e)if(_e=!_e.name&&_e.default||_e,_windowExists$1()||_e.headless){var Ae=_e.name,ke=_isFunction(_e),Le=Ae&&!ke&&_e.init?function(){this._props=[]}:_e,Fe={init:_emptyFunc,render:_renderPropTweens,add:_addPropTween,kill:_killPropTweensOf,modifier:_addPluginModifier,rawVars:0},Ve={targetTest:0,get:0,getSetter:_getSetter,aliases:{},register:0};if(_wake(),_e!==Le){if(_plugins[Ae])return;_setDefaults(Le,_setDefaults(_copyExcluding(_e,Fe),Ve)),_merge(Le.prototype,_merge(Fe,_copyExcluding(_e,Ve))),_plugins[Le.prop=Ae]=Le,_e.targetTest&&(_harnessPlugins.push(Le),_reservedProps[Ae]=1),Ae=(Ae==="css"?"CSS":Ae.charAt(0).toUpperCase()+Ae.substr(1))+"Plugin"}_addGlobal(Ae,Le),_e.register&&_e.register(gsap,Le,PropTween)}else _registerPluginQueue.push(_e)},_255=255,_colorLookup={aqua:[0,_255,_255],lime:[0,_255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,_255],navy:[0,0,128],white:[_255,_255,_255],olive:[128,128,0],yellow:[_255,_255,0],orange:[_255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[_255,0,0],pink:[_255,192,203],cyan:[0,_255,_255],transparent:[_255,_255,_255,0]},_hue=function De(_e,Ae,ke){return _e+=_e<0?1:_e>1?-1:0,(_e*6<1?Ae+(ke-Ae)*_e*6:_e<.5?ke:_e*3<2?Ae+(ke-Ae)*(2/3-_e)*6:Ae)*_255+.5|0},splitColor=function De(_e,Ae,ke){var Le=_e?_isNumber(_e)?[_e>>16,_e>>8&_255,_e&_255]:0:_colorLookup.black,Fe,Ve,Ie,je,Ke,$e,qe,ci,gi,Ai;if(!Le){if(_e.substr(-1)===","&&(_e=_e.substr(0,_e.length-1)),_colorLookup[_e])Le=_colorLookup[_e];else if(_e.charAt(0)==="#"){if(_e.length<6&&(Fe=_e.charAt(1),Ve=_e.charAt(2),Ie=_e.charAt(3),_e="#"+Fe+Fe+Ve+Ve+Ie+Ie+(_e.length===5?_e.charAt(4)+_e.charAt(4):"")),_e.length===9)return Le=parseInt(_e.substr(1,6),16),[Le>>16,Le>>8&_255,Le&_255,parseInt(_e.substr(7),16)/255];_e=parseInt(_e.substr(1),16),Le=[_e>>16,_e>>8&_255,_e&_255]}else if(_e.substr(0,3)==="hsl"){if(Le=Ai=_e.match(_strictNumExp),!Ae)je=+Le[0]%360/360,Ke=+Le[1]/100,$e=+Le[2]/100,Ve=$e<=.5?$e*(Ke+1):$e+Ke-$e*Ke,Fe=$e*2-Ve,Le.length>3&&(Le[3]*=1),Le[0]=_hue(je+1/3,Fe,Ve),Le[1]=_hue(je,Fe,Ve),Le[2]=_hue(je-1/3,Fe,Ve);else if(~_e.indexOf("="))return Le=_e.match(_numExp),ke&&Le.length<4&&(Le[3]=1),Le}else Le=_e.match(_strictNumExp)||_colorLookup.transparent;Le=Le.map(Number)}return Ae&&!Ai&&(Fe=Le[0]/_255,Ve=Le[1]/_255,Ie=Le[2]/_255,qe=Math.max(Fe,Ve,Ie),ci=Math.min(Fe,Ve,Ie),$e=(qe+ci)/2,qe===ci?je=Ke=0:(gi=qe-ci,Ke=$e>.5?gi/(2-qe-ci):gi/(qe+ci),je=qe===Fe?(Ve-Ie)/gi+(Ve<Ie?6:0):qe===Ve?(Ie-Fe)/gi+2:(Fe-Ve)/gi+4,je*=60),Le[0]=~~(je+.5),Le[1]=~~(Ke*100+.5),Le[2]=~~($e*100+.5)),ke&&Le.length<4&&(Le[3]=1),Le},_colorOrderData=function De(_e){var Ae=[],ke=[],Le=-1;return _e.split(_colorExp).forEach(function(Fe){var Ve=Fe.match(_numWithUnitExp)||[];Ae.push.apply(Ae,Ve),ke.push(Le+=Ve.length+1)}),Ae.c=ke,Ae},_formatColors=function De(_e,Ae,ke){var Le="",Fe=(_e+Le).match(_colorExp),Ve=Ae?"hsla(":"rgba(",Ie=0,je,Ke,$e,qe;if(!Fe)return _e;if(Fe=Fe.map(function(ci){return(ci=splitColor(ci,Ae,1))&&Ve+(Ae?ci[0]+","+ci[1]+"%,"+ci[2]+"%,"+ci[3]:ci.join(","))+")"}),ke&&($e=_colorOrderData(_e),je=ke.c,je.join(Le)!==$e.c.join(Le)))for(Ke=_e.replace(_colorExp,"1").split(_numWithUnitExp),qe=Ke.length-1;Ie<qe;Ie++)Le+=Ke[Ie]+(~je.indexOf(Ie)?Fe.shift()||Ve+"0,0,0,0)":($e.length?$e:Fe.length?Fe:ke).shift());if(!Ke)for(Ke=_e.split(_colorExp),qe=Ke.length-1;Ie<qe;Ie++)Le+=Ke[Ie]+Fe[Ie];return Le+Ke[qe]},_colorExp=function(){var De="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",_e;for(_e in _colorLookup)De+="|"+_e+"\\b";return new RegExp(De+")","gi")}(),_hslExp=/hsl[a]?\(/,_colorStringFilter=function De(_e){var Ae=_e.join(" "),ke;if(_colorExp.lastIndex=0,_colorExp.test(Ae))return ke=_hslExp.test(Ae),_e[1]=_formatColors(_e[1],ke),_e[0]=_formatColors(_e[0],ke,_colorOrderData(_e[1])
vendor: 6,728 bytes, line 200
200),!0},_tickerActive,_ticker=function(){var De=Date.now,_e=500,Ae=33,ke=De(),Le=ke,Fe=1e3/240,Ve=Fe,Ie=[],je,Ke,$e,qe,ci,gi,Ai=function oi(ii){var hi=De()-Le,Ei=ii===!0,Li,Di,zi,an;if((hi>_e||hi<0)&&(ke+=hi-Ae),Le+=hi,zi=Le-ke,Li=zi-Ve,(Li>0||Ei)&&(an=++qe.frame,ci=zi-qe.time*1e3,qe.time=zi=zi/1e3,Ve+=Li+(Li>=Fe?4:Fe-Li),Di=1),Ei||(je=Ke(oi)),Di)for(gi=0;gi<Ie.length;gi++)Ie[gi](zi,ci,an,ii)};return qe={time:0,frame:0,tick:function(){Ai(!0)},deltaRatio:function(ii){return ci/(1e3/(ii||60))},wake:function(){_coreReady&&(!_coreInitted&&_windowExists$1()&&(_win$1=_coreInitted=window,_doc$1=_win$1.document||{},_globals.gsap=gsap,(_win$1.gsapVersions||(_win$1.gsapVersions=[])).push(gsap.version),_install(_installScope||_win$1.GreenSockGlobals||!_win$1.gsap&&_win$1||{}),_registerPluginQueue.forEach(_createPlugin)),$e=typeof requestAnimationFrame<"u"&&requestAnimationFrame,je&&qe.sleep(),Ke=$e||function(ii){return setTimeout(ii,Ve-qe.time*1e3+1|0)},_tickerActive=1,Ai(2))},sleep:function(){($e?cancelAnimationFrame:clearTimeout)(je),_tickerActive=0,Ke=_emptyFunc},lagSmoothing:function(ii,hi){_e=ii||1/0,Ae=Math.min(hi||33,_e)},fps:function(ii){Fe=1e3/(ii||240),Ve=qe.time*1e3+Fe},add:function(ii,hi,Ei){var Li=hi?function(Di,zi,an,Je){ii(Di,zi,an,Je),qe.remove(Li)}:ii;return qe.remove(ii),Ie[Ei?"unshift":"push"](Li),_wake(),Li},remove:function(ii,hi){~(hi=Ie.indexOf(ii))&&Ie.splice(hi,1)&&gi>=hi&&gi--},_listeners:Ie},qe}(),_wake=function De(){return!_tickerActive&&_ticker.wake()},_easeMap={},_customEaseExp=/^[\d.\-M][\d.\-,\s]/,_quotesExp=/["']/g,_parseObjectInString=function De(_e){for(var Ae={},ke=_e.substr(1,_e.length-3).split(":"),Le=ke[0],Fe=1,Ve=ke.length,Ie,je,Ke;Fe<Ve;Fe++)je=ke[Fe],Ie=Fe!==Ve-1?je.lastIndexOf(","):je.length,Ke=je.substr(0,Ie),Ae[Le]=isNaN(Ke)?Ke.replace(_quotesExp,"").trim():+Ke,Le=je.substr(Ie+1).trim();return Ae},_valueInParentheses=function De(_e){var Ae=_e.indexOf("(")+1,ke=_e.indexOf(")"),Le=_e.indexOf("(",Ae);return _e.substring(Ae,~Le&&Le<ke?_e.indexOf(")",ke+1):ke)},_configEaseFromString=function De(_e){var Ae=(_e+"").split("("),ke=_easeMap[Ae[0]];return ke&&Ae.length>1&&ke.config?ke.config.apply(null,~_e.indexOf("{")?[_parseObjectInString(Ae[1])]:_valueInParentheses(_e).split(",").map(_numericIfPossible)):_easeMap._CE&&_customEaseExp.test(_e)?_easeMap._CE("",_e):ke},_invertEase=function De(_e){return function(Ae){return 1-_e(1-Ae)}},_propagateYoyoEase=function De(_e,Ae){for(var ke=_e._first,Le;ke;)ke instanceof Timeline?De(ke,Ae):ke.vars.yoyoEase&&(!ke._yoyo||!ke._repeat)&&ke._yoyo!==Ae&&(ke.timeline?De(ke.timeline,Ae):(Le=ke._ease,ke._ease=ke._yEase,ke._yEase=Le,ke._yoyo=Ae)),ke=ke._next},_parseEase=function De(_e,Ae){return _e&&(_isFunction(_e)?_e:_easeMap[_e]||_configEaseFromString(_e))||Ae},_insertEase=function De(_e,Ae,ke,Le){ke===void 0&&(ke=function(je){return 1-Ae(1-je)}),Le===void 0&&(Le=function(je){return je<.5?Ae(je*2)/2:1-Ae((1-je)*2)/2});var Fe={easeIn:Ae,easeOut:ke,easeInOut:Le},Ve;return _forEachName(_e,function(Ie){_easeMap[Ie]=_globals[Ie]=Fe,_easeMap[Ve=Ie.toLowerCase()]=ke;for(var je in Fe)_easeMap[Ve+(je==="easeIn"?".in":je==="easeOut"?".out":".inOut")]=_easeMap[Ie+"."+je]=Fe[je]}),Fe},_easeInOutFromOut=function De(_e){return function(Ae){return Ae<.5?(1-_e(1-Ae*2))/2:.5+_e((Ae-.5)*2)/2}},_configElastic=function De(_e,Ae,ke){var Le=Ae>=1?Ae:1,Fe=(ke||(_e?.3:.45))/(Ae<1?Ae:1),Ve=Fe/_2PI*(Math.asin(1/Le)||0),Ie=function($e){return $e===1?1:Le*Math.pow(2,-10*$e)*_sin(($e-Ve)*Fe)+1},je=_e==="out"?Ie:_e==="in"?function(Ke){return 1-Ie(1-Ke)}:_easeInOutFromOut(Ie);return Fe=_2PI/Fe,je.config=function(Ke,$e){return De(_e,Ke,$e)},je},_configBack=function De(_e,Ae){Ae===void 0&&(Ae=1.70158);var ke=function(Ve){return Ve?--Ve*Ve*((Ae+1)*Ve+Ae)+1:0},Le=_e==="out"?ke:_e==="in"?function(Fe){return 1-ke(1-Fe)}:_easeInOutFromOut(ke);return Le.config=function(Fe){return De(_e,Fe)},Le};_forEachName("Linear,Quad,Cubic,Quart,Quint,Strong",function(De,_e){var Ae=_e<5?_e+1:_e;_insertEase(De+",Power"+(Ae-1),_e?function(ke){return Math.pow(ke,Ae)}:function(ke){return ke},function(ke){return 1-Math.pow(1-ke,Ae)},function(ke){return ke<.5?Math.pow(ke*2,Ae)/2:1-Math.pow((1-ke)*2,Ae)/2})});_easeMap.Linear.easeNone=_easeMap.none=_easeMap.Linear.easeIn;_insertEase("Elastic",_configElastic("in"),_configElastic("out"),_configElastic());(function(De,_e){var Ae=1/_e,ke=2*Ae,Le=2.5*Ae,Fe=function(Ie){return Ie<Ae?De*Ie*Ie:Ie<ke?De*Math.pow(Ie-1.5/_e,2)+.75:Ie<Le?De*(Ie-=2.25/_e)*Ie+.9375:De*Math.pow(Ie-2.625/_e,2)+.984375};_insertEase("Bounce",function(Ve){return 1-Fe(1-Ve)},Fe)})(7.5625,2.75);_insertEase("Expo",function(De){return Math.pow(2,10*(De-1))*De+De*De*De*De*De*De*(1-De)});_insertEase("Circ",function(De){return-(_sqrt(1-De*De)-1)});_insertEase("Sine",function(De){return De===1?1:-_cos(De*_HALF_PI)+1});_insertEase("Back",_configBack("in"),_configBack("out"),_configBack());_easeMap.SteppedEase=_easeMap.steps=_globals.SteppedEase={config:function De(_e,Ae){_e===void 0&&(_e=1);var ke=1/_e,Le=_e+(Ae?0:1),Fe=Ae?1:0,Ve=1-_tinyNum;return function(Ie){return((Le*_clamp(0,Ve,Ie)|0)+Fe)*ke}}};_defaults.ease=_easeMap["quad.out"];_forEachName("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(De){return _callbackNames+=De+","+De+"Params,"});var GSCache=function De(_e,Ae){this.id=_gsID++,_e._gsap=this,this.target=_e,this.harness=Ae,this.get=Ae?Ae.get:_getProperty,this.set=Ae?Ae.getSetter:_getSetter},Animation=function(){function De(Ae){this.vars=Ae,this._delay=+Ae.delay||0,(this._repeat=Ae.repeat===1/0?-2:Ae.repeat||0)&&(this._rDelay=Ae.repeatDelay||0,this._yoyo=!!Ae.yoyo||!!Ae.yoyoEase),this._ts=1,_setDuration(this,+Ae.duration,1,1),this.data=Ae.data,_context&&(this._ctx=_context,_context.data.push(this)),_tickerActive||_ticker.wake()}var _e=De.prototype;return _e.delay=function(ke){return ke||ke===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+ke-this._delay),this._delay=ke,this):this._delay},_e.duration=function(ke){return arguments.length?this.totalDuration(this._repeat>0?ke+(ke+this._rDelay)*this._repeat:ke):this.totalDuration()&&this._dur},_e.totalDuration=function(ke){return arguments.length?(this._dirty=0,_setDuration(this,this._repeat<0?ke:(ke-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},_e.totalTime=function(ke,Le){if(_wake(),!arguments.length)return this._tTime;var Fe=this._dp;if(Fe&&Fe.smoothChildTiming&&this._ts){for(_alignPlayhead(this,ke),!Fe._dp||Fe.parent||_postAddChecks(Fe,this);Fe&&Fe.parent;)Fe.parent._time!==Fe._start+(Fe._ts>=0?Fe._tTime/Fe._ts:(Fe.totalDuration()-Fe._tTime)/-Fe._ts)&&Fe.totalTime(Fe._tTime,!0),Fe=Fe.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&ke<this._tDur||this._ts<0&&ke>
vendor: 5,239 bytes, line 200
2000||!this._tDur&&!ke)&&_addToTimeline(this._dp,this,this._start-this._delay)}return(this._tTime!==ke||!this._dur&&!Le||this._initted&&Math.abs(this._zTime)===_tinyNum||!ke&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=ke),_lazySafeRender(this,ke,Le)),this},_e.time=function(ke,Le){return arguments.length?this.totalTime(Math.min(this.totalDuration(),ke+_elapsedCycleDuration(this))%(this._dur+this._rDelay)||(ke?this._dur:0),Le):this._time},_e.totalProgress=function(ke,Le){return arguments.length?this.totalTime(this.totalDuration()*ke,Le):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},_e.progress=function(ke,Le){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-ke:ke)+_elapsedCycleDuration(this),Le):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},_e.iteration=function(ke,Le){var Fe=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(ke-1)*Fe,Le):this._repeat?_animationCycle(this._tTime,Fe)+1:1},_e.timeScale=function(ke,Le){if(!arguments.length)return this._rts===-_tinyNum?0:this._rts;if(this._rts===ke)return this;var Fe=this.parent&&this._ts?_parentToChildTotalTime(this.parent._time,this):this._tTime;return this._rts=+ke||0,this._ts=this._ps||ke===-_tinyNum?0:this._rts,this.totalTime(_clamp(-Math.abs(this._delay),this.totalDuration(),Fe),Le!==!1),_setEnd(this),_recacheAncestors(this)},_e.paused=function(ke){return arguments.length?(this._ps!==ke&&(this._ps=ke,ke?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(_wake(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==_tinyNum&&(this._tTime-=_tinyNum)))),this):this._ps},_e.startTime=function(ke){if(arguments.length){this._start=ke;var Le=this.parent||this._dp;return Le&&(Le._sort||!this.parent)&&_addToTimeline(Le,this,ke-this._delay),this}return this._start},_e.endTime=function(ke){return this._start+(_isNotFalse(ke)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},_e.rawTime=function(ke){var Le=this.parent||this._dp;return Le?ke&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?_parentToChildTotalTime(Le.rawTime(ke),this):this._tTime:this._tTime},_e.revert=function(ke){ke===void 0&&(ke=_revertConfig);var Le=_reverting$1;return _reverting$1=ke,_isRevertWorthy(this)&&(this.timeline&&this.timeline.revert(ke),this.totalTime(-.01,ke.suppressEvents)),this.data!=="nested"&&ke.kill!==!1&&this.kill(),_reverting$1=Le,this},_e.globalTime=function(ke){for(var Le=this,Fe=arguments.length?ke:Le.rawTime();Le;)Fe=Le._start+Fe/(Math.abs(Le._ts)||1),Le=Le._dp;return!this.parent&&this._sat?this._sat.globalTime(ke):Fe},_e.repeat=function(ke){return arguments.length?(this._repeat=ke===1/0?-2:ke,_onUpdateTotalDuration(this)):this._repeat===-2?1/0:this._repeat},_e.repeatDelay=function(ke){if(arguments.length){var Le=this._time;return this._rDelay=ke,_onUpdateTotalDuration(this),Le?this.time(Le):this}return this._rDelay},_e.yoyo=function(ke){return arguments.length?(this._yoyo=ke,this):this._yoyo},_e.seek=function(ke,Le){return this.totalTime(_parsePosition(this,ke),_isNotFalse(Le))},_e.restart=function(ke,Le){return this.play().totalTime(ke?-this._delay:0,_isNotFalse(Le)),this._dur||(this._zTime=-_tinyNum),this},_e.play=function(ke,Le){return ke!=null&&this.seek(ke,Le),this.reversed(!1).paused(!1)},_e.reverse=function(ke,Le){return ke!=null&&this.seek(ke||this.totalDuration(),Le),this.reversed(!0).paused(!1)},_e.pause=function(ke,Le){return ke!=null&&this.seek(ke,Le),this.paused(!0)},_e.resume=function(){return this.paused(!1)},_e.reversed=function(ke){return arguments.length?(!!ke!==this.reversed()&&this.timeScale(-this._rts||(ke?-_tinyNum:0)),this):this._rts<0},_e.invalidate=function(){return this._initted=this._act=0,this._zTime=-_tinyNum,this},_e.isActive=function(){var ke=this.parent||this._dp,Le=this._start,Fe;return!!(!ke||this._ts&&this._initted&&ke.isActive()&&(Fe=ke.rawTime(!0))>=Le&&Fe<this.endTime(!0)-_tinyNum)},_e.eventCallback=function(ke,Le,Fe){var Ve=this.vars;return arguments.length>1?(Le?(Ve[ke]=Le,Fe&&(Ve[ke+"Params"]=Fe),ke==="onUpdate"&&(this._onUpdate=Le)):delete Ve[ke],this):Ve[ke]},_e.then=function(ke){var Le=this;return new Promise(function(Fe){var Ve=_isFunction(ke)?ke:_passThrough,Ie=function(){var Ke=Le.then;Le.then=null,_isFunction(Ve)&&(Ve=Ve(Le))&&(Ve.then||Ve===Le)&&(Le.then=Ke),Fe(Ve),Le.then=Ke};Le._initted&&Le.totalProgress()===1&&Le._ts>=0||!Le._tTime&&Le._ts<0?Ie():Le._prom=Ie})},_e.kill=function(){_interrupt(this)},De}();_setDefaults(Animation.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-_tinyNum,_prom:0,_ps:!1,_rts:1});var Timeline=function(De){_inheritsLoose(_e,De);function _e(ke,Le){var Fe;return ke===void 0&&(ke={}),Fe=De.call(this,ke)||this,Fe.labels={},Fe.smoothChildTiming=!!ke.smoothChildTiming,Fe.autoRemoveChildren=!!ke.autoRemoveChildren,Fe._sort=_isNotFalse(ke.sortChildren),_globalTimeline&&_addToT
vendor: 4,464 bytes, line 200
200imeline(ke.parent||_globalTimeline,_assertThisInitialized(Fe),Le),ke.reversed&&Fe.reverse(),ke.paused&&Fe.paused(!0),ke.scrollTrigger&&_scrollTrigger(_assertThisInitialized(Fe),ke.scrollTrigger),Fe}var Ae=_e.prototype;return Ae.to=function(Le,Fe,Ve){return _createTweenType(0,arguments,this),this},Ae.from=function(Le,Fe,Ve){return _createTweenType(1,arguments,this),this},Ae.fromTo=function(Le,Fe,Ve,Ie){return _createTweenType(2,arguments,this),this},Ae.set=function(Le,Fe,Ve){return Fe.duration=0,Fe.parent=this,_inheritDefaults(Fe).repeatDelay||(Fe.repeat=0),Fe.immediateRender=!!Fe.immediateRender,new Tween(Le,Fe,_parsePosition(this,Ve),1),this},Ae.call=function(Le,Fe,Ve){return _addToTimeline(this,Tween.delayedCall(0,Le,Fe),Ve)},Ae.staggerTo=function(Le,Fe,Ve,Ie,je,Ke,$e){return Ve.duration=Fe,Ve.stagger=Ve.stagger||Ie,Ve.onComplete=Ke,Ve.onCompleteParams=$e,Ve.parent=this,new Tween(Le,Ve,_parsePosition(this,je)),this},Ae.staggerFrom=function(Le,Fe,Ve,Ie,je,Ke,$e){return Ve.runBackwards=1,_inheritDefaults(Ve).immediateRender=_isNotFalse(Ve.immediateRender),this.staggerTo(Le,Fe,Ve,Ie,je,Ke,$e)},Ae.staggerFromTo=function(Le,Fe,Ve,Ie,je,Ke,$e,qe){return Ie.startAt=Ve,_inheritDefaults(Ie).immediateRender=_isNotFalse(Ie.immediateRender),this.staggerTo(Le,Fe,Ie,je,Ke,$e,qe)},Ae.render=function(Le,Fe,Ve){var Ie=this._time,je=this._dirty?this.totalDuration():this._tDur,Ke=this._dur,$e=Le<=0?0:_roundPrecise(Le),qe=this._zTime<0!=Le<0&&(this._initted||!Ke),ci,gi,Ai,oi,ii,hi,Ei,Li,Di,zi,an,Je;if(this!==_globalTimeline&&$e>je&&Le>=0&&($e=je),$e!==this._tTime||Ve||qe){if(Ie!==this._time&&Ke&&($e+=this._time-Ie,Le+=this._time-Ie),ci=$e,Di=this._start,Li=this._ts,hi=!Li,qe&&(Ke||(Ie=this._zTime),(Le||!Fe)&&(this._zTime=Le)),this._repeat){if(an=this._yoyo,ii=Ke+this._rDelay,this._repeat<-1&&Le<0)return this.totalTime(ii*100+Le,Fe,Ve);if(ci=_roundPrecise($e%ii),$e===je?(oi=this._repeat,ci=Ke):(zi=_roundPrecise($e/ii),oi=~~zi,oi&&oi===zi&&(ci=Ke,oi--),ci>Ke&&(ci=Ke)),zi=_animationCycle(this._tTime,ii),!Ie&&this._tTime&&zi!==oi&&this._tTime-zi*ii-this._dur<=0&&(zi=oi),an&&oi&1&&(ci=Ke-ci,Je=1),oi!==zi&&!this._lock){var fi=an&&zi&1,Gi=fi===(an&&oi&1);if(oi<zi&&(fi=!fi),Ie=fi?0:$e%Ke?Ke:$e,this._lock=1,this.render(Ie||(Je?0:_roundPrecise(oi*ii)),Fe,!Ke)._lock=0,this._tTime=$e,!Fe&&this.parent&&_callback(this,"onRepeat"),this.vars.repeatRefresh&&!Je&&(this.invalidate()._lock=1),Ie&&Ie!==this._time||hi!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(Ke=this._dur,je=this._tDur,Gi&&(this._lock=2,Ie=fi?Ke:-1e-4,this.render(Ie,!0),this.vars.repeatRefresh&&!Je&&this.invalidate()),this._lock=0,!this._ts&&!hi)return this;_propagateYoyoEase(this,Je)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(Ei=_findNextPauseTween(this,_roundPrecise(Ie),_roundPrecise(ci)),Ei&&($e-=ci-(ci=Ei._start))),this._tTime=$e,this._time=ci,this._act=!Li,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=Le,Ie=0),!Ie&&$e&&!Fe&&!zi&&(_callback(this,"onStart"),this._tTime!==$e))return this;if(ci>=Ie&&Le>=0)for(gi=this._first;gi;){if(Ai=gi._next,(gi._act||ci>=gi._start)&&gi._ts&&Ei!==gi){if(gi.parent!==this)return this.render(Le,Fe,Ve);if(gi.render(gi._ts>0?(ci-gi._start)*gi._ts:(gi._dirty?gi.totalDuration():gi._tDur)+(ci-gi._start)*gi._ts,Fe,Ve),ci!==this._time||!this._ts&&!hi){Ei=0,Ai&&($e+=this._zTime=-_tinyNum);break}}gi=Ai}else{gi=this._last;for(var fn=Le<0?Le:ci;gi;){if(Ai=gi._prev,(gi._act||fn<=gi._end)&&gi._ts&&Ei!==gi){if(gi.parent!==this)return this.render(Le,Fe,Ve);if(gi.render(gi._ts>0?(fn-gi._start)*gi._ts:(gi._dirty?gi.totalDuration():gi._tDur)+(fn-gi._start)*gi._ts,Fe,Ve||_reverting$1&&_isRevertWorthy(gi)),ci!==this._time||!this._ts&&!hi){Ei=0,Ai&&($e+=this._zTime=fn?-_tinyNum:_tinyNum);break}}gi=Ai}}if(Ei&&!Fe&&(this.pause(),Ei.render(ci>=Ie?0:-_tinyNum)._zTime=ci>=Ie?1:-1,this._ts))return this._start=Di,_setEnd(this),this.render(Le,Fe,Ve);this._onUpdate&&!Fe&&_callback(this,"onUpdate",!0),($e===je&&this._tTime>=this.totalDuration()||!$e&&Ie)&&(Di===this._start||Math.abs(Li)!==Math.abs(this._ts))&&(this._lock||((Le||!Ke)&&($e===je&&this._ts>0||!$e&&this._ts<0)&&_removeFromParent(this,1),!Fe&&!(Le<0&&!Ie)&&($e||Ie||!je)&&(_callback(this,$e===je&&Le>=0?"onComplete":"onReverseComplete",!0),this._prom&&!($e<je&&this.timeScale()>0)&&this._prom())))}return this},Ae.add=function(Le,Fe){var Ve=this;if(_isNumber(Fe)||(Fe=_parsePosition(this,Fe,Le)),!(Le instanceof Animation)){if
vendor: 4,077 bytes, line 200
200(_isArray(Le))return Le.forEach(function(Ie){return Ve.add(Ie,Fe)}),this;if(_isString(Le))return this.addLabel(Le,Fe);if(_isFunction(Le))Le=Tween.delayedCall(0,Le);else return this}return this!==Le?_addToTimeline(this,Le,Fe):this},Ae.getChildren=function(Le,Fe,Ve,Ie){Le===void 0&&(Le=!0),Fe===void 0&&(Fe=!0),Ve===void 0&&(Ve=!0),Ie===void 0&&(Ie=-_bigNum$1);for(var je=[],Ke=this._first;Ke;)Ke._start>=Ie&&(Ke instanceof Tween?Fe&&je.push(Ke):(Ve&&je.push(Ke),Le&&je.push.apply(je,Ke.getChildren(!0,Fe,Ve)))),Ke=Ke._next;return je},Ae.getById=function(Le){for(var Fe=this.getChildren(1,1,1),Ve=Fe.length;Ve--;)if(Fe[Ve].vars.id===Le)return Fe[Ve]},Ae.remove=function(Le){return _isString(Le)?this.removeLabel(Le):_isFunction(Le)?this.killTweensOf(Le):(Le.parent===this&&_removeLinkedListItem(this,Le),Le===this._recent&&(this._recent=this._last),_uncache(this))},Ae.totalTime=function(Le,Fe){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=_roundPrecise(_ticker.time-(this._ts>0?Le/this._ts:(this.totalDuration()-Le)/-this._ts))),De.prototype.totalTime.call(this,Le,Fe),this._forcing=0,this):this._tTime},Ae.addLabel=function(Le,Fe){return this.labels[Le]=_parsePosition(this,Fe),this},Ae.removeLabel=function(Le){return delete this.labels[Le],this},Ae.addPause=function(Le,Fe,Ve){var Ie=Tween.delayedCall(0,Fe||_emptyFunc,Ve);return Ie.data="isPause",this._hasPause=1,_addToTimeline(this,Ie,_parsePosition(this,Le))},Ae.removePause=function(Le){var Fe=this._first;for(Le=_parsePosition(this,Le);Fe;)Fe._start===Le&&Fe.data==="isPause"&&_removeFromParent(Fe),Fe=Fe._next},Ae.killTweensOf=function(Le,Fe,Ve){for(var Ie=this.getTweensOf(Le,Ve),je=Ie.length;je--;)_overwritingTween!==Ie[je]&&Ie[je].kill(Le,Fe);return this},Ae.getTweensOf=function(Le,Fe){for(var Ve=[],Ie=toArray(Le),je=this._first,Ke=_isNumber(Fe),$e;je;)je instanceof Tween?_arrayContainsAny(je._targets,Ie)&&(Ke?(!_overwritingTween||je._initted&&je._ts)&&je.globalTime(0)<=Fe&&je.globalTime(je.totalDuration())>Fe:!Fe||je.isActive())&&Ve.push(je):($e=je.getTweensOf(Ie,Fe)).length&&Ve.push.apply(Ve,$e),je=je._next;return Ve},Ae.tweenTo=function(Le,Fe){Fe=Fe||{};var Ve=this,Ie=_parsePosition(Ve,Le),je=Fe,Ke=je.startAt,$e=je.onStart,qe=je.onStartParams,ci=je.immediateRender,gi,Ai=Tween.to(Ve,_setDefaults({ease:Fe.ease||"none",lazy:!1,immediateRender:!1,time:Ie,overwrite:"auto",duration:Fe.duration||Math.abs((Ie-(Ke&&"time"in Ke?Ke.time:Ve._time))/Ve.timeScale())||_tinyNum,onStart:function(){if(Ve.pause(),!gi){var ii=Fe.duration||Math.abs((Ie-(Ke&&"time"in Ke?Ke.time:Ve._time))/Ve.timeScale());Ai._dur!==ii&&_setDuration(Ai,ii,0,1).render(Ai._time,!0,!0),gi=1}$e&&$e.apply(Ai,qe||[])}},Fe));return ci?Ai.render(0):Ai},Ae.tweenFromTo=function(Le,Fe,Ve){return this.tweenTo(Fe,_setDefaults({startAt:{time:_parsePosition(this,Le)}},Ve))},Ae.recent=function(){return this._recent},Ae.nextLabel=function(Le){return Le===void 0&&(Le=this._time),_getLabelInDirection(this,_parsePosition(this,Le))},Ae.previousLabel=function(Le){return Le===void 0&&(Le=this._time),_getLabelInDirection(this,_parsePosition(this,Le),1)},Ae.currentLabel=function(Le){return arguments.length?this.seek(Le,!0):this.previousLabel(this._time+_tinyNum)},Ae.shiftChildren=function(Le,Fe,Ve){Ve===void 0&&(Ve=0);for(var Ie=this._first,je=this.labels,Ke;Ie;)Ie._start>=Ve&&(Ie._start+=Le,Ie._end+=Le),Ie=Ie._next;if(Fe)for(Ke in je)je[Ke]>=Ve&&(je[Ke]+=Le);return _uncache(this)},Ae.invalidate=function(Le){var Fe=this._first;for(this._lock=0;Fe;)Fe.invalidate(Le),Fe=Fe._next;return De.prototype.invalidate.call(this,Le)},Ae.clear=function(Le){Le===void 0&&(Le=!0);for(var Fe=this._first,Ve;Fe;)Ve=Fe._next,this.remove(Fe),Fe=Ve;return this._dp&&(this._time=this._tTime=this._pTime=0),Le&&(this.labels={}),_uncache(this)},Ae.totalDuration=function(Le){var Fe=0,Ve=this,Ie=Ve._last,je=_bigNum$1,Ke,$e,qe;if(arguments.length)return Ve.timeScale((Ve._repeat<0?Ve.duration():Ve.totalDuration())/(Ve.reversed()?-Le:Le));if(Ve._dirty){for(qe=Ve.parent;Ie;)Ke=Ie._prev,Ie._dirty&&Ie.totalDuration(),$e=Ie._start,$e>
vendor: 8,991 bytes, line 200
200je&&Ve._sort&&Ie._ts&&!Ve._lock?(Ve._lock=1,_addToTimeline(Ve,Ie,$e-Ie._delay,1)._lock=0):je=$e,$e<0&&Ie._ts&&(Fe-=$e,(!qe&&!Ve._dp||qe&&qe.smoothChildTiming)&&(Ve._start+=$e/Ve._ts,Ve._time-=$e,Ve._tTime-=$e),Ve.shiftChildren(-$e,!1,-1/0),je=0),Ie._end>Fe&&Ie._ts&&(Fe=Ie._end),Ie=Ke;_setDuration(Ve,Ve===_globalTimeline&&Ve._time>Fe?Ve._time:Fe,1,1),Ve._dirty=0}return Ve._tDur},_e.updateRoot=function(Le){if(_globalTimeline._ts&&(_lazySafeRender(_globalTimeline,_parentToChildTotalTime(Le,_globalTimeline)),_lastRenderedFrame=_ticker.frame),_ticker.frame>=_nextGCFrame){_nextGCFrame+=_config.autoSleep||120;var Fe=_globalTimeline._first;if((!Fe||!Fe._ts)&&_config.autoSleep&&_ticker._listeners.length<2){for(;Fe&&!Fe._ts;)Fe=Fe._next;Fe||_ticker.sleep()}}},_e}(Animation);_setDefaults(Timeline.prototype,{_lock:0,_hasPause:0,_forcing:0});var _addComplexStringPropTween=function De(_e,Ae,ke,Le,Fe,Ve,Ie){var je=new PropTween(this._pt,_e,Ae,0,1,_renderComplexString,null,Fe),Ke=0,$e=0,qe,ci,gi,Ai,oi,ii,hi,Ei;for(je.b=ke,je.e=Le,ke+="",Le+="",(hi=~Le.indexOf("random("))&&(Le=_replaceRandom(Le)),Ve&&(Ei=[ke,Le],Ve(Ei,_e,Ae),ke=Ei[0],Le=Ei[1]),ci=ke.match(_complexStringNumExp)||[];qe=_complexStringNumExp.exec(Le);)Ai=qe[0],oi=Le.substring(Ke,qe.index),gi?gi=(gi+1)%5:oi.substr(-5)==="rgba("&&(gi=1),Ai!==ci[$e++]&&(ii=parseFloat(ci[$e-1])||0,je._pt={_next:je._pt,p:oi||$e===1?oi:",",s:ii,c:Ai.charAt(1)==="="?_parseRelative(ii,Ai)-ii:parseFloat(Ai)-ii,m:gi&&gi<4?Math.round:0},Ke=_complexStringNumExp.lastIndex);return je.c=Ke<Le.length?Le.substring(Ke,Le.length):"",je.fp=Ie,(_relExp.test(Le)||hi)&&(je.e=0),this._pt=je,je},_addPropTween=function De(_e,Ae,ke,Le,Fe,Ve,Ie,je,Ke,$e){_isFunction(Le)&&(Le=Le(Fe||0,_e,Ve));var qe=_e[Ae],ci=ke!=="get"?ke:_isFunction(qe)?Ke?_e[Ae.indexOf("set")||!_isFunction(_e["get"+Ae.substr(3)])?Ae:"get"+Ae.substr(3)](Ke):_e[Ae]():qe,gi=_isFunction(qe)?Ke?_setterFuncWithParam:_setterFunc:_setterPlain,Ai;if(_isString(Le)&&(~Le.indexOf("random(")&&(Le=_replaceRandom(Le)),Le.charAt(1)==="="&&(Ai=_parseRelative(ci,Le)+(getUnit(ci)||0),(Ai||Ai===0)&&(Le=Ai))),!$e||ci!==Le||_forceAllPropTweens)return!isNaN(ci*Le)&&Le!==""?(Ai=new PropTween(this._pt,_e,Ae,+ci||0,Le-(ci||0),typeof qe=="boolean"?_renderBoolean:_renderPlain,0,gi),Ke&&(Ai.fp=Ke),Ie&&Ai.modifier(Ie,this,_e),this._pt=Ai):(!qe&&!(Ae in _e)&&_missingPlugin(Ae,Le),_addComplexStringPropTween.call(this,_e,Ae,ci,Le,gi,je||_config.stringFilter,Ke))},_processVars=function De(_e,Ae,ke,Le,Fe){if(_isFunction(_e)&&(_e=_parseFuncOrString(_e,Fe,Ae,ke,Le)),!_isObject(_e)||_e.style&&_e.nodeType||_isArray(_e)||_isTypedArray(_e))return _isString(_e)?_parseFuncOrString(_e,Fe,Ae,ke,Le):_e;var Ve={},Ie;for(Ie in _e)Ve[Ie]=_parseFuncOrString(_e[Ie],Fe,Ae,ke,Le);return Ve},_checkPlugin=function De(_e,Ae,ke,Le,Fe,Ve){var Ie,je,Ke,$e;if(_plugins[_e]&&(Ie=new _plugins[_e]).init(Fe,Ie.rawVars?Ae[_e]:_processVars(Ae[_e],Le,Fe,Ve,ke),ke,Le,Ve)!==!1&&(ke._pt=je=new PropTween(ke._pt,Fe,_e,0,1,Ie.render,Ie,0,Ie.priority),ke!==_quickTween))for(Ke=ke._ptLookup[ke._targets.indexOf(Fe)],$e=Ie._props.length;$e--;)Ke[Ie._props[$e]]=je;return Ie},_overwritingTween,_forceAllPropTweens,_initTween=function De(_e,Ae,ke){var Le=_e.vars,Fe=Le.ease,Ve=Le.startAt,Ie=Le.immediateRender,je=Le.lazy,Ke=Le.onUpdate,$e=Le.runBackwards,qe=Le.yoyoEase,ci=Le.keyframes,gi=Le.autoRevert,Ai=_e._dur,oi=_e._startAt,ii=_e._targets,hi=_e.parent,Ei=hi&&hi.data==="nested"?hi.vars.targets:ii,Li=_e._overwrite==="auto"&&!_suppressOverwrites,Di=_e.timeline,zi,an,Je,fi,Gi,fn,cn,Tn,Sn,Cn,tr,xr,er;if(Di&&(!ci||!Fe)&&(Fe="none"),_e._ease=_parseEase(Fe,_defaults.ease),_e._yEase=qe?_invertEase(_parseEase(qe===!0?Fe:qe,_defaults.ease)):0,qe&&_e._yoyo&&!_e._repeat&&(qe=_e._yEase,_e._yEase=_e._ease,_e._ease=qe),_e._from=!Di&&!!Le.runBackwards,!Di||ci&&!Le.stagger){if(Tn=ii[0]?_getCache(ii[0]).harness:0,xr=Tn&&Le[Tn.prop],zi=_copyExcluding(Le,_reservedProps),oi&&(oi._zTime<0&&oi.progress(1),Ae<0&&$e&&Ie&&!gi?oi.render(-1,!0):oi.revert($e&&Ai?_revertConfigNoKill:_startAtRevertConfig),oi._lazy=0),Ve){if(_removeFromParent(_e._startAt=Tween.set(ii,_setDefaults({data:"isStart",overwrite:!1,parent:hi,immediateRender:!0,lazy:!oi&&_isNotFalse(je),startAt:null,delay:0,onUpdate:Ke&&function(){return _callback(_e,"onUpdate")},stagger:0},Ve))),_e._startAt._dp=0,_e._startAt._sat=_e,Ae<0&&(_reverting$1||!Ie&&!gi)&&_e._startAt.revert(_revertConfigNoKill),Ie&&Ai&&Ae<=0&&ke<=0){Ae&&(_e._zTime=Ae);return}}else if($e&&Ai&&!oi){if(Ae&&(Ie=!1),Je=_setDefaults({overwrite:!1,data:"isFromStart",lazy:Ie&&!oi&&_isNotFalse(je),immediateRender:Ie,stagger:0,parent:hi},zi),xr&&(Je[Tn.prop]=xr),_removeFromParent(_e._startAt=Tween.set(ii,Je)),_e._startAt._dp=0,_e._startAt._sat=_e,Ae<0&&(_reverting$1?_e._startAt.revert(_revertConfigNoKill):_e._startAt.render(-1,!0)),_e._zTime=Ae,!Ie)De(_e._startAt,_tinyNum,_tinyNum);else if(!Ae)return}for(_e._pt=_e._ptCache=0,je=Ai&&_isNotFalse(je)||je&&!Ai,an=0;an<ii.length;an++){if(Gi=ii[an],cn=Gi._gsap||_harness(ii)[an]._gsap,_e._ptLookup[an]=Cn={},_lazyLookup[cn.id]&&_lazyTweens.length&&_lazyRender(),tr=Ei===ii?an:Ei.indexOf(Gi),Tn&&(Sn=new Tn).init(Gi,xr||zi,_e,tr,Ei)!==!1&&(_e._pt=fi=new PropTween(_e._pt,Gi,Sn.name,0,1,Sn.render,Sn,0,Sn.priority),Sn._props.forEach(function(Hn){Cn[Hn]=fi}),Sn.priority&&(fn=1)),!Tn||xr)for(Je in zi)_plugins[Je]&&(Sn=_checkPlugin(Je,zi,_e,tr,Gi,Ei))?Sn.priority&&(fn=1):Cn[Je]=fi=_addPropTween.call(_e,Gi,Je,"get",zi[Je],tr,Ei,0,Le.stringFilter);_e._op&&_e._op[an]&&_e.kill(Gi,_e._op[an]),Li&&_e._pt&&(_overwritingTween=_e,_globalTimeline.killTweensOf(Gi,Cn,_e.globalTime(Ae)),er=!_e.parent,_overwritingTween=0),_e._pt&&je&&(_lazyLookup[cn.id]=1)}fn&&_sortPropTweensByPriority(_e),_e._onInit&&_e._onInit(_e)}_e._onUpdate=Ke,_e._initted=(!_e._op||_e._pt)&&!er,ci&&Ae<=0&&Di.render(_bigNum$1,!0,!0)},_updatePropTweens=function De(_e,Ae,ke,Le,Fe,Ve,Ie,je){var Ke=(_e._pt&&_e._ptCache||(_e._ptCache={}))[Ae],$e,qe,ci,gi;if(!Ke)for(Ke=_e._ptCache[Ae]=[],ci=_e._ptLookup,gi=_e._targets.length;gi--;){if($e=ci[gi][Ae],$e&&$e.d&&$e.d._pt)for($e=$e.d._pt;$e&&$e.p!==Ae&&$e.fp!==Ae;)$e=$e._next;if(!$e)return _forceAllPropTweens=1,_e.vars[Ae]="+=0",_initTween(_e,Ie),_forceAllPropTweens=0,je?_warn(Ae+" not eligible for reset"):1;Ke.push($e)}for(gi=Ke.length;gi--;)qe=Ke[gi],$e=qe._pt||qe,$e.s=(Le||Le===0)&&!Fe?Le:$e.s+(Le||0)+Ve*$e.c,$e.c=ke-$e.s,qe.e&&(qe.e=_round(ke)+getUnit(qe.e)),qe.b&&(qe.b=$e.s+getUnit(qe.b))},_addAliasesToVars=function De(_e,Ae){var ke=_e[0]?_getCache(_e[0]).harness:0,Le=ke&&ke.aliases,Fe,Ve,Ie,je;if(!Le)return Ae;Fe=_merge({},Ae);for(Ve in Le)if(Ve in Fe)for(je=Le[Ve].split(","),Ie=je.length;Ie--;)Fe[je[Ie]]=Fe[Ve];return Fe},_parseKeyframe=function De(_e,Ae,ke,Le){var Fe=Ae.ease||Le||"power1.inOut",Ve,Ie;if(_isArray(Ae))Ie=ke[_e]||(ke[_e]=[]),Ae.forEach(function(je,Ke){return Ie.push({t:Ke/(Ae.length-1)*100,v:je,e:Fe})});else for(Ve in Ae)Ie=ke[Ve]||(ke[Ve]=[]),Ve==="ease"||Ie.push({t:parseFloat(_e),v:Ae[Ve],e:Fe})},_parseFuncOrString=function De(_e,Ae,ke,Le,Fe){return _isFunction(_e)?_e.call(Ae,ke,Le,Fe):_isString(_e)&&~_e.indexOf("random(")?_replaceRandom(_e):_e},_staggerTweenProps=_callbackNames+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",_staggerPropsToSkip={};_forEachName(_staggerTweenProps+",id,stagger,delay,duration,paused,scrollTrigger",function(De){return _staggerPropsToSkip[De]=1});var Tween=function(De){_inheritsLoose(_e,De);function _e(ke,Le,Fe,Ve){var Ie;typeof Le=="number"&&(Fe.duration=Le,Le=Fe,Fe=null),Ie=De.call(this,Ve?Le:_inheritDefaults(Le))||this;var je=Ie.vars,Ke=je.duration,$e=je.delay,qe=je.immediateRender,ci=je.stagger,gi=je.overwrite,Ai=je.keyframes,oi=je.defaults,ii=je.scrollTrigger,hi=je.yoyoEase,Ei=Le.parent||_globalTimeline,Li=(_isArray(ke)||_isTypedArray(ke)?_isNumber(ke[0]):"length"in Le)?[ke]:toArray(ke),Di,zi,an,Je,fi,Gi,fn,cn;if(Ie._targets=Li.length?_harness(Li):_warn("GSAP target "+ke+" not found. https://gsap.com",!_config.nullTargetWarn)||[],Ie._ptLookup=[],Ie._overwrite=gi,Ai||ci||_isFuncOrString(Ke)||_isFuncOrString($e)){if(Le=Ie.vars,Di=Ie.timeline=new Timeline({data:"nested",defaults:oi||{},targets:Ei&&Ei.data==="nested"?Ei.vars.targets:Li}),Di.kill(),Di.parent=Di._dp=_assertThisInitialized(Ie),Di._start=0,ci||_isFuncOrString(Ke)||_isFuncOrString($e)){if(Je=Li.length,fn=ci&&distribute(ci),_isObject(ci))for(fi in ci)~_staggerTweenProps.indexOf(fi)&&(cn||(cn={}),cn[fi]=ci[fi]);for(zi=0;zi<Je;zi++)an=_copyExcluding(Le,_staggerPropsToSkip),an.stagger=0,hi&&(an.yoyoEase=hi),cn&&_merge(an,cn),Gi=Li[zi],an.duration=+_parseFuncOrString(Ke,_assertThisInitialized(Ie),zi,Gi,Li),an.delay=(+_parseFuncOrString($e,_assertThisInitialized(Ie),zi,Gi,Li)||0)-Ie._delay,!ci&&Je===1&&an.delay&&(Ie._delay=$e=an.delay,Ie._start+=$e,an.delay=0),Di.to(Gi,an,fn?fn(zi,Gi,Li):0),Di._ease=_easeMap.none;Di.duration()?Ke=$e=0:Ie.timeline=0}else if(Ai){_inheritDefaults(_setDefaults(Di.vars.defaults,{ease:"none"})),Di._ease=_parseEase(Ai.ease||Le.ease||"none");var Tn=0,Sn,Cn,tr;
vendor: 4,447 bytes, line 200
200if(_isArray(Ai))Ai.forEach(function(xr){return Di.to(Li,xr,">")}),Di.duration();else{an={};for(fi in Ai)fi==="ease"||fi==="easeEach"||_parseKeyframe(fi,Ai[fi],an,Ai.easeEach);for(fi in an)for(Sn=an[fi].sort(function(xr,er){return xr.t-er.t}),Tn=0,zi=0;zi<Sn.length;zi++)Cn=Sn[zi],tr={ease:Cn.e,duration:(Cn.t-(zi?Sn[zi-1].t:0))/100*Ke},tr[fi]=Cn.v,Di.to(Li,tr,Tn),Tn+=tr.duration;Di.duration()<Ke&&Di.to({},{duration:Ke-Di.duration()})}}Ke||Ie.duration(Ke=Di.duration())}else Ie.timeline=0;return gi===!0&&!_suppressOverwrites&&(_overwritingTween=_assertThisInitialized(Ie),_globalTimeline.killTweensOf(Li),_overwritingTween=0),_addToTimeline(Ei,_assertThisInitialized(Ie),Fe),Le.reversed&&Ie.reverse(),Le.paused&&Ie.paused(!0),(qe||!Ke&&!Ai&&Ie._start===_roundPrecise(Ei._time)&&_isNotFalse(qe)&&_hasNoPausedAncestors(_assertThisInitialized(Ie))&&Ei.data!=="nested")&&(Ie._tTime=-_tinyNum,Ie.render(Math.max(0,-$e)||0)),ii&&_scrollTrigger(_assertThisInitialized(Ie),ii),Ie}var Ae=_e.prototype;return Ae.render=function(Le,Fe,Ve){var Ie=this._time,je=this._tDur,Ke=this._dur,$e=Le<0,qe=Le>je-_tinyNum&&!$e?je:Le<_tinyNum?0:Le,ci,gi,Ai,oi,ii,hi,Ei,Li,Di;if(!Ke)_renderZeroDurationTween(this,Le,Fe,Ve);else if(qe!==this._tTime||!Le||Ve||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==$e||this._lazy){if(ci=qe,Li=this.timeline,this._repeat){if(oi=Ke+this._rDelay,this._repeat<-1&&$e)return this.totalTime(oi*100+Le,Fe,Ve);if(ci=_roundPrecise(qe%oi),qe===je?(Ai=this._repeat,ci=Ke):(ii=_roundPrecise(qe/oi),Ai=~~ii,Ai&&Ai===ii?(ci=Ke,Ai--):ci>Ke&&(ci=Ke)),hi=this._yoyo&&Ai&1,hi&&(Di=this._yEase,ci=Ke-ci),ii=_animationCycle(this._tTime,oi),ci===Ie&&!Ve&&this._initted&&Ai===ii)return this._tTime=qe,this;Ai!==ii&&(Li&&this._yEase&&_propagateYoyoEase(Li,hi),this.vars.repeatRefresh&&!hi&&!this._lock&&ci!==oi&&this._initted&&(this._lock=Ve=1,this.render(_roundPrecise(oi*Ai),!0).invalidate()._lock=0))}if(!this._initted){if(_attemptInitTween(this,$e?Le:ci,Ve,Fe,qe))return this._tTime=0,this;if(Ie!==this._time&&!(Ve&&this.vars.repeatRefresh&&Ai!==ii))return this;if(Ke!==this._dur)return this.render(Le,Fe,Ve)}if(this._tTime=qe,this._time=ci,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=Ei=(Di||this._ease)(ci/Ke),this._from&&(this.ratio=Ei=1-Ei),!Ie&&qe&&!Fe&&!ii&&(_callback(this,"onStart"),this._tTime!==qe))return this;for(gi=this._pt;gi;)gi.r(Ei,gi.d),gi=gi._next;Li&&Li.render(Le<0?Le:Li._dur*Li._ease(ci/this._dur),Fe,Ve)||this._startAt&&(this._zTime=Le),this._onUpdate&&!Fe&&($e&&_rewindStartAt(this,Le,Fe,Ve),_callback(this,"onUpdate")),this._repeat&&Ai!==ii&&this.vars.onRepeat&&!Fe&&this.parent&&_callback(this,"onRepeat"),(qe===this._tDur||!qe)&&this._tTime===qe&&($e&&!this._onUpdate&&_rewindStartAt(this,Le,!0,!0),(Le||!Ke)&&(qe===this._tDur&&this._ts>0||!qe&&this._ts<0)&&_removeFromParent(this,1),!Fe&&!($e&&!Ie)&&(qe||Ie||hi)&&(_callback(this,qe===je?"onComplete":"onReverseComplete",!0),this._prom&&!(qe<je&&this.timeScale()>0)&&this._prom()))}return this},Ae.targets=function(){return this._targets},Ae.invalidate=function(Le){return(!Le||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(Le),De.prototype.invalidate.call(this,Le)},Ae.resetTo=function(Le,Fe,Ve,Ie,je){_tickerActive||_ticker.wake(),this._ts||this.play();var Ke=Math.min(this._dur,(this._dp._time-this._start)*this._ts),$e;return this._initted||_initTween(this,Ke),$e=this._ease(Ke/this._dur),_updatePropTweens(this,Le,Fe,Ve,Ie,$e,Ke,je)?this.resetTo(Le,Fe,Ve,Ie,1):(_alignPlayhead(this,0),this.parent||_addLinkedListItem(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},Ae.kill=function(Le,Fe){if(Fe===void 0&&(Fe="all"),!Le&&(!Fe||Fe==="all"))return this._lazy=this._pt=0,this.parent?_interrupt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!_reverting$1),this;if(this.timeline){var Ve=this.timeline.totalDuration();return this.timeline.killTweensOf(Le,Fe,_overwritingTween&&_overwritingTween.vars.overwrite!==!0)._first||_interrupt(this),this.parent&&Ve!==this.timeline.totalDuration()&&_setDuration(this,this._dur*this.timeline._tDur/Ve,0,1),this}var Ie=this._targets,je=Le?toArray(Le):Ie,Ke=this._ptLookup,$e=this._pt,qe,ci,gi,Ai,oi,ii,hi;if((!Fe||Fe==="all")&&_arraysMatch(Ie,je))return Fe==="all"&&(this._pt=0),_interrupt(this);for(qe=this._op=this._op||[],Fe!=="all"&&(_isString(Fe)&&(oi={}
vendor: 6,875 bytes, line 200
200,_forEachName(Fe,function(Ei){return oi[Ei]=1}),Fe=oi),Fe=_addAliasesToVars(Ie,Fe)),hi=Ie.length;hi--;)if(~je.indexOf(Ie[hi])){ci=Ke[hi],Fe==="all"?(qe[hi]=Fe,Ai=ci,gi={}):(gi=qe[hi]=qe[hi]||{},Ai=Fe);for(oi in Ai)ii=ci&&ci[oi],ii&&((!("kill"in ii.d)||ii.d.kill(oi)===!0)&&_removeLinkedListItem(this,ii,"_pt"),delete ci[oi]),gi!=="all"&&(gi[oi]=1)}return this._initted&&!this._pt&&$e&&_interrupt(this),this},_e.to=function(Le,Fe){return new _e(Le,Fe,arguments[2])},_e.from=function(Le,Fe){return _createTweenType(1,arguments)},_e.delayedCall=function(Le,Fe,Ve,Ie){return new _e(Fe,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:Le,onComplete:Fe,onReverseComplete:Fe,onCompleteParams:Ve,onReverseCompleteParams:Ve,callbackScope:Ie})},_e.fromTo=function(Le,Fe,Ve){return _createTweenType(2,arguments)},_e.set=function(Le,Fe){return Fe.duration=0,Fe.repeatDelay||(Fe.repeat=0),new _e(Le,Fe)},_e.killTweensOf=function(Le,Fe,Ve){return _globalTimeline.killTweensOf(Le,Fe,Ve)},_e}(Animation);_setDefaults(Tween.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});_forEachName("staggerTo,staggerFrom,staggerFromTo",function(De){Tween[De]=function(){var _e=new Timeline,Ae=_slice.call(arguments,0);return Ae.splice(De==="staggerFromTo"?5:4,0,0),_e[De].apply(_e,Ae)}});var _setterPlain=function De(_e,Ae,ke){return _e[Ae]=ke},_setterFunc=function De(_e,Ae,ke){return _e[Ae](ke)},_setterFuncWithParam=function De(_e,Ae,ke,Le){return _e[Ae](Le.fp,ke)},_setterAttribute=function De(_e,Ae,ke){return _e.setAttribute(Ae,ke)},_getSetter=function De(_e,Ae){return _isFunction(_e[Ae])?_setterFunc:_isUndefined(_e[Ae])&&_e.setAttribute?_setterAttribute:_setterPlain},_renderPlain=function De(_e,Ae){return Ae.set(Ae.t,Ae.p,Math.round((Ae.s+Ae.c*_e)*1e6)/1e6,Ae)},_renderBoolean=function De(_e,Ae){return Ae.set(Ae.t,Ae.p,!!(Ae.s+Ae.c*_e),Ae)},_renderComplexString=function De(_e,Ae){var ke=Ae._pt,Le="";if(!_e&&Ae.b)Le=Ae.b;else if(_e===1&&Ae.e)Le=Ae.e;else{for(;ke;)Le=ke.p+(ke.m?ke.m(ke.s+ke.c*_e):Math.round((ke.s+ke.c*_e)*1e4)/1e4)+Le,ke=ke._next;Le+=Ae.c}Ae.set(Ae.t,Ae.p,Le,Ae)},_renderPropTweens=function De(_e,Ae){for(var ke=Ae._pt;ke;)ke.r(_e,ke.d),ke=ke._next},_addPluginModifier=function De(_e,Ae,ke,Le){for(var Fe=this._pt,Ve;Fe;)Ve=Fe._next,Fe.p===Le&&Fe.modifier(_e,Ae,ke),Fe=Ve},_killPropTweensOf=function De(_e){for(var Ae=this._pt,ke,Le;Ae;)Le=Ae._next,Ae.p===_e&&!Ae.op||Ae.op===_e?_removeLinkedListItem(this,Ae,"_pt"):Ae.dep||(ke=1),Ae=Le;return!ke},_setterWithModifier=function De(_e,Ae,ke,Le){Le.mSet(_e,Ae,Le.m.call(Le.tween,ke,Le.mt),Le)},_sortPropTweensByPriority=function De(_e){for(var Ae=_e._pt,ke,Le,Fe,Ve;Ae;){for(ke=Ae._next,Le=Fe;Le&&Le.pr>Ae.pr;)Le=Le._next;(Ae._prev=Le?Le._prev:Ve)?Ae._prev._next=Ae:Fe=Ae,(Ae._next=Le)?Le._prev=Ae:Ve=Ae,Ae=ke}_e._pt=Fe},PropTween=function(){function De(Ae,ke,Le,Fe,Ve,Ie,je,Ke,$e){this.t=ke,this.s=Fe,this.c=Ve,this.p=Le,this.r=Ie||_renderPlain,this.d=je||this,this.set=Ke||_setterPlain,this.pr=$e||0,this._next=Ae,Ae&&(Ae._prev=this)}var _e=De.prototype;return _e.modifier=function(ke,Le,Fe){this.mSet=this.mSet||this.set,this.set=_setterWithModifier,this.m=ke,this.mt=Fe,this.tween=Le},De}();_forEachName(_callbackNames+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(De){return _reservedProps[De]=1});_globals.TweenMax=_globals.TweenLite=Tween;_globals.TimelineLite=_globals.TimelineMax=Timeline;_globalTimeline=new Timeline({sortChildren:!1,defaults:_defaults,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});_config.stringFilter=_colorStringFilter;var _media=[],_listeners={},_emptyArray=[],_lastMediaTime=0,_contextID=0,_dispatch=function De(_e){return(_listeners[_e]||_emptyArray).map(function(Ae){return Ae()})},_onMediaChange=function De(){var _e=Date.now(),Ae=[];_e-_lastMediaTime>2&&(_dispatch("matchMediaInit"),_media.forEach(function(ke){var Le=ke.queries,Fe=ke.conditions,Ve,Ie,je,Ke;for(Ie in Le)Ve=_win$1.matchMedia(Le[Ie]).matches,Ve&&(je=1),Ve!==Fe[Ie]&&(Fe[Ie]=Ve,Ke=1);Ke&&(ke.revert(),je&&Ae.push(ke))}),_dispatch("matchMediaRevert"),Ae.forEach(function(ke){return ke.onMatch(ke,function(Le){return ke.add(null,Le)})}),_lastMediaTime=_e,_dispatch("matchMedia"))},Context=function(){function De(Ae,ke){this.selector=ke&&selector(ke),this.data=[],this._r=[],this.isReverted=!1,this.id=_contextID++,Ae&&this.add(Ae)}var _e=De.prototype;return _e.add=function(ke,Le,Fe){_isFunction(ke)&&(Fe=Le,Le=ke,ke=_isFunction);var Ve=this,Ie=function(){var Ke=_context,$e=Ve.selector,qe;return Ke&&Ke!==Ve&&Ke.data.push(Ve),Fe&&(Ve.selector=selector(Fe)),_context=Ve,qe=Le.apply(Ve,arguments),_isFunction(qe)&&Ve._r.push(qe),_context=Ke,Ve.selector=$e,Ve.isReverted=!1,qe};return Ve.last=Ie,ke===_isFunction?Ie(Ve,function(je){return Ve.add(null,je)}):ke?Ve[ke]=Ie:Ie},_e.ignore=function(ke){var Le=_context;_context=null,ke(this),_context=Le},_e.getTweens=function(){var ke=[];return this.data.forEach(function(Le){return Le instanceof De?ke.push.apply(ke,Le.getTweens()):Le instanceof Tween&&!(Le.parent&&Le.parent.data==="nested")&&ke.push(Le)}),ke},_e.clear=function(){this._r.length=this.data.length=0},_e.kill=function(ke,Le){var Fe=this;if(ke?function(){for(var Ie=Fe.getTweens(),je=Fe.data.length,Ke;je--;)Ke=Fe.data[je],Ke.data==="isFlip"&&(Ke.revert(),Ke.getChildren(!0,!0,!1).forEach(function($e){return Ie.splice(Ie.indexOf($e),1)}));for(Ie.map(function($e){return{g:$e._dur||$e._delay||$e._sat&&!$e._sat.vars.immediateRender?$e.globalTime(0):-1/0,t:$e}}).sort(function($e,qe){return qe.g-$e.g||-1/0}).forEach(function($e){return $e.t.revert(ke)}),je=Fe.data.length;je--;)Ke=Fe.data[je],Ke instanceof Timeline?Ke.data!=="nested"&&(Ke.scrollTrigger&&Ke.scrollTrigger.revert(),Ke.kill()):!(Ke instanceof Tween)&&Ke.revert&&Ke.revert(ke);Fe._r.forEach(function($e){return $e(ke,Fe)}),Fe.isReverted=!0}():this.data.forEach(function(Ie){return Ie.kill&&Ie.kill()}),this.clear(),Le)for(var Ve=_media.length;Ve--;)_media[Ve].id===this.id&&_media.splice(Ve,1)},_e.revert=function(ke){this.kill(ke||{})},De}(),MatchMedia=function(){function De(Ae){this.contexts=[],this.scope=Ae,_context&&_context.data.push(this)}var _e=De.prototype;return _e.add=function(ke,Le,Fe){_isObject(ke)||(ke={matches:ke});var Ve=new Context(0,Fe||this.scope),Ie=Ve.conditions={},je,Ke,$e;_context&&!Ve.selector&&(Ve.selector=_context.selector),this.contexts.push(Ve),Le=Ve.add("onMatch",Le),Ve.queries=ke;for(Ke in ke)Ke==="all"?$e=1:(je=_win$1.matchMedia(ke[Ke]),je&&(_media.indexOf(Ve)<0&&_media.push(Ve),(Ie[Ke]=je.matches)&&($e=1),je.addListener?je.addListener(_onMediaChange):je.addEventListener("change",_onMediaChange)));return $e&&Le(Ve,function(qe){return Ve.add(null,qe)}),this},_e.revert=function(ke){this.kill(ke||{})}
vendor: 17,359 bytes, lines 200-207
200,_e.kill=function(ke){this.contexts.forEach(function(Le){return Le.kill(ke,!0)})},De}(),_gsap={registerPlugin:function De(){for(var _e=arguments.length,Ae=new Array(_e),ke=0;ke<_e;ke++)Ae[ke]=arguments[ke];Ae.forEach(function(Le){return _createPlugin(Le)})},timeline:function De(_e){return new Timeline(_e)},getTweensOf:function De(_e,Ae){return _globalTimeline.getTweensOf(_e,Ae)},getProperty:function De(_e,Ae,ke,Le){_isString(_e)&&(_e=toArray(_e)[0]);var Fe=_getCache(_e||{}).get,Ve=ke?_passThrough:_numericIfPossible;return ke==="native"&&(ke=""),_e&&(Ae?Ve((_plugins[Ae]&&_plugins[Ae].get||Fe)(_e,Ae,ke,Le)):function(Ie,je,Ke){return Ve((_plugins[Ie]&&_plugins[Ie].get||Fe)(_e,Ie,je,Ke))})},quickSetter:function De(_e,Ae,ke){if(_e=toArray(_e),_e.length>1){var Le=_e.map(function($e){return gsap.quickSetter($e,Ae,ke)}),Fe=Le.length;return function($e){for(var qe=Fe;qe--;)Le[qe]($e)}}_e=_e[0]||{};var Ve=_plugins[Ae],Ie=_getCache(_e),je=Ie.harness&&(Ie.harness.aliases||{})[Ae]||Ae,Ke=Ve?function($e){var qe=new Ve;_quickTween._pt=0,qe.init(_e,ke?$e+ke:$e,_quickTween,0,[_e]),qe.render(1,qe),_quickTween._pt&&_renderPropTweens(1,_quickTween)}:Ie.set(_e,je);return Ve?Ke:function($e){return Ke(_e,je,ke?$e+ke:$e,Ie,1)}},quickTo:function De(_e,Ae,ke){var Le,Fe=gsap.to(_e,_setDefaults((Le={},Le[Ae]="+=0.1",Le.paused=!0,Le.stagger=0,Le),ke||{})),Ve=function(je,Ke,$e){return Fe.resetTo(Ae,je,Ke,$e)};return Ve.tween=Fe,Ve},isTweening:function De(_e){return _globalTimeline.getTweensOf(_e,!0).length>0},defaults:function De(_e){return _e&&_e.ease&&(_e.ease=_parseEase(_e.ease,_defaults.ease)),_mergeDeep(_defaults,_e||{})},config:function De(_e){return _mergeDeep(_config,_e||{})},registerEffect:function De(_e){var Ae=_e.name,ke=_e.effect,Le=_e.plugins,Fe=_e.defaults,Ve=_e.extendTimeline;(Le||"").split(",").forEach(function(Ie){return Ie&&!_plugins[Ie]&&!_globals[Ie]&&_warn(Ae+" effect requires "+Ie+" plugin.")}),_effects[Ae]=function(Ie,je,Ke){return ke(toArray(Ie),_setDefaults(je||{},Fe),Ke)},Ve&&(Timeline.prototype[Ae]=function(Ie,je,Ke){return this.add(_effects[Ae](Ie,_isObject(je)?je:(Ke=je)&&{},this),Ke)})},registerEase:function De(_e,Ae){_easeMap[_e]=_parseEase(Ae)},parseEase:function De(_e,Ae){return arguments.length?_parseEase(_e,Ae):_easeMap},getById:function De(_e){return _globalTimeline.getById(_e)},exportRoot:function De(_e,Ae){_e===void 0&&(_e={});var ke=new Timeline(_e),Le,Fe;for(ke.smoothChildTiming=_isNotFalse(_e.smoothChildTiming),_globalTimeline.remove(ke),ke._dp=0,ke._time=ke._tTime=_globalTimeline._time,Le=_globalTimeline._first;Le;)Fe=Le._next,(Ae||!(!Le._dur&&Le instanceof Tween&&Le.vars.onComplete===Le._targets[0]))&&_addToTimeline(ke,Le,Le._start-Le._delay),Le=Fe;return _addToTimeline(_globalTimeline,ke,0),ke},context:function De(_e,Ae){return _e?new Context(_e,Ae):_context},matchMedia:function De(_e){return new MatchMedia(_e)},matchMediaRefresh:function De(){return _media.forEach(function(_e){var Ae=_e.conditions,ke,Le;for(Le in Ae)Ae[Le]&&(Ae[Le]=!1,ke=1);ke&&_e.revert()})||_onMediaChange()},addEventListener:function De(_e,Ae){var ke=_listeners[_e]||(_listeners[_e]=[]);~ke.indexOf(Ae)||ke.push(Ae)},removeEventListener:function De(_e,Ae){var ke=_listeners[_e],Le=ke&&ke.indexOf(Ae);Le>=0&&ke.splice(Le,1)},utils:{wrap,wrapYoyo,distribute,random,snap,normalize,getUnit,clamp:clamp$1,splitColor,toArray,selector,mapRange,pipe,unitize,interpolate,shuffle},install:_install,effects:_effects,ticker:_ticker,updateRoot:Timeline.updateRoot,plugins:_plugins,globalTimeline:_globalTimeline,core:{PropTween,globals:_addGlobal,Tween,Timeline,Animation,getCache:_getCache,_removeLinkedListItem,reverting:function De(){return _reverting$1},context:function De(_e){return _e&&_context&&(_context.data.push(_e),_e._ctx=_context),_context},suppressOverwrites:function De(_e){return _suppressOverwrites=_e}}};_forEachName("to,from,fromTo,delayedCall,set,killTweensOf",function(De){return _gsap[De]=Tween[De]});_ticker.add(Timeline.updateRoot);_quickTween=_gsap.to({},{duration:0});var _getPluginPropTween=function De(_e,Ae){for(var ke=_e._pt;ke&&ke.p!==Ae&&ke.op!==Ae&&ke.fp!==Ae;)ke=ke._next;return ke},_addModifiers=function De(_e,Ae){var ke=_e._targets,Le,Fe,Ve;for(Le in Ae)for(Fe=ke.length;Fe--;)Ve=_e._ptLookup[Fe][Le],Ve&&(Ve=Ve.d)&&(Ve._pt&&(Ve=_getPluginPropTween(Ve,Le)),Ve&&Ve.modifier&&Ve.modifier(Ae[Le],_e,ke[Fe],Le))},_buildModifierPlugin=function De(_e,Ae){return{name:_e,headless:1,rawVars:1,init:function(Le,Fe,Ve){Ve._onInit=function(Ie){var je,Ke;if(_isString(Fe)&&(je={},_forEachName(Fe,function($e){return je[$e]=1}),Fe=je),Ae){je={};for(Ke in Fe)je[Ke]=Ae(Fe[Ke]);Fe=je}_addModifiers(Ie,Fe)}}}},gsap=_gsap.registerPlugin({name:"attr",init:function De(_e,Ae,ke,Le,Fe){var Ve,Ie,je;this.tween=ke;for(Ve in Ae)je=_e.getAttribute(Ve)||"",Ie=this.add(_e,"setAttribute",(je||0)+"",Ae[Ve],Le,Fe,0,0,Ve),Ie.op=Ve,Ie.b=je,this._props.push(Ve)},render:function De(_e,Ae){for(var ke=Ae._pt;ke;)_reverting$1?ke.set(ke.t,ke.p,ke.b,ke):ke.r(_e,ke.d),ke=ke._next}},{name:"endArray",headless:1,init:function De(_e,Ae){for(var ke=Ae.length;ke--;)this.add(_e,ke,_e[ke]||0,Ae[ke],0,0,0,0,0,1)}},_buildModifierPlugin("roundProps",_roundModifier),_buildModifierPlugin("modifiers"),_buildModifierPlugin("snap",snap))||_gsap;Tween.version=Timeline.version=gsap.version="3.13.0";_coreReady=1;_windowExists$1()&&_wake();_easeMap.Power0;_easeMap.Power1;_easeMap.Power2;_easeMap.Power3;_easeMap.Power4;_easeMap.Linear;_easeMap.Quad;_easeMap.Cubic;_easeMap.Quart;_easeMap.Quint;_easeMap.Strong;_easeMap.Elastic;_easeMap.Back;_easeMap.SteppedEase;_easeMap.Bounce;_easeMap.Sine;_easeMap.Expo;_easeMap.Circ;/*!
201 * CSSPlugin 3.13.0
202 * https://gsap.com
203 *
204 * Copyright 2008-2025, GreenSock. All rights reserved.
205 * Subject to the terms at https://gsap.com/standard-license
206 * @author: Jack Doyle, [email protected]
207*/var _win,_doc,_docElement,_pluginInitted,_tempDiv,_recentSetterPlugin,_reverting,_windowExists=function De(){return typeof window<"u"},_transformProps={},_RAD2DEG=180/Math.PI,_DEG2RAD=Math.PI/180,_atan2=Math.atan2,_bigNum=1e8,_capsExp=/([A-Z])/g,_horizontalExp=/(left|right|width|margin|padding|x)/i,_complexExp=/[\s,\(]\S/,_propertyAliases={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_renderCSSProp=function De(_e,Ae){return Ae.set(Ae.t,Ae.p,Math.round((Ae.s+Ae.c*_e)*1e4)/1e4+Ae.u,Ae)},_renderPropWithEnd=function De(_e,Ae){return Ae.set(Ae.t,Ae.p,_e===1?Ae.e:Math.round((Ae.s+Ae.c*_e)*1e4)/1e4+Ae.u,Ae)},_renderCSSPropWithBeginning=function De(_e,Ae){return Ae.set(Ae.t,Ae.p,_e?Math.round((Ae.s+Ae.c*_e)*1e4)/1e4+Ae.u:Ae.b,Ae)},_renderRoundedCSSProp=function De(_e,Ae){var ke=Ae.s+Ae.c*_e;Ae.set(Ae.t,Ae.p,~~(ke+(ke<0?-.5:.5))+Ae.u,Ae)},_renderNonTweeningValue=function De(_e,Ae){return Ae.set(Ae.t,Ae.p,_e?Ae.e:Ae.b,Ae)},_renderNonTweeningValueOnlyAtEnd=function De(_e,Ae){return Ae.set(Ae.t,Ae.p,_e!==1?Ae.b:Ae.e,Ae)},_setterCSSStyle=function De(_e,Ae,ke){return _e.style[Ae]=ke},_setterCSSProp=function De(_e,Ae,ke){return _e.style.setProperty(Ae,ke)},_setterTransform=function De(_e,Ae,ke){return _e._gsap[Ae]=ke},_setterScale=function De(_e,Ae,ke){return _e._gsap.scaleX=_e._gsap.scaleY=ke},_setterScaleWithRender=function De(_e,Ae,ke,Le,Fe){var Ve=_e._gsap;Ve.scaleX=Ve.scaleY=ke,Ve.renderTransform(Fe,Ve)},_setterTransformWithRender=function De(_e,Ae,ke,Le,Fe){var Ve=_e._gsap;Ve[Ae]=ke,Ve.renderTransform(Fe,Ve)},_transformProp="transform",_transformOriginProp=_transformProp+"Origin",_saveStyle=function De(_e,Ae){var ke=this,Le=this.target,Fe=Le.style,Ve=Le._gsap;if(_e in _transformProps&&Fe){if(this.tfm=this.tfm||{},_e!=="transform")_e=_propertyAliases[_e]||_e,~_e.indexOf(",")?_e.split(",").forEach(function(Ie){return ke.tfm[Ie]=_get(Le,Ie)}):this.tfm[_e]=Ve.x?Ve[_e]:_get(Le,_e),_e===_transformOriginProp&&(this.tfm.zOrigin=Ve.zOrigin);else return _propertyAliases.transform.split(",").forEach(function(Ie){return De.call(ke,Ie,Ae)});if(this.props.indexOf(_transformProp)>=0)return;Ve.svg&&(this.svgo=Le.getAttribute("data-svg-origin"),this.props.push(_transformOriginProp,Ae,"")),_e=_transformProp}(Fe||Ae)&&this.props.push(_e,Ae,Fe[_e])},_removeIndependentTransforms=function De(_e){_e.translate&&(_e.removeProperty("translate"),_e.removeProperty("scale"),_e.removeProperty("rotate"))},_revertStyle=function De(){var _e=this.props,Ae=this.target,ke=Ae.style,Le=Ae._gsap,Fe,Ve;for(Fe=0;Fe<_e.length;Fe+=3)_e[Fe+1]?_e[Fe+1]===2?Ae[_e[Fe]](_e[Fe+2]):Ae[_e[Fe]]=_e[Fe+2]:_e[Fe+2]?ke[_e[Fe]]=_e[Fe+2]:ke.removeProperty(_e[Fe].substr(0,2)==="--"?_e[Fe]:_e[Fe].replace(_capsExp,"-$1").toLowerCase());if(this.tfm){for(Ve in this.tfm)Le[Ve]=this.tfm[Ve];Le.svg&&(Le.renderTransform(),Ae.setAttribute("data-svg-origin",this.svgo||"")),Fe=_reverting(),(!Fe||!Fe.isStart)&&!ke[_transformProp]&&(_removeIndependentTransforms(ke),Le.zOrigin&&ke[_transformOriginProp]&&(ke[_transformOriginProp]+=" "+Le.zOrigin+"px",Le.zOrigin=0,Le.renderTransform()),Le.uncache=1)}},_getStyleSaver=function De(_e,Ae){var ke={target:_e,props:[],revert:_revertStyle,save:_saveStyle};return _e._gsap||gsap.core.getCache(_e),Ae&&_e.style&&_e.nodeType&&Ae.split(",").forEach(function(Le){return ke.save(Le)}),ke},_supports3D,_createElement=function De(_e,Ae){var ke=_doc.createElementNS?_doc.createElementNS((Ae||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),_e):_doc.createElement(_e);return ke&&ke.style?ke:_doc.createElement(_e)},_getComputedProperty=function De(_e,Ae,ke){var Le=getComputedStyle(_e);return Le[Ae]||Le.getPropertyValue(Ae.replace(_capsExp,"-$1").toLowerCase())||Le.getPropertyValue(Ae)||!ke&&De(_e,_checkPropPrefix(Ae)||Ae,1)||""},_prefixes="O,Moz,ms,Ms,Webkit".split(","),_checkPropPrefix=function De(_e,Ae,ke){var Le=Ae||_tempDiv,Fe=Le.style,Ve=5;if(_e in Fe&&!ke)return _e;for(_e=_e.charAt(0).toUpperCase()+_e.substr(1);Ve--&&!(_prefixes[Ve]+_e in Fe););return Ve<0?null:(Ve===3?"ms":Ve>=0?_prefixes[Ve]:"")+_e},_initCore=function De(){_windowExists()&&window.document&&(_win=window,_doc=_win.document,_docElement=_doc.documentElement,_tempDiv=_createElement("div")||{style:{}},_createElement("div"),_transformProp=_checkPropPrefix(_transformProp),_transformOriginProp=_transformProp+"Origin",_tempDiv.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",_supports3D=!!_checkPropPrefix("perspective"),_reverting=gsap.core.reverting,_pluginInitted=1)},_getReparentedCloneBBox=function De(_e){var Ae=_e.ownerSVGElement,ke=_createElement("svg",Ae&&Ae.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),Le=_e.cloneNode(!0),Fe;Le.style.display="block",ke.appendChild(Le),_docElement.appendChild(ke);try{Fe=Le.getBBox()}catch{}return ke.removeChild(Le),_docElement.removeChild(ke),Fe},_getAttributeFallbacks=function De(_e,Ae){for(var ke=Ae.length;ke--;)if(_e.hasAttribute(Ae[ke]))return _e.getAttribute(Ae[ke])},_getBBox=function De(_e){var Ae,ke;try{Ae=_e.getBBox()}catch{Ae=_getReparentedCloneBBox(_e),ke=1}return Ae&&(Ae.width||Ae.height)||ke||(Ae=_getReparentedCloneBBox(_e)),Ae&&!Ae.width&&!Ae.x&&!Ae.y?{x:+_getAttributeFallbacks(_e,["x","cx","x1"])||0,y:+_getAttributeFallbacks(_e,["y","cy","y1"])||0,width:0,height:0}:Ae},_isSVG=function De(_e){return!!(_e.getCTM&&(!_e.parentNode||_e.ownerSVGElement)&&_getBBox(_e))},_removeProperty=function De(_e,Ae){if(Ae){var ke=_e.style,Le;Ae in _transformProps&&Ae!==_transformOriginProp&&(Ae=_transformProp),ke.removeProperty?(Le=Ae.substr(0,2),(Le==="ms"||Ae.substr(0,6)==="webkit")&&(Ae="-"+Ae),ke.removeProperty(Le==="--"?Ae:Ae.replace(_capsExp,"-$1").toLowerCase())):ke.removeAttribute(Ae)}},_addNonTweeningPT=function De(_e,Ae,ke,Le,Fe,Ve){var Ie=new PropTween(_e._pt,Ae,ke,0,1,Ve?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue);return _e._pt=Ie,Ie.b=Le,Ie.e=Fe,_e._props.push(ke),Ie},_nonConvertibleUnits={deg:1,rad:1,turn:1},_nonStandardLayouts={grid:1,flex:1},_convertToUnit=function De(_e,Ae,ke,Le){var Fe=parseFloat(ke)||0,Ve=(ke+"").trim().substr((Fe+"").length)||"px",Ie=_tempDiv.style,je=_horizontalExp.test(Ae),Ke=_e.tagName.toLowerCase()==="svg",$e=(Ke?"client":"offset")+(je?"Width":"Height"),qe=100,ci=Le==="px",gi=Le==="%",Ai,oi,ii,hi;if(Le===Ve||!Fe||_nonConvertibleUnits[Le]||_nonConvertibleUnits[Ve])return Fe;if(Ve!=="px"&&!ci&&(Fe=De(_e,Ae,ke,"px")),hi=_e.getCTM&&_isSVG(_e),(gi||Ve==="%")&&(_transformProps[Ae]||~Ae.indexOf("adius")))return Ai=hi?_e.getBBox()[je?"width":"height"]:_e[$e],_round(gi?Fe/Ai*qe:Fe/100*Ai);if(Ie[je?"width":"height"]=qe+(ci?Ve:Le),oi=Le!=="rem"&&~Ae.indexOf("adius")||Le==="em"&&_e.appendChild&&!Ke?_e:_e.parentNode,hi&&(oi=(_e.ownerSVGElement||{}).parentNode),(!oi||oi===_doc||!oi.appendChild)&&(oi=_doc.body),ii=oi._gsap,ii&&gi&&ii.width&&je&&ii.time===_ticker.time&&!ii.uncache)return _round(Fe/ii.width*qe);if(gi&&(Ae==="height"||Ae==="width")){var Ei=_e.style[Ae];_e.style[Ae]=qe+Le,Ai=_e[$e],Ei?_e.style[Ae]=Ei:_removeProperty(_e,Ae)}else(gi||Ve==="%")&&!_nonStandardLayouts[_getComputedProperty(oi,"display")]&&(Ie.position=_getComputedProperty(_e,"position")),oi===_e&&(Ie.position="static"),oi.appendChild(_tempDiv),Ai=_tempDiv[$e],oi.removeChild(_tempDiv),Ie.position="absolute";return je&&gi&&(ii=_getCache(oi),ii.time=_ticker.time,ii.width=oi[$e]),_round(ci?Ai*Fe/qe:Ai&&Fe?qe/Ai*Fe:0)},_get=function De(_e,Ae,ke,Le){var Fe;return _pluginInitted||_initCore(),Ae in _propertyAliases&&Ae!=="transform"&&(Ae=_propertyAliases[Ae],~Ae.indexOf(",")&&(Ae=Ae.split(",")[0])),_transformProps[Ae]&&Ae!=="transform"?(Fe=_parseTransform(_e,Le),Fe=Ae!=="transformOrigin"?Fe[Ae]:Fe.svg?Fe.origin:_firstTwoOnly(_getComputedProperty(_e,_transformOriginProp))+" "+Fe.zOrigin+"px"):(Fe=_e.style[Ae],(!Fe||Fe==="auto"||Le||~(Fe+"").indexOf("calc("))&&(Fe=_specialProps[Ae]&&_specialProps[Ae](_e,Ae,ke)||_getComputedProperty(_e,Ae)||_getProperty(_e,Ae)||(Ae==="opacity"?1:0))),ke&&!~(Fe+"").trim().indexOf(" ")?_convertToUnit(_e,Ae,Fe,ke)+ke:Fe},_tweenComplexCSSString=function De(_e,Ae,ke,Le){if(!ke||ke==="none"){var Fe=_checkPropPrefix(Ae,_e,1),Ve=Fe&&_getComputedProperty(_e,Fe,1);Ve&&Ve!==ke?(Ae=Fe,ke=Ve):Ae==="borderColor"&&(ke=_getComputedProperty(_e,"borderTopColor"))}var Ie=new PropTween(this._pt,_e.style,Ae,0,1,_renderComplexString),je=0,Ke=0,$e,qe,ci,gi,Ai,oi,ii,hi,Ei,Li,Di,zi;if(Ie.b=ke,Ie.e=Le,ke+="",Le+="",Le.substring(0,6)==="var(--"&&(Le=_getComputedProperty(_e,Le.substring(4,Le.indexOf(")")))),Le==="auto"&&(oi=_e.style[Ae],_e.style[Ae]=Le,Le=_getComputedProperty(_e,Ae)||Le,oi?_e.style[Ae]=oi:_removeProperty(_e,Ae)),$e=[ke,Le],_colorStringFilter($e),ke=$e[0],Le=$e[1],ci=ke.match(_numWithUnitExp)||[],zi=Le.match(_numWithUnitExp)||[],zi.length){for(;qe=_numWithUnitExp.exec(Le);)ii=qe[0],Ei=Le.substring(je,qe.index),Ai?Ai=(Ai+1)%5:(Ei.substr(-5)==="rgba("||Ei.substr(-5)==="hsla(")&&(Ai=1),ii!==(oi=ci[Ke++]||"")&&(gi=parseFloat(oi)||0,Di=oi.substr((gi+"").length),ii.charAt(1)==="="&&(ii=_parseRelative(gi,ii)+Di),hi=parseFloat(ii),Li=ii.substr((hi+"").length),je=_numWithUnitExp.lastIndex-Li.length,Li||(Li=Li||_config.units[Ae]||Di,je===Le.length&&(Le+=Li,Ie.e+=Li)),Di!==Li&&(gi=_convertToUnit(_e,Ae,oi,Li)||0),Ie._pt={_next:Ie._pt,p:Ei||Ke===1?Ei:",",s:gi,c:hi-gi,m:Ai&&Ai<4||Ae==="zIndex"?Math.round:0});Ie.c=je<Le.length?Le.substring(je,Le.length):""}else Ie.r=Ae==="display"&&Le==="none"?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue;return _relExp.test(Le)&&(Ie.e=0),this._pt=Ie,Ie},_keywordToPercent={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},_convertKeywordsToPercentages=function De(_e){var Ae=_e.split(" "),ke=Ae[0],Le=Ae[1]||"50%";return(ke==="top"||ke==="bottom"||Le==="left"||Le==="right")&&(_e=ke,ke=Le,Le=_e),Ae[0]=_keywordToPercent[ke]||ke,Ae[1]=_keywordToPercent[Le]||Le,Ae.join(" ")},_renderClearProps=function De(_e,Ae){if(Ae.tween&&Ae.tween._time===Ae.tween._dur){var ke=Ae.t,Le=ke.style,Fe=Ae.u,Ve=ke._gsap,Ie,je,Ke;if(Fe==="all"||Fe===!0)Le.cssText="",je=1;else for(Fe=Fe.split(","),Ke=Fe.length;--Ke>-1;)Ie=Fe[Ke],_transformProps[Ie]&&(je=1,Ie=Ie==="transformOrigin"?_transformOriginProp:_transformProp),_removeProperty(ke,Ie);je&&(_removeProperty(ke,_transformProp),Ve&&(Ve.svg&&ke.removeAttribute("transform"),Le.scale=Le.rotate=Le.translate="none",_parseTransform(ke,1),Ve.uncache=1,_removeIndependentTransforms(Le)))}},_specialProps={clearProps:function De(_e,Ae,ke,Le,Fe){if(Fe.data!=="isFromStart"){var Ve=_e._pt=new PropTween(_e._pt,Ae,ke,0,0,_renderClearProps);return Ve.u=Le,Ve.pr=-10,Ve.tween=Fe,_e._props.push(ke),1}}},_identity2DMatrix=[1,0,0,1,0,0],_rotationalProperties={},_isNullTransform=function De(_e){return _e==="matrix(1, 0, 0, 1, 0, 0)"||_e==="none"||!_e},_getComputedTransformMatrixAsArray=function De(_e){var Ae=_getComputedProperty(_e,_transformProp);return _isNullTransform(Ae)?_identity2DMatrix:Ae.substr(7).match(_numExp).map(_round)},_getMatrix=function De(_e,Ae){var ke=_e._gsap||_getCache(_e),Le=_e.style,Fe=_getComputedTransformMatrixAsArray(_e),Ve,Ie,je,Ke;return ke.svg&&_e.getAttribute("transform")?(je=_e.transform.baseVal.consolidate().matrix,Fe=[je.a,je.b,je.c,je.d,je.e,je.f],Fe.join(",")==="1,0,0,1,0,0"?_identity2DMatrix:Fe):(Fe===_identity2DMatrix&&!_e.offsetParent&&_e!==_docElement&&!ke.svg&&(je=Le.display,Le.display="block",Ve=_e.parentNode,(!Ve||!_e.offsetParent&&!_e.getBoundingClientRect().width)&&(Ke=1,Ie=_e.nextElementSibling,_docElement.appendChild(_e)),Fe=_getComputedTransformMatrixAsArray(_e),je?Le.display=je
vendor: 9,518 bytes, line 207
207:_removeProperty(_e,"display"),Ke&&(Ie?Ve.insertBefore(_e,Ie):Ve?Ve.appendChild(_e):_docElement.removeChild(_e))),Ae&&Fe.length>6?[Fe[0],Fe[1],Fe[4],Fe[5],Fe[12],Fe[13]]:Fe)},_applySVGOrigin=function De(_e,Ae,ke,Le,Fe,Ve){var Ie=_e._gsap,je=Fe||_getMatrix(_e,!0),Ke=Ie.xOrigin||0,$e=Ie.yOrigin||0,qe=Ie.xOffset||0,ci=Ie.yOffset||0,gi=je[0],Ai=je[1],oi=je[2],ii=je[3],hi=je[4],Ei=je[5],Li=Ae.split(" "),Di=parseFloat(Li[0])||0,zi=parseFloat(Li[1])||0,an,Je,fi,Gi;ke?je!==_identity2DMatrix&&(Je=gi*ii-Ai*oi)&&(fi=Di*(ii/Je)+zi*(-oi/Je)+(oi*Ei-ii*hi)/Je,Gi=Di*(-Ai/Je)+zi*(gi/Je)-(gi*Ei-Ai*hi)/Je,Di=fi,zi=Gi):(an=_getBBox(_e),Di=an.x+(~Li[0].indexOf("%")?Di/100*an.width:Di),zi=an.y+(~(Li[1]||Li[0]).indexOf("%")?zi/100*an.height:zi)),Le||Le!==!1&&Ie.smooth?(hi=Di-Ke,Ei=zi-$e,Ie.xOffset=qe+(hi*gi+Ei*oi)-hi,Ie.yOffset=ci+(hi*Ai+Ei*ii)-Ei):Ie.xOffset=Ie.yOffset=0,Ie.xOrigin=Di,Ie.yOrigin=zi,Ie.smooth=!!Le,Ie.origin=Ae,Ie.originIsAbsolute=!!ke,_e.style[_transformOriginProp]="0px 0px",Ve&&(_addNonTweeningPT(Ve,Ie,"xOrigin",Ke,Di),_addNonTweeningPT(Ve,Ie,"yOrigin",$e,zi),_addNonTweeningPT(Ve,Ie,"xOffset",qe,Ie.xOffset),_addNonTweeningPT(Ve,Ie,"yOffset",ci,Ie.yOffset)),_e.setAttribute("data-svg-origin",Di+" "+zi)},_parseTransform=function De(_e,Ae){var ke=_e._gsap||new GSCache(_e);if("x"in ke&&!Ae&&!ke.uncache)return ke;var Le=_e.style,Fe=ke.scaleX<0,Ve="px",Ie="deg",je=getComputedStyle(_e),Ke=_getComputedProperty(_e,_transformOriginProp)||"0",$e,qe,ci,gi,Ai,oi,ii,hi,Ei,Li,Di,zi,an,Je,fi,Gi,fn,cn,Tn,Sn,Cn,tr,xr,er,Hn,Er,os,wi,Zi,Qi,Hi,vn;return $e=qe=ci=oi=ii=hi=Ei=Li=Di=0,gi=Ai=1,ke.svg=!!(_e.getCTM&&_isSVG(_e)),je.translate&&((je.translate!=="none"||je.scale!=="none"||je.rotate!=="none")&&(Le[_transformProp]=(je.translate!=="none"?"translate3d("+(je.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(je.rotate!=="none"?"rotate("+je.rotate+") ":"")+(je.scale!=="none"?"scale("+je.scale.split(" ").join(",")+") ":"")+(je[_transformProp]!=="none"?je[_transformProp]:"")),Le.scale=Le.rotate=Le.translate="none"),Je=_getMatrix(_e,ke.svg),ke.svg&&(ke.uncache?(Hn=_e.getBBox(),Ke=ke.xOrigin-Hn.x+"px "+(ke.yOrigin-Hn.y)+"px",er=""):er=!Ae&&_e.getAttribute("data-svg-origin"),_applySVGOrigin(_e,er||Ke,!!er||ke.originIsAbsolute,ke.smooth!==!1,Je)),zi=ke.xOrigin||0,an=ke.yOrigin||0,Je!==_identity2DMatrix&&(cn=Je[0],Tn=Je[1],Sn=Je[2],Cn=Je[3],$e=tr=Je[4],qe=xr=Je[5],Je.length===6?(gi=Math.sqrt(cn*cn+Tn*Tn),Ai=Math.sqrt(Cn*Cn+Sn*Sn),oi=cn||Tn?_atan2(Tn,cn)*_RAD2DEG:0,Ei=Sn||Cn?_atan2(Sn,Cn)*_RAD2DEG+oi:0,Ei&&(Ai*=Math.abs(Math.cos(Ei*_DEG2RAD))),ke.svg&&($e-=zi-(zi*cn+an*Sn),qe-=an-(zi*Tn+an*Cn))):(vn=Je[6],Qi=Je[7],os=Je[8],wi=Je[9],Zi=Je[10],Hi=Je[11],$e=Je[12],qe=Je[13],ci=Je[14],fi=_atan2(vn,Zi),ii=fi*_RAD2DEG,fi&&(Gi=Math.cos(-fi),fn=Math.sin(-fi),er=tr*Gi+os*fn,Hn=xr*Gi+wi*fn,Er=vn*Gi+Zi*fn,os=tr*-fn+os*Gi,wi=xr*-fn+wi*Gi,Zi=vn*-fn+Zi*Gi,Hi=Qi*-fn+Hi*Gi,tr=er,xr=Hn,vn=Er),fi=_atan2(-Sn,Zi),hi=fi*_RAD2DEG,fi&&(Gi=Math.cos(-fi),fn=Math.sin(-fi),er=cn*Gi-os*fn,Hn=Tn*Gi-wi*fn,Er=Sn*Gi-Zi*fn,Hi=Cn*fn+Hi*Gi,cn=er,Tn=Hn,Sn=Er),fi=_atan2(Tn,cn),oi=fi*_RAD2DEG,fi&&(Gi=Math.cos(fi),fn=Math.sin(fi),er=cn*Gi+Tn*fn,Hn=tr*Gi+xr*fn,Tn=Tn*Gi-cn*fn,xr=xr*Gi-tr*fn,cn=er,tr=Hn),ii&&Math.abs(ii)+Math.abs(oi)>359.9&&(ii=oi=0,hi=180-hi),gi=_round(Math.sqrt(cn*cn+Tn*Tn+Sn*Sn)),Ai=_round(Math.sqrt(xr*xr+vn*vn)),fi=_atan2(tr,xr),Ei=Math.abs(fi)>2e-4?fi*_RAD2DEG:0,Di=Hi?1/(Hi<0?-Hi:Hi):0),ke.svg&&(er=_e.getAttribute("transform"),ke.forceCSS=_e.setAttribute("transform","")||!_isNullTransform(_getComputedProperty(_e,_transformProp)),er&&_e.setAttribute("transform",er))),Math.abs(Ei)>90&&Math.abs(Ei)<270&&(Fe?(gi*=-1,Ei+=oi<=0?180:-180,oi+=oi<=0?180:-180):(Ai*=-1,Ei+=Ei<=0?180:-180)),Ae=Ae||ke.uncache,ke.x=$e-((ke.xPercent=$e&&(!Ae&&ke.xPercent||(Math.round(_e.offsetWidth/2)===Math.round(-$e)?-50:0)))?_e.offsetWidth*ke.xPercent/100:0)+Ve,ke.y=qe-((ke.yPercent=qe&&(!Ae&&ke.yPercent||(Math.round(_e.offsetHeight/2)===Math.round(-qe)?-50:0)))?_e.offsetHeight*ke.yPercent/100:0)+Ve,ke.z=ci+Ve,ke.scaleX=_round(gi),ke.scaleY=_round(Ai),ke.rotation=_round(oi)+Ie,ke.rotationX=_round(ii)+Ie,ke.rotationY=_round(hi)+Ie,ke.skewX=Ei+Ie,ke.skewY=Li+Ie,ke.transformPerspective=Di+Ve,(ke.zOrigin=parseFloat(Ke.split(" ")[2])||!Ae&&ke.zOrigin||0)&&(Le[_transformOriginProp]=_firstTwoOnly(Ke)),ke.xOffset=ke.yOffset=0,ke.force3D=_config.force3D,ke.renderTransform=ke.svg?_renderSVGTransforms:_supports3D?_renderCSSTransforms:_renderNon3DTransforms,ke.uncache=0,ke},_firstTwoOnly=function De(_e){return(_e=_e.split(" "))[0]+" "+_e[1]},_addPxTranslate=function De(_e,Ae,ke){var Le=getUnit(Ae);return _round(parseFloat(Ae)+parseFloat(_convertToUnit(_e,"x",ke+"px",Le)))+Le},_renderNon3DTransforms=function De(_e,Ae){Ae.z="0px",Ae.rotationY=Ae.rotationX="0deg",Ae.force3D=0,_renderCSSTransforms(_e,Ae)},_zeroDeg="0deg",_zeroPx="0px",_endParenthesis=") ",_renderCSSTransforms=function De(_e,Ae){var ke=Ae||this,Le=ke.xPercent,Fe=ke.yPercent,Ve=ke.x,Ie=ke.y,je=ke.z,Ke=ke.rotation,$e=ke.rotationY,qe=ke.rotationX,ci=ke.skewX,gi=ke.skewY,Ai=ke.scaleX,oi=ke.scaleY,ii=ke.transformPerspective,hi=ke.force3D,Ei=ke.target,Li=ke.zOrigin,Di="",zi=hi==="auto"&&_e&&_e!==1||hi===!0;if(Li&&(qe!==_zeroDeg||$e!==_zeroDeg)){var an=parseFloat($e)*_DEG2RAD,Je=Math.sin(an),fi=Math.cos(an),Gi;an=parseFloat(qe)*_DEG2RAD,Gi=Math.cos(an),Ve=_addPxTranslate(Ei,Ve,Je*Gi*-Li),Ie=_addPxTranslate(Ei,Ie,-Math.sin(an)*-Li),je=_addPxTranslate(Ei,je,fi*Gi*-Li+Li)}ii!==_zeroPx&&(Di+="perspective("+ii+_endParenthesis),(Le||Fe)&&(Di+="translate("+Le+"%, "+Fe+"%) "),(zi||Ve!==_zeroPx||Ie!==_zeroPx||je!==_zeroPx)&&(Di+=je!==_zeroPx||zi?"translate3d("+Ve+", "+Ie+", "+je+") ":"translate("+Ve+", "+Ie+_endParenthesis),Ke!==_zeroDeg&&(Di+="rotate("+Ke+_endParenthesis),$e!==_zeroDeg&&(Di+="rotateY("+$e+_endParenthesis),qe!==_zeroDeg&&(Di+="rotateX("+qe+_endParenthesis),(ci!==_zeroDeg||gi!==_zeroDeg)&&(Di+="skew("+ci+", "+gi+_endParenthesis),(Ai!==1||oi!==1)&&(Di+="scale("+Ai+", "+oi+_endParenthesis),Ei.style[_transformProp]=Di||"translate(0, 0)"},_renderSVGTransforms=function De(_e,Ae){var ke=Ae||this,Le=ke.xPercent,Fe=ke.yPercent,Ve=ke.x,Ie=ke.y,je=ke.rotation,Ke=ke.skewX,$e=ke.skewY,qe=ke.scaleX,ci=ke.scaleY,gi=ke.target,Ai=ke.xOrigin,oi=ke.yOrigin,ii=ke.xOffset,hi=ke.yOffset,Ei=ke.forceCSS,Li=parseFloat(Ve),Di=parseFloat(Ie),zi,an,Je,fi,Gi;je=parseFloat(je),Ke=parseFloat(Ke),$e=parseFloat($e),$e&&($e=parseFloat($e),Ke+=$e,je+=$e),je||Ke?(je*=_DEG2RAD,Ke*=_DEG2RAD,zi=Math.cos(je)*qe,an=Math.sin(je)*qe,Je=Math.sin(je-Ke)*-ci,fi=Math.cos(je-Ke)*ci,Ke&&($e*=_DEG2RAD,Gi=Math.tan(Ke-$e),Gi=Math.sqrt(1+Gi*Gi),Je*=Gi,fi*=Gi,$e&&(Gi=Math.tan($e),Gi=Math.sqrt(1+Gi*Gi),zi*=Gi,an*=Gi)),zi=_round(zi),an=_round(an),Je=_round(Je),fi=_round(fi)):(zi=qe,fi=ci,an=Je=0),(Li&&!~(Ve+"").indexOf("px")||Di&&!~(Ie+"").indexOf("px"))&&(Li=_convertToUnit(gi,"x",Ve,"px"),Di=_convertToUnit(gi,"y",Ie,"px")),(Ai||oi||ii||hi)&&(Li=_round(Li+Ai-(Ai*zi+oi*Je)+ii),Di=_round(Di+oi-(Ai*an+oi*fi)+hi)),(Le||Fe)&&(Gi=gi.getBBox(),Li=_round(Li+Le/100*Gi.width),Di=_round(Di+Fe/100*Gi.height)),Gi="matrix("+zi+","+an+","+Je+","+fi+","+Li+","+Di+")",gi.setAttribute("transform",Gi),Ei&&(gi.style[_transformProp]=Gi)},_addRotationalPropTween=function De(_e,Ae,ke,Le,Fe){var Ve=360,Ie=_isString(Fe),je=parseFloat(Fe)*(Ie&&~Fe.indexOf("rad")?_RAD2DEG:1),Ke=je-Le,$e=Le+Ke+"deg",qe,ci;return Ie&&(qe=Fe.split("_")[1],qe==="short"&&(Ke%=Ve,Ke!==Ke%(Ve/2)&&(Ke+=Ke<0?Ve:-Ve)),qe==="cw"&&Ke<0?Ke=(Ke+Ve*_bigNum)%Ve-~~(Ke/Ve)*Ve:qe==="ccw"&&Ke>0&&(Ke=(Ke-Ve*_bigNum)%Ve-~~(Ke/Ve)*Ve)),_e._pt=ci=new PropTween(_e._pt,Ae,ke,Le,Ke,_renderPropWithEnd),ci.e=$e,ci.u="deg",_e._props.push(ke),ci},_assign=function De(_e,Ae){for(var ke in Ae)_e[ke]=Ae[ke];return _e},_addRawTransformPTs=function De(_e,Ae,ke){var Le=_assign({},ke._gsap),Fe="perspective,force3D,transformOrigin,svgOrigin",Ve=ke.style,Ie,je,Ke,$e,qe,ci,gi,Ai;Le.svg?(Ke=ke.getAttribute("transform"),ke.setAttribute("transform",""),Ve[_transformProp]=Ae,Ie=_parseTransform(ke,1),_removeProperty(ke,_transformProp),ke.setAttribute("transform",Ke)):(Ke=getComputedStyle(ke)[_transformProp],Ve[_transformProp]=Ae,Ie=_parseTransform(ke,1),Ve[_transformProp]=Ke);for(je in _transformProps)Ke=Le[je],$e=Ie[je],Ke!==$e&&Fe.indexOf(je)<0&&(gi=getUnit(Ke),Ai=getUnit($e),qe=gi!==Ai?_convertToUnit(ke,je,Ke,Ai):parseFloat(Ke),ci=parseFloat($e),_e._pt=new PropTween(_e._pt,Ie,je,qe,ci-qe,_renderCSSProp),_e._pt.u=Ai||0,_e._props.push(je));_assign(Ie,Le)};_forEachName("padding,margin,Width,Radius",function(De,_e){var Ae="Top",ke="Right",Le="Bottom",Fe="Left",Ve=(_e<3?[Ae,ke,Le,Fe]:[Ae+Fe,Ae+ke,Le+ke,Le+Fe]).map(function(Ie){return _e<2?De+Ie:"border"+Ie+De});_specialProps[_e>1?"border"+De:De]=function(Ie,je,Ke,$e,qe){var ci,gi;if(arguments.length<4)return ci=Ve.map(function(Ai){return _get(Ie,Ai,Ke)}),gi=ci.join(" "),gi.split(ci[0]).length===5?ci[0]:gi;ci=($e+"").split(" "),gi={},Ve.forEach(function(Ai,oi){return gi[Ai]=ci[oi]=ci[oi]||ci[(oi-1)/2|0]}),Ie.init(je,gi,qe)}});var CSSPlugin={name:"css",register:_initCore,targetTest:function De(_e){return _e.style&&_e.nodeType},init:function De(_e,Ae,ke,Le,Fe){var Ve=this._props,Ie=_e.style,je=ke.vars.startAt,Ke,$e,qe,ci,gi,Ai,oi,ii,hi,Ei,Li,Di,zi,an,Je,fi;_pluginInitted||_initCore(),this.styles=this.styles||_getStyleSaver(_e),fi=this.styles.props,this.tween=ke;for(oi in Ae)if(oi!=="autoRound"&&($e=Ae[oi],!(_plugins[oi]&&_checkPlugin(oi,Ae,ke,Le,_e,Fe)))){if(gi=typeof $e,Ai=_specialProps[oi],gi==="function"&&($e=$e.call(ke,Le,_e,Fe),gi=typeof $e),gi==="str
207ing"&&~$e.indexOf("random(")&&($e=_replaceRandom($e)),Ai)Ai(this,_e,oi,$e,ke)&&(Je=1);else if(oi.substr(0,2)==="--")Ke=(getComputedStyle(_e).getPropertyValue(oi)+"").trim(),$e+="",_colorExp.lastIndex=0,_colorExp.test(Ke)||(ii=getUnit(Ke),hi=getUnit($e)),hi?ii!==hi&&(Ke=_convertToUnit(_e,oi,Ke,hi)+hi):ii&&($e+=ii),this.add(Ie,"setProperty",Ke,$e,Le,Fe,0,0,oi),Ve.push(oi),fi.push(oi,0,Ie[oi]);else if(gi!=="undefined"){if(je&&oi in je?(Ke=typeof je[oi]=="function"?je[oi].call(ke,Le,_e,Fe):je[oi],_isString(Ke)&&~Ke.indexOf("random(")&&(Ke=_replaceRandom(Ke)),getUnit(Ke+"")||Ke==="auto"||(Ke+=_config.units[oi]||getUnit(_get(_e,oi))||""),(Ke+"").charAt(1)==="="&&(Ke=_get(_e,oi))):Ke=_get(_e,oi),ci=parseFloat(Ke),Ei=gi==="string"&&$e.charAt(1)==="="&&$e.substr(0,2),Ei&&($e=$e.substr(2)),qe=parseFloat($e),oi in _propertyAliases&&(oi==="autoAlpha"&&(ci===1&&_get(_e,"visibility")==="hidden"&&qe&&(ci=0),fi.push("visibility",0,Ie.visibility),_addNonTweeningPT(this,Ie,"visibility",ci?"inherit":"hidden",qe?"inherit":"hidden",!qe)),oi!=="scale"&&oi!=="transform"&&(oi=_propertyAliases[oi],~oi.indexOf(",")&&(oi=oi.split(",")[0]))),Li=oi in _transformProps,Li){if(this.styles.save(oi),gi==="string"&&$e.substring(0,6)==="var(--"&&($e=_getComputedProperty(_e,$e.substring(4,$e.indexOf(")"))),qe=parseFloat($e)),Di||(zi=_e._gsap,zi.renderTransform&&!Ae.parseTransform||_parseTransform(_e,Ae.parseTransform),an=Ae.smoothOrigin!==!1&&zi.smooth,Di=this._pt=new PropTween(this._pt,Ie,_transformProp,0,1,zi.renderTransform,zi,0,-1),Di.dep=1),oi==="scale")this._pt=new PropTween(this._pt,zi,"scaleY",zi.scaleY,(Ei?_parseRelative(zi.scaleY,Ei+qe):qe)-zi.scaleY||0,_renderCSSProp),this._pt.u=0,Ve.push("scaleY",oi),oi+="X";else if(oi==="transformOrigin"){fi.push(_transformOriginProp,0,Ie[_transformOriginProp]),$e=_convertKeywordsToPercentages($e),zi.svg?_applySVGOrigin(_e,$e,0,an,0,this):(hi=parseFloat($e.split(" ")[2])||0,hi!==zi.zOrigin&&_addNonTweeningPT(this,zi,"zOrigin",zi.zOrigin,hi),_addNonTweeningPT(this,Ie,oi,_firstTwoOnly(Ke),_firstTwoOnly($e)));continue}else if(oi==="svgOrigin"){_applySVGOrigin(_e,$e,1,an,0,this);continue}else if(oi in _rotationalProperties){_addRotationalPropTween(this,zi,oi,ci,Ei?_parseRelative(ci,Ei+$e):$e);continue}else if(oi==="smoothOrigin"){_addNonTweeningPT(this,zi,"smooth",zi.smooth,$e);continue}else if(oi==="force3D"){zi[oi]=$e;continue}else if(oi==="transform"){_addRawTransformPTs(this,$e,_e);continue}}else oi in Ie||(oi=_checkPropPrefix(oi)||oi);if(Li||(qe||qe===0)&&(ci||ci===0)&&!_complexExp.test($e)&&oi in Ie)ii=(Ke+"").substr((ci+"").length),qe||(qe=0),hi=getUnit($e)||(oi in _config.units?_config.units[oi]:ii),ii!==hi&&(ci=_convertToUnit(_e,oi,Ke,hi)),this._pt=new PropTween(this._pt,Li?zi:Ie,oi,ci,(Ei?_parseRelative(ci,Ei+qe):qe)-ci,!Li&&(hi==="px"||oi==="zIndex")&&Ae.autoRound!==!1?_renderRoundedCSSProp:_renderCSSProp),this._pt.u=hi||0,ii!==hi&&hi!=="%"&&(this._pt.b=Ke,this._pt.r=_renderCSSPropWithBeginning);else if(oi in Ie)_tweenComplexCSSString.call(this,_e,oi,Ke,Ei?Ei+$e:$e);else if(oi in _e)this.add(_e,oi,Ke||_e[oi],Ei?Ei+$e:$e,Le,Fe);else if(oi!=="parseTransform"){_missingPlugin(oi,$e);continue}Li||(oi in Ie?fi.push(oi,0,Ie[oi]):typeof _e[oi]=="function"?fi.push(oi,2,_e[oi]()):fi.push(oi,1,Ke||_e[oi])),Ve.push(oi)}}Je&&_sortPropTweensByPriority(this)},render:function De(_e,Ae){if(Ae.tween._time||!_reverting())for(var ke=Ae._pt;ke;)ke.r(_e,ke.d),ke=ke._next;else Ae.styles.revert()},get:_get,aliases:_propertyAliases,getSetter:function De(_e,Ae,ke){var Le=_propertyAliases[Ae];return Le&&Le.indexOf(",")<0&&(Ae=Le),Ae in _transformProps&&Ae!==_transformOriginProp&&(_e._gsap.x||_get(_e,"x"))?ke&&_recentSetterPlugin===ke?Ae==="scale"?_setterScale:_setterTransform:(_recentSetterPlugin=ke||{})&&(Ae==="scale"?_setterScaleWithRender:_setterTransformWithRender):_e.style&&!_isUndefined(_e.style[Ae])?_setterCSSStyle:~Ae.indexOf("-")?_setterCSSProp:_getSetter(_e,Ae)},core:{_removeProperty,_getMatrix}};gsap.utils.checkPrefix=_checkPropPrefix;gsap.core.getStyleSaver=_getStyleSaver;(function(De,_e,Ae,ke){var Le=_forEachName(De+","+_e+","+Ae,function(Fe){_transformProps[Fe]=1});_forEachName(_e,function(Fe){_config.units[Fe]="deg",_rotationalProperties[Fe]=1}),_propertyAliases[Le[13]]=De+","+_e,_forEachName(ke,function(Fe){var Ve=Fe.split(":");_propertyAliases[Ve[1]]=Le[Ve[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");_forEachName("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(De){_config.units[De]="px"});gsap.registerPlugin(CSSPlugin);var gsapWithCSS=gsap.registerPlugin(CSSPlugin)||gsap;gsapWithCSS.core.Tween;function hero(De={}){return{init:function(){let _e=$$2(this.$el).find("rs-module").revolutionInit(_$3.merge({duration:"12000ms",gridheight:"704,704,704,704",gridwidth:"1280,1024,768,640",keepBPHeight:!0,navigation:{arrows:{animDelay:"0",animSpeed:"300ms",enable:!0,hide_delay:"0",hide_delay_mobile:"0",hide_onleave:!0,hide_onmobile:!0,left:{h_offset:24},right:{h_offset:24},style:"uranus"},bullets:{animDelay:"0",animSpeed:"300ms",enable:!0,hide_delay:"0",hide_delay_mobile:"0",hide_onleave:!0,space:8,style:"uranus",tmp:'<span class="tp-bullet-inner"></span>',v_offset:24},onHoverStop:!1,touch:{touchenabled:!0},wheelCallDelay:1e3},progressBar:{horizontal:"right",radius:12,reset:"animate",size:"6px",style:"cw",vertical:"top"},responsiveLevels:"4096,1280,1024,768",sliderLayout:"fullwidth",spinner:"spinner0"},De));_e.bind("revolution.slide.onbeforeswap",function(Ae,ke){if(ke.currentslide[0]){let Le=ke.currentslide[0].querySelectorAll(".background .background__layer"),Fe=gsapWithCSS.timeline(),Ve=ke.currentslide[0].querySelectorAll(".content .content__layer"),Ie=gsapWithCSS.timeline();Fe.to(Le,{duration:.3,opacity:0}
207).set(Le,{x:-64}),Ie.to(Ve,{duration:.3,opacity:0}).set(Ve,{x:64})}}),_e.bind("revolution.slide.onafterswap",function(Ae,ke){let Le=ke.currentslide[0].querySelectorAll(".background .background__layer"),Fe=gsapWithCSS.timeline(),Ve=ke.currentslide[0].querySelectorAll(".content .content__layer"),Ie=gsapWithCSS.timeline();Fe.set(Le,{x:-64}).to(Le,{duration:1.3,ease:"power3.out",opacity:1,stagger:{each:.1,from:"end"},x:0}),Ie.set(Ve,{x:64}).to(Ve,{delay:.3,duration:1.3,ease:"back.out(2)",opacity:1,stagger:.1,x:0})})}}}const fancybox="",t$4=(De,_e=1e4)=>(De=parseFloat(De+"")||0,Math.round((De+Number.EPSILON)*_e)/_e),e$5=function(De){if(!(De&&De instanceof Element&&De.offsetParent))return!1;const _e=De.scrollHeight>De.clientHeight,Ae=window.getComputedStyle(De).overflowY,ke=Ae.indexOf("hidden")!==-1,Le=Ae.indexOf("visible")!==-1;return _e&&!ke&&!Le},i$3=function(De,_e=void 0){return!(!De||De===document.body||_e&&De===_e)&&(e$5(De)?De:i$3(De.parentElement,_e))},n$4=function(De){var _e=new DOMParser().parseFromString(De,"text/html").body;if(_e.childElementCount>1){for(var Ae=document.createElement("div");_e.firstChild;)Ae.appendChild(_e.firstChild);return Ae}return _e.firstChild},s$3=De=>`${De||""}`.split(" ").filter(_e=>!!_e),o$5=(De,_e,Ae)=>{De&&s$3(_e).forEach(ke=>{De.classList.toggle(ke,Ae||!1)})};let a$2=class{constructor(_e){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=_e,this.pageX=_e.pageX,this.pageY=_e.pageY,this.clientX=_e.clientX,this.clientY=_e.clientY,this.id=self.Touch&&_e instanceof Touch?_e.identifier:-1,this.time=Date.now()}};const r$3={passive:!1};let l$4=class{constructor(_e,{start:Ae=()=>!0,move:ke=()=>{},end:Le=()=>{}}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=_e,this.startCallback=Ae,this.moveCallback=ke,this.endCallback=Le;for(const Fe of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[Fe]=this[Fe].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,r$3),this.element.addEventListener("touchstart",this.onTouchStart,r$3),this.element.addEventListener("touchmove",this.onMove,r$3),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(_e){if(!_e.buttons||_e.button!==0)return;const Ae=new a$2(_e);this.currentPointers.some(ke=>ke.id===Ae.id)||this.triggerPointerStart(Ae,_e)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(_e){for(const Ae of Array.from(_e.changedTouches||[]))this.triggerPointerStart(new a$2(Ae),_e);window.addEventListener("blur",this.onWindowBlur)}onMove(_e){const Ae=this.currentPointers.slice(),ke="changedTouches"in _e?Array.from(_e.changedTouches||[]).map(Fe=>new a$2(Fe)):[new a$2(_e)],Le=[];for(const Fe of ke){const Ve=this.currentPointers.findIndex(Ie=>Ie.id===Fe.id);Ve<0||(Le.push(Fe),this.currentPointers[Ve]=Fe)}Le.length&&this.moveCallback(_e,this.currentPointers.slice(),Ae)}onPointerEnd(_e){_e.buttons>0&&_e.button!==0||(this.triggerPointerEnd(_e,new a$2(_e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(_e){for(const Ae of Array.from(_e.changedTouches||[]))this.triggerPointerEnd(_e,new a$2(Ae))}triggerPointerStart(_e,Ae){return!!this.startCallback(Ae,_e,this.currentPointers.slice())&&(this.currentPointers.push(_e),this.startPointers.push(_e),!0)}triggerPointerEnd(_e,Ae){const ke=this.currentPointers.findIndex(Le=>Le.id===Ae.id);ke<0||(this.currentPointers.splice(ke,1),this.startPointers.splice(ke,1),this.endCallback(_e,Ae,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const _e=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:_e.clientX,clientY:_e.clientY}),_e,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,r$3),this.element.removeEventListener("touchstart",this.onTouchStart,r$3),this.element.removeEventListener("touchmove",this.onMove,r$3),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}};function c$2(De,_e){return _e?Math.sqrt(Math.pow(_e.clientX-De.clientX,2)+Math.pow(_e.clientY-De.clientY,2)):0}function h$3(De,_e){return _e?{clientX:(De.clientX+_e.clientX)/2,clientY:(De.clientY+_e.clientY)/2}:De}const d$1=De=>typeof De=="object"&&De!==null&&De.constructor===Object&&Object.prototype.toString.call(De)==="[object Object]",u$1=(De,..._e)=>{const Ae=_e.length;for(let ke=0;ke<Ae;ke++){const Le=_e[ke]||{};Object.entries(Le).forEach(([Fe,Ve])=>{const Ie=Array.isArray(Ve)?[]:{};De[Fe]||Object.assign(De,{[Fe]:Ie}),d$1(Ve)?Object.assign(De[Fe],u$1(Ie,Ve)):Array.isArray(Ve)?Object.assign(De,{[Fe]:[...Ve]}):Object.assign(De,{[Fe]:Ve})})}return De},p$1=function(De,_e){return De.split(".").reduce((Ae,ke)=>typeof Ae=="object"?Ae[ke]:void 0,_e)};let f$1=class{constructor(_e={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:_e}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(_e);for(const Ae of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))Ae.startsWith("on")&&typeof this[Ae]=="function"&&(this[Ae]=this[Ae].bind(this))}setOptions(_e){this.options=_e?u$1({},this.constructor.defaults,_e):{};for(const[Ae,ke]of Object.entries(this.option("on")||{}))this.on(Ae,ke)}option(_e,...Ae){let ke=p$1(_e,this.options);return ke&&typeof ke=="function"&&(ke=ke.call(this,this,...Ae)),ke}optionFor(_e,Ae,ke,...Le){let Fe=p$1(Ae,_e);var Ve;typeof(Ve=Fe)!="string"||isNaN(Ve)||isNaN(parseFloat(Ve))||(Fe=parseFloat(Fe)),Fe==="true"&&(Fe=!0),Fe==="false"&&(Fe=!1),Fe&&typeof Fe=="function"&&(Fe=Fe.call(this,this,_e,...Le));let Ie=p$1(Ae,this.options);return Ie&&typeof Ie=="function"?Fe=Ie.call(this,this,_e,...Le,Fe):Fe===void 0&&(Fe=Ie),Fe===void 0?ke:Fe}cn(_e){const Ae=this.options.classes;return Ae&&Ae[_e]||""}localize(_e,Ae=[]){_e=String(_e).replace(/\{\{(\w+).?(\w+)?\}\}/g,(ke,Le,Fe)=>{let Ve="";return Fe?Ve=this.option(`${Le[0]+Le.toLowerCase().substring(1)}.l10n.${Fe}`):Le&&(Ve=this.option(`l10n.${Le}`)),Ve||(Ve=ke),Ve});for(let ke=0;ke<Ae.length;ke++)_e=_e.split(Ae[ke][0]).join(Ae[ke][1]);return _e=_e.replace(/\{\{(.*?)\}\}/g,(ke,Le)=>Le)}
207on(_e,Ae){let ke=[];typeof _e=="string"?ke=_e.split(" "):Array.isArray(_e)&&(ke=_e),this.events||(this.events=new Map),ke.forEach(Le=>{let Fe=this.events.get(Le);Fe||(this.events.set(Le,[]),Fe=[]),Fe.includes(Ae)||Fe.push(Ae),this.events.set(Le,Fe)})}off(_e,Ae){let ke=[];typeof _e=="string"?ke=_e.split(" "):Array.isArray(_e)&&(ke=_e),ke.forEach(Le=>{const Fe=this.events.get(Le);if(Array.isArray(Fe)){const Ve=Fe.indexOf(Ae);Ve>-1&&Fe.splice(Ve,1)}})}emit(_e,...Ae){[...this.events.get(_e)||[]].forEach(ke=>ke(this,...Ae)),_e!=="*"&&this.emit("*",_e,...Ae)}};Object.defineProperty(f$1,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(f$1,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});let g$1=class extends f$1{constructor(_e={}){super(_e),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(_e={}){const Ae=new Map;for(const[ke,Le]of Object.entries(_e)){const Fe=this.option(ke),Ve=this.plugins[ke];Ve||Fe===!1?Ve&&Fe===!1&&(Ve.detach(),delete this.plugins[ke]):Ae.set(ke,new Le(this,Fe||{}))}for(const[ke,Le]of Ae)this.plugins[ke]=Le,Le.attach()}detachPlugins(_e){_e=_e||Object.keys(this.plugins);for(const Ae of _e){const ke=this.plugins[Ae];ke&&ke.detach(),delete this.plugins[Ae]}return this.emit("detachPlugins"),this}};var m$1;(function(De){De[De.Init=0]="Init",De[De.Error=1]="Error",De[De.Ready=2]="Ready",De[De.Panning=3]="Panning",De[De.Mousemove=4]="Mousemove",De[De.Destroy=5]="Destroy"})(m$1||(m$1={}));const v$1=["a","b","c","d","e","f"],b={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},y$1={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:b},w$1='<circle cx="25" cy="25" r="20"></circle>',x$2='<div class="f-spinner"><svg viewBox="0 0 50 50">'+w$1+w$1+"</svg></div>",E$1=De=>De&&De!==null&&De instanceof Element&&"nodeType"in De,S$1=(De,_e)=>{De&&s$3(_e).forEach(Ae=>{De.classList.remove(Ae)})},P$1=(De,_e)=>{De&&s$3(_e).forEach(Ae=>{De.classList.add(Ae)})},C$1={a:1,b:0,c:0,d:1,e:0,f:0},T$1=1e5,M$1=1e4,O="mousemove",A$1="drag",L$1="content",z$1="auto";let R$1=null,k$1=null,I$1=class MR extends g$1{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return k$1===null&&(k$1=window.matchMedia("(hover: none)").matches),k$1}get isMobile(){return R$1===null&&(R$1=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),R$1}get panMode(){return this.options.panMode!==O||this.isTouchDevice?A$1:O}get panOnlyZoomed(){const _e=this.options.panOnlyZoomed;return _e===z$1?this.isTouchDevice:_e}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:_e,b:Ae}=this.current;return Math.sqrt(_e*_e+Ae*Ae)||1}get targetScale(){const{a:_e,b:Ae}=this.target;return Math.sqrt(_e*_e+Ae*Ae)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:_e}=this;return _e.fullWidth/_e.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:_e,contentRect:Ae}=this,ke=Math.max(_e.height/Ae.fitHeight,_e.width/Ae.fitWidth)||1;return Math.min(this.fullScale,ke)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const _e=this.content;return!!(_e&&_e instanceof HTMLImageElement)&&!_e.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const _e of v$1){const Ae=_e=="e"||_e==="f"?1e-4:1e-5;
vendor: 9,306 bytes, line 207
207if(Math.abs(this.target[_e]-this.current[_e])>Ae)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(_e,Ae={},ke={}){var Le;if(super(Ae),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:m$1.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},C$1)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},C$1)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!_e)throw new Error("Container Element Not Found");this.container=_e,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},MR.Plugins),ke)),this.emit("attachPlugins"),this.emit("init");const Fe=this.content;if(Fe.addEventListener("load",this.onLoad),Fe.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){_e.classList.add(this.cn("isLoading"));const Ve=n$4(x$2);!_e.contains(Fe)||Fe.parentElement instanceof HTMLPictureElement?this.spinner=_e.appendChild(Ve):this.spinner=((Le=Fe.parentElement)===null||Le===void 0?void 0:Le.insertBefore(Ve,Fe))||null}this.emit("beforeLoad")}else queueMicrotask(()=>{this.enable()})}initContent(){const{container:_e}=this,Ae=this.cn(L$1);let ke=this.option(L$1)||_e.querySelector(`.${Ae}`);if(ke||(ke=_e.querySelector("img,picture")||_e.firstElementChild,ke&&P$1(ke,Ae)),ke instanceof HTMLPictureElement&&(ke=ke.querySelector("img")),!ke)throw new Error("No content found");this.content=ke}onLoad(){const{spinner:_e,container:Ae,state:ke}=this;_e&&(_e.remove(),this.spinner=null),this.option("spinner")&&Ae.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),ke===m$1.Init?this.enable():this.updateMetrics()}onError(){this.state!==m$1.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=m$1.Error,this.emit("error"))}getNextScale(_e){const{fullScale:Ae,targetScale:ke,coverScale:Le,maxScale:Fe,minScale:Ve}=this;let Ie=Ve;switch(_e){case"toggleMax":Ie=ke-Ve<.5*(Fe-Ve)?Fe:Ve;break;case"toggleCover":Ie=ke-Ve<.5*(Le-Ve)?Le:Ve;break;case"toggleZoom":Ie=ke-Ve<.5*(Ae-Ve)?Ae:Ve;break;case"iterateZoom":let je=[1,Ae,Fe].sort(($e,qe)=>$e-qe),Ke=je.findIndex($e=>$e>ke+1e-5);Ie=je[Ke]||1}return Ie}attachObserver(){var _e;const Ae=()=>{const{container:ke,containerRect:Le}=this;return Math.abs(Le.width-ke.getBoundingClientRect().width)>.1||Math.abs(Le.height-ke.getBoundingClientRect().height)>.1};this.resizeObserver||window.ResizeObserver===void 0||(this.resizeObserver=new ResizeObserver(()=>{this.updateTimer||(Ae()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout(()=>{Ae()&&this.onResize(),this.updateTimer=null},500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))})),(_e=this.resizeObserver)===null||_e===void 0||_e.observe(this.container)}detachObserver(){var _e;(_e=this.resizeObserver)===null||_e===void 0||_e.disconnect()}attachEvents(){const{container:_e}=this;_e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),_e.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new l$4(_e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(O,this.onMouseMove)}detachEvents(){var _e;const{container:Ae}=this;Ae.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),Ae.removeEventListener("wheel",this.onWheel,{passive:!1}),(_e=this.pointerTracker)===null||_e===void 0||_e.stop(),this.pointerTracker=null,document.removeEventListener(O,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const _e=this.friction,Ae=this.option("maxVelocity");for(const ke of v$1)_e?(this.velocity[ke]*=1-_e,Ae&&!this.isScaling&&(this.velocity[ke]=Math.max(Math.min(this.velocity[ke],Ae),-1*Ae)),this.current[ke]+=this.velocity[ke]):this.current[ke]=this.target[ke];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame(()=>this.animate()):this.stop("current")}setTargetForce(){for(const _e of v$1)_e==="e"&&this.isBouncingX||_e==="f"&&this.isBouncingY||(this.velocity[_e]=(1/(1-this.friction)-1)*(this.target[_e]-this.current[_e]))}checkBounds(_e=0,Ae=0){const{current:ke}=this,Le=ke.e+_e,Fe=ke.f+Ae,Ve=this.getBounds(),{x:Ie,y:je}=Ve,Ke=Ie.min,$e=Ie.max,qe=je.min,ci=je.max;let gi=0,Ai=0;return Ke!==1/0&&Le<Ke?gi=Ke-Le:$e!==1/0&&Le>$e&&(gi=$e-Le),qe!==1/0&&Fe<qe?Ai=qe-Fe:ci!==1/0&&Fe>ci&&(Ai=ci-Fe),Math.abs(gi)<1e-4&&(gi=0),Math.abs(Ai)<1e-4&&(Ai=0),Object.assign(Object.assign({},Ve),{xDiff:gi,yDiff:Ai,inBounds:!gi&&!Ai})}clampTargetBounds(){const{target:_e}=this,{x:Ae,y:ke}=this.getBounds();Ae.min!==1/0&&(_e.e=Math.max(_e.e,Ae.min)),Ae.max!==1/0&&(_e.e=Math.min(_e.e,Ae.max)),ke.min!==1/0&&(_e.f=Math.max(_e.f,ke.min)),ke.max!==1/0&&(_e.f=Math.min(_e.f,ke.max))}calculateContentDim(_e=this.current){const{content:Ae,contentRect:ke}=this,{fitWidth:Le,fitHeight:Fe,fullWidth:Ve,fullHeight:Ie}=ke;let je=Ve,Ke=Ie;if(this.option("zoom")||this.angle!==0){const $e=!(Ae instanceof HTMLImageElement)&&(window.getComputedStyle(Ae).maxWidth==="none"||window.getComputedStyle(Ae).maxHeight==="none"),qe=$e?Ve:Le,ci=$e?Ie:Fe,gi=this.getMatrix(_e),Ai=new DOMPoint(0,0).matrixTransform(gi),oi=new DOMPoint(0+qe,0).matrixTransform(gi),ii=new DOMPoint(0+qe,0+ci).matrixTransform(gi),hi=new DOMPoint(0,0+ci).matrixTransform(gi),Ei=Math.abs(ii.x-Ai.x),Li=Math.abs(ii.y-Ai.y),Di=Math.abs(hi.x-oi.x),zi=Math.abs(hi.y-oi.y);je=Math.max(Ei,Di),Ke=Math.max(Li,zi)}return{contentWidth:je,contentHeight:Ke}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===O||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:_e}=this,{x:Ae,y:ke,xDiff:Le,yDiff:Fe}=this.checkBounds(),Ve=this.option("maxVelocity");let Ie=this.velocity.e,je=this.velocity.f;Le!==0?(this.isBouncingX=!0,Le*Ie<=0?Ie+=.14*Le:(Ie=.14*Le,Ae.min!==1/0&&(this.target.e=Math.max(_e.e,Ae.min)),Ae.max!==1/0&&(this.target.e=Math.min(_e.e,Ae.max))),Ve&&(Ie=Math.max(Math.min(Ie,Ve),-1*Ve))):this.isBouncingX=!1,Fe!==0?(this.isBouncingY=!0,Fe*je<=0?je+=.14*Fe:(je=.14*Fe,ke.min!==1/0&&(this.target.f=Math.max(_e.f,ke.min)),ke.max!==1/0&&(this.target.f=Math.min(_e.f,ke.max))),Ve&&(je=Math.max(Math.min(je,Ve),-1*Ve))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=Ie),this.isBouncingY&&(this.velocity.f=je)}enable(){const{content:_e}=this,Ae=new DOMMatrixReadOnly(window.getComputedStyle(_e).transform);for(const ke of v$1)this.current[ke]=this.target[ke]=Ae[ke];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=m$1.Ready,this.emit
207("ready")}onClick(_e){var Ae;_e.type==="click"&&_e.detail===0&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&((Ae=this.pointerTracker)===null||Ae===void 0||Ae.clear(),this.trackingPoints=[],this.startDecelAnim());const ke=_e.target;if(!ke||_e.defaultPrevented)return;if(ke.hasAttribute("disabled"))return _e.preventDefault(),void _e.stopPropagation();if((()=>{const gi=window.getSelection();return gi&&gi.type==="Range"})()&&!ke.closest("button"))return;const Le=ke.closest("[data-panzoom-action]"),Fe=ke.closest("[data-panzoom-change]"),Ve=Le||Fe,Ie=Ve&&E$1(Ve)?Ve.dataset:null;if(Ie){const gi=Ie.panzoomChange,Ai=Ie.panzoomAction;if((gi||Ai)&&_e.preventDefault(),gi){let oi={};try{oi=JSON.parse(gi)}catch{console&&console.warn("The given data was not valid JSON")}return void this.applyChange(oi)}if(Ai)return void(this[Ai]&&this[Ai]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return _e.preventDefault(),void _e.stopPropagation();if(ke.closest("[data-fancybox]"))return;const je=this.content.getBoundingClientRect(),Ke=this.dragStart;if(Ke.time&&!this.canZoomOut()&&(Math.abs(je.x-Ke.x)>2||Math.abs(je.y-Ke.y)>2))return;this.dragStart.time=0;const $e=gi=>{this.option("zoom",_e)&&gi&&typeof gi=="string"&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(gi)&&typeof this[gi]=="function"&&(_e.preventDefault(),this[gi]({event:_e}))},qe=this.option("click",_e),ci=this.option("dblClick",_e);ci?(this.clicks++,this.clicks==1&&(this.clickTimer=setTimeout(()=>{this.clicks===1?(this.emit("click",_e),!_e.defaultPrevented&&qe&&$e(qe)):(this.emit("dblClick",_e),_e.defaultPrevented||$e(ci)),this.clicks=0,this.clickTimer=null},350))):(this.emit("click",_e),!_e.defaultPrevented&&qe&&$e(qe))}addTrackingPoint(_e){const Ae=this.trackingPoints.filter(ke=>ke.time>Date.now()-100);Ae.push(_e),this.trackingPoints=Ae}onPointerDown(_e,Ae,ke){var Le;if(this.option("touch",_e)===!1)return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const Fe=this.content.getBoundingClientRect();if(this.dragStart={x:Fe.x,y:Fe.y,top:Fe.top,left:Fe.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===O&&this.targetScale>1)return _e.preventDefault(),_e.stopPropagation(),!1;const Ve=_e.composedPath()[0];if(!ke.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(Ve.nodeName)||Ve.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;(Le=window.getSelection())===null||Le===void 0||Le.removeAllRanges()}if(_e.type==="mousedown")["A","BUTTON"].includes(Ve.nodeName)||_e.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(Ae),this.emit("touchStart",_e)),!0}onPointerMove(_e,Ae,ke){if(this.option("touch",_e)===!1||!this.isDragging||Ae.length<2&&this.panOnlyZoomed&&t$4(this.targetScale)<=t$4(this.minScale)||(this.emit("touchMove",_e),_e.defaultPrevented))return;this.addTrackingPoint(Ae[0]);const{content:Le}=this,Fe=h$3(ke[0],ke[1]),Ve=h$3(Ae[0],Ae[1]);let Ie=0,je=0;if(Ae.length>1){const Li=Le.getBoundingClientRect();Ie=Fe.clientX-Li.left-.5*Li.width,je=Fe.clientY-Li.top-.5*Li.height}const Ke=c$2(ke[0],ke[1]),$e=c$2(Ae[0],Ae[1]);let qe=Ke?$e/Ke:1,ci=Ve.clientX-Fe.clientX,gi=Ve.clientY-Fe.clientY;this.dragOffset.x+=ci,this.dragOffset.y+=gi,this.dragOffset.time=Date.now()-this.dragStart.time;let Ai=t$4(this.targetScale)===t$4(this.minScale)&&this.option("lockAxis");if(Ai&&!this.lockedAxis)if(Ai==="xy"||Ai==="y"||_e.type==="touchmove"){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void _e.preventDefault();const Li=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=Li>45&&Li<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,ci=0,gi=0}else this.lockedAxis=Ai;if(i$3(_e.target,this.content)&&(Ai="x",this.dragOffset.y=0),Ai&&Ai!=="xy"&&this.lockedAxis!==Ai&&t$4(this.targetScale)===t$4(this.minScale))return;_e.cancelable&&_e.preventDefault(),this.container.classList.add(this.cn("isDragging"));const oi=this.checkBounds(ci,gi);this.option("rubberband")?(this.isInfinite!=="x"&&(oi.xDiff>0&&ci<0||oi.xDiff<0&&ci>0)&&(ci*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*oi.xDiff))),this.isInfinite!=="y"&&(oi.yDiff>0&&gi<0||oi.yDiff<0&&gi>0)&&(gi*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*oi.yDiff)))):(oi.xDiff&&(ci=0),oi.yDiff&&(gi=0));const ii=this.targetScale,hi=this.minScale,Ei=this.maxScale;ii<.5*hi&&(qe=Math.max(qe,hi)),ii>1.5*Ei&&(qe=Math.min(qe,Ei)),this.lockedAxis==="y"&&t$4(ii)===t$4(hi)&&(ci=0),this.lockedAxis==="x"&&t$4(ii)===t$4(hi)&&(gi=0),this.applyChange({originX:Ie,originY:je,panX:ci,panY:gi,scale:qe,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(_e,Ae,ke){if(ke.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(Ae),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),i$3(_e.target,this.content)&&this.lockedAxis==="y"&&(this.trackingPoints=[]),this.emit
207("touchEnd",_e),this.isDragging=!1,this.lockedAxis=!1,this.state!==m$1.Destroy&&(_e.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var _e;const Ae=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const Li of v$1)this.velocity[Li]=0;this.target.e=this.current.e,this.target.f=this.current.f,S$1(this.container,"is-scaling"),S$1(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:ke}=this,Le=ke[0],Fe=ke[ke.length-1];let Ve=0,Ie=0,je=0;Fe&&Le&&(Ve=Fe.clientX-Le.clientX,Ie=Fe.clientY-Le.clientY,je=Fe.time-Le.time);const Ke=((_e=window.visualViewport)===null||_e===void 0?void 0:_e.scale)||1;Ke!==1&&(Ve*=Ke,Ie*=Ke);let $e=0,qe=0,ci=0,gi=0,Ai=this.option("decelFriction");const oi=this.targetScale;if(je>0){ci=Math.abs(Ve)>3?Ve/(je/30):0,gi=Math.abs(Ie)>3?Ie/(je/30):0;const Li=this.option("maxVelocity");Li&&(ci=Math.max(Math.min(ci,Li),-1*Li),gi=Math.max(Math.min(gi,Li),-1*Li))}ci&&($e=ci/(1/(1-Ai)-1)),gi&&(qe=gi/(1/(1-Ai)-1)),(this.option("lockAxis")==="y"||this.option("lockAxis")==="xy"&&this.lockedAxis==="y"&&t$4(oi)===this.minScale)&&($e=ci=0),(this.option("lockAxis")==="x"||this.option("lockAxis")==="xy"&&this.lockedAxis==="x"&&t$4(oi)===this.minScale)&&(qe=gi=0);const ii=this.dragOffset.x,hi=this.dragOffset.y,Ei=this.option("dragMinThreshold")||0;Math.abs(ii)<Ei&&Math.abs(hi)<Ei&&($e=qe=0,ci=gi=0),(this.option("zoom")&&(oi<this.minScale-1e-5||oi>this.maxScale+1e-5)||Ae&&!$e&&!qe)&&(Ai=.35),this.applyChange({panX:$e,panY:qe,friction:Ai}),this.emit("decel",ci,gi,ii,hi)}onWheel(_e){var Ae=[-_e.deltaX||0,-_e.deltaY||0,-_e.detail||0].reduce(function(Fe,Ve){return Math.abs(Ve)>Math.abs(Fe)?Ve:Fe});const ke=Math.max(-1,Math.min(1,Ae));if(this.emit("wheel",_e,ke),this.panMode===O||_e.defaultPrevented)return;const Le=this.option("wheel");Le==="pan"?(_e.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-_e.deltaX,panY:2*-_e.deltaY,bounce:!1})):Le==="zoom"&&this.option("zoom")!==!1&&this.zoomWithWheel(_e)}onMouseMove(_e){this.panWithMouse(_e)}onKeydown(_e){_e.key==="Escape"&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:_e,target:Ae,content:ke,contentRect:Le}=this,Fe=Object.assign({},C$1);for(const ii of v$1){const hi=ii=="e"||ii==="f"?M$1:T$1;Fe[ii]=t$4(_e[ii],hi),Math.abs(Ae[ii]-_e[ii])<(ii=="e"||ii==="f"?.51:.001)&&(_e[ii]=Ae[ii])}let{a:Ve,b:Ie,c:je,d:Ke,e:$e,f:qe}=Fe,ci=`matrix(${Ve}, ${Ie}, ${je}, ${Ke}, ${$e}, ${qe})`,gi=ke.parentElement instanceof HTMLPictureElement?ke.parentElement:ke;if(this.option("transformParent")&&(gi=gi.parentElement||gi),gi.style.transform===ci)return;gi.style.transform=ci;const{contentWidth:Ai,contentHeight:oi}=this.calculateContentDim();Le.width=Ai,Le.height=oi,this.emit("afterTransform")}updateMetrics(_e=!1){var Ae;if(!this||this.state===m$1.Destroy||this.isContentLoading)return;const ke=Math.max(1,((Ae=window.visualViewport)===null||Ae===void 0?void 0:Ae.scale)||1),{container:Le,content:Fe}=this,Ve=Fe instanceof HTMLImageElement,Ie=Le.getBoundingClientRect(),je=getComputedStyle(this.container);let Ke=Ie.width*ke,$e=Ie.height*ke;const qe=parseFloat(je.paddingTop)+parseFloat(je.paddingBottom),ci=Ke-(parseFloat(je.paddingLeft)+parseFloat(je.paddingRight)),gi=$e-qe;this.containerRect={width:Ke,height:$e,innerWidth:ci,innerHeight:gi};const Ai=parseFloat(Fe.dataset.width||"")||(Sn=>{let Cn=0;return Cn=Sn instanceof HTMLImageElement?Sn.naturalWidth:Sn instanceof SVGElement?Sn.width.baseVal.value:Math.max(Sn.offsetWidth,Sn.scrollWidth),Cn||0})(Fe),oi=parseFloat(Fe.dataset.height||"")||(Sn=>{let Cn=0;return Cn=Sn instanceof HTMLImageElement?Sn.naturalHeight:Sn instanceof SVGElement?Sn.height.baseVal.value:Math.max(Sn.offsetHeight,Sn.scrollHeight),Cn||0})(Fe);let ii=this.option("width",Ai)||z$1,hi=this.option("height",oi)||z$1;const Ei=ii===z$1,Li=hi===z$1;typeof ii!="number"&&(ii=Ai),typeof hi!="number"&&(hi=oi),Ei&&(ii=Ai*(hi/oi)),Li&&(hi=oi/(Ai/ii));let Di=Fe.parentElement instanceof HTMLPictureElement?Fe.parentElement:Fe;this.option("transformParent")&&(Di=Di.parentElement||Di);const zi=Di.getAttribute("style")||"";Di.style.setProperty("transform","none","important"),Ve&&(Di.style.width="",Di.style.height=""),Di.offsetHeight;const an=Fe.getBoundingClientRect();let Je=an.width*ke,fi=an.height*ke,Gi=Je,fn=fi;
vendor: 9,052 bytes, line 207
207Je=Math.min(Je,ii),fi=Math.min(fi,hi),Ve?{width:Je,height:fi}=((Sn,Cn,tr,xr)=>{const er=tr/Sn,Hn=xr/Cn,Er=Math.min(er,Hn);return{width:Sn*=Er,height:Cn*=Er}})(ii,hi,Je,fi):(Je=Math.min(Je,ii),fi=Math.min(fi,hi));let cn=.5*(fn-fi),Tn=.5*(Gi-Je);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:an.top-Ie.top+cn,bottom:Ie.bottom-an.bottom+cn,left:an.left-Ie.left+Tn,right:Ie.right-an.right+Tn,fitWidth:Je,fitHeight:fi,width:Je,height:fi,fullWidth:ii,fullHeight:hi}),Di.style.cssText=zi,Ve&&(Di.style.width=`${Je}px`,Di.style.height=`${fi}px`),this.setTransform(),_e!==!0&&this.emit("refresh"),this.ignoreBounds||(t$4(this.targetScale)<t$4(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===m$1.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:_e,contentHeight:Ae}=this.calculateContentDim(this.target),{targetScale:ke,lockedAxis:Le}=this,{fitWidth:Fe,fitHeight:Ve}=this.contentRect;let Ie=0,je=0,Ke=0,$e=0;const qe=this.option("infinite");if(qe===!0||Le&&qe===Le)Ie=-1/0,Ke=1/0,je=-1/0,$e=1/0;else{let{containerRect:ci,contentRect:gi}=this,Ai=t$4(Fe*ke,M$1),oi=t$4(Ve*ke,M$1),{innerWidth:ii,innerHeight:hi}=ci;if(ci.width===Ai&&(ii=ci.width),ci.width===oi&&(hi=ci.height),_e>ii){Ke=.5*(_e-ii),Ie=-1*Ke;let Ei=.5*(gi.right-gi.left);Ie+=Ei,Ke+=Ei}if(Fe>ii&&_e<ii&&(Ie-=.5*(Fe-ii),Ke-=.5*(Fe-ii)),Ae>hi){$e=.5*(Ae-hi),je=-1*$e;let Ei=.5*(gi.bottom-gi.top);je+=Ei,$e+=Ei}Ve>hi&&Ae<hi&&(Ie-=.5*(Ve-hi),Ke-=.5*(Ve-hi))}return{x:{min:Ie,max:Ke},y:{min:je,max:$e}}}getBounds(){const _e=this.option("bounds");return _e!==z$1?_e:this.calculateBounds()}updateControls(){const _e=this,Ae=_e.container,{panMode:ke,contentRect:Le,targetScale:Fe,minScale:Ve}=_e;let Ie=Ve,je=_e.option("click")||!1;je&&(Ie=_e.getNextScale(je));let Ke=_e.canZoomIn(),$e=_e.canZoomOut(),qe=ke===A$1&&!!this.option("touch"),ci=$e&&qe;if(qe&&(t$4(Fe)<t$4(Ve)&&!this.panOnlyZoomed&&(ci=!0),(t$4(Le.width,1)>t$4(Le.fitWidth,1)||t$4(Le.height,1)>t$4(Le.fitHeight,1))&&(ci=!0)),t$4(Le.width*Fe,1)<t$4(Le.fitWidth,1)&&(ci=!1),ke===O&&(ci=!1),o$5(Ae,this.cn("isDraggable"),ci),!this.option("zoom"))return;let gi=Ke&&t$4(Ie)>t$4(Fe),Ai=!gi&&!ci&&$e&&t$4(Ie)<t$4(Fe);o$5(Ae,this.cn("canZoomIn"),gi),o$5(Ae,this.cn("canZoomOut"),Ai);for(const oi of Ae.querySelectorAll("[data-panzoom-action]")){let ii=!1,hi=!1;switch(oi.dataset.panzoomAction){case"zoomIn":Ke?ii=!0:hi=!0;break;case"zoomOut":$e?ii=!0:hi=!0;break;case"toggleZoom":case"iterateZoom":Ke||$e?ii=!0:hi=!0;const Ei=oi.querySelector("g");Ei&&(Ei.style.display=Ke?"":"none")}ii?(oi.removeAttribute("disabled"),oi.removeAttribute("tabindex")):hi&&(oi.setAttribute("disabled",""),oi.setAttribute("tabindex","-1"))}}panTo({x:_e=this.target.e,y:Ae=this.target.f,scale:ke=this.targetScale,friction:Le=this.option("friction"),angle:Fe=0,originX:Ve=0,originY:Ie=0,flipX:je=!1,flipY:Ke=!1,ignoreBounds:$e=!1}){this.state!==m$1.Destroy&&this.applyChange({panX:_e-this.target.e,panY:Ae-this.target.f,scale:ke/this.targetScale,angle:Fe,originX:Ve,originY:Ie,friction:Le,flipX:je,flipY:Ke,ignoreBounds:$e})}applyChange({panX:_e=0,panY:Ae=0,scale:ke=1,angle:Le=0,originX:Fe=-this.current.e,originY:Ve=-this.current.f,friction:Ie=this.option("friction"),flipX:je=!1,flipY:Ke=!1,ignoreBounds:$e=!1,bounce:qe=this.option("bounce")}){const ci=this.state;if(ci===m$1.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=Ie||0,this.ignoreBounds=$e;const{current:gi}=this,Ai=gi.e,oi=gi.f,ii=this.getMatrix(this.target);let hi=new DOMMatrix().translate(Ai,oi).translate(Fe,Ve).translate(_e,Ae);if(this.option("zoom")){if(!$e){const Ei=this.targetScale,Li=this.minScale,Di=this.maxScale;Ei*ke<Li&&(ke=Li/Ei),Ei*ke>Di&&(ke=Di/Ei)}hi=hi.scale(ke)}hi=hi.translate(-Fe,-Ve).translate(-Ai,-oi).multiply(ii),Le&&(hi=hi.rotate(Le)),je&&(hi=hi.scale(-1,1)),Ke&&(hi=hi.scale(1,-1));for(const Ei of v$1)Ei!=="e"&&Ei!=="f"&&(hi[Ei]>this.minScale+1e-5||hi[Ei]<this.minScale-1e-5)?this.target[Ei]=hi[Ei]:this.target[Ei]=t$4(hi[Ei],M$1);(this.targetScale<this.scale||Math.abs(ke-1)>.1||this.panMode===O||qe===!1)&&!$e&&this.clampTargetBounds(),ci===m$1.Init?this.animate():this.isResting||(this.state=m$1.Panning,this.requestTick())}stop(_e=!1){if(this.state===m$1.Init||this.state===m$1.Destroy)return;const Ae=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const ke of v$1)this.velocity[ke]=0,_e==="current"?this.current[ke]=this.target[ke]:_e==="target"&&(this.target[ke]=this.current[ke]);this.setTransform(),S$1(this.container,"is-scaling"),S$1(this.container,"is-animating"),this.isTicking=!1,this.state=m$1.Ready,Ae&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),P$1(this.container,"is-animating"),this.isScaling&&P$1(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame(()=>this.animate()))}panWithMouse(_e,Ae=this.option("mouseMoveFriction")){if(this.pmme=_e,this.panMode!==O||!_e||t$4(this.targetScale)<=t$4(this.minScale))return;this.emit("mouseMove",_e);const{container:ke,containerRect:Le,contentRect:Fe}=this,Ve=Le.width,Ie=Le.height,je=ke.getBoundingClientRect(),Ke=(_e.clientX||0)-je.left,$e=(_e.clientY||0)-je.top;let{contentWidth:qe,contentHeight:ci}=this.calculateContentDim(this.target);const gi=this.option("mouseMoveFactor");gi>1&&(qe!==Ve&&(qe*=gi),ci!==Ie&&(ci*=gi));let Ai=.5*(qe-Ve)-Ke/Ve*100/100*(qe-Ve);Ai+=.5*(Fe.right-Fe.left);let oi=.5*(ci-Ie)-$e/Ie*100/100*(ci-Ie);oi+=.5*(Fe.bottom-Fe.top),this.applyChange({panX:Ai-this.target.e,panY:oi-this.target.f,friction:Ae})}zoomWithWheel(_e){if(this.state===m$1.Destroy||this.state===m$1.Init)return;const Ae=Date.now();if(Ae-this.pwt<45)return void _e.preventDefault();this.pwt=Ae;var ke=[-_e.deltaX||0,-_e.deltaY||0,-_e.detail||0].reduce(function(Ke,$e){return Math.abs($e)>Math.abs(Ke)?$e:Ke});const Le=Math.max(-1,Math.min(1,ke)),{targetScale:Fe,maxScale:Ve,minScale:Ie}=this;let je=Fe*(100+45*Le)/100;t$4(je)<t$4(Ie)&&t$4(Fe)<=t$4(Ie)?(this.cwd+=Math.abs(Le),je=Ie):t$4(je)>t$4(Ve)&&t$4(Fe)>=t$4(Ve)?(this.cwd+=Math.abs(Le),je=Ve):(this.cwd=0,je=Math.max(Math.min(je,Ve),Ie)),this.cwd>this.option("wheelLimit")||(_e.preventDefault(),t$4(je)!==t$4(Fe)&&this.zoomTo(je,{event:_e}))}canZoomIn(){return this.option("zoom")&&(t$4(this.contentRect.width,1)<t$4(this.contentRect.fitWidth,1)||t$4(this.targetScale)<t$4(this.maxScale))}canZoomOut(){return this.option("zoom")&&t$4(this.targetScale)>t$4(this.minScale)}zoomIn(_e=1.25,Ae){this.zoomTo(this.targetScale*_e,Ae)}zoomOut(_e=.8,Ae){this.zoomTo(this.targetScale*_e,Ae)}zoomToFit(_e){this.zoomTo("fit",_e)}zoomToCover(_e){this.zoomTo("cover",_e)}zoomToFull(_e){this.zoomTo("full",_e)}zoomToMax(_e){this.zoomTo("max",_e)}toggleZoom(_e){this.zoomTo(this.getNextScale("toggleZoom"),_e)}toggleMax(_e){this.zoomTo(this.getNextScale("toggleMax"),_e)}toggleCover(_e){this.zoomTo(this.getNextScale("toggleCover"),_e)}iterateZoom(_e){this.zoomTo("next",_e)}zoomTo(_e=1,{friction:Ae=z$1,originX:ke=z$1,originY:Le=z$1,event:Fe}={}){if(this.isContentLoading||this.state===m$1.Destroy)return;const{targetScale:Ve,fullScale:Ie,maxScale:je,coverScale:Ke}=this;if(this.stop(),this.panMode===O&&(Fe=this.pmme||Fe),Fe||ke===z$1||Le===z$1){const qe=this.content.getBoundingClientRect(),ci=this.container.getBoundingClientRect(),gi=Fe?Fe.clientX:ci.left+.5*ci.width,Ai=Fe?Fe.clientY:ci.top+.5*ci.height;ke=gi-qe.left-.5*qe.width,Le=Ai-qe.top-.5*qe.height}let $e=1;typeof _e=="number"?$e=_e:_e==="full"?$e=Ie:_e==="cover"?$e=Ke:_e==="max"?$e=je:_e==="fit"?$e=1:_e==="next"&&($e=this.getNextScale("iterateZoom")),$e=$e/Ve||1,Ae=Ae===z$1?$e>1?.15:.25:Ae,this.applyChange({scale:$e,originX:ke,originY:Le,friction:Ae}),Fe&&this.panMode===O&&this.panWithMouse(Fe,Ae)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:_e,contentRect:Ae,target:ke}=this;this.applyChange({panX:.5*_e.width-(Ae.left+.5*Ae.fitWidth)-ke.e,panY:.5*_e.height-(Ae.top+.5*Ae.fitHeight)-ke.f,scale:_e.width/Ae.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:_e,contentRect:Ae,target:ke}=this;this.applyChange({panX:.5*_e.width-(Ae.left+.5*Ae.fitWidth)-ke.e,panY:.5*_e.innerHeight-(Ae.top+.5*Ae.fitHeight)-ke.f,scale:_e.height/Ae.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:_e}=this,Ae=this.cn("inFullscreen"),ke=this.cn("htmlHasFullscreen");_e.classList.toggle(Ae);const Le=_e.classList.contains(Ae);Le?(document.documentElement.classList.add(ke),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(ke),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit
207(Le?"enterFS":"exitFS")}getMatrix(_e=this.current){const{a:Ae,b:ke,c:Le,d:Fe,e:Ve,f:Ie}=_e;return new DOMMatrix([Ae,ke,Le,Fe,Ve,Ie])}reset(_e){if(this.state!==m$1.Init&&this.state!==m$1.Destroy){this.stop("current");for(const Ae of v$1)this.target[Ae]=C$1[Ae];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=_e===void 0?this.option("friction"):_e,this.state=m$1.Panning,this.requestTick())}}destroy(){this.stop(),this.state=m$1.Destroy,this.detachEvents(),this.detachObserver();const{container:_e,content:Ae}=this,ke=this.option("classes")||{};for(const Le of Object.values(ke))_e.classList.remove(Le+"");Ae&&(Ae.removeEventListener("load",this.onLoad),Ae.removeEventListener("error",this.onError)),this.detachPlugins()}};Object.defineProperty(I$1,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:y$1}),Object.defineProperty(I$1,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const D$1=function(De,_e){let Ae=!0;return(...ke)=>{Ae&&(Ae=!1,De(...ke),setTimeout(()=>{Ae=!0},_e))}},F=(De,_e)=>{let Ae=[];return De.childNodes.forEach(ke=>{ke.nodeType!==Node.ELEMENT_NODE||_e&&!ke.matches(_e)||Ae.push(ke)}),Ae},j={viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}};var B$1;(function(De){De[De.Init=0]="Init",De[De.Ready=1]="Ready",De[De.Destroy=2]="Destroy"})(B$1||(B$1={}));const H$1=De=>{if(typeof De=="string"||De instanceof HTMLElement)De={html:De};else{const _e=De.thumb;_e!==void 0&&(typeof _e=="string"&&(De.thumbSrc=_e),_e instanceof HTMLImageElement&&(De.thumbEl=_e,De.thumbElSrc=_e.src,De.thumbSrc=_e.src),delete De.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},De)},N$1=(De={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},De);let _$1=class extends f$1{constructor(_e,Ae){super(Ae),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:_e})}attach(){}detach(){}};const $$1={classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2};class W extends _$1{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let _e=this.list;if(!_e){_e=document.createElement("ul"),P$1(_e,this.cn("list")),_e.setAttribute("role","tablist");const Ae=this.instance.container;Ae.appendChild(_e),P$1(Ae,this.cn("hasDots")),this.list=_e}return _e}refresh(){var _e;const Ae=this.instance.pages.length,ke=Math.min(2,this.option("minCount")),Le=Math.max(2e3,this.option("maxCount")),Fe=this.option("dynamicFrom");if(Ae<ke||Ae>Le)return void this.cleanup();const Ve=typeof Fe=="number"&&Ae>5&&Ae>=Fe,Ie=!this.list||this.isDynamic!==Ve||this.list.children.length!==Ae;Ie&&this.cleanup();const je=this.build();if(o$5(je,this.cn("isDynamic"),!!Ve),Ie)for(let qe=0;qe<Ae;qe++)je.append(this.createItem(qe));let Ke,$e=0;for(const qe of[...je.children]){const ci=$e===this.instance.page;ci&&(Ke=qe),o$5(qe,this.cn("isCurrent"),ci),(_e=qe.children[0])===null||_e===void 0||_e.setAttribute("aria-selected",ci?"true":"false");for(const gi of["isBeforePrev","isPrev","isNext","isAfterNext"])S$1(qe,this.cn(gi));$e++}if(Ke=Ke||je.firstChild,Ve&&Ke){const qe=Ke.previousElementSibling,ci=qe&&qe.previousElementSibling;P$1(qe,this.cn("isPrev")),P$1(ci,this.cn("isBeforePrev"));const gi=Ke.nextElementSibling,Ai=gi&&gi.nextElementSibling;P$1(gi,this.cn("isNext")),P$1(Ai,this.cn("isAfterNext"))}this.isDynamic=Ve}createItem(_e=0){var Ae;
vendor: 9,395 bytes, line 207
207const ke=document.createElement("li");ke.setAttribute("role","presentation");const Le=n$4(this.instance.localize(this.option("dotTpl"),[["%d",_e+1]]).replace(/\%i/g,_e+""));return ke.appendChild(Le),(Ae=ke.children[0])===null||Ae===void 0||Ae.setAttribute("role","tab"),ke}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,S$1(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(W,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:$$1});const X="disabled",q="next",Y="prev";let V$1=class extends _$1{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const _e=this.instance,Ae=_e.pages.length,ke=_e.page;if(Ae<2)return void this.cleanup();this.build();let Le=this.prev,Fe=this.next;Le&&Fe&&(Le.removeAttribute(X),Fe.removeAttribute(X),_e.isInfinite||(ke<=0&&Le.setAttribute(X,""),ke>=Ae-1&&Fe.setAttribute(X,"")))}addBtn(_e){var Ae;const ke=this.instance,Le=document.createElement("button");Le.setAttribute("tabindex","0"),Le.setAttribute("title",ke.localize(`{{${_e.toUpperCase()}}}`)),P$1(Le,this.cn("button")+" "+this.cn(_e===q?"isNext":"isPrev"));const Fe=ke.isRTL?_e===q?Y:q:_e;var Ve;return Le.innerHTML=ke.localize(this.option(`${Fe}Tpl`)),Le.dataset[`carousel${Ve=_e,Ve?Ve.match("^[a-z]")?Ve.charAt(0).toUpperCase()+Ve.substring(1):Ve:""}`]="true",(Ae=this.container)===null||Ae===void 0||Ae.appendChild(Le),Le}build(){const _e=this.instance.container,Ae=this.cn("container");let{container:ke,prev:Le,next:Fe}=this;ke||(ke=_e.querySelector("."+Ae),this.isDom=!!ke),ke||(ke=document.createElement("div"),P$1(ke,Ae),_e.appendChild(ke)),this.container=ke,Fe||(Fe=ke.querySelector("[data-carousel-next]")),Fe||(Fe=this.addBtn(q)),this.next=Fe,Le||(Le=ke.querySelector("[data-carousel-prev]")),Le||(Le=this.addBtn(Y)),this.prev=Le}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}};Object.defineProperty(V$1,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});let Z$1=class extends _$1{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(_e){this.target=this.instance,this.nav=_e,this.attachEvents()}addAsNavFor(_e){this.nav=this.instance,this.target=_e,this.attachEvents()}attachEvents(){const{nav:_e,target:Ae}=this;_e&&Ae&&(_e.options.initialSlide=Ae.options.initialPage,_e.state===B$1.Ready?this.onNavReady(_e):_e.on("ready",this.onNavReady),Ae.state===B$1.Ready?this.onTargetReady(Ae):Ae.on("ready",this.onTargetReady))}onNavReady(_e){_e.on("createSlide",this.onNavCreateSlide),_e.on("Panzoom.click",this.onNavClick),_e.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(_e){_e.on("change",this.onTargetChange),_e.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(_e,Ae,ke){this.onNavTouch(_e,_e.panzoom,ke)}onNavTouch(_e,Ae,ke){var Le,Fe;if(Math.abs(Ae.dragOffset.x)>3||Math.abs(Ae.dragOffset.y)>3)return;const Ve=ke.target,{nav:Ie,target:je}=this;if(!Ie||!je||!Ve)return;const Ke=Ve.closest("[data-index]");if(ke.stopPropagation(),ke.preventDefault(),!Ke)return;const $e=parseInt(Ke.dataset.index||"",10)||0,qe=je.getPageForSlide($e),ci=Ie.getPageForSlide($e);Ie.slideTo(ci),je.slideTo(qe,{friction:((Fe=(Le=this.nav)===null||Le===void 0?void 0:Le.plugins)===null||Fe===void 0?void 0:Fe.Sync.option("friction"))||0}),this.markSelectedSlide($e)}onNavCreateSlide(_e,Ae){Ae.index===this.selectedIndex&&this.markSelectedSlide(Ae.index)}onTargetChange(){var _e,Ae;const{target:ke,nav:Le}=this;if(!ke||!Le||Le.state!==B$1.Ready||ke.state!==B$1.Ready)return;const Fe=(Ae=(_e=ke.pages[ke.page])===null||_e===void 0?void 0:_e.slides[0])===null||Ae===void 0?void 0:Ae.index,Ve=Le.getPageForSlide(Fe);this.markSelectedSlide(Fe),Le.slideTo(Ve,Le.prevPage===null&&ke.prevPage===null?{friction:0}:void 0)}markSelectedSlide(_e){const Ae=this.nav;Ae&&Ae.state===B$1.Ready&&(this.selectedIndex=_e,[...Ae.slides].map(ke=>{ke.el&&ke.el.classList[ke.index===_e?"add":"remove"]("is-nav-selected")}))}attach(){const _e=this;let Ae=_e.options.target,ke=_e.options.nav;Ae?_e.addAsNavFor(Ae):ke&&_e.addAsTargetFor(ke)}detach(){const _e=this,Ae=_e.nav,ke=_e.target;Ae&&(Ae.off("ready",_e.onNavReady),Ae.off("createSlide",_e.onNavCreateSlide),Ae.off("Panzoom.click",_e.onNavClick),Ae.off("Panzoom.touchEnd",_e.onNavTouch)),_e.nav=null,ke&&(ke.off("ready",_e.onTargetReady),ke.off("refresh",_e.onTargetChange),ke.off("change",_e.onTargetChange)),_e.target=null}};Object.defineProperty(Z$1,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const U={Navigation:V$1,Dots:W,Sync:Z$1},G="animationend",K="isSelected",J="slide";class Q extends g$1{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===B$1.Ready}get isInfinite(){let _e=!1;const{contentDim:Ae,viewportDim:ke,pages:Le,slides:Fe}=this,Ve=Fe[0];return Le.length>=2&&Ve&&Ae+Ve.dim>=ke&&(_e=this.option("infinite")),_e}get isRTL(){return this.option("direction")==="rtl"}get isHorizontal(){return this.option("axis")==="x"}constructor(_e,Ae={},ke={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:B$1.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),typeof _e=="string"&&(_e=document.querySelector(_e)),!_e||!E$1(_e))throw new Error("No Element found");this.container=_e,this.slideNext=D$1(this.slideNext.bind(this),150),this.slidePrev=D$1(this.slidePrev.bind(this),150),this.userOptions=Ae,this.userPlugins=ke,queueMicrotask(()=>{this.processOptions()})}processOptions(){var _e,Ae;const ke=u$1({},Q.defaults,this.userOptions);let Le="";const Fe=ke.breakpoints;if(Fe&&d$1(Fe))for(const[Ve,Ie]of Object.entries(Fe))window.matchMedia(Ve).matches&&d$1(Ie)&&(Le+=Ve,u$1(ke,Ie));Le===this.bp&&this.state!==B$1.Init||(this.bp=Le,this.state===B$1.Ready&&(ke.initialSlide=((Ae=(_e=this.pages[this.page])===null||_e===void 0?void 0:_e.slides[0])===null||Ae===void 0?void 0:Ae.index)||0),this.state!==B$1.Init&&this.destroy(),super.setOptions(ke),this.option("enabled")===!1?this.attachEvents():setTimeout(()=>{this.init()},0))}init(){this.state=B$1.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},Q.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=B$1.Ready,this.emit("ready")}initLayout(){const{container:_e}=this,Ae=this.option("classes");P$1(_e,this.cn("container")),o$5(_e,Ae.isLTR,!this.isRTL),o$5(_e,Ae.isRTL,this.isRTL),o$5(_e,Ae.isVertical,!this.isHorizontal),o$5(_e,Ae.isHorizontal,this.isHorizontal);let ke=this.option("viewport")||_e.querySelector(`.${Ae.viewport}`);ke||(ke=document.createElement("div"),P$1(ke,Ae.viewport),ke.append(...F(_e,`.${Ae.slide}
207`)),_e.prepend(ke)),ke.addEventListener("scroll",this.onScroll);let Le=this.option("track")||_e.querySelector(`.${Ae.track}`);Le||(Le=document.createElement("div"),P$1(Le,Ae.track),Le.append(...Array.from(ke.childNodes))),Le.setAttribute("aria-live","polite"),ke.contains(Le)||ke.prepend(Le),this.viewport=ke,this.track=Le,this.emit("initLayout")}initSlides(){const{track:_e}=this;if(!_e)return;const Ae=[...this.slides],ke=[];[...F(_e,`.${this.cn(J)}`)].forEach(Le=>{if(E$1(Le)){const Fe=H$1({el:Le,isDom:!0,index:this.slides.length});ke.push(Fe)}});for(let Le of[...this.option("slides",[])||[],...Ae])ke.push(H$1(Le));this.slides=ke;for(let Le=0;Le<this.slides.length;Le++)this.slides[Le].index=Le;for(const Le of ke)this.emit("beforeInitSlide",Le,Le.index),this.emit("initSlide",Le,Le.index);this.emit("initSlides")}setInitialPage(){const _e=this.option("initialSlide");this.page=typeof _e=="number"?this.getPageForSlide(_e):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:_e,pages:Ae,isHorizontal:ke}=this;if(!_e||!Ae.length)return;let Le=this.page;Ae[Le]||(this.page=Le=0);const Fe=(Ae[Le].pos||0)*(this.isRTL&&ke?1:-1),Ve=ke?`${Fe}px`:"0",Ie=ke?"0":`${Fe}px`;_e.style.transform=`translate3d(${Ve}, ${Ie}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const _e=this.option("Panzoom")||{};this.panzoom=new I$1(this.viewport,u$1({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:Ae=>!(this.pages.length<2&&!Ae.options.infinite),bounds:()=>this.getBounds(),maxVelocity:Ae=>Math.abs(Ae.target[this.axis]-Ae.current[this.axis])<2*this.viewportDim?100:0},_e)),this.panzoom.on("*",(Ae,ke,...Le)=>{this.emit(`Panzoom.${ke}`,Ae,...Le)}),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const _e=this.container;_e&&(_e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),_e.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let _e=[];const{contentDim:Ae,viewportDim:ke}=this;let Le=this.option("slidesPerPage");Le=(Le==="auto"||Ae<=ke)&&this.option("fill")!==!1?1/0:parseFloat(Le+"");let Fe=0,Ve=0,Ie=0;for(const je of this.slides)(!_e.length||Ve+je.dim-ke>.05||Ie>=Le)&&(_e.push(N$1()),Fe=_e.length-1,Ve=0,Ie=0),_e[Fe].slides.push(je),Ve+=je.dim+je.gap,Ie++;return _e}processPages(){const _e=this.pages,{contentDim:Ae,viewportDim:ke,isInfinite:Le}=this,Fe=this.option("center"),Ve=this.option("fill"),Ie=Ve&&Fe&&Ae>ke&&!Le;if(_e.forEach(($e,qe)=>{var ci;$e.index=qe,$e.pos=((ci=$e.slides[0])===null||ci===void 0?void 0:ci.pos)||0,$e.dim=0;for(const[gi,Ai]of $e.slides.entries())$e.dim+=Ai.dim,gi<$e.slides.length-1&&($e.dim+=Ai.gap);Ie&&$e.pos+.5*$e.dim<.5*ke?$e.pos=0:Ie&&$e.pos+.5*$e.dim>=Ae-.5*ke?$e.pos=Ae-ke:Fe&&($e.pos+=-.5*(ke-$e.dim))}),_e.forEach($e=>{Ve&&!Le&&Ae>ke&&($e.pos=Math.max($e.pos,0),$e.pos=Math.min($e.pos,Ae-ke)),$e.pos=t$4($e.pos,1e3),$e.dim=t$4($e.dim,1e3),Math.abs($e.pos)<=.1&&($e.pos=0)}),Le)return _e;const je=[];let Ke;return _e.forEach($e=>{const qe=Object.assign({},$e);Ke&&qe.pos===Ke.pos?(Ke.dim+=qe.dim,Ke.slides=[...Ke.slides,...qe.slides]):(qe.index=je.length,Ke=qe,je.push(qe))}),je}getPageFromIndex(_e=0){const Ae=this.pages.length;let ke;return _e=parseInt((_e||0).toString())||0,ke=this.isInfinite?(_e%Ae+Ae)%Ae:Math.max(Math.min(_e,Ae-1),0),ke}getSlideMetrics(_e){var Ae,ke;const Le=this.isHorizontal?"width":"height";let Fe=0,Ve=0,Ie=_e.el;const je=!(!Ie||Ie.parentNode);if(Ie?Fe=parseFloat(Ie.dataset[Le]||"")||0:(Ie=document.createElement("div"),Ie.style.visibility="hidden",(this.track||document.body).prepend(Ie)),P$1(Ie,this.cn(J)+" "+_e.class+" "+_e.customClass),Fe)Ie.style[Le]=`${Fe}px`,Ie.style[Le==="width"?"height":"width"]="";else{je&&(this.track||document.body).prepend(Ie),Fe=Ie.getBoundingClientRect()[Le]*Math.max(1,((Ae=window.visualVie
vendor: 27,050 bytes, lines 207-211
207wport)===null||Ae===void 0?void 0:Ae.scale)||1);let $e=Ie[this.isHorizontal?"offsetWidth":"offsetHeight"];$e-1>Fe&&(Fe=$e)}const Ke=getComputedStyle(Ie);return Ke.boxSizing==="content-box"&&(this.isHorizontal?(Fe+=parseFloat(Ke.paddingLeft)||0,Fe+=parseFloat(Ke.paddingRight)||0):(Fe+=parseFloat(Ke.paddingTop)||0,Fe+=parseFloat(Ke.paddingBottom)||0)),Ve=parseFloat(Ke[this.isHorizontal?"marginRight":"marginBottom"])||0,je?(ke=Ie.parentElement)===null||ke===void 0||ke.removeChild(Ie):_e.el||Ie.remove(),{dim:t$4(Fe,1e3),gap:t$4(Ve,1e3)}}getBounds(){const{isInfinite:_e,isRTL:Ae,isHorizontal:ke,pages:Le}=this;let Fe={min:0,max:0};if(_e)Fe={min:-1/0,max:1/0};else if(Le.length){const Ve=Le[0].pos,Ie=Le[Le.length-1].pos;Fe=Ae&&ke?{min:Ve,max:Ie}:{min:-1*Ie,max:-1*Ve}}return{x:ke?Fe:{min:0,max:0},y:ke?{min:0,max:0}:Fe}}repositionSlides(){let _e,{isHorizontal:Ae,isRTL:ke,isInfinite:Le,viewport:Fe,viewportDim:Ve,contentDim:Ie,page:je,pages:Ke,slides:$e,panzoom:qe}=this,ci=0,gi=0,Ai=0,oi=0;qe?oi=-1*qe.current[this.axis]:Ke[je]&&(oi=Ke[je].pos||0),_e=Ae?ke?"right":"left":"top",ke&&Ae&&(oi*=-1);for(const Li of $e){const Di=Li.el;Di?(_e==="top"?(Di.style.right="",Di.style.left=""):Di.style.top="",Li.index!==ci?Di.style[_e]=gi===0?"":`${t$4(gi,1e3)}px`:Di.style[_e]="",Ai+=Li.dim+Li.gap,ci++):gi+=Li.dim+Li.gap}if(Le&&Ai&&Fe){let Li=getComputedStyle(Fe),Di="padding",zi=Ae?"Right":"Bottom",an=parseFloat(Li[Di+(Ae?"Left":"Top")]);oi-=an,Ve+=an,Ve+=parseFloat(Li[Di+zi]);for(const Je of $e)Je.el&&(t$4(Je.pos)<t$4(Ve)&&t$4(Je.pos+Je.dim+Je.gap)<t$4(oi)&&t$4(oi)>t$4(Ie-Ve)&&(Je.el.style[_e]=`${t$4(gi+Ai,1e3)}px`),t$4(Je.pos+Je.gap)>=t$4(Ie-Ve)&&t$4(Je.pos)>t$4(oi+Ve)&&t$4(oi)<t$4(Ve)&&(Je.el.style[_e]=`-${t$4(Ai,1e3)}px`))}let ii,hi,Ei=[...this.inTransition];if(Ei.length>1&&(ii=Ke[Ei[0]],hi=Ke[Ei[1]]),ii&&hi){let Li=0;for(const Di of $e)Di.el?this.inTransition.has(Di.index)&&ii.slides.indexOf(Di)<0&&(Di.el.style[_e]=`${t$4(Li+(ii.pos-hi.pos),1e3)}px`):Li+=Di.dim+Di.gap}}createSlideEl(_e){const{track:Ae,slides:ke}=this;if(!Ae||!_e||_e.el&&_e.el.parentNode)return;const Le=_e.el||document.createElement("div");P$1(Le,this.cn(J)),P$1(Le,_e.class),P$1(Le,_e.customClass);const Fe=_e.html;Fe&&(Fe instanceof HTMLElement?Le.appendChild(Fe):Le.innerHTML=_e.html+"");const Ve=[];ke.forEach(($e,qe)=>{$e.el&&Ve.push(qe)});const Ie=_e.index;let je=null;Ve.length&&(je=ke[Ve.reduce(($e,qe)=>Math.abs(qe-Ie)<Math.abs($e-Ie)?qe:$e)]);const Ke=je&&je.el&&je.el.parentNode?je.index<_e.index?je.el.nextSibling:je.el:null;Ae.insertBefore(Le,Ae.contains(Ke)?Ke:null),_e.el=Le,this.emit("createSlide",_e)}removeSlideEl(_e,Ae=!1){const ke=_e==null?void 0:_e.el;if(!ke||!ke.parentNode)return;const Le=this.cn(K);if(ke.classList.contains(Le)&&(S$1(ke,Le),this.emit("unselectSlide",_e)),_e.isDom&&!Ae)return ke.removeAttribute("aria-hidden"),ke.removeAttribute("data-index"),void(ke.style.left="");this.emit("removeSlide",_e);const Fe=new CustomEvent(G);ke.dispatchEvent(Fe),_e.el&&(_e.el.remove(),_e.el=null)}transitionTo(_e=0,Ae=this.option("transition")){var ke,Le,Fe,Ve;if(!Ae)return!1;const Ie=this.page,{pages:je,panzoom:Ke}=this;_e=parseInt((_e||0).toString())||0;const $e=this.getPageFromIndex(_e);if(!Ke||!je[$e]||je.length<2||Math.abs((((Le=(ke=je[Ie])===null||ke===void 0?void 0:ke.slides[0])===null||Le===void 0?void 0:Le.dim)||0)-this.viewportDim)>1)return!1;let qe=_e>Ie?1:-1;this.isInfinite&&(Ie===0&&_e===je.length-1&&(qe=-1),Ie===je.length-1&&_e===0&&(qe=1));const ci=je[$e].pos*(this.isRTL?1:-1);if(Ie===$e&&Math.abs(ci-Ke.target[this.axis])<1)return!1;this.clearTransitions();const gi=Ke.isResting;P$1(this.container,this.cn("inTransition"));const Ai=((Fe=je[Ie])===null||Fe===void 0?void 0:Fe.slides[0])||null,oi=((Ve=je[$e])===null||Ve===void 0?void 0:Ve.slides[0])||null;this.inTransition.add(oi.index),this.createSlideEl(oi);let ii=Ai.el,hi=oi.el;gi||Ae===J||(Ae="fadeFast",ii=null);const Ei=this.isRTL?"next":"prev",Li=this.isRTL?"prev":"next";return ii&&(this.inTransition.add(Ai.index),Ai.transition=Ae,ii.addEventListener(G,this.onAnimationEnd),ii.classList.add(`f-${Ae}Out`,`to-${qe>0?Li:Ei}`)),hi&&(oi.transition=Ae,hi.addEventListener(G,this.onAnimationEnd),hi.classList.add(`f-${Ae}In`,`from-${qe>0?Ei:Li}`)),Ke.current[this.axis]=ci,Ke.target[this.axis]=ci,Ke.requestTick(),this.onChange($e),!0}manageSlideVisiblity(){const _e=new Set,Ae=new Set,ke=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const Le of this.slides)ke.has(Le)?_e.add(Le):Ae.add(Le);for(const Le of this.inTransition)_e.add(this.slides[Le]);for(const Le of _e)this.createSlideEl(Le),this.lazyLoadSlide(Le);for(const Le of Ae)_e.has(Le)||this.removeSlideEl(Le);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const _e="aria-hidden";let Ae=this.cn(K);if(Ae)for(const ke of this.slides){const Le=ke.el;Le&&(Le.dataset.index=`${ke.index}`,Le.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(ke)?Le.removeAttribute(_e):Le.setAttribute(_e,"true"):this.pages[this.page].slides.includes(ke)?(Le.classList.contains(Ae)||(P$1(Le,Ae),this.emit("selectSlide",ke)),Le.removeAttribute(_e)):(Le.classList.contains(Ae)&&(S$1(Le,Ae),this.emit("unselectSlide",ke)),Le.setAttribute(_e,"true")))}}flipInfiniteTrack(){const{axis:_e,isHorizontal:Ae,isInfinite:ke,isRTL:Le,viewportDim:Fe,contentDim:Ve}=this,Ie=this.panzoom;if(!Ie||!ke)return;let je=Ie.current[_e],Ke=Ie.target[_e]-je,$e=0,qe=.5*Fe;Le&&Ae?(je<-qe&&($e=-1,je+=Ve),je>Ve-qe&&($e=1,je-=Ve)):(je>qe&&($e=1,je-=Ve),je<-Ve+qe&&($e=-1,je+=Ve)),$e&&(Ie.current[_e]=je,Ie.target[_e]=je+Ke)}lazyLoadImg(_e,Ae){const ke=this,Le="f-fadeIn",Fe="is-preloading";let Ve=!1,Ie=null;const je=()=>{Ve||(Ve=!0,Ie&&(Ie.remove(),Ie=null),S$1(Ae,Fe),Ae.complete&&(P$1(Ae,Le),setTimeout(()=>{S$1(Ae,Le)},350)),this.option("adaptiveHeight")&&_e.el&&this.pages[this.page].slides.indexOf(_e)>-1&&(ke.updateMetrics(),ke.setViewportHeight()),this.emit("load",_e))};P$1(Ae,Fe),Ae.src=Ae.dataset.lazySrcset||Ae.dataset.lazySrc||"",delete Ae.dataset.lazySrc,delete Ae.dataset.lazySrcset,Ae.addEventListener("error",()=>{je()}),Ae.addEventListener("load",()=>{je()}),setTimeout(()=>{const Ke=Ae.parentNode;Ke&&_e.el&&(Ae.complete?je():Ve||(Ie=n$4(x$2),Ke.insertBefore(Ie,Ae)))},300)}lazyLoadSlide(_e){const Ae=_e&&_e.el;if(!Ae)return;const ke=new Set;let Le=Array.from(Ae.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));Ae.dataset.lazySrc&&Le.push(Ae),Le.map(Fe=>{Fe instanceof HTMLImageElement?ke.add(Fe):Fe instanceof HTMLElement&&Fe.dataset.lazySrc&&(Fe.style.backgroundImage=`url('${Fe.dataset.lazySrc}')`,delete Fe.dataset.lazySrc)});for(const Fe of ke)this.lazyLoadImg(_e,Fe)}onAnimationEnd(_e){var Ae;const ke=_e.target,Le=ke?parseInt(ke.dataset.index||"",10)||0:-1,Fe=this.slides[Le],Ve=_e.animationName;if(!ke||!Fe||!Ve)return;const Ie=!!this.inTransition.has(Le)&&Fe.transition;Ie&&Ve.substring(0,Ie.length+2)===`f-${Ie}`&&this.inTransition.delete(Le),this.inTransition.size||this.clearTransitions(),Le===this.page&&(!((Ae=this.panzoom)===null||Ae===void 0)&&Ae.isResting)&&this.emit("settle")}onDecel(_e,Ae=0,ke=0,Le=0,Fe=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:Ve,isHorizontal:Ie,axis:je,pages:Ke}=this,$e=Ke.length,qe=Math.abs(Math.atan2(ke,Ae)/(Math.PI/180));let ci=0;if(ci=qe>45&&qe<135?Ie?0:ke:Ie?Ae:0,!$e)return;let gi=this.page,Ai=Ve&&Ie?1:-1;const oi=_e.current[je]*Ai;let{pageIndex:ii}=this.getPageFromPosition(oi);Math.abs(ci)>5?(Ke[gi].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(gi=ii),gi=Ve&&Ie?ci<0?gi-1:gi+1:ci<0?gi+1:gi-1):gi=Le===0&&Fe===0?gi:ii,this.slideTo(gi,{transition:!1,friction:_e.option("decelFriction")})}onClick(_e){const Ae=_e.target,ke=Ae&&E$1(Ae)?Ae.dataset:null;let Le,Fe;ke&&(ke.carouselPage!==void 0?(Fe="slideTo",Le=ke.carouselPage):ke.carouselNext!==void 0?Fe="slideNext":ke.carouselPrev!==void 0&&(Fe="slidePrev")),Fe?(_e.preventDefault(),_e.stopPropagation(),Ae&&!Ae.hasAttribute("disabled")&&this[Fe](Le)):this.emit("click",_e)}onSlideTo(_e){const Ae=_e.detail||0;this.slideTo(this.getPageForSlide(Ae),{friction:0})}onChange(_e,Ae=0){const ke=this.page;this.prevPage=ke,this.page=_e,this.option("adaptiveHeight")&&this.setViewportHeight(),_e!==ke&&(this.markSelectedSlides(),this.emit("change",_e,ke,Ae))}onRefresh(){let _e=this.contentDim,Ae=this.viewportDim;this.updateMetrics(),this.contentDim===_e&&this.viewportDim===Ae||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var _e;(_e=this.viewport)===null||_e===void 0||_e.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(_e){this.lp!==_e.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=_e.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(_e=null,Ae=null){this.destroy(),this.state=B$1.Init,this.prevPage=null,this.userOptions=_e||this.userOptions,this.userPlugins=Ae||this.userPlugins,this.processOptions()}slideTo(_e=0,{friction:Ae=this.option("friction"),transition:ke=this.option("transition")}={}){if(this.state===B$1.Destroy)return;_e=parseInt((_e||0).toString())||0;const Le=this.getPageFromIndex(_e),{axis:Fe,isHorizontal:Ve,isRTL:Ie,pages:je,panzoom:Ke}=this,$e=je.length,qe=Ie&&Ve?1:-1;if(!Ke||!$e)return;if(this.page!==Le){const gi=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",gi,_e),gi.defaultPrevented)return}if(this.transitionTo(_e,ke))return;let ci=je[Le].pos;if(this.isInfinite){const gi=this.contentDim,Ai=Ke.target[Fe]*qe;$e===2?ci+=gi*Math.floor(parseFloat(_e+"")/2):ci=[ci,ci-gi,ci+gi].reduce(function(oi,ii){return Math.abs(ii-Ai)<Math.abs(oi-Ai)?ii:oi})}ci*=qe,Math.abs(Ke.target[Fe]-ci)<1||(Ke.panTo({x:Ve?ci:0,y:Ve?0:ci,friction:Ae}),this.onChange(Le))}slideToClosest(_e){if(this.panzoom){const{pageIndex:Ae}=this.getPageFromPosition();this.slideTo(Ae,_e)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),S$1(this.container,this.cn("inTransition"));const _e=["to-prev","to-next","from-prev","from-next"];for(const Ae of this.slides){const ke=Ae.el;if(ke){ke.removeEventListener(G,this.onAnimationEnd),ke.classList.remove(..._e);const Le=Ae.transition;Le&&ke.classList.remove(`f-${Le}Out`,`f-${Le}In`)}}this.manageSlideVisiblity()}addSlide(_e,Ae){var ke,Le,Fe,Ve;const Ie=this.panzoom,je=((ke=this.pages[this.page])===null||ke===void 0?void 0:ke.pos)||0,Ke=((Le=this.pages[this.page])===null||Le===void 0?void 0:Le.dim)||0,$e=this.contentDim<this.viewportDim;let qe=Array.isArray(Ae)?Ae:[Ae];const ci=[];for(const gi of qe)ci.push(H$1(gi));this.slides.splice(_e,0,...ci);for(let gi=0;gi<this.slides.length;gi++)this.slides[gi].index=gi;for(const gi of ci)this.emit("beforeInitSlide",gi,gi.index);if(this.page>=_e&&(this.page+=ci.length),this.updateMetrics(),Ie){const gi=((Fe=this.pages[this.page])===null||Fe===void 0?void 0:Fe.pos)||0,Ai=((Ve=this.pages[this.page])===null||Ve===void 0?void 0:Ve.dim)||0,oi=this.pages.length||1,ii=this.isRTL?Ke-Ai:Ai-Ke,hi=this.isRTL?je-gi:gi-je;$e&&oi===1?(_e<=this.page&&(Ie.current[this.axis]-=ii,Ie.target[this.axis]-=ii),Ie.panTo({[this.isHorizontal?"x":"y"]:-1*gi})):hi&&_e<=this.page&&(Ie.target[this.axis]-=hi,Ie.current[this.axis]-=hi,Ie.requestTick())}for(const gi of ci)this.emit("initSlide",gi,gi.index)}prependSlide(_e){this.addSlide(0,_e)}appendSlide(_e){this.addSlide(this.slides.length,_e)}removeSlide(_e){const Ae=this.slides.length;_e=(_e%Ae+Ae)%Ae;const ke=this.slides[_e];if(ke){this.removeSlideEl(ke,!0),this.slides.splice(_e,1);for(let Le=0;Le<this.slides.length;Le++)this.slides[Le].index=Le;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}),this.emit("destroySlide",ke)}}updateMetrics(){const{panzoom:_e,viewport:Ae,track:ke,slides:Le,isHorizontal:Fe,isInfinite:Ve}=this;if(!ke)return;const Ie=Fe?"width":"height",je=Fe?"offsetWidth":"offsetHeight";if(Ae){let qe=Math.max(Ae[je],t$4(Ae.getBoundingClientRect()[Ie],1e3)),ci=getComputedStyle(Ae),gi="padding",Ai=Fe?"Right":"Bottom";qe-=parseFloat(ci[gi+(Fe?"Left":"Top")])+parseFloat(ci[gi+Ai]),this.viewportDim=qe}let Ke,$e=0;for(const[qe,ci]of Le.entries()){let gi=0,Ai=0;!ci.el&&Ke?(gi=Ke.dim,Ai=Ke.gap):({dim:gi,gap:Ai}=this.getSlideMetrics(ci),Ke=ci),gi=t$4(gi,1e3),Ai=t$4(Ai,1e3),ci.dim=gi,ci.gap=Ai,ci.pos=$e,$e+=gi,(Ve||qe<Le.length-1)&&($e+=Ai)}$e=t$4($e,1e3),this.contentDim=$e,_e&&(_e.contentRect[Ie]=$e,_e.contentRect[Fe?"fullWidth":"fullHeight"]=$e),this.pages=this.createPages(),this.pages=this.processPages(),this.state===B$1.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(_e,Ae=!1,ke=!1){_e===void 0&&(_e=this.page);const Le=this,Fe=Le.panzoom,Ve=Le.contentDim,Ie=Le.pages[_e]||0;if(!Ie||!Fe)return _e>this.page?-1:1;let je=-1*Fe.current.e,Ke=t$4((je-Ie.pos)/(1*Ie.dim),1e3),$e=Ke,qe=Ke;this.isInfinite&&ke!==!0&&($e=t$4((je-Ie.pos+Ve)/(1*Ie.dim),1e3),qe=t$4((je-Ie.pos-Ve)/(1*Ie.dim),1e3));let ci=[Ke,$e,qe].reduce(function(gi,Ai){return Math.abs(Ai)<Math.abs(gi)?Ai:gi});return Ae?ci:ci>1?1:ci<-1?-1:ci}setViewportHeight(){const{page:_e,pages:Ae,viewport:ke,isHorizontal:Le}=this;if(!ke||!Ae[_e])return;let Fe=0;Le&&this.track&&(this.track.style.height="auto",Ae[_e].slides.forEach(Ve=>{Ve.el&&(Fe=Math.max(Fe,Ve.el.offsetHeight))})),ke.style.height=Fe?`${Fe}px`:""}getPageForSlide(_e){for(const Ae of this.pages)for(const ke of Ae.slides)if(ke.index===_e)return Ae.index;return-1}getVisibleSlides(_e=0){var Ae;const ke=new Set;let{panzoom:Le,contentDim:Fe,viewportDim:Ve,pages:Ie,page:je}=this;if(Ve){Fe=Fe+((Ae=this.slides[this.slides.length-1])===null||Ae===void 0?void 0:Ae.gap)||0;let Ke=0;Ke=Le&&Le.state!==m$1.Init&&Le.state!==m$1.Destroy?-1*Le.current[this.axis]:Ie[je]&&Ie[je].pos||0,this.isInfinite&&(Ke-=Math.floor(Ke/Fe)*Fe),this.isRTL&&this.isHorizontal&&(Ke*=-1);const $e=Ke-Ve*_e,qe=Ke+Ve*(_e+1),ci=this.isInfinite?[-1,0,1]:[0];for(const gi of this.slides)for(const Ai of ci){const oi=gi.pos+Ai*Fe,ii=oi+gi.dim+gi.gap;oi<qe&&ii>$e&&ke.add(gi)}}return ke}getPageFromPosition(_e){const{viewportDim:Ae,contentDim:ke,slides:Le,pages:Fe,panzoom:Ve}=this,Ie=Fe.length,je=Le.length,Ke=Le[0],$e=Le[je-1],qe=this.option("center");let ci=0,gi=0,Ai=0,oi=_e===void 0?-1*((Ve==null?void 0:Ve.target[this.axis])||0):_e;qe&&(oi+=.5*Ae),this.isInfinite?(oi<Ke.pos-.5*$e.gap&&(oi-=ke,Ai=-1),oi>$e.pos+$e.dim+.5*$e.gap&&(oi-=ke,Ai=1)):oi=Math.max(Ke.pos||0,Math.min(oi,$e.pos));let ii=$e,hi=Le.find(Ei=>{const Li=Ei.pos-.5*ii.gap,Di=Ei.pos+Ei.dim+.5*Ei.gap;return ii=Ei,oi>=Li&&oi<Di});return hi||(hi=$e),gi=this.getPageForSlide(hi.index),ci=gi+Ai*Ie,{page:ci,pageIndex:gi}}setPageFromPosition(){const{pageIndex:_e}=this.getPageFromPosition();this.onChange(_e)}destroy(){if([B$1.Destroy].includes(this.state))return;this.state=B$1.Destroy;const{container:_e,viewport:Ae,track:ke,slides:Le,panzoom:Fe}=this,Ve=this.option("classes");_e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),_e.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),Fe&&(Fe.destroy(),this.panzoom=null),Le&&Le.forEach(je=>{this.removeSlideEl(je)}),this.detachPlugins(),Ae&&(Ae.removeEventListener("scroll",this.onScroll),Ae.offsetParent&&ke&&ke.offsetParent&&Ae.replaceWith(...ke.childNodes));for(const[je,Ke]of Object.entries(Ve))je!=="container"&&Ke&&_e.classList.remove(Ke);this.track=null,this.viewport=null,this.page=0,this.slides=[];const Ie=this.events.get("ready");this.events=new Map,Ie&&this.events.set("ready",Ie)}}Object.defineProperty(Q,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:I$1}),Object.defineProperty(Q,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:j}),Object.defineProperty(Q,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:U});const tt=function(De){if(!E$1(De))return 0;const _e=window.scrollY,Ae=window.innerHeight,ke=_e+Ae,Le=De.getBoundingClientRect(),Fe=Le.y+_e,Ve=Le.height,Ie=Fe+Ve;if(_e>Ie||ke<Fe)return 0;if(_e<Fe&&ke>Ie||Fe<_e&&Ie>ke)return 100;let je=Ve;Fe<_e&&(je-=_e-Fe),Ie>ke&&(je-=Ie-ke);const Ke=je/Ae*100;return Math.round(Ke)},et=!(typeof window>"u"||!window.document||!window.document.createElement);let it;const nt=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),st=De=>{if(De&&et){it===void 0&&document.createElement("div").focus({get preventScroll(){return it=!0,!1}});try{if(it)De.focus({preventScroll:!0});else{const _e=window.scrollY||document.body.scrollTop,Ae=window.scrollX||document.body.scrollLeft;De.focus(),document.body.scrollTo({top:_e,left:Ae,behavior:"auto"})}}catch{}}},ot=()=>{const De=document;let _e,Ae="",ke="",Le="";return De.fullscreenEnabled?(Ae="requestFullscreen",ke="exitFullscreen",Le="fullscreenElement"):De.webkitFullscreenEnabled&&(Ae="webkitRequestFullscreen",ke="webkitExitFullscreen",Le="webkitFullscreenElement"),Ae&&(_e={request:function(Fe=De.documentElement){return Ae==="webkitRequestFullscreen"?Fe[Ae](Element.ALLOW_KEYBOARD_INPUT):Fe[Ae]()},exit:function(){return De[Le]&&De[ke]()},isFullscreen:function(){return De[Le]}}),_e},at={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},b),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:`<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">
208    <div class="fancybox__backdrop"></div>
209    <div class="fancybox__carousel"></div>
210    <div class="fancybox__footer"></div>
211  </div>`},trapFocus:!0,wheel:"zoom"};var rt,lt;(function(De){De[De.Init=0]="Init",De[De.Ready=1]="Ready",De[De.Closing=2]="Closing",De[De.CustomClosing=3]="CustomClosing",De[De.Destroy=4]="Destroy"})(rt||(rt={})),function(De){De[De.Loading=0]="Loading",De[De.Opening=1]="Opening",De[De.Ready=2]="Ready",De[De.Closing=3]="Closing"}(lt||(lt={}));let ct="",ht=!1,dt=!1,ut=null;const pt=()=>{let De="",_e="";const Ae=Oe.getInstance();if(Ae){const ke=Ae.carousel,Le=Ae.getSlide();if(ke&&Le){let Fe=Le.slug||void 0,Ve=Le.triggerEl||void 0;_e=Fe||Ae.option("slug")||"",!_e&&Ve&&Ve.dataset&&(_e=Ve.dataset.fancybox||""),_e&&_e!=="true"&&(De="#"+_e+(!Fe&&ke.slides.length>1?"-"+(Le.index+1):""))}}return{hash:De,slug:_e,index:1}},ft=()=>{const De=new URL(document.URL).hash,_e=De.slice(1).split("-"),Ae=_e[_e.length-1],ke=Ae&&/^\+?\d+$/.test(Ae)&&parseInt(_e.pop()||"1",10)||1;return{hash:De,slug:_e.join("-"),index:ke}},gt=()=>{const{slug:De,index:_e}=ft();if(!De)return;let Ae=document.querySelector(`[data-slug="${De}"]`);if(Ae&&Ae.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),Oe.getInstance())return;const ke=document.querySelectorAll(`[data-fancybox="${De}"]`);ke.length&&(Ae=ke[_e-1],Ae&&Ae.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},mt=()=>{if(Oe.defaults.Hash===!1)return;const De=Oe.getInstance();if((De==null?void 0:De.options.Hash)===!1)return;const{slug:_e,index:Ae}=ft(),{slug:ke}=pt();De&&(_e===ke?De.jumpTo(Ae-1):(ht=!0,De.close())),gt()},vt=()=>{ut&&clearTimeout(ut),queueMicrotask(()=>{mt()})},bt=()=>{window.addEventListener("hashchange",vt,!1),setTimeout(()=>{mt()},500)};et&&(/complete|interactive|loaded/.test(document.readyState)?bt():document.addEventListener("DOMContentLoaded",bt));const yt="is-zooming-in";class wt extends _$1{onCreateSlide(_e,Ae,ke){const Le=this.instance.optionFor(ke,"src")||"";ke.el&&ke.type==="image"&&typeof Le=="string"&&this.setImage(ke,Le)}onRemoveSlide(_e,Ae,ke){ke.panzoom&&ke.panzoom.destroy(),ke.panzoom=void 0,ke.imageEl=void 0}onChange(_e,Ae,ke,Le){S$1(this.instance.container,yt);for(const Fe of Ae.slides){const Ve=Fe.panzoom;Ve&&Fe.index!==ke&&Ve.reset(.35)}}onClose(){var _e;const Ae=this.instance,ke=Ae.container,Le=Ae.getSlide();if(!ke||!ke.parentElement||!Le)return;const{el:Fe,contentEl:Ve,panzoom:Ie,thumbElSrc:je}=Le;if(!Fe||!je||!Ve||!Ie||Ie.isContentLoading||Ie.state===m$1.Init||Ie.state===m$1.Destroy)return;Ie.updateMetrics();let Ke=this.getZoomInfo(Le);if(!Ke)return;this.instance.state=rt.CustomClosing,ke.classList.remove(yt),ke.classList.add("is-zooming-out"),Ve.style.backgroundImage=`url('${je}')`;const $e=ke.getBoundingClientRect();(((_e=window.visualViewport)===null||_e===void 0?void 0:_e.scale)||1)===1&&Object.assign(ke.style,{position:"absolute",top:`${ke.offsetTop+window.scrollY}px`,left:`${ke.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${$e.width}px`,height:`${$e.height}px`,overflow:"hidden"});const{x:qe,y:ci,scale:gi,opacity:Ai}=Ke;if(Ai){const oi=((ii,hi,Ei,Li)=>{const Di=hi-ii,zi=Li-Ei;return an=>Ei+((an-ii)/Di*zi||0)})(Ie.scale,gi,1,0);Ie.on("afterTransform",()=>{Ve.style.opacity=oi(Ie.scale)+""})}Ie.on("endAnimation",()=>{Ae.destroy()}),Ie.target.a=gi,Ie.target.b=0,Ie.target.c=0,Ie.target.d=gi,Ie.panTo({x:qe,y:ci,scale:gi,friction:Ai?.2:.33,ignoreBounds:!0}),Ie.isResting&&Ae.destroy()}setImage(_e,Ae){const ke=this.instance;_e.src=Ae,this.process(_e,Ae).then(Le=>{const{contentEl:Fe,imageEl:Ve,thumbElSrc:Ie,el:je}=_e;if(ke.isClosing()||!Fe||!Ve)return;Fe.offsetHeight;const Ke=!!ke.isOpeningSlide(_e)&&this.getZoomInfo(_e);if(this.option("protected")&&je){je.addEventListener("contextmenu",ci=>{ci.preventDefault()});const qe=document.createElement("div");P$1(qe,"fancybox-protected"),Fe.appendChild(qe)}if(Ie&&Ke){const qe=Le.contentRect,ci=Math.max(qe.fullWidth,qe.fullHeight);let gi=null;!Ke.opacity&&ci>1200&&(gi=document.createElement("img"),P$1(gi,"fancybox-ghost"),gi.src=Ie,Fe.appendChild(gi));const Ai=()=>{gi&&(P$1(gi,"f-fadeFastOut"),setTimeout(()=>{gi&&(gi.remove(),gi=null)},200))};($e=Ie,new Promise((oi,ii)=>{const hi=new Image;hi.onload=oi,hi.onerror=ii,hi.src=$e})).then(()=>{ke.hideLoading(_e),_e.state=lt.Opening,this.instance.emit("reveal",_e),this.zoomIn(_e).then(()=>{Ai(),this.instance.done(_e)},()=>{}),gi&&setTimeout(()=>{Ai()},ci>2500?800:200)},()=>{ke.hideLoading(_e),ke.revealContent(_e)})}else{const qe=this.optionFor(_e,"initialSize"),ci=this.optionFor(_e,"zoom"),gi={event:ke.prevMouseMoveEvent||ke.options.event,friction:ci?.12:0};let Ai=ke.optionFor(_e,"showClass")||void 0,oi=!0;ke.isOpeningSlide(_e)&&(qe==="full"?Le.zoomToFull(gi):qe==="cover"?Le.zoomToCover(gi):qe==="max"?Le.zoomToMax(gi):oi=!1,Le.stop("current")),oi&&Ai&&(Ai=Le.isDragging?"f-fadeIn":""),ke.hideLoading(_e),ke.revealContent(_e,Ai)}var $e},()=>{ke.setError(_e,"{{IMAGE_ERROR}}")})}process(_e,Ae){return new Promise((ke,Le)=>{var Fe;const Ve=this.instance,Ie=_e.el;Ve.clearContent(_e),Ve.showLoading(_e);let je=this.optionFor(_e,"content");if(typeof je=="string"&&(je=n$4(je)),!je||!E$1(je)){if(je=document.createElement("img"),je instanceof HTMLImageElement){let Ke="",$e=_e.caption;Ke=typeof $e=="string"&&$e?$e.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${_e.index+1} of ${((Fe=Ve.carousel)===null||Fe===void 0?void 0:Fe.pages.length)||1}`,je.src=Ae||"",je.alt=Ke,je.draggable=!1,_e.srcset&&je.setAttribute("srcset",_e.srcset),this.instance.isOpeningSlide(_e)&&(je.fetchPriority="high")}_e.sizes&&je.setAttribute("sizes",_e.sizes)}P$1(je,"fancybox-image"),_e.imageEl=je,Ve.setContent(_e,je,!1),_e.panzoom=new I$1(Ie,u$1({transformParent:!0},this.option("Panzoom")||{},{content:je,width:(Ke,$e)=>Ve.optionFor(_e,"width","auto",$e)||"auto",height:(Ke,$e)=>Ve.optionFor(_e,"height","auto",$e)||"auto",wheel:()=>{const Ke=Ve.option("wheel");return(Ke==="zoom"||Ke=="pan")&&Ke},click:(Ke,$e)=>{var qe,ci;if(Ve.isCompact||Ve.isClosing()||_e.index!==((qe=Ve.getSlide())===null||qe===void 0?void 0:qe.index))return!1;if($e){const Ai=$e.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(Ai.nodeName))return!1}let gi=!$e||$e.target&&((ci=_e.contentEl)===null||ci===void 0?void 0:ci.contains($e.target));return Ve.option(gi?"contentClick":"backdropClick")||!1},dblClick:()=>Ve.isCompact?"toggleZoom":Ve.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:Ke=>{ke(Ke)},error:()=>{Le()},destroy:()=>{Le()}}}))})}zoomIn(_e){return new Promise((Ae,ke)=>{const Le=this.instance,Fe=Le.container,{panzoom:Ve,contentEl:Ie,el:je}=_e;Ve&&Ve.updateMetrics();const Ke=this.getZoomInfo(_e);if(!(Ke&&je&&Ie&&Ve&&Fe))return void ke();const{x:$e,y:qe,scale:ci,opacity:gi}=Ke,Ai=()=>{_e.state!==lt.Closing&&(gi&&(Ie.style.opacity=Math.max(Math.min(1,1-(1-Ve.scale)/(1-ci)),0)+""),Ve.scale>=1&&Ve.scale>Ve.targetScale-.1&&Ae(Ve))},oi=Ei=>{(Ei.scale<.99||Ei.scale>1.01)&&!Ei.isDragging||(S$1(Fe,yt),Ie.style.opacity="",Ei.off("endAnimation",oi),Ei.off("touchStart",oi),Ei.off("afterTransform",Ai),Ae(Ei))};Ve.on("endAnimation",oi),Ve.on("touchStart",oi),Ve.on("afterTransform",Ai),Ve.on(["error","destroy"],()=>{ke()}),Ve.panTo({x:$e,y:qe,scale:ci,friction:0,ignoreBounds:!0}),Ve.stop("current");const ii={event:Ve.panMode==="mousemove"?Le.prevMouseMoveEvent||Le.options.event:void 0},hi=this.optionFor(_e,"initialSize");P$1(Fe,yt),Le.hideLoading(_e),hi==="full"?Ve.zoomToFull(ii):hi==="cover"?Ve.zoomToCover(ii):hi==="max"?Ve.zoomToMax(ii):Ve.reset(.172)})}getZoomInfo(_e){const{el:Ae,imageEl:ke,thumbEl:Le,panzoom:Fe}=_e,Ve=this.instance,Ie=Ve.container;if(!Ae||!ke||!Le||!Fe||tt(Le)<3||!this.optionFor(_e,"zoom")||!Ie||Ve.state===rt.Destroy||getComputedStyle(Ie).getPropertyValue("--f-images-zoom")==="0")return!1;
211const je=window.visualViewport||null;if((je?je.scale:1)!==1)return!1;let{top:Ke,left:$e,width:qe,height:ci}=Le.getBoundingClientRect(),{top:gi,left:Ai,fitWidth:oi,fitHeight:ii}=Fe.contentRect;if(!(qe&&ci&&oi&&ii))return!1;const hi=Fe.container.getBoundingClientRect();Ai+=hi.left,gi+=hi.top;const Ei=-1*(Ai+.5*oi-($e+.5*qe)),Li=-1*(gi+.5*ii-(Ke+.5*ci)),Di=qe/oi;let zi=this.option("zoomOpacity")||!1;return zi==="auto"&&(zi=Math.abs(qe/ci-oi/ii)>.1),{x:Ei,y:Li,scale:Di,opacity:zi}}attach(){const _e=this,Ae=_e.instance;Ae.on("Carousel.change",_e.onChange),Ae.on("Carousel.createSlide",_e.onCreateSlide),Ae.on("Carousel.removeSlide",_e.onRemoveSlide),Ae.on("close",_e.onClose)}detach(){const _e=this,Ae=_e.instance;Ae.off("Carousel.change",_e.onChange),Ae.off("Carousel.createSlide",_e.onCreateSlide),Ae.off("Carousel.removeSlide",_e.onRemoveSlide),Ae.off("close",_e.onClose)}}Object.defineProperty(wt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),typeof SuppressedError=="function"&&SuppressedError;const xt="html",Et="image",St="map",Pt="youtube",Ct="vimeo",Tt="html5video",Mt=(De,_e={})=>{const Ae=new URL(De),ke=new URLSearchParams(Ae.search),Le=new URLSearchParams;for(const[Ie,je]of[...ke,...Object.entries(_e)]){let Ke=je+"";if(Ie==="t"){let $e=Ke.match(/((\d*)m)?(\d*)s?/);$e&&Le.set("start",60*parseInt($e[2]||"0")+parseInt($e[3]||"0")+"")}else Le.set(Ie,Ke)}let Fe=Le+"",Ve=De.match(/#t=((.*)?\d+s)/);return Ve&&(Fe+=`#t=${Ve[1]}`),Fe},Ot={ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:`<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
212  <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},At=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class Lt extends _$1{onBeforeInitSlide(_e,Ae,ke){this.processType(ke)}onCreateSlide(_e,Ae,ke){this.setContent(ke)}onClearContent(_e,Ae){Ae.xhr&&(Ae.xhr.abort(),Ae.xhr=null);const ke=Ae.iframeEl;ke&&(ke.onload=ke.onerror=null,ke.src="//about:blank",Ae.iframeEl=null);const Le=Ae.contentEl,Fe=Ae.placeholderEl;if(Ae.type==="inline"&&Le&&Fe)Le.classList.remove("fancybox__content"),getComputedStyle(Le).getPropertyValue("display")!=="none"&&(Le.style.display="none"),setTimeout(()=>{Fe&&(Le&&Fe.parentNode&&Fe.parentNode.insertBefore(Le,Fe),Fe.remove())},0),Ae.contentEl=void 0,Ae.placeholderEl=void 0;else for(;Ae.el&&Ae.el.firstChild;)Ae.el.removeChild(Ae.el.firstChild)}onSelectSlide(_e,Ae,ke){ke.state===lt.Ready&&this.playVideo()}onUnselectSlide(_e,Ae,ke){var Le,Fe;if(ke.type===Tt){try{(Fe=(Le=ke.el)===null||Le===void 0?void 0:Le.querySelector("video"))===null||Fe===void 0||Fe.pause()}catch{}return}let Ve;ke.type===Ct?Ve={method:"pause",value:"true"}:ke.type===Pt&&(Ve={event:"command",func:"pauseVideo"}),Ve&&ke.iframeEl&&ke.iframeEl.contentWindow&&ke.iframeEl.contentWindow.postMessage(JSON.stringify(Ve),"*"),ke.poller&&clearTimeout(ke.poller)}onDone(_e,Ae){_e.isCurrentSlide(Ae)&&!_e.isClosing()&&this.playVideo()}onRefresh(_e,Ae){Ae.slides.forEach(ke=>{ke.el&&(this.resizeIframe(ke),this.setAspectRatio(ke))})}onMessage(_e){try{let Ae=JSON.parse(_e.data);if(_e.origin==="https://player.vimeo.com"){if(Ae.event==="ready")for(let ke of Array.from(document.getElementsByClassName("fancybox__iframe")))ke instanceof HTMLIFrameElement&&ke.contentWindow===_e.source&&(ke.dataset.ready="true")}else if(_e.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&Ae.event==="onReady"){const ke=document.getElementById(Ae.id);ke&&(ke.dataset.ready="true")}}catch{}}loadAjaxContent(_e){const Ae=this.instance.optionFor(_e,"src")||"";this.instance.showLoading(_e);const ke=this.instance,Le=new XMLHttpRequest;ke.showLoading(_e),Le.onreadystatechange=function(){Le.readyState===XMLHttpRequest.DONE&&ke.state===rt.Ready&&(ke.hideLoading(_e),Le.status===200?ke.setContent(_e,Le.responseText):ke.setError(_e,Le.status===404?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const Fe=_e.ajax||null;Le.open(Fe?"POST":"GET",Ae+""),Le.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),Le.setRequestHeader("X-Requested-With","XMLHttpRequest"),Le.send(Fe),_e.xhr=Le}setInlineContent(_e){let Ae=null;if(E$1(_e.src))Ae=_e.src;else if(typeof _e.src=="string"){const ke=_e.src.split("#",2).pop();Ae=ke?document.getElementById(ke):null}if(Ae){if(_e.type==="clone"||Ae.closest(".fancybox__slide")){Ae=Ae.cloneNode(!0);const ke=Ae.dataset.animationName;ke&&(Ae.classList.remove(ke),delete Ae.dataset.animationName);let Le=Ae.getAttribute("id");Le=Le?`${Le}--clone`:`clone-${this.instance.id}-${_e.index}`,Ae.setAttribute("id",Le)}else if(Ae.parentNode){const ke=document.createElement("div");ke.classList.add("fancybox-placeholder"),Ae.parentNode.insertBefore(ke,Ae),_e.placeholderEl=ke}this.instance.setContent(_e,Ae)}else this.instance.setError(_e,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(_e){const{src:Ae,el:ke}=_e;if(!Ae||typeof Ae!="string"||!ke)return;ke.classList.add("is-loading");const Le=this.instance,Fe=document.createElement("iframe");Fe.className="fancybox__iframe",Fe.setAttribute("id",`fancybox__iframe_${Le.id}_${_e.index}`);for(const[Ie,je]of Object.entries(this.optionFor(_e,"iframeAttr")||{}))Fe.setAttribute(Ie,je);Fe.onerror=()=>{Le.setError(_e,"{{IFRAME_ERROR}}")},_e.iframeEl=Fe;const Ve=this.optionFor(_e,"preload");if(_e.type!=="iframe"||Ve===!1)return Fe.setAttribute("src",_e.src+""),Le.setContent(_e,Fe,!1),this.resizeIframe(_e),void Le.revealContent(_e);Le.showLoading(_e),Fe.onload=()=>
212{if(!Fe.src.length)return;const Ie=Fe.dataset.ready!=="true";Fe.dataset.ready="true",this.resizeIframe(_e),Ie?Le.revealContent(_e):Le.hideLoading(_e)},Fe.setAttribute("src",Ae),Le.setContent(_e,Fe,!1)}resizeIframe(_e){const{type:Ae,iframeEl:ke}=_e;if(Ae===Pt||Ae===Ct)return;const Le=ke==null?void 0:ke.parentElement;if(!ke||!Le)return;let Fe=_e.autoSize;Fe===void 0&&(Fe=this.optionFor(_e,"autoSize"));let Ve=_e.width||0,Ie=_e.height||0;Ve&&Ie&&(Fe=!1);const je=Le&&Le.style;if(_e.preload!==!1&&Fe!==!1&&je)try{const Ke=window.getComputedStyle(Le),$e=parseFloat(Ke.paddingLeft)+parseFloat(Ke.paddingRight),qe=parseFloat(Ke.paddingTop)+parseFloat(Ke.paddingBottom),ci=ke.contentWindow;if(ci){const gi=ci.document,Ai=gi.getElementsByTagName(xt)[0],oi=gi.body;je.width="",oi.style.overflow="hidden",Ve=Ve||Ai.scrollWidth+$e,je.width=`${Ve}px`,oi.style.overflow="",je.flex="0 0 auto",je.height=`${oi.scrollHeight}px`,Ie=Ai.scrollHeight+qe}}catch{}if(Ve||Ie){const Ke={flex:"0 1 auto",width:"",height:""};Ve&&Ve!=="auto"&&(Ke.width=`${Ve}
212px`),Ie&&Ie!=="auto"&&(Ke.height=`${Ie}px`),Object.assign(je,Ke)}}playVideo(){const _e=this.instance.getSlide();if(!_e)return;const{el:Ae}=_e;if(!Ae||!Ae.offsetParent||!this.optionFor(_e,"videoAutoplay"))return;if(_e.type===Tt)try{const Le=Ae.querySelector("video");if(Le){const Fe=Le.play();Fe!==void 0&&Fe.then(()=>{}).catch(Ve=>{Le.muted=!0,Le.play()})}}catch{}if(_e.type!==Pt&&_e.type!==Ct)return;const ke=()=>{if(_e.iframeEl&&_e.iframeEl.contentWindow){let Le;if(_e.iframeEl.dataset.ready==="true")return Le=_e.type===Pt?{event:"command",func:"playVideo"}:{method:"play",value:"true"},Le&&_e.iframeEl.contentWindow.postMessage(JSON.stringify(Le),"*"),void(_e.poller=void 0);_e.type===Pt&&(Le={event:"listening",id:_e.iframeEl.getAttribute("id")},_e.iframeEl.contentWindow.postMessage(JSON.stringify(Le),"*"))}_e.poller=setTimeout(ke,250)};ke()}processType(_e){if(_e.html)return _e.type=xt,_e.src=_e.html,void(_e.html="");const Ae=this.instance.optionFor(_e,"src","");if(!Ae||typeof Ae!="string")return;let ke=_e.type,Le=null;if(Le=Ae.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const Fe=this.optionFor(_e,Pt),{nocookie:Ve}=Fe,Ie=function(qe,ci){var gi={};for(var Ai in qe)Object.prototype.hasOwnProperty.call(qe,Ai)&&ci.indexOf(Ai)<0&&(gi[Ai]=qe[Ai]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function"){var oi=0;for(Ai=Object.getOwnPropertySymbols(qe);oi<Ai.length;oi++)ci.indexOf(Ai[oi])<0&&Object.prototype.propertyIsEnumerable.call(qe,Ai[oi])&&(gi[Ai[oi]]=qe[Ai[oi]])}return gi}(Fe,["nocookie"]),je=`www.youtube${Ve?"-nocookie":""}.com`,Ke=Mt(Ae,Ie),$e=encodeURIComponent(Le[2]);_e.videoId=$e,_e.src=`https://${je}/embed/${$e}?${Ke}`,_e.thumbSrc=_e.thumbSrc||`https://i.ytimg.com/vi/${$e}/mqdefault.jpg`,ke=Pt}else if(Le=Ae.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const Fe=Mt(Ae,this.optionFor(_e,Ct)),Ve=encodeURIComponent(Le[1]),Ie=Le[4]||"";_e.videoId=Ve,_e.src=`https://player.vimeo.com/video/${Ve}?${Ie?`h=${Ie}${Fe?"&":""}`:""}${Fe}`,ke=Ct}if(!ke&&_e.triggerEl){const Fe=_e.triggerEl.dataset.type;At.includes(Fe)&&(ke=Fe)}ke||typeof Ae=="string"&&(Ae.charAt(0)==="#"?ke="inline":(Le=Ae.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(ke=Tt,_e.videoFormat=_e.videoFormat||"video/"+(Le[1]==="ogv"?"ogg":Le[1])):Ae.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?ke=Et:Ae.match(/\.(pdf)((\?|#).*)?$/i)&&(ke="pdf")),(Le=Ae.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(_e.src=`https://maps.google.${Le[1]}/?ll=${(Le[2]?Le[2]+"&z="+Math.floor(parseFloat(Le[3]))+(Le[4]?Le[4].replace(/^\//,"&"):""):Le[4]+"").replace(/\?/,"&")}&output=${Le[4]&&Le[4].indexOf("layer=c")>0?"svembed":"embed"}`,ke=St):(Le=Ae.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(_e.src=`https://maps.google.${Le[1]}/maps?q=${Le[2].replace("query=","q=").replace("api=1","")}&output=embed`,ke=St),ke=ke||this.instance.option("defaultType"),_e.type=ke,ke===Et&&(_e.thumbSrc=_e.thumbSrc||_e.src)}setContent(_e){const Ae=this.instance.optionFor(_e,"src")||"";if(_e&&_e.type&&Ae){switch(_e.type){case xt:this.instance.setContent(_e,Ae);break;case Tt:const ke=this.option("videoTpl");ke&&this.instance.setContent(_e,ke.replace(/\{\{src\}\}/gi,Ae+"").replace(/\{\{format\}\}/gi,this.optionFor(_e,"videoFormat")||"").replace(/\{\{poster\}\}/gi,_e.poster||_e.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(_e);break;case"ajax":this.loadAjaxContent(_e);break;case"pdf":case St:case Pt:case Ct:_e.preload=!1;case"iframe":this.setIframeContent(_e)}this.setAspectRatio(_e)}}setAspectRatio(_e){const Ae=_e.contentEl;if(!(_e.el&&Ae&&_e.type&&[Pt,Ct,Tt].includes(_e.type)))return;let ke,Le=_e.width||"auto",Fe=_e.height||"auto";if(Le==="auto"||Fe==="auto"){ke=this.optionFor(_e,"videoRatio");const Ke=(ke+"").match(/(\d+)\s*\/\s?(\d+)/);ke=Ke&&Ke.length>2?parseFloat(Ke[1])/parseFloat(Ke[2]):parseFloat(ke+"")}else Le&&Fe&&(ke=Le/Fe);if(!ke)return;Ae.style.aspectRatio="",Ae.style.width="",Ae.style.height="",Ae.offsetHeight;const Ve=Ae.getBoundingClientRect(),Ie=Ve.width||1,je=Ve.height||1;Ae.style.aspectRatio=ke+"",ke<Ie/je?(Fe=Fe==="auto"?je:Math.min(je,Fe),Ae.style.width="auto",Ae.style.height=`${Fe}px`):(Le=Le==="auto"?Ie:Math.min(Ie,Le),Ae.style.width=`${Le}px`,Ae.style.height="auto")}attach(){const _e=this,Ae=_e.instance;Ae.on("Carousel.beforeInitSlide",_e.onBeforeInitSlide),Ae.on("Carousel.createSlide",_e.onCreateSlide),Ae.on("Carousel.selectSlide",_e.onSelectSlide),Ae.on("Carousel.unselectSlide",_e.onUnselectSlide),Ae.on("Carousel.Panzoom.refresh",_e.onRefresh),Ae.on("done",_e.onDone),Ae.on("clearContent",_e.onClearContent),window.addEventListener("message",_e.onMessage)}detach(){const _e=this,Ae=_e.instance;Ae.off("Carousel.beforeInitSlide",_e.onBeforeInitSlide),Ae.off("Carousel.createSlide",_e.onCreateSlide),Ae.off("Carousel.selectSlide",_e.onSelectSlide),Ae.off("Carousel.unselectSlide",_e.onUnselectSlide),Ae.off("Carousel.Panzoom.refresh",_e.onRefresh),Ae.off("done",_e.onDone),Ae.off("clearContent",_e.onClearContent),window.removeEventListener("message",_e.onMessage)}}Object.defineProperty(Lt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ot});
vendor: 15,587 bytes, line 212
212const zt="play",Rt="pause",kt="ready";class It extends _$1{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:kt}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==kt}onReady(_e){this.option("autoStart")&&(_e.isInfinite||_e.page<_e.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){document.visibilityState==="visible"?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var _e;this.inHover=!1,!((_e=this.instance.panzoom)===null||_e===void 0)&&_e.isResting&&this.resume()}onTimerEnd(){const _e=this.instance;this.state==="play"&&(_e.isInfinite||_e.page!==_e.pages.length-1?_e.slideNext():_e.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var _e;if(!this.option("showProgress"))return null;this.removeProgressBar();const Ae=this.instance,ke=((_e=Ae.pages[Ae.page])===null||_e===void 0?void 0:_e.slides)||[];let Le=this.option("progressParentEl");if(Le||(Le=(ke.length===1?ke[0].el:null)||Ae.viewport),!Le)return null;const Fe=document.createElement("div");return P$1(Fe,"f-progress"),Le.prepend(Fe),this.progressBar=Fe,Fe.offsetHeight,Fe}set(){const _e=this,Ae=_e.instance;if(Ae.pages.length<2||_e.timer)return;const ke=_e.option("timeout");_e.state=zt,P$1(Ae.container,"has-autoplay");let Le=_e.createProgressBar();Le&&(Le.style.transitionDuration=`${ke}ms`,Le.style.transform="scaleX(1)"),_e.timer=setTimeout(()=>{_e.timer=null,_e.inHover||_e.onTimerEnd()},ke),_e.emit("set")}clear(){const _e=this;_e.timer&&(clearTimeout(_e.timer),_e.timer=null),_e.removeProgressBar()}start(){const _e=this;if(_e.set(),_e.state!==kt){if(_e.option("pauseOnHover")){const Ae=_e.instance.container;Ae.addEventListener("mouseenter",_e.onMouseEnter,!1),Ae.addEventListener("mouseleave",_e.onMouseLeave,!1)}document.addEventListener("visibilitychange",_e.onVisibilityChange,!1),_e.emit("start")}}stop(){const _e=this,Ae=_e.state,ke=_e.instance.container;_e.clear(),_e.state=kt,ke.removeEventListener("mouseenter",_e.onMouseEnter,!1),ke.removeEventListener("mouseleave",_e.onMouseLeave,!1),document.removeEventListener("visibilitychange",_e.onVisibilityChange,!1),S$1(ke,"has-autoplay"),Ae!==kt&&_e.emit("stop")}pause(){const _e=this;_e.state===zt&&(_e.state=Rt,_e.clear(),_e.emit(Rt))}resume(){const _e=this,Ae=_e.instance;if(Ae.isInfinite||Ae.page!==Ae.pages.length-1)if(_e.state!==zt){if(_e.state===Rt&&!_e.inHover){const ke=new Event("resume",{bubbles:!0,cancelable:!0});_e.emit("resume",ke),ke.defaultPrevented||_e.set()}}else _e.set();else _e.stop()}toggle(){this.state===zt||this.state===Rt?this.stop():this.start()}attach(){const _e=this,Ae=_e.instance;Ae.on("ready",_e.onReady),Ae.on("Panzoom.startAnimation",_e.onChange),Ae.on("Panzoom.endAnimation",_e.onSettle),Ae.on("Panzoom.touchMove",_e.onChange)}detach(){const _e=this,Ae=_e.instance;Ae.off("ready",_e.onReady),Ae.off("Panzoom.startAnimation",_e.onChange),Ae.off("Panzoom.endAnimation",_e.onSettle),Ae.off("Panzoom.touchMove",_e.onChange),_e.stop()}}Object.defineProperty(It,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Dt extends _$1{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(_e){const Ae=_e.carousel;if(!Ae)return;const ke=_e.container;ke&&(Ae.options.Autoplay=u$1({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{_e.emit("startSlideshow")},set:Le=>{var Fe;ke.classList.add("has-slideshow"),((Fe=_e.getSlide())===null||Fe===void 0?void 0:Fe.state)!==lt.Ready&&Le.pause()},stop:()=>{ke.classList.remove("has-slideshow"),_e.isCompact||_e.endIdle(),_e.emit("endSlideshow")},resume:(Le,Fe)=>{var Ve,Ie,je;!Fe||!Fe.cancelable||((Ve=_e.getSlide())===null||Ve===void 0?void 0:Ve.state)===lt.Ready&&(!((je=(Ie=_e.carousel)===null||Ie===void 0?void 0:Ie.panzoom)===null||je===void 0)&&je.isResting)||Fe.preventDefault()}}}),Ae.attachPlugins({Autoplay:It}),this.ref=Ae.plugins.Autoplay)}onReady(_e){const Ae=_e.carousel,ke=this.ref;ke&&Ae&&this.option("playOnStart")&&(Ae.isInfinite||Ae.page<Ae.pages.length-1)&&ke.start()}onDone(_e,Ae){const ke=this.ref,Le=_e.carousel;if(!ke||!Le)return;const Fe=Ae.panzoom;Fe&&Fe.on("startAnimation",()=>{_e.isCurrentSlide(Ae)&&ke.stop()}),_e.isCurrentSlide(Ae)&&ke.resume()}onKeydown(_e,Ae){var ke;const Le=this.ref;Le&&Ae===this.option("key")&&((ke=document.activeElement)===null||ke===void 0?void 0:ke.nodeName)!=="BUTTON"&&Le.toggle()}attach(){const _e=this,Ae=_e.instance;Ae.on("Carousel.init",_e.onPrepare),Ae.on("Carousel.ready",_e.onReady),Ae.on("done",_e.onDone),Ae.on("keydown",_e.onKeydown)}detach(){const _e=this,Ae=_e.instance;Ae.off("Carousel.init",_e.onPrepare),Ae.off("Carousel.ready",_e.onReady),Ae.off("done",_e.onDone),Ae.off("keydown",_e.onKeydown)}}Object.defineProperty(Dt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:De=>{var _e;return((_e=De.instance.container)===null||_e===void 0?void 0:_e.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||De.instance.container},timeout:3e3}});const Ft={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var jt;(function(De){De[De.Init=0]="Init",De[De.Ready=1]="Ready",De[De.Hidden=2]="Hidden"})(jt||(jt={}));const Bt="isResting",Ht="thumbWidth",Nt="thumbHeight",_t="thumbClipWidth";let $t=class extends _$1{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:jt.Init})}get isModern(){return this.type==="modern"}onInitSlide(De,_e){const Ae=_e.el?_e.el.dataset:void 0;Ae&&(_e.thumbSrc=Ae.thumbSrc||_e.thumbSrc||"",_e[_t]=parseFloat(Ae[_t]||"")||_e[_t]||0,_e[Nt]=parseFloat(Ae.thumbHeight||"")||_e[Nt]||0),this.addSlide(_e)}onInitSlides(){this.build()}onChange(){var De;if(!this.isModern)return;const _e=this.container,Ae=this.instance,ke=Ae.panzoom,Le=this.carousel,Fe=Le?Le.panzoom:null,Ve=Ae.page;if(ke&&Le&&Fe){if(ke.isDragging){S$1(_e,this.cn(Bt));let Ie=((De=Le.pages[Ve])===null||De===void 0?void 0:De.pos)||0;Ie+=Ae.getProgress(Ve)*(this[_t]+this.thumbGap);let je=Fe.getBounds();-1*Ie>je.x.min&&-1*Ie<je.x.max&&Fe.panTo({x:-1*Ie,friction:.12})}else o$5(_e,this.cn(Bt),ke.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const De of this.instance.slides||[])this.resizeModernSlide(De);this.shiftModern()}isDisabled(){const De=this.option("minCount")||0;if(De){const Ae=this.instance;let ke=0;for(const Le of Ae.slides||[])Le.thumbSrc&&ke++;if(ke<De)return!0}const _e=this.option("type");return["modern","classic"].indexOf(_e)<0}getThumb(De){const _e=this.option("thumbTpl")||"";return{html:this.instance.localize(_e,[["%i",De.index],["%d",De.index+1],["%s",De.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(De){const _e=this.carousel;_e&&_e.addSlide(De.index,this.getThumb(De))}getSlides(){const De=[];for(const _e of this.instance.slides||[])De.push(this.getThumb(_e));return De}resizeModernSlide(De){this.isModern&&(De[Ht]=De[_t]&&De[Nt]?Math.round(this[Nt]*(De[_t]/De[Nt])):this[Ht])}updateProps(){const De=this.container;if(!De)return;const _e=Ae=>parseFloat(getComputedStyle(De).getPropertyValue("--f-thumb-"+Ae))||0;this.thumbGap=_e("gap"),this.thumbExtraGap=_e("extra-gap"),this[Ht]=_e("width")||40,this[_t]=_e("clip-width")||40,this[Nt]=_e("height")||40}build(){const De=this;if(De.state!==jt.Init)return;if(De.isDisabled())return void De.emit("disabled");const _e=De.instance,Ae=_e.container,ke=De.getSlides(),Le=De.option("type");De.type=Le;const Fe=De.option("parentEl"),Ve=De.cn("container"),Ie=De.cn("track");let je=Fe==null?void 0:Fe.querySelector("."+Ve);je||(je=document.createElement("div"),P$1(je,Ve),Fe?Fe.appendChild(je):Ae.after(je)),P$1(je,`is-${Le}`),P$1(Ae,De.cn("hasThumbs")),De.container=je,De.updateProps();let Ke=je.querySelector("."+Ie);Ke||(Ke=document.createElement("div"),P$1(Ke,De.cn("track")),je.appendChild(Ke)),De.track=Ke;const $e=u$1({},{track:Ke,infinite:!1,center:!0,fill:Le==="classic",dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},De.option("Carousel")||{},{Sync:{target:_e},slides:ke}),qe=new _e.constructor(je,$e);qe.on("createSlide",(ci,gi)=>{De.setProps(gi.index),De.emit("createSlide",gi,gi.el)}),qe.on("ready",()=>{De.shiftModern(),De.emit("ready")}),qe.on("refresh",()=>{De.shiftModern()}),qe.on("Panzoom.click",(ci,gi,Ai)=>{De.onClick(Ai)}),De.carousel=qe,De.state=jt.Ready}onClick(De){De.preventDefault(),De.stopPropagation();const _e=this.instance,{pages:Ae,page:ke}=_e,Le=oi=>{if(oi){const ii=oi.closest("[data-carousel-index]");if(ii)return[parseInt(ii.dataset.carouselIndex||"",10)||0,ii]}return[-1,void 0]},Fe=(oi,ii)=>{const hi=document.elementFromPoint(oi,ii);return hi?Le(hi):[-1,void 0]};let[Ve,Ie]=Le(De.target);if(Ve>-1)return;const je=this[_t],Ke=De.clientX,$e=De.clientY;let[qe,ci]=Fe(Ke-je,$e),[gi,Ai]=Fe(Ke+je,$e);ci&&Ai?(Ve=Math.abs(Ke-ci.getBoundingClientRect().right)<Math.abs(Ke-Ai.getBoundingClientRect().left)?qe:gi,Ve===ke&&(Ve=Ve===qe?gi:qe)):ci?Ve=qe:Ai&&(Ve=gi),Ve>-1&&Ae[Ve]&&_e.slideTo(Ve)}getShift(De){var _e;const Ae=this,{instance:ke}=Ae,Le=Ae.carousel;if(!ke||!Le)return 0;const Fe=Ae[Ht],Ve=Ae[_t],Ie=Ae.thumbGap,je=Ae.thumbExtraGap;if(!(!((_e=Le.slides[De])===null||_e===void 0)&&_e.el))return 0;const Ke=.5*(Fe-Ve),$e=ke.pages.length-1;let qe=ke.getProgress(0),ci=ke.getProgress($e),gi=ke.getProgress(De,!1,!0),Ai=0,oi=Ke+je+Ie;const ii=qe<0&&qe>-1,hi=ci>0&&ci<1;return De===0?(Ai=oi*Math.abs(qe),hi&&qe===1&&(Ai-=oi*Math.abs(ci))):De===$e?(Ai=oi*Math.abs(ci)*-1,ii&&ci===-1&&(Ai+=oi*Math.abs(qe))):ii||hi?(Ai=-1*oi,Ai+=oi*Math.abs(qe),Ai+=oi*(1-Math.abs(ci))):Ai=oi*gi,Ai}setProps(De){var _e;const Ae=this;if(!Ae.isModern)return;const{instance:ke}=Ae,Le=Ae.carousel;if(ke&&Le){const Fe=(_e=Le.slides[De])===null||_e===void 0?void 0:_e.el;if(Fe&&Fe.childNodes.length){let Ve=t$4(1-Math.abs(ke.getProgress(De))),Ie=t$4(Ae.getShift(De));Fe.style.setProperty("--progress",Ve?Ve+"":""),Fe.style.setProperty("--shift",Ie+"")}}}shiftModern(){const De=this;if(!De.isModern)return;const{instance:_e,track:Ae}=De,ke=_e.panzoom,Le=De.carousel;if(!(_e&&Ae&&ke&&Le)||ke.state===m$1.Init||ke.state===m$1.Destroy)return;for(const Ve of _e.slides)De.setProps(Ve.index);let Fe=(De[_t]+De.thumbGap)*(Le.slides.length||0);Ae.style.setProperty("--width",Fe+"")}cleanup(){const De=this;De.carousel&&De.carousel.destroy(),De.carousel=null,De.container&&De.container.remove(),De.container=null,De.track&&De.track.remove(),De.track=null,De.state=jt.Init,S$1(De.instance.container,De.cn("hasThumbs"))}attach(){const De=this,_e=De.instance;_e.on("initSlide",De.onInitSlide),_e.state===B$1.Init?_e.on("initSlides",De.onInitSlides):De.onInitSlides(),_e.on(["change","Panzoom.afterTransform"],De.onChange),_e.on("Panzoom.refresh",De.onRefresh)}detach(){const De=this,_e=De.instance;_e.off("initSlide",De.onInitSlide),_e.off("initSlides",De.onInitSlides),_e.off(["change","Panzoom.afterTransform"],De.onChange),_e.off("Panzoom.refresh",De.onRefresh),De.cleanup()}};Object.defineProperty($t,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ft});const Wt=Object.assign(Object.assign({},Ft),{key:"t",showOnStart:!0,parentEl:null}),Xt="is-masked",qt="aria-hidden";class Yt extends _$1{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const _e=this.ref;return _e&&!_e.isDisabled()}get isHidden(){return this.hidden}onClick(_e,Ae){Ae.stopPropagation()}onCreateSlide(_e,Ae){var ke,Le,Fe;const Ve=((Fe=(Le=(ke=this.instance)===null||ke===void 0?void 0:ke.carousel)===null||Le===void 0?void 0:Le.slides[Ae.index])===null||Fe===void 0?void 0:Fe.type)||"",Ie=Ae.el;if(Ie&&Ve){let je=`for-${Ve}`;["video","youtube","vimeo","html5video"].includes(Ve)&&(je+=" for-video"),P$1(Ie,je)}}onInit(){var _e;const Ae=this,ke=Ae.instance,Le=ke.carousel;if(Ae.ref||!Le)return;const Fe=Ae.option("parentEl")||ke.footer||ke.container;if(!Fe)return;const Ve=u$1({},Ae.options,{parentEl:Fe,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:ke.option("Carousel.friction")||0}},on:{ready:Ie=>{const je=Ie.container;je&&this.hidden&&(Ae.refresh(),je.style.transition="none",Ae.hide(),je.offsetHeight,queueMicrotask(()=>{je.style.transition="",Ae.show()}))}}});Ve.Carousel=Ve.Carousel||{},Ve.Carousel.on=u$1(((_e=Ae.options.Carousel)===null||_e===void 0?void 0:_e.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),Le.options.Thumbs=Ve,Le.attachPlugins({Thumbs:$t}),Ae.ref=Le.plugins.Thumbs,Ae.option("showOnStart")||(Ae.ref.state=jt.Hidden,Ae.hidden=!0)}onResize(){var _e;const Ae=(_e=this.ref)===null||_e===void 0?void 0:_e.container;Ae&&(Ae.style.maxHeight="")}onKeydown(_e,Ae){const ke=this.option("key");ke&&ke===Ae&&this.toggle()}toggle(){const _e=this.ref;if(_e&&!_e.isDisabled())return _e.state===jt.Hidden?(_e.state=jt.Init,void _e.build()):void(this.hidden?this.show():this.hide())}show(){const _e=this.ref;if(!_e||_e.isDisabled())return;const Ae=_e.container;Ae&&(this.refresh(),Ae.offsetHeight,Ae.removeAttribute(qt),Ae.classList.remove(Xt),this.hidden=!1)}hide(){const _e=this.ref,Ae=_e&&_e.container;Ae&&(this.refresh(),Ae.offsetHeight,Ae.classList.add(Xt),Ae.setAttribute(qt,"true")),this.hidden=!0}refresh(){const _e=this.ref;if(!_e||!_e.state)return;const Ae=_e.container,ke=(Ae==null?void 0:Ae.firstChild)||null;Ae&&ke&&ke.childNodes.length&&(Ae.style.maxHeight=`${ke.getBoundingClientRect().height}px`)}
212attach(){const _e=this,Ae=_e.instance;Ae.state===rt.Init?Ae.on("Carousel.init",_e.onInit):_e.onInit(),Ae.on("resize",_e.onResize),Ae.on("keydown",_e.onKeydown)}detach(){var _e;const Ae=this,ke=Ae.instance;ke.off("Carousel.init",Ae.onInit),ke.off("resize",Ae.onResize),ke.off("keydown",Ae.onKeydown),(_e=ke.carousel)===null||_e===void 0||_e.detachPlugins(["Thumbs"]),Ae.ref=null}}Object.defineProperty(Yt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Wt});const Vt={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var Zt;(function(De){De[De.Init=0]="Init",De[De.Ready=1]="Ready",De[De.Disabled=2]="Disabled"})(Zt||(Zt={}));const Ut={absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null},Gt={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Kt="has-toolbar",Jt="fancybox__toolbar";class Qt extends _$1{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Zt.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(_e){var Ae;if(!_e.carousel)return;let ke=this.option("display"),Le=this.option("absolute"),Fe=this.option("enabled");if(Fe==="auto"){const Ke=this.instance.carousel;let $e=0;
212if(Ke)for(const qe of Ke.slides)(qe.panzoom||qe.type==="image")&&$e++;$e||(Fe=!1)}Fe||(ke=void 0);let Ve=0;const Ie={left:[],middle:[],right:[]};if(ke)for(const Ke of["left","middle","right"])for(const $e of ke[Ke]){const qe=this.createEl($e);qe&&((Ae=Ie[Ke])===null||Ae===void 0||Ae.push(qe),Ve++)}let je=null;if(Ve&&(je=this.createContainer()),je){for(const[Ke,$e]of Object.entries(Ie)){const qe=document.createElement("div");P$1(qe,Jt+"__column is-"+Ke);for(const ci of $e)qe.appendChild(ci);Le!=="auto"||Ke!=="middle"||$e.length||(Le=!0),je.appendChild(qe)}Le===!0&&P$1(je,"is-absolute"),this.state=Zt.Ready,this.onRefresh()}else this.state=Zt.Disabled}onClick(_e){var Ae,ke;const Le=this.instance,Fe=Le.getSlide(),Ve=Fe==null?void 0:Fe.panzoom,Ie=_e.target,je=Ie&&E$1(Ie)?Ie.dataset:null;if(!je)return;if(je.fancyboxToggleThumbs!==void 0)return _e.preventDefault(),_e.stopPropagation(),void((Ae=Le.plugins.Thumbs)===null||Ae===void 0||Ae.toggle());if(je.fancyboxToggleFullscreen!==void 0)return _e.preventDefault(),_e.stopPropagation(),void this.instance.toggleFullscreen();if(je.fancyboxToggleSlideshow!==void 0){_e.preventDefault(),_e.stopPropagation();const qe=(ke=Le.carousel)===null||ke===void 0?void 0:ke.plugins.Autoplay;let ci=qe.isActive;return Ve&&Ve.panMode==="mousemove"&&!ci&&Ve.reset(),void(ci?qe.stop():qe.start())}const Ke=je.panzoomAction,$e=je.panzoomChange;if(($e||Ke)&&(_e.preventDefault(),_e.stopPropagation()),$e){let qe={};try{qe=JSON.parse($e)}catch{}Ve&&Ve.applyChange(qe)}else Ke&&Ve&&Ve[Ke]&&Ve[Ke]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const _e=this.container;if(!_e)return;const Ae=this.instance.getSlide();if(!Ae||Ae.state!==lt.Ready)return;const ke=Ae&&!Ae.error&&Ae.panzoom;for(const Ve of _e.querySelectorAll("[data-panzoom-action]"))ke?(Ve.removeAttribute("disabled"),Ve.removeAttribute("tabindex")):(Ve.setAttribute("disabled",""),Ve.setAttribute("tabindex","-1"));let Le=ke&&ke.canZoomIn(),Fe=ke&&ke.canZoomOut();for(const Ve of _e.querySelectorAll('[data-panzoom-action="zoomIn"]'))Le?(Ve.removeAttribute("disabled"),Ve.removeAttribute("tabindex")):(Ve.setAttribute("disabled",""),Ve.setAttribute("tabindex","-1"));for(const Ve of _e.querySelectorAll('[data-panzoom-action="zoomOut"]'))Fe?(Ve.removeAttribute("disabled"),Ve.removeAttribute("tabindex")):(Ve.setAttribute("disabled",""),Ve.setAttribute("tabindex","-1"));for(const Ve of _e.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){Fe||Le?(Ve.removeAttribute("disabled"),Ve.removeAttribute("tabindex")):(Ve.setAttribute("disabled",""),Ve.setAttribute("tabindex","-1"));const Ie=Ve.querySelector("g");Ie&&(Ie.style.display=Le?"":"none")}}onDone(_e,Ae){var ke;(ke=Ae.panzoom)===null||ke===void 0||ke.on("afterTransform",()=>{this.instance.isCurrentSlide(Ae)&&this.onRefresh()}),this.instance.isCurrentSlide(Ae)&&this.onRefresh()}createContainer(){const _e=this.instance.container;if(!_e)return null;const Ae=this.option("parentEl")||_e;let ke=Ae.querySelector("."+Jt);return ke||(ke=document.createElement("div"),P$1(ke,Jt),Ae.prepend(ke)),ke.addEventListener("click",this.onClick,{passive:!1,capture:!0}),_e&&P$1(_e,Kt),this.container=ke,ke}createEl(_e){const Ae=this.instance,ke=Ae.carousel;if(!ke||_e==="toggleFS"||_e==="fullscreen"&&!ot())return null;let Le=null;const Fe=ke.slides.length||0;let Ve=0,Ie=0;for(const Ke of ke.slides)(Ke.panzoom||Ke.type==="image")&&Ve++,(Ke.type==="image"||Ke.downloadSrc)&&Ie++;if(Fe<2&&["infobar","prev","next"].includes(_e))return Le;if(Vt[_e]!==void 0&&!Ve||_e==="download"&&!Ie)return null;if(_e==="thumbs"){const Ke=Ae.plugins.Thumbs;if(!Ke||!Ke.isEnabled)return null}if(_e==="slideshow"&&(!ke.plugins.Autoplay||Fe<2))return null;if(Vt[_e]!==void 0){const Ke=Vt[_e];Le=document.createElement("button"),Le.setAttribute("title",this.instance.localize(`{{${_e.toUpperCase()}}}`)),P$1(Le,"f-button"),Ke.action&&(Le.dataset.panzoomAction=Ke.action),Ke.change&&(Le.dataset.panzoomChange=JSON.stringify(Ke.change)),Le.appendChild(n$4(this.instance.localize(Ke.icon)))}else{const Ke=(this.option("items")||[])[_e];Ke&&(Le=n$4(this.instance.localize(Ke.tpl)),typeof Ke.click=="function"&&Le.addEventListener("click",$e=>{$e.preventDefault(),$e.stopPropagation(),typeof Ke.click=="function"&&Ke.click.call(this,this,$e)}))}const je=Le==null?void 0:Le.querySelector("svg");if(je)for(const[Ke,$e]of Object.entries(Gt))je.getAttribute(Ke)||je.setAttribute(Ke,String($e));return Le}removeContainer(){const _e=this.container;_e&&_e.remove(),this.container=null,this.state=Zt.Disabled;const Ae=this.instance.container;Ae&&S$1(Ae,Kt)}attach(){const _e=this,Ae=_e.instance;Ae.on("Carousel.initSlides",_e.onReady),Ae.on("done",_e.onDone),Ae.on(["reveal","Carousel.change"],_e.onChange),_e.onReady(_e.instance)}detach(){const _e=this,Ae=_e.instance;Ae.off("Carousel.initSlides",_e.onReady),Ae.off("done",_e.onDone),Ae.off(["reveal","Carousel.change"],_e.onChange),_e.removeContainer()}}Object.defineProperty(Qt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ut});const te={Hash:class extends _$1{onReady(){ht=!1}onChange(De){ut&&clearTimeout(ut);const{hash:_e}
vendor: 8,251 bytes, line 212
212=pt(),{hash:Ae}=ft(),ke=De.isOpeningSlide(De.getSlide());ke&&(ct=Ae===_e?"":Ae),_e&&_e!==Ae&&(ut=setTimeout(()=>{try{if(De.state===rt.Ready){let Le="replaceState";ke&&!dt&&(Le="pushState",dt=!0),window.history[Le]({},document.title,window.location.pathname+window.location.search+_e)}}catch{}},300))}onClose(De){if(ut&&clearTimeout(ut),!ht&&dt)return dt=!1,ht=!1,void window.history.back();if(!ht)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(ct||""))}catch{}}attach(){const De=this.instance;De.on("ready",this.onReady),De.on(["Carousel.ready","Carousel.change"],this.onChange),De.on("close",this.onClose)}detach(){const De=this.instance;De.off("ready",this.onReady),De.off(["Carousel.ready","Carousel.change"],this.onChange),De.off("close",this.onClose)}static parseURL(){return ft()}static startFromUrl(){gt()}static destroy(){window.removeEventListener("hashchange",vt,!1)}},Html:Lt,Images:wt,Slideshow:Dt,Thumbs:Yt,Toolbar:Qt},ee="with-fancybox",ie="hide-scrollbar",ne="--fancybox-scrollbar-compensate",se="--fancybox-body-margin",oe="aria-hidden",ae="is-using-tab",re="is-animated",le="is-compact",ce="is-loading",he="is-opening",de="has-caption",ue="disabled",pe="tabindex",fe="download",ge="href",me="src",ve=De=>typeof De=="string",be=function(){var De=window.getSelection();return!!De&&De.type==="Range"};let ye,we=null,xe=null,Ee=0,Se=0,Pe=0,Ce=0;const Te=new Map;let Me=0;class Oe extends g$1{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(_e=[],Ae={},ke={}){super(Ae),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:rt.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),ye||(ye=ot()),this.id=Ae.id||++Me,Te.set(this.id,this),this.userSlides=_e,this.userPlugins=ke,queueMicrotask(()=>{this.init()})}init(){if(this.state===rt.Destroy)return;this.state=rt.Init,this.attachPlugins(Object.assign(Object.assign({},Oe.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),this.option("hideScrollbar")===!0&&(()=>{if(!et)return;const Ae=document,ke=Ae.body,Le=Ae.documentElement;if(ke.classList.contains(ie))return;let Fe=window.innerWidth-Le.getBoundingClientRect().width;const Ve=parseFloat(window.getComputedStyle(ke).marginRight);Fe<0&&(Fe=0),Le.style.setProperty(ne,`${Fe}px`),Ve&&ke.style.setProperty(se,`${Ve}px`),ke.classList.add(ie)})(),this.initLayout(),this.scale();const _e=()=>{this.initCarousel(this.userSlides),this.state=rt.Ready,this.attachEvents(),this.emit("ready"),setTimeout(()=>{this.container&&this.container.setAttribute(oe,"false")},16)};this.option("Fullscreen.autoStart")&&ye&&!ye.isFullscreen()?ye.request().then(()=>{this.startedFs=!0,_e()}).catch(()=>_e()):_e()}initLayout(){var _e,Ae;const ke=this.option("parentEl")||document.body,Le=n$4(this.localize(this.option("tpl.main")||""));if(Le){if(Le.setAttribute("id",`fancybox-${this.id}`),Le.setAttribute("aria-label",this.localize("{{MODAL}}")),Le.classList.toggle(le,this.isCompact),P$1(Le,this.option("mainClass")||""),P$1(Le,he),this.container=Le,this.footer=Le.querySelector(".fancybox__footer"),ke.appendChild(Le),P$1(document.documentElement,ee),we&&xe||(we=document.createElement("span"),P$1(we,"fancybox-focus-guard"),we.setAttribute(pe,"0"),we.setAttribute(oe,"true"),we.setAttribute("aria-label","Focus guard"),xe=we.cloneNode(),(_e=Le.parentElement)===null||_e===void 0||_e.insertBefore(we,Le),(Ae=Le.parentElement)===null||Ae===void 0||Ae.append(xe)),Le.addEventListener("mousedown",Fe=>{Ee=Fe.pageX,Se=Fe.pageY,S$1(Le,ae)}),this.option("closeExisting"))for(const Fe of Te.values())Fe.id!==this.id&&Fe.close();else this.option("animated")&&(P$1(Le,re),setTimeout(()=>{this.isClosing()||S$1(Le,re)},350));this.emit("initLayout")}}initCarousel(_e){const Ae=this.container;if(!Ae)return;const ke=Ae.querySelector(".fancybox__carousel");if(!ke)return;const Le=this.carousel=new Q(ke,u$1({},{slides:_e,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));Le.on("*",(Fe,Ve,...Ie)=>{this.emit(`Carousel.${Ve}`,Fe,...Ie)}),Le.on(["ready","change"],()=>{this.manageCaption()}),this.on("Carousel.removeSlide",(Fe,Ve,Ie)=>{this.clearContent(Ie),Ie.state=void 0}),Le.on("Panzoom.touchStart",()=>{var Fe,Ve;this.isCompact||this.endIdle(),!((Fe=document.activeElement)===null||Fe===void 0)&&Fe.closest(".f-thumbs")&&((Ve=this.container)===null||Ve===void 0||Ve.focus())}),Le.on("settle",()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()}),this.option("dragToClose")&&(Le.on("Panzoom.afterTransform",(Fe,Ve)=>{const Ie=this.getSlide();if(Ie&&e$5(Ie.el))return;const je=this.container;if(je){const Ke=Math.abs(Ve.current.f),$e=Ke<1?"":Math.max(.5,Math.min(1,1-Ke/Ve.contentRect.fitHeight*1.5));je.style.setProperty("--fancybox-ts",$e?"0s":""),je.style.setProperty("--fancybox-opacity",$e+"")}}),Le.on("Panzoom.touchEnd",(Fe,Ve,Ie)=>{var je;const Ke=this.getSlide();if(Ke&&e$5(Ke.el)||Ve.isMobile&&document.activeElement&&["TEXTAREA","INPUT"].indexOf((je=document.activeElement)===null||je===void 0?void 0:je.nodeName)!==-1)return;const $e=Math.abs(Ve.dragOffset.y);Ve.lockedAxis==="y"&&($e>=200||$e>=50&&Ve.dragOffset.time<300)&&(Ie&&Ie.cancelable&&Ie.preventDefault(),this.close(Ie,"f-throwOut"+(Ve.current.f<0?"Up":"Down")))})),Le.on("change",Fe=>{var Ve;let Ie=(Ve=this.getSlide())===null||Ve===void 0?void 0:Ve.triggerEl;if(Ie){const je=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:Fe.page});Ie.dispatchEvent(je)}}),Le.on(["refresh","change"],Fe=>{const Ve=this.container;if(!Ve)return;for(const Ke of Ve.querySelectorAll("[data-fancybox-current-index]"))Ke.innerHTML=Fe.page+1;for(const Ke of Ve.querySelectorAll("[data-fancybox-count]"))Ke.innerHTML=Fe.pages.length;if(!Fe.isInfinite){for(const Ke of Ve.querySelectorAll("[data-fancybox-next]"))Fe.page<Fe.pages.length-1?(Ke.removeAttribute(ue),Ke.removeAttribute(pe)):(Ke.setAttribute(ue,""),Ke.setAttribute(pe,"-1"));for(const Ke of Ve.querySelectorAll("[data-fancybox-prev]"))Fe.page>0?(Ke.removeAttribute(ue),Ke.removeAttribute(pe)):(Ke.setAttribute(ue,""),Ke.setAttribute(pe,"-1"))}const Ie=this.getSlide();if(!Ie)return;let je=Ie.downloadSrc||"";je||Ie.type!=="image"||Ie.error||!ve(Ie[me])||(je=Ie[me]);for(const Ke of Ve.querySelectorAll("[data-fancybox-download]")){const $e=Ie.downloadFilename;je?(Ke.removeAttribute(ue),Ke.removeAttribute(pe),Ke.setAttribute(ge,je),Ke.setAttribute(fe,$e||je),Ke.setAttribute("target","_blank")):(Ke.setAttribute(ue,""),Ke.setAttribute(pe,"-1"),Ke.removeAttribute(ge),Ke.removeAttribute(fe))}}
212),this.emit("initCarousel")}attachEvents(){const _e=this,Ae=_e.container;if(!Ae)return;Ae.addEventListener("click",_e.onClick,{passive:!1,capture:!1}),Ae.addEventListener("wheel",_e.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",_e.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",_e.onVisibilityChange,!1),document.addEventListener("mousemove",_e.onMousemove),_e.option("trapFocus")&&document.addEventListener("focus",_e.onFocus,!0),window.addEventListener("resize",_e.onResize);const ke=window.visualViewport;ke&&(ke.addEventListener("scroll",_e.onResize),ke.addEventListener("resize",_e.onResize))}detachEvents(){const _e=this,Ae=_e.container;if(!Ae)return;document.removeEventListener("keydown",_e.onKeydown,{passive:!1,capture:!0}),Ae.removeEventListener("wheel",_e.onWheel,{passive:!1,capture:!1}),Ae.removeEventListener("click",_e.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",_e.onMousemove),window.removeEventListener("resize",_e.onResize);const ke=window.visualViewport;ke&&(ke.removeEventListener("resize",_e.onResize),ke.removeEventListener("scroll",_e.onResize)),document.removeEventListener("visibilitychange",_e.onVisibilityChange,!1),document.removeEventListener("focus",_e.onFocus,!0)}scale(){const _e=this.container;if(!_e)return;const Ae=window.visualViewport,ke=Math.max(1,(Ae==null?void 0:Ae.scale)||1);let Le="",Fe="",Ve="";if(Ae&&ke>1){let Ie=`${Ae.offsetLeft}px`,je=`${Ae.offsetTop}px`;Le=Ae.width*ke+"px",Fe=Ae.height*ke+"px",Ve=`translate3d(${Ie}, ${je}, 0) scale(${1/ke})`}_e.style.transform=Ve,_e.style.width=Le,_e.style.height=Fe}onClick(_e){var Ae;const{container:ke,isCompact:Le}=this;if(!ke||this.isClosing())return;!Le&&this.option("idle")&&this.resetIdle();const Fe=_e.composedPath()[0];if(Fe.closest(".fancybox-spinner")||Fe.closest("[data-fancybox-close]"))return _e.preventDefault(),void this.close(_e);if(Fe.closest("[data-fancybox-prev]"))return _e.preventDefault(),void this.prev();if(Fe.closest("[data-fancybox-next]"))return _e.preventDefault(),void this.next();if(_e.type==="click"&&_e.detail===0||Math.abs(_e.pageX-Ee)>30||Math.abs(_e.pageY-Se)>30)return;const Ve=document.activeElement;if(be()&&Ve&&ke.contains(Ve))return;if(Le&&((Ae=this.getSlide())===null||Ae===void 0?void 0:Ae.type)==="image")return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout(()=>{this.toggleIdle(),this.clickTimer=null},350));if(this.emit("click",_e),_e.defaultPrevented)return;let Ie=!1;if(Fe.closest(".fancybox__content")){if(Ve){if(Ve.closest("[contenteditable]"))return;Fe.matches(nt)||Ve.blur()}if(be())return;Ie=this.option("contentClick")}else Fe.closest(".fancybox__carousel")&&!Fe.matches(nt)&&(Ie=this.option("backdropClick"));Ie==="close"?(_e.preventDefault(),this.close(_e)):Ie==="next"?(_e.preventDefault(),this.next()):Ie==="prev"&&(_e.preventDefault(),this.prev())}onWheel(_e){const Ae=_e.target;let ke=this.option("wheel",_e);Ae.closest(".fancybox__thumbs")&&(ke="slide");const Le=ke==="slide",Fe=[-_e.deltaX||0,-_e.deltaY||0,-_e.detail||0].reduce(function(je,Ke){return Math.abs(Ke)>Math.abs(je)?Ke:je}),Ve=Math.max(-1,Math.min(1,Fe)),Ie=Date.now();this.pwt&&Ie-this.pwt<300?Le&&_e.preventDefault():(this.pwt=Ie,this.emit("wheel",_e,Ve),_e.defaultPrevented||(ke==="close"?(_e.preventDefault(),this.close(_e)):ke==="slide"&&(i$3(Ae)||(_e.preventDefault(),this[Ve>0?"prev":"next"]()))))}onScroll(){window.scrollTo(Pe,Ce)}onKeydown(_e){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const Ae=_e.key,ke=this.option("keyboard");if(!ke)return;const Le=_e.composedPath()[0],Fe=document.activeElement&&document.activeElement.classList,Ve=Fe&&Fe.contains("f-button")||Le.dataset.carouselPage||Le.dataset.carouselIndex;if(Ae!=="Escape"&&!Ve&&E$1(Le)&&(Le.isContentEditable||["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(Le.nodeName)!==-1)||(_e.key==="Tab"?P$1(this.container,ae):S$1(this.container,ae),_e.ctrlKey||_e.altKey||_e.shiftKey))return;this.emit("keydown",Ae,_e);const Ie=ke[Ae];Ie&&typeof this[Ie]=="function"&&(_e.preventDefault(),this[Ie]())}onResize(){const _e=this.container;if(!_e)return;const Ae=this.isCompact;_e.classList.toggle(le,Ae),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit
vendor: 4,139 bytes, line 212
212("resize")}onFocus(_e){this.isTopmost()&&this.checkFocus(_e)}onMousemove(_e){this.prevMouseMoveEvent=_e,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){document.visibilityState==="visible"?this.checkFocus():this.endIdle()}manageCloseBtn(_e){const Ae=this.optionFor(_e,"closeButton")||!1;if(Ae==="auto"){const Le=this.plugins.Toolbar;if(Le&&Le.state===Zt.Ready)return}if(!Ae||!_e.contentEl||_e.closeBtnEl)return;const ke=this.option("tpl.closeButton");if(ke){const Le=n$4(this.localize(ke));_e.closeBtnEl=_e.contentEl.appendChild(Le),_e.el&&P$1(_e.el,"has-close-btn")}}manageCaption(_e=void 0){var Ae,ke;const Le="fancybox__caption",Fe=this.container;if(!Fe)return;S$1(Fe,de);const Ve=this.isCompact||this.option("commonCaption"),Ie=!Ve;if(this.caption&&this.stop(this.caption),Ie&&this.caption&&(this.caption.remove(),this.caption=null),Ve&&!this.caption)for(const qe of((Ae=this.carousel)===null||Ae===void 0?void 0:Ae.slides)||[])qe.captionEl&&(qe.captionEl.remove(),qe.captionEl=void 0,S$1(qe.el,de),(ke=qe.el)===null||ke===void 0||ke.removeAttribute("aria-labelledby"));if(_e||(_e=this.getSlide()),!_e||Ve&&!this.isCurrentSlide(_e))return;const je=_e.el;let Ke=this.optionFor(_e,"caption","");if(!Ke)return void(Ve&&this.caption&&this.animate(this.caption,"f-fadeOut",()=>{this.caption&&(this.caption.innerHTML="")}));let $e=null;if(Ie){if($e=_e.captionEl||null,je&&!$e){const qe=Le+`_${this.id}_${_e.index}`;$e=document.createElement("div"),P$1($e,Le),$e.setAttribute("id",qe),_e.captionEl=je.appendChild($e),P$1(je,de),je.setAttribute("aria-labelledby",qe)}}else $e=this.caption,$e||($e=Fe.querySelector("."+Le)),!$e&&($e=document.createElement("div"),$e.dataset.fancyboxCaption="",P$1($e,Le),(this.footer||Fe).prepend($e)),P$1(Fe,de),this.caption=$e;$e&&($e.innerHTML="",ve(Ke)||typeof Ke=="number"?$e.innerHTML=Ke+"":Ke instanceof HTMLElement&&$e.appendChild(Ke))}checkFocus(_e){this.focus(_e)}focus(_e){var Ae;if(this.ignoreFocusChange)return;const ke=document.activeElement||null,Le=(_e==null?void 0:_e.target)||null,Fe=this.container,Ve=(Ae=this.carousel)===null||Ae===void 0?void 0:Ae.viewport;if(!Fe||!Ve||!_e&&ke&&Fe.contains(ke))return;const Ie=this.getSlide(),je=Ie&&Ie.state===lt.Ready?Ie.el:null;if(!je||je.contains(ke)||Fe===ke)return;_e&&_e.cancelable&&_e.preventDefault(),this.ignoreFocusChange=!0;const Ke=Array.from(Fe.querySelectorAll(nt));let $e=[],qe=null;for(let gi of Ke){const Ai=!gi.offsetParent||!!gi.closest('[aria-hidden="true"]'),oi=je&&je.contains(gi),ii=!Ve.contains(gi);if(gi===Fe||(oi||ii)&&!Ai){$e.push(gi);const hi=gi.dataset.origTabindex;hi!==void 0&&hi&&(gi.tabIndex=parseFloat(hi)),gi.removeAttribute("data-orig-tabindex"),!gi.hasAttribute("autoFocus")&&qe||(qe=gi)}else{const hi=gi.dataset.origTabindex===void 0?gi.getAttribute("tabindex")||"":gi.dataset.origTabindex;hi&&(gi.dataset.origTabindex=hi),gi.tabIndex=-1}}let ci=null;_e?(!Le||$e.indexOf(Le)<0)&&(ci=qe||Fe,$e.length&&(ke===xe?ci=$e[0]:this.lastFocus!==Fe&&ke!==we||(ci=$e[$e.length-1]))):ci=Ie&&Ie.type==="image"?Fe:qe||Fe,ci&&st(ci),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const _e=this.carousel;_e&&_e.pages.length>1&&_e.slideNext()}prev(){const _e=this.carousel;_e&&_e.pages.length>1&&_e.slidePrev()}jumpTo(..._e){this.carousel&&this.carousel.slideTo(..._e)}isTopmost(){var _e;return((_e=Oe.getInstance())===null||_e===void 0?void 0:_e.id)==this.id}animate(_e=null,Ae="",ke){if(!_e||!Ae)return void(ke&&ke());this.stop(_e);const Le=Fe=>{Fe.target===_e&&_e.dataset.animationName&&(_e.removeEventListener("animationend",Le),delete _e.dataset.animationName,ke&&ke(),S$1(_e,Ae))};_e.dataset.animationName=Ae,_e.addEventListener("animationend",Le),P$1(_e,Ae)}stop(_e){_e&&_e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:_e}))}setContent(_e,Ae="",ke=!0){if(this.isClosing())return;const Le=_e.el;if(!Le)return;let Fe=null;if(E$1(Ae)?Fe=Ae:(Fe=n$4(Ae+""),E$1(Fe)||(Fe=document.createElement("div"),Fe.innerHTML=Ae+"")),["img","picture","iframe","video","audio"].includes(Fe.nodeName.toLowerCase())){const Ve=document.createElement("div");
212Ve.appendChild(Fe),Fe=Ve}E$1(Fe)&&_e.filter&&!_e.error&&(Fe=Fe.querySelector(_e.filter)),Fe&&E$1(Fe)?(P$1(Fe,"fancybox__content"),_e.id&&Fe.setAttribute("id",_e.id),Le.classList.add(`has-${_e.error?"error":_e.type||"unknown"}`),Le.prepend(Fe),Fe.style.display==="none"&&(Fe.style.display=""),getComputedStyle(Fe).getPropertyValue("display")==="none"&&(Fe.style.display=_e.display||this.option("defaultDisplay")||"flex"),_e.contentEl=Fe,ke&&this.revealContent(_e),this.manageCloseBtn(_e),this.manageCaption(_e)):this.setError(_e,"{{ELEMENT_NOT_FOUND}}")}revealContent(_e,Ae){const ke=_e.el,Le=_e.contentEl;ke&&Le&&(this.emit("reveal",_e),this.hideLoading(_e),_e.state=lt.Opening,(Ae=this.isOpeningSlide(_e)?Ae===void 0?this.optionFor(_e,"showClass"):Ae:"f-fadeIn")?this.animate(Le,Ae,()=>{this.done(_e)}):this.done(_e))}done(_e){this.isClosing()||(_e.state=lt.Ready,this.emit("done",_e),P$1(_e.el,"is-done"),this.isCurrentSlide(_e)&&this.option("autoFocus")&&queueMicrotask(()=>{var Ae;(Ae=_e.panzoom)===null||Ae===void 0||Ae.updateControls(),this.option("autoFocus")&&this.focus()}),this.isOpeningSlide(_e)&&(S$1(this.container,he),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(_e){const Ae=this.getSlide();return!(!_e||!Ae)&&Ae.index===_e.index}isOpeningSlide(_e){var Ae,ke;return((Ae=this.carousel)===null||Ae===void 0?void 0:Ae.prevPage)===null&&_e&&_e.index===((ke=this.getSlide())===null||ke===void 0?void 0:ke.index)}showLoading(_e){_e.state=lt.Loading;const Ae=_e.el;Ae&&(P$1(Ae,ce),this.emit("loading",_e),_e.spinnerEl||setTimeout(()=>{if(!this.isClosing()&&!_e.spinnerEl&&_e.state===lt.Loading){let ke=n$4(x$2);P$1(ke,"fancybox-spinner"),_e.spinnerEl=ke,Ae.prepend(ke),this.animate(ke,"f-fadeIn")}},250))}hideLoading(_e){const Ae=_e.el;if(!Ae)return;const ke=_e.spinnerEl;this.isClosing()?ke==null||ke.remove():(S$1(Ae,ce),ke&&this.animate(ke,"f-fadeOut",()=>{ke.remove()}
vendor: 1,565 bytes, line 212
212),_e.state===lt.Loading&&(this.emit("loaded",_e),_e.state=lt.Ready))}setError(_e,Ae){if(this.isClosing())return;const ke=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",ke,_e),ke.defaultPrevented)return;_e.error=Ae,this.hideLoading(_e),this.clearContent(_e);const Le=document.createElement("div");Le.classList.add("fancybox-error"),Le.innerHTML=this.localize(Ae||"<p>{{ERROR}}</p>"),this.setContent(_e,Le)}clearContent(_e){if(_e.state===void 0)return;this.emit("clearContent",_e),_e.contentEl&&(_e.contentEl.remove(),_e.contentEl=void 0);const Ae=_e.el;Ae&&(S$1(Ae,"has-error"),S$1(Ae,"has-unknown"),S$1(Ae,`has-${_e.type||"unknown"}`)),_e.closeBtnEl&&_e.closeBtnEl.remove(),_e.closeBtnEl=void 0,_e.captionEl&&_e.captionEl.remove(),_e.captionEl=void 0,_e.spinnerEl&&_e.spinnerEl.remove(),_e.spinnerEl=void 0}getSlide(){var _e;const Ae=this.carousel;return((_e=Ae==null?void 0:Ae.pages[Ae==null?void 0:Ae.page])===null||_e===void 0?void 0:_e.slides[0])||void 0}close(_e,Ae){if(this.isClosing())return;const ke=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",ke,_e),ke.defaultPrevented)return;_e&&_e.cancelable&&(_e.preventDefault(),_e.stopPropagation());const Le=()=>{this.proceedClose(_e,Ae)};this.startedFs&&ye&&ye.isFullscreen()?Promise.resolve(ye.exit()).then(()=>Le()):Le()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(_e=!1){const Ae=()=>{this.clearIdle(),this.idle=!0,P$1(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(_e)Ae();
212else{const ke=this.option("idle");ke&&(this.idleTimer=setTimeout(Ae,ke))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,S$1(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){ye&&(ye.isFullscreen()?ye.exit():ye.request().then(()=>{this.startedFs=!0}))}isClosing(){return[rt.Closing,rt.CustomClosing,rt.Destroy].includes(this.state)}proceedClose(_e,Ae){var ke,Le;this.state=rt.Closing,this.clearIdle(),this.detachEvents();const Fe=this.container,Ve=this.carousel,Ie=this.getSlide(),je=Ie&&this.option("placeFocusBack")?Ie.triggerEl||this.option("triggerEl"):null;if(je&&(tt(je)?st(je):je.focus()),Fe&&(S$1(Fe,he),P$1(Fe,"is-closing"),Fe.setAttribute(oe,"true"),this.option("animated")&&P$1(Fe,re),Fe.style.pointerEvents="none"),Ve){Ve.clearTransitions(),(ke=Ve.panzoom)===null||ke===void 0||ke.destroy(),(Le=Ve.plugins.Navigation)===null||Le===void 0||Le.detach();for(const Ke of Ve.slides){Ke.state=lt.Closing,this.hideLoading(Ke);const $e=Ke.contentEl;$e&&this.stop($e);const qe=Ke==null?void 0:Ke.panzoom;qe&&(qe.stop(),qe.detachEvents(),qe.detachObserver()),this.isCurrentSlide(Ke)||Ve.emit("removeSlide",Ke)}}Pe=window.scrollX,Ce=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",_e),this.state!==rt.CustomClosing?(Ae===void 0&&Ie&&(Ae=this.optionFor(Ie,"hideClass")),Ae&&Ie?(this.animate(Ie.contentEl,Ae,()=>{Ve&&Ve.emit("removeSlide",Ie)}),setTimeout(()=>{this.destroy()},500)):this.destroy()):setTimeout(()=>{this.destroy()},500)}destroy(){var _e;if(this.state===rt.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=rt.Destroy,(_e=this.carousel)===null||_e===void 0||_e.destroy();const Ae=this.container;Ae&&Ae.remove(),Te.delete(this.id);const ke=Oe.getInstance();ke?ke.focus():(we&&(we.remove(),we=null),xe&&(xe.remove(),xe=null),S$1(document.documentElement,ee),(()=>{if(!et)return;const Le=document,Fe=Le.body;Fe.classList.remove(ie),Fe.style.setProperty(se,""),Le.documentElement.style.setProperty(ne,"")})(),this.emit("destroy"))}static bind(_e,Ae,ke){if(!et)return;let Le,Fe="",Ve={};if(_e===void 0?Le=document.body:ve(_e)?(Le=document.body,Fe=_e,typeof Ae=="object"&&(Ve=Ae||{})):(Le=_e,ve(Ae)&&(Fe=Ae),typeof ke=="object"&&(Ve=ke||{})),!Le||!E$1(Le))return;Fe=Fe||"[data-fancybox]";const Ie=Oe.openers.get(Le)||new Map;Ie.set(Fe,Ve),Oe.openers.set(Le,Ie),Ie.size===1&&Le.addEventListener("click",Oe.fromEvent)}static unbind(_e,Ae){let ke,Le="";
vendor: 2,954 bytes, line 212
212if(ve(_e)?(ke=document.body,Le=_e):(ke=_e,ve(Ae)&&(Le=Ae)),!ke)return;const Fe=Oe.openers.get(ke);Fe&&Le&&Fe.delete(Le),Le&&Fe||(Oe.openers.delete(ke),ke.removeEventListener("click",Oe.fromEvent))}static destroy(){let _e;for(;_e=Oe.getInstance();)_e.destroy();for(const Ae of Oe.openers.keys())Ae.removeEventListener("click",Oe.fromEvent);Oe.openers=new Map}static fromEvent(_e){if(_e.defaultPrevented||_e.button&&_e.button!==0||_e.ctrlKey||_e.metaKey||_e.shiftKey)return;let Ae=_e.composedPath()[0];const ke=Ae.closest("[data-fancybox-trigger]");if(ke){const Ai=ke.dataset.fancyboxTrigger||"",oi=document.querySelectorAll(`[data-fancybox="${Ai}"]`),ii=parseInt(ke.dataset.fancyboxIndex||"",10)||0;Ae=oi[ii]||Ae}if(!(Ae&&Ae instanceof Element))return;let Le,Fe,Ve,Ie;if([...Oe.openers].reverse().find(([Ai,oi])=>!(!Ai.contains(Ae)||![...oi].reverse().find(([ii,hi])=>{let Ei=Ae.closest(ii);return!!Ei&&(Le=Ai,Fe=ii,Ve=Ei,Ie=hi,!0)}))),!Le||!Fe||!Ve)return;Ie=Ie||{},_e.preventDefault(),Ae=Ve;let je=[],Ke=u$1({},at,Ie);Ke.event=_e,Ke.triggerEl=Ae,Ke.delegate=ke;const $e=Ke.groupAll,qe=Ke.groupAttr,ci=qe&&Ae?Ae.getAttribute(`${qe}`):"";if((!Ae||ci||$e)&&(je=[].slice.call(Le.querySelectorAll(Fe))),Ae&&!$e&&(je=ci?je.filter(Ai=>Ai.getAttribute(`${qe}`)===ci):[Ae]),!je.length)return;const gi=Oe.getInstance();return gi&&gi.options.triggerEl&&je.indexOf(gi.options.triggerEl)>-1?void 0:(Ae&&(Ke.startIndex=je.indexOf(Ae)),Oe.fromNodes(je,Ke))}static fromSelector(_e,Ae,ke){let Le=null,Fe="",Ve={};if(ve(_e)?(Le=document.body,Fe=_e,typeof Ae=="object"&&(Ve=Ae||{})):_e instanceof HTMLElement&&ve(Ae)&&(Le=_e,Fe=Ae,typeof ke=="object"&&(Ve=ke||{})),!Le||!Fe)return!1;const Ie=Oe.openers.get(Le);return!!Ie&&(Ve=u$1({},Ie.get(Fe)||{},Ve),!!Ve&&Oe.fromNodes(Array.from(Le.querySelectorAll(Fe)),Ve))}static fromNodes(_e,Ae){Ae=u$1({},at,Ae||{});const ke=[];for(const Le of _e){const Fe=Le.dataset||{},Ve=Fe[me]||Le.getAttribute(ge)||Le.getAttribute("currentSrc")||Le.getAttribute(me)||void 0;let Ie;const je=Ae.delegate;let Ke;je&&ke.length===Ae.startIndex&&(Ie=je instanceof HTMLImageElement?je:je.querySelector("img:not([aria-hidden])")),Ie||(Ie=Le instanceof HTMLImageElement?Le:Le.querySelector("img:not([aria-hidden])")),Ie&&(Ke=Ie.currentSrc||Ie[me]||void 0,!Ke&&Ie.dataset&&(Ke=Ie.dataset.lazySrc||Ie.dataset[me]||void 0));const $e={src:Ve,triggerEl:Le,thumbEl:Ie,thumbElSrc:Ke,thumbSrc:Ke};for(const qe in Fe){let ci=Fe[qe]+"";ci=ci!=="false"&&(ci==="true"||ci),$e[qe]=ci}ke.push($e)}return new Oe(ke,Ae)}static getInstance(_e){return _e?Te.get(_e):Array.from(Te.values()).reverse().find(Ae=>!Ae.isClosing()&&Ae)||null}static getSlide(){var _e;return((_e=Oe.getInstance())===null||_e===void 0?void 0:_e.getSlide())||null}static show(_e=[],Ae={}){return new Oe(_e,Ae)}static next(){const _e=Oe.getInstance();_e&&_e.next()}static prev(){const _e=Oe.getInstance();_e&&_e.prev()}static close(_e=!0,...Ae){if(_e)for(const ke of Te.values())ke.close(...Ae);
212else{const ke=Oe.getInstance();ke&&ke.close(...Ae)}}}Object.defineProperty(Oe,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(Oe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:at}),Object.defineProperty(Oe,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:te}),Object.defineProperty(Oe,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});function lightbox(De={}){return{init:function(){Oe.bind(this.$el,"[data-fancybox]",_$3.merge({Carousel:{transition:"classic"},Hash:!1,wheel:!1},De))}}}const mapboxGl$1="";var mapboxGl={exports:{}};(function(De,_e){(function(Ae,ke){De.exports=ke()})(commonjsGlobal,function(){var Ae,ke,Le;function Fe(Ie,je){if(!Ae)Ae=je;else if(!ke)ke=je;else{var Ke="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+Ae+")(sharedChunk); ("+ke+")(sharedChunk); self.onerror = null;",$e={};Ae($e),Le=je($e),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(Le.workerUrl=window.URL.createObjectURL(new Blob([Ke],{type:"text/javascript"})))}}Fe(["exports"],function(Ie){var je=typeof self<"u"?self:{},Ke="2.15.0";let $e;const qe={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if($e==null){const ze=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{$e={}.API_URL_REGEX!=null?new RegExp({}.API_URL_REGEX):ze}catch{$e=ze}}return $e},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!qe.API_URL)return null;try{const ze=new URL(qe.API_URL);return ze.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":ze.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},ci={supported:!1,testSupport:function(ze){!oi&&Ai&&(ii?hi(ze):gi=ze)}};let gi,Ai,oi=!1,ii=!1;function hi(ze){const Re=ze.createTexture();ze.bindTexture(ze.TEXTURE_2D,Re);try{if(ze.texImage2D(ze.TEXTURE_2D,0,ze.RGBA,ze.RGBA,ze.UNSIGNED_BYTE,Ai),ze.isContextLost())return;ci.supported=!0}
212catch{}ze.deleteTexture(Re),oi=!0}je.document&&(Ai=je.document.createElement("img"),Ai.onload=function(){gi&&hi(gi),gi=null,ii=!0},Ai.onerror=function(){oi=!0,gi=null},Ai.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const Ei="01";function Li(ze){return ze&&ze.__esModule&&Object.prototype.hasOwnProperty.call(ze,"default")?ze.default:ze}var Di=zi;function zi(ze,Re,Be,He){this.cx=3*ze,this.bx=3*(Be-ze)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*Re,this.by=3*(He-Re)-this.cy,this.ay=1-this.cy-this.by,this.p1x=ze,this.p1y=Re,this.p2x=Be,this.p2y=He}zi.prototype={sampleCurveX:function(ze){return((this.ax*ze+this.bx)*ze+this.cx)*ze},sampleCurveY:function(ze){return((this.ay*ze+this.by)*ze+this.cy)*ze},sampleCurveDerivativeX:function(ze){return(3*this.ax*ze+2*this.bx)*ze+this.cx},solveCurveX:function(ze,Re){if(Re===void 0&&(Re=1e-6),ze<0)return 0;if(ze>1)return 1;for(var Be=ze,He=0;He<8;He++){var We=this.sampleCurveX(Be)-ze;if(Math.abs(We)<Re)return Be;var Ye=this.sampleCurveDerivativeX(Be);if(Math.abs(Ye)<1e-6)break;Be-=We/Ye}var ni=0,li=1;for(Be=ze,He=0;He<20&&(We=this.sampleCurveX(Be),!(Math.abs(We-ze)<Re));He++)ze>We?ni=Be:li=Be,Be=.5*(li-ni)+ni;return Be},solve:function(ze,Re){return this.sampleCurveY(this.solveCurveX(ze,Re))}};var an=Li(Di),Je=fi;function fi(ze,Re){this.x=ze,this.y=Re}fi.prototype={clone:function(){return new fi(this.x,this.y)},add:function(ze){return this.clone()._add(ze)},sub:function(ze){return this.clone()._sub(ze)},multByPoint:function(ze){return this.clone()._multByPoint(ze)},divByPoint:function(ze){return this.clone()._divByPoint(ze)},mult:function(ze){return this.clone()._mult(ze)},div:function(ze){return this.clone()._div(ze)},rotate:function(ze){return this.clone()._rotate(ze)},rotateAround:function(ze,Re){return this.clone()._rotateAround(ze,Re)},matMult:function(ze){return this.clone()._matMult(ze)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(ze){return this.x===ze.x&&this.y===ze.y},dist:function(ze){return Math.sqrt(this.distSqr(ze))},distSqr:function(ze){var Re=ze.x-this.x,Be=ze.y-this.y;return Re*Re+Be*Be},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(ze){return Math.atan2(this.y-ze.y,this.x-ze.x)},angleWith:function(ze){return this.angleWithSep(ze.x,ze.y)},angleWithSep:function(ze,Re){return Math.atan2(this.x*Re-this.y*ze,this.x*ze+this.y*Re)},_matMult:function(ze){var Re=ze[2]*this.x+ze[3]*this.y;return this.x=ze[0]*this.x+ze[1]*this.y,this.y=Re,this},_add:function(ze){return this.x+=ze.x,this.y+=ze.y,this},_sub:function(ze){return this.x-=ze.x,this.y-=ze.y,this},_mult:function(ze){return this.x*=ze,this.y*=ze,this},_div:function(ze){return this.x/=ze,this.y/=ze,this},_multByPoint:function(ze){return this.x*=ze.x,this.y*=ze.y,this},_divByPoint:function(ze){return this.x/=ze.x,this.y/=ze.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var ze=this.y;return this.y=this.x,this.x=-ze,this},_rotate:function(ze){var Re=Math.cos(ze),Be=Math.sin(ze),He=Be*this.x+Re*this.y;return this.x=Re*this.x-Be*this.y,this.y=He,this},_rotateAround:function(ze,Re){var Be=Math.cos(ze),He=Math.sin(ze),We=Re.y+He*(this.x-Re.x)+Be*(this.y-Re.y);return this.x=Re.x+Be*(this.x-Re.x)-He*(this.y-Re.y),this.y=We,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},fi.convert=function(ze){return ze instanceof fi?ze:Array.isArray(ze)?new fi(ze[0],ze[1]):ze};var Gi=Li(Je);const fn=Math.PI/180,cn=180/Math.PI;function Tn(ze){return ze*fn}function Sn(ze){return ze*cn}const Cn=[[0,0],[1,0],[1,1],[0,1]];function tr(ze){if(ze<=0)return 0;if(ze>=1)return 1;const Re=ze*ze,Be=Re*ze;return 4*(ze<.5?Be:3*(ze-Re)+Be-.75)}function xr(ze,Re,Be,He){const We=new an(ze,Re,Be,He);return function(Ye){return We.solve(Ye)}}const er=xr(.25,.1,.25,1);function Hn(ze,Re,Be){return Math.min(Be,Math.max(Re,ze))}function Er(ze,Re,Be){return(Be=Hn((Be-ze)/(Re-ze),0,1))*Be*(3-2*Be)}function os(ze,Re,Be){const He=Be-Re,We=((ze-Re)%He+He)%He+Re;return We===Re?Be:We}function wi(ze,Re,Be){if(!ze.length)return Be(null,[]);let He=ze.length;const We=new Array(ze.length);let Ye=null;ze.forEach((ni,li)=>{Re(ni,(yi,xi)=>{yi&&(Ye=yi),We[li]=xi,--He==0&&Be(Ye,We)})})}function Zi(ze){const Re=[];
212for(const Be in ze)Re.push(ze[Be]);return Re}function Qi(ze,...Re){for(const Be of Re)for(const He in Be)ze[He]=Be[He];return ze}let Hi=1;function vn(){return Hi++}function zn(){return function ze(Re){return Re?(Re^Math.random()*(16>>Re/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,ze)}()}function ji(ze){return ze<=1?1:Math.pow(2,Math.ceil(Math.log(ze)/Math.LN2))}function hr(ze){return!!ze&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(ze)}function Ri(ze,Re){ze.forEach(Be=>{Re[Be]&&(Re[Be]=Re[Be].bind(Re))})}function xs(ze,Re){return ze.indexOf(Re,ze.length-Re.length)!==-1}function Ue(ze,Re,Be){const He={};for(const We in ze)He[We]=Re.call(Be||this,ze[We],We,ze);return He}function bi(ze,Re,Be){const He={};for(const We in ze)Re.call(Be||this,ze[We],We,ze)&&(He[We]=ze[We]);return He}function Ii(ze){return Array.isArray(ze)?ze.map(Ii):typeof ze=="object"&&ze?Ue(ze,Ii):ze}const Ji={};function Mn(ze){Ji[ze]||(typeof console<"u"&&console.warn(ze),Ji[ze]=!0)}function En(ze,Re,Be){return(Be.y-ze.y)*(Re.x-ze.x)>(Re.y-ze.y)*(Be.x-ze.x)}function Fn(ze){let Re=0;for(let Be,He,We=0,Ye=ze.length,ni=Ye-1;We<Ye;ni=We++)Be=ze[We],He=ze[ni],Re+=(He.x-Be.x)*(Be.y+He.y);return Re}function Cr(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function _r(ze){const Re={};if(ze.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(Be,He,We,Ye)=>{const ni=We||Ye;return Re[He]=!ni||ni.toLowerCase(),""}),Re["max-age"]){const Be=parseInt(Re["max-age"],10);isNaN(Be)?delete Re["max-age"]:Re["max-age"]=Be}return Re}let Or=null;function _s(ze){if(Or==null){const Re=ze.navigator?ze.navigator.userAgent:null;Or=!!ze.safari||!(!Re||!(/\b(iPad|iPhone|iPod)\b/.test(Re)||Re.match("Safari")&&!Re.match("Chrome")))}return Or}function so(ze){try{const Re=je[ze];return Re.setItem("_mapbox_test_",1),Re.removeItem("_mapbox_test_"),!0}catch{return!1}}function Ls(ze,Re){return[ze[4*Re],ze[4*Re+1],ze[4*Re+2],ze[4*Re+3]]}const go="mapbox-tiles";let As=500,no=50,Ws,ro;function qs(){try{return je.caches}catch{}}function hs(){qs()&&!Ws&&(Ws=je.caches.open(go))}function Nr(ze){const Re=ze.indexOf("?");if(Re<0)return ze;const Be=function(We){const Ye=We.indexOf("?");return Ye>0?We.slice(Ye+1).split("&"):[]}(ze),He=Be.filter(We=>{const Ye=We.split("=");return Ye[0]==="language"||Ye[0]==="worldview"});return He.length?`${ze.slice(0,Re)}?${He.join("&")}`:ze.slice(0,Re)}let ea=1/0;const $a={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze($a);class ao extends Error{constructor(Re,Be,He){Be===401&&Rr(He)&&(Re+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(Re),this.status=Be,this.url=He}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Do=Cr()?()=>self.worker&&self.worker.referrer:()=>(je.location.protocol==="blob:"?je.parent:je).location.href,el=function(ze,Re){if(!(/^file:/.test(Be=ze.url)||/^file:/.test(Do())&&!/^\w+:/.test(Be))){if(je.fetch&&je.Request&&je.AbortController&&je.Request.prototype.hasOwnProperty("signal"))return function(He,We){const Ye=new je.AbortController,ni=new je.Request(He.url,{method:He.method||"GET",body:He.body,credentials:He.credentials,headers:He.headers,referrer:Do(),referrerPolicy:He.referrerPolicy,signal:Ye.signal});let li=!1,yi=!1;const xi=(Pi=ni.url).indexOf("sku=")>0&&Rr(Pi);var Pi;He.type==="json"&&ni.headers.set("Accept","application/json");const Ni=(rn,un,gn)=>{if(yi)return;if(rn&&rn.message!=="SecurityError"&&Mn(rn.toString()),un&&gn)return Wi(un);const kn=Date.now();je.fetch(ni).then(jn=>{if(jn.ok){const ar=xi?jn.clone():null;return Wi(jn,ar,kn)}return We(new ao(jn.statusText,jn.status,He.url))}).catch(jn=>{jn.name!=="AbortError"&&We(new Error(`${jn.message} ${He.url}`))})},Wi=(rn,un,gn)=>{(He.type==="arrayBuffer"?rn.arrayBuffer():He.type==="json"?rn.json():rn.text()).then(kn=>{yi||(un&&gn&&function(jn,ar,Wn){if(hs(),!Ws)return;const sr={status:ar.status,statusText:ar.statusText,headers:new je.Headers};
212ar.headers.forEach((Zr,Gr)=>sr.headers.set(Gr,Zr));const fr=_r(ar.headers.get("Cache-Control")||"");if(fr["no-store"])return;fr["max-age"]&&sr.headers.set("Expires",new Date(Wn+1e3*fr["max-age"]).toUTCString());const pr=sr.headers.get("Expires");pr&&(new Date(pr).getTime()-Wn<42e4||function(Zr,Gr){if(ro===void 0)try{new Response(new ReadableStream),ro=!0}catch{ro=!1}ro?Gr(Zr.body):Zr.blob().then(Gr)}(ar,Zr=>{const Gr=new je.Response(Zr,sr);hs(),Ws&&Ws.then(us=>us.put(Nr(jn.url),Gr)).catch(us=>Mn(us.message))}))}(ni,un,gn),li=!0,We(null,kn,rn.headers.get("Cache-Control"),rn.headers.get("Expires")))}).catch(kn=>{yi||We(new Error(kn.message))})};return xi?function(rn,un){if(hs(),!Ws)return un(null);const gn=Nr(rn.url);Ws.then(kn=>{kn.match(gn).then(jn=>{const ar=function(Wn){if(!Wn)return!1;const sr=new Date(Wn.headers.get("Expires")||0),fr=_r(Wn.headers.get("Cache-Control")||"");return sr>Date.now()&&!fr["no-cache"]}(jn);kn.delete(gn),ar&&kn.put(gn,jn.clone()),un(null,jn,ar)}).catch(un)}).catch(un)}(ni,Ni):Ni(null,null),{cancel:()=>{yi=!0,li||Ye.abort()}}}(ze,Re);if(Cr()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",ze,Re,void 0,!0)}var Be;return function(He,We){const Ye=new je.XMLHttpRequest;Ye.open(He.method||"GET",He.url,!0),He.type==="arrayBuffer"&&(Ye.responseType="arraybuffer");for(const ni in He.headers)Ye.setRequestHeader(ni,He.headers[ni]);return He.type==="json"&&(Ye.responseType="text",Ye.setRequestHeader("Accept","application/json")),Ye.withCredentials=He.credentials==="include",Ye.onerror=()=>{We(new Error(Ye.statusText))},Ye.onload=()=>{if((Ye.status>=200&&Ye.status<300||Ye.status===0)&&Ye.response!==null){let ni=Ye.response;if(He.type==="json")try{ni=JSON.parse(Ye.response)}catch(li){return We(li)}We(null,ni,Ye.getResponseHeader("Cache-Control"),Ye.getResponseHeader("Expires"))}else We(new ao(Ye.statusText,Ye.status,He.url))},Ye.send(He.body),{cancel:()=>Ye.abort()}}(ze,Re)},Fa=function(ze,Re){return el(Qi(ze,{type:"arrayBuffer"}),Re)};function cl(ze){const Re=je.document.createElement("a");return Re.href=ze,Re.protocol===je.document.location.protocol&&Re.host===je.document.location.host}const Zn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let bn,xn;bn=[],xn=0;const Yn=function(ze,Re){if(ci.supported&&(ze.headers||(ze.headers={}),ze.headers.accept="image/webp,*/*"),xn>=qe.MAX_PARALLEL_IMAGE_REQUESTS){const Ye={requestParameters:ze,callback:Re,cancelled:!1,cancel(){this.cancelled=!0}};return bn.push(Ye),Ye}xn++;let Be=!1;const He=()=>{if(!Be)for(Be=!0,xn--;bn.length&&xn<qe.MAX_PARALLEL_IMAGE_REQUESTS;){const Ye=bn.shift(),{requestParameters:ni,callback:li,cancelled:yi}=Ye;yi||(Ye.cancel=Yn(ni,li).cancel)}},We=Fa(ze,(Ye,ni,li,yi)=>{He(),Ye?Re(Ye):ni&&(je.createImageBitmap?function(xi,Pi){const Ni=new je.Blob([new Uint8Array(xi)],{type:"image/png"});je.createImageBitmap(Ni).then(Wi=>{Pi(null,Wi)}).catch(Wi=>{Pi(new Error(`Could not load image because of ${Wi.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(ni,(xi,Pi)=>Re(xi,Pi,li,yi)):function(xi,Pi){const Ni=new je.Image,Wi=je.URL;Ni.onload=()=>{Pi(null,Ni),Wi.revokeObjectURL(Ni.src),Ni.onload=null,je.requestAnimationFrame(()=>{Ni.src=Zn})},Ni.onerror=()=>Pi(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const rn=new je.Blob([new Uint8Array(xi)],{type:"image/png"});Ni.src=xi.byteLength?Wi.createObjectURL(rn):Zn}(ni,(xi,Pi)=>Re(xi,Pi,li,yi)))});return{cancel:()=>{We.cancel(),He()}}},or="NO_ACCESS_TOKEN";function yr(ze){return ze.indexOf("mapbox:")===0}function Rr(ze){return qe.API_URL_REGEX.test(ze)}function kr(ze){return qe.API_CDN_URL_REGEX.test(ze)}function br(ze){return qe.API_STYLE_REGEX.test(ze)&&!jr(ze)}function jr(ze){return qe.API_SPRITE_REGEX.test(ze)}const bs=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Fs(ze){const Re=ze.match(bs);if(!Re)throw new Error("Unable to parse URL object");return{protocol:Re[1],authority:Re[2],path:Re[3]||"/",params:Re[4]?Re[4].split("&"):[]}}function wr(ze){const Re=ze.params.length?`?${ze.params.join("&")}`:"";return`${ze.protocol}://${ze.authority}${ze.path}${Re}`}const gs="mapbox.eventData";function Es(ze){if(!ze)return null;const Re=ze.split(".");if(!Re||Re.length!==3)return null;try{return JSON.parse(decodeURIComponent(je.atob(Re[1]).split("").map(Be=>"%"+("00"+Be.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch{return null}}class Hs{constructor(Re){this.type=Re,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(Re){const Be=Es(qe.ACCESS_TOKEN);let He="";return He=Be&&Be.u?je.btoa(encodeURIComponent(Be.u).replace(/%([0-9A-F]{2})/g,(We,Ye)=>String.fromCharCode(+("0x"+Ye)))):qe.ACCESS_TOKEN||"",Re?`${gs}.${Re}:${He}`:`${gs}:${He}`}fetchEventData(){const Re=so("localStorage"),Be=this.getStorageKey(),He=this.getStorageKey("uuid");if(Re)try{const We=je.localStorage.getItem(Be);We&&(this.eventData=JSON.parse(We));const Ye=je.localStorage.getItem(He);Ye&&(this.anonId=Ye)}
212catch{Mn("Unable to read from LocalStorage")}}saveEventData(){const Re=so("localStorage"),Be=this.getStorageKey(),He=this.getStorageKey("uuid");if(Re)try{je.localStorage.setItem(He,this.anonId),Object.keys(this.eventData).length>=1&&je.localStorage.setItem(Be,JSON.stringify(this.eventData))}catch{Mn("Unable to write to LocalStorage")}}processRequests(Re){}postEvent(Re,Be,He,We){if(!qe.EVENTS_URL)return;const Ye=Fs(qe.EVENTS_URL);Ye.params.push(`access_token=${We||qe.ACCESS_TOKEN||""}`);const ni={event:this.type,created:new Date(Re).toISOString()},li=Be?Qi(ni,Be):ni,yi={url:wr(Ye),headers:{"Content-Type":"text/plain"},body:JSON.stringify([li])};this.pendingRequest=function(xi,Pi){return el(Qi(xi,{method:"POST"}),Pi)}(yi,xi=>{this.pendingRequest=null,He(xi),this.saveEventData(),this.processRequests(We)})}queueRequest(Re,Be){this.queue.push(Re),this.processRequests(Be)}}const xo=new class extends Hs{constructor(ze){super("appUserTurnstile"),this._customAccessToken=ze}postTurnstileEvent(ze,Re){qe.EVENTS_URL&&qe.ACCESS_TOKEN&&Array.isArray(ze)&&ze.some(Be=>yr(Be)||Rr(Be))&&this.queueRequest(Date.now(),Re)}processRequests(ze){if(this.pendingRequest||this.queue.length===0)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const Re=Es(qe.ACCESS_TOKEN),Be=Re?Re.u:qe.ACCESS_TOKEN;let He=Be!==this.eventData.tokenU;hr(this.anonId)||(this.anonId=zn(),He=!0);const We=this.queue.shift();if(this.eventData.lastSuccess){const Ye=new Date(this.eventData.lastSuccess),ni=new Date(We),li=(We-this.eventData.lastSuccess)/864e5;He=He||li>=1||li<-1||Ye.getDate()!==ni.getDate()}else He=!0;He?this.postEvent(We,{sdkIdentifier:"mapbox-gl-js",sdkVersion:Ke,skuId:Ei,"enabled.telemetry":!1,userId:this.anonId},Ye=>{Ye||(this.eventData.lastSuccess=We,this.eventData.tokenU=Be)},ze):this.processRequests()}},wo=xo.postTurnstileEvent.bind(xo),ga=new class extends Hs{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(ze,Re,Be,He){this.skuToken=Re,this.errorCb=He,qe.EVENTS_URL&&(Be||qe.ACCESS_TOKEN?this.queueRequest({id:ze,timestamp:Date.now()},Be):this.errorCb(new Error(or)))}processRequests(ze){if(this.pendingRequest||this.queue.length===0)return;const{id:Re,timestamp:Be}=this.queue.shift();Re&&this.success[Re]||(this.anonId||this.fetchEventData(),hr(this.anonId)||(this.anonId=zn()),this.postEvent(Be,{sdkIdentifier:"mapbox-gl-js",sdkVersion:Ke,skuId:Ei,skuToken:this.skuToken,userId:this.anonId},He=>{He?this.errorCb(He):Re&&(this.success[Re]=!0)},ze))}},_a=ga.postMapLoadEvent.bind(ga),tl=new class extends Hs{constructor(){super("gljs.performance")}postPerformanceEvent(ze,Re){qe.EVENTS_URL&&(ze||qe.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:Re},ze)}processRequests(ze){if(this.pendingRequest||this.queue.length===0)return;const{timestamp:Re,performanceData:Be}=this.queue.shift(),He=function(We){const Ye=je.performance.getEntriesByType("resource"),ni=je.performance.getEntriesByType("mark"),li=function(Wi){const rn={};if(Wi){for(const un in Wi)if(un!=="other")for(const gn of Wi[un]){const kn=`${un}ResolveRangeMin`,jn=`${un}ResolveRangeMax`,ar=`${un}RequestCount`,Wn=`${un}RequestCachedCount`;rn[kn]=Math.min(rn[kn]||1/0,gn.startTime),rn[jn]=Math.max(rn[jn]||-1/0,gn.responseEnd);const sr=fr=>{rn[fr]===void 0&&(rn[fr]=0),++rn[fr]};gn.transferSize!==void 0&&gn.transferSize===0&&sr(Wn),sr(ar)}}return rn}(function(Wi,rn){const un={};if(Wi)for(const gn of Wi){const kn=rn(gn);un[kn]===void 0&&(un[kn]=[]),un[kn].push(gn)}return un}(Ye,dp)),yi=je.devicePixelRatio,xi=je.navigator.connection||je.navigator.mozConnection||je.navigator.webkitConnection,Pi={counters:[],metadata:[],attributes:[]},Ni=(Wi,rn,un)=>{un!=null&&Wi.push({name:rn,value:un.toString()})};for(const Wi in li)Ni(Pi.counters,Wi,li[Wi]);if(We.interactionRange[0]!==1/0&&We.interactionRange[1]!==-1/0&&(Ni(Pi.counters,"interactionRangeMin",We.interactionRange[0]),Ni(Pi.counters,"interactionRangeMax",We.interactionRange[1])),ni)for(const Wi of Object.keys(dl)){const rn=dl[Wi],un=ni.find(gn=>gn.name===rn);un&&Ni(Pi.counters,rn,un.startTime)}return Ni(Pi.counters,"visibilityHidden",We.visibilityHidden),Ni(Pi.attributes,"style",function(Wi){if(Wi)for(const rn of Wi){const un=rn.name.split("?")[0];if(br(un)){const gn=un.split("/").slice(-2);if(gn.length===2)return`mapbox://styles/${gn[0]}/${gn[1]}`}}}(Ye)),Ni(Pi.attributes,"terrainEnabled",We.terrainEnabled?"true":"false"),Ni(Pi.attributes,"fogEnabled",We.fogEnabled?"true":"false"),Ni(Pi.attributes,"projection",We.projection),Ni(Pi.attributes,"zoom",We.zoom),Ni(Pi.metadata,"devicePixelRatio",yi),Ni(Pi.metadata,"connectionEffectiveType",xi?xi.effectiveType:void 0),Ni(Pi.metadata,"navigatorUserAgent",je.navigator.userAgent),Ni(Pi.metadata,"screenWidth",je.screen.width),Ni(Pi.metadata,"screenHeight",je.screen.height),Ni(Pi.metadata,"windowWidth",je.innerWidth),Ni(Pi.metadata,"windowHeight",je.innerHe
212ight),Ni(Pi.metadata,"mapWidth",We.width/yi),Ni(Pi.metadata,"mapHeight",We.height/yi),Ni(Pi.metadata,"webglRenderer",We.renderer),Ni(Pi.metadata,"webglVendor",We.vendor),Ni(Pi.metadata,"sdkVersion",Ke),Ni(Pi.metadata,"sdkIdentifier","mapbox-gl-js"),Pi}(Be);for(const We of He.metadata);for(const We of He.counters);for(const We of He.attributes);this.postEvent(Re,He,()=>{},ze)}},Lo=tl.postPerformanceEvent.bind(tl),za=new class extends Hs{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(ze,Re,Be,He){if(!qe.API_URL||!qe.SESSION_PATH)return;const We=Fs(qe.API_URL+qe.SESSION_PATH);We.params.push(`sku=${Re||""}`),We.params.push(`access_token=${He||qe.ACCESS_TOKEN||""}`);const Ye={url:wr(We),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(ni,li){return el(Qi(ni,{method:"GET"}),li)}(Ye,ni=>{this.pendingRequest=null,Be(ni),this.saveEventData(),this.processRequests(He)})}getSessionAPI(ze,Re,Be,He){this.skuToken=Re,this.errorCb=He,qe.SESSION_PATH&&qe.API_URL&&(Be||qe.ACCESS_TOKEN?this.queueRequest({id:ze,timestamp:Date.now()},Be):this.errorCb(new Error(or)))}processRequests(ze){if(this.pendingRequest||this.queue.length===0)return;const{id:Re,timestamp:Be}=this.queue.shift();Re&&this.success[Re]||this.getSession(Be,this.skuToken,He=>{He?this.errorCb(He):Re&&(this.success[Re]=!0)},ze)}},ul=za.getSessionAPI.bind(za),Ba=new Set,dl={create:"create",load:"load",fullLoad:"fullLoad"},lu={mark(ze){je.performance.mark(ze)},measure(ze,Re,Be){je.performance.measure(ze,Re,Be)}};function dp(ze){const Re=ze.name.split("?")[0];return kr(Re)&&Re.includes("mapbox-gl.js")?"javascript":kr(Re)&&Re.includes("mapbox-gl.css")?"css":function(Be){return qe.API_FONTS_REGEX.test(Be)}(Re)?"fontRange":jr(Re)?"sprite":br(Re)?"style":function(Be){return qe.API_TILEJSON_REGEX.test(Be)}(Re)?"tilejson":"other"}const ca=je.performance;function hp(ze){const Re=ze?ze.url.toString():void 0;return ca.getEntriesByName(Re)}let ld,Id,xu,wu;const Ru={now:()=>xu!==void 0?xu:je.performance.now(),setNow(ze){xu=ze},restoreNow(){xu=void 0},frame(ze){const Re=je.requestAnimationFrame(ze);return{cancel:()=>je.cancelAnimationFrame(Re)}},getImageData(ze,Re=0){const{width:Be,height:He}=ze;wu||(wu=je.document.createElement("canvas"));const We=wu.getContext("2d",{willReadFrequently:!0});if(!We)throw new Error("failed to create canvas 2d context");return(Be>wu.width||He>wu.height)&&(wu.width=Be,wu.height=He),We.clearRect(-Re,-Re,Be+2*Re,He+2*Re),We.drawImage(ze,0,0,Be,He),We.getImageData(-Re,-Re,Be+2*Re,He+2*Re)},resolveURL:ze=>(ld||(ld=je.document.createElement("a")),ld.href=ze,ld.href),get devicePixelRatio(){return je.devicePixelRatio},get prefersReducedMotion(){return!!je.matchMedia&&(Id==null&&(Id=je.matchMedia("(prefers-reduced-motion: reduce)")),Id.matches)}};function kc(ze,Re,Be){Be[ze]&&Be[ze].indexOf(Re)!==-1||(Be[ze]=Be[ze]||[],Be[ze].push(Re))}function Rd(ze,Re,Be){if(Be&&Be[ze]){const He=Be[ze].indexOf(Re);He!==-1&&Be[ze].splice(He,1)}}class Zu{constructor(Re,Be={}){Qi(this,Be),this.type=Re}}class Gc extends Zu{constructor(Re,Be={}){super("error",Qi({error:Re},Be))}}class rh{on(Re,Be){return this._listeners=this._listeners||{},kc(Re,Be,this._listeners),this}off(Re,Be){return Rd(Re,Be,this._listeners),Rd(Re,Be,this._oneTimeListeners),this}once(Re,Be){return Be?(this._oneTimeListeners=this._oneTimeListeners||{},kc(Re,Be,this._oneTimeListeners),this):new Promise(He=>this.once(Re,He))}fire(Re,Be){typeof Re=="string"&&(Re=new Zu(Re,Be||{}));const He=Re.type;if(this.listens(He)){Re.target=this;const We=this._listeners&&this._listeners[He]?this._listeners[He].slice():[];for(const li of We)li.call(this,Re);const Ye=this._oneTimeListeners&&this._oneTimeListeners[He]?this._oneTimeListeners[He].slice():[];for(const li of Ye)Rd(He,li,this._oneTimeListeners),li.call(this,Re);const ni=this._eventedParent;ni&&(Qi(Re,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),ni.fire(Re))}else Re instanceof Gc&&console.error(Re.error);return this}listens(Re){return!!(this._listeners&&this._listeners[Re]&&this._listeners[Re].length>0||this._oneTimeListeners&&this._oneTimeListeners[Re]&&this._oneTimeListeners[Re].length>0||this._eventedParent&&this._eventedParent.listens(Re))}setEventedParent(Re,Be){return this._eventedParent=Re,this._eventedParentData=Be,this}}
212var rs=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{}}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1
vendor: 16,128 bytes, line 212
212,"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{},"globe":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["source"]}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":
vendor: 17,236 bytes, line 212
212false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["fill-extrusion-edge-radius"]},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"requires":["fill-extrusion-edge-radius"],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":false,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"transition":false,"requires":[{"source":"geojson","has":{"lineMetrics":true}}],"property-type":"constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"transition":false,"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function Ou(ze,...Re){for(const Be of Re)for(const He in Be)ze[He]=Be[He];return ze}function hl(ze){return ze instanceof Number||ze instanceof String||ze instanceof Boolean?ze.valueOf():ze}function il(ze){if(Array.isArray(ze))return ze.map(il);if(ze instanceof Object&&!(ze instanceof Number||ze instanceof String||ze instanceof Boolean)){const Re={};for(const Be in ze)Re[Be]=il(ze[Be]);return Re}return hl(ze)}
vendor: 6,995 bytes, line 212
212class _c extends Error{constructor(Re,Be){super(Be),this.message=Be,this.key=Re}}var sc=_c;class jl{constructor(Re,Be=[]){this.parent=Re,this.bindings={};for(const[He,We]of Be)this.bindings[He]=We}concat(Re){return new jl(this,Re)}get(Re){if(this.bindings[Re])return this.bindings[Re];if(this.parent)return this.parent.get(Re);throw new Error(`${Re} not found in scope.`)}has(Re){return!!this.bindings[Re]||!!this.parent&&this.parent.has(Re)}}var sh=jl;const oa={kind:"null"},js={kind:"number"},Zo={kind:"string"},$o={kind:"boolean"},bc={kind:"color"},cu={kind:"object"},Po={kind:"value"},ja={kind:"collator"},Od={kind:"formatted"},Pc={kind:"resolvedImage"};function xc(ze,Re){return{kind:"array",itemType:ze,N:Re}}function Ma(ze){if(ze.kind==="array"){const Re=Ma(ze.itemType);return typeof ze.N=="number"?`array<${Re}, ${ze.N}>`:ze.itemType.kind==="value"?"array":`array<${Re}>`}return ze.kind}const uu=[oa,js,Zo,$o,bc,Od,cu,xc(Po),Pc];function Aa(ze,Re){if(Re.kind==="error")return null;if(ze.kind==="array"){if(Re.kind==="array"&&(Re.N===0&&Re.itemType.kind==="value"||!Aa(ze.itemType,Re.itemType))&&(typeof ze.N!="number"||ze.N===Re.N))return null}else{if(ze.kind===Re.kind)return null;if(ze.kind==="value"){for(const Be of uu)if(!Aa(Be,Re))return null}}return`Expected ${Ma(ze)} but found ${Ma(Re)} instead.`}function jc(ze,Re){return Re.some(Be=>Be.kind===ze.kind)}function Ph(ze,Re){return Re.some(Be=>Be==="null"?ze===null:Be==="array"?Array.isArray(ze):Be==="object"?ze&&!Array.isArray(ze)&&typeof ze=="object":Be===typeof ze)}var Yu,pp={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ld(ze){return(ze=Math.round(ze))<0?0:ze>255?255:ze}function Ih(ze){return Ld(ze[ze.length-1]==="%"?parseFloat(ze)/100*255:parseInt(ze))}function cd(ze){return(Re=ze[ze.length-1]==="%"?parseFloat(ze)/100:parseFloat(ze))<0?0:Re>1?1:Re;var Re}function oh(ze,Re,Be){return Be<0?Be+=1:Be>1&&(Be-=1),6*Be<1?ze+(Re-ze)*Be*6:2*Be<1?Re:3*Be<2?ze+(Re-ze)*(2/3-Be)*6:ze}try{Yu={}.parseCSSColor=function(ze){var Re,Be=ze.replace(/ /g,"").toLowerCase();if(Be in pp)return pp[Be].slice();if(Be[0]==="#")return Be.length===4?(Re=parseInt(Be.substr(1),16))>=0&&Re<=4095?[(3840&Re)>>4|(3840&Re)>>8,240&Re|(240&Re)>>4,15&Re|(15&Re)<<4,1]:null:Be.length===7&&(Re=parseInt(Be.substr(1),16))>=0&&Re<=16777215?[(16711680&Re)>>16,(65280&Re)>>8,255&Re,1]:null;var He=Be.indexOf("("),We=Be.indexOf(")");if(He!==-1&&We+1===Be.length){var Ye=Be.substr(0,He),ni=Be.substr(He+1,We-(He+1)).split(","),li=1;switch(Ye){case"rgba":if(ni.length!==4)return null;li=cd(ni.pop());case"rgb":return ni.length!==3?null:[Ih(ni[0]),Ih(ni[1]),Ih(ni[2]),li];case"hsla":if(ni.length!==4)return null;li=cd(ni.pop());case"hsl":if(ni.length!==3)return null;var yi=(parseFloat(ni[0])%360+360)%360/360,xi=cd(ni[1]),Pi=cd(ni[2]),Ni=Pi<=.5?Pi*(xi+1):Pi+xi-Pi*xi,Wi=2*Pi-Ni;return[Ld(255*oh(Wi,Ni,yi+1/3)),Ld(255*oh(Wi,Ni,yi)),Ld(255*oh(Wi,Ni,yi-1/3)),li];default:return null}}return null}}catch{}class oc{constructor(Re,Be,He,We=1){this.r=Re,this.g=Be,this.b=He,this.a=We}static parse(Re){if(!Re)return;if(Re instanceof oc)return Re;if(typeof Re!="string")return;const Be=Yu(Re);return Be?new oc(Be[0]/255*Be[3],Be[1]/255*Be[3],Be[2]/255*Be[3],Be[3]):void 0}toString(){const[Re,Be,He,We]=this.toArray();return`rgba(${Math.round(Re)},${Math.round(Be)},${Math.round(He)},${We})`}
212toArray(){const{r:Re,g:Be,b:He,a:We}=this;return We===0?[0,0,0,0]:[255*Re/We,255*Be/We,255*He/We,We]}toArray01(){const{r:Re,g:Be,b:He,a:We}=this;return We===0?[0,0,0,0]:[Re/We,Be/We,He/We,We]}toArray01PremultipliedAlpha(){const{r:Re,g:Be,b:He,a:We}=this;return[Re,Be,He,We]}}oc.black=new oc(0,0,0,1),oc.white=new oc(1,1,1,1),oc.transparent=new oc(0,0,0,0),oc.red=new oc(1,0,0,1),oc.blue=new oc(0,0,1,1);var aa=oc;class fp{constructor(Re,Be,He){this.sensitivity=Re?Be?"variant":"case":Be?"accent":"base",this.locale=He,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(Re,Be){return this.collator.compare(Re,Be)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Rh{constructor(Re,Be,He,We,Ye){this.text=Re.normalize?Re.normalize():Re,this.image=Be,this.scale=He,this.fontStack=We,this.textColor=Ye}}class Wc{constructor(Re){this.sections=Re}static fromString(Re){return new Wc([new Rh(Re,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(Re=>Re.text.length!==0||Re.image&&Re.image.name.length!==0)}static factory(Re){return Re instanceof Wc?Re:Wc.fromString(Re)}toString(){return this.sections.length===0?"":this.sections.map(Re=>Re.text).join("")}serialize(){const Re=["format"];for(const Be of this.sections){if(Be.image){Re.push(["image",Be.image.name]);continue}Re.push(Be.text);const He={};Be.fontStack&&(He["text-font"]=["literal",Be.fontStack.split(",")]),Be.scale&&(He["font-scale"]=Be.scale),Be.textColor&&(He["text-color"]=["rgba"].concat(Be.textColor.toArray())),Re.push(He)}return Re}}class qc{constructor(Re){this.name=Re.name,this.available=Re.available}toString(){return this.name}static fromString(Re){return Re?new qc({name:Re,available:!1}):null}serialize(){return["image",this.name]}}function Wp(ze,Re,Be,He){return typeof ze=="number"&&ze>=0&&ze<=255&&typeof Re=="number"&&Re>=0&&Re<=255&&typeof Be=="number"&&Be>=0&&Be<=255?He===void 0||typeof He=="number"&&He>=0&&He<=1?null:`Invalid rgba value [${[ze,Re,Be,He].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof He=="number"?[ze,Re,Be,He]:[ze,Re,Be]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Oh(ze){if(ze===null||typeof ze=="string"||typeof ze=="boolean"||typeof ze=="number"||ze instanceof aa||ze instanceof fp||ze instanceof Wc||ze instanceof qc)return!0;if(Array.isArray(ze)){for(const Re of ze)if(!Oh(Re))return!1;return!0}if(typeof ze=="object"){for(const Re in ze)if(!Oh(ze[Re]))return!1;return!0}return!1}function bl(ze){if(ze===null)return oa;if(typeof ze=="string")return Zo;if(typeof ze=="boolean")return $o;if(typeof ze=="number")return js;if(ze instanceof aa)return bc;if(ze instanceof fp)return ja;if(ze instanceof Wc)return Od;if(ze instanceof qc)return Pc;if(Array.isArray(ze)){const Re=ze.length;let Be;for(const He of ze){const We=bl(He);if(Be){if(Be===We)continue;Be=Po;break}Be=We}return xc(Be||Po,Re)}return cu}function Lh(ze){const Re=typeof ze;return ze===null?"":Re==="string"||Re==="number"||Re==="boolean"?String(ze):ze instanceof aa||ze instanceof Wc||ze instanceof qc?ze.toString():JSON.stringify(ze)}class mp{constructor(Re,Be){this.type=Re,this.value=Be}static parse(Re,Be){if(Re.length!==2)return Be.error(`'literal' expression requires exactly one argument, but found ${Re.length-1} instead.`);if(!Oh(Re[1]))return Be.error("invalid value");const He=Re[1];let We=bl(He);const Ye=Be.expectedType;return We.kind!=="array"||We.N!==0||!Ye||Ye.kind!=="array"||typeof Ye.N=="number"&&Ye.N!==0||(We=Ye),new mp(We,He)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof aa?["rgba"].concat(this.value.toArray()):this.value instanceof Wc?this.value.serialize():this.value}}var ka=mp,jo=class{constructor(ze){this.name="ExpressionEvaluationError",this.message=ze}toJSON(){return this.message}};const qp={string:Zo,number:js,boolean:$o,object:cu};class $h{constructor(Re,Be){this.type=Re,this.args=Be}static parse(Re,Be){if(Re.length<2)return Be.error("Expected at least one argument.");let He,We=1;const Ye=Re[0];if(Ye==="array"){let li,yi;if(Re.length>2){const xi=Re[1];if(typeof xi!="string"||!(xi in qp)||xi==="object")return Be.error('The item type argument of "array" must be one of string, number, boolean',1);li=qp[xi],We++}else li=Po;if(Re.length>3){if(Re[2]!==null&&(typeof Re[2]!="number"||Re[2]<0||Re[2]!==Math.floor(Re[2])))return Be.error('The length argument to "array" must be a positive integer literal',2);yi=Re[2],We++}He=xc(li,yi)}else He=qp[Ye];const ni=[];for(;We<Re.length;We++){const li=Be.parse(Re[We],We,Po);if(!li)return null;ni.push(li)}return new $h(He,ni)}evaluate(Re){for(let Be=0;Be<this.args.length;Be++){const He=this.args[Be].evaluate(Re);
vendor: 4,293 bytes, line 212
212if(!Aa(this.type,bl(He)))return He;if(Be===this.args.length-1)throw new jo(`Expected value to be of type ${Ma(this.type)}, but found ${Ma(bl(He))} instead.`)}return null}eachChild(Re){this.args.forEach(Re)}outputDefined(){return this.args.every(Re=>Re.outputDefined())}serialize(){const Re=this.type,Be=[Re.kind];if(Re.kind==="array"){const He=Re.itemType;if(He.kind==="string"||He.kind==="number"||He.kind==="boolean"){Be.push(He.kind);const We=Re.N;(typeof We=="number"||this.args.length>1)&&Be.push(We)}}return Be.concat(this.args.map(He=>He.serialize()))}}var xl=$h;class Su{constructor(Re){this.type=Od,this.sections=Re}static parse(Re,Be){if(Re.length<2)return Be.error("Expected at least one argument.");const He=Re[1];if(!Array.isArray(He)&&typeof He=="object")return Be.error("First argument must be an image or text section.");const We=[];let Ye=!1;for(let ni=1;ni<=Re.length-1;++ni){const li=Re[ni];if(Ye&&typeof li=="object"&&!Array.isArray(li)){Ye=!1;let yi=null;if(li["font-scale"]&&(yi=Be.parse(li["font-scale"],1,js),!yi))return null;let xi=null;if(li["text-font"]&&(xi=Be.parse(li["text-font"],1,xc(Zo)),!xi))return null;let Pi=null;if(li["text-color"]&&(Pi=Be.parse(li["text-color"],1,bc),!Pi))return null;const Ni=We[We.length-1];Ni.scale=yi,Ni.font=xi,Ni.textColor=Pi}else{const yi=Be.parse(Re[ni],1,Po);if(!yi)return null;const xi=yi.type.kind;if(xi!=="string"&&xi!=="value"&&xi!=="null"&&xi!=="resolvedImage")return Be.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Ye=!0,We.push({content:yi,scale:null,font:null,textColor:null})}}return new Su(We)}evaluate(Re){return new Wc(this.sections.map(Be=>{const He=Be.content.evaluate(Re);return bl(He)===Pc?new Rh("",He,null,null,null):new Rh(Lh(He),null,Be.scale?Be.scale.evaluate(Re):null,Be.font?Be.font.evaluate(Re).join(","):null,Be.textColor?Be.textColor.evaluate(Re):null)}))}eachChild(Re){for(const Be of this.sections)Re(Be.content),Be.scale&&Re(Be.scale),Be.font&&Re(Be.font),Be.textColor&&Re(Be.textColor)}outputDefined(){return!1}serialize(){const Re=["format"];for(const Be of this.sections){Re.push(Be.content.serialize());const He={};Be.scale&&(He["font-scale"]=Be.scale.serialize()),Be.font&&(He["text-font"]=Be.font.serialize()),Be.textColor&&(He["text-color"]=Be.textColor.serialize()),Re.push(He)}return Re}}class Fh{constructor(Re){this.type=Pc,this.input=Re}static parse(Re,Be){if(Re.length!==2)return Be.error("Expected two arguments.");const He=Be.parse(Re[1],1,Zo);return He?new Fh(He):Be.error("No image name provided.")}evaluate(Re){const Be=this.input.evaluate(Re),He=qc.fromString(Be);return He&&Re.availableImages&&(He.available=Re.availableImages.indexOf(Be)>-1),He}eachChild(Re){Re(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Sf={"to-boolean":$o,"to-color":bc,"to-number":js,"to-string":Zo};class du{constructor(Re,Be){this.type=Re,this.args=Be}static parse(Re,Be){if(Re.length<2)return Be.error("Expected at least one argument.");const He=Re[0];if((He==="to-boolean"||He==="to-string")&&Re.length!==2)return Be.error("Expected one argument.");const We=Sf[He],Ye=[];for(let ni=1;ni<Re.length;ni++){const li=Be.parse(Re[ni],ni,Po);if(!li)return null;Ye.push(li)}return new du(We,Ye)}evaluate(Re){if(this.type.kind==="boolean")return!!this.args[0].evaluate(Re);if(this.type.kind==="color"){let Be,He;for(const We of this.args){if(Be=We.evaluate(Re),He=null,Be instanceof aa)return Be;if(typeof Be=="string"){const Ye=Re.parseColor(Be);if(Ye)return Ye}else if(Array.isArray(Be)&&(He=Be.length<3||Be.length>4?`Invalid rbga value ${JSON.stringify(Be)}: expected an array containing either three or four numeric values.`:Wp(Be[0],Be[1],Be[2],Be[3]),!He))return new aa(Be[0]/255,Be[1]/255,Be[2]/255,Be[3])}throw new jo(He||`Could not parse color from value '${typeof Be=="string"?Be:String(JSON.stringify(Be))}'`)}if(this.type.kind==="number"){let Be=null;for(const He of this.args){if(Be=He.evaluate(Re),Be===null)return 0;const We=Number(Be);if(!isNaN(We))return We}throw new jo(`Could not convert ${JSON.stringify(Be)} to number.`)}return this.type.kind==="formatted"?Wc.fromString(Lh(this.args[0].evaluate(Re))):this.type.kind==="resolvedImage"?qc.fromString(Lh(this.args[0].evaluate(Re))):Lh(this.args[0].evaluate(Re))}
vendor: 9,373 bytes, line 212
212eachChild(Re){this.args.forEach(Re)}outputDefined(){return this.args.every(Re=>Re.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Su([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Fh(this.args[0]).serialize();const Re=[`to-${this.type.kind}`];return this.eachChild(Be=>{Re.push(Be.serialize())}),Re}}var ah=du;const ya=["Unknown","Point","LineString","Polygon"];var Lu=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?ya[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const ze=this.featureDistanceData.center,Re=this.featureDistanceData.scale,{x:Be,y:He}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(Be*Re-ze[0])+this.featureDistanceData.bearing[1]*(He*Re-ze[1])}return 0}parseColor(ze){let Re=this._parseColorCache[ze];return Re||(Re=this._parseColorCache[ze]=aa.parse(ze)),Re}};class ac{constructor(Re,Be,He,We){this.name=Re,this.type=Be,this._evaluate=He,this.args=We}evaluate(Re){return this._evaluate(Re,this.args)}eachChild(Re){this.args.forEach(Re)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(Re=>Re.serialize()))}static parse(Re,Be){const He=Re[0],We=ac.definitions[He];if(!We)return Be.error(`Unknown expression "${He}". If you wanted a literal array, use ["literal", [...]].`,0);const Ye=Array.isArray(We)?We[0]:We.type,ni=Array.isArray(We)?[[We[1],We[2]]]:We.overloads,li=ni.filter(([xi])=>!Array.isArray(xi)||xi.length===Re.length-1);let yi=null;for(const[xi,Pi]of li){yi=new zo(Be.registry,Be.path,null,Be.scope);const Ni=[];let Wi=!1;for(let rn=1;rn<Re.length;rn++){const un=Re[rn],gn=Array.isArray(xi)?xi[rn-1]:xi.type,kn=yi.parse(un,1+Ni.length,gn);if(!kn){Wi=!0;break}Ni.push(kn)}if(!Wi)if(Array.isArray(xi)&&xi.length!==Ni.length)yi.error(`Expected ${xi.length} arguments, but found ${Ni.length} instead.`);else{for(let rn=0;rn<Ni.length;rn++){const un=Array.isArray(xi)?xi[rn]:xi.type,gn=Ni[rn];yi.concat(rn+1).checkSubtype(un,gn.type)}if(yi.errors.length===0)return new ac(He,Ye,Pi,Ni)}}if(li.length===1)Be.errors.push(...yi.errors);else{const xi=(li.length?li:ni).map(([Ni])=>{return Wi=Ni,Array.isArray(Wi)?`(${Wi.map(Ma).join(", ")})`:`(${Ma(Wi.type)}...)`;var Wi}).join(" | "),Pi=[];for(let Ni=1;Ni<Re.length;Ni++){const Wi=Be.parse(Re[Ni],1+Pi.length);if(!Wi)return null;Pi.push(Ma(Wi.type))}Be.error(`Expected arguments of type ${xi}, but found (${Pi.join(", ")}) instead.`)}return null}static register(Re,Be){ac.definitions=Be;for(const He in Be)Re[He]=ac}}var wc=ac;class $d{constructor(Re,Be,He){this.type=ja,this.locale=He,this.caseSensitive=Re,this.diacriticSensitive=Be}static parse(Re,Be){if(Re.length!==2)return Be.error("Expected one argument.");const He=Re[1];if(typeof He!="object"||Array.isArray(He))return Be.error("Collator options argument must be an object.");const We=Be.parse(He["case-sensitive"]!==void 0&&He["case-sensitive"],1,$o);if(!We)return null;const Ye=Be.parse(He["diacritic-sensitive"]!==void 0&&He["diacritic-sensitive"],1,$o);if(!Ye)return null;let ni=null;return He.locale&&(ni=Be.parse(He.locale,1,Zo),!ni)?null:new $d(We,Ye,ni)}evaluate(Re){return new fp(this.caseSensitive.evaluate(Re),this.diacriticSensitive.evaluate(Re),this.locale?this.locale.evaluate(Re):null)}eachChild(Re){Re(this.caseSensitive),Re(this.diacriticSensitive),this.locale&&Re(this.locale)}outputDefined(){return!1}serialize(){const Re={};return Re["case-sensitive"]=this.caseSensitive.serialize(),Re["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(Re.locale=this.locale.serialize()),["collator",Re]}}const zl=8192;function pi(ze,Re){ze[0]=Math.min(ze[0],Re[0]),ze[1]=Math.min(ze[1],Re[1]),ze[2]=Math.max(ze[2],Re[0]),ze[3]=Math.max(ze[3],Re[1])}function Ci(ze,Re){return!(ze[0]<=Re[0]||ze[2]>=Re[2]||ze[1]<=Re[1]||ze[3]>=Re[3])}function Ui(ze,Re){const Be=(180+ze[0])/360,He=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+ze[1]*Math.PI/360)))/360,We=Math.pow(2,Re.z);return[Math.round(Be*We*zl),Math.round(He*We*zl)]}function Ki(ze,Re,Be){const He=ze[0]-Re[0],We=ze[1]-Re[1],Ye=ze[0]-Be[0],ni=ze[1]-Be[1];return He*ni-Ye*We==0&&He*Ye<=0&&We*ni<=0}function mn(ze,Re){let Be=!1;for(let ni=0,li=Re.length;ni<li;ni++){const yi=Re[ni];for(let xi=0,Pi=yi.length;xi<Pi-1;xi++){if(Ki(ze,yi[xi],yi[xi+1]))return!1;(We=yi[xi])[1]>(He=ze)[1]!=(Ye=yi[xi+1])[1]>He[1]&&He[0]<(Ye[0]-We[0])*(He[1]-We[1])/(Ye[1]-We[1])+We[0]&&(Be=!Be)}}var He,We,Ye;return Be}function yn(ze,Re){for(let Be=0;Be<Re.length;Be++)if(mn(ze,Re[Be]))return!0;return!1}function An(ze,Re,Be,He){const We=He[0]-Be[0],Ye=He[1]-Be[1],ni=(ze[0]-Be[0])*Ye-We*(ze[1]-Be[1]),li=(Re[0]-Be[0])*Ye-We*(Re[1]-Be[1]);return ni>0&&li<0||ni<0&&li>0}function ur(ze,Re,Be){for(const xi of Be)for(let Pi=0;Pi<xi.length-1;++Pi)if((li=[(ni=xi[Pi+1])[0]-(Ye=xi[Pi])[0],ni[1]-Ye[1]])[0]*(yi=[(We=Re)[0]-(He=ze)[0],We[1]-He[1]])[1]-li[1]*yi[0]!=0&&An(He,We,Ye,ni)&&An(Ye,ni,He,We))return!0;var He,We,Ye,ni,li,yi;return!1}function Kn(ze,Re){for(let Be=0;Be<ze.length;++Be)if(!mn(ze[Be],Re))return!1;for(let Be=0;Be<ze.length-1;++Be)if(ur(ze[Be],ze[Be+1],Re))return!1;return!0}function Br(ze,Re){for(let Be=0;Be<Re.length;Be++)if(Kn(ze,Re[Be]))return!0;return!1}function ls(ze,Re,Be){const He=[];for(let We=0;We<ze.length;We++){const Ye=[];for(let ni=0;ni<ze[We].length;ni++){const li=Ui(ze[We][ni],Be);pi(Re,li),Ye.push(li)}He.push(Ye)}return He}function ps(ze,Re,Be){const He=[];for(let We=0;We<ze.length;We++){const Ye=ls(ze[We],Re,Be);He.push(Ye)}return He}function Kr(ze,Re,Be,He){if(ze[0]<Be[0]||ze[0]>Be[2]){const We=.5*He;let Ye=ze[0]-Be[0]>We?-He:Be[0]-ze[0]>We?He:0;Ye===0&&(Ye=ze[0]-Be[2]>We?-He:Be[2]-ze[0]>We?He:0),ze[0]+=Ye}pi(Re,ze)}function Ns(ze,Re,Be,He){const We=Math.pow(2,He.z)*zl,Ye=[He.x*zl,He.y*zl],ni=[];if(!ze)return ni;for(const li of ze)for(const yi of li){const xi=[yi.x+Ye[0],yi.y+Ye[1]];Kr(xi,Re,Be,We),ni.push(xi)}return ni}function co(ze,Re,Be,He){const We=Math.pow(2,He.z)*zl,Ye=[He.x*zl,He.y*zl],ni=[];if(!ze)return ni;for(const yi of ze){const xi=[];for(const Pi of yi){const Ni=[Pi.x+Ye[0],Pi.y+Ye[1]];pi(Re,Ni),xi.push(Ni)}ni.push(xi)}if(Re[2]-Re[0]<=We/2){(li=Re)[0]=li[1]=1/0,li[2]=li[3]=-1/0;for(const yi of ni)for(const xi of yi)Kr(xi,Re,Be,We)}var li;return ni}class Fo{constructor(Re,Be){this.type=$o,this.geojson=Re,this.geometries=Be}static parse(Re,Be){if(Re.length!==2)return Be.error(`'within' expression requires exactly one argument, but found ${Re.length-1} instead.`);if(Oh(Re[1])){const He=Re[1];if(He.type==="FeatureCollection")for(let We=0;We<He.features.length;++We){const Ye=He.features[We].geometry.type;if(Ye==="Polygon"||Ye==="MultiPolygon")return new Fo(He,He.features[We].geometry)}else if(He.type==="Feature"){const We=He.geometry.type;if(We==="Polygon"||We==="MultiPolygon")return new Fo(He,He.geometry)}else if(He.type==="Polygon"||He.type==="MultiPolygon")return new Fo(He,He)}return Be.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(Re){if(Re.geometry()!=null&&Re.canonicalID()!=null){if(Re.geometryType()==="Point")return function(Be,He){const We=[1/0,1/0,-1/0,-1/0],Ye=[1/0,1/0,-1/0,-1/0],ni=Be.canonicalID();if(!ni)return!1;if(He.type==="Polygon"){const li=ls(He.coordinates,Ye,ni),yi=Ns(Be.geometry(),We,Ye,ni);if(!Ci(We,Ye))return!1;for(const xi of yi)if(!mn(xi,li))return!1}if(He.type==="MultiPolygon"){const li=ps(He.coordinates,Ye,ni),yi=Ns(Be.geometry(),We,Ye,ni);if(!Ci(We,Ye))return!1;for(const xi of yi)if(!yn(xi,li))return!1}return!0}(Re,this.geometries);if(Re.geometryType()==="LineString")return function(Be,He){const We=[1/0,1/0,-1/0,-1/0],Ye=[1/0,1/0,-1/0,-1/0],ni=Be.canonicalID();if(!ni)return!1;if(He.type==="Polygon"){const li=ls(He.coordinates,Ye,ni),yi=co(Be.geometry(),We,Ye,ni);if(!Ci(We,Ye))return!1;for(const xi of yi)if(!Kn(xi,li))return!1}if(He.type==="MultiPolygon"){const li=ps(He.coordinates,Ye,ni),yi=co(Be.geometry(),We,Ye,ni);if(!Ci(We,Ye))return!1;for(const xi of yi)if(!Br(xi,li))return!1}return!0}(Re,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var Vo=Fo;function Dl(ze){if(ze instanceof wc&&(ze.name==="get"&&ze.args.length===1||ze.name==="feature-state"||ze.name==="has"&&ze.args.length===1||ze.name==="properties"||ze.name==="geometry-type"||ze.name==="id"||/^filter-/.test(ze.name))||ze instanceof Vo)return!1;let Re=!0;return ze.eachChild(Be=>{Re&&!Dl(Be)&&(Re=!1)}),Re}function Wa(ze){if(ze instanceof wc&&ze.name==="feature-state")return!1;let Re=!0;return ze.eachChild(Be=>{Re&&!Wa(Be)&&(Re=!1)}),Re}function Sc(ze,Re){if(ze instanceof wc&&Re.indexOf(ze.name)>=0)return!1;let Be=!0;return ze.eachChild(He=>{Be&&!Sc(He,Re)&&(Be=!1)}),Be}class qa{constructor(Re,Be){this.type=Be.type,this.name=Re,this.boundExpression=Be}
vendor: 4,446 bytes, line 212
212static parse(Re,Be){if(Re.length!==2||typeof Re[1]!="string")return Be.error("'var' expression requires exactly one string literal argument.");const He=Re[1];return Be.scope.has(He)?new qa(He,Be.scope.get(He)):Be.error(`Unknown variable "${He}". Make sure "${He}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(Re){return this.boundExpression.evaluate(Re)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Wo=qa;class Xc{constructor(Re,Be=[],He,We=new sh,Ye=[]){this.registry=Re,this.path=Be,this.key=Be.map(ni=>`[${ni}]`).join(""),this.scope=We,this.errors=Ye,this.expectedType=He}parse(Re,Be,He,We,Ye={}){return Be?this.concat(Be,He,We)._parse(Re,Ye):this._parse(Re,Ye)}_parse(Re,Be){function He(We,Ye,ni){return ni==="assert"?new xl(Ye,[We]):ni==="coerce"?new ah(Ye,[We]):We}if(Re!==null&&typeof Re!="string"&&typeof Re!="boolean"&&typeof Re!="number"||(Re=["literal",Re]),Array.isArray(Re)){if(Re.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const We=Re[0];if(typeof We!="string")return this.error(`Expression name must be a string, but found ${typeof We} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const Ye=this.registry[We];if(Ye){let ni=Ye.parse(Re,this);if(!ni)return null;if(this.expectedType){const li=this.expectedType,yi=ni.type;if(li.kind!=="string"&&li.kind!=="number"&&li.kind!=="boolean"&&li.kind!=="object"&&li.kind!=="array"||yi.kind!=="value")if(li.kind!=="color"&&li.kind!=="formatted"&&li.kind!=="resolvedImage"||yi.kind!=="value"&&yi.kind!=="string"){if(this.checkSubtype(li,yi))return null}else ni=He(ni,li,Be.typeAnnotation||"coerce");else ni=He(ni,li,Be.typeAnnotation||"assert")}if(!(ni instanceof ka)&&ni.type.kind!=="resolvedImage"&&Na(ni)){const li=new Lu;try{ni=new ka(ni.type,ni.evaluate(li))}catch(yi){return this.error(yi.message),null}}return ni}return this.error(`Unknown expression "${We}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(Re===void 0?"'undefined' value invalid. Use null instead.":typeof Re=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof Re} instead.`)}concat(Re,Be,He){const We=typeof Re=="number"?this.path.concat(Re):this.path,Ye=He?this.scope.concat(He):this.scope;return new Xc(this.registry,We,Be||null,Ye,this.errors)}error(Re,...Be){const He=`${this.key}${Be.map(We=>`[${We}]`).join("")}`;this.errors.push(new sc(He,Re))}checkSubtype(Re,Be){const He=Aa(Re,Be);return He&&this.error(He),He}}var zo=Xc;function Na(ze){if(ze instanceof Wo)return Na(ze.boundExpression);if(ze instanceof wc&&ze.name==="error"||ze instanceof $d||ze instanceof Vo)return!1;const Re=ze instanceof ah||ze instanceof xl;let Be=!0;return ze.eachChild(He=>{Be=Re?Be&&Na(He):Be&&He instanceof ka}),!!Be&&Dl(ze)&&Sc(ze,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function hu(ze,Re){const Be=ze.length-1;let He,We,Ye=0,ni=Be,li=0;for(;Ye<=ni;)if(li=Math.floor((Ye+ni)/2),He=ze[li],We=ze[li+1],He<=Re){if(li===Be||Re<We)return li;Ye=li+1}else{if(!(He>Re))throw new jo("Input is not a number.");ni=li-1}return 0}class ud{constructor(Re,Be,He){this.type=Re,this.input=Be,this.labels=[],this.outputs=[];for(const[We,Ye]of He)this.labels.push(We),this.outputs.push(Ye)}static parse(Re,Be){if(Re.length-1<4)return Be.error(`Expected at least 4 arguments, but found only ${Re.length-1}.`);if((Re.length-1)%2!=0)return Be.error("Expected an even number of arguments.");const He=Be.parse(Re[1],1,js);if(!He)return null;const We=[];let Ye=null;Be.expectedType&&Be.expectedType.kind!=="value"&&(Ye=Be.expectedType);for(let ni=1;ni<Re.length;ni+=2){const li=ni===1?-1/0:Re[ni],yi=Re[ni+1],xi=ni,Pi=ni+1;if(typeof li!="number")return Be.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',xi);if(We.length&&We[We.length-1][0]>=li)return Be.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',xi);const Ni=Be.parse(yi,Pi,Ye);if(!Ni)return null;Ye=Ye||Ni.type,We.push([li,Ni])}return new ud(Ye,He,We)}evaluate(Re){const Be=this.labels,He=this.outputs;if(Be.length===1)return He[0].evaluate(Re);const We=this.input.evaluate(Re);
vendor: 8,875 bytes, line 212
212if(We<=Be[0])return He[0].evaluate(Re);const Ye=Be.length;return We>=Be[Ye-1]?He[Ye-1].evaluate(Re):He[hu(Be,We)].evaluate(Re)}eachChild(Re){Re(this.input);for(const Be of this.outputs)Re(Be)}outputDefined(){return this.outputs.every(Re=>Re.outputDefined())}serialize(){const Re=["step",this.input.serialize()];for(let Be=0;Be<this.labels.length;Be++)Be>0&&Re.push(this.labels[Be]),Re.push(this.outputs[Be].serialize());return Re}}var Ic=ud;function qo(ze,Re,Be){return ze*(1-Be)+Re*Be}var lc=Object.freeze({__proto__:null,array:function(ze,Re,Be){return ze.map((He,We)=>qo(He,Re[We],Be))},color:function(ze,Re,Be){return new aa(qo(ze.r,Re.r,Be),qo(ze.g,Re.g,Be),qo(ze.b,Re.b,Be),qo(ze.a,Re.a,Be))},number:qo});const $u=.95047,Zc=1.08883,Ml=4/29,Tu=6/29,Kl=3*Tu*Tu,Tc=Tu*Tu*Tu,pu=Math.PI/180,Xp=180/Math.PI;function lh(ze){return ze>Tc?Math.pow(ze,1/3):ze/Kl+Ml}function xa(ze){return ze>Tu?ze*ze*ze:Kl*(ze-Ml)}function Fu(ze){return 255*(ze<=.0031308?12.92*ze:1.055*Math.pow(ze,1/2.4)-.055)}function Rc(ze){return(ze/=255)<=.04045?ze/12.92:Math.pow((ze+.055)/1.055,2.4)}function Fd(ze){const Re=Rc(ze.r),Be=Rc(ze.g),He=Rc(ze.b),We=lh((.4124564*Re+.3575761*Be+.1804375*He)/$u),Ye=lh((.2126729*Re+.7151522*Be+.072175*He)/1);return{l:116*Ye-16,a:500*(We-Ye),b:200*(Ye-lh((.0193339*Re+.119192*Be+.9503041*He)/Zc)),alpha:ze.a}}function Tf(ze){let Re=(ze.l+16)/116,Be=isNaN(ze.a)?Re:Re+ze.a/500,He=isNaN(ze.b)?Re:Re-ze.b/200;return Re=1*xa(Re),Be=$u*xa(Be),He=Zc*xa(He),new aa(Fu(3.2404542*Be-1.5371385*Re-.4985314*He),Fu(-.969266*Be+1.8760108*Re+.041556*He),Fu(.0556434*Be-.2040259*Re+1.0572252*He),ze.alpha)}function Ef(ze,Re,Be){const He=Re-ze;return ze+Be*(He>180||He<-180?He-360*Math.round(He/360):He)}const zd={forward:Fd,reverse:Tf,interpolate:function(ze,Re,Be){return{l:qo(ze.l,Re.l,Be),a:qo(ze.a,Re.a,Be),b:qo(ze.b,Re.b,Be),alpha:qo(ze.alpha,Re.alpha,Be)}}},Bl={forward:function(ze){const{l:Re,a:Be,b:He}=Fd(ze),We=Math.atan2(He,Be)*Xp;return{h:We<0?We+360:We,c:Math.sqrt(Be*Be+He*He),l:Re,alpha:ze.a}},reverse:function(ze){const Re=ze.h*pu,Be=ze.c;return Tf({l:ze.l,a:Math.cos(Re)*Be,b:Math.sin(Re)*Be,alpha:ze.alpha})},interpolate:function(ze,Re,Be){return{h:Ef(ze.h,Re.h,Be),c:qo(ze.c,Re.c,Be),l:qo(ze.l,Re.l,Be),alpha:qo(ze.alpha,Re.alpha,Be)}}};var Bd=Object.freeze({__proto__:null,hcl:Bl,lab:zd});class Yc{constructor(Re,Be,He,We,Ye){this.type=Re,this.operator=Be,this.interpolation=He,this.input=We,this.labels=[],this.outputs=[];for(const[ni,li]of Ye)this.labels.push(ni),this.outputs.push(li)}static interpolationFactor(Re,Be,He,We){let Ye=0;if(Re.name==="exponential")Ye=zh(Be,Re.base,He,We);else if(Re.name==="linear")Ye=zh(Be,1,He,We);else if(Re.name==="cubic-bezier"){const ni=Re.controlPoints;Ye=new an(ni[0],ni[1],ni[2],ni[3]).solve(zh(Be,1,He,We))}return Ye}static parse(Re,Be){let[He,We,Ye,...ni]=Re;if(!Array.isArray(We)||We.length===0)return Be.error("Expected an interpolation type expression.",1);if(We[0]==="linear")We={name:"linear"};else if(We[0]==="exponential"){const xi=We[1];if(typeof xi!="number")return Be.error("Exponential interpolation requires a numeric base.",1,1);We={name:"exponential",base:xi}}else{if(We[0]!=="cubic-bezier")return Be.error(`Unknown interpolation type ${String(We[0])}`,1,0);{const xi=We.slice(1);if(xi.length!==4||xi.some(Pi=>typeof Pi!="number"||Pi<0||Pi>1))return Be.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);We={name:"cubic-bezier",controlPoints:xi}}}if(Re.length-1<4)return Be.error(`Expected at least 4 arguments, but found only ${Re.length-1}.`);if((Re.length-1)%2!=0)return Be.error("Expected an even number of arguments.");if(Ye=Be.parse(Ye,2,js),!Ye)return null;const li=[];let yi=null;He==="interpolate-hcl"||He==="interpolate-lab"?yi=bc:Be.expectedType&&Be.expectedType.kind!=="value"&&(yi=Be.expectedType);for(let xi=0;xi<ni.length;xi+=2){const Pi=ni[xi],Ni=ni[xi+1],Wi=xi+3,rn=xi+4;if(typeof Pi!="number")return Be.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',Wi);if(li.length&&li[li.length-1][0]>=Pi)return Be.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Wi);const un=Be.parse(Ni,rn,yi);if(!un)return null;yi=yi||un.type,li.push([Pi,un])}return yi.kind==="number"||yi.kind==="color"||yi.kind==="array"&&yi.itemType.kind==="number"&&typeof yi.N=="number"?new Yc(yi,He,We,Ye,li):Be.error(`Type ${Ma(yi)} is not interpolatable.`)}evaluate(Re){const Be=this.labels,He=this.outputs;if(Be.length===1)return He[0].evaluate(Re);const We=this.input.evaluate(Re);if(We<=Be[0])return He[0].evaluate(Re);const Ye=Be.length;if(We>=Be[Ye-1])return He[Ye-1].evaluate(Re);const ni=hu(Be,We),li=Yc.interpolationFactor(this.interpolation,We,Be[ni],Be[ni+1]),yi=He[ni].evaluate(Re),xi=He[ni+1].evaluate(Re);return this.operator==="interpolate"?lc[this.type.kind.toLowerCase()](yi,xi,li):this.operator==="interpolate-hcl"?Bl.reverse(Bl.interpolate(Bl.forward(yi),Bl.forward(xi),li)):zd.reverse(zd.interpolate(zd.forward(yi),zd.forward(xi),li))}eachChild(Re){Re(this.input);for(const Be of this.outputs)Re(Be)}outputDefined(){return this.outputs.every(Re=>Re.outputDefined())}serialize(){let Re;Re=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const Be=[this.operator,Re,this.input.serialize()];for(let He=0;He<this.labels.length;He++)Be.push(this.labels[He],this.outputs[He].serialize());return Be}}function zh(ze,Re,Be,He){const We=He-Be,Ye=ze-Be;return We===0?0:Re===1?Ye/We:(Math.pow(Re,Ye)-1)/(Math.pow(Re,We)-1)}var Ec=Yc;class Kc{constructor(Re,Be){this.type=Re,this.args=Be}static parse(Re,Be){if(Re.length<2)return Be.error("Expectected at least one argument.");let He=null;const We=Be.expectedType;We&&We.kind!=="value"&&(He=We);const Ye=[];for(const li of Re.slice(1)){const yi=Be.parse(li,1+Ye.length,He,void 0,{typeAnnotation:"omit"});if(!yi)return null;He=He||yi.type,Ye.push(yi)}const ni=We&&Ye.some(li=>Aa(We,li.type));return new Kc(ni?Po:He,Ye)}evaluate(Re){let Be,He=null,We=0;for(const Ye of this.args){if(We++,He=Ye.evaluate(Re),He&&He instanceof qc&&!He.available&&(Be||(Be=He),He=null,We===this.args.length))return Be;if(He!==null)break}return He}eachChild(Re){this.args.forEach(Re)}outputDefined(){return this.args.every(Re=>Re.outputDefined())}serialize(){const Re=["coalesce"];return this.eachChild(Be=>{Re.push(Be.serialize())}),Re}}var dd=Kc;class ch{constructor(Re,Be){this.type=Be.type,this.bindings=[].concat(Re),this.result=Be}evaluate(Re){return this.result.evaluate(Re)}eachChild(Re){for(const Be of this.bindings)Re(Be[1]);Re(this.result)}static parse(Re,Be){if(Re.length<4)return Be.error(`Expected at least 3 arguments, but found ${Re.length-1} instead.`);const He=[];for(let Ye=1;Ye<Re.length-1;Ye+=2){const ni=Re[Ye];if(typeof ni!="string")return Be.error(`Expected string, but found ${typeof ni} instead.`,Ye);if(/[^a-zA-Z0-9_]/.test(ni))return Be.error("Variable names must contain only alphanumeric characters or '_'.",Ye);const li=Be.parse(Re[Ye+1],Ye+1);if(!li)return null;He.push([ni,li])}const We=Be.parse(Re[Re.length-1],Re.length-1,Be.expectedType,He);return We?new ch(He,We):null}outputDefined(){return this.result.outputDefined()}serialize(){const Re=["let"];for(const[Be,He]of this.bindings)Re.push(Be,He.serialize());return Re.push(this.result.serialize()),Re}}var sm=ch;class Nd{constructor(Re,Be,He){this.type=Re,this.index=Be,this.input=He}static parse(Re,Be){if(Re.length!==3)return Be.error(`Expected 2 arguments, but found ${Re.length-1} instead.`);const He=Be.parse(Re[1],1,js),We=Be.parse(Re[2],2,xc(Be.expectedType||Po));return He&&We?new Nd(We.type.itemType,He,We):null}evaluate(Re){const Be=this.index.evaluate(Re),He=this.input.evaluate(Re);if(Be<0)throw new jo(`Array index out of bounds: ${Be} < 0.`);if(Be>=He.length)throw new jo(`Array index out of bounds: ${Be} > ${He.length-1}.`);if(Be!==Math.floor(Be))throw new jo(`Array index must be an integer, but found ${Be} instead.`);return He[Be]}eachChild(Re){Re(this.index),Re(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var Ku=Nd;class Jl{constructor(Re,Be){this.type=$o,this.needle=Re,this.haystack=Be}static parse(Re,Be){if(Re.length!==3)return Be.error(`Expected 2 arguments, but found ${Re.length-1} instead.`);const He=Be.parse(Re[1],1,Po),We=Be.parse(Re[2],2,Po);return He&&We?jc(He.type,[$o,Zo,js,oa,Po])?new Jl(He,We):Be.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ma(He.type)} instead`):null}evaluate(Re){const Be=this.needle.evaluate(Re),He=this.haystack.evaluate(Re);
212if(He==null)return!1;if(!Ph(Be,["boolean","string","number","null"]))throw new jo(`Expected first argument to be of type boolean, string, number or null, but found ${Ma(bl(Be))} instead.`);if(!Ph(He,["string","array"]))throw new jo(`Expected second argument to be of type array or string, but found ${Ma(bl(He))} instead.`);return He.indexOf(Be)>=0}eachChild(Re){Re(this.needle),Re(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var Jc=Jl;class Vd{constructor(Re,Be,He){this.type=js,this.needle=Re,this.haystack=Be,this.fromIndex=He}static parse(Re,Be){if(Re.length<=2||Re.length>=5)return Be.error(`Expected 3 or 4 arguments, but found ${Re.length-1} instead.`);const He=Be.parse(Re[1],1,Po),We=Be.parse(Re[2],2,Po);if(!He||!We)return null;if(!jc(He.type,[$o,Zo,js,oa,Po]))return Be.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ma(He.type)} instead`);if(Re.length===4){const Ye=Be.parse(Re[3],3,js);return Ye?new Vd(He,We,Ye):null}return new Vd(He,We)}evaluate(Re){const Be=this.needle.evaluate(Re),He=this.haystack.evaluate(Re);if(!Ph(Be,["boolean","string","number","null"]))throw new jo(`Expected first argument to be of type boolean, string, number or null, but found ${Ma(bl(Be))} instead.`);if(!Ph(He,["string","array"]))throw new jo(`Expected second argument to be of type array or string, but found ${Ma(bl(He))} instead.`);if(this.fromIndex){const We=this.fromIndex.evaluate(Re);return He.indexOf(Be,We)}return He.indexOf(Be)}eachChild(Re){Re(this.needle),Re(this.haystack),this.fromIndex&&Re(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const Re=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),Re]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var gp=Vd;class nr{constructor(Re,Be,He,We,Ye,ni){this.inputType=Re,this.type=Be,this.input=He,this.cases=We,this.outputs=Ye,this.otherwise=ni}static parse(Re,Be){if(Re.length<5)return Be.error(`Expected at least 4 arguments, but found only ${Re.length-1}.`);if(Re.length%2!=1)return Be.error("Expected an even number of arguments.");let He,We;Be.expectedType&&Be.expectedType.kind!=="value"&&(We=Be.expectedType);const Ye={},ni=[];for(let xi=2;xi<Re.length-1;xi+=2){let Pi=Re[xi];const Ni=Re[xi+1];Array.isArray(Pi)||(Pi=[Pi]);const Wi=Be.concat(xi);if(Pi.length===0)return Wi.error("Expected at least one branch label.");for(const un of Pi){if(typeof un!="number"&&typeof un!="string")return Wi.error("Branch labels must be numbers or strings.");if(typeof un=="number"&&Math.abs(un)>Number.MAX_SAFE_INTEGER)return Wi.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof un=="number"&&Math.floor(un)!==un)return Wi.error("Numeric branch labels must be integer values.");if(He){if(Wi.checkSubtype(He,bl(un)))return null}else He=bl(un);if(Ye[String(un)]!==void 0)return Wi.error("Branch labels must be unique.");Ye[String(un)]=ni.length}const rn=Be.parse(Ni,xi,We);if(!rn)return null;We=We||rn.type,ni.push(rn)}const li=Be.parse(Re[1],1,Po);if(!li)return null;const yi=Be.parse(Re[Re.length-1],Re.length-1,We);return yi?li.type.kind!=="value"&&Be.concat(1).checkSubtype(He,li.type)?null:new nr(He,We,li,Ye,ni,yi):null}evaluate(Re){const Be=this.input.evaluate(Re);return(bl(Be)===this.inputType&&this.outputs[this.cases[Be]]||this.otherwise).evaluate(Re)}eachChild(Re){Re(this.input),this.outputs.forEach(Re),Re(this.otherwise)}outputDefined(){return this.outputs.every(Re=>Re.outputDefined())&&this.otherwise.outputDefined()}serialize(){const Re=["match",this.input.serialize()],Be=Object.keys(this.cases).sort(),He=[],We={};for(const ni of Be){const li=We[this.cases[ni]];li===void 0?(We[this.cases[ni]]=He.length,He.push([this.cases[ni],[ni]])):He[li][1].push(ni)}const Ye=ni=>this.inputType.kind==="number"?Number(ni):ni;for(const[ni,li]of He)Re.push(li.length===1?Ye(li[0]):li.map(Ye)),Re.push(this.outputs[ni].serialize());return Re.push(this.otherwise.serialize()),Re}}var Ir=nr;class Yr{constructor(Re,Be,He){this.type=Re,this.branches=Be,this.otherwise=He}static parse(Re,Be){if(Re.length<4)return Be.error(`Expected at least 3 arguments, but found only ${Re.length-1}.`);if(Re.length%2!=0)return Be.error("Expected an odd number of arguments.");let He;Be.expectedType&&Be.expectedType.kind!=="value"&&(He=Be.expectedType);const We=[];for(let ni=1;ni<Re.length-1;
vendor: 6,970 bytes, line 212
212ni+=2){const li=Be.parse(Re[ni],ni,$o);if(!li)return null;const yi=Be.parse(Re[ni+1],ni+1,He);if(!yi)return null;We.push([li,yi]),He=He||yi.type}const Ye=Be.parse(Re[Re.length-1],Re.length-1,He);return Ye?new Yr(He,We,Ye):null}evaluate(Re){for(const[Be,He]of this.branches)if(Be.evaluate(Re))return He.evaluate(Re);return this.otherwise.evaluate(Re)}eachChild(Re){for(const[Be,He]of this.branches)Re(Be),Re(He);Re(this.otherwise)}outputDefined(){return this.branches.every(([Re,Be])=>Be.outputDefined())&&this.otherwise.outputDefined()}serialize(){const Re=["case"];return this.eachChild(Be=>{Re.push(Be.serialize())}),Re}}var is=Yr;class Un{constructor(Re,Be,He,We){this.type=Re,this.input=Be,this.beginIndex=He,this.endIndex=We}static parse(Re,Be){if(Re.length<=2||Re.length>=5)return Be.error(`Expected 3 or 4 arguments, but found ${Re.length-1} instead.`);const He=Be.parse(Re[1],1,Po),We=Be.parse(Re[2],2,js);if(!He||!We)return null;if(!jc(He.type,[xc(Po),Zo,Po]))return Be.error(`Expected first argument to be of type array or string, but found ${Ma(He.type)} instead`);if(Re.length===4){const Ye=Be.parse(Re[3],3,js);return Ye?new Un(He.type,He,We,Ye):null}return new Un(He.type,He,We)}evaluate(Re){const Be=this.input.evaluate(Re),He=this.beginIndex.evaluate(Re);if(!Ph(Be,["string","array"]))throw new jo(`Expected first argument to be of type array or string, but found ${Ma(bl(Be))} instead.`);if(this.endIndex){const We=this.endIndex.evaluate(Re);return Be.slice(He,We)}return Be.slice(He)}eachChild(Re){Re(this.input),Re(this.beginIndex),this.endIndex&&Re(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const Re=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),Re]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var Ar=Un;function Tr(ze,Re){return ze==="=="||ze==="!="?Re.kind==="boolean"||Re.kind==="string"||Re.kind==="number"||Re.kind==="null"||Re.kind==="value":Re.kind==="string"||Re.kind==="number"||Re.kind==="value"}function fs(ze,Re,Be,He){return He.compare(Re,Be)===0}function ws(ze,Re,Be){const He=ze!=="=="&&ze!=="!=";return class kR{constructor(Ye,ni,li){this.type=$o,this.lhs=Ye,this.rhs=ni,this.collator=li,this.hasUntypedArgument=Ye.type.kind==="value"||ni.type.kind==="value"}static parse(Ye,ni){if(Ye.length!==3&&Ye.length!==4)return ni.error("Expected two or three arguments.");const li=Ye[0];let yi=ni.parse(Ye[1],1,Po);if(!yi)return null;if(!Tr(li,yi.type))return ni.concat(1).error(`"${li}" comparisons are not supported for type '${Ma(yi.type)}'.`);let xi=ni.parse(Ye[2],2,Po);if(!xi)return null;if(!Tr(li,xi.type))return ni.concat(2).error(`"${li}" comparisons are not supported for type '${Ma(xi.type)}'.`);if(yi.type.kind!==xi.type.kind&&yi.type.kind!=="value"&&xi.type.kind!=="value")return ni.error(`Cannot compare types '${Ma(yi.type)}' and '${Ma(xi.type)}'.`);He&&(yi.type.kind==="value"&&xi.type.kind!=="value"?yi=new xl(xi.type,[yi]):yi.type.kind!=="value"&&xi.type.kind==="value"&&(xi=new xl(yi.type,[xi])));let Pi=null;if(Ye.length===4){if(yi.type.kind!=="string"&&xi.type.kind!=="string"&&yi.type.kind!=="value"&&xi.type.kind!=="value")return ni.error("Cannot use collator to compare non-string types.");if(Pi=ni.parse(Ye[3],3,ja),!Pi)return null}return new kR(yi,xi,Pi)}evaluate(Ye){const ni=this.lhs.evaluate(Ye),li=this.rhs.evaluate(Ye);if(He&&this.hasUntypedArgument){const yi=bl(ni),xi=bl(li);if(yi.kind!==xi.kind||yi.kind!=="string"&&yi.kind!=="number")throw new jo(`Expected arguments for "${ze}" to be (string, string) or (number, number), but found (${yi.kind}, ${xi.kind}) instead.`)}if(this.collator&&!He&&this.hasUntypedArgument){const yi=bl(ni),xi=bl(li);if(yi.kind!=="string"||xi.kind!=="string")return Re(Ye,ni,li)}return this.collator?Be(Ye,ni,li,this.collator.evaluate(Ye)):Re(Ye,ni,li)}eachChild(Ye){Ye(this.lhs),Ye(this.rhs),this.collator&&Ye(this.collator)}outputDefined(){return!0}serialize(){const Ye=[ze];return this.eachChild(ni=>{Ye.push(ni.serialize())}),Ye}}}const yo=ws("==",function(ze,Re,Be){return Re===Be},fs),vo=ws("!=",function(ze,Re,Be){return Re!==Be},function(ze,Re,Be,He){return!fs(0,Re,Be,He)}),uo=ws("<",function(ze,Re,Be){return Re<Be},function(ze,Re,Be,He){return He.compare(Re,Be)<0}),ua=ws(">",function(ze,Re,Be){return Re>Be},function(ze,Re,Be,He){return He.compare(Re,Be)>0}),To=ws("<=",function(ze,Re,Be){return Re<=Be},function(ze,Re,Be,He){return He.compare(Re,Be)<=0}),Ho=ws(">=",function(ze,Re,Be){return Re>=Be},function(ze,Re,Be,He){return He.compare(Re,Be)>=0});class Oa{constructor(Re,Be,He,We,Ye,ni){this.type=Zo,this.number=Re,this.locale=Be,this.currency=He,this.unit=We,this.minFractionDigits=Ye,this.maxFractionDigits=ni}static parse(Re,Be){if(Re.length!==3)return Be.error("Expected two arguments.");const He=Be.parse(Re[1],1,js);if(!He)return null;const We=Re[2];if(typeof We!="object"||Array.isArray(We))return Be.error("NumberFormat options argument must be an object.");let Ye=null;if(We.locale&&(Ye=Be.parse(We.locale,1,Zo),!Ye))return null;let ni=null;if(We.currency&&(ni=Be.parse(We.currency,1,Zo),!ni))return null;let li=null;if(We.unit&&(li=Be.parse(We.unit,1,Zo),!li))return null;let yi=null;if(We["min-fraction-digits"]&&(yi=Be.parse(We["min-fraction-digits"],1,js),!yi))return null;let xi=null;return We["max-fraction-digits"]&&(xi=Be.parse(We["max-fraction-digits"],1,js),!xi)?null:new Oa(He,Ye,ni,li,yi,xi)}evaluate(Re){return new Intl.NumberFormat(this.locale?this.locale.evaluate(Re):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(Re):void 0,unit:this.unit?this.unit.evaluate(Re):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(Re):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(Re):void 0}).format(this.number.evaluate(Re))}eachChild(Re){Re(this.number),this.locale&&Re(this.locale),this.currency&&Re(this.currency),this.unit&&Re(this.unit),this.minFractionDigits&&Re(this.minFractionDigits),this.maxFractionDigits&&Re(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const Re={};return this.locale&&(Re.locale=this.locale.serialize()),this.currency&&(Re.currency=this.currency.serialize()),this.unit&&(Re.unit=this.unit.serialize()),this.minFractionDigits&&(Re["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(Re["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),Re]}}class Xa{constructor(Re){this.type=js,this.input=Re}static parse(Re,Be){if(Re.length!==2)return Be.error(`Expected 1 argument, but found ${Re.length-1} instead.`);const He=Be.parse(Re[1],1);return He?He.type.kind!=="array"&&He.type.kind!=="string"&&He.type.kind!=="value"?Be.error(`Expected argument of type string or array, but found ${Ma(He.type)} instead.`):new Xa(He):null}evaluate(Re){const Be=this.input.evaluate(Re);
vendor: 4,159 bytes, line 212
212if(typeof Be=="string"||Array.isArray(Be))return Be.length;throw new jo(`Expected value to be of type string or array, but found ${Ma(bl(Be))} instead.`)}eachChild(Re){Re(this.input)}outputDefined(){return!1}serialize(){const Re=["length"];return this.eachChild(Be=>{Re.push(Be.serialize())}),Re}}const Nl={"==":yo,"!=":vo,">":ua,"<":uo,">=":Ho,"<=":To,array:xl,at:Ku,boolean:xl,case:is,coalesce:dd,collator:$d,format:Su,image:Fh,in:Jc,"index-of":gp,interpolate:Ec,"interpolate-hcl":Ec,"interpolate-lab":Ec,length:Xa,let:sm,literal:ka,match:Ir,number:xl,"number-format":Oa,object:xl,slice:Ar,step:Ic,string:xl,"to-boolean":ah,"to-color":ah,"to-number":ah,"to-string":ah,var:Wo,within:Vo};function Oc(ze,[Re,Be,He,We]){Re=Re.evaluate(ze),Be=Be.evaluate(ze),He=He.evaluate(ze);const Ye=We?We.evaluate(ze):1,ni=Wp(Re,Be,He,Ye);if(ni)throw new jo(ni);return new aa(Re/255*Ye,Be/255*Ye,He/255*Ye,Ye)}function Ql(ze,Re){return ze in Re}function Bo(ze,Re){const Be=Re[ze];return Be===void 0?null:Be}function Ju(ze){return{type:ze}}wc.register(Nl,{error:[{kind:"error"},[Zo],(ze,[Re])=>{throw new jo(Re.evaluate(ze))}],typeof:[Zo,[Po],(ze,[Re])=>Ma(bl(Re.evaluate(ze)))],"to-rgba":[xc(js,4),[bc],(ze,[Re])=>Re.evaluate(ze).toArray()],rgb:[bc,[js,js,js],Oc],rgba:[bc,[js,js,js,js],Oc],has:{type:$o,overloads:[[[Zo],(ze,[Re])=>Ql(Re.evaluate(ze),ze.properties())],[[Zo,cu],(ze,[Re,Be])=>Ql(Re.evaluate(ze),Be.evaluate(ze))]]},get:{type:Po,overloads:[[[Zo],(ze,[Re])=>Bo(Re.evaluate(ze),ze.properties())],[[Zo,cu],(ze,[Re,Be])=>Bo(Re.evaluate(ze),Be.evaluate(ze))]]},"feature-state":[Po,[Zo],(ze,[Re])=>Bo(Re.evaluate(ze),ze.featureState||{})],properties:[cu,[],ze=>ze.properties()],"geometry-type":[Zo,[],ze=>ze.geometryType()],id:[Po,[],ze=>ze.id()],zoom:[js,[],ze=>ze.globals.zoom],pitch:[js,[],ze=>ze.globals.pitch||0],"distance-from-center":[js,[],ze=>ze.distanceFromCenter()],"heatmap-density":[js,[],ze=>ze.globals.heatmapDensity||0],"line-progress":[js,[],ze=>ze.globals.lineProgress||0],"sky-radial-progress":[js,[],ze=>ze.globals.skyRadialProgress||0],accumulated:[Po,[],ze=>ze.globals.accumulated===void 0?null:ze.globals.accumulated],"+":[js,Ju(js),(ze,Re)=>{let Be=0;for(const He of Re)Be+=He.evaluate(ze);return Be}],"*":[js,Ju(js),(ze,Re)=>{let Be=1;for(const He of Re)Be*=He.evaluate(ze);return Be}],"-":{type:js,overloads:[[[js,js],(ze,[Re,Be])=>Re.evaluate(ze)-Be.evaluate(ze)],[[js],(ze,[Re])=>-Re.evaluate(ze)]]},"/":[js,[js,js],(ze,[Re,Be])=>Re.evaluate(ze)/Be.evaluate(ze)],"%":[js,[js,js],(ze,[Re,Be])=>Re.evaluate(ze)%Be.evaluate(ze)],ln2:[js,[],()=>Math.LN2],pi:[js,[],()=>Math.PI],e:[js,[],()=>Math.E],"^":[js,[js,js],(ze,[Re,Be])=>Math.pow(Re.evaluate(ze),Be.evaluate(ze))],sqrt:[js,[js],(ze,[Re])=>Math.sqrt(Re.evaluate(ze))],log10:[js,[js],(ze,[Re])=>Math.log(Re.evaluate(ze))/Math.LN10],ln:[js,[js],(ze,[Re])=>Math.log(Re.evaluate(ze))],log2:[js,[js],(ze,[Re])=>Math.log(Re.evaluate(ze))/Math.LN2],sin:[js,[js],(ze,[Re])=>Math.sin(Re.evaluate(ze))],cos:[js,[js],(ze,[Re])=>Math.cos(Re.evaluate(ze))],tan:[js,[js],(ze,[Re])=>Math.tan(Re.evaluate(ze))],asin:[js,[js],(ze,[Re])=>Math.asin(Re.evaluate(ze))],acos:[js,[js],(ze,[Re])=>Math.acos(Re.evaluate(ze))],atan:[js,[js],(ze,[Re])=>Math.atan(Re.evaluate(ze))],min:[js,Ju(js),(ze,Re)=>Math.min(...Re.map(Be=>Be.evaluate(ze)))],max:[js,Ju(js),(ze,Re)=>Math.max(...Re.map(Be=>Be.evaluate(ze)))],abs:[js,[js],(ze,[Re])=>Math.abs(Re.evaluate(ze))],round:[js,[js],(ze,[Re])=>{const Be=Re.evaluate(ze);return Be<0?-Math.round(-Be):Math.round(Be)}],floor:[js,[js],(ze,[Re])=>Math.floor(Re.evaluate(ze))],ceil:[js,[js],(ze,[Re])=>Math.ceil(Re.evaluate(ze))],"filter-==":[$o,[Zo,Po],(ze,[Re,Be])=>ze.properties()[Re.value]===Be.value],"filter-id-==":[$o,[Po],(ze,[Re])=>ze.id()===Re.value],"filter-type-==":[$o,[Zo],(ze,[Re])=>ze.geometryType()===Re.value],"filter-<":[$o,[Zo,Po],(ze,[Re,Be])=>{const He=ze.properties()[Re.value],We=Be.value;return typeof He==typeof We&&He<We}],"filter-id-<":[$o,[Po],(ze,[Re])=>{const Be=ze.id(),He=Re.value;return typeof Be==typeof He&&Be<He}],"filter->":[$o,[Zo,Po],(ze,[Re,Be])=>{const He=ze.properties()[Re.value],We=Be.value;return typeof He==typeof We&&He>We}
vendor: 8,659 bytes, line 212
212],"filter-id->":[$o,[Po],(ze,[Re])=>{const Be=ze.id(),He=Re.value;return typeof Be==typeof He&&Be>He}],"filter-<=":[$o,[Zo,Po],(ze,[Re,Be])=>{const He=ze.properties()[Re.value],We=Be.value;return typeof He==typeof We&&He<=We}],"filter-id-<=":[$o,[Po],(ze,[Re])=>{const Be=ze.id(),He=Re.value;return typeof Be==typeof He&&Be<=He}],"filter->=":[$o,[Zo,Po],(ze,[Re,Be])=>{const He=ze.properties()[Re.value],We=Be.value;return typeof He==typeof We&&He>=We}],"filter-id->=":[$o,[Po],(ze,[Re])=>{const Be=ze.id(),He=Re.value;return typeof Be==typeof He&&Be>=He}],"filter-has":[$o,[Po],(ze,[Re])=>Re.value in ze.properties()],"filter-has-id":[$o,[],ze=>ze.id()!==null&&ze.id()!==void 0],"filter-type-in":[$o,[xc(Zo)],(ze,[Re])=>Re.value.indexOf(ze.geometryType())>=0],"filter-id-in":[$o,[xc(Po)],(ze,[Re])=>Re.value.indexOf(ze.id())>=0],"filter-in-small":[$o,[Zo,xc(Po)],(ze,[Re,Be])=>Be.value.indexOf(ze.properties()[Re.value])>=0],"filter-in-large":[$o,[Zo,xc(Po)],(ze,[Re,Be])=>function(He,We,Ye,ni){for(;Ye<=ni;){const li=Ye+ni>>1;if(We[li]===He)return!0;We[li]>He?ni=li-1:Ye=li+1}return!1}(ze.properties()[Re.value],Be.value,0,Be.value.length-1)],all:{type:$o,overloads:[[[$o,$o],(ze,[Re,Be])=>Re.evaluate(ze)&&Be.evaluate(ze)],[Ju($o),(ze,Re)=>{for(const Be of Re)if(!Be.evaluate(ze))return!1;return!0}]]},any:{type:$o,overloads:[[[$o,$o],(ze,[Re,Be])=>Re.evaluate(ze)||Be.evaluate(ze)],[Ju($o),(ze,Re)=>{for(const Be of Re)if(Be.evaluate(ze))return!0;return!1}]]},"!":[$o,[$o],(ze,[Re])=>!Re.evaluate(ze)],"is-supported-script":[$o,[Zo],(ze,[Re])=>{const Be=ze.globals&&ze.globals.isSupportedScript;return!Be||Be(Re.evaluate(ze))}],upcase:[Zo,[Zo],(ze,[Re])=>Re.evaluate(ze).toUpperCase()],downcase:[Zo,[Zo],(ze,[Re])=>Re.evaluate(ze).toLowerCase()],concat:[Zo,Ju(Po),(ze,Re)=>Re.map(Be=>Lh(Be.evaluate(ze))).join("")],"resolved-locale":[Zo,[ja],(ze,[Re])=>Re.evaluate(ze).resolvedLocale()]});var yp=Nl;function da(ze){return{result:"success",value:ze}}function Bh(ze){return{result:"error",value:ze}}function vp(ze){return ze["property-type"]==="data-driven"}function Cf(ze){return!!ze.expression&&ze.expression.parameters.indexOf("zoom")>-1}function Nh(ze){return!!ze.expression&&ze.expression.interpolated}function la(ze){return ze instanceof Number?"number":ze instanceof String?"string":ze instanceof Boolean?"boolean":Array.isArray(ze)?"array":ze===null?"null":typeof ze}function hd(ze){return typeof ze=="object"&&ze!==null&&!Array.isArray(ze)}function jm(ze){return ze}function _p(ze,Re){const Be=Re.type==="color",He=ze.stops&&typeof ze.stops[0][0]=="object",We=He||!(He||ze.property!==void 0),Ye=ze.type||(Nh(Re)?"exponential":"interval");if(Be&&((ze=Ou({},ze)).stops&&(ze.stops=ze.stops.map(xi=>[xi[0],aa.parse(xi[1])])),ze.default=aa.parse(ze.default?ze.default:Re.default)),ze.colorSpace&&ze.colorSpace!=="rgb"&&!Bd[ze.colorSpace])throw new Error(`Unknown color space: ${ze.colorSpace}`);let ni,li,yi;if(Ye==="exponential")ni=Hd;else if(Ye==="interval")ni=Vh;else if(Ye==="categorical"){ni=om,li=Object.create(null);for(const xi of ze.stops)li[xi[0]]=xi[1];yi=typeof ze.stops[0][0]}else{if(Ye!=="identity")throw new Error(`Unknown function type "${Ye}"`);ni=pd}if(He){const xi={},Pi=[];for(let rn=0;rn<ze.stops.length;rn++){const un=ze.stops[rn],gn=un[0].zoom;xi[gn]===void 0&&(xi[gn]={zoom:gn,type:ze.type,property:ze.property,default:ze.default,stops:[]},Pi.push(gn)),xi[gn].stops.push([un[0].value,un[1]])}const Ni=[];for(const rn of Pi)Ni.push([xi[rn].zoom,_p(xi[rn],Re)]);const Wi={name:"linear"};return{kind:"composite",interpolationType:Wi,interpolationFactor:Ec.interpolationFactor.bind(void 0,Wi),zoomStops:Ni.map(rn=>rn[0]),evaluate:({zoom:rn},un)=>Hd({stops:Ni,base:ze.base},Re,rn).evaluate(rn,un)}}if(We){const xi=Ye==="exponential"?{name:"exponential",base:ze.base!==void 0?ze.base:1}:null;return{kind:"camera",interpolationType:xi,interpolationFactor:Ec.interpolationFactor.bind(void 0,xi),zoomStops:ze.stops.map(Pi=>Pi[0]),evaluate:({zoom:Pi})=>ni(ze,Re,Pi,li,yi)}}return{kind:"source",evaluate(xi,Pi){const Ni=Pi&&Pi.properties?Pi.properties[ze.property]:void 0;return Ni===void 0?bp(ze.default,Re.default):ni(ze,Re,Ni,li,yi)}}}function bp(ze,Re,Be){return ze!==void 0?ze:Re!==void 0?Re:Be!==void 0?Be:void 0}function om(ze,Re,Be,He,We){return bp(typeof Be===We?He[Be]:void 0,ze.default,Re.default)}function Vh(ze,Re,Be){if(la(Be)!=="number")return bp(ze.default,Re.default);const He=ze.stops.length;if(He===1||Be<=ze.stops[0][0])return ze.stops[0][1];if(Be>=ze.stops[He-1][0])return ze.stops[He-1][1];const We=hu(ze.stops.map(Ye=>Ye[0]),Be);return ze.stops[We][1]}function Hd(ze,Re,Be){const He=ze.base!==void 0?ze.base:1;if(la(Be)!=="number")return bp(ze.default,Re.default);const We=ze.stops.length;if(We===1||Be<=ze.stops[0][0])return ze.stops[0][1];if(Be>=ze.stops[We-1][0])return ze.stops[We-1][1];const Ye=hu(ze.stops.map(Pi=>Pi[0]),Be),ni=function(Pi,Ni,Wi,rn){const un=rn-Wi,gn=Pi-Wi;return un===0?0:Ni===1?gn/un:(Math.pow(Ni,gn)-1)/(Math.pow(Ni,un)-1)}(Be,He,ze.stops[Ye][0],ze.stops[Ye+1][0]),li=ze.stops[Ye][1],yi=ze.stops[Ye+1][1];let xi=lc[Re.type]||jm;if(ze.colorSpace&&ze.colorSpace!=="rgb"){const Pi=Bd[ze.colorSpace];xi=(Ni,Wi)=>Pi.reverse(Pi.interpolate(Pi.forward(Ni),Pi.forward(Wi),ni))}return typeof li.evaluate=="function"?{evaluate(...Pi){const Ni=li.evaluate.apply(void 0,Pi),Wi=yi.evaluate.apply(void 0,Pi);if(Ni!==void 0&&Wi!==void 0)return xi(Ni,Wi,ni)}}:xi(li,yi,ni)}function pd(ze,Re,Be){return Re.type==="color"?Be=aa.parse(Be):Re.type==="formatted"?Be=Wc.fromString(Be.toString()):Re.type==="resolvedImage"?Be=qc.fromString(Be.toString()):la(Be)===Re.type||Re.type==="enum"&&Re.values[Be]||(Be=void 0),bp(Be,ze.default,Re.default)}class Qu{constructor(Re,Be){this.expression=Re,this._warningHistory={},this._evaluator=new Lu,this._defaultValue=Be?function(He){return He.type==="color"&&(hd(He.default)||Array.isArray(He.default))?new aa(0,0,0,0):He.type==="color"?aa.parse(He.default)||null:He.default===void 0?null:He.default}(Be):null,this._enumValues=Be&&Be.type==="enum"?Be.values:null}evaluateWithoutErrorHandling(Re,Be,He,We,Ye,ni,li,yi){return this._evaluator.globals=Re,this._evaluator.feature=Be,this._evaluator.featureState=He,this._evaluator.canonical=We||null,this._evaluator.availableImages=Ye||null,this._evaluator.formattedSection=ni,this._evaluator.featureTileCoord=li||null,this._evaluator.featureDistanceData=yi||null,this.expression.evaluate(this._evaluator)}evaluate(Re,Be,He,We,Ye,ni,li,yi){this._evaluator.globals=Re,this._evaluator.feature=Be||null,this._evaluator.featureState=He||null,this._evaluator.canonical=We||null,this._evaluator.availableImages=Ye||null,this._evaluator.formattedSection=ni||null,this._evaluator.featureTileCoord=li||null,this._evaluator.featureDistanceData=yi||null;try{const xi=this.expression.evaluate(this._evaluator);if(xi==null||typeof xi=="number"&&xi!=xi)return this._defaultValue;if(this._enumValues&&!(xi in this._enumValues))throw new jo(`Expected value to be one of ${Object.keys(this._enumValues).map(Pi=>JSON.stringify(Pi)).join(", ")}, but found ${JSON.stringify(xi)} instead.`);return xi}catch(xi){return this._warningHistory[xi.message]||(this._warningHistory[xi.message]=!0,typeof console<"u"&&console.warn(xi.message)),this._defaultValue}}}function Ud(ze){return Array.isArray(ze)&&ze.length>0&&typeof ze[0]=="string"&&ze[0]in yp}function xp(ze,Re){const Be=new zo(yp,[],Re?function(We){const Ye={color:bc,string:Zo,number:js,enum:Zo,boolean:$o,formatted:Od,resolvedImage:Pc};return We.type==="array"?xc(Ye[We.value]||Po,We.length):Ye[We.type]}(Re):void 0),He=Be.parse(ze,void 0,void 0,void 0,Re&&Re.type==="string"?{typeAnnotation:"coerce"}:void 0);return He?da(new Qu(He,Re)):Bh(Be.errors)}class Hh{constructor(Re,Be){this.kind=Re,this._styleExpression=Be,this.isStateDependent=Re!=="constant"&&!Wa(Be.expression)}evaluateWithoutErrorHandling(Re,Be,He,We,Ye,ni){return this._styleExpression.evaluateWithoutErrorHandling(Re,Be,He,We,Ye,ni)}evaluate(Re,Be,He,We,Ye,ni){return this._styleExpression.evaluate(Re,Be,He,We,Ye,ni)}}class Af{constructor(Re,Be,He,We){this.kind=Re,this.zoomStops=He,this._styleExpression=Be,this.isStateDependent=Re!=="camera"&&!Wa(Be.expression),this.interpolationType=We}evaluateWithoutErrorHandling(Re,Be,He,We,Ye,ni){return this._styleExpression.evaluateWithoutErrorHandling(Re,Be,He,We,Ye,ni)}evaluate(Re,Be,He,We,Ye,ni){return this._styleExpression.evaluate(Re,Be,He,We,Ye,ni)}interpolationFactor(Re,Be,He){return this.interpolationType?Ec.interpolationFactor(this.interpolationType,Re,Be,He):0}}function ed(ze,Re){if((ze=xp(ze,Re)).result==="error")return ze;const Be=ze.value.expression,He=Dl(Be);
212if(!He&&!vp(Re))return Bh([new sc("","data expressions not supported")]);const We=Sc(Be,["zoom","pitch","distance-from-center"]);if(!We&&!Cf(Re))return Bh([new sc("","zoom expressions not supported")]);const Ye=Uh(Be);return Ye||We?Ye instanceof sc?Bh([Ye]):Ye instanceof Ec&&!Nh(Re)?Bh([new sc("",'"interpolate" expressions cannot be used with this property')]):da(Ye?new Af(He?"camera":"composite",ze.value,Ye.labels,Ye instanceof Ec?Ye.interpolation:void 0):new Hh(He?"constant":"source",ze.value)):Bh([new sc("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class wp{constructor(Re,Be){this._parameters=Re,this._specification=Be,Ou(this,_p(this._parameters,this._specification))}static deserialize(Re){return new wp(Re._parameters,Re._specification)}static serialize(Re){return{_parameters:Re._parameters,_specification:Re._specification}}}function Uh(ze){let Re=null;if(ze instanceof sm)Re=Uh(ze.result);else if(ze instanceof dd){for(const Be of ze.args)if(Re=Uh(Be),Re)break}else(ze instanceof Ic||ze instanceof Ec)&&ze.input instanceof wc&&ze.input.name==="zoom"&&(Re=ze);return Re instanceof sc||ze.eachChild(Be=>{const He=Uh(Be);He instanceof sc?Re=He:!Re&&He?Re=new sc("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):Re&&He&&Re!==He&&(Re=new sc("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),Re}class Ys{constructor(Re,Be,He,We){this.message=(Re?`${Re}: `:"")+He,We&&(this.identifier=We),Be!=null&&Be.__line__&&(this.line=Be.__line__)}}function kl(ze){const Re=ze.key,Be=ze.value,He=ze.valueSpec||{},We=ze.objectElementValidators||{},Ye=ze.style,ni=ze.styleSpec;let li=[];const yi=la(Be);if(yi!=="object")return[new Ys(Re,Be,`object expected, ${yi} found`)];for(const xi in Be){const Pi=xi.split(".")[0];let Ni;We[Pi]?Ni=We[Pi]:He[Pi]?Ni=$c:We["*"]?Ni=We["*"]:He["*"]&&(Ni=$c),Ni?li=li.concat(Ni({key:(Re&&`${Re}.`)+xi,value:Be[xi],valueSpec:He[Pi]||He["*"],style:Ye,styleSpec:ni,object:Be,objectKey:xi},Be)):li.push(new Ys(Re,Be[xi],`unknown property "${xi}"`))}for(const xi in He)We[xi]||He[xi].required&&He[xi].default===void 0&&Be[xi]===void 0&&li.push(new Ys(Re,Be,`missing required property "${xi}"`));return li}function Wm(ze){const Re=ze.value,Be=ze.valueSpec,He=ze.style,We=ze.styleSpec,Ye=ze.key,ni=ze.arrayElementValidator||$c;if(la(Re)!=="array")return[new Ys(Ye,Re,`array expected, ${la(Re)} found`)];if(Be.length&&Re.length!==Be.length)return[new Ys(Ye,Re,`array length ${Be.length} expected, length ${Re.length} found`)];if(Be["min-length"]&&Re.length<Be["min-length"])return[new Ys(Ye,Re,`array length at least ${Be["min-length"]} expected, length ${Re.length} found`)];let li={type:Be.value,values:Be.values,minimum:Be.minimum,maximum:Be.maximum,function:void 0};We.$version<7&&(li.function=Be.function),la(Be.value)==="object"&&(li=Be.value);let yi=[];for(let xi=0;xi<Re.length;xi++)yi=yi.concat(ni({array:Re,arrayIndex:xi,value:Re[xi],valueSpec:li,style:He,styleSpec:We,key:`${Ye}[${xi}]`}));return yi}function Zp(ze){const Re=ze.key,Be=ze.value,He=ze.valueSpec;let We=la(Be);if(We==="number"&&Be!=Be&&(We="NaN"),We!=="number")return[new Ys(Re,Be,`number expected, ${We} found`)];if("minimum"in He){let Ye=He.minimum;if(la(He.minimum)==="array"&&(Ye=He.minimum[ze.arrayIndex]),Be<Ye)return[new Ys(Re,Be,`${Be} is less than the minimum value ${Ye}`)]}if("maximum"in He){let Ye=He.maximum;if(la(He.maximum)==="array"&&(Ye=He.maximum[ze.arrayIndex]),Be>Ye)return[new Ys(Re,Be,`${Be} is greater than the maximum value ${Ye}`)]}return[]}function Pl(ze){const Re=ze.valueSpec,Be=hl(ze.value.type);let He,We,Ye,ni={};const li=Be!=="categorical"&&ze.value.property===void 0,yi=!li,xi=la(ze.value.stops)==="array"&&la(ze.value.stops[0])==="array"&&la(ze.value.stops[0][0])==="object",Pi=kl({key:ze.key,value:ze.value,valueSpec:ze.styleSpec.function,style:ze.style,styleSpec:ze.styleSpec,objectElementValidators:{stops:function(rn){if(Be==="identity")return[new Ys(rn.key,rn.value,'identity function may not have a "stops" property')];let un=[];const gn=rn.value;return un=un.concat(Wm({key:rn.key,value:gn,valueSpec:rn.valueSpec,style:rn.style,styleSpec:rn.styleSpec,arrayElementValidator:Ni})),la(gn)==="array"&&gn.length===0&&un.push(new Ys(rn.key,gn,"array must have at least one stop")),un},default:function(rn){return $c({key:rn.key,value:rn.value,valueSpec:Re,style:rn.style,styleSpec:rn.styleSpec})}}});return Be==="identity"&&li&&Pi.push(new Ys(ze.key,ze.value,'missing required property "property"')),Be==="identity"||ze.value.stops||Pi.push(new Ys(ze.key,ze.value,'missing required property "stops"')),Be==="exponential"&&ze.valueSpec.expression&&!Nh(ze.valueSpec)&&Pi.push(new Ys(ze.key,ze.value,"exponential functions not supported")),ze.styleSpec.$version>=8&&(yi&&!vp(ze.valueSpec)?Pi.push(new Ys(ze.key,ze.value,"property functions not supported")):l
212i&&!Cf(ze.valueSpec)&&Pi.push(new Ys(ze.key,ze.value,"zoom functions not supported"))),Be!=="categorical"&&!xi||ze.value.property!==void 0||Pi.push(new Ys(ze.key,ze.value,'"property" property is required')),Pi;function Ni(rn){let un=[];const gn=rn.value,kn=rn.key;if(la(gn)!=="array")return[new Ys(kn,gn,`array expected, ${la(gn)} found`)];if(gn.length!==2)return[new Ys(kn,gn,`array length 2 expected, length ${gn.length} found`)];if(xi){if(la(gn[0])!=="object")return[new Ys(kn,gn,`object expected, ${la(gn[0])} found`)];if(gn[0].zoom===void 0)return[new Ys(kn,gn,"object stop key must have zoom")];if(gn[0].value===void 0)return[new Ys(kn,gn,"object stop key must have value")];const jn=hl(gn[0].zoom);if(typeof jn!="number")return[new Ys(kn,gn[0].zoom,"stop zoom values must be numbers")];if(Ye&&Ye>jn)return[new Ys(kn,gn[0].zoom,"stop zoom values must appear in ascending order")];jn!==Ye&&(Ye=jn,We=void 0,ni={}),un=un.concat(kl({key:`${kn}[0]`,value:gn[0],valueSpec:{zoom:{}},style:rn.style,styleSpec:rn.styleSpec,objectElementValidators:{zoom:Zp,value:Wi}}))}else un=un.concat(Wi({key:`${kn}[0]`,value:gn[0],valueSpec:{},style:rn.style,styleSpec:rn.styleSpec},gn));return Ud(il(gn[1]))?un.concat([new Ys(`${kn}[1]`,gn[1],"expressions are not allowed in function stops.")]):un.concat($c({key:`${kn}[1]`,value:gn[1],valueSpec:Re,style:rn.style,styleSpec:rn.styleSpec}))}function Wi(rn,un){const gn=la(rn.value),kn=hl(rn.value),jn=rn.value!==null?rn.value:un;if(He){if(gn!==He)return[new Ys(rn.key,jn,`${gn} stop domain type must match previous stop domain type ${He}`)]}else He=gn;if(gn!=="number"&&gn!=="string"&&gn!=="boolean"&&typeof kn!="number"&&typeof kn!="string"&&typeof kn!="boolean")return[new Ys(rn.key,jn,"stop domain value must be a number, string, or boolean")];if(gn!=="number"&&Be!=="categorical"){let ar=`number expected, ${gn} found`;return vp(Re)&&Be===void 0&&(ar+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ys(rn.key,jn,ar)]}return Be!=="categorical"||gn!=="number"||typeof kn=="number"&&isFinite(kn)&&Math.floor(kn)===kn?Be!=="categorical"&&gn==="number"&&typeof kn=="number"&&typeof We=="number"&&We!==void 0&&kn<We?[new Ys(rn.key,jn,"stop domain values must appear in ascending order")]:(We=kn,Be==="categorical"&&kn in ni?[new Ys(rn.key,jn,"stop domain values must be unique")]:(ni[kn]=!0,[])):[new Ys(rn.key,jn,`integer expected, found ${String(kn)}`)]}}function Ta(ze){const Re=(ze.expressionContext==="property"?ed:xp)(il(ze.value),ze.valueSpec);if(Re.result==="error")return Re.value.map(He=>new Ys(`${ze.key}${He.key}`,ze.value,He.message));const Be=Re.value.expression||Re.value._styleExpression.expression;if(ze.expressionContext==="property"&&ze.propertyKey==="text-font"&&!Be.outputDefined())return[new Ys(ze.key,ze.value,`Invalid data expression for "${ze.propertyKey}". Output values must be contained as literals within the expression.`)];if(ze.expressionContext==="property"&&ze.propertyType==="layout"&&!Wa(Be))return[new Ys(ze.key,ze.value,'"feature-state" data expressions are not supported with layout properties.')];if(ze.expressionContext==="filter")return Df(Be,ze);if(ze.expressionContext&&ze.expressionContext.indexOf("cluster")===0){if(!Sc(Be,["zoom","feature-state"]))return[new Ys(ze.key,ze.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(ze.expressionContext==="cluster-initial"&&!Dl(Be))return[new Ys(ze.key,ze.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Df(ze,Re){const Be=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(Re.valueSpec&&Re.valueSpec.expression)for(const We of Re.valueSpec.expression.parameters)Be.delete(We);if(Be.size===0)return[];const He=[];return ze instanceof wc&&Be.has(ze.name)?[new Ys(Re.key,Re.value,`["${ze.name}"] expression is not supported in a filter for a ${Re.object.type} layer with id: ${Re.object.id}`)]:(ze.eachChild(We=>{He.push(...Df(We,Re))}),He)}function am(ze){const Re=ze.key,Be=ze.value,He=ze.valueSpec,We=[];return Array.isArray(He.values)?He.values.indexOf(hl(Be))===-1&&We.push(new Ys(Re,Be,`expected one of [${He.values.join(", ")}], ${JSON.stringify(Be)} found`)):Object.keys(He.values).indexOf(hl(Be))===-1&&We.push(new Ys(Re,Be,`expected one of [${Object.keys(He.values).join(", ")}], ${JSON.stringify(Be)} found`)),We}function lm(ze){if(ze===!0||ze===!1)return!0;
vendor: 2,498 bytes, lines 212-218
212if(!Array.isArray(ze)||ze.length===0)return!1;switch(ze[0]){case"has":return ze.length>=2&&ze[1]!=="$id"&&ze[1]!=="$type";case"in":return ze.length>=3&&(typeof ze[1]!="string"||Array.isArray(ze[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return ze.length!==3||Array.isArray(ze[1])||Array.isArray(ze[2]);case"any":case"all":for(const Re of ze.slice(1))if(!lm(Re)&&typeof Re!="boolean")return!1;return!0;default:return!0}}function Gh(ze,Re="fill"){if(ze==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};lm(ze)||(ze=Wd(ze));const Be=ze;let He=!0;try{He=function(xi){if(!fd(xi))return xi;let Pi=il(xi);return Gd(Pi),Pi=zu(Pi),Pi}(Be)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
213This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md
214and paste the contents of this message in the report.
215Thank you!
216Filter Expression:
217${JSON.stringify(Be,null,2)}
218        `)}const We=rs[`filter_${Re}`],Ye=xp(He,We);let ni=null;if(Ye.result==="error")throw new Error(Ye.value.map(xi=>`${xi.key}: ${xi.message}`).join(", "));ni=(xi,Pi,Ni)=>Ye.value.evaluate(xi,Pi,{},Ni);let li=null,yi=null;if(He!==Be){const xi=xp(Be,We);if(xi.result==="error")throw new Error(xi.value.map(Pi=>`${Pi.key}: ${Pi.message}`).join(", "));li=(Pi,Ni,Wi,rn,un)=>xi.value.evaluate(Pi,Ni,{},Wi,void 0,void 0,rn,un),yi=!Dl(xi.value.expression)}return{filter:ni,dynamicFilter:li||void 0,needGeometry:Yp(He),needFeature:!!yi}}function zu(ze){if(!Array.isArray(ze))return ze;const Re=function(Be){if(uh.has(Be[0])){for(let He=1;He<Be.length;He++)if(fd(Be[He]))return!0}return Be}(ze);return Re===!0?Re:Re.map(Be=>zu(Be))}function Gd(ze){let Re=!1;const Be=[];if(ze[0]==="case"){for(let He=1;He<ze.length-1;He+=2)Re=Re||fd(ze[He]),Be.push(ze[He+1]);Be.push(ze[ze.length-1])}else if(ze[0]==="match"){Re=Re||fd(ze[1]);for(let He=2;He<ze.length-1;He+=2)Be.push(ze[He+1]);Be.push(ze[ze.length-1])}else if(ze[0]==="step"){Re=Re||fd(ze[1]);for(let He=1;He<ze.length-1;He+=2)Be.push(ze[He+1])}Re&&(ze.length=0,ze.push("any",...Be));for(let He=1;He<ze.length;He++)Gd(ze[He])}function fd(ze){if(!Array.isArray(ze))return!1;if((Re=ze[0])==="pitch"||Re==="distance-from-center")return!0;var Re;for(let Be=1;Be<ze.length;Be++)if(fd(ze[Be]))return!0;return!1}const uh=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);
vendor: 4,847 bytes, lines 218-219
218function jd(ze,Re){return ze<Re?-1:ze>Re?1:0}function Yp(ze){if(!Array.isArray(ze))return!1;if(ze[0]==="within")return!0;for(let Re=1;Re<ze.length;Re++)if(Yp(ze[Re]))return!0;return!1}function Wd(ze){if(!ze)return!0;const Re=ze[0];return ze.length<=1?Re!=="any":Re==="=="?dh(ze[1],ze[2],"=="):Re==="!="?md(dh(ze[1],ze[2],"==")):Re==="<"||Re===">"||Re==="<="||Re===">="?dh(ze[1],ze[2],Re):Re==="any"?(Be=ze.slice(1),["any"].concat(Be.map(Wd))):Re==="all"?["all"].concat(ze.slice(1).map(Wd)):Re==="none"?["all"].concat(ze.slice(1).map(Wd).map(md)):Re==="in"?Sp(ze[1],ze.slice(2)):Re==="!in"?md(Sp(ze[1],ze.slice(2))):Re==="has"?Kp(ze[1]):Re==="!has"?md(Kp(ze[1])):Re!=="within"||ze;var Be}function dh(ze,Re,Be){switch(ze){case"$type":return[`filter-type-${Be}`,Re];case"$id":return[`filter-id-${Be}`,Re];default:return[`filter-${Be}`,ze,Re]}}function Sp(ze,Re){if(Re.length===0)return!1;switch(ze){case"$type":return["filter-type-in",["literal",Re]];case"$id":return["filter-id-in",["literal",Re]];default:return Re.length>200&&!Re.some(Be=>typeof Be!=typeof Re[0])?["filter-in-large",ze,["literal",Re.sort(jd)]]:["filter-in-small",ze,["literal",Re]]}}function Kp(ze){switch(ze){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",ze]}}function md(ze){return["!",ze]}function Tp(ze){return lm(il(ze.value))?Ta(Ou({},ze,{expressionContext:"filter",valueSpec:ze.styleSpec[`filter_${ze.layerType||"fill"}`]})):jh(ze)}function jh(ze){const Re=ze.value,Be=ze.key;if(la(Re)!=="array")return[new Ys(Be,Re,`array expected, ${la(Re)} found`)];const He=ze.styleSpec;let We,Ye=[];if(Re.length<1)return[new Ys(Be,Re,"filter array must have at least 1 element")];switch(Ye=Ye.concat(am({key:`${Be}[0]`,value:Re[0],valueSpec:He.filter_operator,style:ze.style,styleSpec:ze.styleSpec})),hl(Re[0])){case"<":case"<=":case">":case">=":Re.length>=2&&hl(Re[1])==="$type"&&Ye.push(new Ys(Be,Re,`"$type" cannot be use with operator "${Re[0]}"`));case"==":case"!=":Re.length!==3&&Ye.push(new Ys(Be,Re,`filter array for operator "${Re[0]}" must have 3 elements`));case"in":case"!in":Re.length>=2&&(We=la(Re[1]),We!=="string"&&Ye.push(new Ys(`${Be}[1]`,Re[1],`string expected, ${We} found`)));for(let ni=2;ni<Re.length;ni++)We=la(Re[ni]),hl(Re[1])==="$type"?Ye=Ye.concat(am({key:`${Be}[${ni}]`,value:Re[ni],valueSpec:He.geometry_type,style:ze.style,styleSpec:ze.styleSpec})):We!=="string"&&We!=="number"&&We!=="boolean"&&Ye.push(new Ys(`${Be}[${ni}]`,Re[ni],`string, number, or boolean expected, ${We} found`));break;case"any":case"all":case"none":for(let ni=1;ni<Re.length;ni++)Ye=Ye.concat(jh({key:`${Be}[${ni}]`,value:Re[ni],style:ze.style,styleSpec:ze.styleSpec}));break;case"has":case"!has":We=la(Re[1]),Re.length!==2?Ye.push(new Ys(Be,Re,`filter array for "${Re[0]}" operator must have 2 elements`)):We!=="string"&&Ye.push(new Ys(`${Be}[1]`,Re[1],`string expected, ${We} found`));break;case"within":We=la(Re[1]),Re.length!==2?Ye.push(new Ys(Be,Re,`filter array for "${Re[0]}" operator must have 2 elements`)):We!=="object"&&Ye.push(new Ys(`${Be}[1]`,Re[1],`object expected, ${We} found`))}return Ye}function Ep(ze,Re){const Be=ze.key,He=ze.style,We=ze.styleSpec,Ye=ze.value,ni=ze.objectKey,li=We[`${Re}_${ze.layerType}`];if(!li)return[];const yi=ni.match(/^(.*)-transition$/);if(Re==="paint"&&yi&&li[yi[1]]&&li[yi[1]].transition)return $c({key:Be,value:Ye,valueSpec:We.transition,style:He,styleSpec:We});const xi=ze.valueSpec||li[ni];if(!xi)return[new Ys(Be,Ye,`unknown property "${ni}"`)];let Pi;if(la(Ye)==="string"&&vp(xi)&&!xi.tokens&&(Pi=/^{([^}]+)}$/.exec(Ye))){const Wi=`\`{ "type": "identity", "property": ${Pi?JSON.stringify(Pi[1]):'"_"'} }\``;return[new Ys(Be,Ye,`"${ni}" does not support interpolation syntax
219Use an identity property function instead: ${Wi}.`)]}const Ni=[];return ze.layerType==="symbol"&&(ni==="text-field"&&He&&!He.glyphs&&Ni.push(new Ys(Be,Ye,'use of "text-field" requires a style "glyphs" property')),ni==="text-font"&&hd(il(Ye))&&hl(Ye.type)==="identity"&&Ni.push(new Ys(Be,Ye,'"text-font" does not support identity functions'))),Ni.concat($c({key:ze.key,value:Ye,valueSpec:xi,style:He,styleSpec:We,expressionContext:"property",propertyType:Re,propertyKey:ni}))}function Cp(ze){return Ep(ze,"paint")}function Mf(ze){return Ep(ze,"layout")}function Rn(ze){let Re=[];const Be=ze.value,He=ze.key,We=ze.style,Ye=ze.styleSpec;Be.type||Be.ref||Re.push(new Ys(He,Be,'either "type" or "ref" is required'));let ni=hl(Be.type);const li=hl(Be.ref);if(Be.id){const yi=hl(Be.id);for(let xi=0;xi<ze.arrayIndex;xi++){const Pi=We.layers[xi];hl(Pi.id)===yi&&Re.push(new Ys(He,Be.id,`duplicate layer id "${Be.id}", previously used at line ${Pi.id.__line__}`))}}if("ref"in Be){let yi;["type","source","source-layer","filter","layout"].forEach(xi=>{xi in Be&&Re.push(new Ys(He,Be[xi],`"${xi}" is prohibited for ref layers`))}
219),We.layers.forEach(xi=>{hl(xi.id)===li&&(yi=xi)}),yi?yi.ref?Re.push(new Ys(He,Be.ref,"ref cannot reference another ref layer")):ni=hl(yi.type):typeof li=="string"&&Re.push(new Ys(He,Be.ref,`ref layer "${li}" not found`))}else if(ni!=="background"&&ni!=="sky")if(Be.source){const yi=We.sources&&We.sources[Be.source],xi=yi&&hl(yi.type);yi?xi==="vector"&&ni==="raster"?Re.push(new Ys(He,Be.source,`layer "${Be.id}" requires a raster source`)):xi==="raster"&&ni!=="raster"?Re.push(new Ys(He,Be.source,`layer "${Be.id}" requires a vector source`)):xi!=="vector"||Be["source-layer"]?xi==="raster-dem"&&ni!=="hillshade"?Re.push(new Ys(He,Be.source,"raster-dem source can only be used with layer type 'hillshade'.")):ni!=="line"||!Be.paint||!Be.paint["line-gradient"]&&!Be.paint["line-trim-offset"]||xi==="geojson"&&yi.lineMetrics||Re.push(new Ys(He,Be,`layer "${Be.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):Re.push(new Ys(He,Be,`layer "${Be.id}" must specify a "source-layer"`)):Re.push(new Ys(He,Be.source,`source "${Be.source}" not found`))}else Re.push(new Ys(He,Be,'missing required property "source"'));return Re=Re.concat(kl({key:He,value:Be,valueSpec:Ye.layer,style:ze.style,styleSpec:ze.styleSpec,objectElementValidators:{"*":()=>[],type:()=>$c({key:`${He}.type`,value:Be.type,valueSpec:Ye.layer.type,style:ze.style,styleSpec:ze.styleSpec,object:Be,objectKey:"type"}),filter:yi=>Tp(Ou({layerType:ni},yi)),layout:yi=>kl({layer:Be,key:yi.key,value:yi.value,valueSpec:{},style:yi.style,styleSpec:yi.styleSpec,objectElementValidators:{"*":xi=>Mf(Ou({layerType:ni},xi))}}),paint:yi=>kl({layer:Be,key:yi.key,value:yi.value,valueSpec:{},style:yi.style,styleSpec:yi.styleSpec,objectElementValidators:{"*":xi=>Cp(Ou({layerType:ni},xi))}})}})),Re}function Bu(ze){const Re=ze.value,Be=ze.key,He=la(Re);return He!=="string"?[new Ys(Be,Re,`string expected, ${He} found`)]:[]}const Ap={promoteId:function({key:ze,value:Re}){if(la(Re)==="string")return Bu({key:ze,value:Re});{const Be=[];for(const He in Re)Be.push(...Bu({key:`${ze}.${He}`,value:Re[He]}));return Be}}};function Lc(ze){const Re=ze.value,Be=ze.key,He=ze.styleSpec,We=ze.style;if(!Re.type)return[new Ys(Be,Re,'"type" is required')];const Ye=hl(Re.type);let ni;switch(Ye){case"vector":case"raster":case"raster-dem":return ni=kl({key:Be,value:Re,valueSpec:He[`source_${Ye.replace("-","_")}`],style:ze.style,styleSpec:He,objectElementValidators:Ap}),ni;case"geojson":if(ni=kl({key:Be,value:Re,valueSpec:He.source_geojson,style:We,styleSpec:He,objectElementValidators:Ap}),Re.cluster)for(const li in Re.clusterProperties){const[yi,xi]=Re.clusterProperties[li],Pi=typeof yi=="string"?[yi,["accumulated"],["get",li]]:yi;ni.push(...Ta({key:`${Be}.${li}.map`,value:xi,expressionContext:"cluster-map"})),ni.push(...Ta({key:`${Be}.${li}.reduce`,value:Pi,expressionContext:"cluster-reduce"}))}return ni;case"video":return kl({key:Be,value:Re,valueSpec:He.source_video,style:We,styleSpec:He});case"image":return kl({key:Be,value:Re,valueSpec:He.source_image,style:We,styleSpec:He});case"canvas":return[new Ys(Be,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return am({key:`${Be}.type`,value:Re.type,valueSpec:{values:ta(He)},style:We,styleSpec:He})}}function ta(ze){return ze.source.reduce((Re,Be)=>{const He=ze[Be];return He.type.type==="enum"&&(Re=Re.concat(Object.keys(He.type.values))),Re},[])}function qm(ze){const Re=ze.value,Be=ze.styleSpec,He=Be.light,We=ze.style;let Ye=[];const ni=la(Re);if(Re===void 0)return Ye;if(ni!=="object")return Ye=Ye.concat([new Ys("light",Re,`object expected, ${ni} found`)]),Ye;for(const li in Re){const yi=li.match(/^(.*)-transition$/);Ye=Ye.concat(yi&&He[yi[1]]&&He[yi[1]].transition?$c({key:li,value:Re[li],valueSpec:Be.transition,style:We,styleSpec:Be}):He[li]?$c({key:li,value:Re[li],valueSpec:He[li],style:We,styleSpec:Be}):[new Ys(li,Re[li],`unknown property "${li}"`)])}return Ye}function Jp(ze){const Re=ze.value,Be=ze.key,He=ze.style,We=ze.styleSpec,Ye=We.terrain;let ni=[];const li=la(Re);if(Re===void 0)return ni;if(li!=="object")return ni=ni.concat([new Ys("terrain",Re,`object expected, ${li} found`)]),ni;for(const yi in Re){const xi=yi.match(/^(.*)-transition$/);ni=ni.concat(xi&&Ye[xi[1]]&&Ye[xi[1]].transition?$c({key:yi,value:Re[yi],valueSpec:We.transition,style:He,styleSpec:We}):Ye[yi]?$c({key:yi,value:Re[yi],valueSpec:Ye[yi],style:He,styleSpec:We}):[new Ys(yi,Re[yi],`unknown property "${yi}"`)])}if(Re.source){const yi=He.sources&&He.sources[Re.source],xi=yi&&hl(yi.type);yi?xi!=="raster-dem"&&ni.push(new Ys(Be,Re.source,`terrain cannot be used with a source of type ${String(xi)}, it only be used with a "raster-dem" source type`)):ni.push(new Ys(Be,Re.source,`source "${Re.source}" not found`))}else ni.push(new Ys(Be,Re,'terrain is missing required property "source"'));return ni}function kf(ze){const Re=ze.value,Be=ze.style,He=ze.styleSpec,We=He.fog;let Ye=[];const ni=la(Re);if(Re===void 0)return Ye;if(ni!=="object")return Ye=Ye.concat([new Ys("fog",Re,`object expected, ${ni} found`)]),Ye;for(const li in Re){const yi=li.match(/^(.*)-transition$/);Ye=Ye.concat(yi&&We[yi[1]]&&We[yi[1]].transition?$c({key:li,value:Re[li],valueSpec:He.transition,style:Be,styleSpec:He}):We[li]?$c({key:li,value:Re[li],valueSpec:We[li],style:Be,styleSpec:He}):[new Ys(li,Re[li],`unknown property "${li}"`)])}return Ye}const hh={"*":()=>[],array:Wm,boolean:function(ze){const Re=ze.value,Be=ze.key,He=la(Re);return He!=="boolean"?[new Ys(Be,Re,`boolean expected, ${He} found`)]:[]},number:Zp,color:function(ze){const Re=ze.key,Be=ze.value,He=la(Be);return He!=="string"?[new Ys(Re,Be,`color expected, ${He} found`)]:Yu(Be)===null?[new Ys(Re,Be,`color expected, "${Be}" found`)]:[]},enum:am,filter:Tp,function:Pl,layer:Rn,object:kl,source:Lc,light:qm,terrain:Jp,fog:kf,string:Bu,formatted:function(ze){return Bu(ze).length===0?[]:Ta(ze)},resolvedImage:function(ze){return Bu(ze).length===0?[]:Ta(ze)},projection:function(ze){const Re=ze.value,Be=ze.styleSpec,He=Be.projection,We=ze.style;let Ye=[];const ni=la(Re);if(ni==="object")for(const li in Re)Ye=Ye.concat($c({key:li,value:Re[li],valueSpec:He[li],style:We,styleSpec:Be}));
vendor: 4,468 bytes, line 219
219else ni!=="string"&&(Ye=Ye.concat([new Ys("projection",Re,`object or string expected, ${ni} found`)]));return Ye}};function $c(ze){const Re=ze.value,Be=ze.valueSpec,He=ze.styleSpec;return Be.expression&&hd(hl(Re))?Pl(ze):Be.expression&&Ud(il(Re))?Ta(ze):Be.type&&hh[Be.type]?hh[Be.type](ze):kl(Ou({},ze,{valueSpec:Be.type?He[Be.type]:Be}))}function Ng(ze){const Re=ze.value,Be=ze.key,He=Bu(ze);return He.length||(Re.indexOf("{fontstack}")===-1&&He.push(new Ys(Be,Re,'"glyphs" url must include a "{fontstack}" token')),Re.indexOf("{range}")===-1&&He.push(new Ys(Be,Re,'"glyphs" url must include a "{range}" token'))),He}function Pf(ze,Re=rs){return Vl($c({key:"",value:ze,valueSpec:Re.$root,styleSpec:Re,style:ze,objectElementValidators:{glyphs:Ng,"*":()=>[]}}))}const Vg=ze=>Vl(Cp(ze)),Hg=ze=>Vl(Mf(ze));function Vl(ze){return ze.slice().sort((Re,Be)=>Re.line&&Be.line?Re.line-Be.line:0)}function qd(ze,Re){let Be=!1;if(Re&&Re.length)for(const He of Re)ze.fire(new Gc(new Error(He.message))),Be=!0;return Be}var Dp=fu,Nu=3;function fu(ze,Re,Be){var He=this.cells=[];if(ze instanceof ArrayBuffer){this.arrayBuffer=ze;var We=new Int32Array(this.arrayBuffer);ze=We[0],this.d=(Re=We[1])+2*(Be=We[2]);for(var Ye=0;Ye<this.d*this.d;Ye++){var ni=We[Nu+Ye],li=We[Nu+Ye+1];He.push(ni===li?null:We.subarray(ni,li))}var yi=We[Nu+He.length+1];this.keys=We.subarray(We[Nu+He.length],yi),this.bboxes=We.subarray(yi),this.insert=this._insertReadonly}else{this.d=Re+2*Be;for(var xi=0;xi<this.d*this.d;xi++)He.push([]);this.keys=[],this.bboxes=[]}this.n=Re,this.extent=ze,this.padding=Be,this.scale=Re/ze,this.uid=0;var Pi=Be/Re*ze;this.min=-Pi,this.max=ze+Pi}fu.prototype.insert=function(ze,Re,Be,He,We){this._forEachCell(Re,Be,He,We,this._insertCell,this.uid++),this.keys.push(ze),this.bboxes.push(Re),this.bboxes.push(Be),this.bboxes.push(He),this.bboxes.push(We)},fu.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},fu.prototype._insertCell=function(ze,Re,Be,He,We,Ye){this.cells[We].push(Ye)},fu.prototype.query=function(ze,Re,Be,He,We){var Ye=this.min,ni=this.max;if(ze<=Ye&&Re<=Ye&&ni<=Be&&ni<=He&&!We)return Array.prototype.slice.call(this.keys);var li=[];return this._forEachCell(ze,Re,Be,He,this._queryCell,li,{},We),li},fu.prototype._queryCell=function(ze,Re,Be,He,We,Ye,ni,li){var yi=this.cells[We];if(yi!==null)for(var xi=this.keys,Pi=this.bboxes,Ni=0;Ni<yi.length;Ni++){var Wi=yi[Ni];if(ni[Wi]===void 0){var rn=4*Wi;(li?li(Pi[rn+0],Pi[rn+1],Pi[rn+2],Pi[rn+3]):ze<=Pi[rn+2]&&Re<=Pi[rn+3]&&Be>=Pi[rn+0]&&He>=Pi[rn+1])?(ni[Wi]=!0,Ye.push(xi[Wi])):ni[Wi]=!1}}},fu.prototype._forEachCell=function(ze,Re,Be,He,We,Ye,ni,li){for(var yi=this._convertToCellCoord(ze),xi=this._convertToCellCoord(Re),Pi=this._convertToCellCoord(Be),Ni=this._convertToCellCoord(He),Wi=yi;Wi<=Pi;Wi++)for(var rn=xi;rn<=Ni;rn++){var un=this.d*rn+Wi;if((!li||li(this._convertFromCellCoord(Wi),this._convertFromCellCoord(rn),this._convertFromCellCoord(Wi+1),this._convertFromCellCoord(rn+1)))&&We.call(this,ze,Re,Be,He,un,Ye,ni,li))return}},fu.prototype._convertFromCellCoord=function(ze){return(ze-this.padding)/this.scale},fu.prototype._convertToCellCoord=function(ze){return Math.max(0,Math.min(this.d-1,Math.floor(ze*this.scale)+this.padding))},fu.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var ze=this.cells,Re=Nu+this.cells.length+1+1,Be=0,He=0;He<this.cells.length;He++)Be+=this.cells[He].length;var We=new Int32Array(Re+Be+this.keys.length+this.bboxes.length);We[0]=this.extent,We[1]=this.n,We[2]=this.padding;for(var Ye=Re,ni=0;ni<ze.length;ni++){var li=ze[ni];We[Nu+ni]=Ye,We.set(li,Ye),Ye+=li.length}return We[Nu+ze.length]=Ye,We.set(this.keys,Ye),We[Nu+ze.length+1]=Ye+=this.keys.length,We.set(this.bboxes,Ye),Ye+=this.bboxes.length,We.buffer};var Xd=Li(Dp);const mu={};function to(ze,Re,Be={}){Object.defineProperty(ze,"_classRegistryKey",{value:Re,writeable:!1}),mu[Re]={klass:ze,omit:Be.omit||[]}}to(Object,"Object"),Xd.serialize=function(ze,Re){const Be=ze.toArrayBuffer();return Re&&Re.push(Be),{buffer:Be}},Xd.deserialize=function(ze){return new Xd(ze.buffer)},Object.defineProperty(Xd,"name",{value:"Grid"}),to(Xd,"Grid"),to(aa,"Color"),to(Error,"Error"),to(ao,"AJAXError"),to(qc,"ResolvedImage"),to(wp,"StylePropertyFunction"),to(Qu,"StyleExpression",{omit:["_evaluator"]}),to(Af,"ZoomDependentExpression"),to(Hh,"ZoomConstantExpression"),to(wc,"CompoundExpression",{omit:["_evaluate"]});
219for(const ze in yp)mu[yp[ze]._classRegistryKey]||to(yp[ze],`Expression${ze}`);function Qp(ze){return ze&&typeof ArrayBuffer<"u"&&(ze instanceof ArrayBuffer||ze.constructor&&ze.constructor.name==="ArrayBuffer")}function cm(ze){return je.ImageBitmap&&ze instanceof je.ImageBitmap}function Qc(ze,Re){if(ze==null||typeof ze=="boolean"||typeof ze=="number"||typeof ze=="string"||ze instanceof Boolean||ze instanceof Number||ze instanceof String||ze instanceof Date||ze instanceof RegExp)return ze;if(Qp(ze)||cm(ze))return Re&&Re.push(ze),ze;if(ArrayBuffer.isView(ze)){const Be=ze;return Re&&Re.push(Be.buffer),Be}if(ze instanceof je.ImageData)return Re&&Re.push(ze.data.buffer),ze;if(Array.isArray(ze)){const Be=[];for(const He of ze)Be.push(Qc(He,Re));return Be}if(typeof ze=="object"){const Be=ze.constructor,He=Be._classRegistryKey;if(!He)throw new Error(`can't serialize object of unregistered class ${He}`);const We=Be.serialize?Be.serialize(ze,Re):{};if(!Be.serialize){for(const Ye in ze)ze.hasOwnProperty(Ye)&&(mu[He].omit.indexOf(Ye)>=0||(We[Ye]=Qc(ze[Ye],Re)));ze instanceof Error&&(We.message=ze.message)}if(We.$name)throw new Error("$name property is reserved for worker serialization logic.");return He!=="Object"&&(We.$name=He),We}throw new Error("can't serialize object of type "+typeof ze)}function ph(ze){if(ze==null||typeof ze=="boolean"||typeof ze=="number"||typeof ze=="string"||ze instanceof Boolean||ze instanceof Number||ze instanceof String||ze instanceof Date||ze instanceof RegExp||Qp(ze)||cm(ze)||ArrayBuffer.isView(ze)||ze instanceof je.ImageData)return ze;if(Array.isArray(ze))return ze.map(ph);if(typeof ze=="object"){const Re=ze.$name||"Object",{klass:Be}=mu[Re];if(!Be)throw new Error(`can't deserialize unregistered class ${Re}`);if(Be.deserialize)return Be.deserialize(ze);const He=Object.create(Be.prototype);for(const We of Object.keys(ze))We!=="$name"&&(He[We]=ph(ze[We]));return He}throw new Error("can't deserialize object of type "+typeof ze)}const Gs={"Latin-1 Supplement":ze=>ze>=128&&ze<=255,Arabic:ze=>ze>=1536&&ze<=1791,"Arabic Supplement":ze=>ze>=1872&&ze<=1919,"Arabic Extended-A":ze=>ze>=2208&&ze<=2303,"Hangul Jamo":ze=>ze>=4352&&ze<=4607,"Unified Canadian Aboriginal Syllabics":ze=>ze>=5120&&ze<=5759,Khmer:ze=>ze>=6016&&ze<=6143,"Unified Canadian Aboriginal Syllabics Extended":ze=>ze>=6320&&ze<=6399,"General Punctuation":ze=>ze>=8192&&ze<=8303,"Letterlike Symbols":ze=>ze>=8448&&ze<=8527,"Number Forms":ze=>ze>=8528&&ze<=8591,"Miscellaneous Technical":ze=>ze>=8960&&ze<=9215,"Control Pictures":ze=>ze>=9216&&ze<=9279,"Optical Character Recognition":ze=>ze>=9280&&ze<=9311,"Enclosed Alphanumerics":ze=>ze>=9312&&ze<=9471,"Geometric Shapes":ze=>ze>=9632&&ze<=9727,"Miscellaneous Symbols":ze=>ze>=9728&&ze<=9983,"Miscellaneous Symbols and Arrows":ze=>ze>=11008&&ze<=11263,"CJK Radicals Supplement":ze=>ze>=11904&&ze<=12031,"Kangxi Radicals":ze=>ze>=12032&&ze<=12255,"Ideographic Description Characters":ze=>ze>=12272&&ze<=12287,"CJK Symbols and Punctuation":ze=>ze>=12288&&ze<=12351,Hiragana:ze=>ze>=12352&&ze<=12447,Katakana:ze=>ze>=12448&&ze<=12543,Bopomofo:ze=>ze>=12544&&ze<=12591,"Hangul Compatibility Jamo":ze=>ze>=12592&&ze<=12687,Kanbun:ze=>ze>=12688&&ze<=12703,"Bopomofo Extended":ze=>ze>=12704&&ze<=12735,"CJK Strokes":ze=>ze>=12736&&ze<=12783,"Katakana Phonetic Extensions":ze=>ze>=12784&&ze<=12799,"Enclosed CJK Letters and Months":ze=>ze>=12800&&ze<=13055,"CJK Compatibility":ze=>ze>=13056&&ze<=13311,"CJK Unified Ideographs Extension A":ze=>ze>=13312&&ze<=19903,"Yijing Hexagram Symbols":ze=>ze>=19904&&ze<=19967,"CJK Unified Ideographs":ze=>ze>=19968&&ze<=40959,"Yi Syllables":ze=>ze>=40960&&ze<=42127,"Yi Radicals":ze=>ze>=42128&&ze<=42191,"Hangul Jamo Extended-A":ze=>ze>=43360&&ze<=43391,"Hangul Syllables":ze=>ze>=44032&&ze<=55215,"Hangul Jamo Extended-B":ze=>ze>=55216&&ze<=55295,"Private Use Area":ze=>ze>=57344&&ze<=63743,"CJK Compatibility Ideographs":ze=>ze>=63744&&ze<=64255,"Arabic Presentation Forms-A":ze=>ze>=64336&&ze<=65023,"Vertical Forms":ze=>ze>=65040&&ze<=65055,"CJK Compatibility Forms":ze=>ze>=65072&&ze<=65103,"Small Form Variants":ze=>ze>=65104&&ze<=65135,"Arabic Presentation Forms-B":ze=>ze>=65136&&ze<=65279,"Halfwidth and Fullwidth Forms":ze=>ze>=65280&&ze<=65519};function um(ze){for(const Re of ze)if(If(Re.charCodeAt(0)))return!0;return!1}function Ug(ze){for(const Re of ze)if(!Eu(Re.charCodeAt(0)))return!1;return!0}function Eu(ze){return!(Gs.Arabic(ze)||Gs["Arabic Supplement"](ze)||Gs["Arabic Extended-A"](ze)||Gs["Arabic Presentation Forms-A"](ze)||Gs["Arabic Presentation Forms-B"](ze))}function If(ze){return!(ze!==746&&ze!==747&&(ze<4352||!(Gs["Bopomofo Extended"](ze)||Gs.Bopomofo(ze)||Gs["CJK Compatibility Forms"](ze)&&!(ze>
219=65097&&ze<=65103)||Gs["CJK Compatibility Ideographs"](ze)||Gs["CJK Compatibility"](ze)||Gs["CJK Radicals Supplement"](ze)||Gs["CJK Strokes"](ze)||!(!Gs["CJK Symbols and Punctuation"](ze)||ze>=12296&&ze<=12305||ze>=12308&&ze<=12319||ze===12336)||Gs["CJK Unified Ideographs Extension A"](ze)||Gs["CJK Unified Ideographs"](ze)||Gs["Enclosed CJK Letters and Months"](ze)||Gs["Hangul Compatibility Jamo"](ze)||Gs["Hangul Jamo Extended-A"](ze)||Gs["Hangul Jamo Extended-B"](ze)||Gs["Hangul Jamo"](ze)||Gs["Hangul Syllables"](ze)||Gs.Hiragana(ze)||Gs["Ideographic Description Characters"](ze)||Gs.Kanbun(ze)||Gs["Kangxi Radicals"](ze)||Gs["Katakana Phonetic Extensions"](ze)||Gs.Katakana(ze)&&ze!==12540||!(!Gs["Halfwidth and Fullwidth Forms"](ze)||ze===65288||ze===65289||ze===65293||ze>=65306&&ze<=65310||ze===65339||ze===65341||ze===65343||ze>=65371&&ze<=65503||ze===65507||ze>=65512&&ze<=65519)||!(!Gs["Small Form Variants"](ze)||ze>=65112&&ze<=65118||ze>=65123&&ze<=65126)||Gs["Unified Canadian Aboriginal Syllabics"](ze)||Gs["Unified Canadian Aboriginal Syllabics Extended"](ze)||Gs["Vertical Forms"](ze)||Gs["Yijing Hexagram Symbols"](ze)||Gs["Yi Syllables"](ze)||Gs["Yi Radicals"](ze))))}function Gg(ze){return!(If(ze)||function(Re){return!!(Gs["Latin-1 Supplement"](Re)&&(Re===167||Re===169||Re===174||Re===177||Re===188||Re===189||Re===190||Re===215||Re===247)||Gs["General Punctuation"](Re)&&(Re===8214||Re===8224||Re===8225||Re===8240||Re===8241||Re===8251||Re===8252||Re===8258||Re===8263||Re===8264||Re===8265||Re===8273)||Gs["Letterlike Symbols"](Re)||Gs["Number Forms"](Re)||Gs["Miscellaneous Technical"](Re)&&(Re>=8960&&Re<=8967||Re>=8972&&Re<=8991||Re>=8996&&Re<=9e3||Re===9003||Re>=9085&&Re<=9114||Re>=9150&&Re<=9165||Re===9167||Re>=9169&&Re<=9179||Re>=9186&&Re<=9215)||Gs["Control Pictures"](Re)&&Re!==9251||Gs["Optical Character Recognition"](Re)||Gs["Enclosed Alphanumerics"](Re)||Gs["Geometric Shapes"](Re)||Gs["Miscellaneous Symbols"](Re)&&!(Re>=9754&&Re<=9759)||Gs["Miscellaneous Symbols and Arrows"](Re)&&(Re>=11026&&Re<=11055||Re>=11088&&Re<=11097||Re>=11192&&Re<=11243)||Gs["CJK Symbols and Punctuation"](Re)||Gs.Katakana(Re)||Gs["Private Use Area"](Re)||Gs["CJK Compatibility Forms"](Re)||Gs["Small Form Variants"](Re)||Gs["Halfwidth and Fullwidth Forms"](Re)||Re===8734||Re===8756||Re===8757||Re>=9984&&Re<=10087||Re>=10102&&Re<=10131||Re===65532||Re===65533)}(ze))}function dm(ze){return ze>=1424&&ze<=2303||Gs["Arabic Presentation Forms-A"](ze)||Gs["Arabic Presentation Forms-B"](ze)}function ef(ze,Re){return!(!Re&&dm(ze)||ze>=2304&&ze<=3583||ze>=3840&&ze<=4255||Gs.Khmer(ze))}function Vu(ze){for(const Re of ze)if(dm(Re.charCodeAt(0)))return!0;return!1}const td="deferred",Rf="loading",Wh="loaded";let qh=null,Ze="unavailable",Ne=null;const Ge=function(ze){ze&&typeof ze=="string"&&ze.indexOf("NetworkError")>-1&&(Ze="error"),qh&&qh(ze)};function Qe(){ai.fire(new Zu("pluginStateChange",{pluginStatus:Ze,pluginURL:Ne}))}const ai=new rh,ui=function(){return Ze},Si=function(){if(Ze!==td||!Ne)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ze=Rf,Qe(),Ne&&Fa({url:Ne},ze=>{ze?Ge(ze):(Ze=Wh,Qe())})},Mi={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Ze===Wh||Mi.applyArabicShaping!=null,isLoading:()=>Ze===Rf,setState(ze){Ze=ze.pluginStatus,Ne=ze.pluginURL},isParsed:()=>Mi.applyArabicShaping!=null&&Mi.processBidirectionalText!=null&&Mi.processStyledBidirectionalText!=null,getPluginURL:()=>Ne};class Fi{constructor(Re,Be){this.zoom=Re,Be?(this.now=Be.now,this.fadeDuration=Be.fadeDuration,this.transition=Be.transition,this.pitch=Be.pitch):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0)}isSupportedScript(Re){return function(Be,He){for(const We of Be)if(!ef(We.charCodeAt(0),He))return!1;return!0}(Re,Mi.isLoaded())}}class qi{constructor(Re,Be){this.property=Re,this.value=Be,this.expression=function(He,We){if(hd(He))return new wp(He,We);if(Ud(He)){const Ye=ed(He,We);if(Ye.result==="error")throw new Error(Ye.value.map(ni=>`${ni.key}: ${ni.message}`).join(", "));return Ye.value}{let Ye=He;return typeof He=="string"&&We.type==="color"&&(Ye=aa.parse(He)),{kind:"constant",evaluate:()=>Ye}}}(Be===void 0?Re.specification.default:Be,Re.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(Re,Be,He){return this.property.possiblyEvaluate(this,Re,Be,He)}}class Xi{constructor(Re){this.property=Re,this.value=new qi(Re,void 0)}transitioned(Re,Be){return new Dn(this.property,this.value,Be,Qi({},Re.transition,this.transition),Re.now)}
vendor: 26,439 bytes, line 219
219untransitioned(){return new Dn(this.property,this.value,null,{},0)}}class hn{constructor(Re){this._properties=Re,this._values=Object.create(Re.defaultTransitionablePropertyValues)}getValue(Re){return Ii(this._values[Re].value.value)}setValue(Re,Be){this._values.hasOwnProperty(Re)||(this._values[Re]=new Xi(this._values[Re].property)),this._values[Re].value=new qi(this._values[Re].property,Be===null?void 0:Ii(Be))}getTransition(Re){return Ii(this._values[Re].transition)}setTransition(Re,Be){this._values.hasOwnProperty(Re)||(this._values[Re]=new Xi(this._values[Re].property)),this._values[Re].transition=Ii(Be)||void 0}serialize(){const Re={};for(const Be of Object.keys(this._values)){const He=this.getValue(Be);He!==void 0&&(Re[Be]=He);const We=this.getTransition(Be);We!==void 0&&(Re[`${Be}-transition`]=We)}return Re}transitioned(Re,Be){const He=new In(this._properties);for(const We of Object.keys(this._values))He._values[We]=this._values[We].transitioned(Re,Be._values[We]);return He}untransitioned(){const Re=new In(this._properties);for(const Be of Object.keys(this._values))Re._values[Be]=this._values[Be].untransitioned();return Re}}class Dn{constructor(Re,Be,He,We,Ye){const ni=We.delay||0,li=We.duration||0;Ye=Ye||0,this.property=Re,this.value=Be,this.begin=Ye+ni,this.end=this.begin+li,Re.specification.transition&&(We.delay||We.duration)&&(this.prior=He)}possiblyEvaluate(Re,Be,He){const We=Re.now||0,Ye=this.value.possiblyEvaluate(Re,Be,He),ni=this.prior;if(ni){if(We>this.end)return this.prior=null,Ye;if(this.value.isDataDriven())return this.prior=null,Ye;if(We<this.begin)return ni.possiblyEvaluate(Re,Be,He);{const li=(We-this.begin)/(this.end-this.begin);return this.property.interpolate(ni.possiblyEvaluate(Re,Be,He),Ye,tr(li))}}return Ye}}class In{constructor(Re){this._properties=Re,this._values=Object.create(Re.defaultTransitioningPropertyValues)}possiblyEvaluate(Re,Be,He){const We=new Vn(this._properties);for(const Ye of Object.keys(this._values))We._values[Ye]=this._values[Ye].possiblyEvaluate(Re,Be,He);return We}hasTransition(){for(const Re of Object.keys(this._values))if(this._values[Re].prior)return!0;return!1}}class On{constructor(Re){this._properties=Re,this._values=Object.create(Re.defaultPropertyValues)}getValue(Re){return Ii(this._values[Re].value)}setValue(Re,Be){this._values[Re]=new qi(this._values[Re].property,Be===null?void 0:Ii(Be))}serialize(){const Re={};for(const Be of Object.keys(this._values)){const He=this.getValue(Be);He!==void 0&&(Re[Be]=He)}return Re}possiblyEvaluate(Re,Be,He){const We=new Vn(this._properties);for(const Ye of Object.keys(this._values))We._values[Ye]=this._values[Ye].possiblyEvaluate(Re,Be,He);return We}}class Bn{constructor(Re,Be,He){this.property=Re,this.value=Be,this.parameters=He}isConstant(){return this.value.kind==="constant"}constantOr(Re){return this.value.kind==="constant"?this.value.value:Re}evaluate(Re,Be,He,We){return this.property.evaluate(this.value,this.parameters,Re,Be,He,We)}}class Vn{constructor(Re){this._properties=Re,this._values=Object.create(Re.defaultPossiblyEvaluatedValues)}get(Re){return this._values[Re]}}class pn{constructor(Re){this.specification=Re}possiblyEvaluate(Re,Be){return Re.expression.evaluate(Be)}interpolate(Re,Be,He){const We=lc[this.specification.type];return We?We(Re,Be,He):Re}}class Pn{constructor(Re,Be){this.specification=Re,this.overrides=Be}possiblyEvaluate(Re,Be,He,We){return new Bn(this,Re.expression.kind==="constant"||Re.expression.kind==="camera"?{kind:"constant",value:Re.expression.evaluate(Be,null,{},He,We)}:Re.expression,Be)}interpolate(Re,Be,He){if(Re.value.kind!=="constant"||Be.value.kind!=="constant")return Re;if(Re.value.value===void 0||Be.value.value===void 0)return new Bn(this,{kind:"constant",value:void 0},Re.parameters);const We=lc[this.specification.type];return We?new Bn(this,{kind:"constant",value:We(Re.value.value,Be.value.value,He)},Re.parameters):Re}evaluate(Re,Be,He,We,Ye,ni){return Re.kind==="constant"?Re.value:Re.evaluate(Be,He,We,Ye,ni)}}class Jn{constructor(Re){this.specification=Re}possiblyEvaluate(Re,Be,He,We){return!!Re.expression.evaluate(Be,null,{},He,We)}interpolate(){return!1}}class qn{constructor(Re){this.properties=Re,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const Be=new Fi(0,{});for(const He in Re){const We=Re[He];We.specification.overridable&&this.overridableProperties.push(He);const Ye=this.defaultPropertyValues[He]=new qi(We,void 0),ni=this.defaultTransitionablePropertyValues[He]=new Xi(We);this.defaultTransitioningPropertyValues[He]=ni.untransitioned(),this.defaultPossiblyEvaluatedValues[He]=Ye.possiblyEvaluate(Be)}}}function gr(ze,Re){return 256*(ze=Hn(Math.floor(ze),0,255))+Hn(Math.floor(Re),0,255)}to(Pn,"DataDrivenProperty"),to(pn,"DataConstantProperty"),to(Jn,"ColorRampProperty");const vr={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class dr{constructor(Re,Be){this._structArray=Re,this._pos1=Be*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class $r{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(Re,Be){return Re._trim(),Be&&(Re.isTransferred=!0,Be.push(Re.arrayBuffer)),{length:Re.length,arrayBuffer:Re.arrayBuffer}}static deserialize(Re){const Be=Object.create(this.prototype);return Be.arrayBuffer=Re.arrayBuffer,Be.length=Re.length,Be.capacity=Re.arrayBuffer.byteLength/Be.bytesPerElement,Be._refreshViews(),Be}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(Re){this.reserve(Re),this.length=Re}reserve(Re){if(Re>this.capacity){this.capacity=Math.max(Re,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const Be=this.uint8;this._refreshViews(),Be&&this.uint8.set(Be)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function Pr(ze,Re=1){let Be=0,He=0;return{members:ze.map(We=>{const Ye=vr[We.type].BYTES_PER_ELEMENT,ni=Be=Vr(Be,Math.max(Re,Ye)),li=We.components||1;return He=Math.max(He,Ye),Be+=Ye*li,{name:We.name,type:We.type,components:li,offset:ni}}),size:Vr(Be,Math.max(He,Re)),alignment:Re}}function Vr(ze,Re){return Math.ceil(ze/Re)*Re}class Ds extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(Re,Be){const He=this.length;return this.resize(He+1),this.emplace(He,Re,Be)}emplace(Re,Be,He){const We=2*Re;return this.int16[We+0]=Be,this.int16[We+1]=He,Re}}Ds.prototype.bytesPerElement=4,to(Ds,"StructArrayLayout2i4");class zr extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(Re,Be,He){const We=this.length;return this.resize(We+1),this.emplace(We,Re,Be,He)}emplace(Re,Be,He,We){const Ye=3*Re;return this.int16[Ye+0]=Be,this.int16[Ye+1]=He,this.int16[Ye+2]=We,Re}}zr.prototype.bytesPerElement=6,to(zr,"StructArrayLayout3i6");class cs extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We){const Ye=this.length;return this.resize(Ye+1),this.emplace(Ye,Re,Be,He,We)}emplace(Re,Be,He,We,Ye){const ni=4*Re;return this.int16[ni+0]=Be,this.int16[ni+1]=He,this.int16[ni+2]=We,this.int16[ni+3]=Ye,Re}}cs.prototype.bytesPerElement=8,to(cs,"StructArrayLayout4i8");class Xr extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We,Ye,ni,li){const yi=this.length;return this.resize(yi+1),this.emplace(yi,Re,Be,He,We,Ye,ni,li)}emplace(Re,Be,He,We,Ye,ni,li,yi){const xi=6*Re,Pi=12*Re,Ni=3*Re;return this.int16[xi+0]=Be,this.int16[xi+1]=He,this.uint8[Pi+4]=We,this.uint8[Pi+5]=Ye,this.uint8[Pi+6]=ni,this.uint8[Pi+7]=li,this.float32[Ni+2]=yi,Re}}Xr.prototype.bytesPerElement=12,to(Xr,"StructArrayLayout2i4ub1f12");class ss extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We){const Ye=this.length;return this.resize(Ye+1),this.emplace(Ye,Re,Be,He,We)}emplace(Re,Be,He,We,Ye){const ni=4*Re;return this.float32[ni+0]=Be,this.float32[ni+1]=He,this.float32[ni+2]=We,this.float32[ni+3]=Ye,Re}}ss.prototype.bytesPerElement=16,to(ss,"StructArrayLayout4f16");class Lr extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We,Ye){const ni=this.length;return this.resize(ni+1),this.emplace(ni,Re,Be,He,We,Ye)}emplace(Re,Be,He,We,Ye,ni){const li=6*Re,yi=3*Re;return this.uint16[li+0]=Be,this.uint16[li+1]=He,this.uint16[li+2]=We,this.uint16[li+3]=Ye,this.float32[yi+2]=ni,Re}}Lr.prototype.bytesPerElement=12,to(Lr,"StructArrayLayout4ui1f12");class ns extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We){const Ye=this.length;return this.resize(Ye+1),this.emplace(Ye,Re,Be,He,We)}emplace(Re,Be,He,We,Ye){const ni=4*Re;return this.uint16[ni+0]=Be,this.uint16[ni+1]=He,this.uint16[ni+2]=We,this.uint16[ni+3]=Ye,Re}}ns.prototype.bytesPerElement=8,to(ns,"StructArrayLayout4ui8");class Ss extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We,Ye,ni){const li=this.length;return this.resize(li+1),this.emplace(li,Re,Be,He,We,Ye,ni)}emplace(Re,Be,He,We,Ye,ni,li){const yi=6*Re;return this.int16[yi+0]=Be,this.int16[yi+1]=He,this.int16[yi+2]=We,this.int16[yi+3]=Ye,this.int16[yi+4]=ni,this.int16[yi+5]=li,Re}}Ss.prototype.bytesPerElement=12,to(Ss,"StructArrayLayout6i12");class ds extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi){const rn=this.length;return this.resize(rn+1),this.emplace(rn,Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi)}emplace(Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn){const un=12*Re;return this.int16[un+0]=Be,this.int16[un+1]=He,this.int16[un+2]=We,this.int16[un+3]=Ye,this.uint16[un+4]=ni,this.uint16[un+5]=li,this.uint16[un+6]=yi,this.uint16[un+7]=xi,this.int16[un+8]=Pi,this.int16[un+9]=Ni,this.int16[un+10]=Wi,this.int16[un+11]=rn,Re}}ds.prototype.bytesPerElement=24,to(ds,"StructArrayLayout4i4ui4i24");class Is extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We,Ye,ni){const li=this.length;return this.resize(li+1),this.emplace(li,Re,Be,He,We,Ye,ni)}emplace(Re,Be,He,We,Ye,ni,li){const yi=10*Re,xi=5*Re;return this.int16[yi+0]=Be,this.int16[yi+1]=He,this.int16[yi+2]=We,this.float32[xi+2]=Ye,this.float32[xi+3]=ni,this.float32[xi+4]=li,Re}}Is.prototype.bytesPerElement=20,to(Is,"StructArrayLayout3i3f20");class ho extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(Re){const Be=this.length;return this.resize(Be+1),this.emplace(Be,Re)}emplace(Re,Be){return this.uint32[1*Re+0]=Be,Re}}ho.prototype.bytesPerElement=4,to(ho,"StructArrayLayout1ul4");class ko extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn){const un=this.length;return this.resize(un+1),this.emplace(un,Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn)}emplace(Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn,un){const gn=20*Re,kn=10*Re;return this.int16[gn+0]=Be,this.int16[gn+1]=He,this.int16[gn+2]=We,this.int16[gn+3]=Ye,this.int16[gn+4]=ni,this.float32[kn+3]=li,this.float32[kn+4]=yi,this.float32[kn+5]=xi,this.float32[kn+6]=Pi,this.int16[gn+14]=Ni,this.uint32[kn+8]=Wi,this.uint16[gn+18]=rn,this.uint16[gn+19]=un,Re}}ko.prototype.bytesPerElement=40,to(ko,"StructArrayLayout5i4f1i1ul2ui40");class Js extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We,Ye,ni,li){const yi=this.length;return this.resize(yi+1),this.emplace(yi,Re,Be,He,We,Ye,ni,li)}emplace(Re,Be,He,We,Ye,ni,li,yi){const xi=8*Re;return this.int16[xi+0]=Be,this.int16[xi+1]=He,this.int16[xi+2]=We,this.int16[xi+4]=Ye,this.int16[xi+5]=ni,this.int16[xi+6]=li,this.int16[xi+7]=yi,Re}}Js.prototype.bytesPerElement=16,to(Js,"StructArrayLayout3i2i2i16");class _o extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We,Ye){const ni=this.length;return this.resize(ni+1),this.emplace(ni,Re,Be,He,We,Ye)}emplace(Re,Be,He,We,Ye,ni){const li=4*Re,yi=8*Re;return this.float32[li+0]=Be,this.float32[li+1]=He,this.float32[li+2]=We,this.int16[yi+6]=Ye,this.int16[yi+7]=ni,Re}}_o.prototype.bytesPerElement=16,to(_o,"StructArrayLayout2f1f2i16");class ia extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We){const Ye=this.length;return this.resize(Ye+1),this.emplace(Ye,Re,Be,He,We)}emplace(Re,Be,He,We,Ye){const ni=12*Re,li=3*Re;return this.uint8[ni+0]=Be,this.uint8[ni+1]=He,this.float32[li+1]=We,this.float32[li+2]=Ye,Re}}ia.prototype.bytesPerElement=12,to(ia,"StructArrayLayout2ub2f12");class No extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(Re,Be,He){const We=this.length;return this.resize(We+1),this.emplace(We,Re,Be,He)}emplace(Re,Be,He,We){const Ye=3*Re;return this.float32[Ye+0]=Be,this.float32[Ye+1]=He,this.float32[Ye+2]=We,Re}}No.prototype.bytesPerElement=12,to(No,"StructArrayLayout3f12");class lo extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(Re,Be,He){const We=this.length;return this.resize(We+1),this.emplace(We,Re,Be,He)}emplace(Re,Be,He,We){const Ye=3*Re;return this.uint16[Ye+0]=Be,this.uint16[Ye+1]=He,this.uint16[Ye+2]=We,Re}}lo.prototype.bytesPerElement=6,to(lo,"StructArrayLayout3ui6");class Ea extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn,un,gn,kn,jn,ar,Wn,sr,fr){const pr=this.length;return this.resize(pr+1),this.emplace(pr,Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn,un,gn,kn,jn,ar,Wn,sr,fr)}emplace(Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn,un,gn,kn,jn,ar,Wn,sr,fr,pr){const Zr=30*Re,Gr=15*Re,us=60*Re;return this.int16[Zr+0]=Be,this.int16[Zr+1]=He,this.int16[Zr+2]=We,this.float32[Gr+2]=Ye,this.float32[Gr+3]=ni,this.uint16[Zr+8]=li,this.uint16[Zr+9]=yi,this.uint32[Gr+5]=xi,this.uint32[Gr+6]=Pi,this.uint32[Gr+7]=Ni,this.uint16[Zr+16]=Wi,this.uint16[Zr+17]=rn,this.uint16[Zr+18]=un,this.float32[Gr+10]=gn,this.float32[Gr+11]=kn,this.uint8[us+48]=jn,this.uint8[us+49]=ar,this.uint8[us+50]=Wn,this.uint32[Gr+13]=sr,this.int16[Zr+28]=fr,this.uint8[us+58]=pr,Re}}Ea.prototype.bytesPerElement=60,to(Ea,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class Va extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn,un,gn,kn,jn,ar,Wn,sr,fr,pr,Zr,Gr,us,$s,Qr,ys,vs,ks){const zs=this.length;return this.resize(zs+1),this.emplace(zs,Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn,un,gn,kn,jn,ar,Wn,sr,fr,pr,Zr,Gr,us,$s,Qr,ys,vs,ks)}emplace(Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn,un,gn,kn,jn,ar,Wn,sr,fr,pr,Zr,Gr,us,$s,Qr,ys,vs,ks,zs){const as=38*Re,Ks=19*Re;return this.int16[as+0]=Be,this.int16[as+1]=He,this.int16[as+2]=We,this.float32[Ks+2]=Ye,this.float32[Ks+3]=ni,this.int16[as+8]=li,this.int16[as+9]=yi,this.int16[as+10]=xi,this.int16[as+11]=Pi,this.int16[as+12]=Ni,this.int16[as+13]=Wi,this.uint16[as+14]=rn,this.uint16[as+15]=un,this.uint16[as+16]=gn,this.uint16[as+17]=kn,this.uint16[as+18]=jn,this.uint16[as+19]=ar,this.uint16[as+20]=Wn,this.uint16[as+21]=sr,this.uint16[as+22]=fr,this.uint16[as+23]=pr,this.uint16[as+24]=Zr,this.uint16[as+25]=Gr,this.uint16[as+26]=us,this.uint16[as+27]=$s,this.uint16[as+28]=Qr,this.uint32[Ks+15]=ys,this.float32[Ks+16]=vs,this.float32[Ks+17]=ks,this.float32[Ks+18]=zs,Re}}Va.prototype.bytesPerElement=76,to(Va,"StructArrayLayout3i2f6i15ui1ul3f76");class Pa extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(Re){const Be=this.length;return this.resize(Be+1),this.emplace(Be,Re)}emplace(Re,Be){return this.float32[1*Re+0]=Be,Re}}Pa.prototype.bytesPerElement=4,to(Pa,"StructArrayLayout1f4");class ha extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We,Ye){const ni=this.length;return this.resize(ni+1),this.emplace(ni,Re,Be,He,We,Ye)}emplace(Re,Be,He,We,Ye,ni){const li=5*Re;return this.float32[li+0]=Be,this.float32[li+1]=He,this.float32[li+2]=We,this.float32[li+3]=Ye,this.float32[li+4]=ni,Re}}ha.prototype.bytesPerElement=20,to(ha,"StructArrayLayout5f20");class Hl extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(Re,Be,He,We){const Ye=this.length;return this.resize(Ye+1),this.emplace(Ye,Re,Be,He,We)}emplace(Re,Be,He,We,Ye){const ni=6*Re;return this.uint32[3*Re+0]=Be,this.uint16[ni+2]=He,this.uint16[ni+3]=We,this.uint16[ni+4]=Ye,Re}}Hl.prototype.bytesPerElement=12,to(Hl,"StructArrayLayout1ul3ui12");class Wl extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(Re,Be){const He=this.length;return this.resize(He+1),this.emplace(He,Re,Be)}emplace(Re,Be,He){const We=2*Re;return this.uint16[We+0]=Be,this.uint16[We+1]=He,Re}}Wl.prototype.bytesPerElement=4,to(Wl,"StructArrayLayout2ui4");class gu extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(Re){const Be=this.length;return this.resize(Be+1),this.emplace(Be,Re)}emplace(Re,Be){return this.uint16[1*Re+0]=Be,Re}}gu.prototype.bytesPerElement=2,to(gu,"StructArrayLayout1ui2");class Hu extends $r{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(Re,Be){const He=this.length;return this.resize(He+1),this.emplace(He,Re,Be)}emplace(Re,Be,He){const We=2*Re;return this.float32[We+0]=Be,this.float32[We+1]=He,Re}}Hu.prototype.bytesPerElement=8,to(Hu,"StructArrayLayout2f8");class rl extends dr{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}rl.prototype.size=40;class Ha extends ko{get(Re){return new rl(this,Re)}}to(Ha,"CollisionBoxArray");class Yo extends dr{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(Re){this._structArray.uint8[this._pos1+49]=Re}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(Re){this._structArray.uint8[this._pos1+50]=Re}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(Re){this._structArray.uint32[this._pos4+13]=Re}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(Re){this._structArray.uint8[this._pos1+58]=Re}}Yo.prototype.size=60;class wl extends Ea{get(Re){return new Yo(this,Re)}}to(wl,"PlacedSymbolArray");class pl extends dr{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+11]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+13]}get key(){return this._structArray.uint16[this._pos2+14]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+17]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+19]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+21]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+22]}get featureIndex(){return this._structArray.uint16[this._pos2+23]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+25]}get numIconVertices(){return this._structArray.uint16[this._pos2+26]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+27]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+28]}get crossTileID(){return this._structArray.uint32[this._pos4+15]}set crossTileID(Re){this._structArray.uint32[this._pos4+15]=Re}get textOffset0(){return this._structArray.float32[this._pos4+16]}get textOffset1(){return this._structArray.float32[this._pos4+17]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+18]}}pl.prototype.size=76;class Za extends Va{get(Re){return new pl(this,Re)}}to(Za,"SymbolInstanceArray");class Cc extends Pa{getoffsetX(Re){return this.float32[1*Re+0]}}to(Cc,"GlyphOffsetArray");class Mp extends Ds{getx(Re){return this.int16[2*Re+0]}gety(Re){return this.int16[2*Re+1]}}to(Mp,"SymbolLineVertexArray");class Cu extends dr{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}Cu.prototype.size=12;class gd extends Hl{get(Re){return new Cu(this,Re)}}to(gd,"FeatureIndexArray");class Uu extends Wl{geta_centroid_pos0(Re){return this.uint16[2*Re+0]}geta_centroid_pos1(Re){return this.uint16[2*Re+1]}}to(Uu,"FillExtrusionCentroidArray");const yd=Pr([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),kp=Pr([{name:"a_dash",components:4,type:"Uint16"}]);var Gu={exports:{}},Oo={exports:{}};Oo.exports=function(ze,Re){var Be,He,We,Ye,ni,li,yi,xi;for(He=ze.length-(Be=3&ze.length),We=Re,ni=3432918353,li=461845907,xi=0;xi<He;)yi=255&ze.charCodeAt(xi)|(255&ze.charCodeAt(++xi))<<8|(255&ze.charCodeAt(++xi))<<16|(255&ze.charCodeAt(++xi))<<24,++xi,We=27492+(65535&(Ye=5*(65535&(We=(We^=yi=(65535&(yi=(yi=(65535&yi)*ni+(((yi>>>16)*ni&65535)<<16)&4294967295)<<15|yi>>>17))*li+(((yi>>>16)*li&65535)<<16)&4294967295)<<13|We>>>19))+((5*(We>>>16)&65535)<<16)&4294967295))+((58964+(Ye>>>16)&65535)<<16);switch(yi=0,Be){case 3:yi^=(255&ze.charCodeAt(xi+2))<<16;case 2:yi^=(255&ze.charCodeAt(xi+1))<<8;case 1:We^=yi=(65535&(yi=(yi=(65535&(yi^=255&ze.charCodeAt(xi)))*ni+(((yi>>>16)*ni&65535)<<16)&4294967295)<<15|yi>>>17))*li+(((yi>>>16)*li&65535)<<16)&4294967295}
219return We^=ze.length,We=2246822507*(65535&(We^=We>>>16))+((2246822507*(We>>>16)&65535)<<16)&4294967295,We=3266489909*(65535&(We^=We>>>13))+((3266489909*(We>>>16)&65535)<<16)&4294967295,(We^=We>>>16)>>>0};var Xh=Oo.exports,Av={exports:{}};Av.exports=function(ze,Re){for(var Be,He=ze.length,We=Re^He,Ye=0;He>=4;)Be=1540483477*(65535&(Be=255&ze.charCodeAt(Ye)|(255&ze.charCodeAt(++Ye))<<8|(255&ze.charCodeAt(++Ye))<<16|(255&ze.charCodeAt(++Ye))<<24))+((1540483477*(Be>>>16)&65535)<<16),We=1540483477*(65535&We)+((1540483477*(We>>>16)&65535)<<16)^(Be=1540483477*(65535&(Be^=Be>>>24))+((1540483477*(Be>>>16)&65535)<<16)),He-=4,++Ye;switch(He){case 3:We^=(255&ze.charCodeAt(Ye+2))<<16;case 2:We^=(255&ze.charCodeAt(Ye+1))<<8;case 1:We=1540483477*(65535&(We^=255&ze.charCodeAt(Ye)))+((1540483477*(We>>>16)&65535)<<16)}return We=1540483477*(65535&(We^=We>>>13))+((1540483477*(We>>>16)&65535)<<16),(We^=We>>>15)>>>0};var hm=Xh,Q0=Av.exports;Gu.exports=hm,Gu.exports.murmur3=hm,Gu.exports.murmur2=Q0;var tf=Li(Gu.exports);class Zd{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(Re,Be,He,We){this.ids.push(nd(Re)),this.positions.push(Be,He,We)}getPositions(Re){const Be=nd(Re);let He=0,We=this.ids.length-1;for(;He<We;){const ni=He+We>>1;this.ids[ni]>=Be?We=ni:He=ni+1}const Ye=[];for(;this.ids[He]===Be;)Ye.push({index:this.positions[3*He],start:this.positions[3*He+1],end:this.positions[3*He+2]}),He++;return Ye}static serialize(Re,Be){const He=new Float64Array(Re.ids),We=new Uint32Array(Re.positions);return jg(He,We,0,He.length-1),Be&&Be.push(He.buffer,We.buffer),{ids:He,positions:We}}static deserialize(Re){const Be=new Zd;return Be.ids=Re.ids,Be.positions=Re.positions,Be.indexed=!0,Be}}function nd(ze){const Re=+ze;return!isNaN(Re)&&Number.MIN_SAFE_INTEGER<=Re&&Re<=Number.MAX_SAFE_INTEGER?Re:tf(String(ze))}function jg(ze,Re,Be,He){for(;Be<He;){const We=ze[Be+He>>1];let Ye=Be-1,ni=He+1;for(;;){do Ye++;while(ze[Ye]<We);do ni--;while(ze[ni]>We);if(Ye>=ni)break;nf(ze,Ye,ni),nf(Re,3*Ye,3*ni),nf(Re,3*Ye+1,3*ni+1),nf(Re,3*Ye+2,3*ni+2)}ni-Be<He-ni?(jg(ze,Re,Be,ni),Be=ni+1):(jg(ze,Re,ni+1,He),He=ni)}}function nf(ze,Re,Be){const He=ze[Re];ze[Re]=ze[Be],ze[Be]=He}to(Zd,"FeaturePositionMap");class Yd{constructor(Re){this.gl=Re.gl,this.initialized=!1}fetchUniformLocation(Re,Be){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(Re,Be),this.initialized=!0),!!this.location}}class pm extends Yd{constructor(Re){super(Re),this.current=0}set(Re,Be,He){this.fetchUniformLocation(Re,Be)&&this.current!==He&&(this.current=He,this.gl.uniform1f(this.location,He))}}class cc extends Yd{constructor(Re){super(Re),this.current=[0,0,0,0]}set(Re,Be,He){this.fetchUniformLocation(Re,Be)&&(He[0]===this.current[0]&&He[1]===this.current[1]&&He[2]===this.current[2]&&He[3]===this.current[3]||(this.current=He,this.gl.uniform4f(this.location,He[0],He[1],He[2],He[3])))}}class Ya extends Yd{constructor(Re){super(Re),this.current=aa.transparent}set(Re,Be,He){this.fetchUniformLocation(Re,Be)&&(He.r===this.current.r&&He.g===this.current.g&&He.b===this.current.b&&He.a===this.current.a||(this.current=He,this.gl.uniform4f(this.location,He.r,He.g,He.b,He.a)))}}const Fc=new Float32Array(16),ey=new Float32Array(9),ty=new Float32Array(4);function fh(ze){return[gr(255*ze.r,255*ze.g),gr(255*ze.b,255*ze.a)]}class mh{constructor(Re,Be,He){this.value=Re,this.uniformNames=Be.map(We=>`u_${We}`),this.type=He}setUniform(Re,Be,He,We,Ye){Be.set(Re,Ye,We.constantOr(this.value))}getBinding(Re,Be){return this.type==="color"?new Ya(Re):new pm(Re)}}class Pp{constructor(Re,Be){this.uniformNames=Be.map(He=>`u_${He}`),this.pattern=null,this.pixelRatio=1}setConstantPatternPositions(Re){this.pixelRatio=Re.pixelRatio||1,this.pattern=Re.tl.concat(Re.br)}setUniform(Re,Be,He,We,Ye){const ni=Ye==="u_pattern"||Ye==="u_dash"?this.pattern:Ye==="u_pixel_ratio"?this.pixelRatio:null;ni&&Be.set(Re,Ye,ni)}getBinding(Re,Be){return Be==="u_pattern"||Be==="u_dash"?new cc(Re):new pm(Re)}}class gh{constructor(Re,Be,He,We){this.expression=Re,this.type=He,this.maxValue=0,this.paintVertexAttributes=Be.map(Ye=>({name:`a_${Ye}`,type:"Float32",components:He==="color"?2:1,offset:0})),this.paintVertexArray=new We}populatePaintArray(Re,Be,He,We,Ye,ni){const li=this.paintVertexArray.length,yi=this.expression.evaluate(new Fi(0),Be,{},Ye,We,ni);this.paintVertexArray.resize(Re),this._setPaintValue(li,Re,yi)}updatePaintArray(Re,Be,He,We,Ye){const ni=this.expression.evaluate({zoom:0},He,We,void 0,Ye);this._setPaintValue(Re,Be,ni)}
219_setPaintValue(Re,Be,He){if(this.type==="color"){const We=fh(He);for(let Ye=Re;Ye<Be;Ye++)this.paintVertexArray.emplace(Ye,We[0],We[1])}else{for(let We=Re;We<Be;We++)this.paintVertexArray.emplace(We,He);this.maxValue=Math.max(this.maxValue,Math.abs(He))}}upload(Re){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=Re.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class eu{constructor(Re,Be,He,We,Ye,ni){this.expression=Re,this.uniformNames=Be.map(li=>`u_${li}_t`),this.type=He,this.useIntegerZoom=We,this.zoom=Ye,this.maxValue=0,this.paintVertexAttributes=Be.map(li=>({name:`a_${li}`,type:"Float32",components:He==="color"?4:2,offset:0})),this.paintVertexArray=new ni}populatePaintArray(Re,Be,He,We,Ye,ni){const li=this.expression.evaluate(new Fi(this.zoom),Be,{},Ye,We,ni),yi=this.expression.evaluate(new Fi(this.zoom+1),Be,{},Ye,We,ni),xi=this.paintVertexArray.length;this.paintVertexArray.resize(Re),this._setPaintValue(xi,Re,li,yi)}updatePaintArray(Re,Be,He,We,Ye){const ni=this.expression.evaluate({zoom:this.zoom},He,We,void 0,Ye),li=this.expression.evaluate({zoom:this.zoom+1},He,We,void 0,Ye);this._setPaintValue(Re,Be,ni,li)}_setPaintValue(Re,Be,He,We){if(this.type==="color"){const Ye=fh(He),ni=fh(We);for(let li=Re;li<Be;li++)this.paintVertexArray.emplace(li,Ye[0],Ye[1],ni[0],ni[1])}else{for(let Ye=Re;Ye<Be;Ye++)this.paintVertexArray.emplace(Ye,He,We);this.maxValue=Math.max(this.maxValue,Math.abs(He),Math.abs(We))}}upload(Re){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=Re.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(Re,Be,He,We,Ye){const ni=this.useIntegerZoom?Math.floor(He.zoom):He.zoom,li=Hn(this.expression.interpolationFactor(ni,this.zoom,this.zoom+1),0,1);Be.set(Re,Ye,li)}getBinding(Re,Be){return new pm(Re)}}class yh{constructor(Re,Be,He,We,Ye){this.expression=Re,this.layerId=Ye,this.paintVertexAttributes=(He==="array"?kp:yd).members;for(let ni=0;ni<Be.length;++ni);this.paintVertexArray=new We}populatePaintArray(Re,Be,He){const We=this.paintVertexArray.length;this.paintVertexArray.resize(Re),this._setPaintValues(We,Re,Be.patterns&&Be.patterns[this.layerId],He)}updatePaintArray(Re,Be,He,We,Ye,ni){this._setPaintValues(Re,Be,He.patterns&&He.patterns[this.layerId],ni)}_setPaintValues(Re,Be,He,We){if(!We||!He)return;const Ye=We[He];if(!Ye)return;const{tl:ni,br:li,pixelRatio:yi}=Ye;for(let xi=Re;xi<Be;xi++)this.paintVertexArray.emplace(xi,ni[0],ni[1],li[0],li[1],yi)}upload(Re){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer=Re.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class yu{constructor(Re,Be,He=()=>!0){this.binders={},this._buffers=[];const We=[];for(const Ye in Re.paint._values){if(!He(Ye))continue;const ni=Re.paint.get(Ye);if(!(ni instanceof Bn&&vp(ni.property.specification)))continue;const li=rf(Ye,Re.type),yi=ni.value,xi=ni.property.specification.type,Pi=!!ni.property.useIntegerZoom,Ni=Ye==="line-dasharray"||Ye.endsWith("pattern"),Wi=Ye==="line-dasharray"&&Re.layout.get("line-cap").value.kind!=="constant";if(yi.kind!=="constant"||Wi)if(yi.kind==="source"||Wi||Ni){const rn=iy(Ye,xi,"source");this.binders[Ye]=Ni?new yh(yi,li,xi,rn,Re.id):new gh(yi,li,xi,rn),We.push(`/a_${Ye}`)}else{const rn=iy(Ye,xi,"composite");this.binders[Ye]=new eu(yi,li,xi,Pi,Be,rn),We.push(`/z_${Ye}`)}else this.binders[Ye]=Ni?new Pp(yi.value,li):new mh(yi.value,li,xi),We.push(`/u_${Ye}`)}this.cacheKey=We.sort().join("")}getMaxValue(Re){const Be=this.binders[Re];return Be instanceof gh||Be instanceof eu?Be.maxValue:0}populatePaintArrays(Re,Be,He,We,Ye,ni){for(const li in this.binders){const yi=this.binders[li];(yi instanceof gh||yi instanceof eu||yi instanceof yh)&&yi.populatePaintArray(Re,Be,He,We,Ye,ni)}}setConstantPatternPositions(Re){for(const Be in this.binders){const He=this.binders[Be];He instanceof Pp&&He.setConstantPatternPositions(Re)}}updatePaintArrays(Re,Be,He,We,Ye,ni){let li=!1;for(const yi in Re){const xi=Be.getPositions(yi);for(const Pi of xi){const Ni=He.feature(Pi.index);for(const Wi in this.binders){const rn=this.binders[Wi];if((rn instanceof gh||rn instanceof eu||rn instanceof yh)&&rn.expression.isStateDependent===!0){const un=We.paint.get(Wi);rn.expression=un.value,rn.updatePaintArray(Pi.start,Pi.end,Ni,Re[yi],Ye,ni),li=!0}}}}return li}defines(){const Re=[];for(const Be in this.binders){const He=this.binders[Be];(He instanceof mh||He instanceof Pp)&&Re.push(...He.uniformNames.map(We=>`#define HAS_UNIFORM_${We}`))}return Re}getBinderAttributes(){const Re=[];for(const Be in this.binders){const He=this.binders[Be];if(He instanceof gh||He instanceof eu||He instanceof yh)for(let We=0;We<He.paintVertexAttributes.length;We++)Re.push(He.paintVertexAttributes[We].name)}return Re}getBinderUniforms(){const Re=[];for(const Be in this.binders){const He=this.binders[Be];if(He instanceof mh||He instanceof Pp||He instanceof eu)for(const We of He.uniformNames)Re.push(We)}return Re}getPaintVertexBuffers(){return this._buffers}getUniforms(Re){const Be=[];for(const He in this.binders){const We=this.binders[He];if(We instanceof mh||We instanceof Pp||We instanceof eu)for(const Ye of We.uniformNames)Be.push({name:Ye,property:He,binding:We.getBinding(Re,Ye)})}return Be}setUniforms(Re,Be,He,We,Ye){for(const{name:ni,property:li,binding:yi}of He)this.binders[li].setUniform(Re,yi,Ye,We.get(li),ni)}updatePaintBuffers(){this._buffers=[];for(const Re in this.binders){const Be=this.binders[Re];(Be instanceof gh||Be instanceof eu||Be instanceof yh)&&Be.paintVertexBuffer&&this._buffers.push(Be.paintVertexBuffer)}}upload(Re){for(const Be in this.binders){const He=this.binders[Be];(He instanceof gh||He instanceof eu||He instanceof yh)&&He.upload(Re)}this.updatePaintBuffers()}destroy(){for(const Re in this.binders){const Be=this.binders[Re];(Be instanceof gh||Be instanceof eu||Be instanceof yh)&&Be.destroy()}}}class Ip{constructor(Re,Be,He=()=>!0){this.programConfigurations={};for(const We of Re)this.programConfigurations[We.id]=new yu(We,Be,He);this.needsUpload=!1,this._featureMap=new Zd,this._bufferOffset=0}populatePaintArrays(Re,Be,He,We,Ye,ni,li){for(const yi in this.programConfigurations)this.programConfigurations[yi].populatePaintArrays(Re,Be,We,Ye,ni,li);Be.id!==void 0&&this._featureMap.add(Be.id,He,this._bufferOffset,Re),this._bufferOffset=Re,this.needsUpload=!0}updatePaintArrays(Re,Be,He,We,Ye){for(const ni of He)this.needsUpload=this.programConfigurations[ni.id].updatePaintArrays(Re,this._featureMap,Be,ni,We,Ye)||this.needsUpload}get(Re){return this.programConfigurations[Re]}upload(Re){if(this.needsUpload){for(const Be in this.programConfigurations)this.programConfigurations[Be].upload(Re);this.needsUpload=!1}}destroy(){for(const Re in this.programConfigurations)this.programConfigurations[Re].destroy()}}const Kd={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["ga
219pwidth"],"line-pattern":["pattern","pixel_ratio"],"fill-pattern":["pattern","pixel_ratio"],"fill-extrusion-pattern":["pattern","pixel_ratio"],"line-dasharray":["dash"]};function rf(ze,Re){return Kd[ze]||[ze.replace(`${Re}-`,"").replace(/-/g,"_")]}const Of={"line-pattern":{source:Lr,composite:Lr},"fill-pattern":{source:Lr,composite:Lr},"fill-extrusion-pattern":{source:Lr,composite:Lr},"line-dasharray":{source:ns,composite:ns}},ql={color:{source:Hu,composite:ss},number:{source:Pa,composite:Hu}};function iy(ze,Re,Be){const He=Of[ze];return He&&He[Be]||ql[Re][Be]}to(mh,"ConstantBinder"),to(Pp,"PatternConstantBinder"),to(gh,"SourceExpressionBinder"),to(yh,"PatternCompositeBinder"),to(eu,"CompositeExpressionBinder"),to(yu,"ProgramConfiguration",{omit:["_buffers"]}),to(Ip,"ProgramConfigurationSet");const vd="-transition";class vh extends rh{constructor(Re,Be){if(super(),this.id=Re.id,this.type=Re.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,Re.type!=="custom"&&(this.metadata=Re.metadata,this.minzoom=Re.minzoom,this.maxzoom=Re.maxzoom,Re.type!=="background"&&Re.type!=="sky"&&(this.source=Re.source,this.sourceLayer=Re["source-layer"],this.filter=Re.filter),Be.layout&&(this._unevaluatedLayout=new On(Be.layout)),Be.paint)){this._transitionablePaint=new hn(Be.paint);for(const He in Re.paint)this.setPaintProperty(He,Re.paint[He],{validate:!1});for(const He in Re.layout)this.setLayoutProperty(He,Re.layout[He],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Vn(Be.paint)}}getLayoutProperty(Re){return Re==="visibility"?this.visibility:this._unevaluatedLayout.getValue(Re)}setLayoutProperty(Re,Be,He={}){Be!=null&&this._validate(Hg,`layers.${this.id}.layout.${Re}`,Re,Be,He)||(Re!=="visibility"?this._unevaluatedLayout.setValue(Re,Be):this.visibility=Be)}getPaintProperty(Re){return xs(Re,vd)?this._transitionablePaint.getTransition(Re.slice(0,-11)):this._transitionablePaint.getValue(Re)}setPaintProperty(Re,Be,He={}){if(Be!=null&&this._validate(Vg,`layers.${this.id}.paint.${Re}`,Re,Be,He))return!1;if(xs(Re,vd))return this._transitionablePaint.setTransition(Re.slice(0,-11),Be||void 0),!1;{const We=this._transitionablePaint._values[Re],Ye=We.value.isDataDriven(),ni=We.value;this._transitionablePaint.setValue(Re,Be),this._handleSpecialPaintPropertyUpdate(Re);const li=this._transitionablePaint._values[Re].value,yi=li.isDataDriven(),xi=xs(Re,"pattern")||Re==="line-dasharray";return yi||Ye||xi||this._handleOverridablePaintPropertyUpdate(Re,ni,li)}}_handleSpecialPaintPropertyUpdate(Re){}getProgramIds(){return null}getProgramConfiguration(Re){return null}_handleOverridablePaintPropertyUpdate(Re,Be,He){return!1}isHidden(Re){return!!(this.minzoom&&Re<this.minzoom)||!!(this.maxzoom&&Re>=this.maxzoom)||this.visibility==="none"}updateTransitions(Re){this._transitioningPaint=this._transitionablePaint.transitioned(Re,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(Re,Be){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(Re,void 0,Be)),this.paint=this._transitioningPaint.possiblyEvaluate(Re,void 0,Be)}
vendor: 5,438 bytes, line 219
219serialize(){const Re={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(Re.layout=Re.layout||{},Re.layout.visibility=this.visibility),bi(Re,(Be,He)=>!(Be===void 0||He==="layout"&&!Object.keys(Be).length||He==="paint"&&!Object.keys(Be).length))}_validate(Re,Be,He,We,Ye={}){return(!Ye||Ye.validate!==!1)&&qd(this,Re.call(Pf,{key:Be,layerType:this.type,objectKey:He,value:We,styleSpec:rs,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const Re in this.paint._values){const Be=this.paint.get(Re);if(Be instanceof Bn&&vp(Be.property.specification)&&(Be.value.kind==="source"||Be.value.kind==="composite")&&Be.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=Gh(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}const Wg=Pr([{name:"a_pos",components:2,type:"Int16"}],4),Dv=Pr([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class Il{constructor(Re=[]){this.segments=Re}prepareSegment(Re,Be,He,We){let Ye=this.segments[this.segments.length-1];return Re>Il.MAX_VERTEX_ARRAY_LENGTH&&Mn(`Max vertices per segment is ${Il.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${Re}`),(!Ye||Ye.vertexLength+Re>Il.MAX_VERTEX_ARRAY_LENGTH||Ye.sortKey!==We)&&(Ye={vertexOffset:Be.length,primitiveOffset:He.length,vertexLength:0,primitiveLength:0},We!==void 0&&(Ye.sortKey=We),this.segments.push(Ye)),Ye}get(){return this.segments}destroy(){for(const Re of this.segments)for(const Be in Re.vaos)Re.vaos[Be].destroy()}static simpleSegment(Re,Be,He,We){return new Il([{vertexOffset:Re,primitiveOffset:Be,vertexLength:He,primitiveLength:We,vaos:{},sortKey:0}])}}Il.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,to(Il,"SegmentVector");var So=8192;class _h{constructor(Re,Be){Re&&(Be?this.setSouthWest(Re).setNorthEast(Be):Re.length===4?this.setSouthWest([Re[0],Re[1]]).setNorthEast([Re[2],Re[3]]):this.setSouthWest(Re[0]).setNorthEast(Re[1]))}setNorthEast(Re){return this._ne=Re instanceof ln?new ln(Re.lng,Re.lat):ln.convert(Re),this}setSouthWest(Re){return this._sw=Re instanceof ln?new ln(Re.lng,Re.lat):ln.convert(Re),this}extend(Re){const Be=this._sw,He=this._ne;let We,Ye;if(Re instanceof ln)We=Re,Ye=Re;else{if(!(Re instanceof _h))return Array.isArray(Re)?Re.length===4||Re.every(Array.isArray)?this.extend(_h.convert(Re)):this.extend(ln.convert(Re)):typeof Re=="object"&&Re!==null&&Re.hasOwnProperty("lat")&&(Re.hasOwnProperty("lon")||Re.hasOwnProperty("lng"))?this.extend(ln.convert(Re)):this;if(We=Re._sw,Ye=Re._ne,!We||!Ye)return this}return Be||He?(Be.lng=Math.min(We.lng,Be.lng),Be.lat=Math.min(We.lat,Be.lat),He.lng=Math.max(Ye.lng,He.lng),He.lat=Math.max(Ye.lat,He.lat)):(this._sw=new ln(We.lng,We.lat),this._ne=new ln(Ye.lng,Ye.lat)),this}getCenter(){return new ln((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new ln(this.getWest(),this.getNorth())}getSouthEast(){return new ln(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(Re){const{lng:Be,lat:He}=ln.convert(Re);let We=this._sw.lng<=Be&&Be<=this._ne.lng;return this._sw.lng>this._ne.lng&&(We=this._sw.lng>=Be&&Be>=this._ne.lng),this._sw.lat<=He&&He<=this._ne.lat&&We}static convert(Re){return!Re||Re instanceof _h?Re:new _h(Re)}}var ec=1e-6,nl=typeof Float32Array<"u"?Float32Array:Array;function qg(){var ze=new nl(9);return nl!=Float32Array&&(ze[1]=0,ze[2]=0,ze[3]=0,ze[5]=0,ze[6]=0,ze[7]=0),ze[0]=1,ze[4]=1,ze[8]=1,ze}function fm(ze,Re,Be){var He=Re[0],We=Re[1],Ye=Re[2],ni=Re[3],li=Re[4],yi=Re[5],xi=Re[6],Pi=Re[7],Ni=Re[8],Wi=Be[0],rn=Be[1],un=Be[2],gn=Be[3],kn=Be[4],jn=Be[5],ar=Be[6],Wn=Be[7],sr=Be[8];return ze[0]=Wi*He+rn*ni+un*xi,ze[1]=Wi*We+rn*li+un*Pi,ze[2]=Wi*Ye+rn*yi+un*Ni,ze[3]=gn*He+kn*ni+jn*xi,ze[4]=gn*We+kn*li+jn*Pi,ze[5]=gn*Ye+kn*yi+jn*Ni,ze[6]=ar*He+Wn*ni+sr*xi,ze[7]=ar*We+Wn*li+sr*Pi,ze[8]=ar*Ye+Wn*yi+sr*Ni,ze}function ju(ze){return ze[0]=1,ze[1]=0,ze[2]=0,ze[3]=0,ze[4]=0,ze[5]=1,ze[6]=0,ze[7]=0,ze[8]=0,ze[9]=0,ze[10]=1,ze[11]=0,ze[12]=0,ze[13]=0,ze[14]=0,ze[15]=1,ze}function _d(ze,Re){var Be=Re[0],He=Re[1],We=Re[2],Ye=Re[3],ni=Re[4],li=Re[5],yi=Re[6],xi=Re[7],Pi=Re[8],Ni=Re[9],Wi=Re[10],rn=Re[11],un=Re[12],gn=Re[13],kn=Re[14],jn=Re[15],ar=Be*li-He*ni,Wn=Be*yi-We*ni,sr=Be*xi-Ye*ni,fr=He*yi-We*li,pr=He*xi-Ye*li,Zr=We*xi-Ye*yi,Gr=Pi*gn-Ni*un,us=Pi*kn-Wi*un,$s=Pi*jn-rn*un,Qr=Ni*kn-Wi*gn,ys=Ni*jn-rn*gn,vs=Wi*jn-rn*kn,ks=ar*vs-Wn*ys+sr*Qr+fr*$s-pr*us+Zr*Gr;return ks?(ze[0]=(li*vs-yi*ys+xi*Qr)*(ks=1/ks),ze[1]=(We*ys-He*vs-Ye*Qr)*ks,ze[2]=(gn*Zr-kn*pr+jn*fr)*ks,ze[3]=(Wi*pr-Ni*Zr-rn*fr)*ks,ze[4]=(yi*$s-ni*vs-xi*us)*ks,ze[5]=(Be*vs-We*$s+Ye*u
vendor: 11,590 bytes, line 219
219s)*ks,ze[6]=(kn*sr-un*Zr-jn*Wn)*ks,ze[7]=(Pi*Zr-Wi*sr+rn*Wn)*ks,ze[8]=(ni*ys-li*$s+xi*Gr)*ks,ze[9]=(He*$s-Be*ys-Ye*Gr)*ks,ze[10]=(un*pr-gn*sr+jn*ar)*ks,ze[11]=(Ni*sr-Pi*pr-rn*ar)*ks,ze[12]=(li*us-ni*Qr-yi*Gr)*ks,ze[13]=(Be*Qr-He*us+We*Gr)*ks,ze[14]=(gn*Wn-un*fr-kn*ar)*ks,ze[15]=(Pi*fr-Ni*Wn+Wi*ar)*ks,ze):null}function bd(ze,Re,Be){var He=Re[0],We=Re[1],Ye=Re[2],ni=Re[3],li=Re[4],yi=Re[5],xi=Re[6],Pi=Re[7],Ni=Re[8],Wi=Re[9],rn=Re[10],un=Re[11],gn=Re[12],kn=Re[13],jn=Re[14],ar=Re[15],Wn=Be[0],sr=Be[1],fr=Be[2],pr=Be[3];return ze[0]=Wn*He+sr*li+fr*Ni+pr*gn,ze[1]=Wn*We+sr*yi+fr*Wi+pr*kn,ze[2]=Wn*Ye+sr*xi+fr*rn+pr*jn,ze[3]=Wn*ni+sr*Pi+fr*un+pr*ar,ze[4]=(Wn=Be[4])*He+(sr=Be[5])*li+(fr=Be[6])*Ni+(pr=Be[7])*gn,ze[5]=Wn*We+sr*yi+fr*Wi+pr*kn,ze[6]=Wn*Ye+sr*xi+fr*rn+pr*jn,ze[7]=Wn*ni+sr*Pi+fr*un+pr*ar,ze[8]=(Wn=Be[8])*He+(sr=Be[9])*li+(fr=Be[10])*Ni+(pr=Be[11])*gn,ze[9]=Wn*We+sr*yi+fr*Wi+pr*kn,ze[10]=Wn*Ye+sr*xi+fr*rn+pr*jn,ze[11]=Wn*ni+sr*Pi+fr*un+pr*ar,ze[12]=(Wn=Be[12])*He+(sr=Be[13])*li+(fr=Be[14])*Ni+(pr=Be[15])*gn,ze[13]=Wn*We+sr*yi+fr*Wi+pr*kn,ze[14]=Wn*Ye+sr*xi+fr*rn+pr*jn,ze[15]=Wn*ni+sr*Pi+fr*un+pr*ar,ze}function sf(ze,Re,Be){var He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn,un,gn=Be[0],kn=Be[1],jn=Be[2];return Re===ze?(ze[12]=Re[0]*gn+Re[4]*kn+Re[8]*jn+Re[12],ze[13]=Re[1]*gn+Re[5]*kn+Re[9]*jn+Re[13],ze[14]=Re[2]*gn+Re[6]*kn+Re[10]*jn+Re[14],ze[15]=Re[3]*gn+Re[7]*kn+Re[11]*jn+Re[15]):(We=Re[1],Ye=Re[2],ni=Re[3],li=Re[4],yi=Re[5],xi=Re[6],Pi=Re[7],Ni=Re[8],Wi=Re[9],rn=Re[10],un=Re[11],ze[0]=He=Re[0],ze[1]=We,ze[2]=Ye,ze[3]=ni,ze[4]=li,ze[5]=yi,ze[6]=xi,ze[7]=Pi,ze[8]=Ni,ze[9]=Wi,ze[10]=rn,ze[11]=un,ze[12]=He*gn+li*kn+Ni*jn+Re[12],ze[13]=We*gn+yi*kn+Wi*jn+Re[13],ze[14]=Ye*gn+xi*kn+rn*jn+Re[14],ze[15]=ni*gn+Pi*kn+un*jn+Re[15]),ze}function of(ze,Re,Be){var He=Be[0],We=Be[1],Ye=Be[2];return ze[0]=Re[0]*He,ze[1]=Re[1]*He,ze[2]=Re[2]*He,ze[3]=Re[3]*He,ze[4]=Re[4]*We,ze[5]=Re[5]*We,ze[6]=Re[6]*We,ze[7]=Re[7]*We,ze[8]=Re[8]*Ye,ze[9]=Re[9]*Ye,ze[10]=Re[10]*Ye,ze[11]=Re[11]*Ye,ze[12]=Re[12],ze[13]=Re[13],ze[14]=Re[14],ze[15]=Re[15],ze}function Xm(ze,Re,Be){var He=Math.sin(Be),We=Math.cos(Be),Ye=Re[4],ni=Re[5],li=Re[6],yi=Re[7],xi=Re[8],Pi=Re[9],Ni=Re[10],Wi=Re[11];return Re!==ze&&(ze[0]=Re[0],ze[1]=Re[1],ze[2]=Re[2],ze[3]=Re[3],ze[12]=Re[12],ze[13]=Re[13],ze[14]=Re[14],ze[15]=Re[15]),ze[4]=Ye*We+xi*He,ze[5]=ni*We+Pi*He,ze[6]=li*We+Ni*He,ze[7]=yi*We+Wi*He,ze[8]=xi*We-Ye*He,ze[9]=Pi*We-ni*He,ze[10]=Ni*We-li*He,ze[11]=Wi*We-yi*He,ze}function bh(ze,Re,Be){var He=Math.sin(Be),We=Math.cos(Be),Ye=Re[0],ni=Re[1],li=Re[2],yi=Re[3],xi=Re[8],Pi=Re[9],Ni=Re[10],Wi=Re[11];return Re!==ze&&(ze[4]=Re[4],ze[5]=Re[5],ze[6]=Re[6],ze[7]=Re[7],ze[12]=Re[12],ze[13]=Re[13],ze[14]=Re[14],ze[15]=Re[15]),ze[0]=Ye*We-xi*He,ze[1]=ni*We-Pi*He,ze[2]=li*We-Ni*He,ze[3]=yi*We-Wi*He,ze[8]=Ye*He+xi*We,ze[9]=ni*He+Pi*We,ze[10]=li*He+Ni*We,ze[11]=yi*He+Wi*We,ze}function af(ze,Re){return ze[0]=Re[0],ze[1]=0,ze[2]=0,ze[3]=0,ze[4]=0,ze[5]=Re[1],ze[6]=0,ze[7]=0,ze[8]=0,ze[9]=0,ze[10]=Re[2],ze[11]=0,ze[12]=0,ze[13]=0,ze[14]=0,ze[15]=1,ze}function mm(ze,Re,Be){var He,We,Ye,ni=Be[0],li=Be[1],yi=Be[2],xi=Math.hypot(ni,li,yi);return xi<ec?null:(ni*=xi=1/xi,li*=xi,yi*=xi,He=Math.sin(Re),We=Math.cos(Re),ze[0]=ni*ni*(Ye=1-We)+We,ze[1]=li*ni*Ye+yi*He,ze[2]=yi*ni*Ye-li*He,ze[3]=0,ze[4]=ni*li*Ye-yi*He,ze[5]=li*li*Ye+We,ze[6]=yi*li*Ye+ni*He,ze[7]=0,ze[8]=ni*yi*Ye+li*He,ze[9]=li*yi*Ye-ni*He,ze[10]=yi*yi*Ye+We,ze[11]=0,ze[12]=0,ze[13]=0,ze[14]=0,ze[15]=1,ze)}Math.hypot||(Math.hypot=function(){for(var ze=0,Re=arguments.length;Re--;)ze+=arguments[Re]*arguments[Re];return Math.sqrt(ze)});var ny=bd;function Xg(){var ze=new nl(3);return nl!=Float32Array&&(ze[0]=0,ze[1]=0,ze[2]=0),ze}function Lf(ze){var Re=new nl(3);return Re[0]=ze[0],Re[1]=ze[1],Re[2]=ze[2],Re}function gm(ze){return Math.hypot(ze[0],ze[1],ze[2])}function xd(ze,Re,Be){var He=new nl(3);return He[0]=ze,He[1]=Re,He[2]=Be,He}function Rl(ze,Re,Be){return ze[0]=Re[0]+Be[0],ze[1]=Re[1]+Be[1],ze[2]=Re[2]+Be[2],ze}function $f(ze,Re,Be){return ze[0]=Re[0]-Be[0],ze[1]=Re[1]-Be[1],ze[2]=Re[2]-Be[2],ze}function ry(ze,Re,Be){return ze[0]=Re[0]*Be[0],ze[1]=Re[1]*Be[1],ze[2]=Re[2]*Be[2],ze}function Ff(ze,Re,Be){return ze[0]=Math.min(Re[0],Be[0]),ze[1]=Math.min(Re[1],Be[1]),ze[2]=Math.min(Re[2],Be[2]),ze}function Zh(ze,Re,Be){return ze[0]=Math.max(Re[0],Be[0]),ze[1]=Math.max(Re[1],Be[1]),ze[2]=Math.max(Re[2],Be[2]),ze}function tu(ze,Re,Be){return ze[0]=Re[0]*Be,ze[1]=Re[1]*Be,ze[2]=Re[2]*Be,ze}function lf(ze,Re,Be,He){return ze[0]=Re[0]+Be[0]*He,ze[1]=Re[1]+Be[1]*He,ze[2]=Re[2]+Be[2]*He,ze}function vu(ze,Re){var Be=Re[0],He=Re[1],We=Re[2],Ye=Be*Be+He*He+We*We;return Ye>0&&(Ye=1/Math.sqrt(Ye)),ze[0]=Re[0]*Ye,ze[1]=Re[1]*Ye,ze[2]=Re[2]*Ye,ze}function rd(ze,Re){return ze[0]*Re[0]+ze[1]*Re[1]+ze[2]*Re[2]}function wd(ze,Re,Be){var He=Re[0],We=Re[1],Ye=Re[2],ni=Be[0],li=Be[1],yi=Be[2];return ze[0]=We*yi-Ye*li,ze[1]=Ye*ni-He*yi,ze[2]=He*li-We*ni,ze}function Ol(ze,Re,Be){var He=Re[0],We=Re[1],Ye=Re[2],ni=Be[3]*He+Be[7]*We+Be[11]*Ye+Be[15];return ze[0]=(Be[0]*He+Be[4]*We+Be[8]*Ye+Be[12])/(ni=ni||1),ze[1]=(Be[1]*He+Be[5]*We+Be[9]*Ye+Be[13])/ni,ze[2]=(Be[2]*He+Be[6]*We+Be[10]*Ye+Be[14])/ni,ze}function zf(ze,Re,Be){var He=Be[0],We=Be[1],Ye=Be[2],ni=Re[0],li=Re[1],yi=Re[2],xi=We*yi-Ye*li,Pi=Ye*ni-He*yi,Ni=He*li-We*ni,Wi=We*Ni-Ye*Pi,rn=Ye*xi-He*Ni,un=He*Pi-We*xi,gn=2*Be[3];return Pi*=gn,Ni*=gn,rn*=2,un*=2,ze[0]=ni+(xi*=gn)+(Wi*=2),ze[1]=li+Pi+rn,ze[2]=yi+Ni+un,ze}var cf,Sd=$f,Zm=ry,uf=gm;function Jd(ze,Re,Be){return ze[0]=Re[0]*Be,ze[1]=Re[1]*Be,ze[2]=Re[2]*Be,ze[3]=Re[3]*Be,ze}function Ym(ze,Re){var Be=Re[0],He=Re[1],We=Re[2],Ye=Re[3],ni=Be*Be+He*He+We*We+Ye*Ye;return ni>0&&(ni=1/Math.sqrt(ni)),ze[0]=Be*ni,ze[1]=He*ni,ze[2]=We*ni,ze[3]=Ye*ni,ze}function Rp(ze,Re,Be){var He=Re[0],We=Re[1],Ye=Re[2],ni=Re[3];return ze[0]=Be[0]*He+Be[4]*We+Be[8]*Ye+Be[12]*ni,ze[1]=Be[1]*He+Be[5]*We+Be[9]*Ye+Be[13]*ni,ze[2]=Be[2]*He+Be[6]*We+Be[10]*Ye+Be[14]*ni,ze[3]=Be[3]*He+Be[7]*We+Be[11]*Ye+Be[15]*ni,ze}function Zg(){var ze=new nl(4);return nl!=Float32Array&&(ze[0]=0,ze[1]=0,ze[2]=0),ze[3]=1,ze}function Km(ze){return ze[0]=0,ze[1]=0,ze[2]=0,ze[3]=1,ze}function df(ze,Re,Be){Be*=.5;var He=Re[0],We=Re[1],Ye=Re[2],ni=Re[3],li=Math.sin(Be),yi=Math.cos(Be);return ze[0]=He*yi+ni*li,ze[1]=We*yi+Ye*li,ze[2]=Ye*yi-We*li,ze[3]=ni*yi-He*li,ze}function Ro(ze,Re,Be){Be*=.5;var He=Re[0],We=Re[1],Ye=Re[2],ni=Re[3],li=Math.sin(Be),yi=Math.cos(Be);return ze[0]=He*yi-Ye*li,ze[1]=We*yi+ni*li,ze[2]=Ye*yi+He*li,ze[3]=ni*yi-We*li,ze}Xg(),cf=new nl(4),nl!=Float32Array&&(cf[0]=0,cf[1]=0,cf[2]=0,cf[3]=0);var Bf=Ym;Xg(),xd(1,0,0),xd(0,1,0),Zg(),Zg(),qg();const Jm=Pr([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:Op}=Jm,sy=Pr([{name:"a_pos_3",components:3,type:"Int16"}]);var hf=Pr([{name:"a_pos",type:"Int16",components:2}]);class Qm{constructor(Re,Be){this.pos=Re,this.dir=Be}intersectsPlane(Re,Be,He){const We=rd(Be,this.dir);if(Math.abs(We)<1e-6)return!1;const Ye=((Re[0]-this.pos[0])*Be[0]+(Re[1]-this.pos[1])*Be[1]+(Re[2]-this.pos[2])*Be[2])/We;return He[0]=this.pos[0]+this.dir[0]*Ye,He[1]=this.pos[1]+this.dir[1]*Ye,He[2]=this.pos[2]+this.dir[2]*Ye,!0}closestPointOnSphere(Re,Be,He){if(function(rn,un){var gn=rn[0],kn=rn[1],jn=rn[2],ar=un[0],Wn=un[1],sr=un[2];return Math.abs(gn-ar)<=ec*Math.max(1,Math.abs(gn),Math.abs(ar))&&Math.abs(kn-Wn)<=ec*Math.max(1,Math.abs(kn),Math.abs(Wn))&&Math.abs(jn-sr)<=ec*Math.max(1,Math.abs(jn),Math.abs(sr))}(this.pos,Re)||Be===0)return He[0]=He[1]=He[2]=0,!1;const[We,Ye,ni]=this.dir,li=this.pos[0]-Re[0],yi=this.pos[1]-Re[1],xi=this.pos[2]-Re[2],Pi=We*We+Ye*Ye+ni*ni,Ni=2*(li*We+yi*Ye+xi*ni),Wi=Ni*Ni-4*Pi*(li*li+yi*yi+xi*xi-Be*Be);if(Wi<0){const rn=Math.max(-Ni/2,0),un=li+We*rn,gn=yi+Ye*rn,kn=xi+ni*rn,jn=Math.hypot(un,gn,kn);return He[0]=un*Be/jn,He[1]=gn*Be/jn,He[2]=kn*Be/jn,!1}{const rn=(-Ni-Math.sqrt(Wi))/(2*Pi);if(rn<0){const un=Math.hypot(li,yi,xi);return He[0]=li*Be/un,He[1]=yi*Be/un,He[2]=xi*Be/un,!1}return He[0]=li+We*rn,He[1]=yi+Ye*rn,He[2]=xi+ni*rn,!0}}}class uc{constructor(Re,Be,He,We,Ye){this.TL=Re,this.TR=Be,this.BR=He,this.BL=We,this.horizon=Ye}static fromInvProjectionMatrix(Re,Be,He){const We=[-1,1,1],Ye=[1,1,1],ni=[1,-1,1],li=[-1,-1,1],yi=Ol(We,We,Re),xi=Ol(Ye,Ye,Re),Pi=Ol(ni,ni,Re),Ni=Ol(li,li,Re);return new uc(yi,xi,Pi,Ni,Be/He)}}class oy{constructor(Re,Be){this.points=Re,this.planes=Be}static fromInvProjectionMatrix(Re,Be,He,We){const Ye=Math.pow(2,He),ni=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(yi=>{const xi=Rp([],yi,Re),Pi=1/xi[3]/Be*Ye;return function(Ni,Wi,rn){return Ni[0]=Wi[0]*rn[0],Ni[1]=Wi[1]*rn[1],Ni[2]=Wi[2]*rn[2],Ni[3]=Wi[3]*rn[3],Ni}(xi,xi,[Pi,Pi,We?1/xi[3]:Pi,Pi])}),li=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(yi=>{const xi=vu([],wd([],Sd([],ni[yi[0]],ni[yi[1]]),Sd([],ni[yi[2]],ni[yi[1]]))),Pi=-rd(xi,ni[yi[1]]);return xi.concat(Pi)});return new oy(ni,li)}}class tc{static fromPoints(Re){const Be=[1/0,1/0,1/0],He=[-1/0,-1/0,-1/0];for(const We of Re)Ff(Be,Be,We),Zh(He,He,We);return new tc(Be,He)}static applyTransform(Re,Be){const He=Re.getCorners();for(let We=0;We<He.length;++We)Ol(He[We],He[We],Be);return tc.fromPoints(He)}constructor(Re,Be){this.min=Re,this.max=Be,this.center=tu([],Rl([],this.min,this.max),.5)}quadrant(Re){const Be=[Re%2==0,Re<2],He=Lf(this.min),We=Lf(this.max);for(let Ye=0;Ye<Be.length;Ye++)He[Ye]=Be[Ye]?this.min[Ye]:this.center[Ye],We[Ye]=Be[Ye]?this.center[Ye]:this.max[Ye];return We[2]=this.max[2],new tc(He,We)}distanceX(Re){return Math.max(Math.min(this.max[0],Re[0]),this.min[0])-Re[0]}distanceY(Re){return Math.max(Math.min(this.max[1],Re[1]),this.min[1])-Re[1]}distanceZ(Re){return Math.max(Math.min(this.max[2],Re[2]),this.min[2])-Re[2]}getCorners(){const Re=this.min,Be=this.max;return[[Re[0],Re[1],Re[2]],[Be[0],Re[1],Re[2]],[Be[0],Be[1],Re[2]],[Re[0],Be[1],Re[2]],[Re[0],Re[1],Be[2]],[Be[0],Re[1],Be[2]],[Be[0],Be[1],Be[2]],[Re[0],Be[1],Be[2]]]}intersects(Re){const Be=this.getCorners();let He=!0;for(let We=0;We<Re.planes.length;We++){const Ye=Re.planes[We];let ni=0;for(let li=0;li<Be.length;li++)ni+=rd(Ye,Be[li])+Ye[3]>=0;if(ni===0)return 0;ni!==Be.length&&(He=!1)}if(He)return 2;for(let We=0;We<3;We++){let Ye=Number.MAX_VALUE,ni=-Number.MAX_VALUE;for(let li=0;li<Re.points.length;li++){const yi=Re.points[li][We]-this.min[We];Ye=Math.min(Ye,yi),ni=Math.max(ni,yi)}if(ni<0||Ye>this.max[We]-this.min[We])return 0}return 1}}const eg=5,ay=6,Wu=So/Math.PI/2,O1=16383,Nf=64,ym=[Nf,32,16],Ac=-Wu,Sl=Wu,tg=[new tc([Ac,Ac,Ac],[Sl,Sl,Sl]),new tc([Ac,Ac,Ac],[0,0,Sl]),new tc([0,Ac,Ac],[Sl,0,Sl]),new tc([Ac,0,Ac],[0,Sl,Sl]),new tc([0,0,Ac],[Sl,Sl,Sl])];function vm(ze){return ze*Wu/Vi}function Yg(ze,Re,Be,He=!0){const We=tu([],ze._camera.position,ze.worldSize),Ye=[Re,Be,1,1];Rp(Ye,Ye,ze.pixelMatrixInverse),Jd(Ye,Ye,1/Ye[3]);const ni=vu([],Sd([],Ye,We)),li=ze.globeMatrix,yi=[li[12],li[13],li[14]],xi=Sd([],yi,We),Pi=gm(xi),Ni=vu([],xi),Wi=ze.worldSize/(2*Math.PI),rn=rd(Ni,ni),un=Math.asin(Wi/Pi);if(un<Math.acos(rn)){if(!He)return null;const $s=[],Qr=[];tu($s,ni,Pi/rn),vu(Qr,Sd(Qr,$s,xi)),vu(ni,Rl(ni,xi,tu(ni,Qr,Math.tan(un)*Pi)))}const gn=[];new Qm(We,ni).closestPointOnSphere(yi,Wi,gn);const kn=vu([],Ls(li,0)),jn=vu([],Ls(li,1)),ar=vu([],Ls(li,2)),Wn=rd(kn,gn),sr=rd(jn,gn),fr=rd(ar,gn),pr=Sn(Math.asin(-sr/Wi));let Zr=Sn(Math.atan2(Wn,fr));Zr=ze.center.lng+function($s,Qr){const ys=(Qr-$s+180)%360-180;return ys<-180?ys+360:ys}(ze.center.lng,Zr);const Gr=$n(Zr),us=Hn(Ln(pr),0,1);return new Fr(Gr,us)}class Mv{constructor(Re,Be,He){this.a=Sd([],Re,He),this.b=Sd([],Be,He),this.center=He;
vendor: 4,603 bytes, line 219
219const We=vu([],this.a),Ye=vu([],this.b);this.angle=Math.acos(rd(We,Ye))}}function Kg(ze,Re){if(ze.angle===0)return null;let Be;return Be=ze.a[Re]===0?1/ze.angle*.5*Math.PI:1/ze.angle*Math.atan(ze.b[Re]/ze.a[Re]/Math.sin(ze.angle)-1/Math.tan(ze.angle)),Be<0||Be>1?null:function(He,We,Ye,ni){const li=Math.sin(Ye);return He*(Math.sin((1-ni)*Ye)/li)+We*(Math.sin(ni*Ye)/li)}(ze.a[Re],ze.b[Re],ze.angle,Hn(Be,0,1))+ze.center[Re]}function Au(ze){if(ze.z<=1)return tg[ze.z+2*ze.y+ze.x];const Re=cy(Jg(ze));return tc.fromPoints(Re)}function Lp(ze,Re,Be){return tu(ze,ze,1-Be),lf(ze,ze,Re,Be)}function ly(ze,Re){const Be=si(Re.zoom);if(Be===0)return Au(ze);const He=Jg(ze),We=cy(He),Ye=$n(He.getWest())*Re.worldSize,ni=$n(He.getEast())*Re.worldSize,li=Ln(He.getNorth())*Re.worldSize,yi=Ln(He.getSouth())*Re.worldSize,xi=[Ye,li,0],Pi=[ni,li,0],Ni=[Ye,yi,0],Wi=[ni,yi,0],rn=_d([],Re.globeMatrix);return Ol(xi,xi,rn),Ol(Pi,Pi,rn),Ol(Ni,Ni,rn),Ol(Wi,Wi,rn),We[0]=Lp(We[0],Ni,Be),We[1]=Lp(We[1],Wi,Be),We[2]=Lp(We[2],Pi,Be),We[3]=Lp(We[3],xi,Be),tc.fromPoints(We)}function xh(ze,Re,Be){for(const He of ze)Ol(He,He,Re),tu(He,He,Be)}function L1(ze,Re,Be){const He=Re/ze.worldSize,We=ze.globeMatrix;if(Be.z<=1){const Gr=Au(Be).getCorners();return xh(Gr,We,He),tc.fromPoints(Gr)}const Ye=Jg(Be),ni=cy(Ye);xh(ni,We,He);const li=Number.MAX_VALUE,yi=[-li,-li,-li],xi=[li,li,li];if(Ye.contains(ze.center)){for(const $s of ni)Ff(xi,xi,$s),Zh(yi,yi,$s);yi[2]=0;const Gr=ze.point,us=[Gr.x*He,Gr.y*He,0];return Ff(xi,xi,us),Zh(yi,yi,us),new tc(xi,yi)}const Pi=[We[12]*He,We[13]*He,We[14]*He],Ni=Ye.getCenter(),Wi=Hn(ze.center.lat,-rr,rr),rn=Hn(Ni.lat,-rr,rr),un=$n(ze.center.lng),gn=Ln(Wi);let kn=un-$n(Ni.lng);const jn=gn-Ln(rn);kn>.5?kn-=1:kn<-.5&&(kn+=1);let ar=0;Math.abs(kn)>Math.abs(jn)?ar=kn>=0?1:3:(ar=jn>=0?0:2,lf(Pi,Pi,[We[4]*He,We[5]*He,We[6]*He],-Math.sin(Tn(jn>=0?Ye.getSouth():Ye.getNorth()))*Wu));const Wn=ni[ar],sr=ni[(ar+1)%4],fr=new Mv(Wn,sr,Pi),pr=[Kg(fr,0)||Wn[0],Kg(fr,1)||Wn[1],Kg(fr,2)||Wn[2]],Zr=si(ze.zoom);if(Zr>0){const Gr=function({x:$s,y:Qr,z:ys},vs,ks,zs,as){const Ks=1/(1<<ys);let fo=$s*Ks,Qs=fo+Ks,Ko=Qr*Ks,Bs=Ko+Ks,Co=0;const Jo=(fo+Qs)/2-zs;return Jo>.5?Co=-1:Jo<-.5&&(Co=1),fo=((fo+Co)*vs-(zs*=vs))*ks+zs,Qs=((Qs+Co)*vs-zs)*ks+zs,Ko=(Ko*vs-(as*=vs))*ks+as,Bs=(Bs*vs-as)*ks+as,[[fo,Bs,0],[Qs,Bs,0],[Qs,Ko,0],[fo,Ko,0]]}(Be,Re,ze._pixelsPerMercatorPixel,un,gn);for(let $s=0;$s<ni.length;$s++)Lp(ni[$s],Gr[$s],Zr);const us=Rl([],Gr[ar],Gr[(ar+1)%4]);tu(us,us,.5),Lp(pr,us,Zr)}for(const Gr of ni)Ff(xi,xi,Gr),Zh(yi,yi,Gr);return xi[2]=Math.min(Wn[2],sr[2]),Ff(xi,xi,pr),Zh(yi,yi,pr),new tc(xi,yi)}function Jg({x:ze,y:Re,z:Be}){const He=1/(1<<Be),We=new ln(lr(ze*He),Gn((Re+1)*He)),Ye=new ln(lr((ze+1)*He),Gn(Re*He));return new _h(We,Ye)}function cy(ze){const Re=Tn(ze.getNorth()),Be=Tn(ze.getSouth()),He=Math.cos(Re),We=Math.cos(Be),Ye=Math.sin(Re),ni=Math.sin(Be),li=ze.getWest(),yi=ze.getEast();return[pf(We,ni,li),pf(We,ni,yi),pf(He,Ye,yi),pf(He,Ye,li)]}function pf(ze,Re,Be,He=Wu){return Be=Tn(Be),[ze*Math.sin(Be)*He,-Re*He,ze*Math.cos(Be)*He]}function La(ze,Re,Be){return pf(Math.cos(Tn(ze)),Math.sin(Tn(ze)),Re,Be)}function ff(ze,Re,Be,He){const We=1<<Be.z,Ye=(ze/So+Be.x)/We;return La(Gn((Re/So+Be.y)/We),lr(Ye),He)}function _u({min:ze,max:Re}){return O1/Math.max(Re[0]-ze[0],Re[1]-ze[1],Re[2]-ze[2])}const Qg=new Float64Array(16);function Yh(ze){const Re=_u(ze),Be=af(Qg,[Re,Re,Re]);return sf(Be,Be,((He=[])[0]=-(We=ze.min)[0],He[1]=-We[1],He[2]=-We[2],He));var He,We}function _m(ze){const Re=(He=ze.min,(Be=Qg)[0]=1,Be[1]=0,Be[2]=0,Be[3]=0,Be[4]=0,Be[5]=1,Be[6]=0,Be[7]=0,Be[8]=0,Be[9]=0,Be[10]=1,Be[11]=0,Be[12]=He[0],Be[13]=He[1],Be[14]=He[2],Be[15]=1,Be);var Be,He;const We=1/_u(ze);return of(Re,Re,[We,We,We])}function ti(ze,Re,Be,He,We){const Ye=function(yi){const xi=So/(2*Math.PI);return yi/(2*Math.PI)/xi}(Be),ni=[ze,Re,-Be/(2*Math.PI)],li=ju(new Float64Array(16));return sf(li,li,ni),of(li,li,[Ye,Ye,Ye]),Xm(li,li,Tn(-We)),bh(li,li,Tn(-He)),li}function si(ze){return Er(eg,ay,ze)}function di(ze,Re){const Be=La(Re.lat,Re.lng),He=function(un){const gn=La(un._center.lat,un._center.lng);let kn=wd([],xd(0,1,0),gn);const jn=mm([],-un.angle,gn);kn=Ol(kn,kn,jn),mm(jn,-un._pitch,kn);const ar=vu([],gn);return tu(ar,ar,vm(un.cameraToCenterDistance/un.pixelsPerMeter)),Ol(ar,ar,jn),Rl([],gn,ar)}(ze);return ni=(We=$f([],He,Be))[0],li=We[1],yi=We[2],xi=(Ye=Be)[0],Pi=Ye[1],Ni=Ye[2],rn=(Wi=Math.sqrt(ni*ni+li*li+yi*yi)*Math.sqrt(xi*xi+Pi*Pi+Ni*Ni))&&rd(We,Ye)/Wi,Math.acos(Math.min(Math.max(rn,-1),1));var We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn}function vi(ze,Re){return di(ze,Re)>Math.PI/2*1.01}
vendor: 9,312 bytes, line 219
219const _i=Tn(85),ki=Math.cos(_i),$i=Math.sin(_i),Vi=63710088e-1,sn=2*Math.PI*Vi;class dn{constructor(Re,Be){if(isNaN(Re)||isNaN(Be))throw new Error(`Invalid LngLat object: (${Re}, ${Be})`);if(this.lng=+Re,this.lat=+Be,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new dn(os(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(Re){const Be=Math.PI/180,He=this.lat*Be,We=Re.lat*Be,Ye=Math.sin(He)*Math.sin(We)+Math.cos(He)*Math.cos(We)*Math.cos((Re.lng-this.lng)*Be);return Vi*Math.acos(Math.min(Ye,1))}toBounds(Re=0){const Be=360*Re/40075017,He=Be/Math.cos(Math.PI/180*this.lat);return new _h(new dn(this.lng-He,this.lat-Be),new dn(this.lng+He,this.lat+Be))}toEcef(Re){const Be=vm(Re);return La(this.lat,this.lng,Wu+Be)}static convert(Re){if(Re instanceof dn)return Re;if(Array.isArray(Re)&&(Re.length===2||Re.length===3))return new dn(Number(Re[0]),Number(Re[1]));if(!Array.isArray(Re)&&typeof Re=="object"&&Re!==null)return new dn(Number("lng"in Re?Re.lng:Re.lon),Number(Re.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}var ln=dn;function _n(ze){return sn*Math.cos(ze*Math.PI/180)}function $n(ze){return(180+ze)/360}function Ln(ze){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+ze*Math.PI/360)))/360}function Sr(ze,Re){return ze/_n(Re)}function lr(ze){return 360*ze-180}function Gn(ze){return 360/Math.PI*Math.atan(Math.exp((180-360*ze)*Math.PI/180))-90}function mr(ze,Re){return ze*_n(Gn(Re))}const rr=85.051129;function ir(ze){return 1/Math.cos(ze*Math.PI/180)}class Fr{constructor(Re,Be,He=0){this.x=+Re,this.y=+Be,this.z=+He}static fromLngLat(Re,Be=0){const He=ln.convert(Re);return new Fr($n(He.lng),Ln(He.lat),Sr(Be,He.lat))}toLngLat(){return new ln(lr(this.x),Gn(this.y))}toAltitude(){return mr(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/sn*ir(Gn(this.y))}}function qr(ze,Re,Be,He,We,Ye,ni,li,yi){const xi=(Re+He)/2,Pi=(Be+We)/2,Ni=new Gi(xi,Pi);li(Ni),function(Wi,rn,un,gn,kn,jn){const ar=un-kn,Wn=gn-jn;return Math.abs((gn-rn)*ar-(un-Wi)*Wn)/Math.hypot(ar,Wn)}(Ni.x,Ni.y,Ye.x,Ye.y,ni.x,ni.y)>=yi?(qr(ze,Re,Be,xi,Pi,Ye,Ni,li,yi),qr(ze,xi,Pi,He,We,Ni,ni,li,yi)):ze.push(ni)}function Jr(ze,Re,Be){let He=ze[0],We=He.x,Ye=He.y;Re(He);const ni=[He];for(let li=1;li<ze.length;li++){const yi=ze[li],{x:xi,y:Pi}=yi;Re(yi),qr(ni,We,Ye,xi,Pi,He,yi,Re,Be),We=xi,Ye=Pi,He=yi}return ni}function Wr(ze,Re,Be,He){if(He(Re,Be)){const We=Re.add(Be)._mult(.5);Wr(ze,Re,We,He),Wr(ze,We,Be,He)}else ze.push(Be)}function Ms(ze,Re){let Be=ze[0];const He=[Be];for(let We=1;We<ze.length;We++){const Ye=ze[We];Wr(He,Be,Ye,Re),Be=Ye}return He}const Ps=Math.pow(2,14)-1,Xs=-Ps-1;function eo(ze,Re){const Be=Math.round(ze.x*Re),He=Math.round(ze.y*Re);return ze.x=Hn(Be,Xs,Ps),ze.y=Hn(He,Xs,Ps),(Be<ze.x||Be>ze.x+1||He<ze.y||He>ze.y+1)&&Mn("Geometry exceeds allowed extent, reduce your vector tile buffer size"),ze}function oo(ze,Re,Be){const He=ze.loadGeometry(),We=ze.extent,Ye=So/We;if(Re&&Be&&Be.projection.isReprojectedInTileSpace){const ni=1<<Re.z,{scale:li,x:yi,y:xi,projection:Pi}=Be,Ni=Wi=>{const rn=lr((Re.x+Wi.x/We)/ni),un=Gn((Re.y+Wi.y/We)/ni),gn=Pi.project(rn,un);Wi.x=(gn.x*li-yi)*We,Wi.y=(gn.y*li-xi)*We};for(let Wi=0;Wi<He.length;Wi++)if(ze.type!==1)He[Wi]=Jr(He[Wi],Ni,1);else{const rn=[];for(const un of He[Wi])un.x<0||un.x>=We||un.y<0||un.y>=We||(Ni(un),rn.push(un));He[Wi]=rn}}for(const ni of He)for(const li of ni)eo(li,Ye);return He}function Cs(ze,Re){return{type:ze.type,id:ze.id,properties:ze.properties,geometry:Re?oo(ze):[]}}function Zs(ze,Re,Be,He,We){ze.emplaceBack(2*Re+(He+1)/2,2*Be+(We+1)/2)}function Io(ze,Re,Be){ze.emplaceBack(Re.x,Re.y,Re.z,Be[0]*16384,Be[1]*16384,Be[2]*16384)}class Eo{constructor(Re){this.zoom=Re.zoom,this.overscaling=Re.overscaling,this.layers=Re.layers,this.layerIds=this.layers.map(Be=>Be.id),this.index=Re.index,this.hasPattern=!1,this.projection=Re.projection,this.layoutVertexArray=new Ds,this.indexArray=new lo,this.segments=new Il,this.programConfigurations=new Ip(Re.layers,Re.zoom),this.stateDependentLayerIds=this.layers.filter(Be=>Be.isStateDependent()).map(Be=>Be.id)}populate(Re,Be,He,We){const Ye=this.layers[0],ni=[];let li=null;Ye.type==="circle"&&(li=Ye.layout.get("circle-sort-key"));for(const{feature:xi,id:Pi,index:Ni,sourceLayerIndex:Wi}of Re){const rn=this.layers[0]._featureFilter.needGeometry,un=Cs(xi,rn);if(!this.layers[0]._featureFilter.filter(new Fi(this.zoom),un,He))continue;const gn=li?li.evaluate(un,{},He):void 0,kn={id:Pi,properties:xi.properties,type:xi.type,sourceLayerIndex:Wi,index:Ni,geometry:rn?un.geometry:oo(xi,He,We),patterns:{},sortKey:gn};ni.push(kn)}li&&ni.sort((xi,Pi)=>xi.sortKey-Pi.sortKey);let yi=null;We.projection.name==="globe"&&(this.globeExtVertexArray=new Ss,yi=We.projection);for(const xi of ni){const{geometry:Pi,index:Ni,sourceLayerIndex:Wi}=xi,rn=Re[Ni].feature;this.addFeature(xi,Pi,Ni,Be.availableImages,He,yi),Be.featureIndex.insert(rn,Pi,Ni,Wi,this.index)}}update(Re,Be,He,We){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(Re,Be,this.stateDependentLayers,He,We)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(Re){this.uploaded||(this.layoutVertexBuffer=Re.createVertexBuffer(this.layoutVertexArray,Wg.members),this.indexBuffer=Re.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=Re.createVertexBuffer(this.globeExtVertexArray,Dv.members))),this.programConfigurations.upload(Re),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(Re,Be,He,We,Ye,ni){for(const li of Be)for(const yi of li){const xi=yi.x,Pi=yi.y;if(xi<0||xi>=So||Pi<0||Pi>=So)continue;if(ni){const rn=ni.projectTilePoint(xi,Pi,Ye),un=ni.upVector(Ye,xi,Pi),gn=this.globeExtVertexArray;Io(gn,rn,un),Io(gn,rn,un),Io(gn,rn,un),Io(gn,rn,un)}const Ni=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,Re.sortKey),Wi=Ni.vertexLength;Zs(this.layoutVertexArray,xi,Pi,-1,-1),Zs(this.layoutVertexArray,xi,Pi,1,-1),Zs(this.layoutVertexArray,xi,Pi,1,1),Zs(this.layoutVertexArray,xi,Pi,-1,1),this.indexArray.emplaceBack(Wi,Wi+1,Wi+2),this.indexArray.emplaceBack(Wi,Wi+2,Wi+3),Ni.vertexLength+=4,Ni.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,Re,He,{},We,Ye)}}function pa(ze,Re){for(let Be=0;Be<ze.length;Be++)if(dc(Re,ze[Be]))return!0;for(let Be=0;Be<Re.length;Be++)if(dc(ze,Re[Be]))return!0;return!!wa(ze,Re)}function Ia(ze,Re,Be){return!!dc(ze,Re)||!!Tl(Re,ze,Be)}function Da(ze,Re){if(ze.length===1)return Ca(Re,ze[0]);for(let Be=0;Be<Re.length;Be++){const He=Re[Be];for(let We=0;We<He.length;We++)if(dc(ze,He[We]))return!0}for(let Be=0;Be<ze.length;Be++)if(Ca(Re,ze[Be]))return!0;for(let Be=0;Be<Re.length;Be++)if(wa(ze,Re[Be]))return!0;return!1}function Ka(ze,Re,Be){if(ze.length>1){if(wa(ze,Re))return!0;for(let He=0;He<Re.length;He++)if(Tl(Re[He],ze,Be))return!0}for(let He=0;He<ze.length;He++)if(Tl(ze[He],Re,Be))return!0;return!1}function wa(ze,Re){if(ze.length===0||Re.length===0)return!1;for(let Be=0;Be<ze.length-1;Be++){const He=ze[Be],We=ze[Be+1];for(let Ye=0;Ye<Re.length-1;Ye++)if(fl(He,We,Re[Ye],Re[Ye+1]))return!0}return!1}function fl(ze,Re,Be,He){return En(ze,Be,He)!==En(Re,Be,He)&&En(ze,Re,Be)!==En(ze,Re,He)}function Tl(ze,Re,Be){const He=Be*Be;if(Re.length===1)return ze.distSqr(Re[0])<He;for(let We=1;We<Re.length;We++)if(Ll(ze,Re[We-1],Re[We])<He)return!0;return!1}function Ll(ze,Re,Be){const He=Re.distSqr(Be);if(He===0)return ze.distSqr(Re);const We=((ze.x-Re.x)*(Be.x-Re.x)+(ze.y-Re.y)*(Be.y-Re.y))/He;return ze.distSqr(We<0?Re:We>1?Be:Be.sub(Re)._mult(We)._add(Re))}function Ca(ze,Re){let Be,He,We,Ye=!1;for(let ni=0;ni<ze.length;ni++){Be=ze[ni];for(let li=0,yi=Be.length-1;li<Be.length;yi=li++)He=Be[li],We=Be[yi],He.y>Re.y!=We.y>Re.y&&Re.x<(We.x-He.x)*(Re.y-He.y)/(We.y-He.y)+He.x&&(Ye=!Ye)}return Ye}function dc(ze,Re){let Be=!1;for(let He=0,We=ze.length-1;He<ze.length;We=He++){const Ye=ze[He],ni=ze[We];Ye.y>Re.y!=ni.y>Re.y&&Re.x<(ni.x-Ye.x)*(Re.y-Ye.y)/(ni.y-Ye.y)+Ye.x&&(Be=!Be)}return Be}function $p(ze,Re,Be,He,We){for(const ni of ze)if(Re<=ni.x&&Be<=ni.y&&He>=ni.x&&We>=ni.y)return!0;const Ye=[new Gi(Re,Be),new Gi(Re,We),new Gi(He,We),new Gi(He,Be)];if(ze.length>2){for(const ni of Ye)if(dc(ze,ni))return!0}for(let ni=0;ni<ze.length-1;ni++)if(Xl(ze[ni],ze[ni+1],Ye))return!0;return!1}function Xl(ze,Re,Be){const He=Be[0],We=Be[2];if(ze.x<He.x&&Re.x<He.x||ze.x>We.x&&Re.x>We.x||ze.y<He.y&&Re.y<He.y||ze.y>We.y&&Re.y>We.y)return!1;const Ye=En(ze,Re,Be[0]);return Ye!==En(ze,Re,Be[1])||Ye!==En(ze,Re,Be[2])||Ye!==En(ze,Re,Be[3])}function ic(ze,Re,Be){const He=Re.paint.get(ze).value;return He.kind==="constant"?He.value:Be.programConfigurations.get(Re.id).getMaxValue(ze)}function Kh(ze){return Math.sqrt(ze[0]*ze[0]+ze[1]*ze[1])}function Xn(ze,Re,Be,He,We){if(!Re[0]&&!Re[1])return ze;
vendor: 6,876 bytes, line 219
219const Ye=Gi.convert(Re)._mult(We);Be==="viewport"&&Ye._rotate(-He);const ni=[];for(let li=0;li<ze.length;li++)ni.push(ze[li].sub(Ye));return ni}function iu(ze,Re,Be,He){const We=Gi.convert(ze)._mult(He);return Re==="viewport"&&We._rotate(-Be),We}to(Eo,"CircleBucket",{omit:["layers"]});const e0=new qn({"circle-sort-key":new Pn(rs.layout_circle["circle-sort-key"])});var uy={paint:new qn({"circle-radius":new Pn(rs.paint_circle["circle-radius"]),"circle-color":new Pn(rs.paint_circle["circle-color"]),"circle-blur":new Pn(rs.paint_circle["circle-blur"]),"circle-opacity":new Pn(rs.paint_circle["circle-opacity"]),"circle-translate":new pn(rs.paint_circle["circle-translate"]),"circle-translate-anchor":new pn(rs.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new pn(rs.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new pn(rs.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Pn(rs.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Pn(rs.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Pn(rs.paint_circle["circle-stroke-opacity"])}),layout:e0};function Fp(ze,Re,Be,He,We,Ye,ni,li,yi){if(Ye&&ze.queryGeometry.isAboveHorizon)return!1;Ye&&(yi*=ze.pixelToTileUnitsFactor);const xi=ze.tileID.canonical,Pi=Be.projection.upVectorScale(xi,Be.center.lat,Be.worldSize).metersToTile;for(const Ni of Re)for(const Wi of Ni){const rn=Wi.add(li),un=We&&Be.elevation?Be.elevation.exaggeration()*We.getElevationAt(rn.x,rn.y,!0):0,gn=Be.projection.projectTilePoint(rn.x,rn.y,xi);if(un>0){const Wn=Be.projection.upVector(xi,rn.x,rn.y);gn.x+=Wn[0]*Pi*un,gn.y+=Wn[1]*Pi*un,gn.z+=Wn[2]*Pi*un}const kn=Ye?rn:kv(gn.x,gn.y,gn.z,He),jn=Ye?ze.tilespaceRays.map(Wn=>Iv(Wn,un)):ze.queryGeometry.screenGeometry,ar=Rp([],[gn.x,gn.y,gn.z,1],He);if(!ni&&Ye?yi*=ar[3]/Be.cameraToCenterDistance:ni&&!Ye&&(yi*=Be.cameraToCenterDistance/ar[3]),Ye){const Wn=Gn((Wi.y/So+xi.y)/(1<<xi.z));yi/=Be.projection.pixelsPerMeter(Wn,1)/Sr(1,Wn)}if(Ia(jn,kn,yi))return!0}return!1}function kv(ze,Re,Be,He){const We=Rp([],[ze,Re,Be,1],He);return new Gi(We[0]/We[3],We[1]/We[3])}const dy=xd(0,0,0),Pv=xd(0,0,1);function Iv(ze,Re){const Be=Xg();return dy[2]=Re,ze.intersectsPlane(dy,Pv,Be),new Gi(Be[0],Be[1])}class hy extends Eo{}function wh(ze,{width:Re,height:Be},He,We){if(We){if(We instanceof Uint8ClampedArray)We=new Uint8Array(We.buffer);else if(We.length!==Re*Be*He)throw new RangeError("mismatched image size")}else We=new Uint8Array(Re*Be*He);return ze.width=Re,ze.height=Be,ze.data=We,ze}function Dc(ze,Re,Be){const{width:He,height:We}=Re;He===ze.width&&We===ze.height||(Vf(ze,Re,{x:0,y:0},{x:0,y:0},{width:Math.min(ze.width,He),height:Math.min(ze.height,We)},Be),ze.width=He,ze.height=We,ze.data=Re.data)}function Vf(ze,Re,Be,He,We,Ye){if(We.width===0||We.height===0)return Re;if(We.width>ze.width||We.height>ze.height||Be.x>ze.width-We.width||Be.y>ze.height-We.height)throw new RangeError("out of range source coordinates for image copy");if(We.width>Re.width||We.height>Re.height||He.x>Re.width-We.width||He.y>Re.height-We.height)throw new RangeError("out of range destination coordinates for image copy");const ni=ze.data,li=Re.data;for(let yi=0;yi<We.height;yi++){const xi=((Be.y+yi)*ze.width+Be.x)*Ye,Pi=((He.y+yi)*Re.width+He.x)*Ye;for(let Ni=0;Ni<We.width*Ye;Ni++)li[Pi+Ni]=ni[xi+Ni]}return Re}to(hy,"HeatmapBucket",{omit:["layers"]});class Qd{constructor(Re,Be){wh(this,Re,1,Be)}resize(Re){Dc(this,new Qd(Re),1)}clone(){return new Qd({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(Re,Be,He,We,Ye){Vf(Re,Be,He,We,Ye,1)}}class fa{constructor(Re,Be){wh(this,Re,4,Be)}resize(Re){Dc(this,new fa(Re),4)}replace(Re,Be){Be?this.data.set(Re):this.data=Re instanceof Uint8ClampedArray?new Uint8Array(Re.buffer):Re}clone(){return new fa({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(Re,Be,He,We,Ye){Vf(Re,Be,He,We,Ye,4)}}to(Qd,"AlphaImage"),to(fa,"RGBAImage");var t0={paint:new qn({"heatmap-radius":new Pn(rs.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Pn(rs.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new pn(rs.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Jn(rs.paint_heatmap["heatmap-color"]),"heatmap-opacity":new pn(rs.paint_heatmap["heatmap-opacity"])})};function Td(ze){const Re={},Be=ze.resolution||256,He=ze.clips?ze.clips.length:1,We=ze.image||new fa({width:Be,height:He}),Ye=(ni,li,yi)=>{Re[ze.evaluationKey]=yi;const xi=ze.expression.evaluate(Re);We.data[ni+li+0]=Math.floor(255*xi.r/xi.a),We.data[ni+li+1]=Math.floor(255*xi.g/xi.a),We.data[ni+li+2]=Math.floor(255*xi.b/xi.a),We.data[ni+li+3]=Math.floor(255*xi.a)};if(ze.clips)for(let ni=0,li=0;ni<He;++ni,li+=4*Be)for(let yi=0,xi=0;yi<Be;yi++,xi+=4){const Pi=yi/(Be-1),{start:Ni,end:Wi}=ze.clips[ni];Ye(li,xi,Ni*(1-Pi)+Wi*Pi)}else for(let ni=0,li=0;ni<Be;ni++,li+=4)Ye(0,li,ni/(Be-1));return We}var Hf={paint:new qn({"hillshade-illumination-direction":new pn(rs.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new pn(rs.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new pn(rs.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new pn(rs.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new pn(rs.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new pn(rs.paint_hillshade["hillshade-accent-color"])})};const py=Pr([{name:"a_pos",components:2,type:"Int16"}],4),{members:fy}=py;var my={exports:{}};function i0(ze,Re,Be){Be=Be||2;var He,We,Ye,ni,li,yi,xi,Pi=Re&&Re.length,Ni=Pi?Re[0]*Be:ze.length,Wi=n0(ze,0,Ni,Be,!0),rn=[];if(!Wi||Wi.next===Wi.prev)return rn;if(Pi&&(Wi=function(gn,kn,jn,ar){var Wn,sr,fr,pr=[];for(Wn=0,sr=kn.length;Wn<sr;Wn++)(fr=n0(gn,kn[Wn]*ar,Wn<sr-1?kn[Wn+1]*ar:gn.length,ar,!1))===fr.next&&(fr.steiner=!0),pr.push(Rv(fr));for(pr.sort(ig),Wn=0;Wn<pr.length;Wn++)jn=Sh(pr[Wn],jn);return jn}(ze,Re,Wi,Be)),ze.length>80*Be){He=Ye=ze[0],We=ni=ze[1];for(var un=Be;un<Ni;un+=Be)(li=ze[un])<He&&(He=li),(yi=ze[un+1])<We&&(We=yi),li>Ye&&(Ye=li),yi>ni&&(ni=yi);xi=(xi=Math.max(Ye-He,ni-We))!==0?32767/xi:0}return yf(Wi,rn,Be,He,We,xi,0),rn}function n0(ze,Re,Be,He,We){var Ye,ni;if(We===Zl(ze,Re,Be,He)>0)for(Ye=Re;Ye<Be;Ye+=He)ni=sl(Ye,ze[Ye],ze[Ye+1],ni);else for(Ye=Be-He;Ye>=Re;Ye-=He)ni=sl(Ye,ze[Ye],ze[Ye+1],ni);return ni&&Us(ni,ni.next)&&(hc(ni),ni=ni.next),ni}function mf(ze,Re){if(!ze)return ze;Re||(Re=ze);var Be,He=ze;do if(Be=!1,He.steiner||!Us(He,He.next)&&es(He.prev,He,He.next)!==0)He=He.next;else{if(hc(He),(He=Re=He.prev)===He.next)break;Be=!0}while(Be||He!==Re);return Re}function yf(ze,Re,Be,He,We,Ye,ni){if(ze){!ni&&Ye&&function(Pi,Ni,Wi,rn){var un=Pi;do un.z===0&&(un.z=s0(un.x,un.y,Ni,Wi,rn)),un.prevZ=un.prev,un.nextZ=un.next,un=un.next;while(un!==Pi);un.prevZ.nextZ=null,un.prevZ=null,function(gn){var kn,jn,ar,Wn,sr,fr,pr,Zr,Gr=1;
vendor: 5,056 bytes, line 219
219do{for(jn=gn,gn=null,sr=null,fr=0;jn;){for(fr++,ar=jn,pr=0,kn=0;kn<Gr&&(pr++,ar=ar.nextZ);kn++);for(Zr=Gr;pr>0||Zr>0&&ar;)pr!==0&&(Zr===0||!ar||jn.z<=ar.z)?(Wn=jn,jn=jn.nextZ,pr--):(Wn=ar,ar=ar.nextZ,Zr--),sr?sr.nextZ=Wn:gn=Wn,Wn.prevZ=sr,sr=Wn;jn=ar}sr.nextZ=null,Gr*=2}while(fr>1)}(un)}(ze,He,We,Ye);for(var li,yi,xi=ze;ze.prev!==ze.next;)if(li=ze.prev,yi=ze.next,Ye?$1(ze,He,We,Ye):bm(ze))Re.push(li.i/Be|0),Re.push(ze.i/Be|0),Re.push(yi.i/Be|0),hc(ze),ze=yi.next,xi=yi.next;else if((ze=yi)===xi){ni?ni===1?yf(ze=vf(mf(ze),Re,Be),Re,Be,He,We,Ye,2):ni===2&&Uf(ze,Re,Be,He,We,Ye):yf(mf(ze),Re,Be,He,We,Ye,1);break}}}function bm(ze){var Re=ze.prev,Be=ze,He=ze.next;if(es(Re,Be,He)>=0)return!1;for(var We=Re.x,Ye=Be.x,ni=He.x,li=Re.y,yi=Be.y,xi=He.y,Pi=We<Ye?We<ni?We:ni:Ye<ni?Ye:ni,Ni=li<yi?li<xi?li:xi:yi<xi?yi:xi,Wi=We>Ye?We>ni?We:ni:Ye>ni?Ye:ni,rn=li>yi?li>xi?li:xi:yi>xi?yi:xi,un=He.next;un!==Re;){if(un.x>=Pi&&un.x<=Wi&&un.y>=Ni&&un.y<=rn&&Ur(We,li,Ye,yi,ni,xi,un.x,un.y)&&es(un.prev,un,un.next)>=0)return!1;un=un.next}return!0}function $1(ze,Re,Be,He){var We=ze.prev,Ye=ze,ni=ze.next;if(es(We,Ye,ni)>=0)return!1;for(var li=We.x,yi=Ye.x,xi=ni.x,Pi=We.y,Ni=Ye.y,Wi=ni.y,rn=li<yi?li<xi?li:xi:yi<xi?yi:xi,un=Pi<Ni?Pi<Wi?Pi:Wi:Ni<Wi?Ni:Wi,gn=li>yi?li>xi?li:xi:yi>xi?yi:xi,kn=Pi>Ni?Pi>Wi?Pi:Wi:Ni>Wi?Ni:Wi,jn=s0(rn,un,Re,Be,He),ar=s0(gn,kn,Re,Be,He),Wn=ze.prevZ,sr=ze.nextZ;Wn&&Wn.z>=jn&&sr&&sr.z<=ar;){if(Wn.x>=rn&&Wn.x<=gn&&Wn.y>=un&&Wn.y<=kn&&Wn!==We&&Wn!==ni&&Ur(li,Pi,yi,Ni,xi,Wi,Wn.x,Wn.y)&&es(Wn.prev,Wn,Wn.next)>=0||(Wn=Wn.prevZ,sr.x>=rn&&sr.x<=gn&&sr.y>=un&&sr.y<=kn&&sr!==We&&sr!==ni&&Ur(li,Pi,yi,Ni,xi,Wi,sr.x,sr.y)&&es(sr.prev,sr,sr.next)>=0))return!1;sr=sr.nextZ}for(;Wn&&Wn.z>=jn;){if(Wn.x>=rn&&Wn.x<=gn&&Wn.y>=un&&Wn.y<=kn&&Wn!==We&&Wn!==ni&&Ur(li,Pi,yi,Ni,xi,Wi,Wn.x,Wn.y)&&es(Wn.prev,Wn,Wn.next)>=0)return!1;Wn=Wn.prevZ}for(;sr&&sr.z<=ar;){if(sr.x>=rn&&sr.x<=gn&&sr.y>=un&&sr.y<=kn&&sr!==We&&sr!==ni&&Ur(li,Pi,yi,Ni,xi,Wi,sr.x,sr.y)&&es(sr.prev,sr,sr.next)>=0)return!1;sr=sr.nextZ}return!0}function vf(ze,Re,Be){var He=ze;do{var We=He.prev,Ye=He.next.next;!Us(We,Ye)&&io(We,He,He.next,Ye)&&na(We,Ye)&&na(Ye,We)&&(Re.push(We.i/Be|0),Re.push(He.i/Be|0),Re.push(Ye.i/Be|0),hc(He),hc(He.next),He=ze=Ye),He=He.next}while(He!==ze);return mf(He)}function Uf(ze,Re,Be,He,We,Ye){var ni=ze;do{for(var li=ni.next.next;li!==ni.prev;){if(ni.i!==li.i&&Ts(ni,li)){var yi=Xo(ni,li);return ni=mf(ni,ni.next),yi=mf(yi,yi.next),yf(ni,Re,Be,He,We,Ye,0),void yf(yi,Re,Be,He,We,Ye,0)}li=li.next}ni=ni.next}while(ni!==ze)}function ig(ze,Re){return ze.x-Re.x}function Sh(ze,Re){var Be=function(We,Ye){var ni,li=Ye,yi=We.x,xi=We.y,Pi=-1/0;do{if(xi<=li.y&&xi>=li.next.y&&li.next.y!==li.y){var Ni=li.x+(xi-li.y)*(li.next.x-li.x)/(li.next.y-li.y);if(Ni<=yi&&Ni>Pi&&(Pi=Ni,ni=li.x<li.next.x?li:li.next,Ni===yi))return ni}li=li.next}while(li!==Ye);if(!ni)return null;var Wi,rn=ni,un=ni.x,gn=ni.y,kn=1/0;li=ni;do yi>=li.x&&li.x>=un&&yi!==li.x&&Ur(xi<gn?yi:Pi,xi,un,gn,xi<gn?Pi:yi,xi,li.x,li.y)&&(Wi=Math.abs(xi-li.y)/(yi-li.x),na(li,We)&&(Wi<kn||Wi===kn&&(li.x>ni.x||li.x===ni.x&&r0(ni,li)))&&(ni=li,kn=Wi)),li=li.next;while(li!==rn);return ni}(ze,Re);if(!Be)return Re;var He=Xo(Be,ze);return mf(He,He.next),mf(Be,Be.next)}function r0(ze,Re){return es(ze.prev,ze,Re.prev)<0&&es(Re.next,ze,ze.next)<0}function s0(ze,Re,Be,He,We){return(ze=1431655765&((ze=858993459&((ze=252645135&((ze=16711935&((ze=(ze-Be)*We|0)|ze<<8))|ze<<4))|ze<<2))|ze<<1))|(Re=1431655765&((Re=858993459&((Re=252645135&((Re=16711935&((Re=(Re-He)*We|0)|Re<<8))|Re<<4))|Re<<2))|Re<<1))<<1}function Rv(ze){var Re=ze,Be=ze;do(Re.x<Be.x||Re.x===Be.x&&Re.y<Be.y)&&(Be=Re),Re=Re.next;while(Re!==ze);return Be}function Ur(ze,Re,Be,He,We,Ye,ni,li){return(We-ni)*(Re-li)>=(ze-ni)*(Ye-li)&&(ze-ni)*(He-li)>=(Be-ni)*(Re-li)&&(Be-ni)*(Ye-li)>=(We-ni)*(He-li)}function Ts(ze,Re){return ze.next.i!==Re.i&&ze.prev.i!==Re.i&&!function(Be,He){var We=Be;do{if(We.i!==Be.i&&We.next.i!==Be.i&&We.i!==He.i&&We.next.i!==He.i&&io(We,We.next,Be,He))return!0;We=We.next}while(We!==Be);return!1}(ze,Re)&&(na(ze,Re)&&na(Re,ze)&&function(Be,He){var We=Be,Ye=!1,ni=(Be.x+He.x)/2,li=(Be.y+He.y)/2;do We.y>li!=We.next.y>li&&We.next.y!==We.y&&ni<(We.next.x-We.x)*(li-We.y)/(We.next.y-We.y)+We.x&&(Ye=!Ye),We=We.next;while(We!==Be);return Ye}(ze,Re)&&(es(ze.prev,ze,Re.prev)||es(ze,Re.prev,Re))||Us(ze,Re)&&es(ze.prev,ze,ze.next)>0&&es(Re.prev,Re,Re.next)>0)}function es(ze,Re,Be){return(Re.y-ze.y)*(Be.x-Re.x)-(Re.x-ze.x)*(Be.y-Re.y)}function Us(ze,Re){return ze.x===Re.x&&ze.y===Re.y}function io(ze,Re,Be,He){var We=bo(es(ze,Re,Be)),Ye=bo(es(ze,Re,He)),ni=bo(es(Be,He,ze)),li=bo(es(Be,He,Re));return We!==Ye&&ni!==li||!(We!==0||!po(ze,Be,Re))||!(Ye!==0||!po(ze,He,Re))||!(ni!==0||!po(Be,ze,He))||!(li!==0||!po(Be,Re,He))}function po(ze,Re,Be){return Re.x<=Math.max(ze.x,Be.x)&&Re.x>=Math.min(ze.x,Be.x)&&Re.y<=Math.max(ze.y,Be.y)&&Re.y>=Math.min(ze.y,Be.y)}function bo(ze){return ze>0?1:ze<0?-1:0}function na(ze,Re){return es(ze.prev,ze,ze.next)<0?es(ze,Re,ze.next)>=0&&es(ze,ze.prev,Re)>=0:es(ze,Re,ze.prev)<0||es(ze,ze.next,Re)<0}
vendor: 8,463 bytes, line 219
219function Xo(ze,Re){var Be=new Ja(ze.i,ze.x,ze.y),He=new Ja(Re.i,Re.x,Re.y),We=ze.next,Ye=Re.prev;return ze.next=Re,Re.prev=ze,Be.next=We,We.prev=Be,He.next=Be,Be.prev=He,Ye.next=He,He.prev=Ye,He}function sl(ze,Re,Be,He){var We=new Ja(ze,Re,Be);return He?(We.next=He.next,We.prev=He,He.next.prev=We,He.next=We):(We.prev=We,We.next=We),We}function hc(ze){ze.next.prev=ze.prev,ze.prev.next=ze.next,ze.prevZ&&(ze.prevZ.nextZ=ze.nextZ),ze.nextZ&&(ze.nextZ.prevZ=ze.prevZ)}function Ja(ze,Re,Be){this.i=ze,this.x=Re,this.y=Be,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Zl(ze,Re,Be,He){for(var We=0,Ye=Re,ni=Be-He;Ye<Be;Ye+=He)We+=(ze[ni]-ze[Ye])*(ze[Ye+1]+ze[ni+1]),ni=Ye;return We}my.exports=i0,my.exports.default=i0,i0.deviation=function(ze,Re,Be,He){var We=Re&&Re.length,Ye=Math.abs(Zl(ze,0,We?Re[0]*Be:ze.length,Be));if(We)for(var ni=0,li=Re.length;ni<li;ni++)Ye-=Math.abs(Zl(ze,Re[ni]*Be,ni<li-1?Re[ni+1]*Be:ze.length,Be));var yi=0;for(ni=0;ni<He.length;ni+=3){var xi=He[ni]*Be,Pi=He[ni+1]*Be,Ni=He[ni+2]*Be;yi+=Math.abs((ze[xi]-ze[Ni])*(ze[Pi+1]-ze[xi+1])-(ze[xi]-ze[Pi])*(ze[Ni+1]-ze[xi+1]))}return Ye===0&&yi===0?0:Math.abs((yi-Ye)/Ye)},i0.flatten=function(ze){for(var Re=ze[0][0].length,Be={vertices:[],holes:[],dimensions:Re},He=0,We=0;We<ze.length;We++){for(var Ye=0;Ye<ze[We].length;Ye++)for(var ni=0;ni<Re;ni++)Be.vertices.push(ze[We][Ye][ni]);We>0&&Be.holes.push(He+=ze[We-1].length)}return Be};var nu=Li(my.exports);function Jh(ze,Re,Be,He,We){Qh(ze,Re,Be||0,He||ze.length-1,We||Ed)}function Qh(ze,Re,Be,He,We){for(;He>Be;){if(He-Be>600){var Ye=He-Be+1,ni=Re-Be+1,li=Math.log(Ye),yi=.5*Math.exp(2*li/3),xi=.5*Math.sqrt(li*yi*(Ye-yi)/Ye)*(ni-Ye/2<0?-1:1);Qh(ze,Re,Math.max(Be,Math.floor(Re-ni*yi/Ye+xi)),Math.min(He,Math.floor(Re+(Ye-ni)*yi/Ye+xi)),We)}var Pi=ze[Re],Ni=Be,Wi=He;for(pc(ze,Be,Re),We(ze[He],Pi)>0&&pc(ze,Be,He);Ni<Wi;){for(pc(ze,Ni,Wi),Ni++,Wi--;We(ze[Ni],Pi)<0;)Ni++;for(;We(ze[Wi],Pi)>0;)Wi--}We(ze[Be],Pi)===0?pc(ze,Be,Wi):pc(ze,++Wi,He),Wi<=Re&&(Be=Wi+1),Re<=Wi&&(He=Wi-1)}}function pc(ze,Re,Be){var He=ze[Re];ze[Re]=ze[Be],ze[Be]=He}function Ed(ze,Re){return ze<Re?-1:ze>Re?1:0}function Gf(ze,Re){const Be=ze.length;if(Be<=1)return[ze];const He=[];let We,Ye;for(let ni=0;ni<Be;ni++){const li=Fn(ze[ni]);li!==0&&(ze[ni].area=Math.abs(li),Ye===void 0&&(Ye=li<0),Ye===li<0?(We&&He.push(We),We=[ze[ni]]):We.push(ze[ni]))}if(We&&He.push(We),Re>1)for(let ni=0;ni<He.length;ni++)He[ni].length<=Re||(Jh(He[ni],Re,1,He[ni].length-1,F1),He[ni]=He[ni].slice(0,Re));return He}function F1(ze,Re){return Re.area-ze.area}function z1(ze,Re,Be){const He=Be.patternDependencies;let We=!1;for(const Ye of Re){const ni=Ye.paint.get(`${ze}-pattern`);ni.isConstant()||(We=!0);const li=ni.constantOr(null);li&&(We=!0,He[li]=!0)}return We}function B1(ze,Re,Be,He,We){const Ye=We.patternDependencies;for(const ni of Re){const li=ni.paint.get(`${ze}-pattern`).value;if(li.kind!=="constant"){let yi=li.evaluate({zoom:He},Be,{},We.availableImages);yi=yi&&yi.name?yi.name:yi,Ye[yi]=!0,Be.patterns[ni.id]=yi}}return Be}class Ov{constructor(Re){this.zoom=Re.zoom,this.overscaling=Re.overscaling,this.layers=Re.layers,this.layerIds=this.layers.map(Be=>Be.id),this.index=Re.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ds,this.indexArray=new lo,this.indexArray2=new Wl,this.programConfigurations=new Ip(Re.layers,Re.zoom),this.segments=new Il,this.segments2=new Il,this.stateDependentLayerIds=this.layers.filter(Be=>Be.isStateDependent()).map(Be=>Be.id),this.projection=Re.projection}populate(Re,Be,He,We){this.hasPattern=z1("fill",this.layers,Be);const Ye=this.layers[0].layout.get("fill-sort-key"),ni=[];for(const{feature:li,id:yi,index:xi,sourceLayerIndex:Pi}of Re){const Ni=this.layers[0]._featureFilter.needGeometry,Wi=Cs(li,Ni);if(!this.layers[0]._featureFilter.filter(new Fi(this.zoom),Wi,He))continue;const rn=Ye?Ye.evaluate(Wi,{},He,Be.availableImages):void 0,un={id:yi,properties:li.properties,type:li.type,sourceLayerIndex:Pi,index:xi,geometry:Ni?Wi.geometry:oo(li,He,We),patterns:{},sortKey:rn};ni.push(un)}Ye&&ni.sort((li,yi)=>li.sortKey-yi.sortKey);for(const li of ni){const{geometry:yi,index:xi,sourceLayerIndex:Pi}=li;if(this.hasPattern){const Ni=B1("fill",this.layers,li,this.zoom,Be);this.patternFeatures.push(Ni)}else this.addFeature(li,yi,xi,He,{},Be.availableImages);Be.featureIndex.insert(Re[xi].feature,yi,xi,Pi,this.index)}}update(Re,Be,He,We){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(Re,Be,this.stateDependentLayers,He,We)}addFeatures(Re,Be,He,We,Ye){for(const ni of this.patternFeatures)this.addFeature(ni,ni.geometry,ni.index,Be,He,We)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(Re){this.uploaded||(this.layoutVertexBuffer=Re.createVertexBuffer(this.layoutVertexArray,fy),this.indexBuffer=Re.createIndexBuffer(this.indexArray),this.indexBuffer2=Re.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(Re),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(Re,Be,He,We,Ye,ni=[]){for(const li of Gf(Be,500)){let yi=0;for(const un of li)yi+=un.length;const xi=this.segments.prepareSegment(yi,this.layoutVertexArray,this.indexArray),Pi=xi.vertexLength,Ni=[],Wi=[];for(const un of li){if(un.length===0)continue;un!==li[0]&&Wi.push(Ni.length/2);const gn=this.segments2.prepareSegment(un.length,this.layoutVertexArray,this.indexArray2),kn=gn.vertexLength;this.layoutVertexArray.emplaceBack(un[0].x,un[0].y),this.indexArray2.emplaceBack(kn+un.length-1,kn),Ni.push(un[0].x),Ni.push(un[0].y);for(let jn=1;jn<un.length;jn++)this.layoutVertexArray.emplaceBack(un[jn].x,un[jn].y),this.indexArray2.emplaceBack(kn+jn-1,kn+jn),Ni.push(un[jn].x),Ni.push(un[jn].y);gn.vertexLength+=un.length,gn.primitiveLength+=un.length}const rn=nu(Ni,Wi);for(let un=0;un<rn.length;un+=3)this.indexArray.emplaceBack(Pi+rn[un],Pi+rn[un+1],Pi+rn[un+2]);xi.vertexLength+=yi,xi.primitiveLength+=rn.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,Re,He,Ye,ni,We)}}to(Ov,"FillBucket",{omit:["layers","patternFeatures"]});const Wk=new qn({"fill-sort-key":new Pn(rs.layout_fill["fill-sort-key"])});var qk={paint:new qn({"fill-antialias":new pn(rs.paint_fill["fill-antialias"]),"fill-opacity":new Pn(rs.paint_fill["fill-opacity"]),"fill-color":new Pn(rs.paint_fill["fill-color"]),"fill-outline-color":new Pn(rs.paint_fill["fill-outline-color"]),"fill-translate":new pn(rs.paint_fill["fill-translate"]),"fill-translate-anchor":new pn(rs.paint_fill["fill-translate-anchor"]),"fill-pattern":new Pn(rs.paint_fill["fill-pattern"])}),layout:Wk};const Xk=Pr([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),Zk=Pr([{name:"a_centroid_pos",components:2,type:"Uint16"}]),Yk=Pr([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]),{members:Lv}=Xk;var $v={},fS=Je,N1=xm;function xm(ze,Re,Be,He,We){this.properties={},this.extent=Be,this.type=0,this._pbf=ze,this._geometry=-1,this._keys=He,this._values=We,ze.readFields(mS,this,Re)}function mS(ze,Re,Be){ze==1?Re.id=Be.readVarint():ze==2?function(He,We){for(var Ye=He.readVarint()+He.pos;He.pos<Ye;){var ni=We._keys[He.readVarint()],li=We._values[He.readVarint()];We.properties[ni]=li}}(Be,Re):ze==3?Re.type=Be.readVarint():ze==4&&(Re._geometry=Be.pos)}function gS(ze){for(var Re,Be,He=0,We=0,Ye=ze.length,ni=Ye-1;We<Ye;ni=We++)He+=((Be=ze[ni]).x-(Re=ze[We]).x)*(Re.y+Be.y);return He}xm.types=["Unknown","Point","LineString","Polygon"],xm.prototype.loadGeometry=function(){var ze=this._pbf;ze.pos=this._geometry;for(var Re,Be=ze.readVarint()+ze.pos,He=1,We=0,Ye=0,ni=0,li=[];ze.pos<Be;){if(We<=0){var yi=ze.readVarint();He=7&yi,We=yi>>3}if(We--,He===1||He===2)Ye+=ze.readSVarint(),ni+=ze.readSVarint(),He===1&&(Re&&li.push(Re),Re=[]),Re.push(new fS(Ye,ni));else{if(He!==7)throw new Error("unknown command "+He);Re&&Re.push(Re[0].clone())}}return Re&&li.push(Re),li},xm.prototype.bbox=function(){var ze=this._pbf;ze.pos=this._geometry;for(var Re=ze.readVarint()+ze.pos,Be=1,He=0,We=0,Ye=0,ni=1/0,li=-1/0,yi=1/0,xi=-1/0;ze.pos<Re;){if(He<=0){var Pi=ze.readVarint();Be=7&Pi,He=Pi>>3}if(He--,Be===1||Be===2)(We+=ze.readSVarint())<ni&&(ni=We),We>
219li&&(li=We),(Ye+=ze.readSVarint())<yi&&(yi=Ye),Ye>xi&&(xi=Ye);else if(Be!==7)throw new Error("unknown command "+Be)}return[ni,yi,li,xi]},xm.prototype.toGeoJSON=function(ze,Re,Be){var He,We,Ye=this.extent*Math.pow(2,Be),ni=this.extent*ze,li=this.extent*Re,yi=this.loadGeometry(),xi=xm.types[this.type];function Pi(rn){for(var un=0;un<rn.length;un++){var gn=rn[un];rn[un]=[360*(gn.x+ni)/Ye-180,360/Math.PI*Math.atan(Math.exp((180-360*(gn.y+li)/Ye)*Math.PI/180))-90]}}switch(this.type){case 1:var Ni=[];for(He=0;He<yi.length;He++)Ni[He]=yi[He][0];Pi(yi=Ni);break;case 2:for(He=0;He<yi.length;He++)Pi(yi[He]);break;case 3:for(yi=function(rn){var un=rn.length;if(un<=1)return[rn];for(var gn,kn,jn=[],ar=0;ar<un;ar++){var Wn=gS(rn[ar]);Wn!==0&&(kn===void 0&&(kn=Wn<0),kn===Wn<0?(gn&&jn.push(gn),gn=[rn[ar]]):gn.push(rn[ar]))}return gn&&jn.push(gn),jn}(yi),He=0;He<yi.length;He++)for(We=0;We<yi[He].length;We++)Pi(yi[He][We])}yi.length===1?yi=yi[0]:xi="Multi"+xi;var Wi={type:"Feature",geometry:{type:xi,coordinates:yi},properties:this.properties};return"id"in this&&(Wi.id=this.id),Wi};var yS=N1,V1=vS;function vS(ze,Re){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=ze,this._keys=[],this._values=[],this._features=[],ze.readFields(Kk,this,Re),this.length=this._features.length}function Kk(ze,Re,Be){ze===15?Re.version=Be.readVarint():ze===1?Re.name=Be.readString():ze===5?Re.extent=Be.readVarint():ze===2?Re._features.push(Be.pos):ze===3?Re._keys.push(Be.readString()):ze===4&&Re._values.push(function(He){for(var We=null,Ye=He.readVarint()+He.pos;He.pos<Ye;){var ni=He.readVarint()>>3;We=ni===1?He.readString():ni===2?He.readFloat():ni===3?He.readDouble():ni===4?He.readVarint64():ni===5?He.readVarint():ni===6?He.readSVarint():ni===7?He.readBoolean():null}return We}(Be))}vS.prototype.feature=function(ze){if(ze<0||ze>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[ze];var Re=this._pbf.readVarint()+this._pbf.pos;return new yS(this._pbf,Re,this.extent,this._keys,this._values)};var Jk=V1;function Fv(ze,Re,Be){if(ze===3){var He=new Jk(Be,Be.readVarint()+Be.pos);He.length&&(Re[He.name]=He)}}var o0=$v.VectorTile=function(ze,Re){this.layers=ze.readFields(Fv,{},Re)},zv=$v.VectorTileFeature=N1;function Bv(ze,Re,Be,He){const We=[],Ye=He===0?(ni,li,yi,xi,Pi,Ni)=>{ni.push(new Gi(Ni,yi+(Ni-li)/(xi-li)*(Pi-yi)))}:(ni,li,yi,xi,Pi,Ni)=>{ni.push(new Gi(li+(Ni-yi)/(Pi-yi)*(xi-li),Ni))};for(const ni of ze){const li=[];for(const yi of ni){if(yi.length<=2)continue;const xi=[];for(let Wi=0;Wi<yi.length-1;Wi++){const rn=yi[Wi].x,un=yi[Wi].y,gn=yi[Wi+1].x,kn=yi[Wi+1].y,jn=He===0?rn:un,ar=He===0?gn:kn;jn<Re?ar>Re&&Ye(xi,rn,un,gn,kn,Re):jn>Be?ar<Be&&Ye(xi,rn,un,gn,kn,Be):xi.push(yi[Wi]),ar<Re&&jn>=Re&&Ye(xi,rn,un,gn,kn,Re),ar>Be&&jn<=Be&&Ye(xi,rn,un,gn,kn,Be)}let Pi=yi[yi.length-1];const Ni=He===0?Pi.x:Pi.y;Ni>=Re&&Ni<=Be&&xi.push(Pi),xi.length&&(Pi=xi[xi.length-1],xi[0].x===Pi.x&&xi[0].y===Pi.y||xi.push(xi[0]),li.push(xi))}li.length&&We.push(li)}return We}$v.VectorTileLayer=V1;const H1=zv.types,_S=Math.pow(2,13);function gy(ze,Re,Be,He,We,Ye,ni,li){ze.emplaceBack((Re<<1)+ni,(Be<<1)+Ye,(Math.floor(He*_S)<<1)+We,Math.round(li))}function yy(ze,Re,Be){ze.emplaceBack(Re.x,Re.y,Re.z,Be[0]*16384,Be[1]*16384,Be[2]*16384)}class bS{constructor(){this.acc=new Gi(0,0),this.polyCount=[]}startRing(Re){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new Gi(Re.x,Re.y),this.max=new Gi(Re.x,Re.y))}append(Re,Be){this.currentPolyCount.edges++,this.acc._add(Re);const He=this.min,We=this.max;Re.x<He.x?He.x=Re.x:Re.x>We.x&&(We.x=Re.x),Re.y<He.y?He.y=Re.y:Re.y>We.y&&(We.y=Re.y),((Re.x===0||Re.x===So)&&Re.x===Be.x)!=((Re.y===0||Re.y===So)&&Re.y===Be.y)&&this.processBorderOverlap(Re,Be),Be.x<0!=Re.x<0&&this.addBorderIntersection(0,qo(Be.y,Re.y,(0-Be.x)/(Re.x-Be.x))),Be.x>So!=Re.x>So&&this.addBorderIntersection(1,qo(Be.y,Re.y,(So-Be.x)/(Re.x-Be.x))),Be.y<0!=Re.y<0&&this.addBorderIntersection(2,qo(Be.x,Re.x,(0-Be.y)/(Re.y-Be.y))),Be.y>So!=Re.y>So&&this.addBorderIntersection(3,qo(Be.x,Re.x,(So-Be.y)/(Re.y-Be.y)))}addBorderIntersection(Re,Be){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const He=this.borders[Re];Be<He[0]&&(He[0]=Be),Be>He[1]&&(He[1]=Be)}processBorderOverlap(Re,Be){if(Re.x===Be.x){if(Re.y===Be.y)return;const He=Re.x===0?0:1;this.addBorderIntersection(He,Be.y),this.addBorderIntersection(He,Re.y)}else{const He=Re.y===0?2:3;this.addBorderIntersection(He,Be.x),this.addBorderIntersection(He,Re.x)}}centroid(){const Re=this.polyCount.reduce((Be,He)=>Be+He.edges,0);return Re!==0?this.acc.div(Re)._round():new Gi(0,0)}span(){return new Gi(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce((Re,Be)=>Re+ +(Be[0]!==Number.MAX_VALUE),0)}}class vy{constructor(Re){this.zoom=Re.zoom,this.canonical=Re.canonical,this.overscaling=Re.overscaling,this.layers=Re.layers,this.layerIds=this.layers.map(Be=>Be.id),this.index=Re.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=Re.projection,this.layoutVertexArray=new cs,this.centroidVertexArray=new Uu,this.indexArray=new lo,this.programConfigurations=new Ip(Re.layers,Re.zoom),this.segments=new Il,this.stateDependentLayerIds=this.layers.filter(
219Be=>Be.isStateDependent()).map(Be=>Be.id),this.enableTerrain=Re.enableTerrain}populate(Re,Be,He,We){this.features=[],this.hasPattern=z1("fill-extrusion",this.layers,Be),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=function(Ye){const ni=Math.exp(Math.PI*(1-Ye.y/(1<<Ye.z)*2));return 80150034*ni/(ni*ni+1)/So/(1<<Ye.z)}(He),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter;for(const{feature:Ye,id:ni,index:li,sourceLayerIndex:yi}of Re){const xi=this.layers[0]._featureFilter.needGeometry,Pi=Cs(Ye,xi);if(!this.layers[0]._featureFilter.filter(new Fi(this.zoom),Pi,He))continue;const Ni={id:ni,sourceLayerIndex:yi,index:li,geometry:xi?Pi.geometry:oo(Ye,He,We),properties:Ye.properties,type:Ye.type,patterns:{}},Wi=this.layoutVertexArray.length;this.hasPattern?this.features.push(B1("fill-extrusion",this.layers,Ni,this.zoom,Be)):this.addFeature(Ni,Ni.geometry,li,He,{},Be.availableImages,We),Be.featureIndex.insert(Ye,Ni.geometry,li,yi,this.index,Wi)}this.sortBorders()}addFeatures(Re,Be,He,We,Ye){for(const ni of this.features){const{geometry:li}=ni;this.addFeature(ni,li,ni.index,Be,He,We,Ye)}this.sortBorders()}update(Re,Be,He,We){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(Re,Be,this.stateDependentLayers,He,We)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(Re){this.uploaded||(this.layoutVertexBuffer=Re.createVertexBuffer(this.layoutVertexArray,Lv),this.indexBuffer=Re.createIndexBuffer(this.indexArray),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=Re.createVertexBuffer(this.layoutVertexExtArray,Yk.members,!0))),this.programConfigurations.upload(Re),this.uploaded=!0}uploadCentroid(Re){this.centroidVertexArray.length!==0&&(this.centroidVertexBuffer?this.needsCentroidUpdate&&this.centroidVertexBuffer.updateData(this.centroidVertexArray):this.centroidVertexBuffer=Re.createVertexBuffer(this.centroidVertexArray,Zk.members,!0),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(Re,Be,He,We,Ye,ni,li){const yi=[new Gi(0,0),new Gi(So,So)],xi=li.projection,Pi=xi.name==="globe",Ni=this.enableTerrain&&!Pi?new bS:null,Wi=H1[Re.type]==="Polygon";Pi&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new Ss);const rn=Gf(Be,500);for(let jn=rn.length-1;jn>=0;jn--){const ar=rn[jn];(ar.length===0||(un=ar[0]).every(Wn=>Wn.x<=0)||un.every(Wn=>Wn.x>=So)||un.every(Wn=>Wn.y<=0)||un.every(Wn=>Wn.y>=So))&&rn.splice(jn,1)}var un;let gn;if(Pi)gn=AS(rn,yi,We);else{gn=[];for(const jn of rn)gn.push({polygon:jn,bounds:yi})}const kn=Wi?this.edgeRadius:0;for(const{polygon:jn,bounds:ar}of gn){let Wn=0,sr=0;for(const pr of jn)Wi&&!pr[0].equals(pr[pr.length-1])&&pr.push(pr[0]),sr+=Wi?pr.length-1:pr.length;const fr=this.segments.prepareSegment((Wi?5:4)*sr,this.layoutVertexArray,this.indexArray);if(Wi){const pr=[],Zr=[];Wn=fr.vertexLength;for(const us of jn){let $s,Qr;us.length&&us!==jn[0]&&Zr.push(pr.length/2),$s=us[1].sub(us[0])._perp()._unit();for(let ys=1;ys<us.length;ys++){const vs=us[ys],ks=us[ys===us.length-1?1:ys+1];let{x:zs,y:as}=vs;if(kn){Qr=ks.sub(vs)._perp()._unit();const Ks=$s.add(Qr)._unit(),fo=kn*Math.min(4,1/($s.x*Ks.x+$s.y*Ks.y));zs+=fo*Ks.x,as+=fo*Ks.y,$s=Qr}gy(this.layoutVertexArray,zs,as,0,0,1,1,0),fr.vertexLength++,pr.push(vs.x,vs.y),Pi&&yy(this.layoutVertexExtArray,xi.projectTilePoint(zs,as,We),xi.upVector(We,zs,as))}}const Gr=nu(pr,Zr);for(let us=0;us<Gr.length;us+=3)this.indexArray.emplaceBack(Wn+Gr[us],Wn+Gr[us+2],Wn+Gr[us+1]),fr.primitiveLength++}for(const pr of jn){Ni&&pr.length&&Ni.startRing(pr[0]);let Zr,Gr,us,$s=pr.length>4&&TS(pr[pr.length-2],pr[0],pr[1]),Qr=kn?Qk(pr[pr.length-2],pr[0],pr[1],kn):0;Gr=pr[1].sub(pr[0])._perp()._unit();let ys=!0;for(let vs=1,ks=0;vs<pr.length;vs++){let zs=pr[vs-1],as=pr[vs];const Ks=pr[vs===pr.length-1?1:vs+1];if(Ni&&Wi&&Ni.currentPolyCount.top++,SS(as,zs,ar)){kn&&(Gr=Ks.sub(as)._perp()._unit(),ys=!ys);continue}Ni&&Ni.append(as,zs);const fo=as.sub(zs)._perp(),Qs=fo.x/(Math.abs(fo.x)+Math.abs(fo.y)),Ko=fo.y>0?1:0,Bs=zs.dist(as);if(ks+Bs>32768&&(ks=0),kn){us=Ks.sub(as)._perp()._unit();let Qo=wS(zs,as,Ks,xS(Gr,us),kn);isNaN(Qo)&&(Qo=0);const Mo=as.sub(zs)._unit();zs=zs.add(Mo.mult(Qr))._round(),as=as.add(Mo.mult(-Qo))._round(),Qr=Qo,Gr=us}const Co=fr.vertexLength,Jo=pr.length>4&&TS(zs,as,Ks);let Ga=ES(ks,$s,ys);if(gy(this.layoutVertexArray,zs.x,zs.y,Qs,Ko,0,0,Ga),gy(this.layoutVertexArray,zs.x,zs.y,Qs,Ko,0,1,Ga),ks+=Bs,Ga=ES(ks,Jo,!ys),$s=Jo,gy(this.layoutVertexArray,as.x,as.y,Qs,Ko,0,0,Ga),gy(this.layoutVertexArray,as.x,as.y,Qs,Ko,0,1,Ga),fr.vertexLength+=4,this.indexArray.emplaceBack(Co+0,Co+1,Co+2),this.indexArray.emplaceBack(Co+1,Co+3,Co+2),fr.primitiveLength+=2,kn){const Qo=Wn+(vs===1?pr.length-2:vs-2),Mo=vs===1?Wn:Qo+1;if(this.indexArray.emplaceBack(Co+1,Qo,Co+3),this.indexArray.emplaceBack(Qo,Mo,Co+3),fr.primitiveLength+=2,Zr===void 0&&(Zr=Co),!SS(Ks,pr[vs],ar)){const $l=vs===pr.length-1?Zr:fr.vertexLength;this.indexArray.emplaceBack(Co+2,Co+3,$l),this.indexArray.emplaceBack(Co+3,$l+1,$l),this.indexArray.emplaceBack(Co+3,Mo,$l+1),fr.primitiveLength+=3}ys=!ys}if(Pi){const Qo=this.layoutVertexExtArray,Mo=xi.projectTilePoint(zs.x,zs.y,We),$l=xi.projectTilePoint(as.x,as.y,We),ra=xi.upVector(We,zs.x,zs.y),sa=xi.upVector(We,as.x,as.y);yy(Qo,Mo,ra),yy(Qo,Mo,ra),yy(Qo,$l,sa),yy(Qo,$l,sa)}}Wi&&(Wn+=pr.length-1)}}if(Ni&&Ni.polyCount.length>0){if(Ni.borders){Ni.vertexArrayOffset=this.centroidVertexArray.length;const jn=Ni.borders,ar=this.featuresOnBorder.push(Ni)-1;for(let Wn=0;Wn<4;Wn++)jn[Wn][0]!==Number.MAX_VALUE&&this.borders[Wn].push(ar)}this.encodeCentroid(Ni.borders?void 0:Ni.centroid(),Ni)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,Re,He,Ye,ni,We)}sortBorders(){for(let Re=0;Re<4;Re++)this.borders[Re].sort((Be,He)=>this.featuresOnBorder[Be].borders[Re][0]-this.featuresOnBorder[He].borders[Re][0])}encodeCentroid(Re,Be,He=!0){let We,Ye;if(Re)if(Re.y!==0){const li=Be.span()._mult(this.tileToMeter);We=(Math.max(Re.x,1)<<3)+Math.min(7,Math.round(li.x/10)),Ye=(Math.max(Re.y,1)<<3)+Math.min(7,Math.round(li.y/10))}else We=Math.ceil(7*(Re.x+450)),Ye=0;else We=0,Ye=+He;let ni=He?this.centroidVertexArray.length:Be.vertexArrayOffset;for(const li of Be.polyCount){He&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*li.edges+li.top);for(let yi=0;yi<li.top;yi++)this.centroidVertexArray.emplace(ni++,We,Ye);for(let yi=0;yi<2*li.edges;yi++)this.centroidVertexArray.emplace(ni++,0,Ye),this.centroidVertexArray.emplace(ni++,We,Ye)}}}function xS(ze,Re){const Be=ze.add(Re)._unit();return ze.x*Be.x+ze.y*Be.y}function Qk(ze,Re,Be,He){const We=Re.sub(ze)._perp()._unit(),Ye=Be.sub(Re)._perp()._unit();return wS(ze,Re,Be,xS(We,Ye),He)}
vendor: 10,170 bytes, line 219
219function wS(ze,Re,Be,He,We){const Ye=Math.sqrt(1-He*He);return Math.min(ze.dist(Re)/3,Re.dist(Be)/3,We*Ye/He)}function SS(ze,Re,Be){return ze.x<Be[0].x&&Re.x<Be[0].x||ze.x>Be[1].x&&Re.x>Be[1].x||ze.y<Be[0].y&&Re.y<Be[0].y||ze.y>Be[1].y&&Re.y>Be[1].y}function TS(ze,Re,Be){if(ze.x<0||ze.x>=So||Re.x<0||Re.x>=So||Be.x<0||Be.x>=So)return!1;const He=Be.sub(Re),We=He.perp(),Ye=ze.sub(Re);return(He.x*Ye.x+He.y*Ye.y)/Math.sqrt((He.x*He.x+He.y*He.y)*(Ye.x*Ye.x+Ye.y*Ye.y))>-.866&&We.x*Ye.x+We.y*Ye.y<0}function ES(ze,Re,Be){const He=Re?2|ze:-3&ze;return Be?1|He:-2&He}function CS(){const ze=Math.PI/32,Re=Math.tan(ze),Be=Vi;return Be*Math.sqrt(1+2*Re*Re)-Be}function AS(ze,Re,Be){const He=1<<Be.z,We=lr(Be.x/He),Ye=lr((Be.x+1)/He),ni=Gn(Be.y/He),li=Gn((Be.y+1)/He);return function(yi,xi,Pi,Ni,Wi=0,rn){const un=[];if(!yi.length||!Pi||!Ni)return un;const gn=(pr,Zr)=>{for(const Gr of pr)un.push({polygon:Gr,bounds:Zr})},kn=Math.ceil(Math.log2(Pi)),jn=Math.ceil(Math.log2(Ni)),ar=kn-jn,Wn=[];for(let pr=0;pr<Math.abs(ar);pr++)Wn.push(ar>0?0:1);for(let pr=0;pr<Math.min(kn,jn);pr++)Wn.push(0),Wn.push(1);let sr=yi;if(sr=Bv(sr,xi[0].y-Wi,xi[1].y+Wi,1),sr=Bv(sr,xi[0].x-Wi,xi[1].x+Wi,0),!sr.length)return un;const fr=[];for(Wn.length?fr.push({polygons:sr,bounds:xi,depth:0}):gn(sr,xi);fr.length;){const pr=fr.pop(),Zr=pr.depth,Gr=Wn[Zr],us=pr.bounds[0],$s=pr.bounds[1],Qr=Gr===0?us.x:us.y,ys=Gr===0?$s.x:$s.y,vs=rn?rn(Gr,Qr,ys):.5*(Qr+ys),ks=Bv(pr.polygons,Qr-Wi,vs+Wi,Gr),zs=Bv(pr.polygons,vs-Wi,ys+Wi,Gr);if(ks.length){const as=[us,new Gi(Gr===0?vs:$s.x,Gr===1?vs:$s.y)];Wn.length>Zr+1?fr.push({polygons:ks,bounds:as,depth:Zr+1}):gn(ks,as)}if(zs.length){const as=[new Gi(Gr===0?vs:us.x,Gr===1?vs:us.y),$s];Wn.length>Zr+1?fr.push({polygons:zs,bounds:as,depth:Zr+1}):gn(zs,as)}}return un}(ze,Re,Math.ceil((Ye-We)/11.25),Math.ceil((ni-li)/11.25),1,(yi,xi,Pi)=>{if(yi===0)return .5*(xi+Pi);{const Ni=Gn((Be.y+xi/So)/He);return(Ln(.5*(Gn((Be.y+Pi/So)/He)+Ni))*He-Be.y)*So}})}to(vy,"FillExtrusionBucket",{omit:["layers","features"]}),to(bS,"PartMetadata");const zp=new qn({"fill-extrusion-edge-radius":new pn(rs["layout_fill-extrusion"]["fill-extrusion-edge-radius"])});var eP={paint:new qn({"fill-extrusion-opacity":new pn(rs["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Pn(rs["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new pn(rs["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new pn(rs["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Pn(rs["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Pn(rs["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Pn(rs["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new pn(rs["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]),"fill-extrusion-ambient-occlusion-intensity":new pn(rs["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-intensity"]),"fill-extrusion-ambient-occlusion-radius":new pn(rs["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-radius"]),"fill-extrusion-rounded-roof":new pn(rs["paint_fill-extrusion"]["fill-extrusion-rounded-roof"])}),layout:zp};function DS(ze,Re,Be){var He=2*Math.PI*6378137/256/Math.pow(2,Be);return[ze*He-2*Math.PI*6378137/2,Re*He-2*Math.PI*6378137/2]}class _f{constructor(Re,Be,He){this.z=Re,this.x=Be,this.y=He,this.key=Du(0,Re,Re,Be,He)}equals(Re){return this.z===Re.z&&this.x===Re.x&&this.y===Re.y}url(Re,Be){const He=function(Ye,ni,li){var yi=DS(256*Ye,256*(ni=Math.pow(2,li)-ni-1),li),xi=DS(256*(Ye+1),256*(ni+1),li);return yi[0]+","+yi[1]+","+xi[0]+","+xi[1]}(this.x,this.y,this.z),We=function(Ye,ni,li){let yi,xi="";for(let Pi=Ye;Pi>0;Pi--)yi=1<<Pi-1,xi+=(ni&yi?1:0)+(li&yi?2:0);return xi}(this.z,this.x,this.y);return Re[(this.x+this.y)%Re.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(Be==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",We).replace("{bbox-epsg-3857}",He)}toString(){return`${this.z}/${this.x}/${this.y}`}}class ma{constructor(Re,Be){this.wrap=Re,this.canonical=Be,this.key=Du(Re,Be.z,Be.z,Be.x,Be.y)}}class sd{constructor(Re,Be,He,We,Ye){this.overscaledZ=Re,this.wrap=Be,this.canonical=new _f(He,+We,+Ye),this.key=Be===0&&Re===He?this.canonical.key:Du(Be,Re,He,We,Ye)}equals(Re){return this.overscaledZ===Re.overscaledZ&&this.wrap===Re.wrap&&this.canonical.equals(Re.canonical)}scaledTo(Re){const Be=this.canonical.z-Re;return Re>this.canonical.z?new sd(Re,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new sd(Re,this.wrap,Re,this.canonical.x>>Be,this.canonical.y>>Be)}calculateScaledKey(Re,Be=!0){if(this.overscaledZ===Re&&Be)return this.key;if(Re>this.canonical.z)return Du(this.wrap*+Be,Re,this.canonical.z,this.canonical.x,this.canonical.y);{const He=this.canonical.z-Re;return Du(this.wrap*+Be,Re,Re,this.canonical.x>>He,this.canonical.y>>He)}}isChildOf(Re){if(Re.wrap!==this.wrap)return!1;const Be=this.canonical.z-Re.canonical.z;return Re.overscaledZ===0||Re.overscaledZ<this.overscaledZ&&Re.canonical.x===this.canonical.x>>Be&&Re.canonical.y===this.canonical.y>>Be}children(Re){if(this.overscaledZ>=Re)return[new sd(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const Be=this.canonical.z+1,He=2*this.canonical.x,We=2*this.canonical.y;return[new sd(Be,this.wrap,Be,He,We),new sd(Be,this.wrap,Be,He+1,We),new sd(Be,this.wrap,Be,He,We+1),new sd(Be,this.wrap,Be,He+1,We+1)]}isLessThan(Re){return this.wrap<Re.wrap||!(this.wrap>Re.wrap)&&(this.overscaledZ<Re.overscaledZ||!(this.overscaledZ>Re.overscaledZ)&&(this.canonical.x<Re.canonical.x||!(this.canonical.x>Re.canonical.x)&&this.canonical.y<Re.canonical.y))}wrapped(){return new sd(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(Re){return new sd(this.overscaledZ,Re,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new ma(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function Du(ze,Re,Be,He,We){const Ye=1<<Math.min(Be,22);let ni=Ye*(We%Ye)+He%Ye;return ze&&Be<22&&(ni+=Ye*Ye*((ze<0?-2*ze-1:2*ze)%(1<<2*(22-Be)))),16*(32*ni+Be)+(Re-Be)}to(_f,"CanonicalTileID"),to(sd,"OverscaledTileID",{omit:["projMatrix"]});class Ul extends Gi{constructor(Re,Be,He){super(Re,Be),this.z=He}}function _y(ze,Re){return ze.x*Re.x+ze.y*Re.y}function jf(ze,Re){if(ze.length===1){let Be=0;const He=Re[Be++];let We;for(;!We||He.equals(We);)if(We=Re[Be++],!We)return 1/0;for(;Be<Re.length;Be++){const Ye=Re[Be],ni=ze[0],li=We.sub(He),yi=Ye.sub(He),xi=ni.sub(He),Pi=_y(li,li),Ni=_y(li,yi),Wi=_y(yi,yi),rn=_y(xi,li),un=_y(xi,yi),gn=Pi*Wi-Ni*Ni,kn=(Wi*rn-Ni*un)/gn,jn=(Pi*un-Ni*rn)/gn,ar=He.z*(1-kn-jn)+We.z*kn+Ye.z*jn;if(isFinite(ar))return ar}return 1/0}{let Be=1/0;for(const He of Re)Be=Math.min(Be,He.z);return Be}}function MS(ze,Re,Be,He,We,Ye,ni,li){const yi=ni*We.getElevationAt(ze,Re,!0,!0),xi=Ye[0]!==0,Pi=xi?Ye[1]===0?ni*(Ye[0]/7-450):ni*function(Ni,Wi,rn){const un=Math.floor(Wi[0]/8),gn=Math.floor(Wi[1]/8),kn=10*(Wi[0]-8*un),jn=10*(Wi[1]-8*gn),ar=Ni.getElevationAt(un,gn,!0,!0),Wn=Ni.getMeterToDEM(rn),sr=Math.floor(.5*(kn*Wn-1)),fr=Math.floor(.5*(jn*Wn-1)),pr=Ni.tileCoordToPixel(un,gn),Zr=2*sr+1,Gr=2*fr+1,us=function(zs,as,Ks,fo,Qs){return[zs.getElevationAtPixel(as,Ks,!0),zs.getElevationAtPixel(as+Qs,Ks,!0),zs.getElevationAtPixel(as,Ks+Qs,!0),zs.getElevationAtPixel(as+fo,Ks+Qs,!0)]}(Ni,pr.x-sr,pr.y-fr,Zr,Gr),$s=Math.abs(us[0]-us[1]),Qr=Math.abs(us[2]-us[3]),ys=Math.abs(us[0]-us[2])+Math.abs(us[1]-us[3]),vs=Math.min(.25,.5*Wn*($s+Qr)/Zr),ks=Math.min(.25,.5*Wn*ys/Gr);return ar+Math.max(vs*kn,ks*jn)}(We,Ye,li):yi;return{base:yi+(Be===0)?-1:Be,top:xi?Math.max(Pi+He,yi+Be+2):yi+He}}const tP=Pr([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),{members:iP}=tP,nP=Pr([{name:"a_packed",components:4,type:"Float32"}]),{members:rP}=nP,U1=zv.types,sP=Math.cos(Math.PI/180*37.5);class ep{constructor(Re){this.zoom=Re.zoom,this.overscaling=Re.overscaling,this.layers=Re.layers,this.layerIds=this.layers.map(Be=>Be.id),this.index=Re.index,this.projection=Re.projection,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(Be=>{this.gradients[Be.id]={}}),this.layoutVertexArray=new Xr,this.layoutVertexArray2=new ss,this.indexArray=new lo,this.programConfigurations=new Ip(Re.layers,Re.zoom),this.segments=new Il,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(Be=>Be.isStateDependent()).map(Be=>Be.id)}populate(Re,Be,He,We){this.hasPattern=z1("line",this.layers,Be);const Ye=this.layers[0].layout.get("line-sort-key"),ni=[];for(const{feature:Pi,id:Ni,index:Wi,sourceLayerIndex:rn}of Re){const un=this.layers[0]._featureFilter.needGeometry,gn=Cs(Pi,un);if(!this.layers[0]._featureFilter.filter(new Fi(this.zoom),gn,He))continue;const kn=Ye?Ye.evaluate(gn,{},He):void 0,jn={id:Ni,properties:Pi.properties,type:Pi.type,sourceLayerIndex:rn,index:Wi,geometry:un?gn.geometry:oo(Pi,He,We),patterns:{},sortKey:kn};ni.push(jn)}Ye&&ni.sort((Pi,Ni)=>Pi.sortKey-Ni.sortKey);const{lineAtlas:li,featureIndex:yi}=Be,xi=this.addConstantDashes(li);for(const Pi of ni){const{geometry:Ni,index:Wi,sourceLayerIndex:rn}=Pi;if(xi&&this.addFeatureDashes(Pi,li),this.hasPattern){const un=B1("line",this.layers,Pi,this.zoom,Be);this.patternFeatures.push(un)}else this.addFeature(Pi,Ni,Wi,He,li.positions,Be.availableImages);yi.insert(Re[Wi].feature,Ni,Wi,rn,this.index)}}addConstantDashes(Re){let Be=!1;for(const He of this.layers){const We=He.paint.get("line-dasharray").value,Ye=He.layout.get("line-cap").value;if(We.kind!=="constant"||Ye.kind!=="constant")Be=!0;else{const ni=Ye.value,li=We.value;if(!li)continue;Re.addDash(li,ni)}}return Be}addFeatureDashes(Re,Be){const He=this.zoom;for(const We of this.layers){const Ye=We.paint.get("line-dasharray").value,
vendor: 4,519 bytes, line 219
219ni=We.layout.get("line-cap").value;if(Ye.kind==="constant"&&ni.kind==="constant")continue;let li,yi;if(Ye.kind==="constant"){if(li=Ye.value,!li)continue}else li=Ye.evaluate({zoom:He},Re);yi=ni.kind==="constant"?ni.value:ni.evaluate({zoom:He},Re),Be.addDash(li,yi),Re.patterns[We.id]=Be.getKey(li,yi)}}update(Re,Be,He,We){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(Re,Be,this.stateDependentLayers,He,We)}addFeatures(Re,Be,He,We,Ye){for(const ni of this.patternFeatures)this.addFeature(ni,ni.geometry,ni.index,Be,He,We)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(Re){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=Re.createVertexBuffer(this.layoutVertexArray2,rP)),this.layoutVertexBuffer=Re.createVertexBuffer(this.layoutVertexArray,iP),this.indexBuffer=Re.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(Re),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(Re){if(Re.properties&&Re.properties.hasOwnProperty("mapbox_clip_start")&&Re.properties.hasOwnProperty("mapbox_clip_end"))return{start:+Re.properties.mapbox_clip_start,end:+Re.properties.mapbox_clip_end}}addFeature(Re,Be,He,We,Ye,ni){const li=this.layers[0].layout,yi=li.get("line-join").evaluate(Re,{}),xi=li.get("line-cap").evaluate(Re,{}),Pi=li.get("line-miter-limit"),Ni=li.get("line-round-limit");this.lineClips=this.lineFeatureClips(Re);for(const Wi of Be)this.addLine(Wi,Re,yi,xi,Pi,Ni);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,Re,He,Ye,ni,We)}addLine(Re,Be,He,We,Ye,ni){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let jn=0;jn<Re.length-1;jn++)this.totalDistance+=Re[jn].dist(Re[jn+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const li=U1[Be.type]==="Polygon";let yi=Re.length;for(;yi>=2&&Re[yi-1].equals(Re[yi-2]);)yi--;let xi=0;for(;xi<yi-1&&Re[xi].equals(Re[xi+1]);)xi++;if(yi<(li?3:2))return;He==="bevel"&&(Ye=1.05);const Pi=this.overscaling<=16?15*So/(512*this.overscaling):0,Ni=this.segments.prepareSegment(10*yi,this.layoutVertexArray,this.indexArray);let Wi,rn,un,gn,kn;this.e1=this.e2=-1,li&&(Wi=Re[yi-2],kn=Re[xi].sub(Wi)._unit()._perp());for(let jn=xi;jn<yi;jn++){if(un=jn===yi-1?li?Re[xi+1]:void 0:Re[jn+1],un&&Re[jn].equals(un))continue;kn&&(gn=kn),Wi&&(rn=Wi),Wi=Re[jn],kn=un?un.sub(Wi)._unit()._perp():gn,gn=gn||kn;let ar=gn.add(kn);ar.x===0&&ar.y===0||ar._unit();const Wn=gn.x*kn.x+gn.y*kn.y,sr=ar.x*kn.x+ar.y*kn.y,fr=sr!==0?1/sr:1/0,pr=2*Math.sqrt(2-2*sr),Zr=sr<sP&&rn&&un,Gr=gn.x*kn.y-gn.y*kn.x>0;if(Zr&&jn>xi){const Qr=Wi.dist(rn);if(Qr>2*Pi){const ys=Wi.sub(Wi.sub(rn)._mult(Pi/Qr)._round());this.updateDistance(rn,ys),this.addCurrentVertex(ys,gn,0,0,Ni),rn=ys}}const us=rn&&un;let $s=us?He:li?"butt":We;if(us&&$s==="round"&&(fr<ni?$s="miter":fr<=2&&($s="fakeround")),$s==="miter"&&fr>Ye&&($s="bevel"),$s==="bevel"&&(fr>2&&($s="flipbevel"),fr<Ye&&($s="miter")),rn&&this.updateDistance(rn,Wi),$s==="miter")ar._mult(fr),this.addCurrentVertex(Wi,ar,0,0,Ni);else if($s==="flipbevel"){if(fr>100)ar=kn.mult(-1);else{const Qr=fr*gn.add(kn).mag()/gn.sub(kn).mag();ar._perp()._mult(Qr*(Gr?-1:1))}this.addCurrentVertex(Wi,ar,0,0,Ni),this.addCurrentVertex(Wi,ar.mult(-1),0,0,Ni)}else if($s==="bevel"||$s==="fakeround"){const Qr=-Math.sqrt(fr*fr-1),ys=Gr?Qr:0,vs=Gr?0:Qr;if(rn&&this.addCurrentVertex(Wi,gn,ys,vs,Ni),$s==="fakeround"){const ks=Math.round(180*pr/Math.PI/20);for(let zs=1;zs<ks;zs++){let as=zs/ks;if(as!==.5){const fo=as-.5;as+=as*fo*(as-1)*((1.0904+Wn*(Wn*(3.55645-1.43519*Wn)-3.2452))*fo*fo+(.848013+Wn*(.215638*Wn-1.06021)))}const Ks=kn.sub(gn)._mult(as)._add(gn)._unit()._mult(Gr?-1:1);this.addHalfVertex(Wi,Ks.x,Ks.y,!1,Gr,0,Ni)}}un&&this.addCurrentVertex(Wi,kn,-ys,-vs,Ni)}else if($s==="butt")this.addCurrentVertex(Wi,ar,0,0,Ni);else if($s==="square"){const Qr=rn?1:-1;rn||this.addCurrentVertex(Wi,ar,Qr,Qr,Ni),this.addCurrentVertex(Wi,ar,0,0,Ni),rn&&this.addCurrentVertex(Wi,ar,Qr,Qr,Ni)}else $s==="round"&&(rn&&(this.addCurrentVertex(Wi,gn,0,0,Ni),this.addCurrentVertex(Wi,gn,1,1,Ni,!0)),un&&(this.addCurrentVertex(Wi,kn,-1,-1,Ni,!0),this.addCurrentVertex(Wi,kn,0,0,Ni)));if(Zr&&jn<yi-1){const Qr=Wi.dist(un);if(Qr>
vendor: 9,490 bytes, line 219
2192*Pi){const ys=Wi.add(un.sub(Wi)._mult(Pi/Qr)._round());this.updateDistance(Wi,ys),this.addCurrentVertex(ys,kn,0,0,Ni),Wi=ys}}}}addCurrentVertex(Re,Be,He,We,Ye,ni=!1){const li=Be.y*We-Be.x,yi=-Be.y-Be.x*We;this.addHalfVertex(Re,Be.x+Be.y*He,Be.y-Be.x*He,ni,!1,He,Ye),this.addHalfVertex(Re,li,yi,ni,!0,-We,Ye)}addHalfVertex({x:Re,y:Be},He,We,Ye,ni,li,yi){this.layoutVertexArray.emplaceBack((Re<<1)+(Ye?1:0),(Be<<1)+(ni?1:0),Math.round(63*He)+128,Math.round(63*We)+128,1+(li===0?0:li<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineClips.start,this.lineClips.end);const xi=yi.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,xi),yi.primitiveLength++),ni?this.e2=xi:this.e1=xi}updateScaledDistance(){if(this.lineClips){const Re=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=Re*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(Re,Be){this.distance+=Re.dist(Be),this.updateScaledDistance()}}to(ep,"LineBucket",{omit:["layers","patternFeatures"]});const kS=new qn({"line-cap":new Pn(rs.layout_line["line-cap"]),"line-join":new Pn(rs.layout_line["line-join"]),"line-miter-limit":new pn(rs.layout_line["line-miter-limit"]),"line-round-limit":new pn(rs.layout_line["line-round-limit"]),"line-sort-key":new Pn(rs.layout_line["line-sort-key"])});var by={paint:new qn({"line-opacity":new Pn(rs.paint_line["line-opacity"]),"line-color":new Pn(rs.paint_line["line-color"]),"line-translate":new pn(rs.paint_line["line-translate"]),"line-translate-anchor":new pn(rs.paint_line["line-translate-anchor"]),"line-width":new Pn(rs.paint_line["line-width"]),"line-gap-width":new Pn(rs.paint_line["line-gap-width"]),"line-offset":new Pn(rs.paint_line["line-offset"]),"line-blur":new Pn(rs.paint_line["line-blur"]),"line-dasharray":new Pn(rs.paint_line["line-dasharray"]),"line-pattern":new Pn(rs.paint_line["line-pattern"]),"line-gradient":new Jn(rs.paint_line["line-gradient"]),"line-trim-offset":new pn(rs.paint_line["line-trim-offset"])}),layout:kS};const nc=new class extends Pn{possiblyEvaluate(ze,Re){return Re=new Fi(Math.floor(Re.zoom),{now:Re.now,fadeDuration:Re.fadeDuration,transition:Re.transition}),super.possiblyEvaluate(ze,Re)}evaluate(ze,Re,Be,He){return Re=Qi({},Re,{zoom:Math.floor(Re.zoom)}),super.evaluate(ze,Re,Be,He)}}(by.paint.properties["line-width"].specification);function fc(ze,Re){return Re>0?Re+2*ze:ze}nc.useIntegerZoom=!0;const PS=Pr([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),oP=Pr([{name:"a_globe_anchor",components:3,type:"Int16"},{name:"a_globe_normal",components:3,type:"Float32"}],4),aP=Pr([{name:"a_projected_pos",components:4,type:"Float32"}],4);Pr([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const lP=Pr([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),cP=Pr([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]);Pr([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const IS=Pr([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),uP=Pr([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Pr([{name:"triangle",components:3,type:"Uint16"}]),Pr([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),Pr([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Pr([{type:"Float32",name:"offsetX"}]),Pr([{type:"Int16",name:"x"},{type:"Int16",name:"y"}]);var ru=24;const Cd=128;function xy(ze,Re){const{expression:Be}=Re;if(Be.kind==="constant")return{kind:"constant",layoutSize:Be.evaluate(new Fi(ze+1))};if(Be.kind==="source")return{kind:"source"};{const{zoomStops:He,interpolationType:We}=Be;let Ye=0;for(;Ye<He.length&&He[Ye]<=ze;)Ye++;Ye=Math.max(0,Ye-1);let ni=Ye;for(;ni<He.length&&He[ni]<ze+1;)ni++;ni=Math.min(He.length-1,ni);const li=He[Ye],yi=He[ni];return Be.kind==="composite"?{kind:"composite",minZoom:li,maxZoom:yi,interpolationType:We}:{kind:"camera",minZoom:li,maxZoom:yi,minSize:Be.evaluate(new Fi(li)),maxSize:Be.evaluate(new Fi(yi)),interpolationType:We}}}function Nv(ze,{uSize:Re,uSizeT:Be},{lowerSize:He,upperSize:We}){return ze.kind==="source"?He/Cd:ze.kind==="composite"?qo(He/Cd,We/Cd,Be):Re}function ng(ze,Re){let Be=0,He=0;if(ze.kind==="constant")He=ze.layoutSize;else if(ze.kind!=="source"){const{interpolationType:We,minZoom:Ye,maxZoom:ni}=ze,li=We?Hn(Ec.interpolationFactor(We,Re,Ye,ni),0,1):0;ze.kind==="camera"?He=qo(ze.minSize,ze.maxSize,li):Be=li}return{uSizeT:Be,uSize:He}}var Vv=Object.freeze({__proto__:null,SIZE_PACK_FACTOR:Cd,evaluateSizeForFeature:Nv,evaluateSizeForZoom:ng,getSizeData:xy});function Th(ze,Re,Be){return ze.sections.forEach(He=>{He.text=function(We,Ye,ni){const li=Ye.layout.get("text-transform").evaluate(ni,{});return li==="uppercase"?We=We.toLocaleUpperCase():li==="lowercase"&&(We=We.toLocaleLowerCase()),Mi.applyArabicShaping&&(We=Mi.applyArabicShaping(We)),We}(He.text,Re,Be)}),ze}const bf={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂","←":"↑","→":"↓"};function dP(ze){return ze==="︶"||ze==="﹈"||ze==="︸"||ze==="﹄"||ze==="﹂"||ze==="︾"||ze==="︼"||ze==="︺"||ze==="︘"||ze==="﹀"||ze==="︐"||ze==="︓"||ze==="︔"||ze==="`"||ze===" ̄"||ze==="︑"||ze==="︒"}function hP(ze){return ze==="︵"||ze==="﹇"||ze==="︷"||ze==="﹃"||ze==="﹁"||ze==="︽"||ze==="︻"||ze==="︹"||ze==="︗"||ze==="︿"}var RS=ol,OS=function(ze,Re,Be,He,We){var Ye,ni,li=8*We-He-1,yi=(1<<li)-1,xi=yi>>1,Pi=-7,Ni=Be?We-1:0,Wi=Be?-1:1,rn=ze[Re+Ni];for(Ni+=Wi,Ye=rn&(1<<-Pi)-1,rn>>=-Pi,Pi+=li;Pi>0;Ye=256*Ye+ze[Re+Ni],Ni+=Wi,Pi-=8);for(ni=Ye&(1<<-Pi)-1,Ye>>=-Pi,Pi+=He;Pi>0;ni=256*ni+ze[Re+Ni],Ni+=Wi,Pi-=8);if(Ye===0)Ye=1-xi;else{if(Ye===yi)return ni?NaN:1/0*(rn?-1:1);ni+=Math.pow(2,He),Ye-=xi}return(rn?-1:1)*ni*Math.pow(2,Ye-He)},LS=function(ze,Re,Be,He,We,Ye){var ni,li,yi,xi=8*Ye-We-1,Pi=(1<<xi)-1,Ni=Pi>>1,Wi=We===23?Math.pow(2,-24)-Math.pow(2,-77):0,rn=He?0:Ye-1,un=He?1:-1,gn=Re<0||Re===0&&1
vendor: 4,444 bytes, line 219
219/Re<0?1:0;for(Re=Math.abs(Re),isNaN(Re)||Re===1/0?(li=isNaN(Re)?1:0,ni=Pi):(ni=Math.floor(Math.log(Re)/Math.LN2),Re*(yi=Math.pow(2,-ni))<1&&(ni--,yi*=2),(Re+=ni+Ni>=1?Wi/yi:Wi*Math.pow(2,1-Ni))*yi>=2&&(ni++,yi/=2),ni+Ni>=Pi?(li=0,ni=Pi):ni+Ni>=1?(li=(Re*yi-1)*Math.pow(2,We),ni+=Ni):(li=Re*Math.pow(2,Ni-1)*Math.pow(2,We),ni=0));We>=8;ze[Be+rn]=255&li,rn+=un,li/=256,We-=8);for(ni=ni<<We|li,xi+=We;xi>0;ze[Be+rn]=255&ni,rn+=un,ni/=256,xi-=8);ze[Be+rn-un]|=128*gn};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function ol(ze){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(ze)?ze:new Uint8Array(ze||0),this.pos=0,this.type=0,this.length=this.buf.length}ol.Varint=0,ol.Fixed64=1,ol.Bytes=2,ol.Fixed32=5;var Bp=4294967296,ba=1/Bp,G1=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function su(ze){return ze.type===ol.Bytes?ze.readVarint()+ze.pos:ze.pos+1}function rg(ze,Re,Be){return Be?4294967296*Re+(ze>>>0):4294967296*(Re>>>0)+(ze>>>0)}function $S(ze,Re,Be){var He=Re<=16383?1:Re<=2097151?2:Re<=268435455?3:Math.floor(Math.log(Re)/(7*Math.LN2));Be.realloc(He);for(var We=Be.pos-1;We>=ze;We--)Be.buf[We+He]=Be.buf[We]}function ml(ze,Re){for(var Be=0;Be<ze.length;Be++)Re.writeVarint(ze[Be])}function pP(ze,Re){for(var Be=0;Be<ze.length;Be++)Re.writeSVarint(ze[Be])}function FS(ze,Re){for(var Be=0;Be<ze.length;Be++)Re.writeFloat(ze[Be])}function Hv(ze,Re){for(var Be=0;Be<ze.length;Be++)Re.writeDouble(ze[Be])}function fP(ze,Re){for(var Be=0;Be<ze.length;Be++)Re.writeBoolean(ze[Be])}function mP(ze,Re){for(var Be=0;Be<ze.length;Be++)Re.writeFixed32(ze[Be])}function gP(ze,Re){for(var Be=0;Be<ze.length;Be++)Re.writeSFixed32(ze[Be])}function yP(ze,Re){for(var Be=0;Be<ze.length;Be++)Re.writeFixed64(ze[Be])}function vP(ze,Re){for(var Be=0;Be<ze.length;Be++)Re.writeSFixed64(ze[Be])}function Uv(ze,Re){return(ze[Re]|ze[Re+1]<<8|ze[Re+2]<<16)+16777216*ze[Re+3]}function a0(ze,Re,Be){ze[Be]=Re,ze[Be+1]=Re>>>8,ze[Be+2]=Re>>>16,ze[Be+3]=Re>>>24}function zS(ze,Re){return(ze[Re]|ze[Re+1]<<8|ze[Re+2]<<16)+(ze[Re+3]<<24)}ol.prototype={destroy:function(){this.buf=null},readFields:function(ze,Re,Be){for(Be=Be||this.length;this.pos<Be;){var He=this.readVarint(),We=He>>3,Ye=this.pos;this.type=7&He,ze(We,Re,this),this.pos===Ye&&this.skip(He)}return Re},readMessage:function(ze,Re){return this.readFields(ze,Re,this.readVarint()+this.pos)},readFixed32:function(){var ze=Uv(this.buf,this.pos);return this.pos+=4,ze},readSFixed32:function(){var ze=zS(this.buf,this.pos);return this.pos+=4,ze},readFixed64:function(){var ze=Uv(this.buf,this.pos)+Uv(this.buf,this.pos+4)*Bp;return this.pos+=8,ze},readSFixed64:function(){var ze=Uv(this.buf,this.pos)+zS(this.buf,this.pos+4)*Bp;return this.pos+=8,ze},readFloat:function(){var ze=OS(this.buf,this.pos,!0,23,4);return this.pos+=4,ze},readDouble:function(){var ze=OS(this.buf,this.pos,!0,52,8);return this.pos+=8,ze},readVarint:function(ze){var Re,Be,He=this.buf;return Re=127&(Be=He[this.pos++]),Be<128?Re:(Re|=(127&(Be=He[this.pos++]))<<7,Be<128?Re:(Re|=(127&(Be=He[this.pos++]))<<14,Be<128?Re:(Re|=(127&(Be=He[this.pos++]))<<21,Be<128?Re:function(We,Ye,ni){var li,yi,xi=ni.buf;if(li=(112&(yi=xi[ni.pos++]))>>4,yi<128||(li|=(127&(yi=xi[ni.pos++]))<<3,yi<128)||(li|=(127&(yi=xi[ni.pos++]))<<10,yi<128)||(li|=(127&(yi=xi[ni.pos++]))<<17,yi<128)||(li|=(127&(yi=xi[ni.pos++]))<<24,yi<128)||(li|=(1&(yi=xi[ni.pos++]))<<31,yi<128))return rg(We,li,Ye);throw new Error("Expected varint not more than 10 bytes")}(Re|=(15&(Be=He[this.pos]))<<28,ze,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var ze=this.readVarint();return ze%2==1?(ze+1)/-2:ze/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var ze=this.readVarint()+this.pos,Re=this.pos;return this.pos=ze,ze-Re>=12&&G1?function(Be,He,We){return G1.decode(Be.subarray(He,We))}(this.buf,Re,ze):function(Be,He,We){for(var Ye="",ni=He;ni<We;){var li,yi,xi,Pi=Be[ni],Ni=null,Wi=Pi>239?4:Pi>223?3:Pi>191?2:1;if(ni+Wi>We)break;Wi===1?Pi<128&&(Ni=Pi):Wi===2?(192&(li=Be[ni+1]))==128&&(Ni=(31&Pi)<<6|63&li)<=127&&(Ni=null):Wi===3?(yi=Be[ni+2],(192&(li=Be[ni+1]))==128&&(192&yi)==128&&((Ni=(15&Pi)<<12|(63&li)<<6|63&yi)<=2047||Ni>=55296&&Ni<=57343)&&(Ni=null)):Wi===4&&(yi=Be[ni+2],xi=Be[ni+3],(192&(li=Be[ni+1]))==128&&(192&yi)==128&&(192&xi)==128&&((Ni=(15&Pi)<<18|(63&li)<<12|(63&yi)<<6|63&xi)<=65535||Ni>=1114112)&&(Ni=null)),Ni===null?(Ni=65533,Wi=1):Ni>
vendor: 6,267 bytes, line 219
21965535&&(Ni-=65536,Ye+=String.fromCharCode(Ni>>>10&1023|55296),Ni=56320|1023&Ni),Ye+=String.fromCharCode(Ni),ni+=Wi}return Ye}(this.buf,Re,ze)},readBytes:function(){var ze=this.readVarint()+this.pos,Re=this.buf.subarray(this.pos,ze);return this.pos=ze,Re},readPackedVarint:function(ze,Re){if(this.type!==ol.Bytes)return ze.push(this.readVarint(Re));var Be=su(this);for(ze=ze||[];this.pos<Be;)ze.push(this.readVarint(Re));return ze},readPackedSVarint:function(ze){if(this.type!==ol.Bytes)return ze.push(this.readSVarint());var Re=su(this);for(ze=ze||[];this.pos<Re;)ze.push(this.readSVarint());return ze},readPackedBoolean:function(ze){if(this.type!==ol.Bytes)return ze.push(this.readBoolean());var Re=su(this);for(ze=ze||[];this.pos<Re;)ze.push(this.readBoolean());return ze},readPackedFloat:function(ze){if(this.type!==ol.Bytes)return ze.push(this.readFloat());var Re=su(this);for(ze=ze||[];this.pos<Re;)ze.push(this.readFloat());return ze},readPackedDouble:function(ze){if(this.type!==ol.Bytes)return ze.push(this.readDouble());var Re=su(this);for(ze=ze||[];this.pos<Re;)ze.push(this.readDouble());return ze},readPackedFixed32:function(ze){if(this.type!==ol.Bytes)return ze.push(this.readFixed32());var Re=su(this);for(ze=ze||[];this.pos<Re;)ze.push(this.readFixed32());return ze},readPackedSFixed32:function(ze){if(this.type!==ol.Bytes)return ze.push(this.readSFixed32());var Re=su(this);for(ze=ze||[];this.pos<Re;)ze.push(this.readSFixed32());return ze},readPackedFixed64:function(ze){if(this.type!==ol.Bytes)return ze.push(this.readFixed64());var Re=su(this);for(ze=ze||[];this.pos<Re;)ze.push(this.readFixed64());return ze},readPackedSFixed64:function(ze){if(this.type!==ol.Bytes)return ze.push(this.readSFixed64());var Re=su(this);for(ze=ze||[];this.pos<Re;)ze.push(this.readSFixed64());return ze},skip:function(ze){var Re=7&ze;if(Re===ol.Varint)for(;this.buf[this.pos++]>127;);else if(Re===ol.Bytes)this.pos=this.readVarint()+this.pos;else if(Re===ol.Fixed32)this.pos+=4;else{if(Re!==ol.Fixed64)throw new Error("Unimplemented type: "+Re);this.pos+=8}},writeTag:function(ze,Re){this.writeVarint(ze<<3|Re)},realloc:function(ze){for(var Re=this.length||16;Re<this.pos+ze;)Re*=2;if(Re!==this.length){var Be=new Uint8Array(Re);Be.set(this.buf),this.buf=Be,this.length=Re}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(ze){this.realloc(4),a0(this.buf,ze,this.pos),this.pos+=4},writeSFixed32:function(ze){this.realloc(4),a0(this.buf,ze,this.pos),this.pos+=4},writeFixed64:function(ze){this.realloc(8),a0(this.buf,-1&ze,this.pos),a0(this.buf,Math.floor(ze*ba),this.pos+4),this.pos+=8},writeSFixed64:function(ze){this.realloc(8),a0(this.buf,-1&ze,this.pos),a0(this.buf,Math.floor(ze*ba),this.pos+4),this.pos+=8},writeVarint:function(ze){(ze=+ze||0)>268435455||ze<0?function(Re,Be){var He,We;if(Re>=0?(He=Re%4294967296|0,We=Re/4294967296|0):(We=~(-Re/4294967296),4294967295^(He=~(-Re%4294967296))?He=He+1|0:(He=0,We=We+1|0)),Re>=18446744073709552e3||Re<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");Be.realloc(10),function(Ye,ni,li){li.buf[li.pos++]=127&Ye|128,Ye>>>=7,li.buf[li.pos++]=127&Ye|128,Ye>>>=7,li.buf[li.pos++]=127&Ye|128,Ye>>>=7,li.buf[li.pos++]=127&Ye|128,li.buf[li.pos]=127&(Ye>>>=7)}(He,0,Be),function(Ye,ni){var li=(7&Ye)<<4;ni.buf[ni.pos++]|=li|((Ye>>>=3)?128:0),Ye&&(ni.buf[ni.pos++]=127&Ye|((Ye>>>=7)?128:0),Ye&&(ni.buf[ni.pos++]=127&Ye|((Ye>>>=7)?128:0),Ye&&(ni.buf[ni.pos++]=127&Ye|((Ye>>>=7)?128:0),Ye&&(ni.buf[ni.pos++]=127&Ye|((Ye>>>=7)?128:0),Ye&&(ni.buf[ni.pos++]=127&Ye)))))}(We,Be)}(ze,this):(this.realloc(4),this.buf[this.pos++]=127&ze|(ze>127?128:0),ze<=127||(this.buf[this.pos++]=127&(ze>>>=7)|(ze>127?128:0),ze<=127||(this.buf[this.pos++]=127&(ze>>>=7)|(ze>127?128:0),ze<=127||(this.buf[this.pos++]=ze>>>7&127))))},writeSVarint:function(ze){this.writeVarint(ze<0?2*-ze-1:2*ze)},writeBoolean:function(ze){this.writeVarint(!!ze)},writeString:function(ze){ze=String(ze),this.realloc(4*ze.length),this.pos++;var Re=this.pos;this.pos=function(He,We,Ye){for(var ni,li,yi=0;yi<We.length;yi++){if((ni=We.charCodeAt(yi))>55295&&ni<57344){if(!li){ni>56319||yi+1===We.length?(He[Ye++]=239,He[Ye++]=191,He[Ye++]=189):li=ni;continue}if(ni<56320){He[Ye++]=239,He[Ye++]=191,He[Ye++]=189,li=ni;continue}ni=li-55296<<10|ni-56320|65536,li=null}else li&&(He[Ye++]=239,He[Ye++]=191,He[Ye++]=189,li=null);ni<128?He[Ye++]=ni:(ni<2048?He[Ye++]=ni>>6|192:(ni<65536?He[Ye++]=ni>>12|224:(He[Ye++]=ni>>18|240,He[Ye++]=ni>>12&63|128),He[Ye++]=ni>>6&63|128),He[Ye++]=63&ni|128)}return Ye}(this.buf,ze,this.pos);var Be=this.pos-Re;Be>=128&&$S(Re,Be,this),this.pos=Re-1,this.writeVarint(Be),this.pos+=Be},writeFloat:function(ze){this.realloc(4),LS(this.buf,ze,this.pos,!0,23,4),this.pos+=4},writeDouble:function(ze){this.realloc(8),LS(this.buf,ze,this.pos,!0,52,8),this.pos+=8},writeBytes:function(ze){var Re=ze.length;this.writeVarint(Re),this.realloc(Re);for(var Be=0;Be<Re;Be++)this.buf[this.pos++]=ze[Be]},writeRawMessage:function(ze,Re){this.pos++;var Be=this.pos;ze(Re,this);var He=this.pos-Be;He>=128&&$S(Be,He,this),this.pos=Be-1,this.writeVarint(He),this.pos+=He},writeMessage:function(ze,Re,Be){this.writeTag(ze,ol.Bytes),this.writeRawMessage(Re,Be)},writePackedVarint:function(ze,Re){Re.length&&this.writeMessage(ze,ml,Re)},writePackedSVarint:function(ze,Re){Re.length&&this.writeMessage(ze,pP,Re)},writePackedBoolean:function(ze,Re){Re.length&&this.writeMessage(ze,fP,Re)},writePackedFloat:function(ze,Re){Re.length&&this.writeMessage(ze,FS,Re)},writePackedDouble:function(ze,Re){Re.length&&this.writeMessage(ze,Hv,Re)},writePackedFixed32:function(ze,Re){Re.length&&this.writeMessage(ze,mP,Re)},writePackedSFixed32:function(ze,Re){Re.length&&this.writeMessage(ze,gP,Re)},writePackedFixed64:function(ze,Re){Re.length&&this.writeMessage(ze,yP,Re)},writePackedSFixed64:function(ze,Re){Re.length&&this.writeMessage(ze,vP,Re)},writeBytesField:function(ze,Re){this.writeTag(ze,ol.Bytes),this.writeBytes(Re)},writeFixed32Field:function(ze,Re){this.writeTag(ze,ol.Fixed32),this.writeFixed32(Re)},writeSFixed32Field:function(ze,Re){this.writeTag(ze,ol.Fixed32),this.writeSFixed32(Re)},writeFixed64Field:function(ze,Re){this.writeTag(ze,ol.Fixed64),this.writeFixed64
vendor: 5,687 bytes, line 219
219(Re)},writeSFixed64Field:function(ze,Re){this.writeTag(ze,ol.Fixed64),this.writeSFixed64(Re)},writeVarintField:function(ze,Re){this.writeTag(ze,ol.Varint),this.writeVarint(Re)},writeSVarintField:function(ze,Re){this.writeTag(ze,ol.Varint),this.writeSVarint(Re)},writeStringField:function(ze,Re){this.writeTag(ze,ol.Bytes),this.writeString(Re)},writeFloatField:function(ze,Re){this.writeTag(ze,ol.Fixed32),this.writeFloat(Re)},writeDoubleField:function(ze,Re){this.writeTag(ze,ol.Fixed64),this.writeDouble(Re)},writeBooleanField:function(ze,Re){this.writeVarintField(ze,!!Re)}};var Gv=Li(RS);const j1=3;function _P(ze,Re,Be){Re.glyphs=[],ze===1&&Be.readMessage(bP,Re)}function bP(ze,Re,Be){if(ze===3){const{id:He,bitmap:We,width:Ye,height:ni,left:li,top:yi,advance:xi}=Be.readMessage(xP,{});Re.glyphs.push({id:He,bitmap:new Qd({width:Ye+2*j1,height:ni+2*j1},We),metrics:{width:Ye,height:ni,left:li,top:yi,advance:xi}})}else ze===4?Re.ascender=Be.readSVarint():ze===5&&(Re.descender=Be.readSVarint())}function xP(ze,Re,Be){ze===1?Re.id=Be.readVarint():ze===2?Re.bitmap=Be.readBytes():ze===3?Re.width=Be.readVarint():ze===4?Re.height=Be.readVarint():ze===5?Re.left=Be.readSVarint():ze===6?Re.top=Be.readSVarint():ze===7&&(Re.advance=Be.readVarint())}const jv=j1;function W1(ze){let Re=0,Be=0;for(const ni of ze)Re+=ni.w*ni.h,Be=Math.max(Be,ni.w);ze.sort((ni,li)=>li.h-ni.h);const He=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(Re/.95)),Be),h:1/0}];let We=0,Ye=0;for(const ni of ze)for(let li=He.length-1;li>=0;li--){const yi=He[li];if(!(ni.w>yi.w||ni.h>yi.h)){if(ni.x=yi.x,ni.y=yi.y,Ye=Math.max(Ye,ni.y+ni.h),We=Math.max(We,ni.x+ni.w),ni.w===yi.w&&ni.h===yi.h){const xi=He.pop();li<He.length&&(He[li]=xi)}else ni.h===yi.h?(yi.x+=ni.w,yi.w-=ni.w):ni.w===yi.w?(yi.y+=ni.h,yi.h-=ni.h):(He.push({x:yi.x+ni.w,y:yi.y,w:yi.w-ni.w,h:ni.h}),yi.y+=ni.h,yi.h-=ni.h);break}}return{w:We,h:Ye,fill:Re/(We*Ye)||0}}const qu=1;class q1{constructor(Re,{pixelRatio:Be,version:He,stretchX:We,stretchY:Ye,content:ni}){this.paddedRect=Re,this.pixelRatio=Be,this.stretchX=We,this.stretchY=Ye,this.content=ni,this.version=He}get tl(){return[this.paddedRect.x+qu,this.paddedRect.y+qu]}get br(){return[this.paddedRect.x+this.paddedRect.w-qu,this.paddedRect.y+this.paddedRect.h-qu]}get displaySize(){return[(this.paddedRect.w-2*qu)/this.pixelRatio,(this.paddedRect.h-2*qu)/this.pixelRatio]}}class BS{constructor(Re,Be){const He={},We={};this.haveRenderCallbacks=[];const Ye=[];this.addImages(Re,He,Ye),this.addImages(Be,We,Ye);const{w:ni,h:li}=W1(Ye),yi=new fa({width:ni||1,height:li||1});for(const xi in Re){const Pi=Re[xi],Ni=He[xi].paddedRect;fa.copy(Pi.data,yi,{x:0,y:0},{x:Ni.x+qu,y:Ni.y+qu},Pi.data)}for(const xi in Be){const Pi=Be[xi],Ni=We[xi].paddedRect,Wi=Ni.x+qu,rn=Ni.y+qu,un=Pi.data.width,gn=Pi.data.height;fa.copy(Pi.data,yi,{x:0,y:0},{x:Wi,y:rn},Pi.data),fa.copy(Pi.data,yi,{x:0,y:gn-1},{x:Wi,y:rn-1},{width:un,height:1}),fa.copy(Pi.data,yi,{x:0,y:0},{x:Wi,y:rn+gn},{width:un,height:1}),fa.copy(Pi.data,yi,{x:un-1,y:0},{x:Wi-1,y:rn},{width:1,height:gn}),fa.copy(Pi.data,yi,{x:0,y:0},{x:Wi+un,y:rn},{width:1,height:gn})}this.image=yi,this.iconPositions=He,this.patternPositions=We}addImages(Re,Be,He){for(const We in Re){const Ye=Re[We],ni={x:0,y:0,w:Ye.data.width+2*qu,h:Ye.data.height+2*qu};He.push(ni),Be[We]=new q1(ni,Ye),Ye.hasRenderCallback&&this.haveRenderCallbacks.push(We)}}patchUpdatedImages(Re,Be){this.haveRenderCallbacks=this.haveRenderCallbacks.filter(He=>Re.hasImage(He)),Re.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const He in Re.updatedImages)this.patchUpdatedImage(this.iconPositions[He],Re.getImage(He),Be),this.patchUpdatedImage(this.patternPositions[He],Re.getImage(He),Be)}patchUpdatedImage(Re,Be,He){if(!Re||!Be||Re.version===Be.version)return;Re.version=Be.version;const[We,Ye]=Re.tl;He.update(Be.data,void 0,{x:We,y:Ye})}}to(q1,"ImagePosition"),to(BS,"ImageAtlas");const Eh={horizontal:1,vertical:2,horizontalOnly:3},bu=-17;class Mu{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(Re,Be){const He=new Mu;return He.scale=Re||1,He.fontStack=Be,He}static forImage(Re){const Be=new Mu;return Be.imageName=Re,Be}}class l0{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(Re,Be){const He=new l0;for(let We=0;We<Re.sections.length;We++){const Ye=Re.sections[We];Ye.image?He.addImageSection(Ye):He.addTextSection(Ye,Be)}return He}length(){return this.text.length}getSection(Re){return this.sections[this.sectionIndex[Re]]}getSections(){return this.sections}getSectionIndex(Re){return this.sectionIndex[Re]}getCharCode(Re){return this.text.charCodeAt(Re)}verticalizePunctuation(Re){this.text=function(Be,He){let We="";for(let Ye=0;Ye<Be.length;Ye++){const ni=Be.charCodeAt(Ye+1)||null,li=Be.charCodeAt(Ye-1)||null;We+=!He&&(ni&&Gg(ni)&&!bf[Be[Ye+1]]||li&&Gg(li)&&!bf[Be[Ye-1]])||!bf[Be[Ye]]?Be[Ye]:bf[Be[Ye]]}return We}(this.text,Re)}trim(){let Re=0;for(let He=0;He<this.text.length&&Wv[this.text.charCodeAt(He)];He++)Re++;let Be=this.text.length;for(let He=this.text.length-1;He>=0&&He>=Re&&Wv[this.text.charCodeAt(He)];He--)Be--;this.text=this.text.substring(Re,Be),this.sectionIndex=this.sectionIndex.slice(Re,Be)}substring(Re,Be){const He=new l0;return He.text=this.text.substring(Re,Be),He.sectionIndex=this.sectionIndex.slice(Re,Be),He.sections=this.sections,He}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((Re,Be)=>Math.max(Re,this.sections[Be].scale),0)}addTextSection(Re,Be){this.text+=Re.text,this.sections.push(Mu.forText(Re.scale,Re.fontStack||Be));const He=this.sections.length-1;for(let We=0;We<Re.text.length;++We)this.sectionIndex.push(He)}
219addImageSection(Re){const Be=Re.image?Re.image.name:"";if(Be.length===0)return void Mn("Can't add FormattedSection with an empty image.");const He=this.getNextImageSectionCharCode();He?(this.text+=String.fromCharCode(He),this.sections.push(Mu.forImage(Be)),this.sectionIndex.push(this.sections.length-1)):Mn("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function X1(ze,Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn,un){const gn=l0.fromFeature(ze,We);Ni===Eh.vertical&&gn.verticalizePunctuation(Wi);let kn=[];const jn=function(pr,Zr,Gr,us,$s,Qr){if(!pr)return[];const ys=[],vs=function(Ks,fo,Qs,Ko,Bs,Co){let Jo=0;for(let Ga=0;Ga<Ks.length();Ga++){const Qo=Ks.getSection(Ga);Jo+=VS(Ks.getCharCode(Ga),Qo,Ko,Bs,fo,Co)}return Jo/Math.max(1,Math.ceil(Jo/Qs))}(pr,Zr,Gr,us,$s,Qr),ks=pr.text.indexOf("​")>=0;let zs=0;for(let Ks=0;Ks<pr.length();Ks++){const fo=pr.getSection(Ks),Qs=pr.getCharCode(Ks);if(Wv[Qs]||(zs+=VS(Qs,fo,us,$s,Zr,Qr)),Ks<pr.length()-1){const Ko=!((as=Qs)<11904||!(Gs["Bopomofo Extended"](as)||Gs.Bopomofo(as)||Gs["CJK Compatibility Forms"](as)||Gs["CJK Compatibility Ideographs"](as)||Gs["CJK Compatibility"](as)||Gs["CJK Radicals Supplement"](as)||Gs["CJK Strokes"](as)||Gs["CJK Symbols and Punctuation"](as)||Gs["CJK Unified Ideographs Extension A"](as)||Gs["CJK Unified Ideographs"](as)||Gs["Enclosed CJK Letters and Months"](as)||Gs["Halfwidth and Fullwidth Forms"](as)||Gs.Hiragana(as)||Gs["Ideographic Description Characters"](as)||Gs["Kangxi Radicals"](as)||Gs["Katakana Phonetic Extensions"](as)||Gs.Katakana(as)||Gs["Vertical Forms"](as)||Gs["Yi Radicals"](as)||Gs["Yi Syllables"](as)));(NS[Qs]||Ko||fo.imageName)&&ys.push(Z1(Ks+1,zs,vs,ys,wP(Qs,pr.getCharCode(Ks+1),Ko&&ks),!1))}}var as;return US(Z1(pr.length(),zs,vs,ys,0,!0))}(gn,xi,Ye,Re,He,rn),{processBidirectionalText:ar,processStyledBidirectionalText:Wn}=Mi;if(ar&&gn.sections.length===1){const pr=ar(gn.toString(),jn);for(const Zr of pr){const Gr=new l0;Gr.text=Zr,Gr.sections=gn.sections;for(let us=0;us<Zr.length;us++)Gr.sectionIndex.push(0);kn.push(Gr)}}else if(Wn){const pr=Wn(gn.text,gn.sectionIndex,jn);for(const Zr of pr){const Gr=new l0;Gr.text=Zr[0],Gr.sectionIndex=Zr[1],Gr.sections=gn.sections,kn.push(Gr)}}else kn=function(pr,Zr){const Gr=[],us=pr.text;let $s=0;for(const Qr of Zr)Gr.push(pr.substring($s,Qr)),$s=Qr;return $s<us.length&&Gr.push(pr.substring($s,us.length)),Gr}(gn,jn);const sr=[],fr={positionedLines:sr,text:gn.toString(),top:Pi[1],bottom:Pi[1],left:Pi[0],right:Pi[0],writingMode:Ni,iconsInText:!1,verticalizable:!1,hasBaseline:!1};
vendor: 17,809 bytes, line 219
219return function(pr,Zr,Gr,us,$s,Qr,ys,vs,ks,zs,as,Ks){let fo=0,Qs=0,Ko=0;const Bs=vs==="right"?1:vs==="left"?0:.5;let Co=!1;for(const ra of $s){const sa=ra.getSections();for(const gl of sa){if(gl.imageName)continue;const El=Zr[gl.fontStack];if(El&&(Co=El.ascender!==void 0&&El.descender!==void 0,!Co))break}if(!Co)break}let Jo=0;for(const ra of $s){ra.trim();const sa=ra.getMaxScale(),gl=(sa-1)*ru,El={positionedGlyphs:[],lineOffset:0};pr.positionedLines[Jo]=El;const Cl=El.positionedGlyphs;let yl=0;if(!ra.length()){Qs+=Qr,++Jo;continue}let Yl=0,mc=0;for(let vl=0;vl<ra.length();vl++){const ou=ra.getSection(vl),Nc=ra.getSectionIndex(vl),rc=ra.getCharCode(vl);let Qa=ou.scale,Vc=null,Al=null,ih=null,Hc=ru,Xu=0;const Pu=!(ks===Eh.horizontal||!as&&!If(rc)||as&&(Wv[rc]||(Ga=rc,Gs.Arabic(Ga)||Gs["Arabic Supplement"](Ga)||Gs["Arabic Extended-A"](Ga)||Gs["Arabic Presentation Forms-A"](Ga)||Gs["Arabic Presentation Forms-B"](Ga))));if(ou.imageName){const nh=us[ou.imageName];if(!nh)continue;ih=ou.imageName,pr.iconsInText=pr.iconsInText||!0,Al=nh.paddedRect;const Iu=nh.displaySize;Qa=Qa*ru/Ks,Vc={width:Iu[0],height:Iu[1],left:qu,top:-jv,advance:Pu?Iu[1]:Iu[0],localGlyph:!1},Xu=Co?-Vc.height*Qa:bu+sa*ru-Iu[1]*Qa,Hc=Vc.advance;const Xf=(Pu?Iu[0]:Iu[1])*Qa-ru*sa;Xf>0&&Xf>yl&&(yl=Xf)}else{const nh=Gr[ou.fontStack];if(!nh)continue;nh[rc]&&(Al=nh[rc]);const Iu=Zr[ou.fontStack];if(!Iu)continue;const Xf=Iu.glyphs[rc];if(!Xf)continue;if(Vc=Xf.metrics,Hc=rc!==8203?ru:0,Co){const s_=Iu.ascender!==void 0?Math.abs(Iu.ascender):0,pb=Iu.descender!==void 0?Math.abs(Iu.descender):0,fb=(s_+pb)*Qa;Yl<fb&&(Yl=fb,mc=(s_-pb)/2*Qa),Xu=-s_*Qa}else Xu=bu+(sa-Qa)*ru}Pu?(pr.verticalizable=!0,Cl.push({glyph:rc,imageName:ih,x:fo,y:Qs+Xu,vertical:Pu,scale:Qa,localGlyph:Vc.localGlyph,fontStack:ou.fontStack,sectionIndex:Nc,metrics:Vc,rect:Al}),fo+=Hc*Qa+zs):(Cl.push({glyph:rc,imageName:ih,x:fo,y:Qs+Xu,vertical:Pu,scale:Qa,localGlyph:Vc.localGlyph,fontStack:ou.fontStack,sectionIndex:Nc,metrics:Vc,rect:Al}),fo+=Vc.advance*Qa+zs)}Cl.length!==0&&(Ko=Math.max(fo-zs,Ko),Co?GS(Cl,Bs,yl,mc,Qr*sa/2):GS(Cl,Bs,yl,0,Qr/2)),fo=0;const Bc=Qr*sa+yl;El.lineOffset=Math.max(yl,gl),Qs+=Bc,++Jo}var Ga;const Qo=Qs,{horizontalAlign:Mo,verticalAlign:$l}=Y1(ys);(function(ra,sa,gl,El,Cl,yl){const Yl=(sa-gl)*Cl,mc=-yl*El;for(const Bc of ra)for(const vl of Bc.positionedGlyphs)vl.x+=Yl,vl.y+=mc})(pr.positionedLines,Bs,Mo,$l,Ko,Qo),pr.top+=-$l*Qo,pr.bottom=pr.top+Qo,pr.left+=-Mo*Ko,pr.right=pr.left+Ko,pr.hasBaseline=Co}(fr,Re,Be,He,kn,ni,li,yi,Ni,xi,Wi,un),!function(pr){for(const Zr of pr)if(Zr.positionedGlyphs.length!==0)return!1;return!0}(sr)&&fr}const Wv={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},NS={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function VS(ze,Re,Be,He,We,Ye){if(Re.imageName){const ni=He[Re.imageName];return ni?ni.displaySize[0]*Re.scale*ru/Ye+We:0}{const ni=Be[Re.fontStack],li=ni&&ni.glyphs[ze];return li?li.metrics.advance*Re.scale+We:0}}function HS(ze,Re,Be,He){const We=Math.pow(ze-Re,2);return He?ze<Re?We/2:2*We:We+Math.abs(Be)*Be}function wP(ze,Re,Be){let He=0;return ze===10&&(He-=1e4),Be&&(He+=150),ze!==40&&ze!==65288||(He+=50),Re!==41&&Re!==65289||(He+=50),He}function Z1(ze,Re,Be,He,We,Ye){let ni=null,li=HS(Re,Be,We,Ye);for(const yi of He){const xi=HS(Re-yi.x,Be,We,Ye)+yi.badness;xi<=li&&(ni=yi,li=xi)}return{index:ze,x:Re,priorBreak:ni,badness:li}}function US(ze){return ze?US(ze.priorBreak).concat(ze.index):[]}function Y1(ze){let Re=.5,Be=.5;switch(ze){case"right":case"top-right":case"bottom-right":Re=1;break;case"left":case"top-left":case"bottom-left":Re=0}switch(ze){case"bottom":case"bottom-right":case"bottom-left":Be=1;break;case"top":case"top-right":case"top-left":Be=0}return{horizontalAlign:Re,verticalAlign:Be}}function GS(ze,Re,Be,He,We){if(!(Re||Be||He||We))return;const Ye=ze.length-1,ni=ze[Ye],li=(ni.x+ni.metrics.advance*ni.scale)*Re;for(let yi=0;yi<=Ye;yi++)ze[yi].x-=li,ze[yi].y+=Be+He+We}function jS(ze,Re,Be){const{horizontalAlign:He,verticalAlign:We}=Y1(Be),Ye=Re[0]-ze.displaySize[0]*He,ni=Re[1]-ze.displaySize[1]*We;return{image:ze,top:ni,bottom:ni+ze.displaySize[1],left:Ye,right:Ye+ze.displaySize[0]}}function K1(ze,Re,Be,He,We,Ye){const ni=ze.image;let li;if(ni.content){const kn=ni.content,jn=ni.pixelRatio||1;li=[kn[0]/jn,kn[1]/jn,ni.displaySize[0]-kn[2]/jn,ni.displaySize[1]-kn[3]/jn]}const yi=Re.left*Ye,xi=Re.right*Ye;let Pi,Ni,Wi,rn;Be==="width"||Be==="both"?(rn=We[0]+yi-He[3],Ni=We[0]+xi+He[1]):(rn=We[0]+(yi+xi-ni.displaySize[0])/2,Ni=rn+ni.displaySize[0]);const un=Re.top*Ye,gn=Re.bottom*Ye;return Be==="height"||Be==="both"?(Pi=We[1]+un-He[0],Wi=We[1]+gn+He[2]):(Pi=We[1]+(un+gn-ni.displaySize[1])/2,Wi=Pi+ni.displaySize[1]),{image:ni,top:Pi,right:Ni,bottom:Wi,left:rn,collisionPadding:li}}class Wf extends Gi{constructor(Re,Be,He,We,Ye){super(Re,Be),this.angle=We,this.z=He,Ye!==void 0&&(this.segment=Ye)}clone(){return new Wf(this.x,this.y,this.z,this.angle,this.segment)}}function WS(ze,Re,Be,He,We){if(Re.segment===void 0)return!0;let Ye=Re,ni=Re.segment+1,li=0;for(;li>-Be/2;){if(ni--,ni<0)return!1;li-=ze[ni].dist(Ye),Ye=ze[ni]}li+=ze[ni].dist(ze[ni+1]),ni++;const yi=[];let xi=0;for(;li<Be/2;){const Pi=ze[ni],Ni=ze[ni+1];if(!Ni)return!1;let Wi=ze[ni-1].angleTo(Pi)-Pi.angleTo(Ni);for(Wi=Math.abs((Wi+3*Math.PI)%(2*Math.PI)-Math.PI),yi.push({distance:li,angleDelta:Wi}),xi+=Wi;li-yi[0].distance>He;)xi-=yi.shift().angleDelta;if(xi>We)return!1;ni++,li+=Pi.dist(Ni)}return!0}function qS(ze){let Re=0;for(let Be=0;Be<ze.length-1;Be++)Re+=ze[Be].dist(ze[Be+1]);return Re}function XS(ze,Re,Be){return ze?.6*Re*Be:0}function sg(ze,Re){return Math.max(ze?ze.right-ze.left:0,Re?Re.right-Re.left:0)}function SP(ze,Re,Be,He,We,Ye){const ni=XS(Be,We,Ye),li=sg(Be,He)*Ye;let yi=0;const xi=qS(ze)/2;for(let Pi=0;Pi<ze.length-1;Pi++){const Ni=ze[Pi],Wi=ze[Pi+1],rn=Ni.dist(Wi);if(yi+rn>xi){const un=(xi-yi)/rn,gn=qo(Ni.x,Wi.x,un),kn=qo(Ni.y,Wi.y,un),jn=new Wf(gn,kn,0,Wi.angleTo(Ni),Pi);return!ni||WS(ze,jn,li,ni,Re)?jn:void 0}yi+=rn}}function TP(ze,Re,Be,He,We,Ye,ni,li,yi){const xi=XS(He,Ye,ni),Pi=sg(He,We),Ni=Pi*ni,Wi=ze[0].x===0||ze[0].x===yi||ze[0].y===0||ze[0].y===yi;return Re-Ni<Re/4&&(Re=Ni+Re/4),ZS(ze,Wi?Re/2*li%Re:(Pi/2+2*Ye)*ni*li%Re,Re,xi,Be,Ni,Wi,!1,yi)}function ZS(ze,Re,Be,He,We,Ye,ni,li,yi){const xi=Ye/2,Pi=qS(ze);let Ni=0,Wi=Re-Be,rn=[];for(let un=0;un<ze.length-1;un++){const gn=ze[un],kn=ze[un+1],jn=gn.dist(kn),ar=kn.angleTo(gn);for(;Wi+Be<Ni+jn;){Wi+=Be;const Wn=(Wi-Ni)/jn,sr=qo(gn.x,kn.x,Wn),fr=qo(gn.y,kn.y,Wn);if(sr>=0&&sr<yi&&fr>=0&&fr<yi&&Wi-xi>=0&&Wi+xi<=Pi){const pr=new Wf(sr,fr,0,ar,un);pr._round(),He&&!WS(ze,pr,Ye,He,We)||rn.push(pr)}}Ni+=jn}return li||rn.length||ni||(rn=ZS(ze,Ni/2,Be,He,We,Ye,ni,!0,yi)),rn}function YS(ze,Re,Be,He,We){const Ye=[];for(let ni=0;ni<ze.length;ni++){const li=ze[ni];let yi;for(let xi=0;xi<li.length-1;xi++){let Pi=li[xi],Ni=li[xi+1];Pi.x<Re&&Ni.x<Re||(Pi.x<Re?Pi=new Gi(Re,Pi.y+(Re-Pi.x)/(Ni.x-Pi.x)*(Ni.y-Pi.y))._round():Ni.x<Re&&(Ni=new Gi(Re,Pi.y+(Re-Pi.x)/(Ni.x-Pi.x)*(Ni.y-Pi.y))._round()),Pi.y<Be&&Ni.y<Be||(Pi.y<Be?Pi=new Gi(Pi.x+(Be-Pi.y)/(Ni.y-Pi.y)*(Ni.x-Pi.x),Be)._round():Ni.y<Be&&(Ni=new Gi(Pi.x+(Be-Pi.y)/(Ni.y-Pi.y)*(Ni.x-Pi.x),Be)._round()),Pi.x>=He&&Ni.x>=He||(Pi.x>=He?Pi=new Gi(He,Pi.y+(He-Pi.x)/(Ni.x-Pi.x)*(Ni.y-Pi.y))._round():Ni.x>=He&&(Ni=new Gi(He,Pi.y+(He-Pi.x)/(Ni.x-Pi.x)*(Ni.y-Pi.y))._round()),Pi.y>=We&&Ni.y>=We||(Pi.y>=We?Pi=new Gi(Pi.x+(We-Pi.y)/(Ni.y-Pi.y)*(Ni.x-Pi.x),We)._round():Ni.y>=We&&(Ni=new Gi(Pi.x+(We-Pi.y)/(Ni.y-Pi.y)*(Ni.x-Pi.x),We)._round()),yi&&Pi.equals(yi[yi.length-1])||(yi=[Pi],Ye.push(yi)),yi.push(Ni)))))}}return Ye}to(Wf,"Anchor");const wy=1e20;function J1(ze,Re,Be,He,We,Ye,ni,li,yi){for(let xi=Re;xi<Re+He;xi++)Q1(ze,Be*Ye+xi,Ye,We,ni,li,yi);for(let xi=Be;xi<Be+We;xi++)Q1(ze,xi*Ye+Re,1,He,ni,li,yi)}function Q1(ze,Re,Be,He,We,Ye,ni){Ye[0]=0,ni[0]=-wy,ni[1]=wy,We[0]=ze[Re];for(let li=1,yi=0,xi=0;li<He;li++){We[li]=ze[Re+li*Be];const Pi=li*li;do{const Ni=Ye[yi];xi=(We[li]-We[Ni]+Pi-Ni*Ni)/(li-Ni)/2}while(xi<=ni[yi]&&--yi>-1);yi++,Ye[yi]=li,ni[yi]=xi,ni[yi+1]=wy}for(let li=0,yi=0;li<He;li++){for(;ni[yi+1]<li;)yi++;const xi=Ye[yi],Pi=li-xi;ze[Re+li*Be]=We[xi]+Pi*Pi}}const Np=2,eb={none:0,ideographs:1,all:2};class c0{constructor(Re,Be,He){this.requestManager=Re,this.localGlyphMode=Be,this.localFontFamily=He,this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}}}setURL(Re){this.url=Re}getGlyphs(Re,Be){const He=[];for(const We in Re)for(const Ye of Re[We])He.push({stack:We,id:Ye});wi(He,({stack:We,id:Ye},ni)=>{let li=this.entries[We];li||(li=this.entries[We]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let yi=li.glyphs[Ye];if(yi!==void 0)return void ni(null,{stack:We,id:Ye,glyph:yi});if(yi=this._tinySDF(li,We,Ye),yi)return li.glyphs[Ye]=yi,void ni(null,{stack:We,id:Ye,glyph:yi});const xi=Math.floor(Ye/256);if(256*xi>65535)return void ni(new Error("glyphs > 65535 not supported"));if(li.ranges[xi])return void ni(null,{stack:We,id:Ye,glyph:yi});let Pi=li.requests[xi];Pi||(Pi=li.requests[xi]=[],c0.loadGlyphRange(We,xi,this.url,this.requestManager,(Ni,Wi)=>{if(Wi){li.ascender=Wi.ascender,li.descender=Wi.descender;for(const rn in Wi.glyphs)this._doesCharSupportLocalGlyph(+rn)||(li.glyphs[+rn]=Wi.glyphs[+rn]);li.ranges[xi]=!0}for(const rn of Pi)rn(Ni,Wi);delete li.requests[xi]})),Pi.push((Ni,Wi)=>{Ni?ni(Ni):Wi&&ni(null,{stack:We,id:Ye,glyph:Wi.glyphs[Ye]||null})})},(We,Ye)=>{if(We)Be(We);else if(Ye){const ni={};for(const{stack:li,id:yi,glyph:xi}of Ye)ni[li]===void 0&&(ni[li]={}),ni[li].glyphs===void 0&&(ni[li].glyphs={}),ni[li].glyphs[yi]=xi&&{id:xi.id,bitmap:xi.bitmap.clone(),metrics:xi.metrics},ni[li].ascender=this.entries[li].ascender,ni[li].descender=this.entries[li].descender;Be(null,ni)}})}_doesCharSupportLocalGlyph(Re){return this.localGlyphMode!==eb.none&&(this.localGlyphMode===eb.all?!!this.localFontFamily:!!this.localFontFamily&&(Gs["CJK Unified Ideographs"](Re)||Gs["Hangul Syllables"](Re)||Gs.Hiragana(Re)||Gs.Katakana(Re)||Gs["CJK Symbols and Punctuation"](Re)))}_tinySDF(Re,Be,He){const We=this.localFontFamily;if(!We||!this._doesCharSupportLocalGlyph(He))return;let Ye=Re.tinySDF;if(!Ye){let gn="400";/bold/i.test(Be)?gn="900":/medium/i.test(Be)?gn="500":/light/i.test(Be)&&(gn="200"),Ye=Re.tinySDF=new c0.TinySDF({fontFamily:We,fontWeight:gn,fontSize:24*Np,buffer:3*Np,radius:8*Np}),Ye.fontWeight=gn}if(this.localGlyphs[Ye.fontWeight][He])return this.localGlyphs[Ye.fontWeight][He];const ni=String.fromCharCode(He),{data:li,width:yi,height:xi,glyphWidth:Pi,glyphHeight:Ni,glyphLeft:Wi,glyphTop:rn,glyphAdvance:un}=Ye.draw(ni);return this.localGlyphs[Ye.fontWeight][He]={id:He,bitmap:new Qd({width:yi,height:xi},li),metrics:{width:Pi/Np,height:Ni/Np,left:Wi/Np,top:rn/Np-27,advance:un/Np,localGlyph:!0}}}}c0.loadGlyphRange=function(ze,Re,Be,He,We){const Ye=256*Re,ni=Ye+255,li=He.transformRequest(He.normalizeGlyphsURL(Be).replace("{fontstack}",ze).replace("{range}",`${Ye}-${ni}`),$a.Glyphs);Fa(li,(yi,xi)=>{if(yi)We(yi);else if(xi){const Pi={},Ni=function(Wi){return new Gv(Wi).readFields(_P,{})}(xi);for(const Wi of Ni.glyphs)Pi[Wi.id]=Wi;We(null,{glyphs:Pi,ascender:Ni.ascender,descender:Ni.descender})}})},c0.TinySDF=class{constructor({fontSize:ze=24,buffer:Re=3,radius:Be=8,cutoff:He=.25,fontFamily:We="sans-serif",fontWeight:Ye="normal",fontStyle:ni="normal"}={}){this.buffer=Re,this.cutoff=He,this.radius=Be;const li=this.size=ze+4*Re,yi=this._createCanvas(li),xi=this.ctx=yi.getContext("2d",{willReadFrequently:!0});xi.font=`${ni} ${Ye} ${ze}px ${We}`,xi.textBaseline="alphabetic",xi.textAlign="left",xi.fillStyle="black",this.gridOuter=new Float64Array(li*li),this.gridInner=new Float64Array(li*li),this.f=new Float64Array(li),this.z=new Float64Array(li+1),this.v=new Uint16Array(li)}_createCanvas(ze){const Re=document.createElement("canvas");return Re.width=Re.height=ze,Re}draw(ze){const{width:Re,actualBoundingBoxAscent:Be,actualBoundingBoxDescent:He,actualBoundingBoxLeft:We,actualBoundingBoxRight:Ye}=this.ctx.measureText(ze),ni=Math.ceil(Be),li=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(Ye-We))),yi=Math.min(this.size-this.buffer,ni+Math.ceil(He)),xi=li+2*this.buffer,Pi=yi+2*this.buffer,Ni=Math.max(xi*Pi,0),Wi=new Uint8ClampedArray(Ni),rn={data:Wi,width:xi,height:Pi,glyphWidth:li,glyphHeight:yi,glyphTop:ni,glyphLeft:0,glyphAdvance:Re};if(li===0||yi===0)return rn;const{ctx:un,buffer:gn,gridInner:kn,gridOuter:jn}=this;un.clearRect(gn,gn,li,yi),un.fillText(ze,gn,gn+ni);const ar=un.getImageData(gn,gn,li,yi);jn.fill(wy,0,Ni),kn.fill(0,0,Ni);for(let Wn=0;Wn<yi;Wn++)for(let sr=0;sr<li;sr++){const fr=ar.data[4*(Wn*li+sr)+3]/255;if(fr===0)continue;const pr=(Wn+gn)*xi+sr+gn;if(fr===1)jn[pr]=0,kn[pr]=wy;else{const Zr=.5-fr;jn[pr]=Zr>0?Zr*Zr:0,kn[pr]=Zr<0?Zr*Zr:0}}J1(jn,0,0,xi,Pi,xi,this.f,this.v,this.z),J1(kn,gn,gn,li,yi,xi,this.f,this.v,this.z);for(let Wn=0;Wn<Ni;Wn++){const sr=Math.sqrt(jn[Wn])-Math.sqrt(kn[Wn]);Wi[Wn]=Math.round(255-255*(sr/this.radius+this.cutoff))}return rn}};const u0=qu;function KS(ze,Re,Be,He){const We=[],Ye=ze.image,ni=Ye.pixelRatio,li=Ye.paddedRect.w-2*u0,yi=Ye.paddedRect.h-2*u0,xi=ze.right-ze.left,Pi=ze.bottom-ze.top,Ni=Ye.stretchX||[[0,li]],Wi=Ye.stretchY||[[0,yi]],rn=(Qr,ys)=>Qr+ys[1]-ys[0],un=Ni.reduce(rn,0),gn=Wi.reduce(rn,0),kn=li-un,jn=yi-gn;let ar=0,Wn=un,sr=0,fr=gn,pr=0,Zr=kn,Gr=0,us=jn;if(Ye.content&&He){const Qr=Ye.content;ar=qv(Ni,0,Qr[0]),sr=qv(Wi,0,Qr[1]),Wn=qv(Ni,Qr[0],Qr[2]),fr=qv(Wi,Qr[1],Qr[3]),pr=Qr[0]-ar,Gr=Qr[1]-sr,Zr=Qr[2]-Qr[0]-Wn,us=Qr[3]-Qr[1]-fr}const $s=(Qr,ys,vs,ks)=>{const zs=Xv(Qr.stretch-ar,Wn,xi,ze.left),as=Zv(Qr.fixed-pr,Zr,Qr.stretch,un),Ks=Xv(ys.stretch-sr,fr,Pi,ze.top),fo=Zv(ys.fixed-Gr,us,ys.stretch,gn),Qs=Xv(vs.stretch-ar,Wn,xi,ze.left),Ko=Zv(vs.fixed-pr,Zr,vs.stretch,un),Bs=Xv(ks.stretch-sr,fr,Pi,ze.top),Co=Zv(ks.fixed-Gr,us,ks.stretch,gn),Jo=new Gi(zs,Ks),Ga=new Gi(Qs,Ks),Qo=new Gi(Qs,Bs),Mo=new Gi(zs,Bs),$l=new Gi(as/ni,fo/ni),ra=new Gi(Ko/ni,Co/ni),sa=Re*Math.PI/180;if(sa){const Cl=Math.sin(sa),yl=Math.cos(sa),Yl=[yl,-Cl,Cl,yl];Jo._matMult(Yl),Ga._matMult(Yl),Mo._matMult(Yl),Qo._matMult(Yl)}const gl=Qr.stretch+Qr.fixed,El=ys.stretch+ys.fixed;return{tl:Jo,tr:Ga,bl:Mo,br:Qo,tex:{x:Ye.paddedRect.x+u0+gl,y:Ye.paddedRect.y+u0+El,w:vs.stretch+vs.fixed-gl,h:ks.stretch+ks.fixed-El},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:$l,pixelOffsetBR:ra,minFontScaleX:Zr/ni/xi,minFontScaleY:us/ni/Pi,isSDF:Be}};if(He&&(Ye.stretchX||Ye.stretchY)){const Qr=JS(Ni,kn,un),ys=JS(Wi,jn,gn);for(let vs=0;vs<Qr.length-1;vs++){const ks=Qr[vs],zs=Qr[vs+1];for(let as=0;as<ys.length-1;as++)We.push($s(ks,ys[as],zs,ys[as+1]))}}else We.push($s({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:li+1},{fixed:0,stretch:yi+1}));return We}function qv(ze,Re,Be){let He=0;for(const We of ze)He+=Math.max(Re,Math.min(Be,We[1]))-Math.max(Re,Math.min(Be,We[0]));return He}function JS(ze,Re,Be){const He=[{fixed:-u0,stretch:0}];for(const[We,Ye]of ze){const ni=He[He.length-1];He.push({fixed:We-ni.stretch,stretch:ni.stretch}),He.push({fixed:We-ni.stretch,stretch:ni.stretch+(Ye-We)})}return He.push({fixed:Re+u0,stretch:Be}),He}function Xv(ze,Re,Be,He){return ze/Re*Be+He}function Zv(ze,Re,Be,He){return ze-Re*Be/He}function EP(ze,Re,Be,He){const We=Re+ze.positionedLines[He].lineOffset;return He===0?Be+We/2:Be+(We+(Re+ze.positionedLines[He-1].lineOffset))/2}class CP{constructor(Re=[],Be=AP){if(this.data=Re,this.length=this.data.length,this.compare=Be,this.length>0)for(let He=(this.length>>1)-1;He>=0;He--)this._down(He)}push(Re){this.data.push(Re),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const Re=this.data[0],Be=this.data.pop();return this.length--,this.length>0&&(this.data[0]=Be,this._down(0)),Re}peek(){return this.data[0]}_up(Re){const{data:Be,compare:He}=this,We=Be[Re];for(;Re>0;){const Ye=Re-1>>1,ni=Be[Ye];if(He(We,ni)>=0)break;Be[Re]=ni,Re=Ye}Be[Re]=We}_down(Re){const{data:Be,compare:He}=this,We=this.length>>1,Ye=Be[Re];for(;Re<We;){let ni=1+(Re<<1),li=Be[ni];const yi=ni+1;if(yi<this.length&&He(Be[yi],li)<0&&(ni=yi,li=Be[yi]),He(li,Ye)>=0)break;Be[Re]=li,Re=ni}Be[Re]=Ye}}function AP(ze,Re){return ze<Re?-1:ze>Re?1:0}function DP(ze,Re=1,Be=!1){let He=1/0,We=1/0,Ye=-1/0,ni=-1/0;const li=ze[0];for(let rn=0;rn<li.length;rn++){const un=li[rn];(!rn||un.x<He)&&(He=un.x),(!rn||un.y<We)&&(We=un.y),(!rn||un.x>Ye)&&(Ye=un.x),(!rn||un.y>ni)&&(ni=un.y)}const yi=Math.min(Ye-He,ni-We);let xi=yi/2;const Pi=new CP([],MP);if(yi===0)return new Gi(He,We);for(let rn=He;rn<Ye;rn+=yi)for(let un=We;un<ni;un+=yi)Pi.push(new d0(rn+xi,un+xi,xi,ze));let Ni=function(rn){let un=0,gn=0,kn=0;const jn=rn[0];for(let ar=0,Wn=jn.length,sr=Wn-1;ar<Wn;sr=ar++){const fr=jn[ar],pr=jn[sr],Zr=fr.x*pr.y-pr.x*fr.y;gn+=(fr.x+pr.x)*Zr,kn+=(fr.y+pr.y)*Zr,un+=3*Zr}return new d0(gn/un,kn/un,0,rn)}(ze),Wi=Pi.length;for(;Pi.length;){const rn=Pi.pop();(rn.d>Ni.d||!Ni.d)&&(Ni=rn,Be&&console.log("found best %d after %d probes",Math.round(1e4*rn.d)/1e4,Wi)),rn.max-Ni.d<=Re||(xi=rn.h/2,Pi.push(new d0(rn.p.x-xi,rn.p.y-xi,xi,ze)),Pi.push(new d0(rn.p.x+xi,rn.p.y-xi,xi,ze)),Pi.push(new d0(rn.p.x-xi,rn.p.y+xi,xi,ze)),Pi.push(new d0(rn.p.x+xi,rn.p.y+xi,xi,ze)),Wi+=4)}return Be&&(console.log(`num probes: ${Wi}`),console.log(`best distance: ${Ni.d}`)),Ni.p}function MP(ze,Re){return Re.max-ze.max}class d0{constructor(Re,Be,He,We){this.p=new Gi(Re,Be),this.h=He,this.d=function(Ye,ni){let li=!1,yi=1/0;for(let xi=0;xi<ni.length;xi++){const Pi=ni[xi];for(let Ni=0,Wi=Pi.length,rn=Wi-1;Ni<Wi;rn=Ni++){const un=Pi[Ni],gn=Pi[rn];un.y>Ye.y!=gn.y>Ye.y&&Ye.x<(gn.x-un.x)*(Ye.y-un.y)/(gn.y-un.y)+un.x&&(li=!li),yi=Math.min(yi,Ll(Ye,un,gn))}}return(li?1:-1)*Math.sqrt(yi)}(this.p,We),this.max=this.d+this.h*Math.SQRT2}}const h0=7,tb=Number.POSITIVE_INFINITY,kP=Math.sqrt(2);function QS(ze,[Re,Be]){let He=0,We=0;
219if(Be===tb){Re<0&&(Re=0);const Ye=Re/kP;switch(ze){case"top-right":case"top-left":We=Ye-h0;break;case"bottom-right":case"bottom-left":We=-Ye+h0;break;case"bottom":We=-Re+h0;break;case"top":We=Re-h0}switch(ze){case"top-right":case"bottom-right":He=-Ye;break;case"top-left":case"bottom-left":He=Ye;break;case"left":He=Re;break;case"right":He=-Re}}else{switch(Re=Math.abs(Re),Be=Math.abs(Be),ze){case"top-right":case"top-left":case"top":We=Be-h0;break;case"bottom-right":case"bottom-left":case"bottom":We=-Be+h0}switch(ze){case"top-right":case"bottom-right":case"right":He=-Re;break;case"top-left":case"bottom-left":case"left":He=Re}}return[He,We]}function PP(ze,Re,Be,He,We,Ye,ni,li,yi,xi){ze.createArrays(),ze.tilePixelRatio=So/(512*ze.overscaling),ze.compareText={},ze.iconsNeedLinear=!1;const Pi=ze.layers[0].layout,Ni=ze.layers[0]._unevaluatedLayout._values,Wi={};if(ze.textSizeData.kind==="composite"){const{minZoom:gn,maxZoom:kn}=ze.textSizeData;Wi.compositeTextSizes=[Ni["text-size"].possiblyEvaluate(new Fi(gn),li),Ni["text-size"].possiblyEvaluate(new Fi(kn),li)]}if(ze.iconSizeData.kind==="composite"){const{minZoom:gn,maxZoom:kn}=ze.iconSizeData;Wi.compositeIconSizes=[Ni["icon-size"].possiblyEvaluate(new Fi(gn),li),Ni["icon-size"].possiblyEvaluate(new Fi(kn),li)]}Wi.layoutTextSize=Ni["text-size"].possiblyEvaluate(new Fi(yi+1),li),Wi.layoutIconSize=Ni["icon-size"].possiblyEvaluate(new Fi(yi+1),li),Wi.textMaxSize=Ni["text-size"].possiblyEvaluate(new Fi(18),li);const rn=Pi.get("text-rotation-alignment")==="map"&&Pi.get("symbol-placement")!=="point",un=Pi.get("text-size");for(const gn of ze.features){const kn=Pi.get("text-font").evaluate(gn,{},li).join(","),jn=un.evaluate(gn,{},li),ar=Wi.layoutTextSize.evaluate(gn,{},li),Wn=(Wi.layoutIconSize.evaluate(gn,{},li),{horizontal:{},vertical:void 0}),sr=gn.text;let fr,pr=[0,0];if(sr){const us=sr.toString(),$s=Pi.get("text-letter-spacing").evaluate(gn,{},li)*ru,Qr=Pi.get("text-line-height").evaluate(gn,{},li)*ru,ys=Ug(us)?$s:0,vs=Pi.get("text-anchor").evaluate(gn,{},li),ks=Pi.get("text-variable-anchor");if(!ks){const Qs=Pi.get("text-radial-offset").evaluate(gn,{},li);pr=Qs?QS(vs,[Qs*ru,tb]):Pi.get("text-offset").evaluate(gn,{},li).map(Ko=>Ko*ru)}let zs=rn?"center":Pi.get("text-justify").evaluate(gn,{},li);const as=Pi.get("symbol-placement")==="point",Ks=as?Pi.get("text-max-width").evaluate(gn,{},li)*ru:1/0,fo=Qs=>{ze.allowVerticalPlacement&&um(us)&&(Wn.vertical=X1(sr,Re,Be,We,kn,Ks,Qr,vs,Qs,ys,pr,Eh.vertical,!0,ar,jn))};if(!rn&&ks){const Qs=zs==="auto"?ks.map(Bs=>ib(Bs)):[zs];let Ko=!1;for(let Bs=0;Bs<Qs.length;Bs++){const Co=Qs[Bs];if(!Wn.horizontal[Co])if(Ko)Wn.horizontal[Co]=Wn.horizontal[0];else{const Jo=X1(sr,Re,Be,We,kn,Ks,Qr,"center",Co,ys,pr,Eh.horizontal,!1,ar,jn);Jo&&(Wn.horizontal[Co]=Jo,Ko=Jo.positionedLines.length===1)}}fo("left")}else{if(zs==="auto"&&(zs=ib(vs)),as||Pi.get("text-writing-mode").indexOf("horizontal")>=0||!um(us)){const Qs=X1(sr,Re,Be,We,kn,Ks,Qr,vs,zs,ys,pr,Eh.horizontal,!1,ar,jn);Qs&&(Wn.horizontal[zs]=Qs)}fo(as?"left":zs)}}let Zr=!1;if(gn.icon&&gn.icon.name){const us=He[gn.icon.name];us&&(fr=jS(We[gn.icon.name],Pi.get("icon-offset").evaluate(gn,{},li),Pi.get("icon-anchor").evaluate(gn,{},li)),Zr=us.sdf,ze.sdfIcons===void 0?ze.sdfIcons=us.sdf:ze.sdfIcons!==us.sdf&&Mn("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(us.pixelRatio!==ze.pixelRatio||Pi.get("icon-rotate").constantOr(1)!==0)&&(ze.iconsNeedLinear=!0))}const Gr=Yv(Wn.horizontal)||Wn.vertical;ze.iconsInText||(ze.iconsInText=!!Gr&&Gr.iconsInText),(Gr||fr)&&IP(ze,gn,Wn,fr,He,Wi,ar,0,pr,Zr,ni,li,xi)}Ye&&ze.generateCollisionDebugBuffers(yi,ze.collisionBoxArray)}function ib(ze){switch(ze){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function IP(ze,Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi){let rn=Ye.textMaxSize.evaluate(Re,{},Ni);rn===void 0&&(rn=ni);const un=ze.layers[0].layout,gn=un.get("icon-offset").evaluate(Re,{},Ni),kn=Yv(Be.horizontal)||Be.vertical,jn=Wi.name==="globe",ar=ru,Wn=ni/ar,sr=ze.tilePixelRatio*rn/ar,fr=(vs=ze.overscaling,ze.zoom>18&&vs>2&&(vs>>=1),Math.max(So/(512*vs),1)*un.get("symbol-spacing")),pr=un.get("text-padding")*ze.tilePixelRatio,Zr=un.get("icon-padding")*ze.tilePixelRatio,Gr=Tn(un.get("text-max-angle")),us=un.get("text-rotation-alignment")==="map"&&un.get("symbol-placement")!=="point",$s=un.get("icon-rotation-alignment")==="map"&&un.get("symbol-placement")!=="point",Qr=un.get("symbol-placement"),ys=fr/2;var vs;const ks=un.get("icon-text-fit");let zs;He&&ks!=="none"&&(ze.allowVerticalPlacement&&Be.vertical&&(zs=K1(He,Be.vertical,ks,un.get("icon-text-fit-padding"),gn,Wn)),kn&&(He=K1(He,kn,ks,un.get("icon-text-fit-padding"),gn,Wn)));const as=(Ks,fo,Qs)=>{if(fo.x<0||fo.x>=So||fo.y<0||fo.y>=So)return;let Ko=null;if(jn){const{x:Bs,y:Co,z:Jo}=Wi.projectTilePoint(fo.x,fo.y,Qs);Ko={anchor:new Wf(Bs,Co,Jo,0,void 0),up:Wi.upVector(Qs,fo.x,fo.y)}}(function(Bs,Co,Jo,Ga,Qo,Mo,$l,ra,sa,gl,El,Cl,yl,Yl,mc,Bc,vl,ou,Nc,rc,Qa,Vc,Al,ih,Hc){const Xu=Bs.addToLineVertexArray(Co,Ga);let Pu,nh,Iu,Xf,s_,pb,fb,wR=0,SR=0,TR=0,ER=0,i3=-1,n3=-1;const Am={};let CR=tf("");const My=Jo?Jo.anchor:Co;let r3=0,s3=0;if(sa._unevaluatedLayout.getValue("text-radial-offset")===void 0?[r3,s3]=sa.layout.get("text-offset").evaluate(Qa,{},Hc).map(ip=>ip*ru):(r3=sa.layout.get("text-radial-offset").evaluate(Qa,{},Hc)*ru,s3=tb),Bs.allowVerticalPlacement&&Qo.vertical){const ip=Qo.vertical;if(mc)pb=Kv(ip),ra&&(fb=Kv(ra));else{const np=sa.layout.get("text-rotate").evaluate(Qa,{},Hc)+90;Iu=Ty(gl,My,Co,El,Cl,yl,ip,Yl,np,Bc),ra&&(Xf=Ty(gl,My,Co,El,Cl,yl,ra,ou,np))}}if(Mo){const ip=sa.layout.get("icon-rotate").evaluate(Qa,{},Hc),np=sa.layout.get("icon-text-fit")!=="none",mb=KS(Mo,ip,Al,np),a3=ra?KS(ra,ip,Al,np):void 0;nh=Ty(gl,My,Co,El,Cl,yl,Mo,ou,ip),wR=4*mb.length;const AR=Bs.iconSizeData;let ky=null;AR.kind==="source"?(ky=[Cd*sa.layout.get("icon-size").evaluate(Qa,{},Hc)],ky[0]>wm&&Mn(`${Bs.layerIds[0]}: Value for "icon-size" is >= ${Sy}. Reduce your "icon-size".`)):AR.kind==="composite"&&(ky=[Cd*Vc.compositeIconSizes[0].evaluate(Qa,{},Hc),Cd*Vc.compositeIconSizes[1].evaluate(Qa,{},Hc)],(ky[0]>wm||ky[1]>wm)&&Mn(`${Bs.layerIds[0]}: Value for "icon-size" is >= ${Sy}. Reduce your "icon-size".`)),Bs.addSymbols(Bs.icon,mb,ky,rc,Nc,Qa,!1,Jo,Co,Xu.lineStartIndex,Xu.lineLength,-1,ih,Hc),i3=Bs.icon.placedSymbolArray.length-1,a3&&(SR=4*a3.length,Bs.addSymbols(Bs.icon,a3,ky,rc,Nc,Qa,Eh.vertical,Jo,Co,Xu.lineStartIndex,Xu.lineLength,-1,ih,Hc),n3=Bs.icon.placedSymbolArray.length-1)}for(const ip in Qo.horizontal){const np=Qo.horizontal[ip];Pu||(CR=tf(np.text),mc?s_=Kv(np):Pu=Ty(gl,My,Co,El,Cl,yl,np,Yl,sa.layout.get("text-rotate").evaluate(Qa,{},Hc),Bc));const mb=np.positionedLines.length===1;if(TR+=eT(Bs,Jo,Co,np,$l,sa,mc,Qa,Bc,Xu,Qo.vertical?Eh.horizontal:Eh.horizontalOnly,mb?Object.keys(Qo.horizontal):[ip],Am,i3,Vc,ih,Hc),mb)break}Qo.vertical&&(ER+=eT(Bs,Jo,Co,Qo.vertical,$l,sa,mc,Qa,Bc,Xu,Eh.vertical,["vertical"],Am,n3,Vc,ih,Hc));let p0=-1;const o3=(ip,np)=>ip?Math.max(ip,np):np;p0=o3(s_,p0),p0=o3(pb,p0),p0=o3(fb,p0);const Dz=p0>-1?1:0;Bs.glyphOffsetArray.length>
219=Em.MAX_GLYPHS&&Mn("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Qa.sortKey!==void 0&&Bs.addToSortKeyRanges(Bs.symbolInstances.length,Qa.sortKey),Bs.symbolInstances.emplaceBack(My.x,My.y,My.z,Co.x,Co.y,Am.right>=0?Am.right:-1,Am.center>=0?Am.center:-1,Am.left>=0?Am.left:-1,Am.vertical>=0?Am.vertical:-1,i3,n3,CR,Pu!==void 0?Pu:Bs.collisionBoxArray.length,Pu!==void 0?Pu+1:Bs.collisionBoxArray.length,Iu!==void 0?Iu:Bs.collisionBoxArray.length,Iu!==void 0?Iu+1:Bs.collisionBoxArray.length,nh!==void 0?nh:Bs.collisionBoxArray.length,nh!==void 0?nh+1:Bs.collisionBoxArray.length,Xf||Bs.collisionBoxArray.length,Xf?Xf+1:Bs.collisionBoxArray.length,El,TR,ER,wR,SR,Dz,0,r3,s3,p0)})(ze,fo,Ko,Ks,Be,He,We,zs,ze.layers[0],ze.collisionBoxArray,Re.index,Re.sourceLayerIndex,ze.index,pr,us,yi,0,Zr,$s,gn,Re,Ye,xi,Pi,Ni)};if(Qr==="line")for(const Ks of YS(Re.geometry,0,0,So,So)){const fo=TP(Ks,fr,Gr,Be.vertical||kn,He,ar,sr,ze.overscaling,So);for(const Qs of fo)kn&&RP(ze,kn.text,ys,Qs)||as(Ks,Qs,Ni)}else if(Qr==="line-center"){for(const Ks of Re.geometry)if(Ks.length>1){const fo=SP(Ks,Gr,Be.vertical||kn,He,ar,sr);fo&&as(Ks,fo,Ni)}}else if(Re.type==="Polygon")for(const Ks of Gf(Re.geometry,0)){const fo=DP(Ks,16);as(Ks[0],new Wf(fo.x,fo.y,0,0,void 0),Ni)}else if(Re.type==="LineString")for(const Ks of Re.geometry)as(Ks,new Wf(Ks[0].x,Ks[0].y,0,0,void 0),Ni);else if(Re.type==="Point")for(const Ks of Re.geometry)for(const fo of Ks)as([fo],new Wf(fo.x,fo.y,0,0,void 0),Ni)}const Sy=255,wm=Sy*Cd;function eT(ze,Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn,un,gn,kn){const jn=function(sr,fr,pr,Zr,Gr,us,$s,Qr){const ys=[];if(fr.positionedLines.length===0)return ys;const vs=Zr.layout.get("text-rotate").evaluate(us,{})*Math.PI/180,ks=function(Qs){const Ko=Qs[0],Bs=Qs[1],Co=Ko*Bs;return Co>0?[Ko,-Bs]:Co<0?[-Ko,Bs]:Ko===0?[Bs,Ko]:[Bs,-Ko]}(pr);let zs=Math.abs(fr.top-fr.bottom);for(const Qs of fr.positionedLines)zs-=Qs.lineOffset;const as=fr.positionedLines.length,Ks=zs/as;let fo=fr.top-pr[1];for(let Qs=0;Qs<as;++Qs){const Ko=fr.positionedLines[Qs];fo=EP(fr,Ks,fo,Qs);for(const Bs of Ko.positionedGlyphs){if(!Bs.rect)continue;const Co=Bs.rect||{};let Jo=jv+1,Ga=!0,Qo=1,Mo=0;if(Bs.imageName){const Al=$s[Bs.imageName];if(!Al)continue;if(Al.sdf){Mn("SDF images are not supported in formatted text and will be ignored.");continue}Ga=!1,Qo=Al.pixelRatio,Jo=qu/Qo}const $l=(Gr||Qr)&&Bs.vertical,ra=Bs.metrics.advance*Bs.scale/2,sa=Bs.metrics,gl=Bs.rect;if(gl===null)continue;Qr&&fr.verticalizable&&(Mo=Bs.imageName?ra-Bs.metrics.width*Bs.scale/2:0);const El=Gr?[Bs.x+ra,Bs.y]:[0,0];let Cl=[0,0],yl=[0,0],Yl=!1;Gr||($l?(yl=[Bs.x+ra+ks[0],Bs.y+ks[1]-Mo],Yl=!0):Cl=[Bs.x+ra+pr[0],Bs.y+pr[1]-Mo]);const mc=gl.w*Bs.scale/(Qo*(Bs.localGlyph?Np:1)),Bc=gl.h*Bs.scale/(Qo*(Bs.localGlyph?Np:1));let vl,ou,Nc,rc;if($l){const Al=Bs.y-fo,ih=new Gi(-ra,ra-Al),Hc=-Math.PI/2,Xu=new Gi(...yl);vl=new Gi(-ra+Cl[0],Cl[1]),vl._rotateAround(Hc,ih)._add(Xu),vl.x+=-Al+ra,vl.y-=(sa.left-Jo)*Bs.scale;const Pu=Bs.imageName?sa.advance*Bs.scale:ru*Bs.scale,nh=String.fromCharCode(Bs.glyph);dP(nh)?vl.x+=(1-Jo)*Bs.scale:hP(nh)?vl.x+=Pu-sa.height*Bs.scale+(-Jo-1)*Bs.scale:vl.x+=Bs.imageName||sa.width+2*Jo===gl.w&&sa.height+2*Jo===gl.h?(Pu-Bc)/2:(Pu-(sa.height+2*Jo)*Bs.scale)/2,ou=new Gi(vl.x,vl.y-mc),Nc=new Gi(vl.x+Bc,vl.y),rc=new Gi(vl.x+Bc,vl.y-mc)}else{const Al=(sa.left-Jo)*Bs.scale-ra+Cl[0],ih=(-sa.top-Jo)*Bs.scale+Cl[1],Hc=Al+mc,Xu=ih+Bc;vl=new Gi(Al,ih),ou=new Gi(Hc,ih),Nc=new Gi(Al,Xu),rc=new Gi(Hc,Xu)}if(vs){let Al;Al=Gr?new Gi(0,0):Yl?new Gi(ks[0],ks[1]):new Gi(pr[0],pr[1]),vl._rotateAround(vs,Al),ou._rotateAround(vs,Al),Nc._rotateAround(vs,Al),rc._rotateAround(vs,Al)}const Qa=new Gi(0,0),Vc=new Gi(0,0);ys.push({tl:vl,tr:ou,bl:Nc,br:rc,tex:Co,writingMode:fr.writingMode,glyphOffset:El,sectionIndex:Bs.sectionIndex,isSDF:Ga,pixelOffsetTL:Qa,pixelOffsetBR:Vc,minFontScaleX:0,minFontScaleY:0})}}return ys}(0,He,yi,Ye,ni,li,We,ze.allowVerticalPlacement),ar=ze.textSizeData;let Wn=null;ar.kind==="source"?(Wn=[Cd*Ye.layout.get("text-size").evaluate(li,{},kn)],Wn[0]>wm&&Mn(`${ze.layerIds[0]}: Value for "text-size" is >= ${Sy}. Reduce your "text-size".`)):ar.kind==="composite"&&(Wn=[Cd*un.compositeTextSizes[0].evaluate(li,{},kn),Cd*un.compositeTextSizes[1].evaluate(li,{},kn)],(Wn[0]>wm||Wn[1]>wm)&&Mn(`${ze.layerIds[0]}: Value for "text-size" is >= ${Sy}. Reduce your "text-size".`)),ze.addSymbols(ze.text,jn,Wn,yi,ni,li,Pi,Re,Be,xi.lineStartIndex,xi.lineLength,rn,gn,kn);for(const sr of Ni)Wi[sr]=ze.text.placedSymbolArray.length-1;return 4*jn.length}function Yv(ze){for(const Re in ze)return ze[Re];return null}function Ty(ze,Re,Be,He,We,Ye,ni,li,yi,xi){let Pi=ni.top,Ni=ni.bottom,Wi=ni.left,rn=ni.right;const un=ni.collisionPadding;if(un&&(Wi-=un[0],Pi-=un[1],rn+=un[2],Ni+=un[3]),yi){const gn=new Gi(Wi,Pi),kn=new Gi(rn,Pi),jn=new Gi(Wi,Ni),ar=new Gi(rn,Ni),Wn=Tn(yi);let sr=new Gi(0,0);
vendor: 3,805 bytes, line 219
219xi&&(sr=new Gi(xi[0],xi[1])),gn._rotateAround(Wn,sr),kn._rotateAround(Wn,sr),jn._rotateAround(Wn,sr),ar._rotateAround(Wn,sr),Wi=Math.min(gn.x,kn.x,jn.x,ar.x),rn=Math.max(gn.x,kn.x,jn.x,ar.x),Pi=Math.min(gn.y,kn.y,jn.y,ar.y),Ni=Math.max(gn.y,kn.y,jn.y,ar.y)}return ze.emplaceBack(Re.x,Re.y,Re.z,Be.x,Be.y,Wi,Pi,rn,Ni,li,He,We,Ye),ze.length-1}function Kv(ze){ze.collisionPadding&&(ze.top-=ze.collisionPadding[1],ze.bottom+=ze.collisionPadding[3]);const Re=ze.bottom-ze.top;return Re>0?Math.max(10,Re):null}function RP(ze,Re,Be,He){const We=ze.compareText;if(Re in We){const Ye=We[Re];for(let ni=Ye.length-1;ni>=0;ni--)if(He.dist(Ye[ni])<Be)return!0}else We[Re]=[];return We[Re].push(He),!1}function tT(ze,Re){const Be=ze.fovAboveCenter,He=ze.elevation?ze.elevation.getMinElevationBelowMSL()*Re:0,We=(ze._camera.position[2]*ze.worldSize-He)/Math.cos(ze._pitch),Ye=Math.sin(Be)*We/Math.sin(Math.max(Math.PI/2-ze._pitch-Be,.01)),ni=Math.sin(ze._pitch)*Ye+We;return Math.min(1.01*ni,We*(1/ze._horizonShift))}function og(ze,Re){if(!Re.isReprojectedInTileSpace)return{scale:1<<ze.z,x:ze.x,y:ze.y,x2:ze.x+1,y2:ze.y+1,projection:Re};const Be=Math.pow(2,-ze.z),He=ze.x*Be,We=(ze.x+1)*Be,Ye=ze.y*Be,ni=(ze.y+1)*Be,li=lr(He),yi=lr(We),xi=Gn(Ye),Pi=Gn(ni),Ni=Re.project(li,xi),Wi=Re.project(yi,xi),rn=Re.project(yi,Pi),un=Re.project(li,Pi);let gn=Math.min(Ni.x,Wi.x,rn.x,un.x),kn=Math.min(Ni.y,Wi.y,rn.y,un.y),jn=Math.max(Ni.x,Wi.x,rn.x,un.x),ar=Math.max(Ni.y,Wi.y,rn.y,un.y);const Wn=Be/16;function sr(pr,Zr,Gr,us,$s,Qr){const ys=(Gr+$s)/2,vs=(us+Qr)/2,ks=Re.project(lr(ys),Gn(vs)),zs=Math.max(0,gn-ks.x,kn-ks.y,ks.x-jn,ks.y-ar);gn=Math.min(gn,ks.x),jn=Math.max(jn,ks.x),kn=Math.min(kn,ks.y),ar=Math.max(ar,ks.y),zs>Wn&&(sr(pr,ks,Gr,us,ys,vs),sr(ks,Zr,ys,vs,$s,Qr))}sr(Ni,Wi,He,Ye,We,Ye),sr(Wi,rn,We,Ye,We,ni),sr(rn,un,We,ni,He,ni),sr(un,Ni,He,ni,He,Ye),gn-=Wn,kn-=Wn,jn+=Wn,ar+=Wn;const fr=1/Math.max(jn-gn,ar-kn);return{scale:fr,x:gn*fr,y:kn*fr,x2:jn*fr,y2:ar*fr,projection:Re}}const nb=ju(new Float32Array(16));class Sm{constructor(Re){this.spec=Re,this.name=Re.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(Re,Be){return{x:0,y:0,z:0}}unproject(Re,Be){return new ln(0,0)}projectTilePoint(Re,Be,He){return{x:Re,y:Be,z:0}}locationPoint(Re,Be,He=!0){return Re._coordinatePoint(Re.locationCoordinate(Be),He)}pixelsPerMeter(Re,Be){return Sr(1,Re)*Be}pixelSpaceConversion(Re,Be,He){return 1}farthestPixelDistance(Re){return tT(Re,Re.pixelsPerMeter)}pointCoordinate(Re,Be,He,We){const Ye=Re.horizonLineFromTop(!1),ni=new Gi(Be,Math.max(Ye,He));return Re.rayIntersectionCoordinate(Re.pointRayIntersection(ni,We))}pointCoordinate3D(Re,Be,He){const We=new Gi(Be,He);if(Re.elevation)return Re.elevation.pointCoordinate(We);{const Ye=this.pointCoordinate(Re,We.x,We.y,0);return[Ye.x,Ye.y,Ye.z]}}isPointAboveHorizon(Re,Be){if(Re.elevation)return!this.pointCoordinate3D(Re,Be.x,Be.y);const He=Re.horizonLineFromTop();return Be.y<He}createInversionMatrix(Re,Be){return nb}createTileMatrix(Re,Be,He){let We,Ye,ni;const li=He.canonical,yi=ju(new Float64Array(16));if(this.isReprojectedInTileSpace){const xi=og(li,this);We=1,Ye=xi.x+He.wrap*xi.scale,ni=xi.y,of(yi,yi,[We/xi.scale,We/xi.scale,Re.pixelsPerMeter/Be])}else We=Be/Re.zoomScale(li.z),Ye=(li.x+Math.pow(2,li.z)*He.wrap)*We,ni=li.y*We;return sf(yi,yi,[Ye,ni,0]),of(yi,yi,[We/So,We/So,1]),yi}upVector(Re,Be,He){return[0,0,1]}upVectorScale(Re,Be,He){return{metersToTile:1}}}class OP extends Sm{constructor(Re){super(Re),this.range=[4,7],this.center=Re.center||[-96,37.5];const[Be,He]=this.parallels=Re.parallels||[29.5,45.5],We=Math.sin(Tn(Be));
vendor: 4,064 bytes, line 219
219this.n=(We+Math.sin(Tn(He)))/2,this.c=1+We*(2*this.n-We),this.r0=Math.sqrt(this.c)/this.n}project(Re,Be){const{n:He,c:We,r0:Ye}=this,ni=Tn(Re-this.center[0]),li=Tn(Be),yi=Math.sqrt(We-2*He*Math.sin(li))/He;return{x:yi*Math.sin(ni*He),y:yi*Math.cos(ni*He)-Ye,z:0}}unproject(Re,Be){const{n:He,c:We,r0:Ye}=this,ni=Ye+Be;let li=Math.atan2(Re,Math.abs(ni))*Math.sign(ni);ni*He<0&&(li-=Math.PI*Math.sign(Re)*Math.sign(ni));const yi=Tn(this.center[0])*He;li=os(li,-Math.PI-yi,Math.PI-yi);const xi=Hn(Sn(li/He)+this.center[0],-180,180),Pi=Math.asin(Hn((We-(Re*Re+ni*ni)*He*He)/(2*He),-1,1)),Ni=Hn(Sn(Pi),-rr,rr);return new ln(xi,Ni)}}const Ey=1.340264,ku=-.081106,ag=893e-6,Cy=.003796,Jv=Math.sqrt(3)/2;class LP extends Sm{project(Re,Be){Be=Be/180*Math.PI,Re=Re/180*Math.PI;const He=Math.asin(Jv*Math.sin(Be)),We=He*He,Ye=We*We*We;return{x:.5*(Re*Math.cos(He)/(Jv*(Ey+3*ku*We+Ye*(7*ag+9*Cy*We)))/Math.PI+.5),y:1-.5*(He*(Ey+ku*We+Ye*(ag+Cy*We))/Math.PI+1),z:0}}unproject(Re,Be){Re=(2*Re-.5)*Math.PI;let He=Be=(2*(1-Be)-1)*Math.PI,We=He*He,Ye=We*We*We;for(let Pi,Ni,Wi,rn=0;rn<12&&(Ni=He*(Ey+ku*We+Ye*(ag+Cy*We))-Be,Wi=Ey+3*ku*We+Ye*(7*ag+9*Cy*We),Pi=Ni/Wi,He=Hn(He-Pi,-Math.PI/3,Math.PI/3),We=He*He,Ye=We*We*We,!(Math.abs(Pi)<1e-12));++rn);const ni=Jv*Re*(Ey+3*ku*We+Ye*(7*ag+9*Cy*We))/Math.cos(He),li=Math.asin(Math.sin(He)/Jv),yi=Hn(180*ni/Math.PI,-180,180),xi=Hn(180*li/Math.PI,-rr,rr);return new ln(yi,xi)}}class $P extends Sm{constructor(Re){super(Re),this.wrap=!0,this.supportsWorldCopies=!0}project(Re,Be){return{x:.5+Re/360,y:.5-Be/360,z:0}}unproject(Re,Be){const He=360*(Re-.5),We=Hn(360*(.5-Be),-rr,rr);return new ln(He,We)}}const Tm=Math.PI/2;function Qv(ze){return Math.tan((Tm+ze)/2)}class rb extends Sm{constructor(Re){super(Re),this.center=Re.center||[0,30];const[Be,He]=this.parallels=Re.parallels||[30,30];let We=Tn(Be),Ye=Tn(He);this.southernCenter=We+Ye<0,this.southernCenter&&(We=-We,Ye=-Ye);const ni=Math.cos(We),li=Qv(We);this.n=We===Ye?Math.sin(We):Math.log(ni/Math.cos(Ye))/Math.log(Qv(Ye)/li),this.f=ni*Math.pow(Qv(We),this.n)/this.n}project(Re,Be){Be=Tn(Be),this.southernCenter&&(Be=-Be),Re=Tn(Re-this.center[0]);const He=1e-6,{n:We,f:Ye}=this;Ye>0?Be<-Tm+He&&(Be=-Tm+He):Be>Tm-He&&(Be=Tm-He);const ni=Ye/Math.pow(Qv(Be),We);let li=ni*Math.sin(We*Re),yi=Ye-ni*Math.cos(We*Re);return li=.5*(li/Math.PI+.5),yi=.5*(yi/Math.PI+.5),{x:li,y:this.southernCenter?yi:1-yi,z:0}}unproject(Re,Be){Re=(2*Re-.5)*Math.PI,this.southernCenter&&(Be=1-Be),Be=(2*(1-Be)-.5)*Math.PI;const{n:He,f:We}=this,Ye=We-Be,ni=Math.sign(Ye),li=Math.sign(He)*Math.sqrt(Re*Re+Ye*Ye);let yi=Math.atan2(Re,Math.abs(Ye))*ni;Ye*He<0&&(yi-=Math.PI*Math.sign(Re)*ni);const xi=Hn(Sn(yi/He)+this.center[0],-180,180),Pi=Hn(Sn(2*Math.atan(Math.pow(We/li,1/He))-Tm),-rr,rr);return new ln(xi,this.southernCenter?-Pi:Pi)}}class iT extends Sm{constructor(Re){super(Re),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(Re,Be){return{x:$n(Re),y:Ln(Be),z:0}}unproject(Re,Be){const He=lr(Re),We=Gn(Be);return new ln(He,We)}}const nT=Tn(rr);class FP extends Sm{project(Re,Be){const He=(Be=Tn(Be))*Be,We=He*He;return{x:.5*((Re=Tn(Re))*(.8707-.131979*He+We*(We*(.003971*He-.001529*We)-.013791))/Math.PI+.5),y:1-.5*(Be*(1.007226+He*(.015085+We*(.028874*He-.044475-.005916*We)))/Math.PI+1),z:0}}unproject(Re,Be){Re=(2*Re-.5)*Math.PI;let He=Be=(2*(1-Be)-1)*Math.PI,We=25,Ye=0,ni=He*He;do{ni=He*He;const xi=ni*ni;Ye=(He*(1.007226+ni*(.015085+xi*(.028874*ni-.044475-.005916*xi)))-Be)/(1.007226+ni*(.045255+xi*(.259866*ni-.311325-.005916*11*xi))),He=Hn(He-Ye,-nT,nT)}while(Math.abs(Ye)>1e-6&&--We>0);ni=He*He;const li=Hn(Sn(Re/(.8707+ni*(ni*(ni*ni*ni*(.003971-.001529*ni)-.013791)-.131979))),-180,180),yi=Sn(He);return new ln(li,yi)}}const rT=Tn(rr);class sT extends Sm{project(Re,Be){Be=Tn(Be),Re=Tn(Re);const He=Math.cos(Be),We=2/Math.PI,Ye=Math.acos(He*Math.cos(Re/2)),ni=Math.sin(Ye)/Ye,li=.5*(Re*We+2*He*Math.sin(Re/2)/ni)||0,yi=.5*(Be+Math.sin(Be)/ni)||0;
vendor: 6,700 bytes, line 219
219return{x:.5*(li/Math.PI+.5),y:1-.5*(yi/Math.PI+1),z:0}}unproject(Re,Be){let He=Re=(2*Re-.5)*Math.PI,We=Be=(2*(1-Be)-1)*Math.PI,Ye=25;const ni=1e-6;let li=0,yi=0;do{const xi=Math.cos(We),Pi=Math.sin(We),Ni=2*Pi*xi,Wi=Pi*Pi,rn=xi*xi,un=Math.cos(He/2),gn=Math.sin(He/2),kn=2*un*gn,jn=gn*gn,ar=1-rn*un*un,Wn=ar?1/ar:0,sr=ar?Math.acos(xi*un)*Math.sqrt(1/ar):0,fr=.5*(2*sr*xi*gn+2*He/Math.PI)-Re,pr=.5*(sr*Pi+We)-Be,Zr=.5*Wn*(rn*jn+sr*xi*un*Wi)+1/Math.PI,Gr=Wn*(kn*Ni/4-sr*Pi*gn),us=.125*Wn*(Ni*gn-sr*Pi*rn*kn),$s=.5*Wn*(Wi*un+sr*jn*xi)+.5,Qr=Gr*us-$s*Zr;li=(pr*Gr-fr*$s)/Qr,yi=(fr*us-pr*Zr)/Qr,He=Hn(He-li,-Math.PI,Math.PI),We=Hn(We-yi,-rT,rT)}while((Math.abs(li)>ni||Math.abs(yi)>ni)&&--Ye>0);return new ln(Sn(He),Sn(We))}}class oT extends Sm{constructor(Re){super(Re),this.center=Re.center||[0,0],this.parallels=Re.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(Tn(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(Re,Be){const{scale:He,cosPhi:We}=this;return{x:Tn(Re)*We*He+.5,y:-Math.sin(Tn(Be))/We*He+.5,z:0}}unproject(Re,Be){const{scale:He,cosPhi:We}=this,Ye=-(Be-.5)/He,ni=Hn(Sn((Re-.5)/He)/We,-180,180),li=Math.asin(Hn(Ye*We,-1,1)),yi=Hn(Sn(li),-rr,rr);return new ln(ni,yi)}}class zP extends iT{constructor(Re){super(Re),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug"],this.range=[3,5]}projectTilePoint(Re,Be,He){const We=ff(Re,Be,He);return Ol(We,We,Yh(Au(He))),{x:We[0],y:We[1],z:We[2]}}locationPoint(Re,Be){const He=La(Be.lat,Be.lng),We=vu([],He),Ye=Re.elevation?Re.elevation.getAtPointOrZero(Re.locationCoordinate(Be),Re._centerAltitude):Re._centerAltitude;lf(He,He,We,Sr(1,0)*So*Ye);const ni=ju(new Float64Array(16));return bd(ni,Re.pixelMatrix,Re.globeMatrix),Ol(He,He,ni),new Gi(He[0],He[1])}pixelsPerMeter(Re,Be){return Sr(1,0)*Be}pixelSpaceConversion(Re,Be,He){const We=Sr(1,Re)*Be,Ye=qo(Sr(1,45)*Be,We,He);return this.pixelsPerMeter(Re,Be)/Ye}createTileMatrix(Re,Be,He){const We=_m(Au(He.canonical));return bd(new Float64Array(16),Re.globeMatrix,We)}createInversionMatrix(Re,Be){const{center:He}=Re,We=Yh(Au(Be));return bh(We,We,Tn(He.lng)),Xm(We,We,Tn(He.lat)),of(We,We,[Re._pixelsPerMercatorPixel,Re._pixelsPerMercatorPixel,1]),Float32Array.from(We)}pointCoordinate(Re,Be,He,We){return Yg(Re,Be,He,!0)||new Fr(0,0)}pointCoordinate3D(Re,Be,He){const We=this.pointCoordinate(Re,Be,He,0);return[We.x,We.y,We.z]}isPointAboveHorizon(Re,Be){return!Yg(Re,Be.x,Be.y,!1)}farthestPixelDistance(Re){const Be=function(We,Ye){const ni=We.cameraToCenterDistance,li=We._centerAltitude*Ye,yi=We._camera,xi=We._camera.forward(),Pi=Rl([],tu([],xi,-ni),[0,0,li]),Ni=We.worldSize/(2*Math.PI),Wi=[0,0,-Ni],rn=We.width/We.height,un=Math.tan(We.fovAboveCenter),gn=tu([],yi.up(),un),kn=tu([],yi.right(),un*rn),jn=vu([],Rl([],Rl([],xi,gn),kn)),ar=[];let Wn;if(new Qm(Pi,jn).closestPointOnSphere(Wi,Ni,ar)){const sr=Rl([],ar,Wi),fr=Sd([],sr,Pi);Wn=Math.cos(We.fovAboveCenter)*gm(fr)}else{const sr=Sd([],Pi,Wi),fr=Sd([],Wi,Pi);vu(fr,fr);const pr=gm(sr)-Ni;Wn=Math.sqrt(pr*(pr+2*Ni));const Zr=Math.acos(Wn/(Ni+pr))-Math.acos(rd(xi,fr));Wn*=Math.cos(Zr)}return 1.01*Wn}(Re,this.pixelsPerMeter(Re.center.lat,Re.worldSize)),He=si(Re.zoom);if(He>0){const We=tT(Re,Sr(1,Re.center.lat)*Re.worldSize),Ye=Re.worldSize/(2*Math.PI),ni=Math.max(Re.width,Re.height)/Re.worldSize*Math.PI;return qo(Be,We+Ye*(1-Math.cos(ni)),Math.pow(He,10))}return Be}upVector(Re,Be,He){return ff(Be,He,Re,1)}upVectorScale(Re){return{metersToTile:vm(_u(Au(Re)))}}}function aT(ze){const Re=ze.parallels,Be=!!Re&&Math.abs(Re[0]+Re[1])<.01;switch(ze.name){case"mercator":return new iT(ze);case"equirectangular":return new $P(ze);case"naturalEarth":return new FP(ze);case"equalEarth":return new LP(ze);case"winkelTripel":return new sT(ze);case"albers":return Be?new oT(ze):new OP(ze);case"lambertConformalConic":return Be?new oT(ze):new rb(ze);case"globe":return new zP(ze)}throw new Error(`Invalid projection name: ${ze.name}`)}const sb=zv.types,ob=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function e_(ze,Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi){const rn=li?Math.min(wm,Math.round(li[0])):0,un=li?Math.min(wm,Math.round(li[1])):0;ze.emplaceBack(Re,Be,Math.round(32*He),Math.round(32*We),Ye,ni,(rn<<1)+(yi?1:0),un,16*xi,16*Pi,256*Ni,256*Wi)}function t_(ze,Re,Be,He,We,Ye,ni){ze.emplaceBack(Re,Be,He,We,Ye,ni)}function i_(ze,Re,Be,He,We){ze.emplaceBack(Re,Be,He,We),ze.emplaceBack(Re,Be,He,We),ze.emplaceBack(Re,Be,He,We),ze.emplaceBack(Re,Be,He,We)}function BP(ze){for(const Re of ze.sections)if(Vu(Re.text))return!0;return!1}class ab{constructor(Re){this.layoutVertexArray=new ds,this.indexArray=new lo,this.programConfigurations=Re,this.segments=new Il,this.dynamicLayoutVertexArray=new ss,this.opacityVertexArray=new ho,this.placedSymbolArray=new wl,this.globeExtVertexArray=new Is}isEmpty(){return this.layoutVertexArray.length===0&&this.indexArray.length===0&&this.dynamicLayoutVertexArray.length===0&&this.opacityVertexArray.length===0}upload(Re,Be,He,We){this.isEmpty()||(He&&(this.layoutVertexBuffer=Re.createVertexBuffer(this.layoutVertexArray,PS.members),this.indexBuffer=Re.createIndexBuffer(this.indexArray,Be),this.dynamicLayoutVertexBuffer=Re.createVertexBuffer(this.dynamicLayoutVertexArray,aP.members,!0),this.opacityVertexBuffer=Re.createVertexBuffer(this.opacityVertexArray,ob,!0),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=Re.createVertexBuffer(this.globeExtVertexArray,oP.members,!0)),this.opacityVertexBuffer.itemSize=1),(He||We)&&this.programConfigurations.upload(Re))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}}to(ab,"SymbolBuffers");class lb{constructor(Re,Be,He){this.layoutVertexArray=new Re,this.layoutAttributes=Be,this.indexArray=new He,this.segments=new Il,this.collisionVertexArray=new ia,this.collisionVertexArrayExt=new No}upload(Re){this.layoutVertexBuffer=Re.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=Re.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=Re.createVertexBuffer(this.collisionVertexArray,lP.members,!0),this.collisionVertexBufferExt=Re.createVertexBuffer(this.collisionVertexArrayExt,cP.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.de
219stroy())}}to(lb,"CollisionBuffers");class Em{constructor(Re){this.collisionBoxArray=Re.collisionBoxArray,this.zoom=Re.zoom,this.overscaling=Re.overscaling,this.layers=Re.layers,this.layerIds=this.layers.map(ni=>ni.id),this.index=Re.index,this.pixelRatio=Re.pixelRatio,this.sourceLayerIndex=Re.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=ju([]),this.placementViewportMatrix=ju([]);const Be=this.layers[0]._unevaluatedLayout._values;this.textSizeData=xy(this.zoom,Be["text-size"]),this.iconSizeData=xy(this.zoom,Be["icon-size"]);const He=this.layers[0].layout,We=He.get("symbol-sort-key"),Ye=He.get("symbol-z-order");this.canOverlap=He.get("text-allow-overlap")||He.get("icon-allow-overlap")||He.get("text-ignore-placement")||He.get("icon-ignore-placement"),this.sortFeaturesByKey=Ye!=="viewport-y"&&We.constantOr(1)!==void 0,this.sortFeaturesByY=(Ye==="viewport-y"||Ye==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=He.get("text-writing-mode").map(ni=>Eh[ni]),this.stateDependentLayerIds=this.layers.filter(ni=>ni.isStateDependent()).map(ni=>ni.id),this.sourceID=Re.sourceID,this.projection=Re.projection}createArrays(){this.text=new ab(new Ip(this.layers,this.zoom,Re=>/^text/.test(Re))),this.icon=new ab(new Ip(this.layers,this.zoom,Re=>/^icon/.test(Re))),this.glyphOffsetArray=new Cc,this.lineVertexArray=new Mp,this.symbolInstances=new Za}calculateGlyphDependencies(Re,Be,He,We,Ye){for(let ni=0;ni<Re.length;ni++)if(Be[Re.charCodeAt(ni)]=!0,We&&Ye){const li=bf[Re.charAt(ni)];li&&(Be[li.charCodeAt(0)]=!0)}}populate(Re,Be,He,We){const Ye=this.layers[0],ni=Ye.layout,li=this.projection.name==="globe",yi=ni.get("text-font"),xi=ni.get("text-field"),Pi=ni.get("icon-image"),Ni=(xi.value.kind!=="constant"||xi.value.value instanceof Wc&&!xi.value.value.isEmpty()||xi.value.value.toString().length>0)&&(yi.value.kind!=="constant"||yi.value.value.length>0),Wi=Pi.value.kind!=="constant"||!!Pi.value.value||Object.keys(Pi.parameters).length>0,rn=ni.get("symbol-sort-key");if(this.features=[],!Ni&&!Wi)return;const un=Be.iconDependencies,gn=Be.glyphDependencies,kn=Be.availableImages,jn=new Fi(this.zoom);for(const{feature:ar,id:Wn,index:sr,sourceLayerIndex:fr}of Re){const pr=Ye._featureFilter.needGeometry,Zr=Cs(ar,pr);if(!Ye._featureFilter.filter(jn,Zr,He))continue;if(pr||(Zr.geometry=oo(ar,He,We)),li&&ar.type!==1&&He.z<=5){const Qr=Zr.geometry,ys=.98078528056,vs=(ks,zs)=>rd(ff(ks.x,ks.y,He,1),ff(zs.x,zs.y,He,1))<ys;for(let ks=0;ks<Qr.length;ks++)Qr[ks]=Ms(Qr[ks],vs)}let Gr,us;if(Ni){const Qr=Ye.getValueAndResolveTokens("text-field",Zr,He,kn),ys=Wc.factory(Qr);BP(ys)&&(this.hasRTLText=!0),(!this.hasRTLText||ui()==="unavailable"||this.hasRTLText&&Mi.isParsed())&&(Gr=Th(ys,Ye,Zr))}if(Wi){const Qr=Ye.getValueAndResolveTokens("icon-image",Zr,He,kn);us=Qr instanceof qc?Qr:qc.fromString(Qr)}if(!Gr&&!us)continue;const $s=this.sortFeaturesByKey?rn.evaluate(Zr,{},He):void 0;if(this.features.push({id:Wn,text:Gr,icon:us,index:sr,sourceLayerIndex:fr,geometry:Zr.geometry,properties:ar.properties,type:sb[ar.type],sortKey:$s}),us&&(un[us.name]=!0),Gr){const Qr=yi.evaluate(Zr,{},He).join(","),ys=ni.get("text-rotation-alignment")==="map"&&ni.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(Eh.vertical)>=0;for(const vs of Gr.sections)if(vs.image)un[vs.image.name]=!0;
vendor: 11,231 bytes, line 219
219else{const ks=um(Gr.toString()),zs=vs.fontStack||Qr,as=gn[zs]=gn[zs]||{};this.calculateGlyphDependencies(vs.text,as,ys,this.allowVerticalPlacement,ks)}}}ni.get("symbol-placement")==="line"&&(this.features=function(ar){const Wn={},sr={},fr=[];let pr=0;function Zr(Qr){fr.push(ar[Qr]),pr++}function Gr(Qr,ys,vs){const ks=sr[Qr];return delete sr[Qr],sr[ys]=ks,fr[ks].geometry[0].pop(),fr[ks].geometry[0]=fr[ks].geometry[0].concat(vs[0]),ks}function us(Qr,ys,vs){const ks=Wn[ys];return delete Wn[ys],Wn[Qr]=ks,fr[ks].geometry[0].shift(),fr[ks].geometry[0]=vs[0].concat(fr[ks].geometry[0]),ks}function $s(Qr,ys,vs){const ks=vs?ys[0][ys[0].length-1]:ys[0][0];return`${Qr}:${ks.x}:${ks.y}`}for(let Qr=0;Qr<ar.length;Qr++){const ys=ar[Qr],vs=ys.geometry,ks=ys.text?ys.text.toString():null;if(!ks){Zr(Qr);continue}const zs=$s(ks,vs),as=$s(ks,vs,!0);if(zs in sr&&as in Wn&&sr[zs]!==Wn[as]){const Ks=us(zs,as,vs),fo=Gr(zs,as,fr[Ks].geometry);delete Wn[zs],delete sr[as],sr[$s(ks,fr[fo].geometry,!0)]=fo,fr[Ks].geometry=null}else zs in sr?Gr(zs,as,vs):as in Wn?us(zs,as,vs):(Zr(Qr),Wn[zs]=pr-1,sr[as]=pr-1)}return fr.filter(Qr=>Qr.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((ar,Wn)=>ar.sortKey-Wn.sortKey)}update(Re,Be,He,We){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(Re,Be,this.layers,He,We),this.icon.programConfigurations.updatePaintArrays(Re,Be,this.layers,He,We))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(Re){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(Re),this.iconCollisionBox.upload(Re)),this.text.upload(Re,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(Re,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=aT(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(Re,Be){const He=this.lineVertexArray.length;if(Re.segment!==void 0)for(const{x:We,y:Ye}of Be)this.lineVertexArray.emplaceBack(We,Ye);return{lineStartIndex:He,lineLength:this.lineVertexArray.length-He}}addSymbols(Re,Be,He,We,Ye,ni,li,yi,xi,Pi,Ni,Wi,rn,un){const gn=Re.indexArray,kn=Re.layoutVertexArray,jn=Re.globeExtVertexArray,ar=Re.segments.prepareSegment(4*Be.length,kn,gn,this.canOverlap?ni.sortKey:void 0),Wn=this.glyphOffsetArray.length,sr=ar.vertexLength,fr=this.allowVerticalPlacement&&li===Eh.vertical?Math.PI/2:0,pr=ni.text&&ni.text.sections;for(let Gr=0;Gr<Be.length;Gr++){const{tl:us,tr:$s,bl:Qr,br:ys,tex:vs,pixelOffsetTL:ks,pixelOffsetBR:zs,minFontScaleX:as,minFontScaleY:Ks,glyphOffset:fo,isSDF:Qs,sectionIndex:Ko}=Be[Gr],Bs=ar.vertexLength,Co=fo[1];if(e_(kn,xi.x,xi.y,us.x,Co+us.y,vs.x,vs.y,He,Qs,ks.x,ks.y,as,Ks),e_(kn,xi.x,xi.y,$s.x,Co+$s.y,vs.x+vs.w,vs.y,He,Qs,zs.x,ks.y,as,Ks),e_(kn,xi.x,xi.y,Qr.x,Co+Qr.y,vs.x,vs.y+vs.h,He,Qs,ks.x,zs.y,as,Ks),e_(kn,xi.x,xi.y,ys.x,Co+ys.y,vs.x+vs.w,vs.y+vs.h,He,Qs,zs.x,zs.y,as,Ks),yi){const{x:Jo,y:Ga,z:Qo}=yi.anchor,[Mo,$l,ra]=yi.up;t_(jn,Jo,Ga,Qo,Mo,$l,ra),t_(jn,Jo,Ga,Qo,Mo,$l,ra),t_(jn,Jo,Ga,Qo,Mo,$l,ra),t_(jn,Jo,Ga,Qo,Mo,$l,ra),i_(Re.dynamicLayoutVertexArray,Jo,Ga,Qo,fr)}else i_(Re.dynamicLayoutVertexArray,xi.x,xi.y,xi.z,fr);gn.emplaceBack(Bs,Bs+1,Bs+2),gn.emplaceBack(Bs+1,Bs+2,Bs+3),ar.vertexLength+=4,ar.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(fo[0]),Gr!==Be.length-1&&Ko===Be[Gr+1].sectionIndex||Re.programConfigurations.populatePaintArrays(kn.length,ni,ni.index,{},rn,un,pr&&pr[Ko])}const Zr=yi?yi.anchor:xi;Re.placedSymbolArray.emplaceBack(Zr.x,Zr.y,Zr.z,xi.x,xi.y,Wn,this.glyphOffsetArray.length-Wn,sr,Pi,Ni,xi.segment,He?He[0]:0,He?He[1]:0,We[0],We[1],li,0,!1,0,Wi,0)}_commitLayoutVertex(Re,Be,He,We,Ye,ni,li){Re.emplaceBack(Be,He,We,Ye,ni,Math.round(li.x),Math.round(li.y))}_addCollisionDebugVertices(Re,Be,He,We,Ye,ni,li){const yi=He.segments.prepareSegment(4,He.layoutVertexArray,He.indexArray),xi=yi.vertexLength,Pi=li.tileAnchorX,Ni=li.tileAnchorY;for(let rn=0;rn<4;rn++)He.collisionVertexArray.emplaceBack(0,0,0,0);He.collisionVertexArrayExt.emplaceBack(Be,-Re.padding,-Re.padding),He.collisionVertexArrayExt.emplaceBack(Be,Re.padding,-Re.padding),He.collisionVertexArrayExt.emplaceBack(Be,Re.padding,Re.padding),He.collisionVertexArrayExt.emplaceBack(Be,-Re.padding,Re.padding),this._commitLayoutVertex(He.layoutVertexArray,We,Ye,ni,Pi,Ni,new Gi(Re.x1,Re.y1)),this._commitLayoutVertex(He.layoutVertexArray,We,Ye,ni,Pi,Ni,new Gi(Re.x2,Re.y1)),this._commitLayoutVertex(He.layoutVertexArray,We,Ye,ni,Pi,Ni,new Gi(Re.x2,Re.y2)),this._commitLayoutVertex(He.layoutVertexArray,We,Ye,ni,Pi,Ni,new Gi(Re.x1,Re.y2)),yi.vertexLength+=4;const Wi=He.indexArray;Wi.emplaceBack(xi,xi+1),Wi.emplaceBack(xi+1,xi+2),Wi.emplaceBack(xi+2,xi+3),Wi.emplaceBack(xi+3,xi),yi.primitiveLength+=4}_addTextDebugCollisionBoxes(Re,Be,He,We,Ye,ni){for(let li=We;li<Ye;li++){const yi=He.get(li),xi=this.getSymbolInstanceTextSize(Re,ni,Be,li);this._addCollisionDebugVertices(yi,xi,this.textCollisionBox,yi.projectedAnchorX,yi.projectedAnchorY,yi.projectedAnchorZ,ni)}}_addIconDebugCollisionBoxes(Re,Be,He,We,Ye,ni){for(let li=We;li<Ye;li++){const yi=He.get(li),xi=this.getSymbolInstanceIconSize(Re,Be,ni.placedIconSymbolIndex);this._addCollisionDebugVertices(yi,xi,this.iconCollisionBox,yi.projectedAnchorX,yi.projectedAnchorY,yi.projectedAnchorZ,ni)}}generateCollisionDebugBuffers(Re,Be){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new lb(Js,IS.members,Wl),this.iconCollisionBox=new lb(Js,IS.members,Wl);const He=ng(this.iconSizeData,Re),We=ng(this.textSizeData,Re);for(let Ye=0;Ye<this.symbolInstances.length;Ye++){const ni=this.symbolInstances.get(Ye);this._addTextDebugCollisionBoxes(We,Re,Be,ni.textBoxStartIndex,ni.textBoxEndIndex,ni),this._addTextDebugCollisionBoxes(We,Re,Be,ni.verticalTextBoxStartIndex,ni.verticalTextBoxEndIndex,ni),this._addIconDebugCollisionBoxes(He,Re,Be,ni.iconBoxStartIndex,ni.iconBoxEndIndex,ni),this._addIconDebugCollisionBoxes(He,Re,Be,ni.verticalIconBoxStartIndex,ni.verticalIconBoxEndIndex,ni)}}getSymbolInstanceTextSize(Re,Be,He,We){const Ye=this.text.placedSymbolArray.get(Be.rightJustifiedTextSymbolIndex>=0?Be.rightJustifiedTextSymbolIndex:Be.centerJustifiedTextSymbolIndex>=0?Be.centerJustifiedTextSymbolIndex:Be.leftJustifiedTextSymbolIndex>=0?Be.leftJustifiedTextSymbolIndex:Be.verticalPlacedTextSymbolIndex>=0?Be.verticalPlacedTextSymbolIndex:We),ni=Nv(this.textSizeData,Re,Ye)/ru;return this.tilePixelRatio*ni}getSymbolInstanceIconSize(Re,Be,He){const We=this.icon.placedSymbolArray.get(He),Ye=Nv(this.iconSizeData,Re,We);return this.tilePixelRatio*Ye}_commitDebugCollisionVertexUpdate(Re,Be,He){Re.emplaceBack(Be,-He,-He),Re.emplaceBack(Be,He,-He),Re.emplaceBack(Be,He,He),Re.emplaceBack(Be,-He,He)}_updateTextDebugCollisionBoxes(Re,Be,He,We,Ye,ni){for(let li=We;li<Ye;li++){const yi=He.get(li),xi=this.getSymbolInstanceTextSize(Re,ni,Be,li);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,xi,yi.padding)}}_updateIconDebugCollisionBoxes(Re,Be,He,We,Ye,ni){for(let li=We;li<Ye;li++){const yi=He.get(li),xi=this.getSymbolInstanceIconSize(Re,Be,ni);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,xi,yi.padding)}}updateCollisionDebugBuffers(Re,Be){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const He=ng(this.iconSizeData,Re),We=ng(this.textSizeData,Re);for(let Ye=0;Ye<this.symbolInstances.length;Ye++){const ni=this.symbolInstances.get(Ye);this._updateTextDebugCollisionBoxes(We,Re,Be,ni.textBoxStartIndex,ni.textBoxEndIndex,ni),this._updateTextDebugCollisionBoxes(We,Re,Be,ni.verticalTextBoxStartIndex,ni.verticalTextBoxEndIndex,ni),this._updateIconDebugCollisionBoxes(He,Re,Be,ni.iconBoxStartIndex,ni.iconBoxEndIndex,ni.placedIconSymbolIndex),this._updateIconDebugCollisionBoxes(He,Re,Be,ni.verticalIconBoxStartIndex,ni.verticalIconBoxEndIndex,ni.placedIconSymbolIndex)}this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexBufferExt&&this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexBufferExt&&this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt)}_deserializeCollisionBoxesForSymbol(Re,Be,He,We,Ye,ni,li,yi,xi){const Pi={};if(Be<He){const{x1:Ni,y1:Wi,x2:rn,y2:un,padding:gn,projectedAnchorX:kn,projectedAnchorY:jn,projectedAnchorZ:ar,tileAnchorX:Wn,tileAnchorY:sr,featureIndex:fr}=Re.get(Be);Pi.textBox={x1:Ni,y1:Wi,x2:rn,y2:un,padding:gn,projectedAnchorX:kn,projectedAnchorY:jn,projectedAnchorZ:ar,tileAnchorX:Wn,tileAnchorY:sr},Pi.textFeatureIndex=fr}if(We<Ye){const{x1:Ni,y1:Wi,x2:rn,y2:un,padding:gn,projectedAnchorX:kn,projectedAnchorY:jn,projectedAnchorZ:ar,tileAnchorX:Wn,tileAnchorY:sr,featureIndex:fr}=Re.get(We);Pi.verticalTextBox={x1:Ni,y1:Wi,x2:rn,y2:un,padding:gn,projectedAnchorX:kn,projectedAnchorY:jn,projectedAnchorZ:ar,tileAnchorX:Wn,tileAnchorY:sr},Pi.verticalTextFeatureIndex=fr}if(ni<li){const{x1:Ni,y1:Wi,x2:rn,y2:un,padding:gn,projectedAnchorX:kn,projectedAnchorY:jn,projectedAnchorZ:ar,tileAnchorX:Wn,tileAnchorY:sr,featureIndex:fr}=Re.get(ni);Pi.iconBox={x1:Ni,y1:Wi,x2:rn,y2:un,padding:gn,projectedAnchorX:kn,projectedAnchorY:jn,projectedAnchorZ:ar,tileAnchorX:Wn,tileAnchorY:sr},Pi.iconFeatureIndex=fr}if(yi<xi){const{x1:Ni,y1:Wi,x2:rn,y2:un,padding:gn,projectedAnchorX:kn,projectedAnchorY:jn,projectedAnchorZ:ar,tileAnchorX:Wn,tileAnchorY:sr,featureIndex:fr}=Re.get(yi);Pi.verticalIconBox={x1:Ni,y1:Wi,x2:rn,y2:un,padding:gn,projectedAnchorX:kn,projectedAnchorY:jn,projectedAnchorZ:ar,tileAnchorX:Wn,tileAnchorY:sr},Pi.verticalIconFeatureIndex=fr}return Pi}deserializeCollisionBoxes(Re){this.collisionArrays=[];for(let Be=0;Be<this.symbolInstances.length;Be++){const He=this.symbolInstances.get(Be);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(Re,He.textBoxStartIndex,He.textBoxEndIndex,He.verticalTextBoxStartIndex,He.verticalTextBoxEndIndex,He.iconBoxStartIndex,He.iconBoxEndIndex,He.verticalIconBoxStartIndex,He.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(Re,Be){const He=Re.placedSymbolArray.get(Be),We=He.vertexStartIndex+4*He.numGlyphs;for(let Ye=He.vertexStartIndex;Ye<We;Ye+=4)Re.indexArray.emplaceBack(Ye,Ye+1,Ye+2),Re.indexArray.emplaceBack(Ye+1,Ye+2,Ye+3)}
vendor: 8,383 bytes, line 219
219getSortedSymbolIndexes(Re){if(this.sortedAngle===Re&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;const Be=Math.sin(Re),He=Math.cos(Re),We=[],Ye=[],ni=[];for(let li=0;li<this.symbolInstances.length;++li){ni.push(li);const yi=this.symbolInstances.get(li);We.push(0|Math.round(Be*yi.tileAnchorX+He*yi.tileAnchorY)),Ye.push(yi.featureIndex)}return ni.sort((li,yi)=>We[li]-We[yi]||Ye[yi]-Ye[li]),ni}addToSortKeyRanges(Re,Be){const He=this.sortKeyRanges[this.sortKeyRanges.length-1];He&&He.sortKey===Be?He.symbolInstanceEnd=Re+1:this.sortKeyRanges.push({sortKey:Be,symbolInstanceStart:Re,symbolInstanceEnd:Re+1})}sortFeatures(Re){if(this.sortFeaturesByY&&this.sortedAngle!==Re&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(Re),this.sortedAngle=Re,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const Be of this.symbolInstanceIndexes){const He=this.symbolInstances.get(Be);this.featureSortOrder.push(He.featureIndex);const{rightJustifiedTextSymbolIndex:We,centerJustifiedTextSymbolIndex:Ye,leftJustifiedTextSymbolIndex:ni,verticalPlacedTextSymbolIndex:li,placedIconSymbolIndex:yi,verticalPlacedIconSymbolIndex:xi}=He;We>=0&&this.addIndicesForPlacedSymbol(this.text,We),Ye>=0&&Ye!==We&&this.addIndicesForPlacedSymbol(this.text,Ye),ni>=0&&ni!==Ye&&ni!==We&&this.addIndicesForPlacedSymbol(this.text,ni),li>=0&&this.addIndicesForPlacedSymbol(this.text,li),yi>=0&&this.addIndicesForPlacedSymbol(this.icon,yi),xi>=0&&this.addIndicesForPlacedSymbol(this.icon,xi)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}to(Em,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),Em.MAX_GLYPHS=65535,Em.addDynamicAttributes=i_;const NP=new qn({"symbol-placement":new pn(rs.layout_symbol["symbol-placement"]),"symbol-spacing":new pn(rs.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new pn(rs.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Pn(rs.layout_symbol["symbol-sort-key"]),"symbol-z-order":new pn(rs.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new pn(rs.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new pn(rs.layout_symbol["icon-ignore-placement"]),"icon-optional":new pn(rs.layout_symbol["icon-optional"]),"icon-rotation-alignment":new pn(rs.layout_symbol["icon-rotation-alignment"]),"icon-size":new Pn(rs.layout_symbol["icon-size"]),"icon-text-fit":new pn(rs.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new pn(rs.layout_symbol["icon-text-fit-padding"]),"icon-image":new Pn(rs.layout_symbol["icon-image"]),"icon-rotate":new Pn(rs.layout_symbol["icon-rotate"]),"icon-padding":new pn(rs.layout_symbol["icon-padding"]),"icon-keep-upright":new pn(rs.layout_symbol["icon-keep-upright"]),"icon-offset":new Pn(rs.layout_symbol["icon-offset"]),"icon-anchor":new Pn(rs.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new pn(rs.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new pn(rs.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new pn(rs.layout_symbol["text-rotation-alignment"]),"text-field":new Pn(rs.layout_symbol["text-field"]),"text-font":new Pn(rs.layout_symbol["text-font"]),"text-size":new Pn(rs.layout_symbol["text-size"]),"text-max-width":new Pn(rs.layout_symbol["text-max-width"]),"text-line-height":new Pn(rs.layout_symbol["text-line-height"]),"text-letter-spacing":new Pn(rs.layout_symbol["text-letter-spacing"]),"text-justify":new Pn(rs.layout_symbol["text-justify"]),"text-radial-offset":new Pn(rs.layout_symbol["text-radial-offset"]),"text-variable-anchor":new pn(rs.layout_symbol["text-variable-anchor"]),"text-anchor":new Pn(rs.layout_symbol["text-anchor"]),"text-max-angle":new pn(rs.layout_symbol["text-max-angle"]),"text-writing-mode":new pn(rs.layout_symbol["text-writing-mode"]),"text-rotate":new Pn(rs.layout_symbol["text-rotate"]),"text-padding":new pn(rs.layout_symbol["text-padding"]),"text-keep-upright":new pn(rs.layout_symbol["text-keep-upright"]),"text-transform":new Pn(rs.layout_symbol["text-transform"]),"text-offset":new Pn(rs.layout_symbol["text-offset"]),"text-allow-overlap":new pn(rs.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new pn(rs.layout_symbol["text-ignore-placement"]),"text-optional":new pn(rs.layout_symbol["text-optional"])});var cb={paint:new qn({"icon-opacity":new Pn(rs.paint_symbol["icon-opacity"]),"icon-color":new Pn(rs.paint_symbol["icon-color"]),"icon-halo-color":new Pn(rs.paint_symbol["icon-halo-color"]),"icon-halo-width":new Pn(rs.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Pn(rs.paint_symbol["icon-halo-blur"]),"icon-translate":new pn(rs.paint_symbol["icon-translate"]),"icon-translate-anchor":new pn(rs.paint_symbol["icon-translate-anchor"]),"text-opacity":new Pn(rs.paint_symbol["text-opacity"]),"text-color":new Pn(rs.paint_symbol["text-color"],{runtimeType:bc,getOverride:ze=>ze.textColor,hasOverride:ze=>!!ze.textColor}),"text-halo-color":new Pn(rs.paint_symbol["text-halo-color"]),"text-halo-width":new Pn(rs.paint_symbol["text-halo-width"]),"text-halo-blur":new Pn(rs.paint_symbol["text-halo-blur"]),"text-translate":new pn(rs.paint_symbol["text-translate"]),"text-translate-anchor":new pn(rs.paint_symbol["text-translate-anchor"])}),layout:NP};class lT{constructor(Re){this.type=Re.property.overrides?Re.property.overrides.runtimeType:oa,this.defaultValue=Re}evaluate(Re){if(Re.formattedSection){const Be=this.defaultValue.property.overrides;if(Be&&Be.hasOverride(Re.formattedSection))return Be.getOverride(Re.formattedSection)}return Re.feature&&Re.featureState?this.defaultValue.evaluate(Re.feature,Re.featureState):this.defaultValue.property.specification.default}eachChild(Re){this.defaultValue.isConstant()||Re(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}to(lT,"FormatSectionOverride",{omit:["defaultValue"]});class n_ extends vh{constructor(Re){super(Re,cb)}recalculate(Re,Be){super.recalculate(Re,Be),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));const He=this.layout.get("text-writing-mode");if(He){const We=[];for(const Ye of He)We.indexOf(Ye)<0&&We.push(Ye);this.layout._values["text-writing-mode"]=We}else this.layout._values["text-writing-mode"]=this.layout.get("symbol-placement")==="point"?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(Re,Be,He,We){const Ye=this.layout.get(Re).evaluate(Be,{},He,We),ni=this._unevaluatedLayout._values[Re];return ni.isDataDriven()||Ud(ni.value)||!Ye?Ye:function(li,yi){return yi.replace(/{([^{}]+)}/g,(xi,Pi)=>Pi in li?String(li[Pi]):"")}(Be.properties,Ye)}createBucket(Re){return new Em(Re)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const Re of cb.paint.overridableProperties){if(!n_.hasPaintOverride(this.layout,Re))continue;const Be=this.paint.get(Re),He=new lT(Be),We=new Qu(He,Be.property.specification);let Ye=null;Ye=Be.value.kind==="constant"||Be.value.kind==="source"?new Hh("source",We):new Af("composite",We,Be.value.zoomStops,Be.value._interpolationType),this.paint._values[Re]=new Bn(Be.property,Ye,Be.parameters)}}_handleOverridablePaintPropertyUpdate(Re,Be,He){return!(!this.layout||Be.isDataDriven()||He.isDataDriven())&&n_.hasPaintOverride(this.layout,Re)}static hasPaintOverride(Re,Be){const He=Re.get("text-field"),We=cb.paint.properties[Be];let Ye=!1;const ni=li=>{for(const yi of li)if(We.overrides&&We.overrides.hasOverride(yi))return void(Ye=!0)};if(He.value.kind==="constant"&&He.value.value instanceof Wc)ni(He.value.value.sections);else if(He.value.kind==="source"){const li=xi=>{Ye||(xi instanceof ka&&bl(xi.value)===Od?ni(xi.value.sections):xi 
219instanceof Su?ni(xi.sections):xi.eachChild(li))},yi=He.value;yi._styleExpression&&li(yi._styleExpression.expression)}return Ye}getProgramConfiguration(Re){return new yu(this,Re)}}var VP={paint:new qn({"background-color":new pn(rs.paint_background["background-color"]),"background-pattern":new pn(rs.paint_background["background-pattern"]),"background-opacity":new pn(rs.paint_background["background-opacity"])})},HP={paint:new qn({"raster-opacity":new pn(rs.paint_raster["raster-opacity"]),"raster-hue-rotate":new pn(rs.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new pn(rs.paint_raster["raster-brightness-min"]),"raster-brightness-max":new pn(rs.paint_raster["raster-brightness-max"]),"raster-saturation":new pn(rs.paint_raster["raster-saturation"]),"raster-contrast":new pn(rs.paint_raster["raster-contrast"]),"raster-resampling":new pn(rs.paint_raster["raster-resampling"]),"raster-fade-duration":new pn(rs.paint_raster["raster-fade-duration"])})};class UP extends vh{constructor(Re){super(Re,{}),this.implementation=Re}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}isLayerDraped(){return this.implementation.renderToTile!==void 0}shouldRedrape(){return!!this.implementation.shouldRerenderTiles&&this.implementation.shouldRerenderTiles()}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}onAdd(Re){this.implementation.onAdd&&this.implementation.onAdd(Re,Re.painter.context.gl)}onRemove(Re){this.implementation.onRemove&&this.implementation.onRemove(Re,Re.painter.context.gl)}}var GP={paint:new qn({"sky-type":new pn(rs.paint_sky["sky-type"]),"sky-atmosphere-sun":new pn(rs.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new pn(rs.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new pn(rs.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new pn(rs.paint_sky["sky-gradient-radius"]),"sky-gradient":new Jn(rs.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new pn(rs.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new pn(rs.paint_sky["sky-atmosphere-color"]),"sky-opacity":new pn(rs.paint_sky["sky-opacity"])})};function ub(ze,Re,Be){const He=[0,0,1],We=Km([]);return Ro(We,We,Be?-Tn(ze)+Math.PI:Tn(ze)),df(We,We,-Tn(Re)),zf(He,He,We),vu(He,He)}const jP={circle:class extends vh{constructor(ze){super(ze,uy)}createBucket(ze){return new Eo(ze)}queryRadius(ze){const Re=ze;return ic("circle-radius",this,Re)+ic("circle-stroke-width",this,Re)+Kh(this.paint.get("circle-translate"))}queryIntersectsFeature(ze,Re,Be,He,We,Ye,ni,li){const yi=iu(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Ye.angle,ze.pixelToTileUnitsFactor),xi=this.paint.get("circle-radius").evaluate(Re,Be)+this.paint.get("circle-stroke-width").evaluate(Re,Be);return Fp(ze,He,Ye,ni,li,this.paint.get("circle-pitch-alignment")==="map",this.paint.get("circle-pitch-scale")==="map",yi,xi)}getProgramIds(){return["circle"]}getProgramConfiguration(ze){return new yu(this,ze)}},heatmap:class extends vh{createBucket(ze){return new hy(ze)}constructor(ze){super(ze,t0),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(ze){ze==="heatmap-color"&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=Td({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(ze){return ic("heatmap-radius",this,ze)}queryIntersectsFeature(ze,Re,Be,He,We,Ye,ni,li){const yi=this.paint.get("heatmap-radius").evaluate(Re,Be);return Fp(ze,He,Ye,ni,li,!0,!0,new Gi(0,0),yi)}hasOffscreenPass(){return this.paint.get("heatmap-opacity")!==0&&this.visibility!=="none"}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(ze){return new yu(this,ze)}},hillshade:class extends vh{constructor(ze){super(ze,Hf)}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&this.visibility!=="none"}getProgramIds(){return["hillshade","hillshadePrepare"]}},fill:class extends vh{constructor(ze){super(ze,qk)}getProgramIds(){const ze=this.paint.get("fill-pattern"),Re=ze&&ze.constantOr(1),Be=[Re?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&Be.push(Re&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),Be}getProgramConfiguration(ze){return new yu(this,ze)}recalculate(ze,Re){super.recalculate(ze,Re);const Be=this.paint._values["fill-outline-color"];Be.value.kind==="constant"&&Be.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(ze){return new Ov(ze)}queryRadius(){return Kh(this.paint.get("fill-translate"))}queryIntersectsFeature(ze,Re,Be,He,We,Ye){return!ze.queryGeometry.isAboveHorizon&&Da(Xn(ze.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),Ye.angle,ze.pixelToTileUnitsFactor),He)}isTileClipped(){return!0}},"fill-extrusion":class extends vh{constructor(ze){super(ze,eP)}createBucket(ze){return new vy(ze)}queryRadius(){return Kh(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}getProgramConfiguration(ze){return new yu(this,ze)}queryIntersectsFeature(ze,Re,Be,He,We,Ye,ni,li,yi){const xi=iu(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),Ye.angle,ze.pixelToTileUnitsFactor),Pi=this.paint.get("fill-extrusion-height").evaluate(Re,Be),Ni=this.paint.get("fill-extrusion-base").evaluate(Re,Be),Wi=[0,0],rn=li&&Ye.elevation,un=Ye.elevation?Ye.elevation.exaggeration():1,gn=ze.tile.getBucket(this);if(rn&&gn instanceof vy){const sr=gn.centroidVertexArray,fr=yi+1;fr<sr.length&&(Wi[0]=sr.geta_centroid_pos0(fr),Wi[1]=sr.geta_centroid_pos1(fr))}if(Wi[0]===0&&Wi[1]===1)return!1;Ye.projection.name==="globe"&&(He=AS([He],[new Gi(0,0),new Gi(So,So)],ze.tileID.canonical).map(sr=>sr.polygon).flat());const kn=rn?li:null,[jn,ar]=function(sr,fr,pr,Zr,Gr,us,$s,Qr,ys,vs,
vendor: 5,051 bytes, line 219
219ks){return sr.projection.name==="globe"?function(zs,as,Ks,fo,Qs,Ko,Bs,Co,Jo,Ga,Qo){const Mo=[],$l=[],ra=zs.projection.upVectorScale(Qo,zs.center.lat,zs.worldSize).metersToTile,sa=[0,0,0,1],gl=[0,0,0,1],El=(yl,Yl,mc,Bc)=>{yl[0]=Yl,yl[1]=mc,yl[2]=Bc,yl[3]=1},Cl=CS();Ks>0&&(Ks+=Cl),fo+=Cl;for(const yl of as){const Yl=[],mc=[];for(const Bc of yl){const vl=Bc.x+Qs.x,ou=Bc.y+Qs.y,Nc=zs.projection.projectTilePoint(vl,ou,Qo),rc=zs.projection.upVector(Qo,Bc.x,Bc.y);let Qa=Ks,Vc=fo;if(Bs){const Al=MS(vl,ou,Ks,fo,Bs,Co,Jo,Ga);Qa+=Al.base,Vc+=Al.top}Ks!==0?El(sa,Nc.x+rc[0]*ra*Qa,Nc.y+rc[1]*ra*Qa,Nc.z+rc[2]*ra*Qa):El(sa,Nc.x,Nc.y,Nc.z),El(gl,Nc.x+rc[0]*ra*Vc,Nc.y+rc[1]*ra*Vc,Nc.z+rc[2]*ra*Vc),Ol(sa,sa,Ko),Ol(gl,gl,Ko),Yl.push(new Ul(sa[0],sa[1],sa[2])),mc.push(new Ul(gl[0],gl[1],gl[2]))}Mo.push(Yl),$l.push(mc)}return[Mo,$l]}(sr,fr,pr,Zr,Gr,us,$s,Qr,ys,vs,ks):$s?function(zs,as,Ks,fo,Qs,Ko,Bs,Co,Jo){const Ga=[],Qo=[],Mo=[0,0,0,1];for(const $l of zs){const ra=[],sa=[];for(const gl of $l){const El=gl.x+fo.x,Cl=gl.y+fo.y,yl=MS(El,Cl,as,Ks,Ko,Bs,Co,Jo);Mo[0]=El,Mo[1]=Cl,Mo[2]=yl.base,Mo[3]=1,Rp(Mo,Mo,Qs),Mo[3]=Math.max(Mo[3],1e-5);const Yl=new Ul(Mo[0]/Mo[3],Mo[1]/Mo[3],Mo[2]/Mo[3]);Mo[0]=El,Mo[1]=Cl,Mo[2]=yl.top,Mo[3]=1,Rp(Mo,Mo,Qs),Mo[3]=Math.max(Mo[3],1e-5);const mc=new Ul(Mo[0]/Mo[3],Mo[1]/Mo[3],Mo[2]/Mo[3]);ra.push(Yl),sa.push(mc)}Ga.push(ra),Qo.push(sa)}return[Ga,Qo]}(fr,pr,Zr,Gr,us,$s,Qr,ys,vs):function(zs,as,Ks,fo,Qs){const Ko=[],Bs=[],Co=Qs[8]*as,Jo=Qs[9]*as,Ga=Qs[10]*as,Qo=Qs[11]*as,Mo=Qs[8]*Ks,$l=Qs[9]*Ks,ra=Qs[10]*Ks,sa=Qs[11]*Ks;for(const gl of zs){const El=[],Cl=[];for(const yl of gl){const Yl=yl.x+fo.x,mc=yl.y+fo.y,Bc=Qs[0]*Yl+Qs[4]*mc+Qs[12],vl=Qs[1]*Yl+Qs[5]*mc+Qs[13],ou=Qs[2]*Yl+Qs[6]*mc+Qs[14],Nc=Qs[3]*Yl+Qs[7]*mc+Qs[15],rc=Bc+Co,Qa=vl+Jo,Vc=ou+Ga,Al=Math.max(Nc+Qo,1e-5),ih=Bc+Mo,Hc=vl+$l,Xu=ou+ra,Pu=Math.max(Nc+sa,1e-5);El.push(new Ul(rc/Al,Qa/Al,Vc/Al)),Cl.push(new Ul(ih/Pu,Hc/Pu,Xu/Pu))}Ko.push(El),Bs.push(Cl)}return[Ko,Bs]}(fr,pr,Zr,Gr,us)}(Ye,He,Ni,Pi,xi,ni,kn,Wi,un,Ye.center.lat,ze.tileID.canonical),Wn=ze.queryGeometry;return function(sr,fr,pr){let Zr=1/0;Da(pr,fr)&&(Zr=jf(pr,fr[0]));for(let Gr=0;Gr<fr.length;Gr++){const us=fr[Gr],$s=sr[Gr];for(let Qr=0;Qr<us.length-1;Qr++){const ys=us[Qr],vs=[ys,us[Qr+1],$s[Qr+1],$s[Qr],ys];pa(pr,vs)&&(Zr=Math.min(Zr,jf(pr,vs)))}}return Zr!==1/0&&Zr}(jn,ar,Wn.isPointQuery()?Wn.screenBounds:Wn.screenGeometry)}},line:class extends vh{constructor(ze){super(ze,by),this.gradientVersion=0}_handleSpecialPaintPropertyUpdate(ze){if(ze==="line-gradient"){const Re=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=Re._styleExpression&&Re._styleExpression.expression instanceof Ic,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}widthExpression(){return this._transitionablePaint._values["line-width"].value.expression}recalculate(ze,Re){super.recalculate(ze,Re),this.paint._values["line-floorwidth"]=nc.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ze)}createBucket(ze){return new ep(ze)}getProgramIds(){return[this.paint.get("line-pattern").constantOr(1)?"linePattern":"line"]}getProgramConfiguration(ze){return new yu(this,ze)}queryRadius(ze){const Re=ze,Be=fc(ic("line-width",this,Re),ic("line-gap-width",this,Re)),He=ic("line-offset",this,Re);return Be/2+Math.abs(He)+Kh(this.paint.get("line-translate"))}queryIntersectsFeature(ze,Re,Be,He,We,Ye){if(ze.queryGeometry.isAboveHorizon)return!1;const ni=Xn(ze.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Ye.angle,ze.pixelToTileUnitsFactor),li=ze.pixelToTileUnitsFactor/2*fc(this.paint.get("line-width").evaluate(Re,Be),this.paint.get("line-gap-width").evaluate(Re,Be)),yi=this.paint.get("line-offset").evaluate(Re,Be);return yi&&(He=function(xi,Pi){const Ni=[],Wi=new Gi(0,0);for(let rn=0;rn<xi.length;rn++){const un=xi[rn],gn=[];for(let kn=0;kn<un.length;kn++){const jn=un[kn],ar=un[kn+1],Wn=kn===0?Wi:jn.sub(un[kn-1])._unit()._perp(),sr=kn===un.length-1?Wi:ar.sub(jn)._unit()._perp(),fr=Wn._add(sr)._unit();fr._mult(1/(fr.x*sr.x+fr.y*sr.y)),gn.push(fr._mult(Pi)._add(jn))}Ni.push(gn)}return Ni}(He,yi*ze.pixelToTileUnitsFactor)),function(xi,Pi,Ni){for(let Wi=0;Wi<Pi.length;Wi++){const rn=Pi[Wi];if(xi.length>=3){for(let un=0;un<rn.length;un++)if(dc(xi,rn[un]))return!0}if(Ka(xi,rn,Ni))return!0}return!1}(ni,He,li)}isTileClipped(){return!0}},symbol:n_,background:class extends vh{constructor(ze){super(ze,VP)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}},raster:class extends vh{constructor(ze){super(ze,HP)}getProgramIds(){return["raster"]}},sky:class extends vh{constructor(ze){super(ze,GP),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(ze){ze==="sky-gradient"?this._updateColorRamp():ze!=="sky-atmosphere-sun"&&ze!=="sky-atmosphere-halo-color"&&ze!=="sky-atmosphere-color"&&ze!=="sky-atmosphere-sun-intensity"||(this._skyboxInvali
219dated=!0)}_updateColorRamp(){this.colorRamp=Td({expression:this._transitionablePaint._values["sky-gradient"].value.expression,evaluationKey:"skyRadialProgress"}),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}needsSkyboxCapture(ze){if(this._skyboxInvalidated||!this.skyboxTexture||!this.skyboxGeometry)return!0;if(!this.paint.get("sky-atmosphere-sun")){const Re=ze.style.light.properties.get("position");return this._lightPosition.azimuthal!==Re.azimuthal||this._lightPosition.polar!==Re.polar}return!1}getCenter(ze,Re){if(this.paint.get("sky-type")==="atmosphere"){const He=this.paint.get("sky-atmosphere-sun"),We=!He,Ye=ze.style.light,ni=Ye.properties.get("position");return We&&Ye.properties.get("anchor")==="viewport"&&Mn("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),We?ub(ni.azimuthal,90-ni.polar,Re):ub(He[0],90-He[1],Re)}const Be=this.paint.get("sky-gradient-center");return ub(Be[0],90-Be[1],Re)}is3D(){return!1}isSky(){return!0}markSkyboxValid(ze){this._skyboxInvalidated=!1,this._lightPosition=ze.style.light.properties.get("position")}hasOffscreenPass(){return!0}getProgramIds(){const ze=this.paint.get("sky-type");return ze==="atmosphere"?["skyboxCapture","skybox"]:ze==="gradient"?["skyboxGradient"]:null}}};class Ay{constructor(Re,Be,He,We){this.context=Re,this.format=He,this.texture=Re.gl.createTexture(),this.update(Be,We)}update(Re,Be,He){const{width:We,height:Ye}=Re,{context:ni}=this,{gl:li}=ni,{HTMLImageElement:yi,HTMLCanvasElement:xi,HTMLVideoElement:Pi,ImageData:Ni,ImageBitmap:Wi}=je;if(li.bindTexture(li.TEXTURE_2D,this.texture),ni.pixelStoreUnpackFlipY.set(!1),ni.pixelStoreUnpack.set(1),ni.pixelStoreUnpackPremultiplyAlpha.set(this.format===li.RGBA&&(!Be||Be.premultiply!==!1)),He||this.size&&this.size[0]===We&&this.size[1]===Ye){const{x:rn,y:un}=He||{x:0,y:0};Re instanceof yi||Re instanceof xi||Re instanceof Pi||Re instanceof Ni||Wi&&Re instanceof Wi?li.texSubImage2D(li.TEXTURE_2D,0,rn,un,li.RGBA,li.UNSIGNED_BYTE,Re):li.texSubImage2D(li.TEXTURE_2D,0,rn,un,We,Ye,li.RGBA,li.UNSIGNED_BYTE,Re.data)}else this.size=[We,Ye],Re instanceof yi||Re instanceof xi||Re instanceof Pi||Re instanceof Ni||Wi&&Re instanceof Wi?li.texImage2D(li.TEXTURE_2D,0,this.format,this.format,li.UNSIGNED_BYTE,Re):li.texImage2D(li.TEXTURE_2D,0,this.format,We,Ye,0,this.format,li.UNSIGNED_BYTE,Re.data);this.useMipmap=!!(Be&&Be.useMipmap&&this.isSizePowerOfTwo()),this.useMipmap&&li.generateMipmap(li.TEXTURE_2D)}bind(Re,Be){const{context:He}=this,{gl:We}=He;We.bindTexture(We.TEXTURE_2D,this.texture),Re!==this.filter&&(We.texParameteri(We.TEXTURE_2D,We.TEXTURE_MAG_FILTER,Re),We.texParameteri(We.TEXTURE_2D,We.TEXTURE_MIN_FILTER,this.useMipmap?Re===We.NEAREST?We.NEAREST_MIPMAP_NEAREST:We.LINEAR_MIPMAP_NEAREST:Re),this.filter=Re),Be!==this.wrap&&(We.texParameteri(We.TEXTURE_2D,We.TEXTURE_WRAP_S,Be),We.texParameteri(We.TEXTURE_2D,We.TEXTURE_WRAP_T,Be),this.wrap=Be)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:Re}=this.context;Re.deleteTexture(this.texture),this.texture=null}}class WP{constructor(Re){this._callback=Re,this._triggered=!1,typeof MessageChannel<"u"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){this._channel=void 0,this._callback=()=>{}}}class qP{constructor(){this.tasks={},this.taskQueue=[],Ri(["process"],this),this.invoker=new WP(this.process),this.nextId=0}add(Re,Be){const He=this.nextId++,We=function({type:Ye,isSymbolTile:ni,zoom:li}){return li=li||0,Ye==="message"?0:Ye!=="maybePrepare"||ni?Ye!=="parseTile"||ni?Ye==="parseTile"&&ni?300-li:Ye==="maybePrepare"&&ni?400-li:500:200-li:100-li}(Be);if(We===0){Cr();try{Re()}finally{}return{cancel:()=>{}}}return this.tasks[He]={fn:Re,metadata:Be,priority:We,id:He},this.taskQueue.push(He),this.invoker.trigger(),{cancel:()=>{delete this.tasks[He]}}}process(){Cr();try{if(this.taskQueue=this.taskQueue.filter(He=>!!this.tasks[He]),!this.taskQueue.length)return;const Re=this.pick();if(Re===null)return;const Be=this.tasks[Re];if(delete this.tasks[Re],this.taskQueue.length&&this.invoker.trigger(),!Be)return;Be.fn()}finally{}}pick(){let Re=null,Be=1/0;for(let We=0;We<this.taskQueue.length;We++){const Ye=this.tasks[this.taskQueue[We]];Ye.priority<Be&&(Be=Ye.priority,Re=We)}if(Re===null)return null;const He=this.taskQueue[Re];return this.taskQueue.splice(Re,1),He}remove(){this.invoker.remove()}}class cT{constructor(Re){this._stringToNumber={},this._numberToString=[];for(let Be=0;Be<Re.length;Be++){const He=Re[Be];this._stringToNumber[He]=Be,this._numberToString[Be]=He}}encode(Re){return this._stringToNumber[Re]}decode(Re){return this._numberToString[Re]}}const Xe=["tile","layer","source","sourceLayer","state"];class ri{constructor(Re,Be,He,We,Ye){this.type="Feature",this._vectorTileFeature=Re,this._z=Be,this._x=He,this._y=We,this.properties=Re.properties,this.id=Ye}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._x,this._y,this._z).geometry),this._geometry}set geometry(Re){this._geometry=Re}toJSON(){const Re={type:"Feature",state:void 0,geometry:this.geometry,properties:this.properties};this.id!==void 0&&(Re.id=this.id);for(const Be of Xe)this[Be]!==void 0&&(Re[Be]=this[Be]);return Re}}const Ti=32,Yi=33,wn=new Uint16Array(8184);for(let ze=0;ze<2046;ze++){let Re=ze+2,Be=0,He=0,We=0,Ye=0,ni=0,li=0;for(1&Re?We=Ye=ni=Ti:Be=He=li=Ti;(Re>>=1)>1;){const xi=Be+We>>1,Pi=He+Ye>>1;
vendor: 5,093 bytes, line 219
2191&Re?(We=Be,Ye=He,Be=ni,He=li):(Be=We,He=Ye,We=ni,Ye=li),ni=xi,li=Pi}const yi=4*ze;wn[yi+0]=Be,wn[yi+1]=He,wn[yi+2]=We,wn[yi+3]=Ye}const Nn=new Uint16Array(2178),cr=new Uint8Array(1089),Dr=new Uint16Array(1089);function Hr(ze){return ze===0?-.03125:ze===32?.03125:0}var Rs=Pr([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);const Os={type:2,extent:So,loadGeometry:()=>[[new Gi(0,0),new Gi(So+1,0),new Gi(So+1,So+1),new Gi(0,So+1),new Gi(0,0)]]};class Vs{constructor(Re,Be,He,We,Ye){this.tileID=Re,this.uid=vn(),this.uses=0,this.tileSize=Be,this.tileZoom=He,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=Ye,this.expiredRequestCount=0,this.state="loading",We&&We.transform&&(this.projection=We.transform.projection)}registerFadeDuration(Re){const Be=Re+this.timeAdded;Be<Ru.now()||this.fadeEndTime&&Be<this.fadeEndTime||(this.fadeEndTime=Be)}wasRequested(){return this.state==="errored"||this.state==="loaded"||this.state==="reloading"}get tileTransform(){return this._tileTransform||(this._tileTransform=og(this.tileID.canonical,this.projection)),this._tileTransform}loadVectorData(Re,Be,He){if(this.unloadVectorData(),this.state="loaded",Re){Re.featureIndex&&(this.latestFeatureIndex=Re.featureIndex,Re.rawTileData?(this.latestRawTileData=Re.rawTileData,this.latestFeatureIndex.rawTileData=Re.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=Re.collisionBoxArray,this.buckets=function(We,Ye){const ni={};if(!Ye)return ni;for(const li of We){const yi=li.layerIds.map(xi=>Ye.getLayer(xi)).filter(Boolean);if(yi.length!==0){li.layers=yi,li.stateDependentLayerIds&&(li.stateDependentLayers=li.stateDependentLayerIds.map(xi=>yi.filter(Pi=>Pi.id===xi)[0]));for(const xi of yi)ni[xi.id]=li}}return ni}(Re.buckets,Be.style),this.hasSymbolBuckets=!1;for(const We in this.buckets){const Ye=this.buckets[We];if(Ye instanceof Em){if(this.hasSymbolBuckets=!0,!He)break;Ye.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const We in this.buckets){const Ye=this.buckets[We];if(Ye instanceof Em&&Ye.hasRTLText){this.hasRTLText=!0,Mi.isLoading()||Mi.isLoaded()||ui()!=="deferred"||Si();break}}this.queryPadding=0;for(const We in this.buckets){const Ye=this.buckets[We];this.queryPadding=Math.max(this.queryPadding,Be.style.getLayer(We).queryRadius(Ye))}Re.imageAtlas&&(this.imageAtlas=Re.imageAtlas),Re.glyphAtlasImage&&(this.glyphAtlasImage=Re.glyphAtlasImage),Re.lineAtlas&&(this.lineAtlas=Re.lineAtlas)}else this.collisionBoxArray=new Ha}unloadVectorData(){if(this.hasData()){for(const Re in this.buckets)this.buckets[Re].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(Re){return this.buckets[Re.id]}upload(Re){for(const He in this.buckets){const We=this.buckets[He];We.uploadPending()&&We.upload(Re)}const Be=Re.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Ay(Re,this.imageAtlas.image,Be.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Ay(Re,this.glyphAtlasImage,Be.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new Ay(Re,this.lineAtlas.image,Be.ALPHA),this.lineAtlas.uploaded=!0)}prepare(Re){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(Re,this.imageAtlasTexture)}queryRenderedFeatures(Re,Be,He,We,Ye,ni,li,yi){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:We,pixelPosMatrix:li,transform:ni,params:Ye,tileTransform:this.tileTransform},Re,Be,He):{}}querySourceFeatures(Re,Be){const He=this.latestFeatureIndex;if(!He||!He.rawTileData)return;const We=He.loadVTLayers(),Ye=Be?Be.sourceLayer:"",ni=We._geojsonTileLayer||We[Ye];if(!ni)return;const li=Gh(Be&&Be.filter),{z:yi,x:xi,y:Pi}=this.tileID.canonical,Ni={z:yi,x:xi,y:Pi};for(let Wi=0;Wi<ni.length;Wi++){const rn=ni.feature(Wi);if(li.needGeometry){const kn=Cs(rn,!0);
219if(!li.filter(new Fi(this.tileID.overscaledZ),kn,this.tileID.canonical))continue}else if(!li.filter(new Fi(this.tileID.overscaledZ),rn))continue;const un=He.getId(rn,Ye),gn=new ri(rn,yi,xi,Pi,un);gn.tile=Ni,Re.push(gn)}}hasData(){return this.state==="loaded"||this.state==="reloading"||this.state==="expired"}patternsLoaded(){return!!this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(Re){const Be=this.expirationTime;if(Re.cacheControl){const He=_r(Re.cacheControl);He["max-age"]&&(this.expirationTime=Date.now()+1e3*He["max-age"])}else Re.expires&&(this.expirationTime=new Date(Re.expires).getTime());if(this.expirationTime){const He=Date.now();let We=!1;if(this.expirationTime>He)We=!1;else if(Be)if(this.expirationTime<Be)We=!0;else{const Ye=this.expirationTime-Be;Ye?this.expirationTime=He+Math.max(Ye,3e4):We=!0}else We=!0;We?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-new Date().getTime(),Math.pow(2,31)-1)}setFeatureState(Re,Be){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||Object.keys(Re).length===0||!Be)return;const He=this.latestFeatureIndex.loadVTLayers(),We=Be.style.listImages();for(const Ye in this.buckets){if(!Be.style.hasLayer(Ye))continue;const ni=this.buckets[Ye],li=ni.layers[0].sourceLayer||"_geojsonTileLayer",yi=He[li],xi=Re[li];if(!yi||!xi||Object.keys(xi).length===0)continue;if(ni.update(xi,yi,We,this.imageAtlas&&this.imageAtlas.patternPositions||{}),ni instanceof ep||ni instanceof Ov){const Ni=Be.style._getSourceCache(ni.layers[0].source);Be._terrain&&Be._terrain.enabled&&Ni&&ni.programConfigurations.needsUpload&&Be._terrain._clearRenderCacheForTile(Ni.id,this.tileID)}const Pi=Be&&Be.style&&Be.style.getLayer(Ye);Pi&&(this.queryPadding=Math.max(this.queryPadding,Pi.queryRadius(ni)))}}holdingForFade(){return this.symbolFadeHoldUntil!==void 0}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<Ru.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(Re){this.symbolFadeHoldUntil=Ru.now()+Re}setTexture(Re,Be){const He=Be.context,We=He.gl;this.texture=this.texture||Be.getTileTexture(Re.width),this.texture?this.texture.update(Re,{useMipmap:!0}):(this.texture=new Ay(He,Re,We.RGBA,{useMipmap:!0}),this.texture.bind(We.LINEAR,We.CLAMP_TO_EDGE))}setDependencies(Re,Be){const He={};for(const We of Be)He[We]=!0;this.dependencies[Re]=He}hasDependency(Re,Be){for(const He of Re){const We=this.dependencies[He];if(We){for(const Ye of Be)if(We[Ye])return!0}}return!1}clearQueryDebugViz(){}_makeDebugTileBoundsBuffers(Re,Be){if(!Be||Be.name==="mercator"||this._tileDebugBuffer)return;const He=oo(Os,this.tileID.canonical,this.tileTransform)[0],We=new Ds,Ye=new gu;for(let ni=0;ni<He.length;ni++){const{x:li,y:yi}=He[ni];We.emplaceBack(li,yi),Ye.emplaceBack(ni)}Ye.emplaceBack(0),this._tileDebugIndexBuffer=Re.createIndexBuffer(Ye),this._tileDebugBuffer=Re.createVertexBuffer(We,hf.members),this._tileDebugSegments=Il.simpleSegment(0,0,We.length,Ye.length)}_makeTileBoundsBuffers(Re,Be){if(this._tileBoundsBuffer||!Be||Be.name==="mercator")return;const He=oo(Os,this.tileID.canonical,this.tileTransform)[0];let We,Ye;if(this.isRaster){const ni=function(li,yi){const xi=og(li,yi),Pi=Math.pow(2,li.z);for(let kn=0;kn<Yi;kn++)for(let jn=0;jn<Yi;jn++){const ar=lr((li.x+(jn+Hr(jn))/Ti)/Pi),Wn=Gn((li.y+(kn+Hr(kn))/Ti)/Pi),sr=yi.project(ar,Wn),fr=kn*Yi+jn;Nn[2*fr+0]=Math.round((sr.x*xi.scale-xi.x)*So),Nn[2*fr+1]=Math.round((sr.y*xi.scale-xi.y)*So)}cr.fill(0),Dr.fill(0);for(let kn=2045;kn>=0;kn--){const jn=4*kn,ar=wn[jn+0],Wn=wn[jn+1],sr=wn[jn+2],fr=wn[jn+3],pr=ar+sr>>1,Zr=Wn+fr>>1,Gr=pr+Zr-Wn,us=Zr+ar-pr,$s=Wn*Yi+ar,Qr=fr*Yi+sr,ys=Zr*Yi+pr,vs=Math.hypot((Nn[2*$s+0]+Nn[2*Qr+0])/2-Nn[2*ys+0],(Nn[2*$s+1]+Nn[2*Qr+1])/2-Nn[2*ys+1])>=16;cr[ys]=cr[ys]||(vs?1:0),kn<1022&&(cr[ys]=cr[ys]||cr[(Wn+us>>1)*Yi+(ar+Gr>>1)]||cr[(fr+us>>1)*Yi+(sr+Gr>>1)])}const Ni=new cs,Wi=new lo;let rn=0;function un(kn,jn){const ar=jn*Yi+kn;return Dr[ar]===0&&(Ni.emplaceBack(Nn[2*ar+0],Nn[2*ar+1],kn*So/Ti,jn*So/Ti),Dr[ar]=++rn),Dr[ar]-1}function gn(kn,jn,ar,Wn,sr,fr){const pr=kn+ar>>1,Zr=jn+Wn>>1;if(Math.abs(kn-sr)+Math.abs(jn-fr)>1&&cr[Zr*Yi+pr])gn(sr,fr,kn,jn,pr,Zr),gn(ar,Wn,sr,fr,pr,Zr);else{const Gr=un(kn,jn),us=un(ar,Wn),$s=un(sr,fr);Wi.emplaceBack(Gr,us,$s)}}return gn(0,0,Ti,Ti,Ti,0),gn(Ti,Ti,0,0,0,Ti),{vertices:Ni,indices:Wi}}(this.tileID.canonical,Be);We=ni.vertices,Ye=ni.indices}else{We=new cs,Ye=new lo;for(const{x:li,y:yi}of He)We.emplaceBack(li,yi,0,0);const ni=nu(We.int16,void 0,4);for(let li=0;li<ni.length;li+=3)Ye.emplaceBack(ni[li],ni[li+1],ni[li+2])}this._tileBoundsBuffer=Re.createVertexBuffer(We,Rs.members),this._tileBoundsIndexBuffer=Re.createIndexBuffer(Ye),this._tileBoundsSegments=Il.simpleSegment(0,0,We.length,Ye.length)}_makeGlobeTileDebugBuffers(Re,Be){const He=Be.projection;if(!He||He.name!=="globe"||Be.freezeTileCoverage)return;const We=this.tileID.canonical,Ye=Yh(ly(We,Be)),ni=si(Be.zoom);let li;ni>0&&(li=_d(new Float64Array(16),Be.globeMatrix)),this._makeGlobeTileDebugBorderBuffer(Re,We,Be,Ye,li,ni),this._makeGlobeTileDebugTextBuffer(Re,We,Be,Ye,li,ni)}_globePoint(Re,Be,He,We,Ye,ni,li){let yi=ff(Re,Be,He);if(ni){const xi=1<<He.z,Pi=$n(We.center.lng),Ni=Ln(We.center.lat),Wi=(He.x+.5)/xi-Pi;let rn=0;Wi>.5?rn=-1:Wi<-.5&&(rn=1);let un=(Re/So+He.x)/xi+rn,gn=(Be/So+He.y)/xi;un=(un-Pi)*We._pixelsPerMercatorPixel+Pi,gn=(gn-Ni)*We._pixelsPerMercatorPixel+Ni;const kn=[un*We.worldSize,gn*We.worldSize,0];Ol(kn,kn,ni),yi=Lp(yi,kn,li)}return Ol(yi,yi,Ye)}_makeGlobeTileDebugBorderBuffer(Re,Be,He,We,Ye,ni){const li=new Ds,yi=new gu,xi=new zr,Pi=(Wi,rn,un,gn,kn)=>{const jn=(un-Wi)/(kn-1),ar=(gn-rn)/(kn-1),Wn=li.length;for(let sr=0;sr<kn;sr++){const fr=Wi+sr*jn,pr=rn+sr*ar;li.emplaceBack(fr,pr);const Zr=this._globePoint(fr,pr,Be,He,We,Ye,ni);xi.emplaceBack(Zr[0],Zr[1],Zr[2]),yi.emplaceBack(Wn+sr)}},Ni=So;Pi(0,0,Ni,0,16),Pi(Ni,0,Ni,Ni,16),Pi(Ni,Ni,0,Ni,16),Pi(0,Ni,0,0,16),this._tileDebugIndexBuffer=Re.createIndexBuffer(yi),this._tileDebugBuffer=Re.createVertexBuffer(li,hf.members),this._globeTileDebugBorderBuffer=Re.createVertexBuffer(xi,sy.members),this._tileDebugSegments=Il.simpleSegment(0,0,li.length,yi.length)}_makeGlobeTileDebugTextBuffer(Re,Be,He,We,Ye,ni){const li=So/4,yi=new Ds,xi=new lo,Pi=new zr,Ni=25;xi.reserve(32),yi.reserve(Ni),Pi.reserve(Ni);const Wi=(rn,un)=>Ni*rn+un;for(let rn=0;rn<Ni;rn++){const un=rn*li;for(let gn=0;gn<Ni;gn++){const kn=gn*li;yi.emplaceBack(kn,un);const jn=this._globePoint(kn,un,Be,He,We,Ye,ni);Pi.emplaceBack(jn[0],jn[1],jn[2])}}for(let rn=0;rn<4;rn++)for(let un=0;un<4;un++){const gn=Wi(rn,un),kn=Wi(rn,un+1),jn=Wi(rn+1,un),ar=Wi(rn+1,un+1);xi.emplaceBack(gn,kn,jn),xi.emplaceBack(jn,kn,ar)}this._tileDebugTextIndexBuffer=Re.createIndexBuffer(xi),this._tileDebugTextBuffer=Re.createVertexBuffer(yi,hf.members),this._globeTileDebugTextBuffer=Re.createVertexBuffer(Pi,sy.members),this._tileDebugTextSegments=Il.simpleSegment(0,0,Ni,32)}}class mo{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(Re,Be,He){const We=String(Be);if(this.stateChanges[Re]=this.stateChanges[Re]||{},this.stateChanges[Re][We]=this.stateChanges[Re][We]||{},Qi(this.stateChanges[Re][We],He),this.deletedStates[Re]===null){this.deletedStates[Re]={};for(const Ye in this.state[Re])Ye!==We&&(this.deletedStates[Re][Ye]=null)}else if(this.deletedStates[Re]&&this.deletedStates[Re][We]===null){this.deletedStates[Re][We]={};for(const Ye in this.state[Re][We])He[Ye]||(this.deletedStates[Re][We][Ye]=null)}else for(const Ye in He)this.deletedStates[Re]&&this.deletedStates[Re][We]&&this.deletedStates[Re][We][Ye]===null&&delete this.deletedStates[Re][We][Ye]}removeFeatureState(Re,Be,He){if(this.deletedStates[Re]===null)return;const We=String(Be);if(this.deletedStates[Re]=this.deletedStates[Re]||{},He&&Be!==void 0)this.deletedStates[Re][We]!==null&&(this.deletedStates[Re][We]=this.deletedStates[Re][We]||{},this.deletedStates[Re][We][He]=null);else if(Be!==void 0)if(this.stateChanges[Re]&&this.stateChanges[Re][We])for(He in this.deletedStates[Re][We]={},this.stateChanges[Re][We])this.deletedStates[Re][We][He]=null;else this.deletedStates[Re][We]=null;else this.deletedStates[Re]=null}getState(Re,Be){const He=String(Be),We=Qi({},(this.state[Re]||{})[He],(this.stateChanges[Re]||{})[He]);if(this.deletedStates[Re]===null)return{};if(this.deletedStates[Re]){const Ye=this.deletedStates[Re][Be];if(Ye===null)return{};for(const ni in Ye)delete We[ni]}return We}initializeTileState(Re,Be){Re.setFeatureState(this.state,Be)}coalesceChanges(Re,Be){const He={};for(const We in this.stateChanges){this.state[We]=this.state[We]||{};const Ye={};for(const ni in this.stateChanges[We])this.state[We][ni]||(this.state[We][ni]={}),Qi(this.state[We][ni],this.stateChanges[We][ni]),Ye[ni]=this.state[We][ni];He[We]=Ye}for(const We in this.deletedStates){this.state[We]=this.state[We]||{};const Ye={};if(this.deletedStates[We]===null)for(const ni in this.state[We])Ye[ni]={},this.state[We][ni]={};else for(const ni in this.deletedStates[We]){if(this.deletedStates[We][ni]===null)this.state[We][ni]={};
vendor: 10,118 bytes, line 219
219else if(this.state[We][ni])for(const li of Object.keys(this.deletedStates[We][ni]))delete this.state[We][ni][li];Ye[ni]=this.state[We][ni]}He[We]=He[We]||{},Qi(He[We],Ye)}if(this.stateChanges={},this.deletedStates={},Object.keys(He).length!==0)for(const We in Re)Re[We].setFeatureState(He,Be)}}class Ao{constructor(Re){this.size=Re,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(Re,Be){const He=this.toIdx(Re,Be);return{min:this.minimums[He],max:this.maximums[He]}}isLeaf(Re,Be){return this.leaves[this.toIdx(Re,Be)]}toIdx(Re,Be){return Be*this.size+Re}}function Uo(ze,Re,Be,He){let We=0,Ye=Number.MAX_VALUE;for(let ni=0;ni<3;ni++)if(Math.abs(He[ni])<1e-15){if(Be[ni]<ze[ni]||Be[ni]>Re[ni])return null}else{const li=1/He[ni];let yi=(ze[ni]-Be[ni])*li,xi=(Re[ni]-Be[ni])*li;if(yi>xi){const Pi=yi;yi=xi,xi=Pi}if(yi>We&&(We=yi),xi<Ye&&(Ye=xi),We>Ye)return null}return We}function Sa(ze,Re,Be,He,We,Ye,ni,li,yi,xi,Pi){const Ni=He-ze,Wi=We-Re,rn=Ye-Be,un=ni-ze,gn=li-Re,kn=yi-Be,jn=Pi[1]*kn-Pi[2]*gn,ar=Pi[2]*un-Pi[0]*kn,Wn=Pi[0]*gn-Pi[1]*un,sr=Ni*jn+Wi*ar+rn*Wn;if(Math.abs(sr)<1e-15)return null;const fr=1/sr,pr=xi[0]-ze,Zr=xi[1]-Re,Gr=xi[2]-Be,us=(pr*jn+Zr*ar+Gr*Wn)*fr;if(us<0||us>1)return null;const $s=Zr*rn-Gr*Wi,Qr=Gr*Ni-pr*rn,ys=pr*Wi-Zr*Ni,vs=(Pi[0]*$s+Pi[1]*Qr+Pi[2]*ys)*fr;return vs<0||us+vs>1?null:(un*$s+gn*Qr+kn*ys)*fr}function Go(ze,Re,Be){return(ze-Re)/(Be-Re)}function Ra(ze,Re,Be,He,We,Ye,ni,li,yi){const xi=1<<Be,Pi=Ye-He,Ni=ni-We,Wi=(ze+1)/xi*Pi+He,rn=(Re+0)/xi*Ni+We,un=(Re+1)/xi*Ni+We;li[0]=(ze+0)/xi*Pi+He,li[1]=rn,yi[0]=Wi,yi[1]=un}class Ua{constructor(Re){if(this.maximums=[],this.minimums=[],this.leaves=[],this.childOffsets=[],this.nodeCount=0,this.dem=Re,this._siblingOffset=[[0,0],[1,0],[0,1],[1,1]],!this.dem)return;const Be=function(Ye){const ni=Math.ceil(Math.log2(Ye.dim/8)),li=[];let yi=Math.ceil(Math.pow(2,ni));const xi=1/yi,Pi=(rn,un,gn,kn,jn)=>{const ar=kn?1:0,Wn=(rn+1)*gn-ar,sr=un*gn,fr=(un+1)*gn-ar;jn[0]=rn*gn,jn[1]=sr,jn[2]=Wn,jn[3]=fr};let Ni=new Ao(yi);const Wi=[];for(let rn=0;rn<yi*yi;rn++){Pi(rn%yi,Math.floor(rn/yi),xi,!1,Wi);const un=Mc(Wi[0],Wi[1],Ye),gn=Mc(Wi[2],Wi[1],Ye),kn=Mc(Wi[2],Wi[3],Ye),jn=Mc(Wi[0],Wi[3],Ye);Ni.minimums.push(Math.min(un,gn,kn,jn)),Ni.maximums.push(Math.max(un,gn,kn,jn)),Ni.leaves.push(1)}for(li.push(Ni),yi/=2;yi>=1;yi/=2){const rn=li[li.length-1];Ni=new Ao(yi);for(let un=0;un<yi*yi;un++){Pi(un%yi,Math.floor(un/yi),2,!0,Wi);const gn=rn.getElevation(Wi[0],Wi[1]),kn=rn.getElevation(Wi[2],Wi[1]),jn=rn.getElevation(Wi[2],Wi[3]),ar=rn.getElevation(Wi[0],Wi[3]),Wn=rn.isLeaf(Wi[0],Wi[1]),sr=rn.isLeaf(Wi[2],Wi[1]),fr=rn.isLeaf(Wi[2],Wi[3]),pr=rn.isLeaf(Wi[0],Wi[3]),Zr=Math.min(gn.min,kn.min,jn.min,ar.min),Gr=Math.max(gn.max,kn.max,jn.max,ar.max),us=Wn&&sr&&fr&&pr;Ni.maximums.push(Gr),Ni.minimums.push(Zr),Ni.leaves.push(Gr-Zr<=5&&us?1:0)}li.push(Ni)}return li}(this.dem),He=Be.length-1,We=Be[He];this._addNode(We.minimums[0],We.maximums[0],We.leaves[0]),this._construct(Be,0,0,He,0)}raycastRoot(Re,Be,He,We,Ye,ni,li=1){return Uo([Re,Be,-100],[He,We,this.maximums[0]*li],Ye,ni)}raycast(Re,Be,He,We,Ye,ni,li=1){if(!this.nodeCount)return null;const yi=this.raycastRoot(Re,Be,He,We,Ye,ni,li);if(yi==null)return null;const xi=[],Pi=[],Ni=[],Wi=[],rn=[{idx:0,t:yi,nodex:0,nodey:0,depth:0}];for(;rn.length>0;){const{idx:un,t:gn,nodex:kn,nodey:jn,depth:ar}=rn.pop();if(this.leaves[un]){Ra(kn,jn,ar,Re,Be,He,We,Ni,Wi);const sr=1<<ar,fr=(kn+0)/sr,pr=(kn+1)/sr,Zr=(jn+0)/sr,Gr=(jn+1)/sr,us=Mc(fr,Zr,this.dem)*li,$s=Mc(pr,Zr,this.dem)*li,Qr=Mc(pr,Gr,this.dem)*li,ys=Mc(fr,Gr,this.dem)*li,vs=Sa(Ni[0],Ni[1],us,Wi[0],Ni[1],$s,Wi[0],Wi[1],Qr,Ye,ni),ks=Sa(Wi[0],Wi[1],Qr,Ni[0],Wi[1],ys,Ni[0],Ni[1],us,Ye,ni),zs=Math.min(vs!==null?vs:Number.MAX_VALUE,ks!==null?ks:Number.MAX_VALUE);if(zs!==Number.MAX_VALUE)return zs;{const as=lf([],Ye,ni,gn);if(eh(us,$s,ys,Qr,Go(as[0],Ni[0],Wi[0]),Go(as[1],Ni[1],Wi[1]))>=as[2])return gn}continue}let Wn=0;for(let sr=0;sr<this._siblingOffset.length;sr++){Ra((kn<<1)+this._siblingOffset[sr][0],(jn<<1)+this._siblingOffset[sr][1],ar+1,Re,Be,He,We,Ni,Wi),Ni[2]=-100,Wi[2]=this.maximums[this.childOffsets[un]+sr]*li;const fr=Uo(Ni,Wi,Ye,ni);if(fr!=null){const pr=fr;xi[sr]=pr;let Zr=!1;for(let Gr=0;Gr<Wn&&!Zr;Gr++)pr>=xi[Pi[Gr]]&&(Pi.splice(Gr,0,sr),Zr=!0);Zr||(Pi[Wn]=sr),Wn++}}for(let sr=0;sr<Wn;sr++){const fr=Pi[sr];rn.push({idx:this.childOffsets[un]+fr,t:xi[fr],nodex:(kn<<1)+this._siblingOffset[fr][0],nodey:(jn<<1)+this._siblingOffset[fr][1],depth:ar+1})}}return null}_addNode(Re,Be,He){return this.minimums.push(Re),this.maximums.push(Be),this.leaves.push(He),this.childOffsets.push(0),this.nodeCount++}_construct(Re,Be,He,We,Ye){if(Re[We].isLeaf(Be,He)===1)return;this.childOffsets[Ye]||(this.childOffsets[Ye]=this.nodeCount);const ni=We-1,li=Re[ni];let yi=0,xi=0;for(let Pi=0;Pi<this._siblingOffset.length;Pi++){const Ni=2*Be+this._siblingOffset[Pi][0],Wi=2*He+this._siblingOffset[Pi][1],rn=li.getElevation(Ni,Wi),un=li.isLeaf(Ni,Wi),gn=this._addNode(rn.min,rn.max,un);un&&(yi|=1<<Pi),xi||(xi=gn)}for(let Pi=0;Pi<this._siblingOffset.length;Pi++)yi&1<<Pi||this._construct(Re,2*Be+this._siblingOffset[Pi][0],2*He+this._siblingOffset[Pi][1],ni,xi+Pi)}}function eh(ze,Re,Be,He,We,Ye){return qo(qo(ze,Be,Ye),qo(Re,He,Ye),We)}function Mc(ze,Re,Be){const He=Be.dim,We=Hn(ze*He-.5,0,He-1),Ye=Hn(Re*He-.5,0,He-1),ni=Math.floor(We),li=Math.floor(Ye),yi=Math.min(ni+1,He-1),xi=Math.min(li+1,He-1);return eh(Be.get(ni,li),Be.get(yi,li),Be.get(ni,xi),Be.get(yi,xi),We-ni,Ye-li)}const th={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768]};function zc(ze,Re,Be){return(256*ze*256+256*Re+Be)/10-1e4}function Vp(ze,Re,Be){return 256*ze+Re+Be/256-32768}class tp{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(Re,Be,He,We=!1,Ye=!1){if(this.uid=Re,Be.height!==Be.width)throw new RangeError("DEM tiles must be square");if(He&&He!=="mapbox"&&He!=="terrarium")return Mn(`"${He}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=Be.height;const ni=this.dim=Be.height-2,li=new Uint32Array(Be.data.buffer);if(this.pixels=new Uint8Array(Be.data.buffer),this.encoding=He||"mapbox",this.borderReady=We,!We){for(let yi=0;yi<ni;yi++)li[this._idx(-1,yi)]=li[this._idx(0,yi)],li[this._idx(ni,yi)]=li[this._idx(ni-1,yi)],li[this._idx(yi,-1)]=li[this._idx(yi,0)],li[this._idx(yi,ni)]=li[this._idx(yi,ni-1)];li[this._idx(-1,-1)]=li[this._idx(0,0)],li[this._idx(ni,-1)]=li[this._idx(ni-1,0)],li[this._idx(-1,ni)]=li[this._idx(0,ni-1)],li[this._idx(ni,ni)]=li[this._idx(ni-1,ni-1)],Ye&&this._buildQuadTree()}}_buildQuadTree(){this._tree=new Ua(this)}get(Re,Be,He=!1){He&&(Re=Hn(Re,-1,this.dim),Be=Hn(Be,-1,this.dim));const We=4*this._idx(Re,Be);return(this.encoding==="terrarium"?Vp:zc)(this.pixels[We],this.pixels[We+1],this.pixels[We+2])}static getUnpackVector(Re){return th[Re]}get unpackVector(){return th[this.encoding]}_idx(Re,Be){if(Re<-1||Re>=this.dim+1||Be<-1||Be>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(Be+1)*this.stride+(Re+1)}static pack(Re,Be){const He=[0,0,0,0],We=tp.getUnpackVector(Be);let Ye=Math.floor((Re+We[3])/We[2]);return He[2]=Ye%256,Ye=Math.floor(Ye/256),He[1]=Ye%256,Ye=Math.floor(Ye/256),He[0]=Ye,He}getPixels(){return new fa({width:this.stride,height:this.stride},this.pixels)}backfillBorder(Re,Be,He){if(this.dim!==Re.dim)throw new Error("dem dimension mismatch");let We=Be*this.dim,Ye=Be*this.dim+this.dim,ni=He*this.dim,li=He*this.dim+this.dim;switch(Be){case-1:We=Ye-1;break;case 1:Ye=We+1}switch(He){case-1:ni=li-1;break;case 1:li=ni+1}const yi=-Be*this.dim,xi=-He*this.dim;for(let Pi=ni;Pi<li;Pi++)for(let Ni=We;Ni<Ye;Ni++){const Wi=4*this._idx(Ni,Pi),rn=4*this._idx(Ni+yi,Pi+xi);this.pixels[Wi+0]=Re.pixels[rn+0],this.pixels[Wi+1]=Re.pixels[rn+1],this.pixels[Wi+2]=Re.pixels[rn+2],this.pixels[Wi+3]=Re.pixels[rn+3]}}onDeserialize(){this._tree&&(this._tree.dem=this)}}to(tp,"DEMData"),to(Ua,"DemMinMaxQuadTree",{omit:["dem"]});class uT{constructor(Re,Be){this.max=Re,this.onRemove=Be,this.reset()}reset(){for(const Re in this.data)for(const Be of this.data[Re])Be.timeout&&clearTimeout(Be.timeout),this.onRemove(Be.value);return this.data={},this.order=[],this}add(Re,Be,He){const We=Re.wrapped().key;this.data[We]===void 0&&(this.data[We]=[]);const Ye={value:Be,timeout:void 0};if(He!==void 0&&(Ye.timeout=setTimeout(()=>{this.remove(Re,Ye)},He)),this.data[We].push(Ye),this.order.push(We),this.order.length>this.max){const ni=this._getAndRemoveByKey(this.order[0]);ni&&this.onRemove(ni)}return this}has(Re){return Re.wrapped().key in this.data}getAndRemove(Re){return this.has(Re)?this._getAndRemoveByKey(Re.wrapped().key):null}_getAndRemoveByKey(Re){const Be=this.data[Re].shift();return Be.timeout&&clearTimeout(Be.timeout),this.data[Re].length===0&&delete this.data[Re],this.order.splice(this.order.indexOf(Re),1),Be.value}getByKey(Re){const Be=this.data[Re];return Be?Be[0].value:null}get(Re){return this.has(Re)?this.data[Re.wrapped().key][0].value:null}remove(Re,Be){if(!this.has(Re))return this;const He=Re.wrapped().key,We=Be===void 0?0:this.data[He].indexOf(Be),Ye=this.data[He][We];return this.data[He].splice(We,1),Ye.timeout&&clearTimeout(Ye.timeout),this.data[He].length===0&&delete this.data[He],this.onRemove(Ye.value),this.order.splice(this.order.indexOf(He),1),this}setMaxSize(Re){for(this.max=Re;this.order.length>this.max;){const Be=this._getAndRemoveByKey(this.order[0]);Be&&this.onRemove(Be)}return this}filter(Re){const Be=[];for(const He in this.data)for(const We of this.data[He])Re(We.value)||Be.push(We);for(const He of Be)this.remove(He.value.tileID,He)}}class r_{constructor(Re,Be,He){this.func=Re,this.mask=Be,this.range=He}}r_.ReadOnly=!1,r_.ReadWrite=!0,r_.disabled=new r_(519,r_.ReadOnly,[0,1]);const XP=7680;class ZP{constructor(Re,Be,He,We,Ye,ni){this.test=Re,this.ref=Be,this.mask=He,this.fail=We,this.depthFail=Ye,this.pass=ni}}ZP.disabled=new ZP({func:519,mask:0},0,0,XP,XP,XP);class Cm{constructor(Re,Be,He){this.blendFunction=Re,this.blendColor=Be,this.mask=He}}Cm.Replace=[1,0],Cm.disabled=new Cm(Cm.Replace,aa.transparent,[!1,!1,!1,!1]),
219Cm.unblended=new Cm(Cm.Replace,aa.transparent,[!0,!0,!0,!0]),Cm.alphaBlended=new Cm([1,771],aa.transparent,[!0,!0,!0,!0]);const YP=1029,KP=2305;class qf{constructor(Re,Be,He){this.enable=Re,this.mode=Be,this.frontFace=He}}qf.disabled=new qf(!1,YP,KP),qf.backCCW=new qf(!0,YP,KP),qf.backCW=new qf(!0,YP,2304),qf.frontCW=new qf(!0,1028,2304),qf.frontCCW=new qf(!0,1028,KP);class Dy extends rh{constructor(Re,Be,He){super(),this.id=Re,this._onlySymbols=He,Be.on("data",We=>{We.dataType==="source"&&We.sourceDataType==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&We.dataType==="source"&&We.sourceDataType==="content"&&(this.reload(),this.transform&&this.update(this.transform))}),Be.on("error",()=>{this._sourceErrored=!0}),this._source=Be,this._tiles={},this._cache=new uT(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=Be.minTileCacheSize,this._maxTileCacheSize=Be.maxTileCacheSize,this._loadedParentTiles={},this._coveredTiles={},this._state=new mo,this._isRaster=this._source.type==="raster"||this._source.type==="raster-dem"||this._source.type==="custom"&&this._source._dataType==="raster"}onAdd(Re){this.map=Re,this._minTileCacheSize=this._minTileCacheSize===void 0&&Re?Re._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=this._maxTileCacheSize===void 0&&Re?Re._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;for(const Re in this._tiles){const Be=this._tiles[Re];if(Be.state!=="loaded"&&Be.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const Re=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,Re&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(Re,Be){return Re.isSymbolTile=this._onlySymbols,this._source.loadTile(Re,Be)}_unloadTile(Re){if(this._source.unloadTile)return this._source.unloadTile(Re,()=>{})}_abortTile(Re){if(this._source.abortTile)return this._source.abortTile(Re,()=>{})}serialize(){return this._source.serialize()}prepare(Re){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const Be in this._tiles){const He=this._tiles[Be];He.upload(Re),He.prepare(this.map.style.imageManager)}}getIds(){return Zi(this._tiles).map(Re=>Re.tileID).sort(cR).map(Re=>Re.key)}getRenderableIds(Re){const Be=[];for(const He in this._tiles)this._isIdRenderable(+He,Re)&&Be.push(this._tiles[He]);return Re?Be.sort((He,We)=>{const Ye=He.tileID,ni=We.tileID,li=new Gi(Ye.canonical.x,Ye.canonical.y)._rotate(this.transform.angle),yi=new Gi(ni.canonical.x,ni.canonical.y)._rotate(this.transform.angle);return Ye.overscaledZ-ni.overscaledZ||yi.y-li.y||yi.x-li.x}).map(He=>He.tileID.key):Be.map(He=>He.tileID).sort(cR).map(He=>He.key)}hasRenderableParent(Re){const Be=this.findLoadedParent(Re,0);return!!Be&&this._isIdRenderable(Be.tileID.key)}_isIdRenderable(Re,Be){return this._tiles[Re]&&this._tiles[Re].hasData()&&!this._coveredTiles[Re]&&(Be||!this._tiles[Re].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const Re in this._tiles)this._tiles[Re].state!=="errored"&&this._reloadTile(+Re,"reloading")}}_reloadTile(Re,Be){const He=this._tiles[Re];He&&(He.state!=="loading"&&(He.state=Be),this._loadTile(He,this._tileLoaded.bind(this,He,Re,Be)))}_tileLoaded(Re,Be,He,We){if(We)if(Re.state="errored",We.status!==404)this._source.fire(new Gc(We,{tile:Re}));else if(this._source.type==="raster-dem"&&this.usedForTerrain&&this.map.painter.terrain){const Ye=this.map.painter.terrain;this.update(this.transform,Ye.getScaledDemTileSize(),!0),Ye.resetTileLookupCache(this.id)}else this.update(this.transform);else Re.timeAdded=Ru.now(),He==="expired"&&(Re.refreshedUponExpiration=!0),this._setTileReloadTimer(Be,Re),this._source.type==="raster-dem"&&Re.dem&&this._backfillDEM(Re),this._state.initializeTileState(Re,this.map?this.map.painter:null),this._source.fire(new Zu("data",{dataType:"source",tile:Re,coord:Re.tileID,sourceCacheId:this.id}))}_backfillDEM(Re){const Be=this.getRenderableIds();for(let We=0;We<Be.length;We++){const Ye=Be[We];if(Re.neighboringTiles&&Re.neighboringTiles[Ye]){const ni=this.getTileByID(Ye);He(Re,ni),He(ni,Re)}}function He(We,Ye){if(!We.dem||We.dem.borderReady)return;We.needsHillshadePrepare=!0,We.needsDEMTextureUpload=!0;
vendor: 4,314 bytes, line 219
219let ni=Ye.tileID.canonical.x-We.tileID.canonical.x;const li=Ye.tileID.canonical.y-We.tileID.canonical.y,yi=Math.pow(2,We.tileID.canonical.z),xi=Ye.tileID.key;ni===0&&li===0||Math.abs(li)>1||(Math.abs(ni)>1&&(Math.abs(ni+yi)===1?ni+=yi:Math.abs(ni-yi)===1&&(ni-=yi)),Ye.dem&&We.dem&&(We.dem.backfillBorder(Ye.dem,ni,li),We.neighboringTiles&&We.neighboringTiles[xi]&&(We.neighboringTiles[xi].backfilled=!0)))}}getTile(Re){return this.getTileByID(Re.key)}getTileByID(Re){return this._tiles[Re]}_retainLoadedChildren(Re,Be,He,We){for(const Ye in this._tiles){let ni=this._tiles[Ye];if(We[Ye]||!ni.hasData()||ni.tileID.overscaledZ<=Be||ni.tileID.overscaledZ>He)continue;let li=ni.tileID;for(;ni&&ni.tileID.overscaledZ>Be+1;){const xi=ni.tileID.scaledTo(ni.tileID.overscaledZ-1);ni=this._tiles[xi.key],ni&&ni.hasData()&&(li=xi)}let yi=li;for(;yi.overscaledZ>Be;)if(yi=yi.scaledTo(yi.overscaledZ-1),Re[yi.key]){We[li.key]=li;break}}}findLoadedParent(Re,Be){if(Re.key in this._loadedParentTiles){const He=this._loadedParentTiles[Re.key];return He&&He.tileID.overscaledZ>=Be?He:null}for(let He=Re.overscaledZ-1;He>=Be;He--){const We=Re.scaledTo(He),Ye=this._getLoadedTile(We);if(Ye)return Ye}}_getLoadedTile(Re){const Be=this._tiles[Re.key];return Be&&Be.hasData()?Be:this._cache.getByKey(this._source.reparseOverscaled?Re.wrapped().key:Re.canonical.key)}updateCacheSize(Re,Be){Be=Be||this._source.tileSize;const He=Math.ceil(Re.width/Be)+1,We=Math.ceil(Re.height/Be)+1,Ye=Math.floor(He*We*5),ni=typeof this._minTileCacheSize=="number"?Math.max(this._minTileCacheSize,Ye):Ye,li=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ni):ni;this._cache.setMaxSize(li)}handleWrapJump(Re){const Be=Math.round((Re-(this._prevLng===void 0?Re:this._prevLng))/360);if(this._prevLng=Re,Be){const He={};for(const We in this._tiles){const Ye=this._tiles[We];Ye.tileID=Ye.tileID.unwrapTo(Ye.tileID.wrap+Be),He[Ye.tileID.key]=Ye}this._tiles=He;for(const We in this._timers)clearTimeout(this._timers[We]),delete this._timers[We];for(const We in this._tiles)this._setTileReloadTimer(+We,this._tiles[We])}}update(Re,Be,He){if(this.transform=Re,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage||this.usedForTerrain&&!He)return;let We;this.updateCacheSize(Re,Be),this.transform.projection.name!=="globe"&&this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?We=Re.getVisibleUnwrappedCoordinates(this._source.tileID).map(li=>new sd(li.canonical.z,li.wrap,li.canonical.z,li.canonical.x,li.canonical.y)):(We=Re.coveringTiles({tileSize:Be||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!He,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(We=We.filter(li=>this._source.hasTile(li)))):We=[];const Ye=this._updateRetainedTiles(We);if(uR(this._source.type)&&We.length!==0){const li={},yi={},xi=Object.keys(Ye);for(const Ni of xi){const Wi=Ye[Ni],rn=this._tiles[Ni];if(!rn||rn.fadeEndTime&&rn.fadeEndTime<=Ru.now())continue;const un=this.findLoadedParent(Wi,Math.max(Wi.overscaledZ-Dy.maxOverzooming,this._source.minzoom));un&&(this._addTile(un.tileID),li[un.tileID.key]=un.tileID),yi[Ni]=Wi}const Pi=We[We.length-1].overscaledZ;for(const Ni in this._tiles){const Wi=this._tiles[Ni];if(Ye[Ni]||!Wi.hasData())continue;let rn=Wi.tileID;for(;rn.overscaledZ>Pi;){rn=rn.scaledTo(rn.overscaledZ-1);const un=this._tiles[rn.key];if(un&&un.hasData()&&yi[rn.key]){Ye[Ni]=Wi.tileID;break}}}for(const Ni in li)Ye[Ni]||(this._coveredTiles[Ni]=!0,Ye[Ni]=li[Ni])}for(const li in Ye)this._tiles[li].clearFadeHold();const ni=function(li,yi){const xi=[];for(const Pi in li)Pi in yi||xi.push(Pi);return xi}(this._tiles,Ye);for(const li of ni){const yi=this._tiles[li];yi.hasSymbolBuckets&&!yi.holdingForFade()?yi.setHoldDuration(this.map._fadeDuration):yi.hasSymbolBuckets&&!yi.symbolFadeFinished()||this._removeTile(+li)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const Re in this._tiles)this._tiles[Re].holdingForFade()&&this._removeTile(+Re)}_updateRetainedTiles(Re){const Be={};if(Re.length===0)return Be;const He={},We=Re.reduce((xi,Pi)=>
vendor: 2,564 bytes, line 219
219Math.min(xi,Pi.overscaledZ),1/0),Ye=Re[0].overscaledZ,ni=Math.max(Ye-Dy.maxOverzooming,this._source.minzoom),li=Math.max(Ye+Dy.maxUnderzooming,this._source.minzoom),yi={};for(const xi of Re){const Pi=this._addTile(xi);Be[xi.key]=xi,Pi.hasData()||We<this._source.maxzoom&&(yi[xi.key]=xi)}this._retainLoadedChildren(yi,We,li,Be);for(const xi of Re){let Pi=this._tiles[xi.key];if(Pi.hasData())continue;if(xi.canonical.z>=this._source.maxzoom){const Wi=xi.children(this._source.maxzoom)[0],rn=this.getTile(Wi);if(rn&&rn.hasData()){Be[Wi.key]=Wi;continue}}else{const Wi=xi.children(this._source.maxzoom);if(Be[Wi[0].key]&&Be[Wi[1].key]&&Be[Wi[2].key]&&Be[Wi[3].key])continue}let Ni=Pi.wasRequested();for(let Wi=xi.overscaledZ-1;Wi>=ni;--Wi){const rn=xi.scaledTo(Wi);if(He[rn.key]||(He[rn.key]=!0,Pi=this.getTile(rn),!Pi&&Ni&&(Pi=this._addTile(rn)),Pi&&(Be[rn.key]=rn,Ni=Pi.wasRequested(),Pi.hasData())))break}}return Be}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const Re in this._tiles){const Be=[];let He,We=this._tiles[Re].tileID;for(;We.overscaledZ>0;){if(We.key in this._loadedParentTiles){He=this._loadedParentTiles[We.key];break}Be.push(We.key);const Ye=We.scaledTo(We.overscaledZ-1);if(He=this._getLoadedTile(Ye),He)break;We=Ye}for(const Ye of Be)this._loadedParentTiles[Ye]=He}}_addTile(Re){let Be=this._tiles[Re.key];if(Be)return Be;Be=this._cache.getAndRemove(Re),Be&&(this._setTileReloadTimer(Re.key,Be),Be.tileID=Re,this._state.initializeTileState(Be,this.map?this.map.painter:null),this._cacheTimers[Re.key]&&(clearTimeout(this._cacheTimers[Re.key]),delete this._cacheTimers[Re.key],this._setTileReloadTimer(Re.key,Be)));const He=!!Be;if(!He){const We=this.map?this.map.painter:null;Be=new Vs(Re,this._source.tileSize*Re.overscaleFactor(),this.transform.tileZoom,We,this._isRaster),this._loadTile(Be,this._tileLoaded.bind(this,Be,Re.key,Be.state))}return Be?(Be.uses++,this._tiles[Re.key]=Be,He||this._source.fire(new Zu("dataloading",{tile:Be,coord:Be.tileID,dataType:"source"})),Be):null}_setTileReloadTimer(Re,Be){Re in this._timers&&(clearTimeout(this._timers[Re]),delete this._timers[Re]);const He=Be.getExpiryTimeout();He&&(this._timers[Re]=setTimeout(()=>{this._reloadTile(Re,"expired"),delete this._timers[Re]},He))}_removeTile(Re){const Be=this._tiles[Re];Be&&(Be.uses--,delete this._tiles[Re],this._timers[Re]&&(clearTimeout(this._timers[Re]),delete this._timers[Re]),Be.uses>0||(Be.hasData()&&Be.state!=="reloading"?this._cache.add(Be.tileID,Be,Be.getExpiryTimeout()):(Be.aborted=!0,this._abortTile(Be),this._unloadTile(Be)))
219)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const Re in this._tiles)this._removeTile(+Re);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(Re,Be,He){const We=[],Ye=this.transform;if(!Ye)return We;const ni=Ye.projection.name==="globe",li=$n(Ye.center.lng);for(const yi in this._tiles){const xi=this._tiles[yi];if(He&&xi.clearQueryDebugViz(),xi.holdingForFade())continue;let Pi;if(ni){const Ni=xi.tileID.canonical;if(Ni.z===0){const Wi=[Math.abs(Hn(li,...db(Ni,-1))-li),Math.abs(Hn(li,...db(Ni,1))-li)];Pi=[0,2*Wi.indexOf(Math.min(...Wi))-1]}else{const Wi=[Math.abs(Hn(li,...db(Ni,-1))-li),Math.abs(Hn(li,...db(Ni,0))-li),Math.abs(Hn(li,...db(Ni,1))-li)];Pi=[Wi.indexOf(Math.min(...Wi))-1]}}else Pi=[0];for(const Ni of Pi){const Wi=Re.containsTile(xi,Ye,Be,Ni);Wi&&We.push(Wi)}}return We}getVisibleCoordinates(Re){const Be=this.getRenderableIds(Re).map(He=>this._tiles[He].tileID);for(const He of Be)He.projMatrix=this.transform.calculateProjMatrix(He.toUnwrapped());return Be}hasTransition(){if(this._source.hasTransition())return!0;if(uR(this._source.type))for(const Re in this._tiles){const Be=this._tiles[Re];if(Be.fadeEndTime!==void 0&&Be.fadeEndTime>=Ru.now())return!0}return!1}setFeatureState(Re,Be,He){this._state.updateState(Re=Re||"_geojsonTileLayer",Be,He)}removeFeatureState(Re,Be,He){this._state.removeFeatureState(Re=Re||"_geojsonTileLayer",Be,He)}getFeatureState(Re,Be){return this._state.getState(Re=Re||"_geojsonTileLayer",Be)}
vendor: 4,189 bytes, line 219
219setDependencies(Re,Be,He){const We=this._tiles[Re];We&&We.setDependencies(Be,He)}reloadTilesForDependencies(Re,Be){for(const He in this._tiles)this._tiles[He].hasDependency(Re,Be)&&this._reloadTile(+He,"reloading");this._cache.filter(He=>!He.hasDependency(Re,Be))}_preloadTiles(Re,Be){if(!this._sourceLoaded){const li=()=>{this._sourceLoaded&&(this._source.off("data",li),this._preloadTiles(Re,Be))};return void this._source.on("data",li)}const He=new Map,We=Array.isArray(Re)?Re:[Re],Ye=this.map.painter.terrain,ni=this.usedForTerrain&&Ye?Ye.getScaledDemTileSize():this._source.tileSize;for(const li of We){const yi=li.coveringTiles({tileSize:ni,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const xi of yi)He.set(xi.key,xi);this.usedForTerrain&&li.updateElevation(!1)}wi(Array.from(He.values()),(li,yi)=>{const xi=new Vs(li,this._source.tileSize*li.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(xi,Pi=>{this._source.type==="raster-dem"&&xi.dem&&this._backfillDEM(xi),yi(Pi,xi)})},Be)}}function cR(ze,Re){const Be=Math.abs(2*ze.wrap)-+(ze.wrap<0),He=Math.abs(2*Re.wrap)-+(Re.wrap<0);return ze.overscaledZ-Re.overscaledZ||He-Be||Re.canonical.y-ze.canonical.y||Re.canonical.x-ze.canonical.x}function uR(ze){return ze==="raster"||ze==="image"||ze==="video"||ze==="custom"}function db(ze,Re){const Be=1<<ze.z;return[ze.x/Be+Re,(ze.x+1)/Be+Re]}Dy.maxOverzooming=10,Dy.maxUnderzooming=3;class dT{constructor(Re,Be,He){this._demTile=Re,this._dem=this._demTile.dem,this._scale=Be,this._offset=He}static create(Re,Be,He){const We=He||Re.findDEMTileFor(Be);if(!We||!We.dem)return;const Ye=We.dem,ni=We.tileID,li=1<<Be.canonical.z-ni.canonical.z;return new dT(We,We.tileSize/So/li,[(Be.canonical.x/li-ni.canonical.x)*Ye.dim,(Be.canonical.y/li-ni.canonical.y)*Ye.dim])}tileCoordToPixel(Re,Be){const He=Be*this._scale+this._offset[1],We=Math.floor(Re*this._scale+this._offset[0]),Ye=Math.floor(He);return new Gi(We,Ye)}getElevationAt(Re,Be,He,We){const Ye=Re*this._scale+this._offset[0],ni=Be*this._scale+this._offset[1],li=Math.floor(Ye),yi=Math.floor(ni),xi=this._dem;return We=!!We,He?qo(qo(xi.get(li,yi,We),xi.get(li,yi+1,We),ni-yi),qo(xi.get(li+1,yi,We),xi.get(li+1,yi+1,We),ni-yi),Ye-li):xi.get(li,yi,We)}getElevationAtPixel(Re,Be,He){return this._dem.get(Re,Be,!!He)}getMeterToDEM(Re){return(1<<this._demTile.tileID.canonical.z)*Sr(1,Re)*this._dem.stride}}class dR{constructor(Re,Be){this.tileID=Re,this.x=Re.canonical.x,this.y=Re.canonical.y,this.z=Re.canonical.z,this.grid=new Xd(So,16,0),this.featureIndexArray=new gd,this.promoteId=Be}insert(Re,Be,He,We,Ye,ni=0){const li=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(He,We,Ye,ni);const yi=this.grid;for(let xi=0;xi<Be.length;xi++){const Pi=Be[xi],Ni=[1/0,1/0,-1/0,-1/0];for(let Wi=0;Wi<Pi.length;Wi++){const rn=Pi[Wi];Ni[0]=Math.min(Ni[0],rn.x),Ni[1]=Math.min(Ni[1],rn.y),Ni[2]=Math.max(Ni[2],rn.x),Ni[3]=Math.max(Ni[3],rn.y)}Ni[0]<So&&Ni[1]<So&&Ni[2]>=0&&Ni[3]>=0&&yi.insert(li,Ni[0],Ni[1],Ni[2],Ni[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new o0(new Gv(this.rawTileData)).layers,this.sourceLayerCoder=new cT(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(const Re in this.vtLayers)this.vtFeatures[Re]=[]}return this.vtLayers}query(Re,Be,He,We){this.loadVTLayers();const Ye=Re.params||{},ni=Gh(Ye.filter),li=Re.tileResult,yi=Re.transform,xi=li.bufferedTilespaceBounds,Pi=this.grid.query(xi.min.x,xi.min.y,xi.max.x,xi.max.y,(un,gn,kn,jn)=>$p(li.bufferedTilespaceGeometry,un,gn,kn,jn));Pi.sort(Cz);let Ni=null;yi.elevation&&Pi.length>0&&(Ni=dT.create(yi.elevation,this.tileID));const Wi={};let rn;for(let un=0;un<Pi.length;un++){const gn=Pi[un];if(gn===rn)continue;rn=gn;const kn=this.featureIndexArray.get(gn);let jn=null;this.loadMatchingFeature(Wi,kn,ni,Ye.layers,Ye.availableImages,Be,He,We,(ar,Wn,sr,fr=0)=>(jn||(jn=oo(ar,this.tileID.canonical,Re.tileTransform)),Wn.queryIntersectsFeature(li,ar,sr,jn,this.z,Re.transform,Re.pixelPosMatrix,Ni,fr)))}return Wi}
vendor: 5,899 bytes, line 219
219loadMatchingFeature(Re,Be,He,We,Ye,ni,li,yi,xi){const{featureIndex:Pi,bucketIndex:Ni,sourceLayerIndex:Wi,layoutVertexArrayOffset:rn}=Be,un=this.bucketLayerIDs[Ni];if(We&&!function(ar,Wn){for(let sr=0;sr<ar.length;sr++)if(Wn.indexOf(ar[sr])>=0)return!0;return!1}(We,un))return;const gn=this.sourceLayerCoder.decode(Wi),kn=this.vtLayers[gn].feature(Pi);if(He.needGeometry){const ar=Cs(kn,!0);if(!He.filter(new Fi(this.tileID.overscaledZ),ar,this.tileID.canonical))return}else if(!He.filter(new Fi(this.tileID.overscaledZ),kn))return;const jn=this.getId(kn,gn);for(let ar=0;ar<un.length;ar++){const Wn=un[ar];if(We&&We.indexOf(Wn)<0)continue;const sr=ni[Wn];if(!sr)continue;let fr={};jn!==void 0&&yi&&(fr=yi.getState(sr.sourceLayer||"_geojsonTileLayer",jn));const pr=Qi({},li[Wn]);pr.paint=hR(pr.paint,sr.paint,kn,fr,Ye),pr.layout=hR(pr.layout,sr.layout,kn,fr,Ye);const Zr=!xi||xi(kn,sr,fr,rn);if(!Zr)continue;const Gr=new ri(kn,this.z,this.x,this.y,jn);Gr.layer=pr;let us=Re[Wn];us===void 0&&(us=Re[Wn]=[]),us.push({featureIndex:Pi,feature:Gr,intersectionZ:Zr})}}lookupSymbolFeatures(Re,Be,He,We,Ye,ni,li,yi){const xi={};this.loadVTLayers();const Pi=Gh(Ye);for(const Ni of Re)this.loadMatchingFeature(xi,{bucketIndex:He,sourceLayerIndex:We,featureIndex:Ni,layoutVertexArrayOffset:0},Pi,ni,li,yi,Be);return xi}loadFeature(Re){const{featureIndex:Be,sourceLayerIndex:He}=Re;this.loadVTLayers();const We=this.sourceLayerCoder.decode(He),Ye=this.vtFeatures[We];if(Ye[Be])return Ye[Be];const ni=this.vtLayers[We].feature(Be);return Ye[Be]=ni,ni}hasLayer(Re){for(const Be of this.bucketLayerIDs)for(const He of Be)if(Re===He)return!0;return!1}getId(Re,Be){let He=Re.id;if(this.promoteId){const We=typeof this.promoteId=="string"?this.promoteId:this.promoteId[Be];We!=null&&(He=Re.properties[We]),typeof He=="boolean"&&(He=Number(He))}return He}}function hR(ze,Re,Be,He,We){return Ue(ze,(Ye,ni)=>{const li=Re instanceof Vn?Re.get(ni):null;return li&&li.evaluate?li.evaluate(Be,He,We):li})}function Cz(ze,Re){return Re-ze}to(dR,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});class pR{constructor(Re,Be){this.width=Re,this.height=Be,this.nextRow=0,this.image=new Qd({width:Re,height:Be}),this.positions={},this.uploaded=!1}getDash(Re,Be){const He=this.getKey(Re,Be);return this.positions[He]}trim(){const Re=this.width,Be=this.height=ji(this.nextRow);this.image.resize({width:Re,height:Be})}getKey(Re,Be){return Re.join(",")+Be}getDashRanges(Re,Be,He){const We=[];let Ye=Re.length%2==1?-Re[Re.length-1]*He:0,ni=Re[0]*He,li=!0;We.push({left:Ye,right:ni,isDash:li,zeroLength:Re[0]===0});let yi=Re[0];for(let xi=1;xi<Re.length;xi++){li=!li;const Pi=Re[xi];Ye=yi*He,yi+=Pi,ni=yi*He,We.push({left:Ye,right:ni,isDash:li,zeroLength:Pi===0})}return We}addRoundDash(Re,Be,He){const We=Be/2;for(let Ye=-He;Ye<=He;Ye++){const ni=this.width*(this.nextRow+He+Ye);let li=0,yi=Re[li];for(let xi=0;xi<this.width;xi++){xi/yi.right>1&&(yi=Re[++li]);const Pi=Math.abs(xi-yi.left),Ni=Math.abs(xi-yi.right),Wi=Math.min(Pi,Ni);let rn;const un=Ye/He*(We+1);if(yi.isDash){const gn=We-Math.abs(un);rn=Math.sqrt(Wi*Wi+gn*gn)}else rn=We-Math.sqrt(Wi*Wi+un*un);this.image.data[ni+xi]=Math.max(0,Math.min(255,rn+128))}}}addRegularDash(Re,Be){for(let yi=Re.length-1;yi>=0;--yi){const xi=Re[yi],Pi=Re[yi+1];xi.zeroLength?Re.splice(yi,1):Pi&&Pi.isDash===xi.isDash&&(Pi.left=xi.left,Re.splice(yi,1))}const He=Re[0],We=Re[Re.length-1];He.isDash===We.isDash&&(He.left=We.left-this.width,We.right=He.right+this.width);const Ye=this.width*this.nextRow;let ni=0,li=Re[ni];for(let yi=0;yi<this.width;yi++){yi/li.right>1&&(li=Re[++ni]);const xi=Math.abs(yi-li.left),Pi=Math.abs(yi-li.right),Ni=Math.min(xi,Pi);this.image.data[Ye+yi]=Math.max(0,Math.min(255,(li.isDash?Ni:-Ni)+Be+128))}}addDash(Re,Be){const He=this.getKey(Re,Be);if(this.positions[He])return this.positions[He];const We=Be==="round",Ye=We?7:0,ni=2*Ye+1;if(this.nextRow+ni>this.height)return Mn("LineAtlas out of space"),null;Re.length===0&&Re.push(1);let li=0;for(let Pi=0;Pi<Re.length;Pi++)Re[Pi]<0&&(Mn("Negative value is found in line dasharray, replacing values with 0"),Re[Pi]=0),li+=Re[Pi];if(li!==0){const Pi=this.width/li,Ni=this.getDashRanges(Re,this.width,Pi);We?this.addRoundDash(Ni,Pi,Ye):this.addRegularDash(Ni,Be==="square"?.5*Pi:0)}const yi=this.nextRow+Ye;this.nextRow+=ni;const xi={tl:[yi,Ye],br:[li,0]};return this.positions[He]=xi,xi}}to(pR,"LineAtlas");const fR=1*Np;class mR{constructor(Re){const Be={},He=[];for(const li in Re){const yi=Re[li],xi=Be[li]={};for(const Pi in yi.glyphs){const Ni=yi.glyphs[+Pi];if(!Ni||Ni.bitmap.width===0||Ni.bitmap.height===0)continue;const Wi=Ni.metrics.localGlyph?fR:1,rn={x:0,y:0,w:Ni.bitmap.width+2*Wi,h:Ni.bitmap.height+2*Wi};He.push(rn),xi[Pi]=rn}}const{w:We,h:Ye}=W1(He),ni=new Qd({width:We||1,height:Ye||1});for(const li in Re){const yi=Re[li];for(const xi in yi.glyphs){const Pi=yi.glyphs[+xi];if(!Pi||Pi.bitmap.width===0||Pi.bitmap.height===0)continue;const Ni=Be[li][xi],Wi=Pi.metrics.localGlyph?fR:1;Qd.copy(Pi.bitmap,ni,{x:0,y:0},{x:Ni.x+Wi,y:Ni.y+Wi},Pi.bitmap)}}this.image=ni,this.positions=Be}}to(mR,"GlyphAtlas");class Az{constructor(Re){this.tileID=new sd(Re.tileID.overscaledZ,Re.tileID.wrap,Re.tileID.canonical.z,Re.tileID.canonical.x,Re.tileID.canonical.y),this.tileZoom=Re.tileZoom,this.uid=Re.uid,this.zoom=Re.zoom,this.canonical=Re.tileID.canonical,this.pixelRatio=Re.pixelRatio,this.tileSize=Re.tileSize,this.source=Re.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=Re.showCollisionBoxes,this.collectResourceTiming=!!Re.collectResourceTiming,this.returnDependencies=!!Re.returnDependencies,this.promoteId=Re.promoteId,this.enableTerrain=!!Re.enableTerrain,this.isSymbolTile=Re.isSymbolTile,this.tileTransform=og(Re.tileID.canonical,Re.projection),this.projection=Re.projection}parse(Re,Be,He,We,Ye){this.status="parsing",this.data=Re,this.collisionBoxArray=new Ha;
219const ni=new cT(Object.keys(Re.layers).sort()),li=new dR(this.tileID,this.promoteId);li.bucketLayerIDs=[];const yi={},xi=new pR(256,256),Pi={featureIndex:li,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:xi,availableImages:He},Ni=Be.familiesBySource[this.source];for(const fr in Ni){const pr=Re.layers[fr];if(!pr)continue;let Zr=!1,Gr=!1;for(const Qr of Ni[fr])Qr[0].type==="symbol"?Zr=!0:Gr=!0;if(this.isSymbolTile===!0&&!Zr||this.isSymbolTile===!1&&!Gr)continue;pr.version===1&&Mn(`Vector tile source "${this.source}" layer "${fr}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const us=ni.encode(fr),$s=[];for(let Qr=0;Qr<pr.length;Qr++){const ys=pr.feature(Qr),vs=li.getId(ys,fr);$s.push({feature:ys,id:vs,index:Qr,sourceLayerIndex:us})}for(const Qr of Ni[fr]){const ys=Qr[0];this.isSymbolTile!==void 0&&ys.type==="symbol"!==this.isSymbolTile||ys.minzoom&&this.zoom<Math.floor(ys.minzoom)||ys.maxzoom&&this.zoom>=ys.maxzoom||ys.visibility!=="none"&&(JP(Qr,this.zoom,He),(yi[ys.id]=ys.createBucket({index:li.bucketLayerIDs.length,layers:Qr,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:us,sourceID:this.source,enableTerrain:this.enableTerrain,projection:this.projection.spec,availableImages:He})).populate($s,Pi,this.tileID.canonical,this.tileTransform),li.bucketLayerIDs.push(Qr.map(vs=>vs.id)))}}let Wi,rn,un,gn;xi.trim();const kn={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},jn=()=>{if(Wi)return Ye(Wi);if(rn&&un&&gn){const fr=new mR(rn),pr=new BS(un,gn);for(const Zr in yi){const Gr=yi[Zr];Gr instanceof Em?(JP(Gr.layers,this.zoom,He),PP(Gr,rn,fr.positions,un,pr.iconPositions,this.showCollisionBoxes,He,this.tileID.canonical,this.tileZoom,this.projection)):Gr.hasPattern&&(Gr instanceof ep||Gr instanceof Ov||Gr instanceof vy)&&(JP(Gr.layers,this.zoom,He),Gr.addFeatures(Pi,this.tileID.canonical,pr.patternPositions,He,this.tileTransform))}this.status="done",Ye(null,{buckets:Zi(yi).filter(Zr=>!Zr.isEmpty()),featureIndex:li,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:fr.image,lineAtlas:xi,imageAtlas:pr,glyphMap:this.returnDependencies?rn:null,iconMap:this.returnDependencies?un:null,glyphPositions:this.returnDependencies?fr.positions:null})}},ar=Ue(Pi.glyphDependencies,fr=>Object.keys(fr).map(Number));Object.keys(ar).length?We.send("getGlyphs",{uid:this.uid,stacks:ar},(fr,pr)=>{Wi||(Wi=fr,rn=pr,jn())},void 0,!1,kn):rn={};const Wn=Object.keys(Pi.iconDependencies);Wn.length?We.send("getImages",{icons:Wn,source:this.source,tileID:this.tileID,type:"icons"},(fr,pr)=>{Wi||(Wi=fr,un=pr,jn())},void 0,!1,kn):un={};const sr=Object.keys(Pi.patternDependencies);sr.length?We.send("getImages",{icons:sr,source:this.source,tileID:this.tileID,type:"patterns"},(fr,pr)=>{Wi||(Wi=fr,gn=pr,jn())},void 0,!1,kn):gn={},jn()}}function JP(ze,Re,Be){const He=new Fi(Re);for(const We of ze)We.recalculate(He,Be)}class gR{constructor(Re){this.entries={},this.scheduler=Re}request(Re,Be,He,We){const Ye=this.entries[Re]=this.entries[Re]||{callbacks:[]};if(Ye.result){const[ni,li]=Ye.result;return this.scheduler?this.scheduler.add(()=>{We(ni,li)},Be):We(ni,li),()=>{}}return Ye.callbacks.push(We),Ye.cancel||(Ye.cancel=He((ni,li)=>{Ye.result=[ni,li];for(const yi of Ye.callbacks)this.scheduler?this.scheduler.add(()=>{yi(ni,li)},Be):yi(ni,li);setTimeout(()=>delete this.entries[Re],3e3)})),()=>{Ye.result||(Ye.callbacks=Ye.callbacks.filter(ni=>ni!==We),Ye.callbacks.length||(Ye.cancel(),delete this.entries[Re]))}}}function yR(ze,Re,Be){const He=JSON.stringify(ze.request);return ze.data&&(this.deduped.entries[He]={result:[null,ze.data]}),this.deduped.request(He,{type:"parseTile",isSymbolTile:ze.isSymbolTile,zoom:ze.tileZoom},We=>{const Ye=Fa(ze.request,(ni,li,yi,xi)=>{ni?We(ni):li&&We(null,{vectorTile:Be?void 0:new o0(new Gv(li)),rawData:li,cacheControl:yi,expires:xi})});return()=>{Ye.cancel(),We()}},Re)}const vR=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array
219];class QP{static from(Re){if(!(Re instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[Be,He]=new Uint8Array(Re,0,2);if(Be!==219)throw new Error("Data does not appear to be in a KDBush format.");const We=He>>4;if(We!==1)throw new Error(`Got v${We} data when expected v1.`);const Ye=vR[15&He];if(!Ye)throw new Error("Unrecognized array type.");const[ni]=new Uint16Array(Re,2,1),[li]=new Uint32Array(Re,4,1);return new QP(li,ni,Ye,Re)}constructor(Re,Be=64,He=Float64Array,We){if(isNaN(Re)||Re<0)throw new Error(`Unpexpected numItems value: ${Re}.`);this.numItems=+Re,this.nodeSize=Math.min(Math.max(+Be,2),65535),this.ArrayType=He,this.IndexArrayType=Re<65536?Uint16Array:Uint32Array;const Ye=vR.indexOf(this.ArrayType),ni=2*Re*this.ArrayType.BYTES_PER_ELEMENT,li=Re*this.IndexArrayType.BYTES_PER_ELEMENT,yi=(8-li%8)%8;if(Ye<0)throw new Error(`Unexpected typed array class: ${He}.`);We&&We instanceof ArrayBuffer?(this.data=We,this.ids=new this.IndexArrayType(this.data,8,Re),this.coords=new this.ArrayType(this.data,8+li+yi,2*Re),this._pos=2*Re,this._finished=!0):(this.data=new ArrayBuffer(8+ni+li+yi),this.ids=new this.IndexArrayType(this.data,8,Re),this.coords=new this.ArrayType(this.data,8+li+yi,2*Re),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+Ye]),new Uint16Array(this.data,2,1)[0]=Be,new Uint32Array(this.data,4,1)[0]=Re)}add(Re,Be){const He=this._pos>>1;return this.ids[He]=He,this.coords[this._pos++]=Re,this.coords[this._pos++]=Be,He}finish(){const Re=this._pos>>1;if(Re!==this.numItems)throw new Error(`Added ${Re} items when expected ${this.numItems}.`);return e3(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(Re,Be,He,We){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:Ye,coords:ni,nodeSize:li}=this,yi=[0,Ye.length-1,0],xi=[];for(;yi.length;){const Pi=yi.pop()||0,Ni=yi.pop()||0,Wi=yi.pop()||0;if(Ni-Wi<=li){for(let kn=Wi;kn<=Ni;kn++){const jn=ni[2*kn],ar=ni[2*kn+1];jn>=Re&&jn<=He&&ar>=Be&&ar<=We&&xi.push(Ye[kn])}continue}const rn=Wi+Ni>>1,un=ni[2*rn],gn=ni[2*rn+1];un>=Re&&un<=He&&gn>=Be&&gn<=We&&xi.push(Ye[rn]),(Pi===0?Re<=un:Be<=gn)&&(yi.push(Wi),yi.push(rn-1),yi.push(1-Pi)),(Pi===0?He>=un:We>=gn)&&(yi.push(rn+1),yi.push(Ni),yi.push(1-Pi))}return xi}within(Re,Be,He){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:We,coords:Ye,nodeSize:ni}=this,li=[0,We.length-1,0],yi=[],xi=He*He;for(;li.length;){const Pi=li.pop()||0,Ni=li.pop()||0,Wi=li.pop()||0;if(Ni-Wi<=ni){for(let kn=Wi;kn<=Ni;kn++)xR(Ye[2*kn],Ye[2*kn+1],Re,Be)<=xi&&yi.push(We[kn]);continue}const rn=Wi+Ni>>1,un=Ye[2*rn],gn=Ye[2*rn+1];xR(un,gn,Re,Be)<=xi&&yi.push(We[rn]),(Pi===0?Re-He<=un:Be-He<=gn)&&(li.push(Wi),li.push(rn-1),li.push(1-Pi)),(Pi===0?Re+He>=un:Be+He>=gn)&&(li.push(rn+1),li.push(Ni),li.push(1-Pi))}return yi}}function e3(ze,Re,Be,He,We,Ye){if(We-He<=Be)return;const ni=He+We>>1;bR(ze,Re,ni,He,We,Ye),e3(ze,Re,Be,He,ni-1,1-Ye),e3(ze,Re,Be,ni+1,We,1-Ye)}function bR(ze,Re,Be,He,We,Ye){for(;We>He;){if(We-He>600){const xi=We-He+1,Pi=Be-He+1,Ni=Math.log(xi),Wi=.5*Math.exp(2*Ni/3),rn=.5*Math.sqrt(Ni*Wi*(xi-Wi)/xi)*(Pi-xi/2<0?-1:1);bR(ze,Re,Be,Math.max(He,Math.floor(Be-Pi*Wi/xi+rn)),Math.min(We,Math.floor(Be+(xi-Pi)*Wi/xi+rn)),Ye)}const ni=Re[2*Be+Ye];let li=He,yi=We;for(hb(ze,Re,He,Be),Re[2*We+Ye]>ni&&hb(ze,Re,He,We);li<yi;){for(hb(ze,Re,li,yi),li++,yi--;Re[2*li+Ye]<ni;)li++;for(;Re[2*yi+Ye]>ni;)yi--}Re[2*He+Ye]===ni?hb(ze,Re,He,yi):(yi++,hb(ze,Re,yi,We)),yi<=Be&&(He=yi+1),Be<=yi&&(We=yi-1)}}function hb(ze,Re,Be,He){t3(ze,Be,He),t3(Re,2*Be,2*He),t3(Re,2*Be+1,2*He+1)}function t3(ze,Re,Be){const He=ze[Re];ze[Re]=ze[Be],ze[Be]=He}function xR(ze,Re,Be,He){const We=ze-Be,Ye=Re-He;return We*We+Ye*Ye}Ie.ARRAY_TYPE=nl,Ie.AUTH_ERR_MSG=or,Ie.Aabb=tc,Ie.Actor=class{constructor(ze,Re,Be){this.target=ze,this.parent=Re,this.mapId=Be,this.callbacks={},this.cancelCallbacks={},Ri(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=Cr()?ze:je,this.scheduler=new qP}send(ze,Re,Be,He,We=!1,Ye){const ni=Math.round(1e18*Math.random()).toString(36).substring(0,10);Be&&(Be.metadata=Ye,this.callbacks[ni]=Be);const li=_s(this.globalScope)?void 0:[];return this.target.postMessage({id:ni,type:ze,hasCallback:!!Be,targetMapId:He,mustQueue:We,sourceMapId:this.mapId,data:Qc(Re,li)},li),{cancel:()=>{Be&&delete this.callbacks[ni],this.target.postMessage({id:ni,type:"<cancel>",targetMapId:He,sourceMapId:this.mapId})}}}receive(ze){const Re=ze.data,Be=Re.id;if(Be&&(!Re.targetMapId||this.mapId===Re.targetMapId))if(Re.type==="<cancel>"){const He=this.cancelCallbacks[Be];delete this.cancelCallbacks[Be],He&&He.cancel()}else if(Re.mustQueue||Cr()){const He=this.callbacks[Be];this.cancelCallbacks[Be]=this.scheduler.add(()=>this.processTask(Be,Re),He&&He.metadata||{type:"message"})}else this.processTask(Be,Re)}processTask(ze,Re){if(Re.type==="<response>"){const Be=this.callbacks[ze];delete this.callbacks[ze],Be&&(Re.error?Be(ph(Re.error)):Be(null,ph(Re.data)))}else{const Be=_s(this.globalScope)?void 0:[],He=Re.hasCallback?(Ye,ni)=>{delete this.cancelCallbacks[ze],this.target.postMessage({id:ze,type:"<response>",sourceMapId:this.mapId,error:Ye?Qc(Ye):null,data:Qc(ni,Be)},Be)}:Ye=>{},We=ph(Re.data);if(this.parent[Re.type])this.parent[Re.type](Re.sourceMapId,We,He);else if(this.parent.getWorkerSource){const Ye=Re.type.split(".");this.parent.getWorkerSource(Re.sourceMapId,Ye[0],We.source)[Ye[1]](We,He)}else He(new Error(`Could not find function ${Re.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},Ie.CanonicalTileID=_f,Ie.Color=aa,Ie.ColorMode=Cm,Ie.CullFaceMode=qf,Ie.DEMData=tp,Ie.DataConstantProperty=pn,Ie.DedupedRequest=gR,Ie.DepthMode=r_,Ie.EXTENT=So,Ie.Elevation=class{isDataAvailableAtPoint(ze){const Re=this._source();if(this.isUsingMockSource()||!Re||ze.y<0||ze.y>1)return!1;
vendor: 5,043 bytes, line 219
219const Be=Re.getSource().maxzoom,He=1<<Be,We=Math.floor(ze.x),Ye=Math.floor((ze.x-We)*He),ni=Math.floor(ze.y*He),li=this.findDEMTileFor(new sd(Be,We,Be,Ye,ni));return!(!li||!li.dem)}getAtPointOrZero(ze,Re=0){return this.getAtPoint(ze,Re)||0}getAtPoint(ze,Re,Be=!0){if(this.isUsingMockSource())return null;Re==null&&(Re=null);const He=this._source();if(!He||ze.y<0||ze.y>1)return Re;const We=He.getSource().maxzoom,Ye=1<<We,ni=Math.floor(ze.x),li=ze.x-ni,yi=new sd(We,ni,We,Math.floor(li*Ye),Math.floor(ze.y*Ye)),xi=this.findDEMTileFor(yi);if(!xi||!xi.dem)return Re;const Pi=xi.dem,Ni=1<<xi.tileID.canonical.z,Wi=(li*Ni-xi.tileID.canonical.x)*Pi.dim,rn=(ze.y*Ni-xi.tileID.canonical.y)*Pi.dim,un=Math.floor(Wi),gn=Math.floor(rn);return(Be?this.exaggeration():1)*qo(qo(Pi.get(un,gn),Pi.get(un,gn+1),rn-gn),qo(Pi.get(un+1,gn),Pi.get(un+1,gn+1),rn-gn),Wi-un)}getAtTileOffset(ze,Re,Be){const He=1<<ze.canonical.z;return this.getAtPointOrZero(new Fr(ze.wrap+(ze.canonical.x+Re/So)/He,(ze.canonical.y+Be/So)/He))}getAtTileOffsetFunc(ze,Re,Be,He){return We=>{const Ye=this.getAtTileOffset(ze,We.x,We.y),ni=He.upVector(ze.canonical,We.x,We.y);return tu(ni,ni,Ye*He.upVectorScale(ze.canonical,Re,Be).metersToTile),ni}}getForTilePoints(ze,Re,Be,He){if(this.isUsingMockSource())return!1;const We=dT.create(this,ze,He);return!!We&&(Re.forEach(Ye=>{Ye[2]=this.exaggeration()*We.getElevationAt(Ye[0],Ye[1],Be)}),!0)}getMinMaxForTile(ze){if(this.isUsingMockSource())return null;const Re=this.findDEMTileFor(ze);if(!Re||!Re.dem)return null;const Be=Re.dem.tree,He=Re.tileID,We=1<<ze.canonical.z-He.canonical.z;let Ye=ze.canonical.x/We-He.canonical.x,ni=ze.canonical.y/We-He.canonical.y,li=0;for(let yi=0;yi<ze.canonical.z-He.canonical.z&&!Be.leaves[li];yi++){Ye*=2,ni*=2;const xi=2*Math.floor(ni)+Math.floor(Ye);li=Be.childOffsets[li]+xi,Ye%=1,ni%=1}return{min:this.exaggeration()*Be.minimums[li],max:this.exaggeration()*Be.maximums[li]}}getMinElevationBelowMSL(){throw new Error("Pure virtual method called.")}raycast(ze,Re,Be){throw new Error("Pure virtual method called.")}pointCoordinate(ze){throw new Error("Pure virtual method called.")}_source(){throw new Error("Pure virtual method called.")}isUsingMockSource(){throw new Error("Pure virtual method called.")}exaggeration(){throw new Error("Pure virtual method called.")}findDEMTileFor(ze){throw new Error("Pure virtual method called.")}get visibleDemTiles(){throw new Error("Getter must be implemented in subclass.")}},Ie.ErrorEvent=Gc,Ie.EvaluationParameters=Fi,Ie.Event=Zu,Ie.Evented=rh,Ie.FillExtrusionBucket=vy,Ie.Frustum=oy,Ie.FrustumCorners=uc,Ie.GLOBE_RADIUS=Wu,Ie.GLOBE_SCALE_MATCH_LATITUDE=45,Ie.GLOBE_ZOOM_THRESHOLD_MAX=ay,Ie.GLOBE_ZOOM_THRESHOLD_MIN=eg,Ie.GlobeSharedBuffers=class{constructor(ze){this._createGrid(ze),this._createPoles(ze)}destroy(){this._poleIndexBuffer.destroy(),this._gridBuffer.destroy(),this._gridIndexBuffer.destroy(),this._poleNorthVertexBuffer.destroy(),this._poleSouthVertexBuffer.destroy();for(const ze of this._poleSegments)ze.destroy();for(const ze of this._gridSegments)ze.withSkirts.destroy(),ze.withoutSkirts.destroy();if(this._wireframeIndexBuffer){this._wireframeIndexBuffer.destroy();for(const ze of this._wireframeSegments)ze.destroy()}}_fillGridMeshWithLods(ze,Re){const Be=new Ds,He=new lo,We=[],Ye=ze+1+2,ni=Re[0]+1,li=Re[0]+1+(1+Re.length),yi=(xi,Pi,Ni)=>{let Wi=xi===Ye-1?xi-2:xi===0?xi:xi-1;return Wi+=Ni?24575:0,[Wi,Pi]};for(let xi=0;xi<Ye;++xi)Be.emplaceBack(...yi(xi,0,!0));for(let xi=0;xi<ni;++xi)for(let Pi=0;Pi<Ye;++Pi)Be.emplaceBack(...yi(Pi,xi,(Pi===0||Pi===Ye-1)&&!0));for(let xi=0;xi<Re.length;++xi){const Pi=Re[xi];for(let Ni=0;Ni<Ye;++Ni)Be.emplaceBack(...yi(Ni,Pi,!0))}for(let xi=0;xi<Re.length;++xi){const Pi=He.length,Ni=Re[xi]+1+2,Wi=new lo;for(let gn=0;gn<Ni-1;gn++){const kn=gn===Ni-2,jn=kn?Ye*(li-Re.length+xi-gn):Ye;for(let ar=0;ar<Ye-1;ar++){const Wn=gn*Ye+ar;gn===0||kn||ar===0||ar===Ye-2?(Wi.emplaceBack(Wn+1,Wn,Wn+jn),Wi.emplaceBack(Wn+jn,Wn+jn+1,Wn+1)):(He.emplaceBack(Wn+1,Wn,Wn+jn),He.emplaceBack(Wn+jn,Wn+jn+1,Wn+1))}}const rn=Il.simpleSegment(0,Pi,Be.length,He.length-Pi);for(let gn=0;gn<Wi.uint16.length;gn+=3)He.emplaceBack(Wi.uint16[gn],Wi.uint16[gn+1],Wi.uint16[gn+2]);const un=Il.simpleSegment(0,Pi,Be.length,He.length-Pi);We.push({withoutSkirts:rn,withSkirts:un})}return{vertices:Be,indices:He,segments:We}}_createGrid(ze){const Re=this._fillGridMeshWithLods(Nf,ym);this._gridSegments=Re.segments,this._gridBuffer=ze.createVertexBuffer(Re.vertices,hf.members),this._gridIndexBuffer=ze.createIndexBuffer(Re.indices,!0)}_createPoles(ze){const Re=new lo;for(let We=0;We<=Nf;We++)Re.emplaceBack(0,We+1,We+2);this._poleIndexBuffer=ze.createIndexBuffer(Re,!0);const Be=new ha,He=new ha;this._poleSegments=[];for(let We=0,Ye=0;We<eg;We++){const ni=360/(1<<We);Be.emplaceBack(0,-Wu,0,.5,0),He.emplaceBack(0,-Wu,0,.5,1);for(let li=0;li<=Nf;li++){const yi=li/Nf,xi=qo(0,ni,yi),[Pi,Ni,Wi]=pf(ki,$i,xi,Wu);Be.emplaceBack(Pi,Ni,Wi,yi,0),He.emplaceBack(Pi,Ni,Wi,yi,1)}this._poleSegments.push(Il.simpleSegment(Ye,0,66,64)),Ye+=66}
219this._poleNorthVertexBuffer=ze.createVertexBuffer(Be,Op,!1),this._poleSouthVertexBuffer=ze.createVertexBuffer(He,Op,!1)}getGridBuffers(ze,Re){return[this._gridBuffer,this._gridIndexBuffer,Re?this._gridSegments[ze].withSkirts:this._gridSegments[ze].withoutSkirts]}getPoleBuffers(ze){return[this._poleNorthVertexBuffer,this._poleSouthVertexBuffer,this._poleIndexBuffer,this._poleSegments[ze]]}getWirefameBuffers(ze,Re){if(!this._wireframeSegments){const Be=new Wl,He=Nf,We=He+1+2,Ye=1;this._wireframeSegments=[];for(let ni=0,li=0;ni<ym.length;ni++){const yi=ym[ni];for(let Pi=Ye;Pi<yi+Ye;Pi++)for(let Ni=Ye;Ni<He+Ye;Ni++){const Wi=Pi*We+Ni;Be.emplaceBack(Wi,Wi+1),Be.emplaceBack(Wi,Wi+We),Be.emplaceBack(Wi,Wi+We+1)}const xi=yi*He*3;this._wireframeSegments.push(Il.simpleSegment(0,li,(yi+1)*We,xi)),li+=xi}this._wireframeIndexBuffer=ze.createIndexBuffer(Be)}return[this._gridBuffer,this._wireframeIndexBuffer,this._wireframeSegments[Re]]}},Ie.GlyphManager=c0,Ie.ImagePosition=q1,Ie.KDBush=QP,Ie.LivePerformanceUtils=lu,Ie.LngLat=ln,Ie.LngLatBounds=_h,Ie.LocalGlyphMode=eb,Ie.MAX_MERCATOR_LATITUDE=rr,Ie.MercatorCoordinate=Fr,Ie.ONE_EM=ru,Ie.OverscaledTileID=sd,Ie.PerformanceMarkers=dl,Ie.Point=Gi,Ie.Properties=qn,Ie.RGBAImage=fa,Ie.Ray=Qm,Ie.RequestManager=class{constructor(ze,Re,Be){this._transformRequestFn=ze,this._customAccessToken=Re,this._silenceAuthErrors=!!Be,this._createSkuToken()}_createSkuToken(){const ze=function(){let Re="";for(let Be=0;Be<10;Be++)Re+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Ei,Re].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=ze.token,this._skuTokenExpiresAt=ze.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(ze,Re){return this._transformRequestFn&&this._transformRequestFn(ze,Re)||{url:ze}}normalizeStyleURL(ze,Re){if(!yr(ze))return ze;const Be=Fs(ze);return Be.path=`/styles/v1${Be.path}`,this._makeAPIURL(Be,this._customAccessToken||Re)}normalizeGlyphsURL(ze,Re){if(!yr(ze))return ze;const Be=Fs(ze);return Be.path=`/fonts/v1${Be.path}`,this._makeAPIURL(Be,this._customAccessToken||Re)}normalizeSourceURL(ze,Re,Be,He){if(!yr(ze))return ze;const We=Fs(ze);return We.path=`/v4/${We.authority}.json`,We.params.push("secure"),Be&&We.params.push(`language=${Be}`),He&&We.params.push(`worldview=${He}`),this._makeAPIURL(We,this._customAccessToken||Re)}normalizeSpriteURL(ze,Re,Be,He){const We=Fs(ze);return yr(ze)?(We.path=`/styles/v1${We.path}/sprite${Re}${Be}`,this._makeAPIURL(We,this._customAccessToken||He)):(We.path+=`${Re}${Be}`,wr(We))}normalizeTileURL(ze,Re,Be){if(this._isSkuTokenExpired()&&this._createSkuToken(),ze&&!yr(ze))return ze;const He=Fs(ze);He.path=He.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${Re||Be&&He.authority!=="raster"&&Be===512?"@2x":""}${ci.supported?".webp":"$1"}`),He.authority==="raster"?He.path=`/${qe.RASTER_URL_PREFIX}${He.path}`:(He.path=He.path.replace(/^.+\/v4\//,"/"),He.path=`/${qe.TILE_URL_VERSION}${He.path}`);const We=this._customAccessToken||function(Ye){for(const ni of Ye){const li=ni.match(/^access_token=(.*)$/);if(li)return li[1]}return null}(He.params)||qe.ACCESS_TOKEN;return qe.REQUIRE_ACCESS_TOKEN&&We&&this._skuToken&&He.params.push(`sku=${this._skuToken}`),this._makeAPIURL(He,We)}canonicalizeTileURL(ze,Re){const Be=Fs(ze);if(!Be.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!Be.path.match(/\.[\w]+$/))return ze;let He="mapbox://";Be.path.match(/^\/raster\/v1\//)?He+=`raster/${Be.path.replace(`/${qe.RASTER_URL_PREFIX}/`,"")}`:He+=`tiles/${Be.path.replace(`/${qe.TILE_URL_VERSION}/`,"")}`;let We=Be.params;return Re&&(We=We.filter(Ye=>!Ye.match(/^access_token=/))),We.length&&(He+=`?${We.join("&")}`),He}canonicalizeTileset(ze,Re){const Be=!!Re&&yr(Re),He=[];for(const We of ze.tiles||[])Rr(We)?He.push(this.canonicalizeTileURL(We,Be)):He.push(We);return He}_makeAPIURL(ze,Re){const Be="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",He=Fs(qe.API_URL);if(ze.protocol=He.protocol,ze.authority=He.authority,ze.protocol==="http"){const We=ze.params.indexOf("secure");We>=0&&ze.params.splice(We,1)}if(He.path!=="/"&&(ze.path=`${He.path}${ze.path}`),!qe.REQUIRE_ACCESS_TOKEN)return wr(ze);if(Re=Re||qe.ACCESS_TOKEN,!this._silenceAuthErrors){if(!Re)throw new Error(`An API access token is required to use Mapbox GL. ${Be}`);if(Re[0]==="s")throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${Be}`)}return ze.params=ze.params.filter(We=>We.indexOf("access_token")===-1),ze.params.push(`access_token=${Re||""}`),wr(ze)}},Ie.ResourceType=$a,Ie.SegmentVector=Il,Ie.SourceCache=Dy,Ie.StencilMode=ZP,Ie.StructArrayLayout1ui2=gu,Ie.StructArrayLayout2f1f2i16=_o,Ie.StructArrayLayout2i4=Ds,Ie.StructArrayLayout2ui4=Wl,Ie.StructArrayLayout3f12=No,Ie.StructArrayLayout3ui6=lo,Ie.StructArrayLayout4i8=cs,Ie.StructArrayLayout5f20=ha,Ie.Texture=Ay,Ie.Tile=Vs,Ie.Transitionable=hn,Ie.Uniform1f=pm,Ie.Uniform1i=class extends Yd{constructor(ze){super(ze),this.current=0}set(ze,Re,Be){this.fetchUniformLocation(ze,Re)&&this.current!==Be&&(this.current=Be,this.gl.uniform1i(this.location,Be))}},Ie.Uniform2f=class extends Yd{constructor(ze){super(ze),this.current=[0,0]}set(ze,Re,Be){this.fetchUniformLocation(ze,Re)&&(Be[0]===this.current[0]&&Be[1]===this.current[1]||(this.current=Be,this.gl.uniform2f(this.location,Be[0],Be[1])))}},Ie.Uniform3f=class extends Yd{constructor(ze){super(ze),this.current=[0,0,0]}set(ze,Re,Be){this.fetchUniformLocation(ze,Re)&&(Be[0]===this.current[0]&&Be[1]===this.current[1]&&Be[2]===this.current[2]||(this.current=Be,this.gl.uniform3f(this.location,Be[0],Be[1],Be[2])))}},Ie.Uniform4f=cc,Ie.UniformColor=Ya,Ie.UniformMatrix2f=class extends Yd{constructor(ze){super(ze),this.current=ty}set(ze,Re,Be){if(this.fetchUniformLocation(ze,Re)){for(let He=0;He<4;He++)if(Be[He]!==this.current[He]){this.current=Be,this.gl.uniformMatrix2fv(this.location,!1,Be);break}}}},Ie.UniformMatrix3f=class extends Yd{constructor(ze){super(ze),this.current=ey}set(ze,Re,Be){if(this.fetchUniformLocation(ze,Re)){for(let He=0;He<9;He++)if(Be[He]!==this.current[He]){this.current=Be,this.gl.uniformMatrix3fv(this.location,!1,Be);break}}}},Ie.UniformMatrix4f=class extends Yd{constructor(ze){super(ze),this.current=Fc}set(ze,Re,Be){if(this.fetchUniformLocation(ze,Re)){if(Be[12]!==this.current[12]||Be[0]!==this.current[0])return this.current=Be,void this.gl.uniformMatrix4fv(this.location,!1,Be);for(let He=1;He<16;He++)if(Be[He]!==this.current[He]){this.current=Be,this.gl.uniformMatrix4fv(this.location,!1,Be);break}}}},Ie.UnwrappedTileID=ma,Ie.ValidationError=Ys,Ie.VectorTileFeature=zv,Ie.VectorTileWorkerSource=class extends rh{constructor(ze,Re,Be,He,We){super(),this.actor=ze,this.layerIndex=Re,this.availableImages=Be,this.loadVectorData=We||yR,this.loading={},this.loaded={},this.deduped=new gR(ze.scheduler),this.isSpriteLoaded=He,this.scheduler
219=ze.scheduler}loadTile(ze,Re){const Be=ze.uid,He=ze&&ze.request,We=He&&He.collectResourceTiming,Ye=this.loading[Be]=new Az(ze);Ye.abort=this.loadVectorData(ze,(ni,li)=>{const yi=!this.loading[Be];if(delete this.loading[Be],yi||ni||!li)return Ye.status="done",yi||(this.loaded[Be]=Ye),Re(ni);const xi=li.rawData,Pi={};li.expires&&(Pi.expires=li.expires),li.cacheControl&&(Pi.cacheControl=li.cacheControl),Ye.vectorTile=li.vectorTile||new o0(new Gv(xi));const Ni=()=>{Ye.parse(Ye.vectorTile,this.layerIndex,this.availableImages,this.actor,(Wi,rn)=>{if(Wi||!rn)return Re(Wi);const un={};if(We){const gn=hp(He);gn.length>0&&(un.resourceTiming=JSON.parse(JSON.stringify(gn)))}Re(null,Qi({rawTileData:xi.slice(0)},rn,Pi,un))})};this.isSpriteLoaded?Ni():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(Ni,{type:"parseTile",isSymbolTile:ze.isSymbolTile,zoom:ze.tileZoom}):Ni()}),this.loaded=this.loaded||{},this.loaded[Be]=Ye})}reloadTile(ze,Re){const Be=this.loaded,He=ze.uid,We=this;if(Be&&Be[He]){const Ye=Be[He];Ye.showCollisionBoxes=ze.showCollisionBoxes,Ye.enableTerrain=!!ze.enableTerrain,Ye.projection=ze.projection,Ye.tileTransform=og(ze.tileID.canonical,ze.projection);const ni=(li,yi)=>{const xi=Ye.reloadCallback;xi&&(delete Ye.reloadCallback,Ye.parse(Ye.vectorTile,We.layerIndex,this.availableImages,We.actor,xi)),Re(li,yi)};Ye.status==="parsing"?Ye.reloadCallback=ni:Ye.status==="done"&&(Ye.vectorTile?Ye.parse(Ye.vectorTile,this.layerIndex,this.availableImages,this.actor,ni):ni())}}abortTile(ze,Re){const Be=ze.uid,He=this.loading[Be];He&&(He.abort&&He.abort(),delete this.loading[Be]),Re()}removeTile(ze,Re){const Be=this.loaded,He=ze.uid;Be&&Be[He]&&delete Be[He],Re()}},Ie.WritingMode=Eh,Ie.ZoomDependentExpression=Af,Ie.add=Rl,Ie.addDynamicAttributes=i_,Ie.adjoint=function(ze,Re){var Be=Re[0],He=Re[1],We=Re[2],Ye=Re[3],ni=Re[4],li=Re[5],yi=Re[6],xi=Re[7],Pi=Re[8];return ze[0]=ni*Pi-li*xi,ze[1]=We*xi-He*Pi,ze[2]=He*li-We*ni,ze[3]=li*yi-Ye*Pi,ze[4]=Be*Pi-We*yi,ze[5]=We*Ye-Be*li,ze[6]=Ye*xi-ni*yi,ze[7]=He*yi-Be*xi,ze[8]=Be*ni-He*Ye,ze},Ie.asyncAll=wi,Ie.bezier=xr,Ie.bindAll=Ri,Ie.boundsAttributes=Rs,Ie.bufferConvexPolygon=function(ze,Re){const Be=[];for(let He=0;He<ze.length;He++){const We=os(He-1,-1,ze.length-1),Ye=os(He+1,-1,ze.length-1),ni=ze[He],li=ze[Ye],yi=ze[We].sub(ni).unit(),xi=li.sub(ni).unit(),Pi=xi.angleWithSep(yi.x,yi.y),Ni=yi.add(xi).unit().mult(-1*Re/Math.sin(Pi/2));Be.push(ni.add(Ni))}return Be},Ie.cacheEntryPossiblyAdded=function(ze){ea++,ea>no&&(ze.getActor().send("enforceCacheSizeLimit",As),ea=0)},Ie.calculateGlobeLabelMatrix=function(ze,Re){const{x:Be,y:He}=ze.point,We=ti(Be,He,ze.worldSize/ze._pixelsPerMercatorPixel,0,0);return bd(We,We,_m(Au(Re)))},Ie.calculateGlobeMatrix=function(ze){const{x:Re,y:Be}=ze.point,{lng:He,lat:We}=ze._center;return ti(Re,Be,ze.worldSize,He,We)},Ie.calculateGlobeMercatorMatrix=function(ze){const Re=ze.pixelsPerMeter,Be=Re/Sr(1,ze.center.lat),He=ju(new Float64Array(16));return sf(He,He,[ze.point.x,ze.point.y,0]),of(He,He,[Be,Be,Re]),Float32Array.from(He)},Ie.circumferenceAtLatitude=_n,Ie.clamp=Hn,Ie.clearTileCache=function(ze){if(!qs())return;const Re=je.caches.delete(go);ze&&Re.catch(ze).then(()=>ze())},Ie.clipLine=YS,Ie.clone=function(ze){var Re=new nl(16);return Re[0]=ze[0],Re[1]=ze[1],Re[2]=ze[2],Re[3]=ze[3],Re[4]=ze[4],Re[5]=ze[5],Re[6]=ze[6],Re[7]=ze[7],Re[8]=ze[8],Re[9]=ze[9],Re[10]=ze[10],Re[11]=ze[11],Re[12]=ze[12],Re[13]=ze[13],Re[14]=ze[14],Re[15]=ze[15],Re},Ie.clone$1=Ii,Ie.collisionCircleLayout=uP,Ie.config=qe,Ie.conjugate=function(ze,Re){return ze[0]=-Re[0],ze[1]=-Re[1],ze[2]=-Re[2],ze[3]=Re[3],ze},Ie.create=function(){var ze=new nl(16);return nl!=Float32Array&&(ze[1]=0,ze[2]=0,ze[3]=0,ze[4]=0,ze[6]=0,ze[7]=0,ze[8]=0,ze[9]=0,ze[11]=0,ze[12]=0,ze[13]=0,ze[14]=0),ze[0]=1,ze[5]=1,ze[10]=1,ze[15]=1,ze},Ie.create$1=qg,Ie.createExpression=xp,Ie.createLayout=Pr,Ie.createStyleLayer=function(ze){return ze.type==="custom"?new UP(ze):new jP[ze.type](ze)},Ie.cross=wd,Ie.degToRad=Tn,Ie.distance=function(ze,Re){return Math.hypot(Re[0]-ze[0],Re[1]-ze[1],Re[2]-ze[2])},Ie.div=function(ze,Re,Be){return ze[0]=Re[0]/Be[0],ze[1]=Re[1]/Be[1],ze[2]=Re[2]/Be[2],ze},Ie.dot=rd,Ie.earthRadius=Vi,Ie.ease=er,Ie.easeCubicInOut=tr,Ie.ecefToLatLng=function([ze,Re,Be]){const He=Math.hypot(ze,Re,Be),We=Math.atan2(ze,Be),Ye=.5*Math.PI-Math.acos(-Re/He);return new ln(Sn(We),Sn(Ye))},Ie.emitValidationErrors=qd,Ie.endsWith=xs,Ie.enforceCacheSizeLimit=function(ze){hs(),Ws&&Ws.then(Re=>{Re.keys().then(Be=>{for(let He=0;He<Be.length-ze;He++)Re.delete(Be[He])})})},Ie.evaluateSizeForFeature=Nv,Ie.evaluateSizeForZoom=ng,Ie.evaluateVariableOffset=QS,Ie.evented=ai,Ie.exactEquals=function(ze,Re){return ze[0]===Re[0]&&ze[1]===Re[1]&&ze[2]===Re[2]&&ze[3]===Re[3]},Ie.exactEquals$1=function(ze,Re){return ze[0]===Re[0]&&ze[1]===Re[1]&&ze[2]===Re[2]},Ie.exported=Ru,Ie.exported$1=ci,Ie.extend=Qi,Ie.extend$1=Ou,Ie.fillExtrusionHeightLift=CS,Ie.filterObject=bi,Ie.fromMat4=function(ze,Re){return ze[0]=Re[0],ze[1]=Re[1],ze[2]=Re[2],ze[3]=Re[4],ze[4]=Re[5],ze[5]=Re[6],ze[6]=Re[8],ze[7]=Re[9],ze[8]=Re[10],ze},Ie.fromQuat=function(ze,Re){var Be=Re[0],He=Re[1],We=Re[2],Ye=Re[3],ni=Be+Be,li=He+He,yi=We
219+We,xi=Be*ni,Pi=He*ni,Ni=He*li,Wi=We*ni,rn=We*li,un=We*yi,gn=Ye*ni,kn=Ye*li,jn=Ye*yi;return ze[0]=1-Ni-un,ze[1]=Pi+jn,ze[2]=Wi-kn,ze[3]=0,ze[4]=Pi-jn,ze[5]=1-xi-un,ze[6]=rn+gn,ze[7]=0,ze[8]=Wi+kn,ze[9]=rn-gn,ze[10]=1-xi-Ni,ze[11]=0,ze[12]=0,ze[13]=0,ze[14]=0,ze[15]=1,ze},Ie.fromRotation=function(ze,Re){var Be=Math.sin(Re),He=Math.cos(Re);return ze[0]=He,ze[1]=Be,ze[2]=0,ze[3]=-Be,ze[4]=He,ze[5]=0,ze[6]=0,ze[7]=0,ze[8]=1,ze},Ie.fromScaling=af,Ie.furthestTileCorner=function(ze){const Re=Math.round((ze+45+360)%360/90)%4;return Cn[Re]},Ie.getAABBPointSquareDist=function(ze,Re,Be){let He=0;for(let We=0;We<2;++We){const Ye=Be?Be[We]:0;ze[We]>Ye&&(He+=(ze[We]-Ye)*(ze[We]-Ye)),Re[We]<Ye&&(He+=(Ye-Re[We])*(Ye-Re[We]))}return He},Ie.getAnchorAlignment=Y1,Ie.getAnchorJustification=ib,Ie.getBounds=function(ze){let Re=1/0,Be=1/0,He=-1/0,We=-1/0;for(const Ye of ze)Re=Math.min(Re,Ye.x),Be=Math.min(Be,Ye.y),He=Math.max(He,Ye.x),We=Math.max(We,Ye.y);return{min:new Gi(Re,Be),max:new Gi(He,We)}},Ie.getColumn=Ls,Ie.getDefaultExportFromCjs=Li,Ie.getGridMatrix=function(ze,Re,Be,He){const We=Re.getNorth(),Ye=Re.getSouth(),ni=Re.getWest(),li=Re.getEast(),yi=1<<ze.z,xi=li-ni,Pi=We-Ye,Ni=xi/Nf,Wi=-Pi/ym[Be],rn=[0,Ni,0,Wi,0,0,We,ni,
2190];if(ze.z>0){const un=180/He;fm(rn,rn,[un/xi+1,0,0,0,un/Pi+1,0,-.5*un/Ni,.5*un/Wi,1])}return rn[2]=yi,rn[5]=ze.x,rn[8]=ze.y,rn},Ie.getImage=Yn,Ie.getJSON=function(ze,Re){return el(Qi(ze,{type:"json"}),Re)},Ie.getLatitudinalLod=function(ze){const Re=rr-5;ze=Hn(ze,-Re,Re)/Re*90;const Be=Math.pow(Math.abs(Math.sin(Tn(ze))),3);return Math.round(Be*(ym.length-1))},Ie.getMapSessionAPI=ul,Ie.getPerformanceMeasurement=hp,Ie.getProjection=aT,Ie.getRTLTextPluginStatus=ui,Ie.getReferrer=Do,Ie.getTilePoint=function(ze,{x:Re,y:Be},He=0){return new Gi(((Re-He)*ze.scale-ze.x)*So,(Be*ze.scale-ze.y)*So)},Ie.getTileVec3=function(ze,Re,Be=0){return xd(((Re.x-Be)*ze.scale-ze.x)*So,(Re.y*ze.scale-ze.y)*So,mr(Re.z,Re.y))},Ie.getVideo=function(ze,Re){const Be=je.document.createElement("video");Be.muted=!0,Be.onloadstart=function(){Re(null,Be)};for(let He=0;He<ze.length;He++){const We=je.document.createElement("source");cl(ze[He])||(Be.crossOrigin="Anonymous"),We.src=ze[He],Be.appendChild(We)}return{cancel:()=>{}}},Ie.globeCenterToScreenPoint=function(ze){const Re=[0,0,0],Be=ju(new Float64Array(16));return bd(Be,ze.pixelMatrix,ze.globeMatrix),Ol(Re,Re,Be),new Gi(Re[0],Re[1])},Ie.globeDenormalizeECEF=_m,Ie.globeECEFOrigin=function(ze,Re){const Be=[0,0,0];return Ol(Be,Be,Yh(Au(Re.canonical))),Ol(Be,Be,ze),Be},Ie.globeMetersToEcef=vm,Ie.globeNormalizeECEF=Yh,Ie.globePixelsToTileUnits=function(ze,Re){return So/(512*Math.pow(2,ze))*_u(Au(Re))},Ie.globePoleMatrixForTile=function(ze,Re,Be){const He=ju(new Float64Array(16)),We=(Re/(1<<ze)-.5)*Math.PI*2;return bh(He,Be.globeMatrix,We),Float32Array.from(He)},Ie.globeTileBounds=Au,Ie.globeTiltAtLngLat=di,Ie.globeToMercatorTransition=si,Ie.globeUseCustomAntiAliasing=function(ze,Re,Be){const He=si(Be.zoom),We=ze.style.map._antialias,Ye=!!Re.extStandardDerivatives,ni=Re.extStandardDerivativesForceOff||ze.terrain&&ze.terrain.exaggeration()>0;return He===0&&!We&&!ni&&Ye},Ie.identity=ju,Ie.identity$1=Km,Ie.invert=_d,Ie.isFullscreen=function(){return!!je.document.fullscreenElement||!!je.document.webkitFullscreenElement},Ie.isLngLatBehindGlobe=vi,Ie.isMapAuthenticated=function(ze){return Ba.has(ze)},Ie.isMapboxURL=yr,Ie.isSafariWithAntialiasingBug=function(ze){const Re=ze.navigator?ze.navigator.userAgent:null;return!!_s(ze)&&Re&&(Re.match("Version/15.4")||Re.match("Version/15.5")||Re.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},Ie.latFromMercatorY=Gn,Ie.latLngToECEF=La,Ie.len=uf,Ie.length=gm,Ie.length$1=function(ze){return Math.hypot(ze[0],ze[1],ze[2],ze[3])},Ie.lngFromMercatorX=lr,Ie.loadVectorTile=yR,Ie.makeRequest=el,Ie.mapValue=function(ze,Re,Be,He,We){return Hn((ze-Re)/(Be-Re)*(We-He)+He,He,We)},Ie.mercatorScale=ir,Ie.mercatorXfromLng=$n,Ie.mercatorYfromLat=Ln,Ie.mercatorZfromAltitude=Sr,Ie.mul=ny,Ie.mul$1=Zm,Ie.multiply=bd,Ie.multiply$1=fm,Ie.multiply$2=ry,Ie.nextPowerOfTwo=ji,Ie.normalize=vu,Ie.normalize$1=Bf,Ie.normalize$2=Ym,Ie.number=qo,Ie.ortho=function(ze,Re,Be,He,We,Ye,ni){var li=1/(Re-Be),yi=1/(He-We),xi=1/(Ye-ni);return ze[0]=-2*li,ze[1]=0,ze[2]=0,ze[3]=0,ze[4]=0,ze[5]=-2*yi,ze[6]=0,ze[7]=0,ze[8]=0,ze[9]=0,ze[10]=2*xi,ze[11]=0,ze[12]=(Re+Be)*li,ze[13]=(We+He)*yi,ze[14]=(ni+Ye)*xi,ze[15]=1,ze},Ie.pbf=RS,Ie.perspective=function(ze,Re,Be,He,We){var Ye,ni=1/Math.tan(Re/2);return ze[0]=ni/Be,ze[1]=0,ze[2]=0,ze[3]=0,ze[4]=0,ze[5]=ni,ze[6]=0,ze[7]=0,ze[8]=0,ze[9]=0,ze[11]=-1,ze[12]=0,ze[13]=0,ze[15]=0,We!=null&&We!==1/0?(ze[10]=(We+He)*(Ye=1/(He-We)),ze[14]=2*We*He*Ye):(ze[10]=-1,ze[14]=-2*He),ze},Ie.pick=function(ze,Re){const Be={};for(let He=0;He<Re.length;He++){const We=Re[He];We in ze&&(Be[We]=ze[We])}return Be},Ie.plugin=Mi,Ie.pointGeometry=Je,Ie.polesInViewport=function(ze){const Re=ju(new Float64Array(16));bd(Re,ze.pixelMatrix,ze.globeMatrix);const Be=[0,Ac,0],He=[0,Sl,0];return Ol(Be,Be,Re),Ol(He,He,Re),[Be[0]>0&&Be[0]<=ze.width&&Be[1]>0&&Be[1]<=ze.height&&!vi(ze,new ln(ze.center.lat,90)),He[0]>0&&He[0]<=ze.width&&He[1]>0&&He[1]<=ze.height&&!vi(ze,new ln(ze.center.lat,-90))]},Ie.polygonContainsPoint=dc,Ie.polygonIntersectsBox=$p,Ie.polygonIntersectsPolygon=pa,Ie.polygonizeBounds=function(ze,Re,Be=0,He=!0){const We=new Gi(Be,Be),Ye=ze.sub(We),ni=Re.add(We),li=[Ye,new Gi(ni.x,Ye.y),ni,new Gi(Ye.x,ni.y)];return He&&li.push(Ye.clone()),li},Ie.posAttributes=hf,Ie.postMapLoadEvent=_a,Ie.postPerformanceEvent=Lo,Ie.postTurnstileEvent=wo,Ie.potpack=W1,Ie.prevPowerOfTwo=function(ze){return ze<=1?1:Math.pow(2,Math.floor(Math.log(ze)/Math.LN2))},Ie.radToDeg=Sn,Ie.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],Ie.registerForPluginStateChange=function(ze){return ze({pluginStatus:Ze,pluginURL:Ne}),ai.on("pluginStateChange",ze),ze},Ie.removeAuthState=function(ze){Ba.delete(ze)},Ie.renderColorRamp=Td,Ie.resample=Jr,Ie.rotateX=Xm,Ie.rotateX$1=df,Ie.rotateY=bh,Ie.rotateY$1=Ro,Ie.rotateZ=function(ze,Re,Be){var He=Math.sin(Be),We=Math.cos(Be),Ye=Re[0],ni=Re[1],li=Re[2],yi=Re[3],xi=Re[4],Pi=Re[5],Ni=Re[6],Wi=Re[7];return Re!==ze&&(ze[8]=Re[8],ze[9]=Re[9],ze[10]=Re[10],ze[11]=Re[11],ze[12]=Re[12],ze[13]=Re[13],ze[14]=Re[14],ze[15]=Re[15]),ze[0]=Ye*We+xi*He,ze[1]=ni*We+Pi*He,ze[2]=li*We+Ni*He,ze[3]=yi*We+Wi*He,ze[4]=xi*We-Ye*He,ze[5]=Pi*We-ni*He,ze[6]=Ni*We-li*He,ze[7]=Wi*We-yi*He,ze},Ie.rotateZ$1=function(ze,Re,Be){Be*=.5;var He=Re[0],We=Re[1],Ye=Re[2],ni=Re[3],li=Math.sin(Be),yi=Math.cos(Be);return ze[0]=He*yi+We*li,ze[1]=We*yi-He*li,ze[2]=Ye*yi+ni*li,ze[3]=ni*yi-Ye*li,ze},Ie.scale=of,Ie.scale$1=Jd,Ie.scale$2=tu,Ie.scaleAndAdd=lf,Ie.set=function(ze,Re,Be,He){return ze[0]=Re,ze[1]=Be,ze[2]=
219He,ze},Ie.setCacheLimits=function(ze,Re){As=ze,no=Re},Ie.setColumn=function(ze,Re,Be){ze[4*Re+0]=Be[0],ze[4*Re+1]=Be[1],ze[4*Re+2]=Be[2],ze[4*Re+3]=Be[3]},Ie.setRTLTextPlugin=function(ze,Re,Be=!1){if(Ze===td||Ze===Rf||Ze===Wh)throw new Error("setRTLTextPlugin cannot be called multiple times.");Ne=Ru.resolveURL(ze),Ze=td,qh=Re,Qe(),Be||Si()},Ie.smoothstep=Er,Ie.spec=rs,Ie.squaredLength=function(ze){var Re=ze[0],Be=ze[1],He=ze[2];return Re*Re+Be*Be+He*He},Ie.storeAuthState=function(ze,Re){Re?Ba.add(ze):Ba.delete(ze)},Ie.sub=Sd,Ie.subtract=$f,Ie.symbolSize=Vv,Ie.tileAABB=function(ze,Re,Be,He,We,Ye,ni,li,yi){if(yi.name==="globe")return L1(ze,Re,new _f(Be,He,We));const xi=og({z:Be,x:He,y:We},yi);return new tc([(Ye+xi.x/xi.scale)*Re,Re*(xi.y/xi.scale),ni],[(Ye+xi.x2/xi.scale)*Re,Re*(xi.y2/xi.scale),li])},Ie.tileCornersToBounds=Jg,Ie.tileTransform=og,Ie.transformMat3=function(ze,Re,Be){var He=Re[0],We=Re[1],Ye=Re[2];return ze[0]=He*Be[0]+We*Be[3]+Ye*Be[6],ze[1]=He*Be[1]+We*Be[4]+Ye*Be[7],ze[2]=He*Be[2]+We*Be[5]+Ye*Be[8],ze},Ie.transformMat4=Ol,Ie.transformMat4$1=Rp,Ie.transformQuat=zf,Ie.transitionTileAABBinECEF=ly,Ie.translate=sf,Ie.transpose=function(ze,Re){if(ze===Re){var Be=Re[1],He=Re[2],We=Re[5];ze[1]=Re[3],ze[2]=Re[6],ze[3]=Be,ze[5]=Re[7],ze[6]=He,ze[7]=We}else ze[0]=Re[0],ze[1]=Re[3],ze[2]=Re[6],ze[3]=Re[1],ze[4]=Re[4],ze[5]=Re[7],ze[6]=Re[2],ze[7]=Re[5],ze[8]=Re[8];return ze},Ie.triggerPluginCompletionEvent=Ge,Ie.uniqueId=vn,Ie.updateGlobeVertexNormal=function(ze,Re,Be,He,We){const Ye=5*Re+2;ze.float32[Ye+0]=Be,ze.float32[Ye+1]=He,ze.float32[Ye+2]=We},Ie.validateCustomStyleLayer=function(ze){const Re=[],Be=ze.id;return Be===void 0&&Re.push({message:`layers.${Be}: missing required property "id"`}),ze.render===void 0&&Re.push({message:`layers.${Be}: missing required method "render"`}),ze.renderingMode&&ze.renderingMode!=="2d"&&ze.renderingMode!=="3d"&&Re.push({message:`layers.${Be}: property "renderingMode" must be either "2d" or "3d"`}),Re},Ie.validateFilter=ze=>Vl(Tp(ze)),Ie.validateFog=ze=>Vl(kf(ze)),Ie.validateLayer=ze=>Vl(Rn(ze)),Ie.validateLight=ze=>Vl(qm(ze)),Ie.validateSource=ze=>Vl(Lc(ze)),Ie.validateStyle=Pf,Ie.validateTerrain=ze=>Vl(Jp(ze)),Ie.values=Zi,Ie.vectorTile=$v,Ie.version=Ke,Ie.warnOnce=Mn,Ie.window=je,Ie.wrap=os}),Fe(["./shared"],function(Ie){function je(Zn){if(typeof Zn=="number"||typeof Zn=="boolean"||typeof Zn=="string"||Zn==null)return JSON.stringify(Zn);if(Array.isArray(Zn)){let xn="[";for(const Yn of Zn)xn+=`${je(Yn)},`;return`${xn}]`}let bn="{";for(const xn of Object.keys(Zn).sort())bn+=`${xn}:${je(Zn[xn])},`;return`${bn}}`}function Ke(Zn){let bn="";for(const xn of Ie.refProperties)bn+=`/${je(Zn[xn])}`;return bn}class $e{constructor(bn){this.keyCache={},bn&&this.replace(bn)}replace(bn){this._layerConfigs={},this._layers={},this.update(bn,[])}update(bn,xn){for(const or of bn)this._layerConfigs[or.id]=or,(this._layers[or.id]=Ie.createStyleLayer(or)).compileFilter(),this.keyCache[or.id]&&delete this.keyCache[or.id];for(const or of xn)delete this.keyCache[or],delete this._layerConfigs[or],delete this._layers[or];this.familiesBySource={};const Yn=function(or,yr){const Rr={};for(let br=0;br<or.length;br++){const jr=yr&&yr[or[br].id]||Ke(or[br]);yr&&(yr[or[br].id]=jr);let bs=Rr[jr];bs||(bs=Rr[jr]=[]),bs.push(or[br])}const kr=[];for(const br in Rr)kr.push(Rr[br]);return kr}(Ie.values(this._layerConfigs),this.keyCache);for(const or of Yn){const yr=or.map(Fs=>this._layers[Fs.id]),Rr=yr[0];if(Rr.visibility==="none")continue;const kr=Rr.source||"";let br=this.familiesBySource[kr];br||(br=this.familiesBySource[kr]={});const jr=Rr.sourceLayer||"_geojsonTileLayer";let bs=br[jr];bs||(bs=br[jr]=[]),bs.push(yr)}}}class qe{loadTile(bn,xn){const{uid:Yn,encoding:or,rawImageData:yr,padding:Rr,buildQuadTree:kr}=bn,br=Ie.window.ImageBitmap&&yr instanceof Ie.window.ImageBitmap?this.getImageData(yr,Rr):yr;xn(null,new Ie.DEMData(Yn,br,or,Rr<1,kr))}getImageData(bn,xn){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(bn.width,bn.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=bn.width,this.offscreenCanvas.height=bn.height,this.offscreenCanvasContext.drawImage(bn,0,0,bn.width,bn.height);const Yn=this.offscreenCanvasContext.getImageData(-xn,-xn,bn.width+2*xn,bn.height+2*xn);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),Yn}}function ci(Zn,bn){if(Zn.length!==0){gi(Zn[0],bn);for(var xn=1;xn<Zn.length;xn++)gi(Zn[xn],!bn)}}function gi(Zn,bn){for(var xn=0,Yn=0,or=0,yr=Zn.length,Rr=yr-1;or<yr;Rr=or++){var kr=(Zn[or][0]-Zn[Rr][0])*(Zn[Rr][1]+Zn[or][1]),br=xn+kr;Yn+=Math.abs(xn)>=Math.abs(kr)?xn-br+kr:kr-br+xn,xn=br}xn+Yn>=0!=!!bn&&Zn.reverse()}var Ai=Ie.getDefaultExportFromCjs(function Zn(bn,xn){var Yn,or=bn&&bn.type;if(or==="FeatureCollection")for(Yn=0;Yn<bn.features.length;Yn++)Zn(bn.features[Yn],xn);else if(or==="GeometryCollection")for(Yn=0;Yn<bn.geometries.length;Yn++)Zn(bn.geometries[Yn],xn);else if(or==="Feature")Zn(bn.geometry,xn);else if(or==="Polygon")ci(bn.coordinates,xn);else if(or==="MultiPolygon")for(Yn=0;Yn<bn.coordinates.length;Yn++)ci(bn.coordinates[Yn],xn);return bn});const oi=Ie.VectorTileFeature.prototype.toGeoJSON;var ii={exports:{}},hi=Ie.pointGeometry,Ei=Ie.vectorTile.VectorTileFeature,Li=Di;
219function Di(Zn,bn){this.options=bn||{},this.features=Zn,this.length=Zn.length}function zi(Zn,bn){this.id=typeof Zn.id=="number"?Zn.id:void 0,this.type=Zn.type,this.rawGeometry=Zn.type===1?[Zn.geometry]:Zn.geometry,this.properties=Zn.tags,this.extent=bn||4096}Di.prototype.feature=function(Zn){return new zi(this.features[Zn],this.options.extent)},zi.prototype.loadGeometry=function(){var Zn=this.rawGeometry;this.geometry=[];for(var bn=0;bn<Zn.length;bn++){for(var xn=Zn[bn],Yn=[],or=0;or<xn.length;or++)Yn.push(new hi(xn[or][0],xn[or][1]));this.geometry.push(Yn)}return this.geometry},zi.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var Zn=this.geometry,bn=1/0,xn=-1/0,Yn=1/0,or=-1/0,yr=0;yr<Zn.length;yr++)for(var Rr=Zn[yr],kr=0;kr<Rr.length;kr++){var br=Rr[kr];bn=Math.min(bn,br.x),xn=Math.max(xn,br.x),Yn=Math.min(Yn,br.y),or=Math.max(or,br.y)}return[bn,Yn,xn,or]},zi.prototype.toGeoJSON=Ei.prototype.toGeoJSON;var an=Ie.pbf,Je=Li;function fi(Zn){var bn=new an;return function(xn,Yn){for(var or in xn.layers)Yn.writeMessage(3,Gi,xn.layers[or])}(Zn,bn),bn.finish()}function Gi(Zn,bn){var xn;
vendor: 7,006 bytes, line 219
219bn.writeVarintField(15,Zn.version||1),bn.writeStringField(1,Zn.name||""),bn.writeVarintField(5,Zn.extent||4096);var Yn={keys:[],values:[],keycache:{},valuecache:{}};for(xn=0;xn<Zn.length;xn++)Yn.feature=Zn.feature(xn),bn.writeMessage(2,fn,Yn);var or=Yn.keys;for(xn=0;xn<or.length;xn++)bn.writeStringField(3,or[xn]);var yr=Yn.values;for(xn=0;xn<yr.length;xn++)bn.writeMessage(4,tr,yr[xn])}function fn(Zn,bn){var xn=Zn.feature;xn.id!==void 0&&bn.writeVarintField(1,xn.id),bn.writeMessage(2,cn,Zn),bn.writeVarintField(3,xn.type),bn.writeMessage(4,Cn,xn)}function cn(Zn,bn){var xn=Zn.feature,Yn=Zn.keys,or=Zn.values,yr=Zn.keycache,Rr=Zn.valuecache;for(var kr in xn.properties){var br=xn.properties[kr],jr=yr[kr];if(br!==null){jr===void 0&&(Yn.push(kr),yr[kr]=jr=Yn.length-1),bn.writeVarint(jr);var bs=typeof br;bs!=="string"&&bs!=="boolean"&&bs!=="number"&&(br=JSON.stringify(br));var Fs=bs+":"+br,wr=Rr[Fs];wr===void 0&&(or.push(br),Rr[Fs]=wr=or.length-1),bn.writeVarint(wr)}}}function Tn(Zn,bn){return(bn<<3)+(7&Zn)}function Sn(Zn){return Zn<<1^Zn>>31}function Cn(Zn,bn){for(var xn=Zn.loadGeometry(),Yn=Zn.type,or=0,yr=0,Rr=xn.length,kr=0;kr<Rr;kr++){var br=xn[kr],jr=1;Yn===1&&(jr=br.length),bn.writeVarint(Tn(1,jr));for(var bs=Yn===3?br.length-1:br.length,Fs=0;Fs<bs;Fs++){Fs===1&&Yn!==1&&bn.writeVarint(Tn(2,bs-1));var wr=br[Fs].x-or,gs=br[Fs].y-yr;bn.writeVarint(Sn(wr)),bn.writeVarint(Sn(gs)),or+=wr,yr+=gs}Yn===3&&bn.writeVarint(Tn(7,1))}}function tr(Zn,bn){var xn=typeof Zn;xn==="string"?bn.writeStringField(1,Zn):xn==="boolean"?bn.writeBooleanField(7,Zn):xn==="number"&&(Zn%1!=0?bn.writeDoubleField(3,Zn):Zn<0?bn.writeSVarintField(6,Zn):bn.writeVarintField(5,Zn))}ii.exports=fi,ii.exports.fromVectorTileJs=fi,ii.exports.fromGeojsonVt=function(Zn,bn){bn=bn||{};var xn={};for(var Yn in Zn)xn[Yn]=new Je(Zn[Yn].features,bn),xn[Yn].name=Yn,xn[Yn].version=bn.version,xn[Yn].extent=bn.extent;return fi({layers:xn})},ii.exports.GeoJSONWrapper=Je;var xr=Ie.getDefaultExportFromCjs(ii.exports);const er={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:Zn=>Zn},Hn=Math.fround||(Er=new Float32Array(1),Zn=>(Er[0]=+Zn,Er[0]));var Er;const os=3,wi=5,Zi=6;class Qi{constructor(bn){this.options=Object.assign(Object.create(er),bn),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(bn){const{log:xn,minZoom:Yn,maxZoom:or}=this.options;xn&&console.time("total time");const yr=`prepare ${bn.length} points`;xn&&console.time(yr),this.points=bn;const Rr=[];for(let br=0;br<bn.length;br++){const jr=bn[br];if(!jr.geometry)continue;const[bs,Fs]=jr.geometry.coordinates,wr=Hn(zn(bs)),gs=Hn(ji(Fs));Rr.push(wr,gs,1/0,br,-1,1),this.options.reduce&&Rr.push(0)}let kr=this.trees[or+1]=this._createTree(Rr);xn&&console.timeEnd(yr);for(let br=or;br>=Yn;br--){const jr=+Date.now();kr=this.trees[br]=this._createTree(this._cluster(kr,br)),xn&&console.log("z%d: %d clusters in %dms",br,kr.numItems,+Date.now()-jr)}return xn&&console.timeEnd("total time"),this}getClusters(bn,xn){let Yn=((bn[0]+180)%360+360)%360-180;const or=Math.max(-90,Math.min(90,bn[1]));let yr=bn[2]===180?180:((bn[2]+180)%360+360)%360-180;const Rr=Math.max(-90,Math.min(90,bn[3]));if(bn[2]-bn[0]>=360)Yn=-180,yr=180;else if(Yn>yr){const Fs=this.getClusters([Yn,or,180,Rr],xn),wr=this.getClusters([-180,or,yr,Rr],xn);return Fs.concat(wr)}const kr=this.trees[this._limitZoom(xn)],br=kr.range(zn(Yn),ji(Rr),zn(yr),ji(or)),jr=kr.data,bs=[];for(const Fs of br){const wr=this.stride*Fs;bs.push(jr[wr+wi]>1?Hi(jr,wr,this.clusterProps):this.points[jr[wr+os]])}return bs}getChildren(bn){const xn=this._getOriginId(bn),Yn=this._getOriginZoom(bn),or="No cluster with the specified id.",yr=this.trees[Yn];if(!yr)throw new Error(or);const Rr=yr.data;if(xn*this.stride>=Rr.length)throw new Error(or);const kr=this.options.radius/(this.options.extent*Math.pow(2,Yn-1)),br=yr.within(Rr[xn*this.stride],Rr[xn*this.stride+1],kr),jr=[];for(const bs of br){const Fs=bs*this.stride;Rr[Fs+4]===bn&&jr.push(Rr[Fs+wi]>1?Hi(Rr,Fs,this.clusterProps):this.points[Rr[Fs+os]])}if(jr.length===0)throw new Error(or);return jr}getLeaves(bn,xn,Yn){const or=[];return this._appendLeaves(or,bn,xn=xn||10,Yn=Yn||0,0),or}getTile(bn,xn,Yn){const or=this.trees[this._limitZoom(bn)],yr=Math.pow(2,bn),{extent:Rr,radius:kr}=this.options,br=kr/Rr,jr=(Yn-br)/yr,bs=(Yn+1+br)/yr,Fs={features:[]};return this._addTileFeatures(or.range((xn-br)/yr,jr,(xn+1+br)/yr,bs),or.data,xn,Yn,yr,Fs),xn===0&&this._addTileFeatures(or.range(1-br/yr,jr,1,bs),or.data,yr,Yn,yr,Fs),xn===yr-1&&this._addTileFeatures(or.range(0,jr,br/yr,bs),or.data,-1,Yn,yr,Fs),Fs.features.length?Fs:null}getClusterExpansionZoom(bn){let xn=this._getOriginZoom(bn)-1;for(;xn<=this.options.maxZoom;){const Yn=this.getChildren(bn);if(xn++,Yn.length!==1)break;bn=Yn[0].properties.cluster_id}return xn}_appendLeaves(bn,xn,Yn,or,yr){const Rr=this.getChildren(xn);for(const kr of Rr){const br=kr.properties;if(br&&br.cluster?yr+br.point_count<=or?yr+=br.point_count:yr=this._appendLeaves(bn,br.cluster_id,Yn,or,yr):yr<or?yr++:bn.push(kr),bn.length===Yn)break}return yr}_createTree(bn){const xn=new Ie.KDBush(bn.length/this.stride|0,this.options.nodeSize,Float32Array);for(let Yn=0;Yn<bn.length;Yn+=this.stride)xn.add(bn[Yn],bn[Yn+1]);return xn.finish(),xn.data=bn,xn}_addTileFeatures(bn,xn,Yn,or,yr,Rr){for(const kr of bn){const br=kr*this.stride,jr=xn[br+wi]>1;let bs,Fs,wr;if(jr)bs=vn(xn,br,this.clusterProps),Fs=xn[br],wr=xn[br+1];else{const Hs=this.points[xn[br+os]];bs=Hs.properties;const[xo,wo]=Hs.geometry.coordinates;Fs=zn(xo),wr=ji(wo)}const gs={type:1,geometry:[[Math.round(this.options.extent*(Fs*yr-Yn)),Math.round(this.options.extent*(wr*yr-or))]],tags:bs};let Es;Es=jr||this.options.generateId?xn[br+os]:this.points[xn[br+os]].id,Es!==void 0&&(gs.id=Es),Rr.features.push(gs)}}_limitZoom(bn){return Math.max(this.options.minZoom,Math.min(Math.floor(+bn),this.options.maxZoom+1))}_cluster(bn,xn){const{radius:Yn,extent:or,reduce:yr,minPoints:Rr}=this.options,kr=Yn/(or*Math.pow(2,xn)),br=bn.data,jr=[],bs=this.stride;for(let Fs=0;Fs<br.length;Fs+=bs){if(br[Fs+2]<=xn)continue;br[Fs+2]=xn;const wr=br[Fs],gs=br[Fs+1],Es=bn.within(br[Fs],br[Fs+1],kr),Hs=br[Fs+wi];let xo=Hs;for(const wo of Es){const ga=wo*bs;br[ga+2]>xn&&(xo+=br[ga+wi])}if(xo>Hs&&xo>=Rr){let wo,ga=wr*Hs,_a=gs*Hs,tl=-1;const Lo=((Fs/bs|0)<<5)+(xn+1)+this.points.length;for(const za of Es){const ul=za*bs;if(br[ul+2]<=xn)continue;br[ul+2]=xn;const Ba=br[ul+wi];ga+=br[ul]*Ba,_a+=br[ul+1]*Ba,br[ul+4]=Lo,yr&&(wo||(wo=this._map(br,Fs,!0),tl=this.clusterProps.length,this.clusterProps.push(wo)),yr(wo,this._map(br,ul)))}br[Fs+4]=Lo,jr.push(ga/xo,_a/xo,1/0,Lo,-1,xo),yr&&jr.push(tl)}else{for(let wo=0;wo<bs;wo++)jr.push(br[Fs+wo]);if(xo>1)for(const wo of Es){const ga=wo*bs;if(!(br[ga+2]<=xn)){br[ga+2]=xn;for(let _a=0;_a<bs;_a++)jr.push(br[ga+_a])}}}}return jr}_getOriginId(bn){return bn-this.points.length>>5}_getOriginZoom(bn){return(bn-this.points.length)%32}
219_map(bn,xn,Yn){if(bn[xn+wi]>1){const Rr=this.clusterProps[bn[xn+Zi]];return Yn?Object.assign({},Rr):Rr}const or=this.points[bn[xn+os]].properties,yr=this.options.map(or);return Yn&&yr===or?Object.assign({},yr):yr}}function Hi(Zn,bn,xn){return{type:"Feature",id:Zn[bn+os],properties:vn(Zn,bn,xn),geometry:{type:"Point",coordinates:[(Yn=Zn[bn],360*(Yn-.5)),hr(Zn[bn+1])]}};var Yn}function vn(Zn,bn,xn){const Yn=Zn[bn+wi],or=Yn>=1e4?`${Math.round(Yn/1e3)}k`:Yn>=1e3?Math.round(Yn/100)/10+"k":Yn,yr=Zn[bn+Zi],Rr=yr===-1?{}:Object.assign({},xn[yr]);return Object.assign(Rr,{cluster:!0,cluster_id:Zn[bn+os],point_count:Yn,point_count_abbreviated:or})}function zn(Zn){return Zn/360+.5}function ji(Zn){const bn=Math.sin(Zn*Math.PI/180),xn=.5-.25*Math.log((1+bn)/(1-bn))/Math.PI;return xn<0?0:xn>1?1:xn}function hr(Zn){const bn=(180-360*Zn)*Math.PI/180;return 360*Math.atan(Math.exp(bn))/Math.PI-90}function Ri(Zn,bn,xn,Yn){for(var or,yr=Yn,Rr=xn-bn>>1,kr=xn-bn,br=Zn[bn],jr=Zn[bn+1],bs=Zn[xn],Fs=Zn[xn+1],wr=bn+3;wr<xn;wr+=3){var gs=xs(Zn[wr],Zn[wr+1],br,jr,bs,Fs);if(gs>yr)or=wr,yr=gs;else if(gs===yr){var Es=Math.abs(wr-Rr);Es<kr&&(or=wr,kr=Es)}}yr>Yn&&(or-bn>3&&Ri(Zn,bn,or,Yn),Zn[or+2]=yr,xn-or>3&&Ri(Zn,or,xn,Yn))}function xs(Zn,bn,xn,Yn,or,yr){var Rr=or-xn,kr=yr-Yn;if(Rr!==0||kr!==0){var br=((Zn-xn)*Rr+(bn-Yn)*kr)/(Rr*Rr+kr*kr);br>1?(xn=or,Yn=yr):br>0&&(xn+=Rr*br,Yn+=kr*br)}return(Rr=Zn-xn)*Rr+(kr=bn-Yn)*kr}function Ue(Zn,bn,xn,Yn){var or={id:Zn===void 0?null:Zn,type:bn,geometry:xn,tags:Yn,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(yr){var Rr=yr.geometry,kr=yr.type;if(kr==="Point"||kr==="MultiPoint"||kr==="LineString")bi(yr,Rr);else if(kr==="Polygon"||kr==="MultiLineString")for(var br=0;br<Rr.length;br++)bi(yr,Rr[br]);else if(kr==="MultiPolygon")for(br=0;br<Rr.length;br++)for(var jr=0;jr<Rr[br].length;jr++)bi(yr,Rr[br][jr])}(or),or}function bi(Zn,bn){for(var xn=0;xn<bn.length;xn+=3)Zn.minX=Math.min(Zn.minX,bn[xn]),Zn.minY=Math.min(Zn.minY,bn[xn+1]),Zn.maxX=Math.max(Zn.maxX,bn[xn]),Zn.maxY=Math.max(Zn.maxY,bn[xn+1])}function Ii(Zn,bn,xn,Yn){if(bn.geometry){var or=bn.geometry.coordinates,yr=bn.geometry.type,Rr=Math.pow(xn.tolerance/((1<<xn.maxZoom)*xn.extent),2),kr=[],br=bn.id;if(xn.promoteId?br=bn.properties[xn.promoteId]:xn.generateId&&(br=Yn||0),yr==="Point")Ji(or,kr);else if(yr==="MultiPoint")for(var jr=0;jr<or.length;jr++)Ji(or[jr],kr);else if(yr==="LineString")Mn(or,kr,Rr,!1);else if(yr==="MultiLineString"){if(xn.lineMetrics){for(jr=0;jr<or.length;jr++)Mn(or[jr],kr=[],Rr,!1),Zn.push(Ue(br,"LineString",kr,bn.properties));return}En(or,kr,Rr,!1)}else if(yr==="Polygon")En(or,kr,Rr,!0);else{if(yr!=="MultiPolygon"){if(yr==="GeometryCollection"){for(jr=0;jr<bn.geometry.geometries.length;jr++)Ii(Zn,{id:br,geometry:bn.geometry.geometries[jr],properties:bn.properties},xn,Yn);return}throw new Error("Input data is not a valid GeoJSON object.")}for(jr=0;jr<or.length;jr++){var bs=[];En(or[jr],bs,Rr,!0),kr.push(bs)}}Zn.push(Ue(br,yr,kr,bn.properties))}}function Ji(Zn,bn){bn.push(Fn(Zn[0])),bn.push(Cr(Zn[1])),bn.push(0)}function Mn(Zn,bn,xn,Yn){for(var or,yr,Rr=0,kr=0;kr<Zn.length;kr++){var br=Fn(Zn[kr][0]),jr=Cr(Zn[kr][1]);bn.push(br),bn.push(jr),bn.push(0),kr>0&&(Rr+=Yn?(or*jr-br*yr)/2:Math.sqrt(Math.pow(br-or,2)+Math.pow(jr-yr,2))),or=br,yr=jr}var bs=bn.length-3;bn[2]=1,Ri(bn,0,bs,xn),bn[bs+2]=1,bn.size=Math.abs(Rr),bn.start=0,bn.end=bn.size}function En(Zn,bn,xn,Yn){for(var or=0;or<Zn.length;or++){var yr=[];Mn(Zn[or],yr,xn,Yn),bn.push(yr)}}function Fn(Zn){return Zn/360+.5}function Cr(Zn){var bn=Math.sin(Zn*Math.PI/180),xn=.5-.25*Math.log((1+bn)/(1-bn))/Math.PI;return xn<0?0:xn>1?1:xn}function _r(Zn,bn,xn,Yn,or,yr,Rr,kr){if(Yn/=bn,yr>=(xn/=bn)&&Rr<Yn)return Zn;if(Rr<xn||yr>=Yn)return null;for(var br=[],jr=0;jr<Zn.length;jr++){var bs=Zn[jr],Fs=bs.geometry,wr=bs.type,gs=or===0?bs.minX:bs.minY,Es=or===0?bs.maxX:bs.maxY;if(gs>=xn&&Es<Yn)br.push(bs);else if(!(Es<xn||gs>=Yn)){var Hs=[];if(wr==="Point"||wr==="MultiPoint")Or(Fs,Hs,xn,Yn,or);else if(wr==="LineString")_s(Fs,Hs,xn,Yn,or,!1,kr.lineMetrics);else if(wr==="MultiLineString")Ls(Fs,Hs,xn,Yn,or,!1);else if(wr==="Polygon")Ls(Fs,Hs,xn,Yn,or,!0);else if(wr==="MultiPolygon")for(var xo=0;xo<Fs.length;xo++){var wo=[];Ls(Fs[xo],wo,xn,Yn,or,!0),wo.length&&Hs.push(wo)}if(Hs.length){if(kr.lineMetrics&&wr==="LineString"){for(xo=0;xo<Hs.length;xo++)br.push(Ue(bs.id,wr,Hs[xo],bs.tags));continue}wr!=="LineString"&&wr!=="MultiLineString"||(Hs.length===1?(wr="LineString",Hs=Hs[0]):wr="MultiLineString"),wr!=="Point"&&wr!=="MultiPoint"||(wr=Hs.length===3?"Point":"MultiPoint"),br.push(Ue(bs.id,wr,Hs,bs.tags))}}}return br.length?br:null}function Or(Zn,bn,xn,Yn,or){for(var yr=0;yr<Zn.length;yr+=3){var Rr=Zn[yr+or];Rr>=xn&&Rr<=Yn&&(bn.push(Zn[yr]),bn.push(Zn[yr+1]),bn.push(Zn[yr+2]))}}function _s(Zn,bn,xn,Yn,or,yr,Rr){for(var kr,br,jr=so(Zn),bs=or===0?As:no,Fs=
vendor: 4,671 bytes, line 219
219Zn.start,wr=0;wr<Zn.length-3;wr+=3){var gs=Zn[wr],Es=Zn[wr+1],Hs=Zn[wr+2],xo=Zn[wr+3],wo=Zn[wr+4],ga=or===0?gs:Es,_a=or===0?xo:wo,tl=!1;Rr&&(kr=Math.sqrt(Math.pow(gs-xo,2)+Math.pow(Es-wo,2))),ga<xn?_a>xn&&(br=bs(jr,gs,Es,xo,wo,xn),Rr&&(jr.start=Fs+kr*br)):ga>Yn?_a<Yn&&(br=bs(jr,gs,Es,xo,wo,Yn),Rr&&(jr.start=Fs+kr*br)):go(jr,gs,Es,Hs),_a<xn&&ga>=xn&&(br=bs(jr,gs,Es,xo,wo,xn),tl=!0),_a>Yn&&ga<=Yn&&(br=bs(jr,gs,Es,xo,wo,Yn),tl=!0),!yr&&tl&&(Rr&&(jr.end=Fs+kr*br),bn.push(jr),jr=so(Zn)),Rr&&(Fs+=kr)}var Lo=Zn.length-3;gs=Zn[Lo],Es=Zn[Lo+1],Hs=Zn[Lo+2],(ga=or===0?gs:Es)>=xn&&ga<=Yn&&go(jr,gs,Es,Hs),Lo=jr.length-3,yr&&Lo>=3&&(jr[Lo]!==jr[0]||jr[Lo+1]!==jr[1])&&go(jr,jr[0],jr[1],jr[2]),jr.length&&bn.push(jr)}function so(Zn){var bn=[];return bn.size=Zn.size,bn.start=Zn.start,bn.end=Zn.end,bn}function Ls(Zn,bn,xn,Yn,or,yr){for(var Rr=0;Rr<Zn.length;Rr++)_s(Zn[Rr],bn,xn,Yn,or,yr,!1)}function go(Zn,bn,xn,Yn){Zn.push(bn),Zn.push(xn),Zn.push(Yn)}function As(Zn,bn,xn,Yn,or,yr){var Rr=(yr-bn)/(Yn-bn);return Zn.push(yr),Zn.push(xn+(or-xn)*Rr),Zn.push(1),Rr}function no(Zn,bn,xn,Yn,or,yr){var Rr=(yr-xn)/(or-xn);return Zn.push(bn+(Yn-bn)*Rr),Zn.push(yr),Zn.push(1),Rr}function Ws(Zn,bn){for(var xn=[],Yn=0;Yn<Zn.length;Yn++){var or,yr=Zn[Yn],Rr=yr.type;if(Rr==="Point"||Rr==="MultiPoint"||Rr==="LineString")or=ro(yr.geometry,bn);else if(Rr==="MultiLineString"||Rr==="Polygon"){or=[];for(var kr=0;kr<yr.geometry.length;kr++)or.push(ro(yr.geometry[kr],bn))}else if(Rr==="MultiPolygon")for(or=[],kr=0;kr<yr.geometry.length;kr++){for(var br=[],jr=0;jr<yr.geometry[kr].length;jr++)br.push(ro(yr.geometry[kr][jr],bn));or.push(br)}xn.push(Ue(yr.id,Rr,or,yr.tags))}return xn}function ro(Zn,bn){var xn=[];xn.size=Zn.size,Zn.start!==void 0&&(xn.start=Zn.start,xn.end=Zn.end);for(var Yn=0;Yn<Zn.length;Yn+=3)xn.push(Zn[Yn]+bn,Zn[Yn+1],Zn[Yn+2]);return xn}function qs(Zn,bn){if(Zn.transformed)return Zn;var xn,Yn,or,yr=1<<Zn.z,Rr=Zn.x,kr=Zn.y;for(xn=0;xn<Zn.features.length;xn++){var br=Zn.features[xn],jr=br.geometry,bs=br.type;if(br.geometry=[],bs===1)for(Yn=0;Yn<jr.length;Yn+=2)br.geometry.push(hs(jr[Yn],jr[Yn+1],bn,yr,Rr,kr));else for(Yn=0;Yn<jr.length;Yn++){var Fs=[];for(or=0;or<jr[Yn].length;or+=2)Fs.push(hs(jr[Yn][or],jr[Yn][or+1],bn,yr,Rr,kr));br.geometry.push(Fs)}}return Zn.transformed=!0,Zn}function hs(Zn,bn,xn,Yn,or,yr){return[Math.round(xn*(Zn*Yn-or)),Math.round(xn*(bn*Yn-yr))]}function Nr(Zn,bn,xn,Yn,or){for(var yr=bn===or.maxZoom?0:or.tolerance/((1<<bn)*or.extent),Rr={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:xn,y:Yn,z:bn,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},kr=0;kr<Zn.length;kr++){Rr.numFeatures++,ea(Rr,Zn[kr],yr,or);var br=Zn[kr].minX,jr=Zn[kr].minY,bs=Zn[kr].maxX,Fs=Zn[kr].maxY;br<Rr.minX&&(Rr.minX=br),jr<Rr.minY&&(Rr.minY=jr),bs>Rr.maxX&&(Rr.maxX=bs),Fs>Rr.maxY&&(Rr.maxY=Fs)}return Rr}function ea(Zn,bn,xn,Yn){var or=bn.geometry,yr=bn.type,Rr=[];if(yr==="Point"||yr==="MultiPoint")for(var kr=0;kr<or.length;kr+=3)Rr.push(or[kr]),Rr.push(or[kr+1]),Zn.numPoints++,Zn.numSimplified++;else if(yr==="LineString")$a(Rr,or,Zn,xn,!1,!1);else if(yr==="MultiLineString"||yr==="Polygon")for(kr=0;kr<or.length;kr++)$a(Rr,or[kr],Zn,xn,yr==="Polygon",kr===0);else if(yr==="MultiPolygon")for(var br=0;br<or.length;br++){var jr=or[br];for(kr=0;kr<jr.length;kr++)$a(Rr,jr[kr],Zn,xn,!0,kr===0)}if(Rr.length){var bs=bn.tags||null;if(yr==="LineString"&&Yn.lineMetrics){for(var Fs in bs={},bn.tags)bs[Fs]=bn.tags[Fs];bs.mapbox_clip_start=or.start/or.size,bs.mapbox_clip_end=or.end/or.size}var wr={geometry:Rr,type:yr==="Polygon"||yr==="MultiPolygon"?3:yr==="LineString"||yr==="MultiLineString"?2:1,tags:bs};bn.id!==null&&(wr.id=bn.id),Zn.features.push(wr)}}function $a(Zn,bn,xn,Yn,or,yr){var Rr=Yn*Yn;if(Yn>0&&bn.size<(or?Rr:Yn))xn.numPoints+=bn.length/3;else{for(var kr=[],br=0;br<bn.length;br+=3)(Yn===0||bn[br+2]>Rr)&&(xn.numSimplified++,kr.push(bn[br]),kr.push(bn[br+1])),xn.numPoints++;or&&function(jr,bs){for(var Fs=0,wr=0,gs=jr.length,Es=gs-2;wr<gs;Es=wr,wr+=2)Fs+=(jr[wr]-jr[Es])*(jr[wr+1]+jr[Es+1]);if(Fs>0===bs)for(wr=0,gs=jr.length;wr<gs/2;wr+=2){var Hs=jr[wr],xo=jr[wr+1];jr[wr]=jr[gs-2-wr],jr[wr+1]=jr[gs-1-wr],jr[gs-2-wr]=Hs,jr[gs-1-wr]=xo}}(kr,yr),Zn.push(kr)}}function ao(Zn,bn){var xn=(bn=this.options=function(or,yr){for(var Rr in yr)or[Rr]=yr[Rr];return or}(Object.create(this.options),bn)).debug;if(xn&&console.time("preprocess data"),bn.maxZoom<0||bn.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(bn.promoteId&&bn.generateId)throw new Error("promoteId and generateId cannot be used together.");var Yn=function(or,yr){var Rr=[];if(or.type==="FeatureCollection")for(var kr=0;kr<or.features.length;
vendor: 6,685 bytes, line 219
219kr++)Ii(Rr,or.features[kr],yr,kr);else Ii(Rr,or.type==="Feature"?or:{geometry:or},yr);return Rr}(Zn,bn);this.tiles={},this.tileCoords=[],xn&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",bn.indexMaxZoom,bn.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Yn=function(or,yr){var Rr=yr.buffer/yr.extent,kr=or,br=_r(or,1,-1-Rr,Rr,0,-1,2,yr),jr=_r(or,1,1-Rr,2+Rr,0,-1,2,yr);return(br||jr)&&(kr=_r(or,1,-Rr,1+Rr,0,-1,2,yr)||[],br&&(kr=Ws(br,1).concat(kr)),jr&&(kr=kr.concat(Ws(jr,-1)))),kr}(Yn,bn),Yn.length&&this.splitTile(Yn,0,0,0),xn&&(Yn.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function Do(Zn,bn,xn){return 32*((1<<Zn)*xn+bn)+Zn}function el(Zn,bn){const xn=Zn.tileID.canonical;if(!this._geoJSONIndex)return bn(null,null);const Yn=this._geoJSONIndex.getTile(xn.z,xn.x,xn.y);if(!Yn)return bn(null,null);const or=new class{constructor(Rr){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=Ie.EXTENT,this.length=Rr.length,this._features=Rr}feature(Rr){return new class{constructor(kr){this._feature=kr,this.extent=Ie.EXTENT,this.type=kr.type,this.properties=kr.tags,"id"in kr&&!isNaN(kr.id)&&(this.id=parseInt(kr.id,10))}loadGeometry(){if(this._feature.type===1){const kr=[];for(const br of this._feature.geometry)kr.push([new Ie.Point(br[0],br[1])]);return kr}{const kr=[];for(const br of this._feature.geometry){const jr=[];for(const bs of br)jr.push(new Ie.Point(bs[0],bs[1]));kr.push(jr)}return kr}}toGeoJSON(kr,br,jr){return oi.call(this,kr,br,jr)}}(this._features[Rr])}}(Yn.features);let yr=xr(or);yr.byteOffset===0&&yr.byteLength===yr.buffer.byteLength||(yr=new Uint8Array(yr)),bn(null,{vectorTile:or,rawData:yr.buffer})}ao.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ao.prototype.splitTile=function(Zn,bn,xn,Yn,or,yr,Rr){for(var kr=[Zn,bn,xn,Yn],br=this.options,jr=br.debug;kr.length;){Yn=kr.pop(),xn=kr.pop(),bn=kr.pop(),Zn=kr.pop();var bs=1<<bn,Fs=Do(bn,xn,Yn),wr=this.tiles[Fs];if(!wr&&(jr>1&&console.time("creation"),wr=this.tiles[Fs]=Nr(Zn,bn,xn,Yn,br),this.tileCoords.push({z:bn,x:xn,y:Yn}),jr)){jr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",bn,xn,Yn,wr.numFeatures,wr.numPoints,wr.numSimplified),console.timeEnd("creation"));var gs="z"+bn;this.stats[gs]=(this.stats[gs]||0)+1,this.total++}if(wr.source=Zn,or){if(bn===br.maxZoom||bn===or)continue;var Es=1<<or-bn;if(xn!==Math.floor(yr/Es)||Yn!==Math.floor(Rr/Es))continue}else if(bn===br.indexMaxZoom||wr.numPoints<=br.indexMaxPoints)continue;if(wr.source=null,Zn.length!==0){jr>1&&console.time("clipping");var Hs,xo,wo,ga,_a,tl,Lo=.5*br.buffer/br.extent,za=.5-Lo,ul=.5+Lo,Ba=1+Lo;Hs=xo=wo=ga=null,_a=_r(Zn,bs,xn-Lo,xn+ul,0,wr.minX,wr.maxX,br),tl=_r(Zn,bs,xn+za,xn+Ba,0,wr.minX,wr.maxX,br),Zn=null,_a&&(Hs=_r(_a,bs,Yn-Lo,Yn+ul,1,wr.minY,wr.maxY,br),xo=_r(_a,bs,Yn+za,Yn+Ba,1,wr.minY,wr.maxY,br),_a=null),tl&&(wo=_r(tl,bs,Yn-Lo,Yn+ul,1,wr.minY,wr.maxY,br),ga=_r(tl,bs,Yn+za,Yn+Ba,1,wr.minY,wr.maxY,br),tl=null),jr>1&&console.timeEnd("clipping"),kr.push(Hs||[],bn+1,2*xn,2*Yn),kr.push(xo||[],bn+1,2*xn,2*Yn+1),kr.push(wo||[],bn+1,2*xn+1,2*Yn),kr.push(ga||[],bn+1,2*xn+1,2*Yn+1)}}},ao.prototype.getTile=function(Zn,bn,xn){var Yn=this.options,or=Yn.extent,yr=Yn.debug;if(Zn<0||Zn>24)return null;var Rr=1<<Zn,kr=Do(Zn,bn=(bn%Rr+Rr)%Rr,xn);if(this.tiles[kr])return qs(this.tiles[kr],or);yr>1&&console.log("drilling down to z%d-%d-%d",Zn,bn,xn);for(var br,jr=Zn,bs=bn,Fs=xn;!br&&jr>0;)jr--,bs=Math.floor(bs/2),Fs=Math.floor(Fs/2),br=this.tiles[Do(jr,bs,Fs)];return br&&br.source?(yr>1&&console.log("found parent tile z%d-%d-%d",jr,bs,Fs),yr>1&&console.time("drilling down"),this.splitTile(br.source,jr,bs,Fs,Zn,bn,xn),yr>1&&console.timeEnd("drilling down"),this.tiles[kr]?qs(this.tiles[kr],or):null):null};class Fa extends Ie.VectorTileWorkerSource{constructor(bn,xn,Yn,or,yr){super(bn,xn,Yn,or,el),yr&&(this.loadGeoJSON=yr)}loadData(bn,xn){const Yn=bn&&bn.request,or=Yn&&Yn.collectResourceTiming;this.loadGeoJSON(bn,(yr,Rr)=>{if(yr||!Rr)return xn(yr);if(typeof Rr!="object")return xn(new Error(`Input data given to '${bn.source}' is not a valid GeoJSON object.`));{Ai(Rr,!0);try{if(bn.filter){const br=Ie.createExpression(bn.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(br.result==="error")throw new Error(br.value.map(bs=>`${bs.key}: ${bs.message}`).join(", "));Rr={type:"FeatureCollection",features:Rr.features.filter(bs=>br.value.evaluate({zoom:0},bs))}}this._geoJSONIndex=bn.cluster?new Qi(function({superclusterOptions:br,clusterProperties:jr}){if(!jr||!br)return br;const bs={},Fs={},wr={accumulated:null,zoom:0},gs={properties:null},Es=Object.keys(jr);for(const Hs of Es){const[xo,wo]=jr[Hs],ga=Ie.createExpression(wo),_a=Ie.createExpression(typeof xo=="string"?[xo,["accumulated"],["get",Hs]]:xo);bs[Hs]=ga.value,Fs[Hs]=_a.value}return br.map=Hs=>{gs.properties=Hs;const xo={};for(const wo of Es)xo[wo]=bs[wo].evaluate(wr,gs);return xo},br.reduce=(Hs,xo)=>{gs.properties=xo;for(const wo of Es)wr.accumulated=Hs[wo],Hs[wo]=Fs[wo].evaluate(wr,gs)},br}(bn)).load(Rr.features):function(br,jr){return new ao(br,jr)}(Rr,bn.geojsonVtOptions)}catch(br){return xn(br)}this.loaded={};const kr={};if(or){const br=Ie.getPerformanceMeasurement(Yn);br&&(kr.resourceTiming={},kr.resourceTiming[bn.source]=JSON.parse(JSON.stringify(br)))}xn(null,kr)}})}reloadTile(bn,xn){const Yn=this.loaded;return Yn&&Yn[bn.uid]?super.reloadTile(bn,xn):this.loadTile(bn,xn)}loadGeoJSON(bn,xn){if(bn.request)Ie.getJSON(bn.request,xn);else{if(typeof bn.data!="string")return xn(new Error(`Input data given to '${bn.source}' is not a valid GeoJSON object.`));try{return xn(null,JSON.parse(bn.data))}catch{return xn(new Error(`Input data given to '${bn.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(bn,xn){try{xn(null,this._geoJSONIndex.getClusterExpansionZoom(bn.clusterId))}catch(Yn){xn(Yn)}}getClusterChildren(bn,xn){try{xn(null,this._geoJSONIndex.getChildren(bn.clusterId))}catch(Yn){xn(Yn)}}getClusterLeaves(bn,xn){try{xn(null,this._geoJSONIndex.getLeaves(bn.clusterId,bn.limit,bn.offset))}catch(Yn){xn(Yn)}}}class cl{constructor(bn){this.self=bn,this.actor=new Ie.Actor(bn,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=Ie.getProjection({name:"mercator"}),this.workerSourceTypes={vector:Ie.VectorTileWorkerSource,geojson:F
219a},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(xn,Yn)=>{if(this.workerSourceTypes[xn])throw new Error(`Worker source with name "${xn}" already registered.`);this.workerSourceTypes[xn]=Yn},this.self.registerRTLTextPlugin=xn=>{if(Ie.plugin.isParsed())throw new Error("RTL text plugin already registered.");Ie.plugin.applyArabicShaping=xn.applyArabicShaping,Ie.plugin.processBidirectionalText=xn.processBidirectionalText,Ie.plugin.processStyledBidirectionalText=xn.processStyledBidirectionalText}}clearCaches(bn,xn,Yn){delete this.layerIndexes[bn],delete this.availableImages[bn],delete this.workerSources[bn],delete this.demWorkerSources[bn],Yn()}checkIfReady(bn,xn,Yn){Yn()}setReferrer(bn,xn){this.referrer=xn}spriteLoaded(bn,xn){this.isSpriteLoaded[bn]=xn;for(const Yn in this.workerSources[bn]){const or=this.workerSources[bn][Yn];for(const yr in or)or[yr]instanceof Ie.VectorTileWorkerSource&&(or[yr].isSpriteLoaded=xn,or[yr].fire(new Ie.Event("isSpriteLoaded")))}}setImages(bn,xn,Yn){this.availableImages[bn]=xn;for(const or in this.workerSources[bn]){const yr=this.workerSources[bn][or];for(const Rr in yr)yr[Rr].availableImages=xn}Yn()}enableTerrain(bn,xn,Yn){this.terrain=xn,Yn()}setProjection(bn,xn){this.projections[bn]=Ie.getProjection(xn)}setLayers(bn,xn,Yn){this.getLayerIndex(bn).replace(xn),Yn()}updateLayers(bn,xn,Yn){this.getLayerIndex(bn).update(xn.layers,xn.removedIds),Yn()}loadTile(bn,xn,Yn){const or=this.enableTerrain?Ie.extend({enableTerrain:this.terrain},xn):xn;or.projection=this.projections[bn]||this.defaultProjection,this.getWorkerSource(bn,xn.type,xn.source).loadTile(or,Yn)}loadDEMTile(bn,xn,Yn){const or=this.enableTerrain?Ie.extend({buildQuadTree:this.terrain},xn):xn;this.getDEMWorkerSource(bn,xn.source).loadTile(or,Yn)}reloadTile(bn,xn,Yn){const or=this.enableTerrain?Ie.extend({enableTerrain:this.terrain},xn):xn;or.projection=this.projections[bn]||this.defaultProjection,this.getWorkerSource(bn,xn.type,xn.source).reloadTile(or,Yn)}abortTile(bn,xn,Yn){this.getWorkerSource(bn,xn.type,xn.source).abortTile(xn,Yn)}removeTile(bn,xn,Yn){this.getWorkerSource(bn,xn.type,xn.source).removeTile(xn,Yn)}removeSource(bn,xn,Yn){if(!this.workerSources[bn]||!this.workerSources[bn][xn.type]||!this.workerSources[bn][xn.type][xn.source])return;const or=this.workerSources[bn][xn.type][xn.source];delete this.workerSources[bn][xn.type][xn.source],or.removeSource!==void 0?or.removeSource(xn,Yn):Yn()}loadWorkerSource(bn,xn,Yn){try{this.self.importScripts(xn.url),Yn()}catch(or){Yn(or.toString())}}syncRTLPluginState(bn,xn,Yn){try{Ie.plugin.setState(xn);const or=Ie.plugin.getPluginURL();if(Ie.plugin.isLoaded()&&!Ie.plugin.isParsed()&&or!=null){this.self.importScripts(or);const yr=Ie.plugin.isParsed();Yn(yr?void 0:new Error(`RTL Text Plugin failed to import scripts from ${or}`),yr)}}catch(or){Yn(or.toString())}}getAvailableImages(bn){let xn=this.availableImages[bn];return xn||(xn=[]),xn}getLayerIndex(bn){let xn=this.layerIndexes[bn];return xn||(xn=this.layerIndexes[bn]=new $e),xn}getWorkerSource(bn,xn,Yn){if(this.workerSources[bn]||(this.workerSources[bn]={}),this.workerSources[bn][xn]||(this.workerSources[bn][xn]={}),!this.workerSources[bn][xn][Yn]){const or={send:(yr,Rr,kr,br,jr,bs)=>{this.actor.send(yr,Rr,kr,bn,jr,bs)},scheduler:this.actor.scheduler};this.workerSources[bn][xn][Yn]=new this.workerSourceTypes[xn](or,this.getLayerIndex(bn),this.getAvailableImages(bn),this.isSpriteLoaded[bn])}return this.workerSources[bn][xn][Yn]}getDEMWorkerSource(bn,xn){return this.demWorkerSources[bn]||(this.demWorkerSources[bn]={}),this.demWorkerSources[bn][xn]||(this.demWorkerSources[bn][xn]=new qe),this.demWorkerSources[bn][xn]}enforceCacheSizeLimit(bn,xn){Ie.enforceCacheSizeLimit(xn)}getWorkerPerformanceMetrics(bn,xn,Yn){Yn(void 0,void 0)}}return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope&&(self.worker=new cl(self)),cl}),Fe(["./shared"],function(Ie){function je(Ze,Ne){if(Array.isArray(Ze)){if(!Array.isArray(Ne)||Ze.length!==Ne.length)return!1;for(let Ge=0;Ge<Ze.length;Ge++)if(!je(Ze[Ge],Ne[Ge]))return!1;return!0}if(typeof Ze=="object"&&Ze!==null&&Ne!==null){if(typeof Ne!="object"||Object.keys(Ze).length!==Object.keys(Ne).length)return!1;for(const Ge in Ze)if(!je(Ze[Ge],Ne[Ge]))return!1;return!0}return Ze===Ne}var Ke=$e;function $e(Ze){return!function(Ne){return typeof window>"u"||typeof document>"u"?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var Qe,ai,ui=new Blob([""],{type:"text/javascript"}),Si=URL.createObjectURL(ui);try{ai=new Worker(Si),Qe=!0}catch{Qe=!1}return ai&&ai.terminate(),URL.revokeObjectURL(Si),Qe}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var Qe=document.createElement("canvas");Qe.width=Qe.height=1;var ai=Qe.getContext("2d");if(!ai)return!1;var ui=ai.getImageData(0,0,1,1);return ui&&ui.width===Qe.width}()?(qe[Ge=Ne&&Ne.failIfMajorPerformanceCaveat]===void 0&&(qe[Ge]=function(Qe){var ai,ui=function(Si){var Mi=document.createElement("canvas"),Fi=Object.create($e.webGLContextAttributes);return Fi.failIfMajorPerformanceCaveat=Si,Mi.getContext("webgl",Fi)||Mi.getContext("experimental-webgl",Fi)}(Qe);if(!ui)return!1;try{ai=ui.createShader(ui.VERTEX_SHADER)}catch{return!1}return!(!ai||ui.isContextLost())&&(ui.shaderSource(ai,"void main() {}"),ui.compileShader(ai),ui.getShaderParameter(ai,ui.COMPILE_STATUS)===!0)}(Ge)),qe[Ge]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray supp
219ort":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var Ge}(Ze)}var qe={};function ci(Ze,Ne,Ge){const Qe=Ie.window.document.createElement(Ze);return Ne!==void 0&&(Qe.className=Ne),Ge&&Ge.appendChild(Qe),Qe}function gi(Ze,Ne,Ge){const Qe=Ie.window.document.createElementNS("http://www.w3.org/2000/svg",Ze);for(const ai of Object.keys(Ne))Qe.setAttributeNS(null,ai,Ne[ai]);return Ge&&Ge.appendChild(Qe),Qe}$e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const Ai=Ie.window.document&&Ie.window.document.documentElement.style,oi=Ai&&Ai.userSelect!==void 0?"userSelect":"WebkitUserSelect";let ii;function hi(){Ai&&oi&&(ii=Ai[oi],Ai[oi]="none")}function Ei(){Ai&&oi&&(Ai[oi]=ii)}function Li(Ze){Ze.preventDefault(),Ze.stopPropagation(),Ie.window.removeEventListener("click",Li,!0)}function Di(){Ie.window.addEventListener("click",Li,!0),Ie.window.setTimeout(()=>{Ie.window.removeEventListener("click",Li,!0)},0)}function zi(Ze,Ne){const Ge=Ze.getBoundingClientRect();return fi(Ze,Ge,Ne)}function an(Ze,Ne){const Ge=Ze.getBoundingClientRect(),Qe=[];for(let ai=0;ai<Ne.length;ai++)Qe.push(fi(Ze,Ge,Ne[ai]));return Qe}function Je(Ze){return Ie.window.InstallTrigger!==void 0&&Ze.button===2&&Ze.ctrlKey&&Ie.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:Ze.button}function fi(Ze,Ne,Ge){const Qe=Ze.offsetWidth===Ne.width?1:Ze.offsetWidth/Ne.width;return new Ie.Point((Ge.clientX-Ne.left)*Qe,(Ge.clientY-Ne.top)*Qe)}function Gi(Ze,Ne){var Ge=Ne[0],Qe=Ne[1],ai=Ne[2],ui=Ne[3],Si=Ge*ui-ai*Qe;return Si?(Ze[0]=ui*(Si=1/Si),Ze[1]=-Qe*Si,Ze[2]=-ai*Si,Ze[3]=Ge*Si,Ze):null}function fn(Ze){const{userImage:Ne}=Ze;return!!(Ne&&Ne.render&&Ne.render())&&(Ze.data.replace(new Uint8Array(Ne.data.buffer)),!0)}class cn extends Ie.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new Ie.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(Ne){if(this.loaded!==Ne&&(this.loaded=Ne,Ne)){for(const{ids:Ge,callback:Qe}of this.requestors)this._notify(Ge,Qe);this.requestors=[]}}hasImage(Ne){return!!this.getImage(Ne)}getImage(Ne){return this.images[Ne]}addImage(Ne,Ge){this._validate(Ne,Ge)&&(this.images[Ne]=Ge)}_validate(Ne,Ge){let Qe=!0;return this._validateStretch(Ge.stretchX,Ge.data&&Ge.data.width)||(this.fire(new Ie.ErrorEvent(new Error(`Image "${Ne}" has invalid "stretchX" value`))),Qe=!1),this._validateStretch(Ge.stretchY,Ge.data&&Ge.data.height)||(this.fire(new Ie.ErrorEvent(new Error(`Image "${Ne}" has invalid "stretchY" value`))),Qe=!1),this._validateContent(Ge.content,Ge)||(this.fire(new Ie.ErrorEvent(new Error(`Image "${Ne}" has invalid "content" value`))),Qe=!1),Qe}_validateStretch(Ne,Ge){if(!Ne)return!0;let Qe=0;for(const ai of Ne){if(ai[0]<Qe||ai[1]<ai[0]||Ge<ai[1])return!1;Qe=ai[1]}return!0}_validateContent(Ne,Ge){return!(Ne&&(Ne.length!==4||Ne[0]<0||Ge.data.width<Ne[0]||Ne[1]<0||Ge.data.height<Ne[1]||Ne[2]<0||Ge.data.width<Ne[2]||Ne[3]<0||Ge.data.height<Ne[3]||Ne[2]<Ne[0]||Ne[3]<Ne[1]))}updateImage(Ne,Ge){Ge.version=this.images[Ne].version+1,this.images[Ne]=Ge,this.updatedImages[Ne]=!0}removeImage(Ne){const Ge=this.images[Ne];delete this.images[Ne],delete this.patterns[Ne],Ge.userImage&&Ge.userImage.onRemove&&Ge.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(Ne,Ge){let Qe=!0;if(!this.isLoaded())for(const ai of Ne)this.images[ai]||(Qe=!1);this.isLoaded()||Qe?this._notify(Ne,Ge):this.requestors.push({ids:Ne,callback:Ge})}_notify(Ne,Ge){const Qe={};for(const ai of Ne){this.images[ai]||this.fire(new Ie.Event("styleimagemissing",{id:ai}));const ui=this.images[ai];ui?Qe[ai]={data:ui.data.clone(),pixelRatio:ui.pixelRatio,sdf:ui.sdf,version:ui.version,stretchX:ui.stretchX,stretchY:ui.stretchY,content:ui.content,hasRenderCallback:!!(ui.userImage&&ui.userImage.render)}:Ie.warnOnce(`Image "${ai}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}Ge(null,Qe)}getPixelSize(){const{width:Ne,height:Ge}=this.atlasImage;return{width:Ne,height:Ge}}getPattern(Ne){const Ge=this.patterns[Ne],Qe=this.getImage(Ne);if(!Qe)return null;if(Ge&&Ge.position.version===Qe.version)return Ge.position;if(Ge)Ge.position.version=Qe.version;else{const ai={w:Qe.data.width+2,h:Qe.data.height+2,x:0,y:0},ui=new Ie.ImagePosition(ai,Qe);this.patterns[Ne]={bin:ai,position:ui}}return this._updatePatternAtlas(),this.patterns[Ne].position}bind(Ne){const Ge=Ne.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new Ie.Texture(Ne,this.atlasImage,Ge.RGBA),this.atlasTexture&&this.atlasTexture.bind(Ge.LINEAR,Ge.CLAMP_TO_EDGE)}_updatePatternAtlas(){const Ne=[];for(const ui in this.patterns)Ne.push(this.patterns[ui].bin);const{w:Ge,h:Qe}=Ie.potpack(Ne),ai=this.atlasImage;ai.resize({width:Ge||1,height:Qe||1});for(const ui in this.patterns){const{bin:Si}=this.patterns[ui],Mi=Si.x+1,Fi=Si.y+1,qi=this.images[ui].data,Xi=qi.width,hn=qi.height;Ie.RGBAImage.copy(qi,ai,{x:0,y:0},{x:Mi,y:Fi},{width:Xi,height:hn}),Ie.RGBAImage.copy(qi,ai,{x:0,y:hn-1},{x:Mi,y:Fi-1},{width:Xi,height:1}),Ie.RGBAImage.copy(qi,ai,{x:0,y:0},{x:Mi,y:Fi+hn},{width:Xi,height:1}),Ie.RGBAImage.copy(qi,ai,{x:Xi-1,y:0},{x:Mi-1,y:Fi},{width:1,height:hn}),Ie.RGBAImage.copy(qi,ai,{x:0,y:0},{x:Mi+Xi,y:Fi},{width:1,height:hn})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}
vendor: 5,266 bytes, line 219
219dispatchRenderCallbacks(Ne){for(const Ge of Ne){if(this.callbackDispatchedThisFrame[Ge])continue;this.callbackDispatchedThisFrame[Ge]=!0;const Qe=this.images[Ge];fn(Qe)&&this.updateImage(Ge,Qe)}}}const Tn=new Ie.Properties({anchor:new Ie.DataConstantProperty(Ie.spec.light.anchor),position:new class{constructor(){this.specification=Ie.spec.light.position}possiblyEvaluate(Ze,Ne){return function([Ge,Qe,ai]){const ui=Ie.degToRad(Qe+90),Si=Ie.degToRad(ai);return{x:Ge*Math.cos(ui)*Math.sin(Si),y:Ge*Math.sin(ui)*Math.sin(Si),z:Ge*Math.cos(Si),azimuthal:Qe,polar:ai}}(Ze.expression.evaluate(Ne))}interpolate(Ze,Ne,Ge){return{x:Ie.number(Ze.x,Ne.x,Ge),y:Ie.number(Ze.y,Ne.y,Ge),z:Ie.number(Ze.z,Ne.z,Ge),azimuthal:Ie.number(Ze.azimuthal,Ne.azimuthal,Ge),polar:Ie.number(Ze.polar,Ne.polar,Ge)}}},color:new Ie.DataConstantProperty(Ie.spec.light.color),intensity:new Ie.DataConstantProperty(Ie.spec.light.intensity)});class Sn extends Ie.Evented{constructor(Ne){super(),this._transitionable=new Ie.Transitionable(Tn),this.setLight(Ne),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(Ne,Ge={}){if(!this._validate(Ie.validateLight,Ne,Ge))for(const Qe in Ne){const ai=Ne[Qe];Ie.endsWith(Qe,"-transition")?this._transitionable.setTransition(Qe.slice(0,-11),ai):this._transitionable.setValue(Qe,ai)}}updateTransitions(Ne){this._transitioning=this._transitionable.transitioned(Ne,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(Ne){this.properties=this._transitioning.possiblyEvaluate(Ne)}_validate(Ne,Ge,Qe){return(!Qe||Qe.validate!==!1)&&Ie.emitValidationErrors(this,Ne.call(Ie.validateStyle,Ie.extend({value:Ge,style:{glyphs:!0,sprite:!0},styleSpec:Ie.spec})))}}const Cn=new Ie.Properties({source:new Ie.DataConstantProperty(Ie.spec.terrain.source),exaggeration:new Ie.DataConstantProperty(Ie.spec.terrain.exaggeration)});let tr=class extends Ie.Evented{constructor(Ze,Ne){super(),this._transitionable=new Ie.Transitionable(Cn),this.set(Ze),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=Ne}get(){return this._transitionable.serialize()}set(Ze){for(const Ne in Ze){const Ge=Ze[Ne];Ie.endsWith(Ne,"-transition")?this._transitionable.setTransition(Ne.slice(0,-11),Ge):this._transitionable.setValue(Ne,Ge)}}updateTransitions(Ze){this._transitioning=this._transitionable.transitioned(Ze,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(Ze){this.properties=this._transitioning.possiblyEvaluate(Ze)}};function xr(Ze,Ne,Ge,Qe){const ai=Ie.smoothstep(45,65,Ge),[ui,Si]=er(Ze,Qe),Mi=Ie.length(Ne);let Fi=1-Math.min(1,Math.exp((Mi-ui)/(Si-ui)*-6));return Fi*=Fi*Fi,Fi=Math.min(1,1.00747*Fi),Fi*ai*Ze.alpha}function er(Ze,Ne){const Ge=.5/Math.tan(.5*Ne);return[Ze.range[0]+Ge,Ze.range[1]+Ge]}const Hn=new Ie.Properties({range:new Ie.DataConstantProperty(Ie.spec.fog.range),color:new Ie.DataConstantProperty(Ie.spec.fog.color),"high-color":new Ie.DataConstantProperty(Ie.spec.fog["high-color"]),"space-color":new Ie.DataConstantProperty(Ie.spec.fog["space-color"]),"horizon-blend":new Ie.DataConstantProperty(Ie.spec.fog["horizon-blend"]),"star-intensity":new Ie.DataConstantProperty(Ie.spec.fog["star-intensity"])});class Er extends Ie.Evented{constructor(Ne,Ge){super(),this._transitionable=new Ie.Transitionable(Hn),this.set(Ne),this._transitioning=this._transitionable.untransitioned(),this._transform=Ge}get state(){const Ne=this._transform,Ge=Ne.projection.name==="globe",Qe=Ie.globeToMercatorTransition(Ne.zoom),ai=this.properties.get("range"),ui=[.5,3];return{range:Ge?[Ie.number(ui[0],ai[0],Qe),Ie.number(ui[1],ai[1],Qe)]:ai,horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(Ne,Ge={}){if(!this._validate(Ie.validateFog,Ne,Ge)){for(const Qe of Object.keys(Ie.spec.fog))Ne&&Ne[Qe]===void 0&&(Ne[Qe]=Ie.spec.fog[Qe].default);for(const Qe in Ne){const ai=Ne[Qe];Ie.endsWith(Qe,"-transition")?this._transitionable.setTransition(Qe.slice(0,-11),ai):this._transitionable.setValue(Qe,ai)}}}getOpacity(Ne){if(!this._transform.projection.supportsFog)return 0;const Ge=this.properties&&this.properties.get("color")||1;return(this._transform.projection.name==="globe"?1:Ie.smoothstep(45,65,Ne))*Ge.a}getOpacityAtLatLng(Ne,Ge){return this._transform.projection.supportsFog?function(Qe,ai,ui){const Si=Ie.MercatorCoordinate.fromLngLat(ai),Mi=ui.elevation?ui.elevation.getAtPointOrZero(Si):0,Fi=[Si.x,Si.y,Mi];return Ie.transformMat4(Fi,Fi,ui.mercatorFogMatrix),xr(Qe,Fi,ui.pitch,ui._fov)}(this.state,Ne,Ge):0}getFovAdjustedRange(Ne){return this._transform.projection.supportsFog?er(this.state,Ne):[0,1]}updateTransitions(Ne){this._transitioning=this._transitionable.transitioned(Ne,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(Ne){this.properties=this._transitioning.possiblyEvaluate(Ne)}_validate(Ne,Ge,Qe){return(!Qe||Qe.validate!==!1)&&Ie.emitValidationErrors(this,Ne.call(Ie.validateStyle,Ie.extend({value:Ge,style:{glyphs:!0,sprite:!0},styleSpec:Ie.spec})))}}class os{constructor(Ne,Ge){this.workerPool=Ne,this.actors=[],this.currentActor=0,this.id=Ie.uniqueId();
vendor: 6,020 bytes, line 219
219const Qe=this.workerPool.acquire(this.id);for(let ai=0;ai<Qe.length;ai++){const ui=new os.Actor(Qe[ai],Ge,this.id);ui.name=`Worker ${ai}`,this.actors.push(ui)}this.ready=!1,this.broadcast("checkIfReady",null,()=>{this.ready=!0})}broadcast(Ne,Ge,Qe){Ie.asyncAll(this.actors,(ai,ui)=>{ai.send(Ne,Ge,ui)},Qe=Qe||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(Ne=>{Ne.remove()}),this.actors=[],this.workerPool.release(this.id)}}function wi(Ze,Ne,Ge){return Ne*(Ie.EXTENT/(Ze.tileSize*Math.pow(2,Ge-Ze.tileID.overscaledZ)))}os.Actor=Ie.Actor;class Zi{constructor(Ne,Ge,Qe,ai){this.screenBounds=Ne,this.cameraPoint=Ge,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=Qe,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,ai)}static createFromScreenPoints(Ne,Ge){let Qe,ai;if(Ne instanceof Ie.Point||typeof Ne[0]=="number"){const ui=Ie.Point.convert(Ne);Qe=[ui],ai=Ge.isPointAboveHorizon(ui)}else{const ui=Ie.Point.convert(Ne[0]),Si=Ie.Point.convert(Ne[1]);Qe=[ui,Si],ai=Ie.polygonizeBounds(ui,Si).every(Mi=>Ge.isPointAboveHorizon(Mi))}return new Zi(Qe,Ge.getCameraPoint(),ai,Ge)}isPointQuery(){return this.screenBounds.length===1}bufferedScreenGeometry(Ne){return Ie.polygonizeBounds(this.screenBounds[0],this.screenBounds.length===1?this.screenBounds[0]:this.screenBounds[1],Ne)}bufferedCameraGeometry(Ne){const Ge=this.screenBounds[0],Qe=this.screenBounds.length===1?this.screenBounds[0].add(new Ie.Point(1,1)):this.screenBounds[1],ai=Ie.polygonizeBounds(Ge,Qe,0,!1);return this.cameraPoint.y>Qe.y&&(this.cameraPoint.x>Ge.x&&this.cameraPoint.x<Qe.x?ai.splice(3,0,this.cameraPoint):this.cameraPoint.x>=Qe.x?ai[2]=this.cameraPoint:this.cameraPoint.x<=Ge.x&&(ai[3]=this.cameraPoint)),Ie.bufferConvexPolygon(ai,Ne)}bufferedCameraGeometryGlobe(Ne){const Ge=this.screenBounds[0],Qe=this.screenBounds.length===1?this.screenBounds[0].add(new Ie.Point(1,1)):this.screenBounds[1],ai=Ie.polygonizeBounds(Ge,Qe,Ne),ui=this.cameraPoint.clone();switch(3*((ui.y>Ge.y)+(ui.y>Qe.y))+((ui.x>Ge.x)+(ui.x>Qe.x))){case 0:ai[0]=ui,ai[4]=ui.clone();break;case 1:ai.splice(1,0,ui);break;case 2:ai[1]=ui;break;case 3:ai.splice(4,0,ui);break;case 5:ai.splice(2,0,ui);break;case 6:ai[3]=ui;break;case 7:ai.splice(3,0,ui);break;case 8:ai[2]=ui}return ai}containsTile(Ne,Ge,Qe,ai=0){const ui=Ne.queryPadding/Ge._pixelsPerMercatorPixel+1,Si=Qe?this._bufferedCameraMercator(ui,Ge):this._bufferedScreenMercator(ui,Ge);let Mi=Ne.tileID.wrap+(Si.unwrapped?ai:0);const Fi=Si.polygon.map(Vn=>Ie.getTilePoint(Ne.tileTransform,Vn,Mi));if(!Ie.polygonIntersectsBox(Fi,0,0,Ie.EXTENT,Ie.EXTENT))return;Mi=Ne.tileID.wrap+(this.screenGeometryMercator.unwrapped?ai:0);const qi=this.screenGeometryMercator.polygon.map(Vn=>Ie.getTileVec3(Ne.tileTransform,Vn,Mi)),Xi=qi.map(Vn=>new Ie.Point(Vn[0],Vn[1])),hn=Ge.getFreeCameraOptions().position||new Ie.MercatorCoordinate(0,0,0),Dn=Ie.getTileVec3(Ne.tileTransform,hn,Mi),In=qi.map(Vn=>{const pn=Ie.sub(Vn,Vn,Dn);return Ie.normalize(pn,pn),new Ie.Ray(Dn,pn)}),On=wi(Ne,1,Ge.zoom)*Ge._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:Xi,tilespaceRays:In,bufferedTilespaceGeometry:Fi,bufferedTilespaceBounds:(Bn=Ie.getBounds(Fi),Bn.min.x=Ie.clamp(Bn.min.x,0,Ie.EXTENT),Bn.min.y=Ie.clamp(Bn.min.y,0,Ie.EXTENT),Bn.max.x=Ie.clamp(Bn.max.x,0,Ie.EXTENT),Bn.max.y=Ie.clamp(Bn.max.y,0,Ie.EXTENT),Bn),tile:Ne,tileID:Ne.tileID,pixelToTileUnitsFactor:On};var Bn}_bufferedScreenMercator(Ne,Ge){const Qe=vn(Ne);if(this._screenRaycastCache[Qe])return this._screenRaycastCache[Qe];{let ai;return ai=Ge.projection.name==="globe"?this._projectAndResample(this.bufferedScreenGeometry(Ne),Ge):{polygon:this.bufferedScreenGeometry(Ne).map(ui=>Ge.pointCoordinate3D(ui)),unwrapped:!0},this._screenRaycastCache[Qe]=ai,ai}}_bufferedCameraMercator(Ne,Ge){const Qe=vn(Ne);if(this._cameraRaycastCache[Qe])return this._cameraRaycastCache[Qe];{let ai;return ai=Ge.projection.name==="globe"?this._projectAndResample(this.bufferedCameraGeometryGlobe(Ne),Ge):{polygon:this.bufferedCameraGeometry(Ne).map(ui=>Ge.pointCoordinate3D(ui)),unwrapped:!0},this._cameraRaycastCache[Qe]=ai,ai}}_projectAndResample(Ne,Ge){const Qe=function(ui,Si){const Mi=Ie.multiply([],Si.pixelMatrix,Si.globeMatrix),Fi=[0,-Ie.GLOBE_RADIUS,0,1],qi=[0,Ie.GLOBE_RADIUS,0,1],Xi=[0,0,0,1];Ie.transformMat4$1(Fi,Fi,Mi),Ie.transformMat4$1(qi,qi,Mi),Ie.transformMat4$1(Xi,Xi,Mi);const hn=new Ie.Point(Fi[0]/Fi[3],Fi[1]/Fi[3]),Dn=new Ie.Point(qi[0]/qi[3],qi[1]/qi[3]),In=Ie.polygonContainsPoint(ui,hn)&&Fi[3]<Xi[3],On=Ie.polygonContainsPoint(ui,Dn)&&qi[3]<Xi[3];if(!In&&!On)return null;const Bn=function(dr,$r,Pr){for(let Vr=1;Vr<dr.length;Vr++){const Ds=Hi($r.pointCoordinate3D(dr[Vr-1]).x),zr=Hi($r.pointCoordinate3D(dr[Vr]).x);if(Pr<0){if(Ds<zr)return{idx:Vr,t:-Ds/(zr-1-Ds)}}else if(zr<Ds)return{idx:Vr,t:(1-Ds)/(zr+1-Ds)}}return null}(ui,Si,In?-1:1);if(!Bn)return null;const{idx:Vn,t:pn}=Bn;let Pn=Vn>1?Qi(ui.slice(0,Vn),Si):[],Jn=Vn<ui.length?Qi(ui.slice(Vn),Si):[];Pn=Pn.map(dr=>new Ie.Point(Hi(dr.x),dr.y)),Jn=Jn.map(dr=>new Ie.Point(Hi(dr.x),dr.y));const qn=[...Pn];qn.length===0&&qn.push(Jn[Jn.length-1]);const gr=Ie.number(qn[qn.length-1].y,(Jn.length===0?Pn[0]:Jn[0]).y,pn);let vr;return vr=In?[new Ie.Point(0,gr),new Ie.Point(0,0),new Ie.Point(1,0),new Ie.Point(1,gr)]:[new Ie.Point(1,gr),new Ie.Point(1,1),new Ie.Point(0,1),new Ie.Point(0,gr)],qn.push(...vr),Jn.length===0?qn.push(Pn[0]):qn.push(...Jn),{polygon:qn.map(dr=>new Ie.MercatorCoordinate(dr.x,dr.y)),unwrapped:!1}}(Ne,Ge);if(Qe)return Qe;const ai=function(ui,Si){let Mi=!1,Fi=-1/0,qi=0;for(let hn=0;hn<ui.length-1;hn++)ui[hn].x>Fi&&(Fi=ui[hn].x,qi=hn);for(let hn=0;hn<ui.length-1;hn++){const Dn=(qi+hn)%(ui.length-1),In=ui[Dn],On=ui[Dn+1];Math.abs(In.x-On.x)>.5&&(In.x<On.x?(In.x+=1,Dn===0&&(ui[ui.length-1].x+=1)):(On.x+=1,Dn+1===ui.length-1&&(ui[0].x+=1)),Mi=!0)}const Xi=Ie.mercatorXfromLng(Si.center.lng);
vendor: 10,433 bytes, line 219
219return Mi&&Xi<Math.abs(Xi-1)&&ui.forEach(hn=>{hn.x-=1}),{polygon:ui,unwrapped:Mi}}(Qi(Ne,Ge).map(ui=>new Ie.Point(Hi(ui.x),ui.y)),Ge);return{polygon:ai.polygon.map(ui=>new Ie.MercatorCoordinate(ui.x,ui.y)),unwrapped:ai.unwrapped}}}function Qi(Ze,Ne){return Ie.resample(Ze,Ge=>{const Qe=Ne.pointCoordinate3D(Ge);Ge.x=Qe.x,Ge.y=Qe.y},1/256)}function Hi(Ze){return Ze<0?1+Ze%1:Ze%1}function vn(Ze){return 100*Ze|0}function zn(Ze,Ne,Ge,Qe,ai){const ui=function(Si,Mi){if(Si)return ai(Si);if(Mi){Ze.url&&Mi.tiles&&Ze.tiles&&delete Ze.tiles;const Fi=Ie.pick(Ie.extend(Mi,Ze),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);Mi.vector_layers&&(Fi.vectorLayers=Mi.vector_layers,Fi.vectorLayerIds=Fi.vectorLayers.map(qi=>qi.id)),Fi.tiles=Ne.canonicalizeTileset(Fi,Ze.url),ai(null,Fi)}};return Ze.url?Ie.getJSON(Ne.transformRequest(Ne.normalizeSourceURL(Ze.url,null,Ge,Qe),Ie.ResourceType.Source),ui):Ie.exported.frame(()=>ui(null,Ze))}class ji{constructor(Ne,Ge,Qe){this.bounds=Ie.LngLatBounds.convert(this.validateBounds(Ne)),this.minzoom=Ge||0,this.maxzoom=Qe||24}validateBounds(Ne){return Array.isArray(Ne)&&Ne.length===4?[Math.max(-180,Ne[0]),Math.max(-90,Ne[1]),Math.min(180,Ne[2]),Math.min(90,Ne[3])]:[-180,-90,180,90]}contains(Ne){const Ge=Math.pow(2,Ne.z),Qe=Math.floor(Ie.mercatorXfromLng(this.bounds.getWest())*Ge),ai=Math.floor(Ie.mercatorYfromLat(this.bounds.getNorth())*Ge),ui=Math.ceil(Ie.mercatorXfromLng(this.bounds.getEast())*Ge),Si=Math.ceil(Ie.mercatorYfromLat(this.bounds.getSouth())*Ge);return Ne.x>=Qe&&Ne.x<ui&&Ne.y>=ai&&Ne.y<Si}}class hr{constructor(Ne,Ge,Qe){this.context=Ne;const ai=Ne.gl;this.buffer=ai.createBuffer(),this.dynamicDraw=!!Qe,this.context.unbindVAO(),Ne.bindElementBuffer.set(this.buffer),ai.bufferData(ai.ELEMENT_ARRAY_BUFFER,Ge.arrayBuffer,this.dynamicDraw?ai.DYNAMIC_DRAW:ai.STATIC_DRAW),this.dynamicDraw||Ge.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(Ne){const Ge=this.context.gl;this.context.unbindVAO(),this.bind(),Ge.bufferSubData(Ge.ELEMENT_ARRAY_BUFFER,0,Ne.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const Ri={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class xs{constructor(Ne,Ge,Qe,ai){this.length=Ge.length,this.attributes=Qe,this.itemSize=Ge.bytesPerElement,this.dynamicDraw=ai,this.context=Ne;const ui=Ne.gl;this.buffer=ui.createBuffer(),Ne.bindVertexBuffer.set(this.buffer),ui.bufferData(ui.ARRAY_BUFFER,Ge.arrayBuffer,this.dynamicDraw?ui.DYNAMIC_DRAW:ui.STATIC_DRAW),this.dynamicDraw||Ge.destroy()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(Ne){const Ge=this.context.gl;this.bind(),Ge.bufferSubData(Ge.ARRAY_BUFFER,0,Ne.arrayBuffer)}enableAttributes(Ne,Ge){for(let Qe=0;Qe<this.attributes.length;Qe++){const ai=Ge.attributes[this.attributes[Qe].name];ai!==void 0&&Ne.enableVertexAttribArray(ai)}}setVertexAttribPointers(Ne,Ge,Qe){for(let ai=0;ai<this.attributes.length;ai++){const ui=this.attributes[ai],Si=Ge.attributes[ui.name];Si!==void 0&&Ne.vertexAttribPointer(Si,ui.components,Ne[Ri[ui.type]],!1,this.itemSize,ui.offset+this.itemSize*(Qe||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class Ue{constructor(Ne){this.gl=Ne.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(Ne){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class bi extends Ue{getDefault(){return Ie.Color.transparent}set(Ne){const Ge=this.current;(Ne.r!==Ge.r||Ne.g!==Ge.g||Ne.b!==Ge.b||Ne.a!==Ge.a||this.dirty)&&(this.gl.clearColor(Ne.r,Ne.g,Ne.b,Ne.a),this.current=Ne,this.dirty=!1)}}class Ii extends Ue{getDefault(){return 1}set(Ne){(Ne!==this.current||this.dirty)&&(this.gl.clearDepth(Ne),this.current=Ne,this.dirty=!1)}}class Ji extends Ue{getDefault(){return 0}set(Ne){(Ne!==this.current||this.dirty)&&(this.gl.clearStencil(Ne),this.current=Ne,this.dirty=!1)}}class Mn extends Ue{getDefault(){return[!0,!0,!0,!0]}set(Ne){const Ge=this.current;(Ne[0]!==Ge[0]||Ne[1]!==Ge[1]||Ne[2]!==Ge[2]||Ne[3]!==Ge[3]||this.dirty)&&(this.gl.colorMask(Ne[0],Ne[1],Ne[2],Ne[3]),this.current=Ne,this.dirty=!1)}}class En extends Ue{getDefault(){return!0}set(Ne){(Ne!==this.current||this.dirty)&&(this.gl.depthMask(Ne),this.current=Ne,this.dirty=!1)}}class Fn extends Ue{getDefault(){return 255}set(Ne){(Ne!==this.current||this.dirty)&&(this.gl.stencilMask(Ne),this.current=Ne,this.dirty=!1)}}class Cr extends Ue{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(Ne){const Ge=this.current;(Ne.func!==Ge.func||Ne.ref!==Ge.ref||Ne.mask!==Ge.mask||this.dirty)&&(this.gl.stencilFunc(Ne.func,Ne.ref,Ne.mask),this.current=Ne,this.dirty=!1)}}class _r extends Ue{getDefault(){const Ne=this.gl;return[Ne.KEEP,Ne.KEEP,Ne.KEEP]}set(Ne){const Ge=this.current;(Ne[0]!==Ge[0]||Ne[1]!==Ge[1]||Ne[2]!==Ge[2]||this.dirty)&&(this.gl.stencilOp(Ne[0],Ne[1],Ne[2]),this.current=Ne,this.dirty=!1)}}class Or extends Ue{getDefault(){return!1}set(Ne){if(Ne===this.current&&!this.dirty)return;const Ge=this.gl;Ne?Ge.enable(Ge.STENCIL_TEST):Ge.disable(Ge.STENCIL_TEST),this.current=Ne,this.dirty=!1}}class _s extends Ue{getDefault(){return[0,1]}set(Ne){const Ge=this.current;(Ne[0]!==Ge[0]||Ne[1]!==Ge[1]||this.dirty)&&(this.gl.depthRange(Ne[0],Ne[1]),this.current=Ne,this.dirty=!1)}}class so extends Ue{getDefault(){return!1}set(Ne){if(Ne===this.current&&!this.dirty)return;const Ge=this.gl;Ne?Ge.enable(Ge.DEPTH_TEST):Ge.disable(Ge.DEPTH_TEST),this.current=Ne,this.dirty=!1}}class Ls extends Ue{getDefault(){return this.gl.LESS}set(Ne){(Ne!==this.current||this.dirty)&&(this.gl.depthFunc(Ne),this.current=Ne,this.dirty=!1)}}class go extends Ue{getDefault(){return!1}set(Ne){if(Ne===this.current&&!this.dirty)return;const Ge=this.gl;Ne?Ge.enable(Ge.BLEND):Ge.disable(Ge.BLEND),this.current=Ne,this.dirty=!1}}class As extends Ue{getDefault(){const Ne=this.gl;return[Ne.ONE,Ne.ZERO]}set(Ne){const Ge=this.current;(Ne[0]!==Ge[0]||Ne[1]!==Ge[1]||this.dirty)&&(this.gl.blendFunc(Ne[0],Ne[1]),this.current=Ne,this.dirty=!1)}}class no extends Ue{getDefault(){return Ie.Color.transparent}set(Ne){const Ge=this.current;(Ne.r!==Ge.r||Ne.g!==Ge.g||Ne.b!==Ge.b||Ne.a!==Ge.a||this.dirty)&&(this.gl.blendColor(Ne.r,Ne.g,Ne.b,Ne.a),this.current=Ne,this.dirty=!1)}}class Ws extends Ue{getDefault(){return this.gl.FUNC_ADD}set(Ne){(Ne!==this.current||this.dirty)&&(this.gl.blendEquation(Ne),this.current=Ne,this.dirty=!1)}}class ro extends Ue{getDefault(){return!1}set(Ne){if(Ne===this.current&&!this.dirty)return;const Ge=this.gl;Ne?Ge.enable(Ge.CULL_FACE):Ge.disable(Ge.CULL_FACE),this.current=Ne,this.dirty=!1}}class qs extends Ue{getDefault(){return this.gl.BACK}set(Ne){(Ne!==this.current||this.dirty)&&(this.gl.cullFace(Ne),this.current=Ne,this.dirty=!1)}}class hs extends Ue{getDefault(){return this.gl.CCW}set(Ne){(Ne!==this.current||this.dirty)&&(this.gl.frontFace(Ne),this.current=Ne,this.dirty=!1)}}let Nr,ea=class extends Ue{getDefault(){return null}set(Ze){(Ze!==this.current||this.dirty)&&(this.gl.useProgram(Ze),this.current=Ze,this.dirty=!1)}};class $a extends Ue{getDefault(){return this.gl.TEXTURE0}set(Ne){(Ne!==this.current||this.dirty)&&(this.gl.activeTexture(Ne),this.current=Ne,this.dirty=!1)}}class ao extends Ue{getDefault(){const Ne=this.gl;return[0,0,Ne.drawingBufferWidth,Ne.drawingBufferHeight]}set(Ne){const Ge=this.current;(Ne[0]!==Ge[0]||Ne[1]!==Ge[1]||Ne[2]!==Ge[2]||Ne[3]!==Ge[3]||this.dirty)&&(this.gl.viewport(Ne[0],Ne[1],Ne[2],Ne[3]),this.current=Ne,this.dirty=!1)}}class Do extends Ue{getDefault(){return null}set(Ne){if(Ne===this.current&&!this.dirty)return;const Ge=this.gl;Ge.bindFramebuffer(Ge.FRAMEBUFFER,Ne),this.current=Ne,this.dirty=!1}}class el extends Ue{getDefault(){return null}set(Ne){if(Ne===this.current&&!this.dirty)return;const Ge=this.gl;Ge.bindRenderbuffer(Ge.RENDERBUFFER,Ne),this.current=Ne,this.dirty=!1}}class Fa extends Ue{getDefault(){return null}set(Ne){if(Ne===this.current&&!this.dirty)return;const Ge=this.gl;Ge.bindTexture(Ge.TEXTURE_2D,Ne),this.current=Ne,this.dirty=!1}}class cl extends Ue{getDefault(){return null}set(Ne){if(Ne===this.current&&!this.dirty)return;const Ge=this.gl;Ge.bindBuffer(Ge.ARRAY_BUFFER,Ne),this.current=Ne,this.dirty=!1}}class Zn extends Ue{getDefault(){return null}set(Ne){const Ge=this.gl;Ge.bindBuffer(Ge.ELEMENT_ARRAY_BUFFER,Ne),this.current=Ne,this.dirty=!1}}class bn extends Ue{constructor(Ne){super(Ne),this.vao=Ne.extVertexArrayObject}getDefault(){return null}set(Ne){this.vao&&(Ne!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(Ne),this.current=Ne,this.dirty=!1)}}class xn extends Ue{getDefault(){return 4}set(Ne){if(Ne===this.current&&!this.dirty)return;const Ge=this.gl;Ge.pixelStorei(Ge.UNPACK_ALIGNMENT,Ne),this.current=Ne,this.dirty=!1}}class Yn extends Ue{getDefault(){return!1}set(Ne){if(Ne===this.current&&!this.dirty)return;const Ge=this.gl;Ge.pixelStorei(Ge.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Ne),this.current=Ne,this.dirty=!1}}class or extends Ue{getDefault(){return!1}set(Ne){if(Ne===this.current&&!this.dirty)return;const Ge=this.gl;Ge.pixelStorei(Ge.UNPACK_FLIP_Y_WEBGL,Ne),this.current=Ne,this.dirty=!1}}class yr extends Ue{constructor(Ne,Ge){super(Ne),this.context=Ne,this.parent=Ge}getDefault(){return null}}class Rr extends yr{setDirty(){this.dirty=!0}set(Ne){if(Ne===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const Ge=this.gl;Ge.framebufferTexture2D(Ge.FRAMEBUFFER,Ge.COLOR_ATTACHMENT0,Ge.TEXTURE_2D,Ne,0),this.current=Ne,this.dirty=!1}}class kr extends yr{attachment(){return this.gl.DEPTH_ATTACHMENT}set(Ne){if(Ne===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const Ge=this.gl;Ge.framebufferRenderbuffer(Ge.FRAMEBUFFER,this.attachment(),Ge.RENDERBUFFER,Ne),this.current=Ne,this.dirty=!1}}class br extends kr{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}class jr{constructor(Ne,Ge,Qe,ai){this.context=Ne,this.width=Ge,this.height=Qe;const ui=this.framebuffer=Ne.gl.createFramebuffer();this.colorAttachment=new Rr(Ne,ui),ai&&(this.depthAttachment=new kr(Ne,ui))}destroy(){const Ne=this.context.gl,Ge=this.colorAttachment.get();if(Ge&&Ne.deleteTexture(Ge),this.depthAttachment){const Qe=this.depthAttachment.get();Qe&&Ne.deleteRenderbuffer(Qe)}Ne.deleteFramebuffer(this.framebuffer)}}
219class bs{constructor(Ne,Ge=!1){if(this.gl=Ne,this.isWebGL2=Ge,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),Ge){const Qe=Ne;this.extVertexArrayObject={createVertexArrayOES:Qe.createVertexArray.bind(Ne),deleteVertexArrayOES:Qe.deleteVertexArray.bind(Ne),bindVertexArrayOES:Qe.bindVertexArray.bind(Ne)}}this.clearColor=new bi(this),this.clearDepth=new Ii(this),this.clearStencil=new Ji(this),this.colorMask=new Mn(this),this.depthMask=new En(this),this.stencilMask=new Fn(this),this.stencilFunc=new Cr(this),this.stencilOp=new _r(this),this.stencilTest=new Or(this),this.depthRange=new _s(this),this.depthTest=new so(this),this.depthFunc=new Ls(this),this.blend=new go(this),this.blendFunc=new As(this),this.blendColor=new no(this),this.blendEquation=new Ws(this),this.cullFace=new ro(this),this.cullFaceSide=new qs(this),this.frontFace=new hs(this),this.program=new ea(this),this.activeTexture=new $a(this),this.viewport=new ao(this),this.bindFramebuffer=new Do(this),this.bindRenderbuffer=new el(this),this.bindTexture=new Fa(this),this.bindVertexBuffer=new cl(this),this.bindElementBuffer=new Zn(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new bn(this),this.pixelStoreUnpack=new xn(this),this.pixelStoreUnpackPremultiplyAlpha=new Yn(this),this.pixelStoreUnpackFlipY=new or(this),this.extTextureFilterAnisotropic=Ne.getExtension("EXT_texture_filter_anisotropic")||Ne.getExtension("MOZ_EXT_texture_filter_anisotropic")||Ne.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=Ne.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureFilterAnisotropicForceOff=!1,this.extStandardDerivativesForceOff=!1,this.extDebugRendererInfo=Ne.getExtension("WEBGL_debug_renderer_info"),this.extDebugRendererInfo&&(this.renderer=Ne.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL),this.vendor=Ne.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)),Ge||(this.extTextureHalfFloat=Ne.getExtension("OES_texture_half_float")),(Ge||this.extTextureHalfFloat&&Ne.getExtension("OES_texture_half_float_linear"))&&(this.extRenderToTextureHalfFloat=Ne.getExtension("EXT_color_buffer_half_float")),this.extStandardDerivatives=Ge||Ne.getExtension("OES_standard_derivatives"),this.extTimerQuery=Ne.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=Ne.getParameter(Ne.MAX_TEXTURE_SIZE)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(Ne,Ge){return new hr(this,Ne,Ge)}createVertexBuffer(Ne,Ge,Qe){return new xs(this,Ne,Ge,Qe)}createRenderbuffer(Ne,Ge,Qe){const ai=this.gl,ui=ai.createRenderbuffer();return this.bindRenderbuffer.set(ui),ai.renderbufferStorage(ai.RENDERBUFFER,Ne,Ge,Qe),this.bindRenderbuffer.set(null),ui}createFramebuffer(Ne,Ge,Qe){return new jr(this,Ne,Ge,Qe)}clear({color:Ne,depth:Ge,stencil:Qe}){const ai=this.gl;let ui=0;Ne&&(ui|=ai.COLOR_BUFFER_BIT,this.clearColor.set(Ne),this.colorMask.set([!0,!0,!0,!0])),Ge!==void 0&&(ui|=ai.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(Ge),this.depthMask.set(!0)),Qe!==void 0&&(ui|=ai.STENCIL_BUFFER_BIT,this.clearStencil.set(Qe),this.stencilMask.set(255)),ai.clear(ui)}setCullFace(Ne){Ne.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(Ne.mode),this.frontFace.set(Ne.frontFace))}setDepthMode(Ne){Ne.func!==this.gl.ALWAYS||Ne.mask?(this.depthTest.set(!0),this.depthFunc.set(Ne.func),this.depthMask.set(Ne.mask),this.depthRange.set(Ne.range)):this.depthTest.set(!1)}setStencilMode(Ne){Ne.test.func!==this.gl.ALWAYS||Ne.mask?(this.stencilTest.set(!0),this.stencilMask.set(Ne.mask),this.stencilOp.set([Ne.fail,Ne.depthFail,Ne.pass]),this.stencilFunc.set({func:Ne.test.func,ref:Ne.ref,mask:Ne.test.mask})):this.stencilTest.set(!1)}setColorMode(Ne){je(Ne.blendFunction,Ie.ColorMode.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(Ne.blendFunction),this.blendColor.set(Ne.blendColor)),this.colorMask.set(Ne.mask)}unbindVAO(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)}}
219class Fs extends Ie.Evented{constructor(Ne,Ge,Qe,ai){if(super(),this.id=Ne,this.dispatcher=Qe,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,Ie.extend(this,Ie.pick(Ge,["url","scheme","tileSize","promoteId"])),this._options=Ie.extend({type:"vector"},Ge),this._collectResourceTiming=Ge.collectResourceTiming,this.tileSize!==512)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(ai),this._tileWorkers={},this._deduped=new Ie.DedupedRequest}load(Ne){this._loaded=!1,this.fire(new Ie.Event("dataloading",{dataType:"source"}));const Ge=Array.isArray(this.map._language)?this.map._language.join():this.map._language,Qe=this.map._worldview;this._tileJSONRequest=zn(this._options,this.map._requestManager,Ge,Qe,(ai,ui)=>{this._tileJSONRequest=null,this._loaded=!0,ai?(Ge&&console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${Ge}`),Qe&&Qe.length!==2&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${Qe}`),this.fire(new Ie.ErrorEvent(ai))):ui&&(Ie.extend(this,ui),ui.bounds&&(this.tileBounds=new ji(ui.bounds,this.minzoom,this.maxzoom)),Ie.postTurnstileEvent(ui.tiles,this.map._requestManager._customAccessToken),this.fire(new Ie.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new Ie.Event("data",{dataType:"source",sourceDataType:"content"}))),Ne&&Ne(ai)})}loaded(){return this._loaded}hasTile(Ne){return!this.tileBounds||this.tileBounds.contains(Ne.canonical)}onAdd(Ne){this.map=Ne,this.load()}reload(){this.cancelTileJSONRequest(),this.load(()=>this.map.style._clearSource(this.id))}setTiles(Ne){return this._options.tiles=Ne,this.reload(),this}setUrl(Ne){return this.url=Ne,this._options.url=Ne,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return Ie.extend({},this._options)}loadTile(Ne,Ge){const Qe=this.map._requestManager.normalizeTileURL(Ne.tileID.canonical.url(this.tiles,this.scheme)),ai={request:this.map._requestManager.transformRequest(Qe,Ie.ResourceType.Tile),data:void 0,uid:Ne.uid,tileID:Ne.tileID,tileZoom:Ne.tileZoom,zoom:Ne.tileID.overscaledZ,tileSize:this.tileSize*Ne.tileID.overscaleFactor(),type:this.t
219ype,source:this.id,pixelRatio:Ie.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:Ne.isSymbolTile};if(ai.request.collectResourceTiming=this._collectResourceTiming,Ne.actor&&Ne.state!=="expired")Ne.state==="loading"?Ne.reloadCallback=Ge:Ne.request=Ne.actor.send("reloadTile",ai,ui.bind(this));else if(Ne.actor=this._tileWorkers[Qe]=this._tileWorkers[Qe]||this.dispatcher.getActor(),this.dispatcher.ready)Ne.request=Ne.actor.send("loadTile",ai,ui.bind(this),void 0,!0);else{const Si=Ie.loadVectorTile.call({deduped:this._deduped},ai,(Mi,Fi)=>{Mi||!Fi?ui.call(this,Mi):(ai.data={cacheControl:Fi.cacheControl,expires:Fi.expires,rawData:Fi.rawData.slice(0)},Ne.actor&&Ne.actor.send("loadTile",ai,ui.bind(this),void 0,!0))},!0);Ne.request={cancel:Si}}function ui(Si,Mi){return delete Ne.request,Ne.aborted?Ge(null):Si&&Si.status!==404?Ge(Si):(Mi&&Mi.resourceTiming&&(Ne.resourceTiming=Mi.resourceTiming),this.map._refreshExpiredTiles&&Mi&&Ne.setExpiryData(Mi),Ne.loadVectorData(Mi,this.map.painter),Ie.cacheEntryPossiblyAdded(this.dispatcher),Ge(null),void(Ne.reloadCallback&&(this.loadTile(Ne,Ne.reloadCallback),Ne.reloadCallback=null)))}}abortTile(Ne){Ne.request&&(Ne.request.cancel(),delete Ne.request),Ne.actor&&Ne.actor.send("abortTile",{uid:Ne.uid,type:this.t
vendor: 7,245 bytes, line 219
219ype,source:this.id})}unloadTile(Ne){Ne.unloadVectorData(),Ne.actor&&Ne.actor.send("removeTile",{uid:Ne.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}class wr extends Ie.Evented{constructor(Ne,Ge,Qe,ai){super(),this.id=Ne,this.dispatcher=Qe,this.setEventedParent(ai),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=Ie.extend({type:"raster"},Ge),Ie.extend(this,Ie.pick(Ge,["url","scheme","tileSize"]))}load(Ne){this._loaded=!1,this.fire(new Ie.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=zn(this._options,this.map._requestManager,null,null,(Ge,Qe)=>{this._tileJSONRequest=null,this._loaded=!0,Ge?this.fire(new Ie.ErrorEvent(Ge)):Qe&&(Ie.extend(this,Qe),Qe.bounds&&(this.tileBounds=new ji(Qe.bounds,this.minzoom,this.maxzoom)),Ie.postTurnstileEvent(Qe.tiles),this.fire(new Ie.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new Ie.Event("data",{dataType:"source",sourceDataType:"content"}))),Ne&&Ne(Ge)})}loaded(){return this._loaded}onAdd(Ne){this.map=Ne,this.load()}reload(){this.cancelTileJSONRequest(),this.load(()=>this.map.style._clearSource(this.id))}setTiles(Ne){return this._options.tiles=Ne,this.reload(),this}setUrl(Ne){return this.url=Ne,this._options.url=Ne,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return Ie.extend({},this._options)}hasTile(Ne){return!this.tileBounds||this.tileBounds.contains(Ne.canonical)}loadTile(Ne,Ge){const Qe=Ie.exported.devicePixelRatio>=2,ai=this.map._requestManager.normalizeTileURL(Ne.tileID.canonical.url(this.tiles,this.scheme),Qe,this.tileSize);Ne.request=Ie.getImage(this.map._requestManager.transformRequest(ai,Ie.ResourceType.Tile),(ui,Si,Mi,Fi)=>(delete Ne.request,Ne.aborted?(Ne.state="unloaded",Ge(null)):ui?(Ne.state="errored",Ge(ui)):Si?(this.map._refreshExpiredTiles&&Ne.setExpiryData({cacheControl:Mi,expires:Fi}),Ne.setTexture(Si,this.map.painter),Ne.state="loaded",Ie.cacheEntryPossiblyAdded(this.dispatcher),void Ge(null)):Ge(null)))}static loadTileData(Ne,Ge,Qe){Ne.setTexture(Ge,Qe)}static unloadTileData(Ne,Ge){Ne.texture&&Ge.saveTileTexture(Ne.texture)}abortTile(Ne,Ge){Ne.request&&(Ne.request.cancel(),delete Ne.request),Ge()}unloadTile(Ne,Ge){Ne.texture&&this.map.painter.saveTileTexture(Ne.texture),Ge()}hasTransition(){return!1}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}function gs(Ze,Ne,Ge,Qe,ai,ui,Si,Mi){const Fi=[Ze,Ge,ai,Ne,Qe,ui,1,1,1],qi=[Si,Mi,1],Xi=Ie.adjoint([],Fi),[hn,Dn,In]=Ie.transformMat3(qi,qi,Ie.transpose(Xi,Xi));return Ie.multiply$1(Fi,[hn,0,0,0,Dn,0,0,0,In],Fi)}class Es extends Ie.Evented{constructor(Ne,Ge,Qe,ai){super(),this.id=Ne,this.dispatcher=Qe,this.coordinates=Ge.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ai),this.options=Ge,this._dirty=!1}load(Ne,Ge){this._loaded=Ge||!1,this.fire(new Ie.Event("dataloading",{dataType:"source"})),this.url=this.options.url,this._imageRequest=Ie.getImage(this.map._requestManager.transformRequest(this.url,Ie.ResourceType.Image),(Qe,ai)=>{if(this._imageRequest=null,this._loaded=!0,Qe)this.fire(new Ie.ErrorEvent(Qe));else if(ai){const{HTMLImageElement:ui}=Ie.window;this.image=ai instanceof ui?Ie.exported.getImageData(ai):ai,this._dirty=!0,this.width=this.image.width,this.height=this.image.height,Ne&&(this.coordinates=Ne),this._finishLoading()}})}loaded(){return this._loaded}updateImage(Ne){return this.image&&Ne.url?(this._imageRequest&&Ne.url!==this.options.url&&(this._imageRequest.cancel(),this._imageRequest=null),this.options.url=Ne.url,this.load(Ne.coordinates,this._loaded),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new Ie.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(Ne){this.map=Ne,this.load()}onRemove(){this._imageRequest&&(this._imageRequest.cancel(),this._imageRequest=null),this.texture&&this.texture.destroy()}setCoordinates(Ne){this.coordinates=Ne,this._boundsArray=void 0;const Ge=Ne.map(Ie.MercatorCoordinate.fromLngLat);return this.tileID=function(Qe){let ai=1/0,ui=1/0,Si=-1/0,Mi=-1/0;for(const hn of Qe)ai=Math.min(ai,hn.x),ui=Math.min(ui,hn.y),Si=Math.max(Si,hn.x),Mi=Math.max(Mi,hn.y);const Fi=Math.max(Si-ai,Mi-ui),qi=Math.max(0,Math.floor(-Math.log(Fi)/Math.LN2)),Xi=Math.pow(2,qi);return new Ie.CanonicalTileID(qi,Math.floor((ai+Si)/2*Xi),Math.floor((ui+Mi)/2*Xi))}(Ge),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new Ie.Event("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0}_prepareData(Ne){for(const Fi in this.tiles){const qi=this.tiles[Fi];qi.state!=="loaded"&&(qi.state="loaded",qi.texture=this.texture)}if(this._boundsArray)return;const Ge=Ie.tileTransform(this.tileID,this.map.transform.projection),[Qe,ai,ui,Si]=this.coordinates.map(Fi=>{const qi=Ge.projection.project(Fi[0],Fi[1]);return Ie.getTilePoint(Ge,qi)._round()});this.perspectiveTransform=function(Fi,qi,Xi,hn,Dn,In,On,Bn,Vn,pn){const Pn=gs(0,0,Fi,0,0,qi,Fi,qi),Jn=gs(Xi,hn,Dn,In,On,Bn,Vn,pn);return Ie.multiply$1(Jn,Ie.adjoint(Pn,Pn),Jn),[Jn[6]/Jn[8]*Fi/Ie.EXTENT,Jn[7]/Jn[8]*qi/Ie.EXTENT]}(this.width,this.height,Qe.x,Qe.y,ai.x,ai.y,Si.x,Si.y,ui.x,ui.y);const Mi=this._boundsArray=new Ie.StructArrayLayout4i8;Mi.emplaceBack(Qe.x,Qe.y,0,0),Mi.emplaceBack(ai.x,ai.y,Ie.EXTENT,0),Mi.emplaceBack(Si.x,Si.y,0,Ie.EXTENT),Mi.emplaceBack(ui.x,ui.y,Ie.EXTENT,Ie.EXTENT),this.boundsBuffer&&this.boundsBuffer.destroy(),this.boundsBuffer=Ne.createVertexBuffer(Mi,Ie.boundsAttributes.members),this.boundsSegments=Ie.SegmentVector.simpleSegment(0,0,4,2)}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;const Ne=this.map.painter.context,Ge=Ne.gl;this._dirty&&(this.texture?this.texture.update(this.image):(this.texture=new Ie.Texture(Ne,this.image,Ge.RGBA),this.texture.bind(Ge.LINEAR,Ge.CLAMP_TO_EDGE)),this._dirty=!1),this._prepareData(Ne)}loadTile(Ne,Ge){this.tileID&&this.tileID.equals(Ne.tileID.canonical)?(this.tiles[String(Ne.tileID.wrap)]=Ne,Ne.buckets={},Ge(null)):(Ne.state="errored",Ge(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const Hs={vector:Fs,raster:wr,"raster-dem":class extends wr{constructor(Ze,Ne,Ge,Qe){super(Ze,Ne,Ge,Qe),this.type="raster-dem",this.maxzoom=22,this._options=Ie.extend({type:"raster-dem"},Ne),this.encoding=Ne.encoding||"mapbox"}loadTile(Ze,Ne){const Ge=this.map._requestManager.normalizeTileURL(Ze.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function Qe(ai,ui){ai&&(Ze.state="errored",Ne(ai)),ui&&(Ze.dem=ui,Ze.dem.onDeserialize(),Ze.needsHillshadePrepare=!0,Ze.needsDEMTextureUpload=!0,Ze.state="loaded",Ne(null))}Ze.request=Ie.getImage(this.map._requestManager.transformRequest(Ge,Ie.ResourceType.Tile),(function(ai,ui,Si,Mi){if(delete Ze.request,Ze.aborted)Ze.state="unloaded",Ne(null);else if(ai)Ze.state="errored",Ne(ai);else if(ui){this.map._refreshExpiredTiles&&Ze.setExpiryData({cac
219heControl:Si,expires:Mi});const Fi=Ie.window.ImageBitmap&&ui instanceof Ie.window.ImageBitmap&&(Nr==null&&(Nr=Ie.window.OffscreenCanvas&&new Ie.window.OffscreenCanvas(1,1).getContext("2d")&&typeof Ie.window.createImageBitmap=="function"),Nr),qi=1-(ui.width-Ie.prevPowerOfTwo(ui.width))/2;qi<1||Ze.neighboringTiles||(Ze.neighboringTiles=this._getNeighboringTiles(Ze.tileID));const Xi=Fi?ui:Ie.exported.getImageData(ui,qi),hn={uid:Ze.uid,coord:Ze.tileID,source:this.id,rawImageData:Xi,encoding:this.encoding,padding:qi};Ze.actor&&Ze.state!=="expired"||(Ze.actor=this.dispatcher.getActor(),Ze.actor.send("loadDEMTile",hn,Qe.bind(this),void 0,!0))}}).bind(this))}_getNeighboringTiles(Ze){const Ne=Ze.canonical,Ge=Math.pow(2,Ne.z),Qe=(Ne.x-1+Ge)%Ge,ai=Ne.x===0?Ze.wrap-1:Ze.wrap,ui=(Ne.x+1+Ge)%Ge,Si=Ne.x+1===Ge?Ze.wrap+1:Ze.wrap,Mi={};return Mi[new Ie.OverscaledTileID(Ze.overscaledZ,ai,Ne.z,Qe,Ne.y).key]={backfilled:!1},Mi[new Ie.OverscaledTileID(Ze.overscaledZ,Si,Ne.z,ui,Ne.y).key]={backfilled:!1},Ne.y>0&&(Mi[new Ie.OverscaledTileID(Ze.overscaledZ,ai,Ne.z,Qe,Ne.y-1).key]={backfilled:!1},Mi[new Ie.OverscaledTileID(Ze.overscaledZ,Ze.wrap,Ne.z,Ne.x,Ne.y-1).key]={backfilled:!1},Mi[new Ie.OverscaledTileID(Ze.overscaledZ,Si,Ne.z,ui,Ne.y-1).key]={backfilled:!1}),Ne.y+1<Ge&&(Mi[new Ie.OverscaledTileID(Ze.overscaledZ,ai,Ne.z,Qe,Ne.y+1).key]={backfilled:!1},Mi[new Ie.OverscaledTileID(Ze.overscaledZ,Ze.wrap,Ne.z,Ne.x,Ne.y+1).key]={backfilled:!1},Mi[new Ie.OverscaledTileID(Ze.overscaledZ,Si,Ne.z,ui,Ne.y+1).key]={backfilled:!1}),Mi}unloadTile(Ze){Ze.demTexture&&this.map.painter.saveTileTexture(Ze.demTexture),Ze.fbo&&(Ze.fbo.destroy(),delete Ze.fbo),Ze.dem&&delete Ze.dem,delete Ze.neighboringTiles,Ze.state="unloaded"}},geojson:class extends Ie.Evented{constructor(Ze,Ne,Ge,Qe){super(),this.id=Ze,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._loaded=!1,this.actor=Ge.getActor(),this.setEventedParent(Qe),this._data=Ne.data,this._options=Ie.extend({},Ne),this._collectResourceTiming=Ne.collectResourceTiming,Ne.maxzoom!==void 0&&(this.maxzoom=Ne.maxzoom),Ne.type&&(this.type=Ne.type),Ne.attribution&&(this.attribution=Ne.attribution),this.promoteId=Ne.promoteId;const ai=Ie.EXTENT/this.tileSize;this.workerOptions=Ie.extend({source:this.id,cluster:Ne.cluster||!1,geojsonVtOptions:{buffer:(Ne.buffer!==void 0?Ne.buffer:128)*ai,tolerance:(Ne.tolerance!==void 0?Ne.tolerance:.375)*ai,extent:Ie.EXTENT,maxZoom:this.maxzoom,lineMetrics:Ne.lineMetrics||!1,generateId:Ne.generateId||!1},superclusterOptions:{maxZoom:Ne.clusterMaxZoom!==void 0?Ne.clusterMa
219xZoom:this.maxzoom-1,minPoints:Math.max(2,Ne.clusterMinPoints||2),extent:Ie.EXTENT,radius:(Ne.clusterRadius!==void 0?Ne.clusterRadius:50)*ai,log:!1,generateId:Ne.generateId||!1},clusterProperties:Ne.clusterProperties,filter:Ne.filter},Ne.workerOptions)}onAdd(Ze){this.map=Ze,this.setData(this._data)}setData(Ze){return this._data=Ze,this._updateWorkerData(),this}getClusterExpansionZoom(Ze,Ne){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:Ze,source:this.id},Ne),this}getClusterChildren(Ze,Ne){return this.actor.send("geojson.getClusterChildren",{clusterId:Ze,source:this.id},Ne),this}getClusterLeaves(Ze,Ne,Ge,Qe){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:Ze,limit:Ne,offset:Ge},Qe),this}_updateWorkerData(){if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new Ie.Event("dataloading",{dataType:"source"})),this._loaded=!1;const Ze=Ie.extend({},this.workerOptions),Ne=this._data;typeof Ne=="string"?(Ze.request=this.map._requestManager.transformRequest(Ie.exported.resolveURL(Ne),Ie.ResourceType.Source),Ze.request.collectResourceTiming=this._collectResourceTiming):Ze.data=JSON.stringify(Ne),this._pendingLoad=this.actor.send(`${this.type}.loadData`,Ze,(Ge,Qe)=>{if(this._loaded=!0,this._pendingLoad=null,Ge)this.fire(new Ie.ErrorEvent(Ge));else{const ai={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&Qe&&Qe.resourceTiming&&Qe.resourceTiming[this.id]&&(ai.resourceTiming=Qe.resourceTiming[this.id]),this.fire(new Ie.Event("data",ai)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)})}loaded(){return this._loaded}loadTile(Ze,Ne){const Ge=Ze.actor?"reloadTile":"loadTile";
219Ze.actor=this.actor,Ze.request=this.actor.send(Ge,{type:this.type,uid:Ze.uid,tileID:Ze.tileID,tileZoom:Ze.tileZoom,zoom:Ze.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:Ie.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(Qe,ai)=>(delete Ze.request,Ze.unloadVectorData(),Ze.aborted?Ne(null):Qe?Ne(Qe):(Ze.loadVectorData(ai,this.map.painter,Ge==="reloadTile"),Ne(null))),void 0,Ge==="loadTile")}abortTile(Ze){Ze.request&&(Ze.request.cancel(),delete Ze.request),Ze.aborted=!0}unloadTile(Ze){Ze.unloadVectorData(),this.actor.send("removeTile",{uid:Ze.uid,type:this.type,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return Ie.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends Es{constructor(Ze,Ne,Ge,Qe){super(Ze,Ne,Ge,Qe),this.roundZoom=!0,this.type="video",this.options=Ne}load(){this._loaded=!1;const Ze=this.options;this.urls=[];for(const Ne of Ze.urls)this.urls.push(this.map._requestManager.transformRequest(Ne,Ie.ResourceType.Source).url);Ie.getVideo(this.urls,(Ne,Ge)=>{this._loaded=!0,Ne?this.fire(new Ie.ErrorEvent(Ne)):Ge&&(this.video=Ge,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(Ze){if(this.video){const Ne=this.video.seekable;Ze<Ne.start(0)||Ze>Ne.end(0)?this.fire(new Ie.ErrorEvent(new Ie.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${Ne.start(0)} and ${Ne.end(0)}-second mark.`))):this.video.currentTime=Ze}}getVideo(){return this.video}onAdd(Ze){this.map||(this.map=Ze,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;const Ze=this.map.painter.context,Ne=Ze.gl;this.texture?this.video.paused||(this.texture.bind(Ne.LINEAR,Ne.CLAMP_TO_EDGE),Ne.texSubImage2D(Ne.TEXTURE_2D,0,0,0,Ne.RGBA,Ne.UNSIGNED_BYTE,this.video)):(this.texture=new Ie.Texture(Ze,this.video,Ne.RGBA),this.texture.bind(Ne.LINEAR,Ne.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(Ze)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:Es,canvas:class extends Es{constructor(Ze,Ne,Ge,Qe){super(Ze,Ne,Ge,Qe),Ne.co
219ordinates?Array.isArray(Ne.coordinates)&&Ne.coordinates.length===4&&!Ne.coordinates.some(ai=>!Array.isArray(ai)||ai.length!==2||ai.some(ui=>typeof ui!="number"))||this.fire(new Ie.ErrorEvent(new Ie.ValidationError(`sources.${Ze}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new Ie.ErrorEvent(new Ie.ValidationError(`sources.${Ze}`,null,'missing required property "coordinates"'))),Ne.animate&&typeof Ne.animate!="boolean"&&this.fire(new Ie.ErrorEvent(new Ie.ValidationError(`sources.${Ze}`,null,'optional "animate" property must be a boolean value'))),Ne.canvas?typeof Ne.canvas=="string"||Ne.canvas instanceof Ie.window.HTMLCanvasElement||this.fire(new Ie.ErrorEvent(new Ie.ValidationError(`sources.${Ze}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new Ie.ErrorEvent(new Ie.ValidationError(`sources.${Ze}`,null,'missing required property "canvas"'))),this.options=Ne,this.animate=Ne.animate===void 0||Ne.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof Ie.window.HTMLCanvasElement?this.options.canvas:Ie.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new Ie.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(Ze){this.map=Ze,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let Ze=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,Ze=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,Ze=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;const Ne=this.map.painter.context;this.texture?(Ze||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new Ie.Texture(Ne,this.canvas,Ne.gl.RGBA,{premultiply:!0}),this._prepareData(Ne)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const Ze of[this.canvas.width,this.canvas.height])if(isNaN(Ze)||Ze<=0)return!0;return!1}},custom:class extends Ie.Evented{constructor(Ze,Ne,Ge,Qe){super(),this.id=Ze,this.type="custom",this._dataType="raster",this._dispatcher=Ge,this._implementation=Ne,this.setEventedParent(Qe),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new Ie.ErrorEvent(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new Ie.ErrorEvent(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new ji(this._implementation.bounds,this.minzoom,this.maxzoom)),Ne.update=this._update.bind(this),Ne.clearTiles=this._clearTiles.bind(this),Ne.coveringTiles=this._coveringTiles.bind(this),Ie.extend(this,Ie.pick(Ne,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileCacheSize"]))}serialize(){return Ie.pick(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new Ie.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new Ie.Event("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(Ze){this._map=Ze,this._loaded=!1,this.fire(new Ie.Event("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(Ze),this.load()}onRemove(Ze){this._implementation.onRemove&&this._implementation.onRemove(Ze)}hasTile(Ze){if(this._implementation.hasTile){const{x:Ne,y:Ge,z:Qe}=Ze.canonical;return this._implementation.hasTile({x:Ne,y:Ge,z:Qe})}return!this.tileBounds||this.tileBounds.contains(Ze.canonical)}loadTile(Ze,Ne){const{x:Ge,y:Qe,z:ai}=Ze.tileID.canonical,ui=new Ie.window.AbortController;Ze.request=Promise.resolve(this._implementation.loadTile({x:Ge,y:Qe,z:ai},{signal:ui.signal})).then((function(Si){return delete Ze.request,Ze.aborted?(Ze.state="unloaded",Ne(null)):Si===void 0?(Ze.state="errored",Ne(null)):Si===null?(this.loadTileData(Ze,{width:this.tileSize,height:this.tileSize,data:null}),Ze.state="loaded",Ne(null)):function(Mi){return Mi instanceof Ie.window.ImageData||Mi instanceof Ie.window.HTMLCanvasElement||Mi instanceof Ie.window.ImageBitmap||Mi instanceof Ie.window.HTMLImageElement}(Si)?(this.loadTileData(Ze,Si),Ze.state="loaded",void Ne(null)):(Ze.state="errored",Ne(ne
219w Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`)))}).bind(this)).catch(Si=>{Si.code!==20&&(Ze.state="errored",Ne(Si))}),Ze.request.cancel=()=>ui.abort()}loadTileData(Ze,Ne){wr.loadTileData(Ze,Ne,this._map.painter)}unloadTileData(Ze){wr.unloadTileData(Ze,this._map.painter)}unloadTile(Ze,Ne){if(this.unloadTileData(Ze),this._implementation.unloadTile){const{x:Ge,y:Qe,z:ai}=Ze.tileID.canonical;this._implementation.unloadTile({x:Ge,y:Qe,z:ai})}Ne()}abortTile(Ze,Ne){Ze.request&&Ze.request.cancel&&(Ze.request.cancel(),delete Ze.request),Ne()}hasTransition(){return!1}_coveringTiles(){return this._map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map(Ze=>({x:Ze.canonical.x,y:Ze.canonical.y,z:Ze.canonical.z}))}_clearTiles(){this._map.style._clearSource(this.id)}_update(){this.fire(new Ie.Event("data",{dataType:"source",sourceDataType:"content"}))}}},xo=function(Ze,Ne,Ge,Qe){const ai=new Hs[Ne.type](Ze,Ne,Ge,Qe);if(ai.id!==Ze)throw new Error(`Expected Source id to be ${Ze} instead of ${ai.id}`);return Ie.bindAll(["load","abort","unload","serialize","prepare"],ai),ai};function wo(Ze,Ne){const Ge=Ie.identity([]);return Ie.scale(Ge,Ge,[.5*Ze.width,.5*-Ze.height,1]),Ie.translate(Ge,Ge,[1,-1,0]),Ie.multiply(Ge,Ge,Ze.calculateProjMatrix(Ne.toUnwrapped())),Float32Array.from(Ge)}function ga(Ze,Ne,Ge,Qe,ai,ui,Si,Mi=!1){const Fi=Ze.tilesIn(Qe,Si,Mi);Fi.sort(tl);const qi=[];for(const hn of Fi)qi.push({wrappedTileID:hn.tile.tileID.wrapped().key,queryResults:hn.tile.queryRenderedFeatures(Ne,Ge,Ze._state,hn,ai,ui,wo(Ze.transform,hn.tile.tileID),Mi)});const Xi=function(hn){const Dn={},In={};for(const On of hn){const Bn=On.queryResults,Vn=On.wrappedTileID,pn=In[Vn]=In[Vn]||{};for(const Pn in Bn){const Jn=Bn[Pn],qn=pn[Pn]=pn[Pn]||{},gr=Dn[Pn]=Dn[Pn]||[];for(const vr of Jn)qn[vr.featureIndex]||(qn[vr.featureIndex]=!0,gr.push(vr))}}return Dn}(qi);for(const hn in Xi)Xi[hn].forEach(Dn=>{const In=Dn.feature,On=In.layer;On&&On.type!=="background"&&On.type!=="sky"&&(In.source=On.source,On["source-layer"]&&(In.sourceLayer=On["source-layer"]),In.state=In.id!==void 0?Ze.getFeatureState(On["source-layer"],In.id):{})});return Xi}function _a(Ze,Ne){const Ge=Ze.getRenderableIds().map(ui=>Ze.getTileByID(ui)),Qe=[],ai={};for(let ui=0;ui<Ge.length;ui++){const Si=Ge[ui],Mi=Si.tileID.canonical.key;ai[Mi]||(ai[Mi]=!0,Si.querySourceFeatures(Qe,Ne))}return Qe}function tl(Ze,Ne){const Ge=Ze.tileID,Qe=Ne.tileID;return Ge.overscaledZ-Qe.overscaledZ||Ge.canonical.y-Qe.canonical.y||Ge.wrap-Qe.wrap||Ge.canonical.x-Qe.canonical.x}function Lo(){return qh.workerClass!=null?new qh.workerClass:new Ie.window.Worker(qh.workerUrl)}const za="mapboxgl_preloaded_worker_pool";class ul{constructor(){this.active={}}acquire(Ne){if(!this.workers)for(this.workers=[];this.workers.length<ul.workerCount;)this.workers.push(new Lo);return this.active[Ne]=!0,this.workers.slice()}release(Ne){delete this.active[Ne],this.numActive()===0&&(this.workers.forEach(Ge=>{Ge.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[za]}numActive(){return Object.keys(this.active).length}}let Ba;function dl(){return Ba||(Ba=new ul),Ba}function lu(Ze,Ne){const Ge={};for(const Qe in Ze)Qe!=="ref"&&(Ge[Qe]=Ze[Qe]);return Ie.refProperties.forEach(Qe=>{Qe in Ne&&(Ge[Qe]=Ne[Qe])}),Ge}function dp(Ze){Ze=Ze.slice();const Ne=Object.create(null);for(let Ge=0;Ge<Ze.length;Ge++)Ne[Ze[Ge].id]=Ze[Ge];for(let Ge=0;Ge<Ze.length;Ge++)"ref"in Ze[Ge]&&(Ze[Ge]=lu(Ze[Ge],Ne[Ze[Ge].ref]));return Ze}ul.workerCount=2;const ca={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight",setTerrain:"setTerrain",setFog:"setFog",setProjection:"setProjection"};function hp(Ze,Ne,Ge){Ge.push({command:ca.addSource,args:[Ze,Ne[Ze]]})}function ld(Ze,Ne,Ge){Ne.push({command:ca.removeSource,args:[Ze]}),Ge[Ze]=!0}function Id(Ze,Ne,Ge,Qe){ld(Ze,Ge,Qe),hp(Ze,Ne,Ge)}function xu(Ze,Ne,Ge){let Qe;for(Qe in Ze[Ge])if(Ze[Ge].hasOwnProperty(Qe)&&Qe!=="data"&&!je(Ze[Ge][Qe],Ne[Ge][Qe]))return!1;for(Qe in Ne[Ge])if(Ne[Ge].hasOwnProperty(Qe)&&Qe!=="data"&&!je(Ze[Ge][Qe],Ne[Ge][Qe]))return!1;return!0}function wu(Ze,Ne,Ge,Qe,ai,ui){let Si;for(Si in Ne=Ne||{},Ze=Ze||{})Ze.hasOwnProperty(Si)&&(je(Ze[Si],Ne[Si])||Ge.push({command:ui,args:[Qe,Si,Ne[Si],ai]}));for(Si in Ne)Ne.hasOwnProperty(Si)&&!Ze.hasOwnProperty(Si)&&(je(Ze[Si],Ne[Si])||Ge.push({command:ui,args:[Qe,Si,Ne[Si],ai]}))}function Ru(Ze){return Ze.id}function kc(Ze,Ne){return Ze[Ne.id]=Ne,Ze}class Rd{constructor(Ne,Ge){this.reset(Ne,Ge)}reset(Ne,Ge){this.points=Ne||[],this._distances=[0];for(let Qe=1;Qe<this.points.length;Qe++)this._distances[Qe]=this._distances[Qe-1]+this.points[Qe].dist(this.points[Qe-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(Ge||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(Ne){if(this.points.length===1)return this.points[0];Ne=Ie.clamp(Ne,0,1);let Ge=1,Qe=this._distances[Ge];const ai=Ne*this.paddedLength+this.padding;
vendor: 4,875 bytes, line 219
219for(;Qe<ai&&Ge<this._distances.length;)Qe=this._distances[++Ge];const ui=Ge-1,Si=this._distances[ui],Mi=Qe-Si,Fi=Mi>0?(ai-Si)/Mi:0;return this.points[ui].mult(1-Fi).add(this.points[Ge].mult(Fi))}}class Zu{constructor(Ne,Ge,Qe){const ai=this.boxCells=[],ui=this.circleCells=[];this.xCellCount=Math.ceil(Ne/Qe),this.yCellCount=Math.ceil(Ge/Qe);for(let Si=0;Si<this.xCellCount*this.yCellCount;Si++)ai.push([]),ui.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=Ne,this.height=Ge,this.xScale=this.xCellCount/Ne,this.yScale=this.yCellCount/Ge,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(Ne,Ge,Qe,ai,ui){this._forEachCell(Ge,Qe,ai,ui,this._insertBoxCell,this.boxUid++),this.boxKeys.push(Ne),this.bboxes.push(Ge),this.bboxes.push(Qe),this.bboxes.push(ai),this.bboxes.push(ui)}insertCircle(Ne,Ge,Qe,ai){this._forEachCell(Ge-ai,Qe-ai,Ge+ai,Qe+ai,this._insertCircleCell,this.circleUid++),this.circleKeys.push(Ne),this.circles.push(Ge),this.circles.push(Qe),this.circles.push(ai)}_insertBoxCell(Ne,Ge,Qe,ai,ui,Si){this.boxCells[ui].push(Si)}_insertCircleCell(Ne,Ge,Qe,ai,ui,Si){this.circleCells[ui].push(Si)}_query(Ne,Ge,Qe,ai,ui,Si){if(Qe<0||Ne>this.width||ai<0||Ge>this.height)return!ui&&[];const Mi=[];if(Ne<=0&&Ge<=0&&this.width<=Qe&&this.height<=ai){if(ui)return!0;for(let Fi=0;Fi<this.boxKeys.length;Fi++)Mi.push({key:this.boxKeys[Fi],x1:this.bboxes[4*Fi],y1:this.bboxes[4*Fi+1],x2:this.bboxes[4*Fi+2],y2:this.bboxes[4*Fi+3]});for(let Fi=0;Fi<this.circleKeys.length;Fi++){const qi=this.circles[3*Fi],Xi=this.circles[3*Fi+1],hn=this.circles[3*Fi+2];Mi.push({key:this.circleKeys[Fi],x1:qi-hn,y1:Xi-hn,x2:qi+hn,y2:Xi+hn})}return Si?Mi.filter(Si):Mi}return this._forEachCell(Ne,Ge,Qe,ai,this._queryCell,Mi,{hitTest:ui,seenUids:{box:{},circle:{}}},Si),ui?Mi.length>0:Mi}_queryCircle(Ne,Ge,Qe,ai,ui){const Si=Ne-Qe,Mi=Ne+Qe,Fi=Ge-Qe,qi=Ge+Qe;if(Mi<0||Si>this.width||qi<0||Fi>this.height)return!ai&&[];const Xi=[];return this._forEachCell(Si,Fi,Mi,qi,this._queryCellCircle,Xi,{hitTest:ai,circle:{x:Ne,y:Ge,radius:Qe},seenUids:{box:{},circle:{}}},ui),ai?Xi.length>0:Xi}query(Ne,Ge,Qe,ai,ui){return this._query(Ne,Ge,Qe,ai,!1,ui)}hitTest(Ne,Ge,Qe,ai,ui){return this._query(Ne,Ge,Qe,ai,!0,ui)}hitTestCircle(Ne,Ge,Qe,ai){return this._queryCircle(Ne,Ge,Qe,!0,ai)}_queryCell(Ne,Ge,Qe,ai,ui,Si,Mi,Fi){const qi=Mi.seenUids,Xi=this.boxCells[ui];if(Xi!==null){const Dn=this.bboxes;for(const In of Xi)if(!qi.box[In]){qi.box[In]=!0;const On=4*In;if(Ne<=Dn[On+2]&&Ge<=Dn[On+3]&&Qe>=Dn[On+0]&&ai>=Dn[On+1]&&(!Fi||Fi(this.boxKeys[In]))){if(Mi.hitTest)return Si.push(!0),!0;Si.push({key:this.boxKeys[In],x1:Dn[On],y1:Dn[On+1],x2:Dn[On+2],y2:Dn[On+3]})}}}const hn=this.circleCells[ui];if(hn!==null){const Dn=this.circles;for(const In of hn)if(!qi.circle[In]){qi.circle[In]=!0;const On=3*In;if(this._circleAndRectCollide(Dn[On],Dn[On+1],Dn[On+2],Ne,Ge,Qe,ai)&&(!Fi||Fi(this.circleKeys[In]))){if(Mi.hitTest)return Si.push(!0),!0;{const Bn=Dn[On],Vn=Dn[On+1],pn=Dn[On+2];Si.push({key:this.circleKeys[In],x1:Bn-pn,y1:Vn-pn,x2:Bn+pn,y2:Vn+pn})}}}}}_queryCellCircle(Ne,Ge,Qe,ai,ui,Si,Mi,Fi){const qi=Mi.circle,Xi=Mi.seenUids,hn=this.boxCells[ui];if(hn!==null){const In=this.bboxes;for(const On of hn)if(!Xi.box[On]){Xi.box[On]=!0;const Bn=4*On;if(this._circleAndRectCollide(qi.x,qi.y,qi.radius,In[Bn+0],In[Bn+1],In[Bn+2],In[Bn+3])&&(!Fi||Fi(this.boxKeys[On])))return Si.push(!0),!0}}const Dn=this.circleCells[ui];if(Dn!==null){const In=this.circles;for(const On of Dn)if(!Xi.circle[On]){Xi.circle[On]=!0;const Bn=3*On;if(this._circlesCollide(In[Bn],In[Bn+1],In[Bn+2],qi.x,qi.y,qi.radius)&&(!Fi||Fi(this.circleKeys[On])))return Si.push(!0),!0}}}_forEachCell(Ne,Ge,Qe,ai,ui,Si,Mi,Fi){const qi=this._convertToXCellCoord(Ne),Xi=this._convertToYCellCoord(Ge),hn=this._convertToXCellCoord(Qe),Dn=this._convertToYCellCoord(ai);for(let In=qi;In<=hn;In++)for(let On=Xi;On<=Dn;On++)if(ui.call(this,Ne,Ge,Qe,ai,this.xCellCount*On+In,Si,Mi,Fi))return}_convertToXCellCoord(Ne){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(Ne*this.xScale)))}_convertToYCellCoord(Ne){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(Ne*this.yScale)))}_circlesCollide(Ne,Ge,Qe,ai,ui,Si){const Mi=ai-Ne,Fi=ui-Ge,qi=Qe+Si;return qi*qi>Mi*Mi+Fi*Fi}_circleAndRectCollide(Ne,Ge,Qe,ai,ui,Si,Mi){const Fi=(Si-ai)/2,qi=Math.abs(Ne-(ai+Fi));if(qi>Fi+Qe)return!1;const Xi=(Mi-ui)/2,hn=Math.abs(Ge-(ui+Xi));if(hn>Xi+Qe)return!1;if(qi<=Fi||hn<=Xi)return!0;const Dn=qi-Fi,In=hn-Xi;return Dn*Dn+In*In<=Qe*Qe}}const Gc={unknown:0,flipRequired:1,flipNotRequired:2},rh=Math.tan(85*Math.PI/180);function rs(Ze,Ne,Ge,Qe,ai,ui,Si){const Mi=Ie.create();if(Ge)if(ui.name==="globe"){const Fi=Ie.calculateGlobeLabelMatrix(ai,Ne);Ie.multiply(Mi,Mi,Fi)}else{const Fi=Gi([],Si);Mi[0]=Fi[0],Mi[1]=Fi[1],Mi[4]=Fi[2],Mi[5]=Fi[3],Qe||Ie.rotateZ(Mi,Mi,ai.angle)}
219else Ie.multiply(Mi,ai.labelPlaneMatrix,Ze);return Mi}function Ou(Ze,Ne,Ge,Qe,ai,ui,Si){const Mi=rs(Ze,Ne,Ge,Qe,ai,ui,Si);return ui.name==="globe"&&Ge||(Mi[2]=Mi[6]=Mi[10]=Mi[14]=0),Mi}function hl(Ze,Ne,Ge,Qe,ai,ui,Si){if(Ge){if(ui.name==="globe"){const Mi=rs(Ze,Ne,Ge,Qe,ai,ui,Si);return Ie.invert(Mi,Mi),Ie.multiply(Mi,Ze,Mi),Mi}{const Mi=Ie.clone(Ze),Fi=Ie.identity([]);return Fi[0]=Si[0],Fi[1]=Si[1],Fi[4]=Si[2],Fi[5]=Si[3],Ie.multiply(Mi,Mi,Fi),Qe||Ie.rotateZ(Mi,Mi,-ai.angle),Mi}}return ai.glCoordMatrix}function il(Ze,Ne,Ge,Qe){const ai=[Ze,Ne,Ge,1];Ge?Ie.transformMat4$1(ai,ai,Qe):Po(ai,ai,Qe);const ui=ai[3];return ai[0]/=ui,ai[1]/=ui,ai[2]/=ui,ai}function _c(Ze,Ne){return Math.min(.5+Ze/Ne*.5,1.5)}function sc(Ze,Ne){const Ge=Ze[0]/Ze[3],Qe=Ze[1]/Ze[3];return Ge>=-Ne[0]&&Ge<=Ne[0]&&Qe>=-Ne[1]&&Qe<=Ne[1]}function jl(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi){const Xi=Ge.transform,hn=Qe?Ze.textSizeData:Ze.iconSizeData,Dn=Ie.evaluateSizeForZoom(hn,Ge.transform.zoom),In=Xi.projection.name==="globe",On=[256/Ge.width*2+1,256/Ge.height*2+1],Bn=Qe?Ze.text.dynamicLayoutVertexArray:Ze.icon.dynamicLayoutVertexArray;Bn.clear();let Vn=null;In&&(Vn=Qe?Ze.text.globeExtVertexArray:Ze.icon.globeExtVertexArray);const pn=Ze.lineVertexArray,Pn=Qe?Ze.text.placedSymbolArray:Ze.icon.placedSymbolArray,Jn=Ge.transform.width/Ge.transform.height;let qn,gr=!1;for(let vr=0;vr<Pn.length;vr++){const dr=Pn.get(vr),{numGlyphs:$r,writingMode:Pr}=dr;if(Pr!==Ie.WritingMode.vertical||gr||qn===Ie.WritingMode.horizontal||(gr=!0),qn=Pr,(dr.hidden||Pr===Ie.WritingMode.vertical)&&!gr){cu($r,Bn);continue}gr=!1;const Vr=new Ie.Point(dr.tileAnchorX,dr.tileAnchorY);let{x:Ds,y:zr,z:cs}=Xi.projection.projectTilePoint(Vr.x,Vr.y,qi.canonical);if(Fi){const[ko,Js,_o]=Fi(Vr);Ds+=ko,zr+=Js,cs+=_o}const Xr=[Ds,zr,cs,1];if(Ie.transformMat4$1(Xr,Xr,Ne),!sc(Xr,On)){cu($r,Bn);continue}const ss=_c(Ge.transform.cameraToCenterDistance,Xr[3]),Lr=Ie.evaluateSizeForFeature(hn,Dn,dr),ns=Si?Lr/ss:Lr*ss,Ss=il(Ds,zr,cs,ai);if(Ss[3]<=0){cu($r,Bn);continue}let ds={};const Is=Si?null:Fi,ho=js(dr,ns,!1,Mi,Ne,ai,ui,Ze.glyphOffsetArray,pn,Bn,Vn,Ss,Vr,ds,Jn,Is,Xi.projection,qi,Si);gr=ho.useVertical,Is&&ho.needsFlipping&&(ds={}),(ho.notEnoughRoom||gr||ho.needsFlipping&&js(dr,ns,!0,Mi,Ne,ai,ui,Ze.glyphOffsetArray,pn,Bn,Vn,Ss,Vr,ds,Jn,Is,Xi.projection,qi,Si).notEnoughRoom)&&cu($r,Bn)}Qe?(Ze.text.dynamicLayoutVertexBuffer.updateData(Bn),Vn&&Ze.text.globeExtVertexBuffer.updateData(Vn)):(Ze.icon.dynamicLayoutVertexBuffer.updateData(Bn),Vn&&Ze.icon.globeExtVertexBuffer.updateData(Vn))}function sh(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi,hn,Dn,In,On,Bn){const{lineStartIndex:Vn,glyphStartIndex:pn,segment:Pn}=Mi,Jn=pn+Mi.numGlyphs,qn=Vn+Mi.lineLength,gr=Ne.getoffsetX(pn),vr=Ne.getoffsetX(Jn-1),dr=bc(Ze*gr,Ge,Qe,ai,ui,Si,Pn,Vn,qn,Fi,qi,Xi,hn,Dn,!0,In,On,Bn);if(!dr)return null;const $r=bc(Ze*vr,Ge,Qe,ai,ui,Si,Pn,Vn,qn,Fi,qi,Xi,hn,Dn,!0,In,On,Bn);return $r?{first:dr,last:$r}:null}function oa(Ze,Ne,Ge,Qe){return Ze===Ie.WritingMode.horizontal&&Math.abs(Qe)>Math.abs(Ge)?{useVertical:!0}:Ze===Ie.WritingMode.vertical?Qe>0?{needsFlipping:!0}:null:Ne!==Gc.unknown&&function(ai,ui){return ai===0||Math.abs(ui/ai)>rh}(Ge,Qe)?Ne===Gc.flipRequired?{needsFlipping:!0}:null:Ge<0?{needsFlipping:!0}:null}function js(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi,hn,Dn,In,On,Bn,Vn,pn,Pn){const Jn=Ne/24,qn=Ze.lineOffsetX*Jn,gr=Ze.lineOffsetY*Jn,{lineStartIndex:vr,glyphStartIndex:dr,numGlyphs:$r,segment:Pr,writingMode:Vr,flipState:Ds}=Ze,zr=vr+Ze.lineLength,cs=Xr=>{if(Xi){const[Ss,ds,Is]=Xr.up,ho=qi.length;Ie.updateGlobeVertexNormal(Xi,ho+0,Ss,ds,Is),Ie.updateGlobeVertexNormal(Xi,ho+1,Ss,ds,Is),Ie.updateGlobeVertexNormal(Xi,ho+2,Ss,ds,Is),Ie.updateGlobeVertexNormal(Xi,ho+3,Ss,ds,Is)}const[ss,Lr,ns]=Xr.point;Ie.addDynamicAttributes(qi,ss,Lr,ns,Xr.angle)};if($r>1){const Xr=sh(Jn,Mi,qn,gr,Ge,hn,Dn,Ze,Fi,ui,In,Bn,!1,Vn,pn,Pn);if(!Xr)return{notEnoughRoom:!0};if(Qe&&!Ge){let[ss,Lr,ns]=Xr.first.point,[Ss,ds,Is]=Xr.last.point;[ss,Lr]=il(ss,Lr,ns,Si),[Ss,ds]=il(Ss,ds,Is,Si);const ho=oa(Vr,Ds,(Ss-ss)*On,ds-Lr);if(Ze.flipState=ho&&ho.needsFlipping?Gc.flipRequired:Gc.flipNotRequired,ho)return ho}cs(Xr.first);for(let ss=dr+1;ss<dr+$r-1;ss++){const Lr=bc(Jn*Mi.getoffsetX(ss),qn,gr,Ge,hn,Dn,Pr,vr,zr,Fi,ui,In,Bn,!1,!1,Vn,pn,Pn);if(!Lr)return qi.length-=4*(ss-dr),{notEnoughRoom:!0};cs(Lr)}cs(Xr.last)}else{if(Qe&&!Ge){const ss=il(Dn.x,Dn.y,0,ai),Lr=vr+Pr+1,ns=new Ie.Point(Fi.getx(Lr),Fi.gety(Lr)),Ss=il(ns.x,ns.y,0,ai),ds=Ss[3]>0?Ss:$o(Dn,ns,ss,1,ai,void 0,Vn,pn.canonical),Is=oa(Vr,Ds,(ds[0]-ss[0])*On,ds[1]-ss[1]);if(Ze.flipState=Is&&Is.needsFlipping?Gc.flipRequired:Gc.flipNotRequired,Is)return Is}const Xr=bc(Jn*Mi.getoffsetX(dr),qn,gr,Ge,hn,Dn,Pr,vr,zr,Fi,ui,In,Bn,!1,!1,Vn,pn,Pn);if(!Xr)return{notEnoughRoom:!0};cs(Xr)}return{}}function Zo(Ze,Ne,Ge,Qe,ai){const{x:ui,y:Si,z:Mi}=Qe.projectTilePoint(Ze.x,Ze.y,Ne);if(!ai)return il(ui,Si,Mi,Ge);const[Fi,qi,Xi]=ai(Ze);return il(ui+Fi,Si+qi,Mi+Xi,Ge)}function $o(Ze,Ne,Ge,Qe,ai,ui,Si,Mi){const Fi=Zo(Ze.sub(Ne)._unit()._add(Ze),Mi,ai,Si,ui);return Ie.sub(Fi,Ge,Fi),Ie.normalize(Fi,Fi),Ie.scaleAndAdd(Fi,Ge,Fi,Qe)}function bc(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi,hn,Dn,In,On,Bn,Vn,pn){const Pn=
vendor: 21,848 bytes, line 219
219Qe?Ze-Ne:Ze+Ne;let Jn=Pn>0?1:-1,qn=0;Qe&&(Jn*=-1,qn=Math.PI),Jn<0&&(qn+=Math.PI);let gr=Mi+Si+(Jn>0?0:1)|0,vr=ai,dr=ai,$r=0,Pr=0;const Vr=Math.abs(Pn),Ds=[],zr=[];let cs=ui,Xr=cs;const ss=()=>$o(Xr,cs,dr,Vr-$r+1,Xi,Dn,Bn,Vn.canonical);for(;$r+Pr<=Vr;){if(gr+=Jn,gr<Mi||gr>=Fi)return null;if(dr=vr,Xr=cs,Ds.push(dr),In&&zr.push(Xr),cs=new Ie.Point(qi.getx(gr),qi.gety(gr)),vr=hn[gr],!vr){const _o=Zo(cs,Vn.canonical,Xi,Bn,Dn);vr=_o[3]>0?hn[gr]=_o:ss()}$r+=Pr,Pr=Ie.distance(dr,vr)}On&&Dn&&(hn[gr]&&(vr=ss(),Pr=Ie.distance(dr,vr)),hn[gr]=vr);const Lr=(Vr-$r)/Pr,ns=cs.sub(Xr)._mult(Lr)._add(Xr),Ss=Ie.sub([],vr,dr),ds=Ie.scaleAndAdd([],dr,Ss,Lr);let Is=[0,0,1],ho=Ss[0],ko=Ss[1];if(pn&&(Is=Bn.upVector(Vn.canonical,ns.x,ns.y),Is[0]!==0||Is[1]!==0||Is[2]!==1)){const _o=[Is[2],0,-Is[0]],ia=Ie.cross([],Is,_o);Ie.normalize(_o,_o),Ie.normalize(ia,ia),ho=Ie.dot(Ss,_o),ko=Ie.dot(Ss,ia)}if(Ge){const _o=Ie.cross([],Is,Ss);Ie.normalize(_o,_o),Ie.scaleAndAdd(ds,ds,_o,Ge*Jn)}const Js=qn+Math.atan2(ko,ho);return Ds.push(ds),In&&zr.push(ns),{point:ds,angle:Js,path:Ds,tilePath:zr,up:Is}}function cu(Ze,Ne){const Ge=Ne.length,Qe=Ge+4*Ze;Ne.resize(Qe),Ne.float32.fill(-1/0,4*Ge,4*Qe)}function Po(Ze,Ne,Ge){const Qe=Ne[0],ai=Ne[1];return Ze[0]=Ge[0]*Qe+Ge[4]*ai+Ge[12],Ze[1]=Ge[1]*Qe+Ge[5]*ai+Ge[13],Ze[3]=Ge[3]*Qe+Ge[7]*ai+Ge[15],Ze}const ja=100;class Od{constructor(Ne,Ge,Qe=new Zu(Ne.width+200,Ne.height+200,25),ai=new Zu(Ne.width+200,Ne.height+200,25)){this.transform=Ne,this.grid=Qe,this.ignoredGrid=ai,this.pitchfactor=Math.cos(Ne._pitch)*Ne.cameraToCenterDistance,this.screenRightBoundary=Ne.width+ja,this.screenBottomBoundary=Ne.height+ja,this.gridRightBoundary=Ne.width+200,this.gridBottomBoundary=Ne.height+200,this.fogState=Ge}placeCollisionBox(Ne,Ge,Qe,ai,ui,Si,Mi,Fi){let qi=Qe.projectedAnchorX,Xi=Qe.projectedAnchorY,hn=Qe.projectedAnchorZ;const Dn=Qe.elevation,In=Qe.tileID,On=Ne.getProjection();if(Dn&&In){const[vr,dr,$r]=On.upVector(In.canonical,Qe.tileAnchorX,Qe.tileAnchorY),Pr=On.upVectorScale(In.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;qi+=vr*Dn*Pr,Xi+=dr*Dn*Pr,hn+=$r*Dn*Pr}const Bn=this.projectAndGetPerspectiveRatio(Mi,qi,Xi,hn,Qe.tileID,On.name==="globe"||!!Dn||this.transform.pitch>0,On),Vn=Si*Bn.perspectiveRatio,pn=(Qe.x1*Ge+ai.x-Qe.padding)*Vn+Bn.point.x,Pn=(Qe.y1*Ge+ai.y-Qe.padding)*Vn+Bn.point.y,Jn=(Qe.x2*Ge+ai.x+Qe.padding)*Vn+Bn.point.x,qn=(Qe.y2*Ge+ai.y+Qe.padding)*Vn+Bn.point.y,gr=Bn.perspectiveRatio<=.55||Bn.occluded;return!this.isInsideGrid(pn,Pn,Jn,qn)||!ui&&this.grid.hitTest(pn,Pn,Jn,qn,Fi)||gr?{box:[],offscreen:!1,occluded:Bn.occluded}:{box:[pn,Pn,Jn,qn],offscreen:this.isOffscreen(pn,Pn,Jn,qn),occluded:!1}}placeCollisionCircles(Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi,hn,Dn,In,On,Bn){const Vn=[],pn=this.transform.elevation,Pn=Ne.getProjection(),Jn=pn?pn.getAtTileOffsetFunc(Bn,this.transform.center.lat,this.transform.worldSize,Pn):null,qn=new Ie.Point(Qe.tileAnchorX,Qe.tileAnchorY);let{x:gr,y:vr,z:dr}=Pn.projectTilePoint(qn.x,qn.y,Bn.canonical);if(Jn){const[ns,Ss,ds]=Jn(qn);gr+=ns,vr+=Ss,dr+=ds}const $r=Pn.name==="globe",Pr=this.projectAndGetPerspectiveRatio(Mi,gr,vr,dr,Bn,$r||!!pn||this.transform.pitch>0,Pn),{perspectiveRatio:Vr}=Pr,Ds=(hn?Si/Vr:Si*Vr)/Ie.ONE_EM,zr=il(gr,vr,dr,Fi),cs=Pr.signedDistanceFromCamera>0?sh(Ds,ui,Qe.lineOffsetX*Ds,Qe.lineOffsetY*Ds,!1,zr,qn,Qe,ai,Fi,{},pn&&!hn?Jn:null,hn&&!!pn,Pn,Bn,hn):null;let Xr=!1,ss=!1,Lr=!0;if(cs&&!Pr.occluded){const ns=.5*In*Vr+On,Ss=new Ie.Point(-100,-100),ds=new Ie.Point(this.screenRightBoundary,this.screenBottomBoundary),Is=new Rd,{first:ho,last:ko}=cs,Js=ho.path.length;let _o=[];for(let lo=Js-1;lo>=1;lo--)_o.push(ho.path[lo]);for(let lo=1;lo<ko.path.length;lo++)_o.push(ko.path[lo]);const ia=2.5*ns;qi&&(_o=_o.map(([lo,Ea,Va],Pa)=>(Jn&&!$r&&(Va=Jn(Pa<Js-1?ho.tilePath[Js-1-Pa]:ko.tilePath[Pa-Js+2])[2]),il(lo,Ea,Va,qi))),_o.some(lo=>lo[3]<=0)&&(_o=[]));let No=[];if(_o.length>0){let lo=1/0,Ea=-1/0,Va=1/0,Pa=-1/0;for(const ha of _o)lo=Math.min(lo,ha[0]),Va=Math.min(Va,ha[1]),Ea=Math.max(Ea,ha[0]),Pa=Math.max(Pa,ha[1]);Ea>=Ss.x&&lo<=ds.x&&Pa>=Ss.y&&Va<=ds.y&&(No=[_o.map(ha=>new Ie.Point(ha[0],ha[1]))],(lo<Ss.x||Ea>ds.x||Va<Ss.y||Pa>ds.y)&&(No=Ie.clipLine(No,Ss.x,Ss.y,ds.x,ds.y)))}for(const lo of No){Is.reset(lo,.25*ns);let Ea=0;Ea=Is.length<=.5*ns?1:Math.ceil(Is.paddedLength/ia)+1;for(let Va=0;Va<Ea;Va++){const Pa=Va/Math.max(Ea-1,1),ha=Is.lerp(Pa),Hl=ha.x+ja,Wl=ha.y+ja;Vn.push(Hl,Wl,ns,0);const gu=Hl-ns,Hu=Wl-ns,rl=Hl+ns,Ha=Wl+ns;if(Lr=Lr&&this.isOffscreen(gu,Hu,rl,Ha),ss=ss||this.isInsideGrid(gu,Hu,rl,Ha),!Ge&&this.grid.hitTestCircle(Hl,Wl,ns,Dn)&&(Xr=!0,!Xi))return{circles:[],offscreen:!1,collisionDetected:Xr,occluded:!1}}}}return{circles:!Xi&&Xr||!ss?[]:Vn,offscreen:Lr,collisionDetected:Xr,occluded:Pr.occluded}}queryRenderedSymbols(Ne){if(Ne.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};const Ge=[];let Qe=1/0,ai=1/0,ui=-1/0,Si=-1/0;for(const Xi of Ne){const hn=new Ie.Point(Xi.x+ja,Xi.y+ja);Qe=Math.min(Qe,hn.x),ai=Math.min(ai,hn.y),ui=Math.max(ui,hn.x),Si=Math.max(Si,hn.y),Ge.push(hn)}const Mi=this.grid.query(Qe,ai,ui,Si).concat(this.ignoredGrid.query(Qe,ai,ui,Si)),Fi={},qi={};for(const Xi of Mi){const hn=Xi.key;if(Fi[hn.bucketInstanceId]===void 0&&(Fi[hn.bucketInstanceId]={}),Fi[hn.bucketInstanceId][hn.featureIndex])continue;const Dn=[new Ie.Point(Xi.x1,Xi.y1),new Ie.Point(Xi.x2,Xi.y1),new Ie.Point(Xi.x2,Xi.y2),new Ie.Point(Xi.x1,Xi.y2)];Ie.polygonIntersectsPolygon(Ge,Dn)&&(Fi[hn.bucketInstanceId][hn.featureIndex]=!0,qi[hn.bucketInstanceId]===void 0&&(qi[hn.bucketInstanceId]=[]),qi[hn.bucketInstanceId].push(hn.featureIndex))}return qi}insertCollisionBox(Ne,Ge,Qe,ai,ui){(Ge?this.ignoredGrid:this.grid).insert({bucketInstanceId:Qe,featureIndex:ai,collisionGroupID:ui},Ne[0],Ne[1],Ne[2],Ne[3])}insertCollisionCircles(Ne,Ge,Qe,ai,ui){const Si=Ge?this.ignoredGrid:this.grid,Mi={bucketInstanceId:Qe,featureIndex:ai,collisionGroupID:ui};for(let Fi=0;Fi<Ne.length;Fi+=4)Si.insertCircle(Mi,Ne[Fi],Ne[Fi+1],Ne[Fi+2])}projectAndGetPerspectiveRatio(Ne,Ge,Qe,ai,ui,Si,Mi){const Fi=[Ge,Qe,ai,1];let qi=!1;ai||this.transform.pitch>0?(Ie.transformMat4$1(Fi,Fi,Ne),this.fogState&&ui&&Mi.name!=="globe"&&(qi=function(Dn,In,On,Bn,Vn,pn){const Pn=pn.calculateFogTileMatrix(Vn),Jn=[In,On,Bn];return Ie.transformMat4(Jn,Jn,Pn),xr(Dn,Jn,pn.pitch,pn._fov)}(this.fogState,Ge,Qe,ai,ui.toUnwrapped(),this.transform)>.9)):Po(Fi,Fi,Ne);const Xi=Fi[3];return{point:new Ie.Point((Fi[0]/Xi+1)/2*this.transform.width+ja,(-Fi[1]/Xi+1)/2*this.transform.height+ja),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(Mi)/Xi*.5,1.5),signedDistanceFromCamera:Xi,occluded:Si&&Fi[2]>Xi||qi}}isOffscreen(Ne,Ge,Qe,ai){return Qe<ja||Ne>=this.screenRightBoundary||ai<ja||Ge>this.screenBottomBoundary}isInsideGrid(Ne,Ge,Qe,ai){return Qe>=0&&Ne<this.gridRightBoundary&&ai>=0&&Ge<this.gridBottomBoundary}getViewportMatrix(){const Ne=Ie.identity([]);return Ie.translate(Ne,Ne,[-100,-100,0]),Ne}}function Pc(Ze,Ne,Ge){const Qe=Ne.createTileMatrix(Ze,Ze.worldSize,Ge.toUnwrapped());return Ie.multiply(new Float32Array(16),Ze.projMatrix,Qe)}function xc(Ze,Ne,Ge){if(Ne.projection.name===Ge.projection.name)return Ze.projMatrix;const Qe=Ge.clone();return Qe.setProjection(Ne.projection),Pc(Qe,Ne.getProjection(),Ze)}function Ma(Ze,Ne,Ge){return Ne.name===Ge.projection.name?Ze.projMatrix:Pc(Ge,Ne,Ze)}class uu{constructor(Ne,Ge,Qe,ai){this.opacity=Ne?Math.max(0,Math.min(1,Ne.opacity+(Ne.placed?Ge:-Ge))):ai&&Qe?1:0,this.placed=Qe}isHidden(){return this.opacity===0&&!this.placed}}class Aa{constructor(Ne,Ge,Qe,ai,ui,Si=!1){this.text=new uu(Ne?Ne.text:null,Ge,Qe,ui),this.icon=new uu(Ne?Ne.icon:null,Ge,ai,ui),this.clipped=Si}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class jc{constructor(Ne,Ge,Qe,ai=!1){this.text=Ne,this.icon=Ge,this.skipFade=Qe,this.clipped=ai}}class Ph{constructor(){this.invProjMatrix=Ie.create(),this.viewportMatrix=Ie.create(),this.circles=[]}}class Yu{constructor(Ne,Ge,Qe,ai,ui){this.bucketInstanceId=Ne,this.featureIndex=Ge,this.sourceLayerIndex=Qe,this.bucketIndex=ai,this.tileID=ui}}class pp{constructor(Ne){this.crossSourceCollisions=Ne,this.maxGroupID=0,this.collisionGroups={}}get(Ne){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[Ne]){const Ge=++this.maxGroupID;this.collisionGroups[Ne]={ID:Ge,predicate:Qe=>Qe.collisionGroupID===Ge}}return this.collisionGroups[Ne]}}function Ld(Ze,Ne,Ge,Qe,ai){const{horizontalAlign:ui,verticalAlign:Si}=Ie.getAnchorAlignment(Ze),Mi=-(ui-.5)*Ne,Fi=-(Si-.5)*Ge,qi=Ie.evaluateVariableOffset(Ze,Qe);return new Ie.Point(Mi+qi[0]*ai,Fi+qi[1]*ai)}function Ih(Ze,Ne,Ge,Qe,ai){const ui=new Ie.Point(Ze,Ne);return Ge&&ui._rotate(Qe?ai:-ai),ui}class cd{constructor(Ne,Ge,Qe,ai,ui){this.transform=Ne.clone(),this.projection=Ne.projection.name,this.collisionIndex=new Od(this.transform,ui),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=Ge,this.retainedQueryData={},this.collisionGroups=new pp(Qe),this.collisionCircleArrays={},this.prevPlacement=ai,ai&&(ai.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(Ne,Ge,Qe,ai){const ui=Qe.getBucket(Ge),Si=Qe.latestFeatureIndex;if(!ui||!Si||Ge.id!==ui.layerIds[0])return;const Mi=ui.layers[0].layout,Fi=Qe.collisionBoxArray,qi=Math.pow(2,this.transform.zoom-Qe.tileID.overscaledZ),Xi=Qe.tileSize/Ie.EXTENT,hn=Qe.tileID.toUnwrapped();this.transform.setProjection(ui.projection);const Dn=(In=Qe.tileID,On=ui.getProjection(),Bn=this.transform,On.name===this.projection?Bn.calculateProjMatrix(In.toUnwrapped()):Pc(Bn,On,In));var In,On,Bn;const Vn=Mi.get("text-pitch-alignment")==="map",pn=Mi.get("text-rotation-alignment")==="map";Ge.compileFilter();const Pn=Ge.dynamicFilter(),Jn=Ge.dynamicFilterNeedsFeature(),qn=this.transform.calculatePixelsToTileUnitsMatrix(Qe),gr=Ou(Dn,Qe.tileID.canonical,Vn,pn,this.transform,ui.getProjection(),qn);let vr=null;if(Vn){const Pr=hl(Dn,Qe.tileID.canonical,Vn,pn,this.transform,ui.getProjection(),qn);vr=Ie.multiply([],this.transform.labelPlaneMatrix,Pr)}let dr=null;Pn&&Qe.latestFeatureIndex&&(dr={unwrappedTileID:hn,dynamicFilter:Pn,dynamicFilterNeedsFeature:Jn,featureIndex:Qe.latestFeatureIndex}),this.retainedQueryData[ui.bucketInstanceId]=new Yu(ui.bucketInstanceId,Si,ui.sourceLayerIndex,ui.index,Qe.tileID);const $r={bucket:ui,layout:Mi,posMatrix:Dn,textLabelPlaneMatrix:gr,labelToScreenMatrix:vr,clippingData:dr,scale:qi,textPixelRatio:Xi,holdingForFade:Qe.holdingForFade(),collisionBoxArray:Fi,partiallyEvaluatedTextSize:Ie.evaluateSizeForZoom(ui.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:Ie.evaluateSizeForZoom(ui.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(ui.sourceID)};if(ai)for(const Pr of ui.sortKeyRanges){const{sortKey:Vr,symbolInstanceStart:Ds,symbolInstanceEnd:zr}=Pr;Ne.push({sortKey:Vr,symbolInstanceStart:Ds,symbolInstanceEnd:zr,parameters:$r})}else Ne.push({symbolInstanceStart:0,symbolInstanceEnd:ui.symbolInstances.length,parameters:$r})}attemptAnchorPlacement(Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi,hn,Dn,In,On,Bn,Vn,pn,Pn){const{textOffset0:Jn,textOffset1:qn,crossTileID:gr}=Dn,vr=[Jn,qn],dr=Ld(Ne,Qe,ai,vr,ui),$r=this.collisionIndex.placeCollisionBox(On,ui,Ge,Ih(dr.x,dr.y,Si,Mi,this.transform.angle),hn,Fi,qi,Xi.predicate);if(Vn){const Pr=On.getSymbolInstanceIconSize(Pn,this.transform.zoom,Dn.placedIconSymbolIndex);if(this.collisionIndex.placeCollisionBox(On,Pr,Vn,Ih(dr.x,dr.y,Si,Mi,this.transform.angle),hn,Fi,qi,Xi.predicate).box.length===0)return}if($r.box.length>0){let Pr;return this.prevPlacement&&this.prevPlacement.variableOffsets[gr]&&this.prevPlacement.placements[gr]&&this.prevPlacement.placements[gr].text&&(Pr=this.prevPlacement.variableOffsets[gr].anchor),this.variableOffsets[gr]={textOffset:vr,width:Qe,height:ai,anchor:Ne,textScale:ui,prevAnchor:Pr},this.markUsedJustification(On,Ne,Dn,Bn),On.allowVerticalPlacement&&(this.markUsedOrientation(On,Bn,Dn),this.placedOrientations[gr]=Bn),{shift:dr,placedGlyphBoxes:$r}}}placeLayerBucketPart(Ne,Ge,Qe,ai){const{bucket:ui,layout:Si,posMatrix:Mi,textLabelPlaneMatrix:Fi,labelToScreenMatrix:qi,clippingData:Xi,textPixelRatio:hn,holdingForFade:Dn,collisionBoxArray:In,partiallyEvaluatedTextSize:On,partiallyEvaluatedIconSize:Bn,collisionGroup:Vn}=Ne.parameters,pn=Si.get("text-optional"),Pn=Si.get("icon-optional"),Jn=Si.get("text-allow-overlap"),qn=Si.get("icon-allow-overlap"),gr=Si.get("text-rotation-alignment")==="map",vr=Si.get("text-pitch-alignment")==="map",dr=Si.get("icon-text-fit")!=="none",$r=Si.get("symbol-z-order")==="viewport-y";this.transform.setProjection(ui.projection);let Pr=Jn&&(qn||!ui.hasIconData()||Pn),Vr=qn&&(Jn||!ui.hasTextData()||pn);!ui.collisionArrays&&In&&ui.deserializeCollisionBoxes(In),Qe&&ai&&ui.updateCollisionDebugBuffers(this.transform.zoom,In);const Ds=(zr,cs,Xr)=>{const{crossTileID:ss,numVerticalGlyphVertices:Lr}=zr;if(Xi){const rl={zoom:this.transform.zoom,pitch:this.transform.pitch};let Ha=null;if(Xi.dynamicFilterNeedsFeature){const Yo=this.retainedQueryData[ui.bucketInstanceId];Ha=Xi.featureIndex.loadFeature({featureIndex:zr.featureIndex,bucketIndex:Yo.bucketIndex,sourceLayerIndex:Yo.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,Xi.dynamicFilter)(rl,Ha,this.retainedQueryData[ui.bucketInstanceId].tileID.canonical,new Ie.Point(zr.tileAnchorX,zr.tileAnchorY),this.transform.calculateDistanceTileData(Xi.unwrappedTileID)))return this.placements[ss]=new jc(!1,!1,!1,!0),void Ge.add(ss)}if(Ge.has(ss))return;if(Dn)return void(this.placements[ss]=new jc(!1,!1,!1));let ns=!1,Ss=!1,ds=!0,Is=!1,ho=!1,ko=null,Js={box:null,offscreen:null,occluded:null},_o={box:null,offscreen:null,occluded:null},ia=null,No=null,lo=null,Ea=0,Va=0,Pa=0;Xr.textFeatureIndex?Ea=Xr.textFeatureIndex:zr.useRuntimeCollisionCircles&&(Ea=zr.featureIndex),Xr.verticalTextFeatureIndex&&(Va=Xr.verticalTextFeatureIndex);const ha=rl=>{rl.tileID=this.retainedQueryData[ui.bucketInstanceId].tileID;const Ha=this.transform.elevation;(Ha||rl.elevation)&&(rl.elevation=Ha?Ha.getAtTileOffset(rl.tileID,rl.tileAnchorX,rl.tileAnchorY):0)},Hl=Xr.textBox;if(Hl){ha(Hl);const rl=Yo=>{let wl=Ie.WritingMode.horizontal;if(ui.allowVerticalPlacement&&!Yo&&this.prevPlacement){const pl=this.prevPlacement.placedOrientations[ss];pl&&(this.placedOrientations[ss]=pl,wl=pl,this.markUsedOrientation(ui,wl,zr))}return wl},Ha=(Yo,wl)=>{if(ui.allowVerticalPlacement&&Lr>0&&Xr.verticalTextBox){for(const pl of ui.writingModes)if(pl===Ie.WritingMode.vertical?(Js=wl(),_o=Js):Js=Yo(),Js&&Js.box&&Js.box.length)break}else Js=Yo()};if(Si.get("text-variable-anchor")){let Yo=Si.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[ss]){const Za=this.prevPlacement.variableOffsets[ss];Yo.indexOf(Za.anchor)>0&&(Yo=Yo.filter(Cc=>Cc!==Za.anchor),Yo.unshift(Za.anchor))}const wl=(Za,Cc,Mp)=>{const Cu=ui.getSymbolInstanceTextSize(On,zr,this.transform.zoom,cs),gd=(Za.x2-Za.x1)*Cu+2*Za.padding,Uu=(Za.y2-Za.y1)*Cu+2*Za.padding,yd=dr&&!qn?Cc:null;yd&&ha(yd);let kp={box:[],offscreen:!1,occluded:!1};const Gu=Jn?2*Yo.length:Yo.length;for(let Oo=0;Oo<Gu;++Oo){const Xh=this.attemptAnchorPlacement(Yo[Oo%Yo.length],Za,gd,Uu,Cu,gr,vr,hn,Mi,Vn,Oo>=Yo.length,zr,cs,ui,Mp,yd,On,Bn);if(Xh&&(kp=Xh.placedGlyphBoxes,kp&&kp.box&&kp.box.length)){ns=!0,ko=Xh.shift;break}}return kp};Ha(()=>wl(Hl,Xr.iconBox,Ie.WritingMode.horizontal),()=>{const Za=Xr.verticalTextBox;return Za&&ha(Za),ui.allowVerticalPlacement&&!(Js&&Js.box&&Js.box.length)&&Lr>0&&Za?wl(Za,Xr.verticalIconBox,Ie.WritingMode.vertical):{box:null,offscreen:null,occluded:null}}),Js&&(ns=Js.box,ds=Js.offscreen,Is=Js.occluded);const pl=rl(!(!Js||!Js.box));if(!ns&&this.prevPlacement){const Za=this.prevPlacement.variableOffsets[ss];Za&&(this.variableOffsets[ss]=Za,this.markUsedJustification(ui,Za.anchor,zr,pl))}}else{const Yo=(wl,pl)=>{const Za=ui.getSymbolInstanceTextSize(On,zr,this.transform.zoom,cs),Cc=this.collisionIndex.placeCollisionBox(ui,Za,wl,new Ie.Point(0,0),Jn,hn,Mi,Vn.predicate);return Cc&&Cc.box&&Cc.box.length&&(this.markUsedOrientation(ui,pl,zr),this.placedOrientations[ss]=pl),Cc};Ha(()=>Yo(Hl,Ie.WritingMode.horizontal),()=>{const wl=Xr.verticalTextBox;return ui.allowVerticalPlacement&&Lr>0&&wl?(ha(wl),Yo(wl,Ie.WritingMode.vertical)):{box:null,offscreen:null,occluded:null}}),rl(!!(Js&&Js.box&&Js.box.length))}}if(ia=Js,ns=ia&&ia.box&&ia.box.length>0,ds=ia&&ia.offscreen,Is=ia&&ia.occluded,zr.useRuntimeCollisionCircles){const rl=ui.text.placedSymbolArray.get(zr.centerJustifiedTextSymbolIndex>=0?zr.centerJustifiedTextSymbolIndex:zr.verticalPlacedTextSymbolIndex),Ha=Ie.evaluateSizeForFeature(ui.textSizeData,On,rl),Yo=Si.get("text-padding");No=this.collisionIndex.placeCollisionCircles(ui,Jn,rl,ui.lineVertexArray,ui.glyphOffsetArray,Ha,Mi,Fi,qi,Qe,vr,Vn.predicate,zr.collisionCircleDiameter*Ha/Ie.ONE_EM,Yo,this.retainedQueryData[ui.bucketInstanceId].tileID),ns=Jn||No.circles.length>0&&!No.collisionDetected,ds=ds&&No.offscreen,Is=No.occluded}if(Xr.iconFeatureIndex&&(Pa=Xr.iconFeatureIndex),Xr.iconBox){const rl=Ha=>{ha(Ha);const Yo=dr&&ko?Ih(ko.x,ko.y,gr,vr,this.transform.angle):new Ie.Point(0,0),wl=ui.getSymbolInstanceIconSize(Bn,this.transform.zoom,zr.placedIconSymbolIndex);return this.collisionIndex.placeCollisionBox(ui,wl,Ha,Yo,qn,hn,Mi,Vn.predicate)};_o&&_o.box&&_o.box.length&&Xr.verticalIconBox?(lo=rl(Xr.verticalIconBox),Ss=lo.box.length>0):(lo=rl(Xr.iconBox),Ss=lo.box.length>0),ds=ds&&lo.offscreen,ho=lo.occluded}const Wl=pn||zr.numHorizontalGlyphVertices===0&&Lr===0,gu=Pn||zr.numIconVertices===0;if(Wl||gu?gu?Wl||(Ss=Ss&&ns):ns=Ss&&ns:Ss=ns=Ss&&ns,ns&&ia&&ia.box&&this.collisionIndex.insertCollisionBox(ia.box,Si.get("text-ignore-placement"),ui.bucketInstanceId,_o&&_o.box&&Va?Va:Ea,Vn.ID),Ss&&lo&&this.collisionIndex.insertCollisionBox(lo.box,Si.get("icon-ignore-placement"),ui.bucketInstanceId,Pa,Vn.ID),No&&(ns&&this.collisionIndex.insertCollisionCircles(No.circles,Si.get("text-ignore-placement"),ui.bucketInstanceId,Ea,Vn.ID),Qe)){const rl=ui.bucketInstanceId;let Ha=this.collisionCircleArrays[rl];Ha===void 0&&(Ha=this.collisionCircleArrays[rl]=new Ph);for(let Yo=0;Yo<No.circles.length;Yo+=4)Ha.circles.push(No.circles[Yo+0]),Ha.circles.push(No.circles[Yo+1]),Ha.circles.push(No.circles[Yo+2]),Ha.circles.push(No.collisionDetected?1:0)}const Hu=ui.projection.name!=="globe";Pr=Pr&&(Hu||!Is),Vr=Vr&&(Hu||!ho),this.placements[ss]=new jc(ns||Pr,Ss||Vr,ds||ui.justReloaded),Ge.add(ss)};if($r){const zr=ui.getSortedSymbolIndexes(this.transform.angle);for(let cs=zr.length-1;cs>=0;--cs){const Xr=zr[cs];Ds(ui.symbolInstances.get(Xr),Xr,ui.collisionArrays[Xr])}}else for(let zr=Ne.symbolInstanceStart;zr<Ne.symbolInstanceEnd;zr++)Ds(ui.symbolInstances.get(zr),zr,ui.collisionArrays[zr]);if(Qe&&ui.bucketInstanceId in this.collisionCircleArrays){const zr=this.collisionCircleArrays[ui.bucketInstanceId];Ie.invert(zr.invProjMatrix,Mi),zr.viewportMatrix=this.collisionIndex.getViewportMatrix()}ui.justReloaded=!1}markUsedJustification(Ne,Ge,Qe,ai){const{leftJustifiedTextSymbolIndex:ui,centerJustifiedTextSymbolIndex:Si,rightJustifiedTextSymbolIndex:Mi,verticalPlacedTextSymbolIndex:Fi,crossTileID:qi}=Qe,Xi=Ie.getAnchorJustification(Ge),hn=ai===Ie.WritingMode.vertical?Fi:Xi==="left"?ui:Xi==="center"?Si:Xi==="right"?Mi:-1;ui>=0&&(Ne.text.placedSymbolArray.get(ui).crossTileID=hn>=0&&ui!==hn?0:qi),Si>=0&&(Ne.text.placedSymbolArray.get(Si).crossTileID=hn>=0&&Si!==hn?0:qi),Mi>=0&&(Ne.text.placedSymbolArray.get(Mi).crossTileID=hn>=0&&Mi!==hn?0:qi),Fi>=0&&(Ne.text.placedSymbolArray.get(Fi).crossTileID=hn>=0&&Fi!==hn?0:qi)}markUsedOrientation(Ne,Ge,Qe){const ai=Ge===Ie.WritingMode.horizontal||Ge===Ie.WritingMode.horizontalOnly?Ge:0,ui=Ge===Ie.WritingMode.vertical?Ge:0,{leftJustifiedTextSymbolIndex:Si,centerJustifiedTextSymbolIndex:Mi,rightJustifiedTextSymbolIndex:Fi,verticalPlacedTextSymbolIndex:qi}=Qe,Xi=Ne.text.placedSymbolArray;Si>=0&&(Xi.get(Si).placedOrientation=ai),Mi>=0&&(Xi.get(Mi).placedOrientation=ai),Fi>=0&&(Xi.get(Fi).placedOrientation=ai),qi>=0&&(Xi.get(qi).placedOrientation=ui)}commit(Ne){this.commitTime=Ne,this.zoomAtLastRecencyCheck=this.transform.zoom;const Ge=this.prevPlacement;let Qe=!1;this.prevZoomAdjustment=Ge?Ge.zoomAdjustment(this.transform.zoom):0;const ai=Ge?Ge.symbolFadeChange(Ne):1,ui=Ge?Ge.opacities:{},Si=Ge?Ge.variableOffsets:{},Mi=Ge?Ge.placedOrientations:{};for(const Fi in this.placements){const qi=this.placements[Fi],Xi=ui[Fi];Xi?(this.opacities[Fi]=new Aa(Xi,ai,qi.text,qi.icon,null,qi.clipped),Qe=Qe||qi.text!==Xi.text.placed||qi.icon!==Xi.icon.placed):(this.opacities[Fi]=new Aa(null,ai,qi.text,qi.icon,qi.skipFade,qi.clipped),Qe=Qe||qi.text||qi.icon)}for(const Fi in ui){const qi=ui[Fi];if(!this.opacities[Fi]){const Xi=new Aa(qi,ai,!1,!1);Xi.isHidden()||(this.opacities[Fi]=Xi,Qe=Qe||qi.text.placed||qi.icon.placed)}}for(const Fi in Si)this.variableOffsets[Fi]||!this.opacities[Fi]||this.opacities[Fi].isHidden()||(this.variableOffsets[Fi]=Si[Fi]);for(const Fi in Mi)this.placedOrientations[Fi]||!this.opacities[Fi]||this.opacities[Fi].isHidden()||(this.placedOrientations[Fi]=Mi[Fi]);Qe?this.lastPlacementChangeTime=Ne:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=Ge?Ge.lastPlacementChangeTime:Ne)}updateLayerOpacities(Ne,Ge){const Qe=new Set;for(const ai of Ge){const ui=ai.getBucket(Ne);ui&&ai.latestFeatureIndex&&Ne.id===ui.layerIds[0]&&this.updateBucketOpacities(ui,Qe,ai.collisionBoxArray)}}updateBucketOpacities(Ne,Ge,Qe){Ne.hasTextData()&&Ne.text.opacityVertexArray.clear(),Ne.hasIconData()&&Ne.icon.opacityVertexArray.clear(),Ne.hasIconCollisionBoxData()&&Ne.iconCollisionBox.collisionVertexArray.clear(),Ne.hasTextCollisionBoxData()&&Ne.textCollisionBox.collisionVertexArray.clear();const ai=Ne.layers[0].layout,ui=!!Ne.layers[0].dynamicFilter(),Si=new Aa(null,0,!1,!1,
219!0),Mi=ai.get("text-allow-overlap"),Fi=ai.get("icon-allow-overlap"),qi=ai.get("text-variable-anchor"),Xi=ai.get("text-rotation-alignment")==="map",hn=ai.get("text-pitch-alignment")==="map",Dn=ai.get("icon-text-fit")!=="none",In=new Aa(null,0,Mi&&(Fi||!Ne.hasIconData()||ai.get("icon-optional")),Fi&&(Mi||!Ne.hasTextData()||ai.get("text-optional")),!0);!Ne.collisionArrays&&Qe&&(Ne.hasIconCollisionBoxData()||Ne.hasTextCollisionBoxData())&&Ne.deserializeCollisionBoxes(Qe);const On=(Vn,pn,Pn)=>{for(let Jn=0;Jn<pn/4;Jn++)Vn.opacityVertexArray.emplaceBack(Pn)};let Bn=0;for(let Vn=0;Vn<Ne.symbolInstances.length;Vn++){const pn=Ne.symbolInstances.get(Vn),{numHorizontalGlyphVertices:Pn,numVerticalGlyphVertices:Jn,crossTileID:qn,numIconVertices:gr}=pn,vr=Ge.has(qn);let dr=this.opacities[qn];vr?dr=Si:dr||(dr=In,this.opacities[qn]=dr),Ge.add(qn);const $r=Pn>0||Jn>0,Pr=gr>0,Vr=this.placedOrientations[qn],Ds=Vr===Ie.WritingMode.vertical,zr=Vr===Ie.WritingMode.horizontal||Vr===Ie.WritingMode.horizontalOnly;if(!$r&&!Pr||dr.isHidden()||Bn++,$r){const cs=Oh(dr.text);On(Ne.text,Pn,Ds?bl:cs),On(Ne.text,Jn,zr?bl:cs);const Xr=dr.text.isHidden(),{leftJustifiedTextSymbolIndex:ss,centerJustifiedTextSymbolIndex:Lr,rightJustifiedTextSymbolIndex:ns,verticalPlacedTextSymbolIndex:Ss}=pn,ds=Ne.text.placedSymbolArray,Is=Xr||Ds?1:0;ss>=0&&(ds.get(ss).hidden=Is),Lr>=0&&(ds.get(Lr).hidden=Is),ns>=0&&(ds.get(ns).hidden=Is),Ss>=0&&(ds.get(Ss).hidden=Xr||zr?1:0);const ho=this.variableOffsets[qn];ho&&this.markUsedJustification(Ne,ho.anchor,pn,Vr);const ko=this.placedOrientations[qn];ko&&(this.markUsedJustification(Ne,"left",pn,ko),this.markUsedOrientation(Ne,ko,pn))}if(Pr){const cs=Oh(dr.icon),{placedIconSymbolIndex:Xr,verticalPlacedIconSymbolIndex:ss}=pn,Lr=Ne.icon.placedSymbolArray,ns=dr.icon.isHidden()?1:0;Xr>=0&&(On(Ne.icon,gr,Ds?bl:cs),Lr.get(Xr).hidden=ns),ss>=0&&(On(Ne.icon,pn.numVerticalIconVertices,zr?bl:cs),Lr.get(ss).hidden=ns)}if(Ne.hasIconCollisionBoxData()||Ne.hasTextCollisionBoxData()){const cs=Ne.collisionArrays[Vn];if(cs){let Xr=new Ie.Point(0,0),ss=!0;if(cs.textBox||cs.verticalTextBox){if(qi){const ns=this.variableOffsets[qn];ns?(Xr=Ld(ns.anchor,ns.width,ns.height,ns.textOffset,ns.textScale),Xi&&Xr._rotate(hn?this.transform.angle:-this.transform.angle)):ss=!1}ui&&(ss=!dr.clipped),cs.textBox&&oh(Ne.textCollisionBox.collisionVertexArray,dr.text.placed,!ss||Ds,Xr.x,Xr.y),cs.verticalTextBox&&oh(Ne.textCollisionBox.collisionVertexArray,dr.text.placed,!ss||zr,Xr.x,Xr.y)}const Lr=ss&&!!(!zr&&cs.verticalIconBox);cs.iconBox&&oh(Ne.iconCollisionBox.collisionVertexArray,dr.icon.placed,Lr,Dn?Xr.x:0,Dn?Xr.y:0),cs.verticalIconBox&&oh(Ne.iconCollisionBox.collisionVertexArray,dr.icon.placed,!Lr,Dn?Xr.x:0,Dn?Xr.y:0)}}}if(Ne.fullyClipped=Bn===0,Ne.sortFeatures(this.transform.angle),this.retainedQueryData[Ne.bucketInstanceId]&&(this.retainedQueryData[Ne.bucketInstanceId].featureSortOrder=Ne.featureSortOrder),Ne.hasTextData()&&Ne.text.opacityVertexBuffer&&Ne.text.opacityVertexBuffer.updateData(Ne.text.opacityVertexArray),Ne.hasIconData()&&Ne.icon.opacityVertexBuffer&&Ne.icon.opacityVertexBuffer.updateData(Ne.icon.opacityVertexArray),Ne.hasIconCollisionBoxData()&&Ne.iconCollisionBox.collisionVertexBuffer&&Ne.iconCollisionBox.collisionVertexBuffer.updateData(Ne.iconCollisionBox.collisionVertexArray),Ne.hasTextCollisionBoxData()&&Ne.textCollisionBox.collisionVertexBuffer&&Ne.textCollisionBox.collisionVertexBuffer.updateData(Ne.textCollisionBox.collisionVertexArray),Ne.bucketInstanceId in this.collisionCircleArrays){const Vn=this.collisionCircleArrays[Ne.bucketInstanceId];Ne.placementInvProjMatrix=Vn.invProjMatrix,Ne.placementViewportMatrix=Vn.viewportMatrix,Ne.collisionCircleArray=Vn.circles,delete this.collisionCircleArrays[Ne.bucketInstanceId]}}symbolFadeChange(Ne){return this.fadeDuration===0?1:(Ne-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(Ne){return Math.max(0,(this.transform.zoom-Ne)/1.5)}hasTransitions(Ne){return this.stale||Ne-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(Ne,Ge){const Qe=this.zoomAtLastRecencyCheck===Ge?1-this.zoomAdjustment(Ge):1;return this.zoomAtLastRecencyCheck=Ge,this.commitTime+this.fadeDuration*Qe>Ne}setStale(){this.stale=!0}}function oh(Ze,Ne,Ge,Qe,ai){Ze.emplaceBack(Ne?1:0,Ge?1:0,Qe||0,ai||0),Ze.emplaceBack(Ne?1:0,Ge?1:0,Qe||0,ai||0),Ze.emplaceBack(Ne?1:0,Ge?1:0,Qe||0,ai||0),Ze.emplaceBack(Ne?1:0,Ge?1:0,Qe||0,ai||0)}const oc=Math.pow(2,25),aa=Math.pow(2,24),fp=Math.pow(2,17),Rh=Math.pow(2,16),Wc=Math.pow(2,9),qc=Math.pow(2,8),Wp=Math.pow(2,1);function Oh(Ze){if(Ze.opacity===0&&!Ze.placed)return 0;if(Ze.opacity===1&&Ze.placed)return 4294967295;const Ne=Ze.placed?1:0,Ge=Math.floor(127*Ze.opacity);return Ge*oc+Ne*aa+Ge*fp+Ne*Rh+Ge*Wc+Ne*qc+Ge*Wp+Ne}const bl=0;class Lh{constructor(Ne){this._sortAcrossTiles=Ne.layout.get("symbol-z-order")!=="viewport-y"&&Ne.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs=new Set,this._bucketParts=[]}continuePlacement(Ne,Ge,Qe,ai,ui){const Si=this._bucketParts;for(;this._currentTileIndex<Ne.length;)if(Ge.getBucketParts(Si,ai,Ne[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,ui())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,Si.sort((Mi,Fi)=>Mi.sortKey-Fi.sortKey));this._currentPartIndex<Si.length;){const Mi=Si[this._currentPartIndex];if(Ge.placeLayerBucketPart(Mi,this._seenCrossTileIDs,Qe,Mi.symbolInstanceStart===0),this._currentPartIndex++,ui())return!0}return!1}}class mp{constructor(Ne,Ge,Qe,ai,ui,Si,Mi,Fi){this.placement=new cd(Ne,ui,Si,Mi,Fi),this._currentPlacementIndex=Ge.length-1,this._forceFullPlacement=Qe,this._showCollisionBoxes=ai,this._done=!1}isDone(){return this._done}continuePlacement(Ne,Ge,Qe){const ai=Ie.exported.now(),ui=()=>{const Si=Ie.exported.now()-ai;return!this._forceFullPlacement&&Si>2};for(;this._currentPlacementIndex>=0;){const Si=Ge[Ne[this._currentPlacementIndex]],Mi=this.placement.collisionIndex.transform.zoom;if(Si.type==="symbol"&&(!Si.minzoom||Si.minzoom<=Mi)&&(!Si.maxzoom||Si.maxzoom>Mi)){if(this._inProgressLayer||(this._inProgressLayer=new Lh(Si)),this._inProgressLayer.continuePlacement(Qe[Si.source],this.placement,this._showCollisionBoxes,Si,ui))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(Ne){return this.placement.commit(Ne),this.placement}}const ka=512/Ie.EXTENT/2;class jo{constructor(Ne,Ge,Qe){this.tileID=Ne,this.bucketInstanceId=Qe,this.index=new Ie.KDBush(Ge.length,16,Int32Array),this.keys=[],this.crossTileIDs=[];const ai=Ne.canonical.x*Ie.EXTENT,ui=Ne.canonical.y*Ie.EXTENT;for(let Si=0;Si<Ge.length;Si++){const{key:Mi,crossTileID:Fi,tileAnchorX:qi,tileAnchorY:Xi}=Ge.get(Si),hn=Math.floor((ai+qi)*ka),Dn=Math.floor((ui+Xi)*ka);this.index.add(hn,Dn),this.keys.push(Mi),this.crossTileIDs.push(Fi)}this.index.finish()}
vendor: 4,313 bytes, line 219
219findMatches(Ne,Ge,Qe){const ai=this.tileID.canonical.z<Ge.canonical.z?1:Math.pow(2,this.tileID.canonical.z-Ge.canonical.z),ui=ka/Math.pow(2,Ge.canonical.z-this.tileID.canonical.z),Si=Ge.canonical.x*Ie.EXTENT,Mi=Ge.canonical.y*Ie.EXTENT;for(let Fi=0;Fi<Ne.length;Fi++){const qi=Ne.get(Fi);if(qi.crossTileID)continue;const{key:Xi,tileAnchorX:hn,tileAnchorY:Dn}=qi,In=Math.floor((Si+hn)*ui),On=Math.floor((Mi+Dn)*ui),Bn=this.index.range(In-ai,On-ai,In+ai,On+ai);for(const Vn of Bn){const pn=this.crossTileIDs[Vn];if(this.keys[Vn]===Xi&&!Qe.has(pn)){Qe.add(pn),qi.crossTileID=pn;break}}}}}class qp{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class $h{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(Ne){const Ge=Math.round((Ne-this.lng)/360);if(Ge!==0)for(const Qe in this.indexes){const ai=this.indexes[Qe],ui={};for(const Si in ai){const Mi=ai[Si];Mi.tileID=Mi.tileID.unwrapTo(Mi.tileID.wrap+Ge),ui[Mi.tileID.key]=Mi}this.indexes[Qe]=ui}this.lng=Ne}addBucket(Ne,Ge,Qe){if(this.indexes[Ne.overscaledZ]&&this.indexes[Ne.overscaledZ][Ne.key]){if(this.indexes[Ne.overscaledZ][Ne.key].bucketInstanceId===Ge.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(Ne.overscaledZ,this.indexes[Ne.overscaledZ][Ne.key])}for(let ui=0;ui<Ge.symbolInstances.length;ui++)Ge.symbolInstances.get(ui).crossTileID=0;this.usedCrossTileIDs[Ne.overscaledZ]||(this.usedCrossTileIDs[Ne.overscaledZ]=new Set);const ai=this.usedCrossTileIDs[Ne.overscaledZ];for(const ui in this.indexes){const Si=this.indexes[ui];if(Number(ui)>Ne.overscaledZ)for(const Mi in Si){const Fi=Si[Mi];Fi.tileID.isChildOf(Ne)&&Fi.findMatches(Ge.symbolInstances,Ne,ai)}else{const Mi=Si[Ne.scaledTo(Number(ui)).key];Mi&&Mi.findMatches(Ge.symbolInstances,Ne,ai)}}for(let ui=0;ui<Ge.symbolInstances.length;ui++){const Si=Ge.symbolInstances.get(ui);Si.crossTileID||(Si.crossTileID=Qe.generate(),ai.add(Si.crossTileID))}return this.indexes[Ne.overscaledZ]===void 0&&(this.indexes[Ne.overscaledZ]={}),this.indexes[Ne.overscaledZ][Ne.key]=new jo(Ne,Ge.symbolInstances,Ge.bucketInstanceId),!0}removeBucketCrossTileIDs(Ne,Ge){for(const Qe of Ge.crossTileIDs)this.usedCrossTileIDs[Ne].delete(Qe)}removeStaleBuckets(Ne){let Ge=!1;for(const Qe in this.indexes){const ai=this.indexes[Qe];for(const ui in ai)Ne[ai[ui].bucketInstanceId]||(this.removeBucketCrossTileIDs(Qe,ai[ui]),delete ai[ui],Ge=!0)}return Ge}}class xl{constructor(){this.layerIndexes={},this.crossTileIDs=new qp,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(Ne,Ge,Qe,ai){let ui=this.layerIndexes[Ne.id];ui===void 0&&(ui=this.layerIndexes[Ne.id]=new $h);let Si=!1;const Mi={};ai.name!=="globe"&&ui.handleWrapJump(Qe);for(const Fi of Ge){const qi=Fi.getBucket(Ne);qi&&Ne.id===qi.layerIds[0]&&(qi.bucketInstanceId||(qi.bucketInstanceId=++this.maxBucketInstanceId),ui.addBucket(Fi.tileID,qi,this.crossTileIDs)&&(Si=!0),Mi[qi.bucketInstanceId]=!0)}return ui.removeStaleBuckets(Mi)&&(Si=!0),Si}pruneUnusedLayers(Ne){const Ge={};Ne.forEach(Qe=>{Ge[Qe]=!0});for(const Qe in this.layerIndexes)Ge[Qe]||delete this.layerIndexes[Qe]}}const Su=(Ze,Ne)=>Ie.emitValidationErrors(Ze,Ne&&Ne.filter(Ge=>Ge.identifier!=="source.canvas")),Fh=Ie.pick(ca,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection"]),Sf=Ie.pick(ca,["setCenter","setZoom","setBearing","setPitch"]),du={version:8,layers:[],sources:{}},ah={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class ya extends Ie.Evented{constructor(Ne,Ge={}){super(),this.map=Ne,this.dispatcher=new os(dl(),this),this.imageManager=new cn,this.imageManager.setEventedParent(this),this.glyphManager=new Ie.GlyphManager(Ne._requestManager,Ge.localFontFamily?Ie.LocalGlyphMode.all:Ge.localIdeographFontFamily?Ie.LocalGlyphMode.ideographs:Ie.LocalGlyphMode.none,Ge.localFontFamily||Ge.localIdeographFontFamily),this.crossTileSymbolIndex=new xl,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedU
219pdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",Ie.getReferrer());const Qe=this;this._rtlTextPluginCallback=ya.registerForPluginStateChange(ai=>{Qe.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:ai.pluginStatus,pluginURL:ai.pluginURL},(ui,Si)=>{if(Ie.triggerPluginCompletionEvent(ui),Si&&Si.every(Mi=>Mi))for(const Mi in Qe._sourceCaches){const Fi=Qe._sourceCaches[Mi],qi=Fi.getSource().type;qi!=="vector"&&qi!=="geojson"||Fi.reload()}})}),this.on("data",ai=>{if(ai.dataType!=="source"||ai.sourceDataType!=="metadata")return;const ui=this.getSource(ai.sourceId);if(ui&&ui.vectorLayerIds)for(const Si in this._layers){const Mi=this._layers[Si];Mi.source===ui.id&&this._validateLayer(Mi)}})}loadURL(Ne,Ge={}){this.fire(new Ie.Event("dataloading",{dataType:"style"}));const Qe=typeof Ge.validate=="boolean"?Ge.validate:!Ie.isMapboxURL(Ne);Ne=this.map._requestManager.normalizeStyleURL(Ne,Ge.accessToken);const ai=this.map._requestManager.transformRequest(Ne,Ie.ResourceType.Style);this._request=Ie.getJSON(ai,(ui,Si)=>{this._request=null,ui?this.fire(new Ie.ErrorEvent(ui)):Si&&this._load(Si,Qe)})}loadJSON(Ne,Ge={}){this.fire(new Ie.Event("dataloading",{dataType:"style"})),this._request=Ie.exported.frame(()=>{this._request=null,this._load(Ne,Ge.validate!==!1)})}loadEmpty(){this.fire(new Ie.Event("dataloading",{dataType:"style"})),this._load(du,!1)}_updateLayerCount(Ne,Ge){const Qe=Ge?1:-1;Ne.is3D()&&(this._num3DLayers+=Qe),Ne.type==="circle"&&(this._numCircleLayers+=Qe),Ne.type==="symbol"&&(this._numSymbolLayers+=Qe)}_load(Ne,Ge){if(Ge&&Su(this,Ie.validateStyle(Ne)))return;this._loaded=!0,this.stylesheet=Ie.clone$1(Ne),this._updateMapProjection();for(const ai in Ne.sources)this.addSource(ai,Ne.sources[ai],{validate:!1});this._changed=!1,Ne.sprite?this._loadSprite(Ne.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(Ne.glyphs);const Qe=dp(this.stylesheet.layers);this._order=Qe.map(ai=>ai.id),this._layers={},this._serializedLayers={};for(const ai of Qe){const ui=Ie.createStyleLayer(ai);ui.setEventedParent(this,{layer:{id:ui.id}}),this._layers[ui.id]=ui,this._serializedLayers[ui.id]=ui.serialize(),this._updateLayerCount(ui,!0)}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new Sn(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new Ie.Event("data",{dataType:"style"})),this.fire(new Ie.Event("style.load"))}terrainSetForDrapingOnly(){return!!this.terrain&&this.terrain.drapeRenderMode===0}setProjection(Ne){Ne?this.stylesheet.projection=Ne:delete this.stylesheet.projection,this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null))}_updateMapProjection(){this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.stylesheet.projection)}_loadSprite(Ne){this._spriteRequest=function(Ge,Qe,ai){let ui,Si,Mi;const Fi=Ie.exported.devicePixelRatio>1?"@2x":"";let qi=Ie.getJSON(Qe.transformRequest(Qe.normalizeSpriteURL(Ge,Fi,".json"),Ie.ResourceType.SpriteJSON),(Dn,In)=>{qi=null,Mi||(Mi=Dn,ui=In,hn())}),Xi=Ie.getImage(Qe.transformRequest(Qe.normalizeSpriteURL(Ge,Fi,".png"),Ie.ResourceType.SpriteImage),(Dn,In)=>{Xi=null,Mi||(Mi=Dn,Si=In,hn())});function hn(){if(Mi)ai(Mi);else if(ui&&Si){const Dn=Ie.exported.getImageData(Si),In={};for(const On in ui){const{width:Bn,height:Vn,x:pn,y:Pn,sdf:Jn,pixelRatio:qn,stretchX:gr,stretchY:vr,content:dr}=ui[On],$r=new Ie.RGBAImage({width:Bn,height:Vn});Ie.RGBAImage.copy(Dn,$r,{x:pn,y:Pn},{x:0,y:0},{width:Bn,height:Vn}),In[On]={data:$r,pixelRatio:qn,sdf:Jn,stretchX:gr,stretchY:vr,content:dr}}ai(null,In)}}
219return{cancel(){qi&&(qi.cancel(),qi=null),Xi&&(Xi.cancel(),Xi=null)}}}(Ne,this.map._requestManager,(Ge,Qe)=>{if(this._spriteRequest=null,Ge)this.fire(new Ie.ErrorEvent(Ge));else if(Qe)for(const ai in Qe)this.imageManager.addImage(ai,Qe[ai]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new Ie.Event("data",{dataType:"style"}))})}_validateLayer(Ne){const Ge=this.getSource(Ne.source);if(!Ge)return;const Qe=Ne.sourceLayer;Qe&&(Ge.type==="geojson"||Ge.vectorLayerIds&&Ge.vectorLayerIds.indexOf(Qe)===-1)&&this.fire(new Ie.ErrorEvent(new Error(`Source layer "${Qe}" does not exist on source "${Ge.id}" as specified by style layer "${Ne.id}"`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const Ne in this._sourceCaches)if(!this._sourceCaches[Ne].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(Ne){const Ge=[];for(const Qe of Ne){const ai=this._layers[Qe];ai.type!=="custom"&&Ge.push(ai.serialize())}return Ge}hasTransitions(){if(this.light&&this.light.hasTransition()||this.fog&&this.fog.hasTransition())return!0;for(const Ne in this._sourceCaches)if(this._sourceCaches[Ne].hasTransition())return!0;for(const Ne in this._layers)if(this._layers[Ne].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(Ne){return!!this.terrain&&(typeof Ne.isLayerDraped=="function"?Ne.isLayerDraped():ah[Ne.type])}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}update(Ne){if(!this._loaded)return;const Ge=this._changed;if(this._changed){const ai=Object.keys(this._updatedLayers),ui=Object.keys(this._removedLayers);(ai.length||ui.length)&&this._updateWorkerLayers(ai,ui);for(const Si in this._updatedSources){const Mi=this._updatedSources[Si];Mi==="reload"?this._reloadSource(Si):Mi==="clear"&&this._clearSource(Si)}this._updateTilesForChangedImages();for(const Si in this._updatedPaintProps)this._layers[Si].updateTransitions(Ne);this.light.updateTransitions(Ne),this.fog&&this.fog.updateTransitions(Ne),this._resetUpdates()}const Qe={};for(const ai in this._sourceCaches){const ui=this._sourceCaches[ai];Qe[ai]=ui.used,ui.used=!1}for(const ai of this._order){const ui=this._layers[ai];if(ui.recalculate(Ne,this._availableImages),!ui.isHidden(Ne.zoom)){const Mi=this._getLayerSourceCache(ui);Mi&&(Mi.used=!0)}const Si=this.map.painter;if(Si){const Mi=ui.getProgramIds();if(!Mi)continue;const Fi=ui.getProgramConfiguration(Ne.zoom);for(const qi of Mi)Si.useProgram(qi,Fi)}}for(const ai in Qe){const ui=this._sourceCaches[ai];Qe[ai]!==ui.used&&ui.getSource().fire(new Ie.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:ui.getSource().id}))}this.light.recalculate(Ne),this.terrain&&this.terrain.recalculate(Ne),this.fog&&this.fog.recalculate(Ne),this.z=Ne.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),Ge&&this.fire(new Ie.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const Ne=Object.keys(this._changedImages);if(Ne.length){for(const Ge in this._sourceCaches)this._sourceCaches[Ge].reloadTilesForDependencies(["icons","patterns"],Ne);this._changedImages={}}}_updateWorkerLayers(Ne,Ge){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(Ne),removedIds:Ge})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(Ne){if(this._checkLoaded(),Su(this,Ie.validateStyle(Ne)))return!1;(Ne=Ie.clone$1(Ne)).layers=dp(Ne.layers);const Ge=function(ai,ui){if(!ai)return[{command:ca.setStyle,args:[ui]}];let Si=[];try{if(!je(ai.version,ui.version))return[{command:ca.setStyle,args:[ui]}];je(ai.center,ui.center)||Si.push({command:ca.setCenter,args:[ui.center]}),je(ai.zoom,ui.zoom)||Si.push({command:ca.setZoom,args:[ui.zoom]}),je(ai.bearing,ui.bearing)||Si.push({command:ca.setBearing,args:[ui.bearing]}),je(ai.pitch,ui.pitch)||Si.push({command:ca.setPitch,args:[ui.pitch]}),je(ai.sprite,ui.sprite)||Si.push({command:ca.setSprite,args:[ui.sprite]}),je(ai.glyphs,ui.glyphs)||Si.push({command:ca.setGlyphs,args:[ui.glyphs]}),je(ai.transition,ui.transition)||Si.push({command:ca.setTransition,args:[ui.transition]}),je(ai.light,ui.light)||Si.push({command:ca.setLight,args:[ui.light]}),je(ai.fog,ui.fog)||Si.push({command:ca.setFog,args:[ui.fog]}),je(ai.projection,ui.projection)||Si.push({command:ca.setProjection,args:[ui.projection]});const Mi={},Fi=[];(function(hn,Dn,In,On){let Bn;for(Bn in Dn=Dn||{},hn=hn||{})hn.hasOwnProperty(Bn)&&(Dn.hasOwnProperty(Bn)||ld(Bn,In,On));for(Bn in Dn){if(!Dn.hasOwnProperty(Bn))continue;const Vn=Dn[Bn];hn.hasOwnProperty(Bn)?je(hn[Bn],Vn)||(hn[Bn].type==="geojson"&&Vn.type==="geojson"&&xu(hn,Dn,Bn)?In.push({command:ca.setGeoJSONSourceData,args:[Bn,Vn.data]}):Id(Bn,Dn,In,On)):hp(Bn,Dn,In)}})(ai.sources,ui.sources,Fi,Mi);const qi=[];
vendor: 3,453 bytes, line 219
219ai.layers&&ai.layers.forEach(hn=>{hn.source&&Mi[hn.source]?Si.push({command:ca.removeLayer,args:[hn.id]}):qi.push(hn)});let Xi=ai.terrain;Xi&&Mi[Xi.source]&&(Si.push({command:ca.setTerrain,args:[void 0]}),Xi=void 0),Si=Si.concat(Fi),je(Xi,ui.terrain)||Si.push({command:ca.setTerrain,args:[ui.terrain]}),function(hn,Dn,In){Dn=Dn||[];const On=(hn=hn||[]).map(Ru),Bn=Dn.map(Ru),Vn=hn.reduce(kc,{}),pn=Dn.reduce(kc,{}),Pn=On.slice(),Jn=Object.create(null);let qn,gr,vr,dr,$r,Pr,Vr;for(qn=0,gr=0;qn<On.length;qn++)vr=On[qn],pn.hasOwnProperty(vr)?gr++:(In.push({command:ca.removeLayer,args:[vr]}),Pn.splice(Pn.indexOf(vr,gr),1));for(qn=0,gr=0;qn<Bn.length;qn++)vr=Bn[Bn.length-1-qn],Pn[Pn.length-1-qn]!==vr&&(Vn.hasOwnProperty(vr)?(In.push({command:ca.removeLayer,args:[vr]}),Pn.splice(Pn.lastIndexOf(vr,Pn.length-gr),1)):gr++,Pr=Pn[Pn.length-qn],In.push({command:ca.addLayer,args:[pn[vr],Pr]}),Pn.splice(Pn.length-qn,0,vr),Jn[vr]=!0);for(qn=0;qn<Bn.length;qn++)if(vr=Bn[qn],dr=Vn[vr],$r=pn[vr],!Jn[vr]&&!je(dr,$r))if(je(dr.source,$r.source)&&je(dr["source-layer"],$r["source-layer"])&&je(dr.type,$r.type)){for(Vr in wu(dr.layout,$r.layout,In,vr,null,ca.setLayoutProperty),wu(dr.paint,$r.paint,In,vr,null,ca.setPaintProperty),je(dr.filter,$r.filter)||In.push({command:ca.setFilter,args:[vr,$r.filter]}),je(dr.minzoom,$r.minzoom)&&je(dr.maxzoom,$r.maxzoom)||In.push({command:ca.setLayerZoomRange,args:[vr,$r.minzoom,$r.maxzoom]}),dr)dr.hasOwnProperty(Vr)&&Vr!=="layout"&&Vr!=="paint"&&Vr!=="filter"&&Vr!=="metadata"&&Vr!=="minzoom"&&Vr!=="maxzoom"&&(Vr.indexOf("paint.")===0?wu(dr[Vr],$r[Vr],In,vr,Vr.slice(6),ca.setPaintProperty):je(dr[Vr],$r[Vr])||In.push({command:ca.setLayerProperty,args:[vr,Vr,$r[Vr]]}));for(Vr in $r)$r.hasOwnProperty(Vr)&&!dr.hasOwnProperty(Vr)&&Vr!=="layout"&&Vr!=="paint"&&Vr!=="filter"&&Vr!=="metadata"&&Vr!=="minzoom"&&Vr!=="maxzoom"&&(Vr.indexOf("paint.")===0?wu(dr[Vr],$r[Vr],In,vr,Vr.slice(6),ca.setPaintProperty):je(dr[Vr],$r[Vr])||In.push({command:ca.setLayerProperty,args:[vr,Vr,$r[Vr]]}))}else In.push({command:ca.removeLayer,args:[vr]}),Pr=Pn[Pn.lastIndexOf(vr)+1],In.push({command:ca.addLayer,args:[$r,Pr]})}(qi,ui.layers,Si)}catch(Mi){console.warn("Unable to compute style diff:",Mi),Si=[{command:ca.setStyle,args:[ui]}]}return Si}(this.serialize(),Ne).filter(ai=>!(ai.command in Sf));if(Ge.length===0)return!1;const Qe=Ge.filter(ai=>!(ai.command in Fh));if(Qe.length>0)throw new Error(`Unimplemented: ${Qe.map(ai=>ai.command).join(", ")}.`);return Ge.forEach(ai=>{ai.command!=="setTransition"&&ai.command!=="setProjection"&&this[ai.command].apply(this,ai.args)}),this.stylesheet=Ne,this._updateMapProjection(),!0}addImage(Ne,Ge){return this.getImage(Ne)?this.fire(new Ie.ErrorEvent(new Error("An image with this name already exists."))):(this.imageManager.addImage(Ne,Ge),this._afterImageUpdated(Ne),this)}updateImage(Ne,Ge){this.imageManager.updateImage(Ne,Ge)}getImage(Ne){return this.imageManager.getImage(Ne)}removeImage(Ne){return this.getImage(Ne)?(this.imageManager.removeImage(Ne),this._afterImageUpdated(Ne),this):this.fire(new Ie.ErrorEvent(new Error("No image with this name exists.")))}_afterImageUpdated(Ne){this._availableImages=this.imageManager.listImages(),this._changedImages[Ne]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new Ie.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addSource(Ne,Ge,Qe={}
219){if(this._checkLoaded(),this.getSource(Ne)!==void 0)throw new Error("There is already a source with this ID");if(!Ge.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(Ge).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(Ge.type)>=0&&this._validate(Ie.validateSource,`sources.${Ne}`,Ge,null,Qe))return;this.map&&this.map._collectResourceTiming&&(Ge.collectResourceTiming=!0);const ai=xo(Ne,Ge,this.dispatcher,this);ai.setEventedParent(this,()=>({isSourceLoaded:this._isSourceCacheLoaded(Ne),source:ai.serialize(),sourceId:Ne}));const ui=Si=>{const Mi=(Si?"symbol:":"other:")+Ne,Fi=this._sourceCaches[Mi]=new Ie.SourceCache(Mi,ai,Si);(Si?this._symbolSourceCaches:this._otherSourceCaches)[Ne]=Fi,Fi.style=this,Fi.onAdd(this.map)};ui(!1),Ge.type!=="vector"&&Ge.type!=="geojson"||ui(!0),ai.onAdd&&ai.onAdd(this.map),this._changed=!0}removeSource(Ne){this._checkLoaded();const Ge=this.getSource(Ne);if(!Ge)throw new Error("There is no source with this ID");for(const ai in this._layers)if(this._layers[ai].source===Ne)return this.fire(new Ie.ErrorEvent(new Error(`Source "${Ne}" cannot be removed while layer "${ai}" is using it.`)));if(this.terrain&&this.terrain.get().source===Ne)return this.fire(new Ie.ErrorEvent(new Error(`Source "${Ne}" cannot be removed while terrain is using it.`)));const Qe=this._getSourceCaches(Ne);for(const ai of Qe)delete this._sourceCaches[ai.id],delete this._updatedSources[ai.id],ai.fire(new Ie.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ai.getSource().id})),ai.setEventedParent(null),ai.clearTiles();return delete this._otherSourceCaches[Ne],delete this._symbolSourceCaches[Ne],Ge.setEventedParent(null),Ge.onRemove&&Ge.onRemove(this.map),this._changed=!0,this}
219setGeoJSONSourceData(Ne,Ge){this._checkLoaded(),this.getSource(Ne).setData(Ge),this._changed=!0}getSource(Ne){const Ge=this._getSourceCache(Ne);return Ge&&Ge.getSource()}_getSources(){const Ne=[];for(const Ge in this._otherSourceCaches){const Qe=this._getSourceCache(Ge);Qe&&Ne.push(Qe.getSource())}return Ne}addLayer(Ne,Ge,Qe={}){this._checkLoaded();const ai=Ne.id;if(this.getLayer(ai))return void this.fire(new Ie.ErrorEvent(new Error(`Layer with id "${ai}" already exists on this map`)));let ui;if(Ne.type==="custom"){if(Su(this,Ie.validateCustomStyleLayer(Ne)))return;ui=Ie.createStyleLayer(Ne)}else{if(typeof Ne.source=="object"&&(this.addSource(ai,Ne.source),Ne=Ie.clone$1(Ne),Ne=Ie.extend(Ne,{source:ai})),this._validate(Ie.validateLayer,`layers.${ai}`,Ne,{arrayIndex:-1},Qe))return;ui=Ie.createStyleLayer(Ne),this._validateLayer(ui),ui.setEventedParent(this,{layer:{id:ai}}),this._serializedLayers[ui.id]=ui.serialize(),this._updateLayerCount(ui,!0)}const Si=Ge?this._order.indexOf(Ge):this._order.length;if(Ge&&Si===-1)return void this.fire(new Ie.ErrorEvent(new Error(`Layer with i
219d "${Ge}" does not exist on this map.`)));this._order.splice(Si,0,ai),this._layerOrderChanged=!0,this._layers[ai]=ui;const Mi=this._getLayerSourceCache(ui);if(this._removedLayers[ai]&&ui.source&&Mi&&ui.type!=="custom"){const Fi=this._removedLayers[ai];delete this._removedLayers[ai],Fi.type!==ui.type?this._updatedSources[ui.source]="clear":(this._updatedSources[ui.source]="reload",Mi.pause())}this._updateLayer(ui),ui.onAdd&&ui.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(Ne,Ge){if(this._checkLoaded(),this._changed=!0,!this._layers[Ne])return void this.fire(new Ie.ErrorEvent(new Error(`The layer '${Ne}' does not exist in the map's style and cannot be moved.`)));if(Ne===Ge)return;const Qe=this._order.indexOf(Ne);this._order.splice(Qe,1);const ai=Ge?this._order.indexOf(Ge):this._order.length;Ge&&ai===-1?this.fire(new Ie.ErrorEvent(new Error(`Layer with id "${Ge}" does not exist on this map.`))):(this._order.splice(ai,0,Ne),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(Ne){this._checkLoaded();const Ge=this._layers[Ne];if(!Ge)return void this.fire(new Ie.ErrorEvent(new Error(`The layer '${Ne}' does not exist in the map's style and cannot be removed.`)));Ge.setEventedParent(null),this._updateLayerCount(Ge,!1);const Qe=this._order.indexOf(Ne);this._order.splice(Qe,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[Ne]=Ge,delete this._layers[Ne],delete this._serializedLayers[Ne],delete this._updatedLayers[Ne],delete this._updatedPaintProps[Ne],Ge.onRemove&&Ge.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(Ne){return this._layers[Ne]}hasLayer(Ne){return Ne in this._layers}hasLayerType(Ne){for(const Ge in this._layers)if(this._layers[Ge].type===Ne)return!0;return!1}setLayerZoomRange(Ne,Ge,Qe){this._checkLoaded();const ai=this.getLayer(Ne);ai?ai.minzoom===Ge&&ai.maxzoom===Qe||(Ge!=null&&(ai.minzoom=Ge),Qe!=null&&(ai.maxzoom=Qe),this._updateLayer(ai)):this.fire(new Ie.ErrorEvent(new Error(`The layer '${Ne}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(Ne,Ge,Qe={}){this._checkLoaded();const ai=this.getLayer(Ne);if(ai){if(!je(ai.filter,Ge))return Ge==null?(ai.filter=void 0,void this._updateLayer(ai)):void(this._validate(Ie.validateFilter,`layers.${ai.id}.filter`,Ge,{layerType:ai.type},Qe)||(ai.filter=Ie.clone$1(Ge),this._updateLayer(ai)))}else this.fire(new Ie.ErrorEvent(new Error(`The layer '${Ne}' does not exist in the map's style and cannot be filtered.`)))}getFilter(Ne){const Ge=this.getLayer(Ne);return Ge&&Ie.clone$1(Ge.filter)}setLayoutProperty(Ne,Ge,Qe,ai={}){this._checkLoaded();const ui=this.getLayer(Ne);ui?je(ui.getLayoutProperty(Ge),Qe)||(ui.setLayoutProperty(Ge,Qe,ai),this._updateLayer(ui)):this.fire(new Ie.ErrorEvent(new Error(`The layer '${Ne}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(Ne,Ge){const Qe=this.getLayer(Ne);if(Qe)return Qe.getLayoutProperty(Ge);this.fire(new Ie.ErrorEvent(new Error(`The layer '${Ne}' does not exist in the map's style.`)))}setPaintProperty(Ne,Ge,Qe,ai={}){this._checkLoaded();const ui=this.getLayer(Ne);ui?je(ui.getPaintProperty(Ge),Qe)||(ui.setPaintProperty(Ge,Qe,ai)&&this._updateLayer(ui),this._changed=!0,this._updatedPaintProps[Ne]=!0):this.fire(new Ie.ErrorEvent(new Error(`The layer '${Ne}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(Ne,Ge){const Qe=this.getLayer(Ne);return Qe&&Qe.getPaintProperty(Ge)}setFeatureState(Ne,Ge){this._checkLoaded();const Qe=Ne.source,ai=Ne.sourceLayer,ui=this.getSource(Qe);if(!ui)return void this.fire(new Ie.ErrorEvent(new Error(`The source '${Qe}' does not exist in the map's style.`)));const Si=ui.type;if(Si==="geojson"&&ai)return void this.fire(new Ie.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if(Si==="vector"&&!ai)return void this.fire(new Ie.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));Ne.id===void 0&&this.fire(new Ie.ErrorEvent(new Error("The feature id parameter must be provided.")));const Mi=this._getSourceCaches(Qe);for(const Fi of Mi)Fi.setFeatureState(ai,Ne.id,Ge)}removeFeatureState(Ne,Ge){this._checkLoaded();const Qe=Ne.source,ai=this.getSource(Qe);if(!ai)return void this.fire(new Ie.ErrorEvent(new Error(`The source '${Qe}' does not exist in the map's style.`)));const ui=ai.type,Si=ui==="vector"?Ne.sourceLayer:void 0;if(ui==="vector"&&!Si)return void this.fire(new Ie.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));if(Ge&&typeof Ne.id!="string"&&typeof Ne.id!="number")return void this.fire(new Ie.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));const Mi=this._getSourceCaches(Qe);for(const Fi of Mi)Fi.removeFeatureState(Si,Ne.id,Ge)}getFeatureState(Ne){this._checkLoaded();const Ge=Ne.source,Qe=Ne.sourceLayer,ai=this.getSource(Ge);if(ai){if(ai.type!=="vector"||Qe)return Ne.id===void 0&&this.fire(new Ie.ErrorEvent(new Error("The feature id parameter must be provided."))),this._getSourceCaches(Ge)[0].getFeatureState(Qe,Ne.id);this.fire(new Ie.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new Ie.ErrorEvent(new Error(`The source '${Ge}' does not exist in the map's style.`)))}getTransition(){return Ie.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const Ne={};for(const Ge in this._sourceCaches){const Qe=this._sourceCaches[Ge].getSource();Ne[Qe.id]||(Ne[Qe.id]=Qe.serialize())}return Ie.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.getTerrain()||void 0,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:Ne,layers:this._serializeLayers(this._order)},Ge=>Ge!==void 0)}_updateLayer(Ne){this._updatedLayers[Ne.id]=!0;const Ge=this._getLayerSourceCache(Ne);Ne.source&&!this._updatedSources[Ne.source]&&Ge&&Ge.getSource().type!=="raster"&&(this._updatedSources[Ne.source]="reload",Ge.pause()),this._changed=!0,Ne.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(Ne){const Ge=Si=>this._layers[Si].type==="fill-extrusion",Qe={},ai=[];for(let Si=this._order.length-1;Si>=0;Si--){const Mi=this._order[Si];if(Ge(Mi)){Qe[Mi]=Si;for(const Fi of Ne){const qi=Fi[Mi];if(qi)for(const Xi of qi)ai.push(Xi)}}}ai.sort((Si,Mi)=>Mi.intersectionZ-Si.intersectionZ);const ui=[];for(let Si=this._order.length-1;Si>=0;Si--){const Mi=this._order[Si];if(Ge(Mi))for(let Fi=ai.length-1;Fi>=0;Fi--){const qi=ai[Fi].feature;if(Qe[qi.layer.id]<Si)break;ui.push(qi),ai.pop()}else for(const Fi of Ne){const qi=Fi[Mi];if(qi)for(const Xi of qi)ui.push(Xi.feature)}}return ui}
vendor: 4,337 bytes, line 219
219queryRenderedFeatures(Ne,Ge,Qe){Ge&&Ge.filter&&this._validate(Ie.validateFilter,"queryRenderedFeatures.filter",Ge.filter,null,Ge);const ai={};if(Ge&&Ge.layers){if(!Array.isArray(Ge.layers))return this.fire(new Ie.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(const Fi of Ge.layers){const qi=this._layers[Fi];if(!qi)return this.fire(new Ie.ErrorEvent(new Error(`The layer '${Fi}' does not exist in the map's style and cannot be queried for features.`))),[];ai[qi.source]=!0}}const ui=[];Ge.availableImages=this._availableImages;const Si=Ge&&Ge.layers?Ge.layers.some(Fi=>{const qi=this.getLayer(Fi);return qi&&qi.is3D()}):this.has3DLayers(),Mi=Zi.createFromScreenPoints(Ne,Qe);for(const Fi in this._sourceCaches){const qi=this._sourceCaches[Fi].getSource().id;Ge.layers&&!ai[qi]||ui.push(ga(this._sourceCaches[Fi],this._layers,this._serializedLayers,Mi,Ge,Qe,Si,!!this.map._showQueryGeometry))}return this.placement&&ui.push(function(Fi,qi,Xi,hn,Dn,In,On){const Bn={},Vn=In.queryRenderedSymbols(hn),pn=[];for(const Pn of Object.keys(Vn).map(Number))pn.push(On[Pn]);pn.sort(tl);for(const Pn of pn){const Jn=Pn.featureIndex.lookupSymbolFeatures(Vn[Pn.bucketInstanceId],qi,Pn.bucketIndex,Pn.sourceLayerIndex,Dn.filter,Dn.layers,Dn.availableImages,Fi);for(const qn in Jn){const gr=Bn[qn]=Bn[qn]||[],vr=Jn[qn];vr.sort((dr,$r)=>{const Pr=Pn.featureSortOrder;if(Pr){const Vr=Pr.indexOf(dr.featureIndex);return Pr.indexOf($r.featureIndex)-Vr}return $r.featureIndex-dr.featureIndex});for(const dr of vr)gr.push(dr)}}for(const Pn in Bn)Bn[Pn].forEach(Jn=>{const qn=Jn.feature,gr=Xi(Fi[Pn]);if(!gr)return;const vr=gr.getFeatureState(qn.layer["source-layer"],qn.id);qn.source=qn.layer.source,qn.layer["source-layer"]&&(qn.sourceLayer=qn.layer["source-layer"]),qn.state=vr});return Bn}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),Mi.screenGeometry,Ge,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(ui)}querySourceFeatures(Ne,Ge){Ge&&Ge.filter&&this._validate(Ie.validateFilter,"querySourceFeatures.filter",Ge.filter,null,Ge);const Qe=this._getSourceCaches(Ne);let ai=[];for(const ui of Qe)ai=ai.concat(_a(ui,Ge));return ai}addSourceType(Ne,Ge,Qe){return ya.getSourceType(Ne)?Qe(new Error(`A source type called "${Ne}" already exists.`)):(ya.setSourceType(Ne,Ge),Ge.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:Ne,url:Ge.workerSourceURL},Qe):Qe(null,null))}getLight(){return this.light.getLight()}setLight(Ne,Ge={}){this._checkLoaded();const Qe=this.light.getLight();let ai=!1;for(const Si in Ne)if(!je(Ne[Si],Qe[Si])){ai=!0;break}if(!ai)return;const ui=this._setTransitionParameters({duration:300,delay:0});this.light.setLight(Ne,Ge),this.light.updateTransitions(ui)}getTerrain(){return this.terrain&&this.terrain.drapeRenderMode===1?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(Ne,Ge=1){if(this._checkLoaded(),!Ne)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);let Qe=Ne;if(Ge===1){if(typeof Qe.source=="object"){const ai="terrain-dem-src";this.addSource(ai,Qe.source),Qe=Ie.clone$1(Qe),Qe=Ie.extend(Qe,{source:ai})}if(this._validate(Ie.validateTerrain,"terrain",Qe))return}if(!this.terrain||this.terrain&&Ge!==this.terrain.drapeRenderMode){if(!Qe)return;this._createTerrain(Qe,Ge)}else{const ai=this.terrain,ui=ai.get();for(const Si of Object.keys(Ie.spec.terrain))!Qe.hasOwnProperty(Si)&&Ie.spec.terrain[Si].default&&(Qe[Si]=Ie.spec.terrain[Si].default);for(const Si in Qe)if(!je(Qe[Si],ui[Si])){ai.set(Qe),this.stylesheet.terrain=Qe;const Mi=this._setTransitionParameters({duration:0});ai.updateTransitions(Mi);break}}this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(Ne){const Ge=this.fog=new Er(Ne,this.map.transform);this.stylesheet.fog=Ne;const Qe=this._setTransitionParameters({duration:0});Ge.updateTransitions(Qe)}_updateMarkersOpacity(){this.map._markers.length!==0&&this.map._requestDomTask(()=>{for(const Ne of this.map._markers)Ne._evaluateOpacity()})}getFog(){return this.fog?this.fog.get():null}setFog(Ne){if(this._checkLoaded(),!Ne)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedU
219pdate=!0);if(this.fog){const Ge=this.fog,Qe=Ge.get();Object.keys(Ne).length===0&&Ge.set(Ne);for(const ai in Ne)if(!je(Ne[ai],Qe[ai])){Ge.set(Ne),this.stylesheet.fog=Ne;const ui=this._setTransitionParameters({duration:0});Ge.updateTransitions(ui);break}}else this._createFog(Ne);this._markersNeedUpdate=!0}_setTransitionParameters(Ne){return{now:Ie.exported.now(),transition:Ie.extend(Ne,this.stylesheet.transition)}}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const Ne=this._order.filter(Qe=>this.isLayerDraped(this._layers[Qe])),Ge=this._order.filter(Qe=>!this.isLayerDraped(this._layers[Qe]));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...Ne),this._drapedFirstOrder.push(...Ge)}_createTerrain(Ne,Ge){const Qe=this.terrain=new tr(Ne,Ge);this.stylesheet.terrain=Ne,this.dispatcher.broadcast("enableTerrain",!this.terrainSetForDrapingOnly()),this._force3DLayerUpdate();const ai=this._setTransitionParameters({duration:0});Qe.updateTransitions(ai)}_force3DLayerUpdate(){for(const Ne in this._layers){const Ge=this._layers[Ne];Ge.type==="fill-extrusion"&&this._updateLayer(Ge)}}_forceSymbolLayerUpdate(){for(const Ne in this._layers){const Ge=this._layers[Ne];Ge.type==="symbol"&&this._updateLayer(Ge)}}_validate(Ne,Ge,Qe,ai,ui={}){return(!ui||ui.validate!==!1)&&Su(this,Ne.call(Ie.validateStyle,Ie.extend({key:Ge,style:this.serialize(),value:Qe,styleSpec:Ie.spec},ai)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),Ie.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const Ne in this._layers)this._layers[Ne].setEventedParent(null);for(const Ne in this._sourceCaches)this._sourceCaches[Ne].clearTiles(),this._sourceCaches[Ne].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(Ne){const Ge=this._getSourceCaches(Ne);for(const Qe of Ge)Qe.clearTiles()}_reloadSource(Ne){const Ge=this._getSourceCaches(Ne);for(const Qe of Ge)Qe.resume(),Qe.reload()}_reloadSources(){for(const Ne of this._getSources())Ne.reload&&Ne.reload()}_updateSources(Ne){for(const Ge in this._sourceCaches)this._sourceCaches[Ge].update(Ne)}_generateCollisionBoxes(){for(const Ne in this._sourceCaches){const Ge=this._sourceCaches[Ne];Ge.resume(),Ge.reload()}}_updatePlacement(Ne,Ge,Qe,ai,ui=!1){let Si=!1,Mi=!1;const Fi={};for(const qi of this._order){const Xi=this._layers[qi];if(Xi.type!=="symbol")continue;if(!Fi[Xi.source]){const Dn=this._getLayerSourceCache(Xi);if(!Dn)continue;Fi[Xi.source]=Dn.getRenderableIds(!0).map(In=>Dn.getTileByID(In)).sort((In,On)=>On.tileID.overscaledZ-In.tileID.overscaledZ||(In.tileID.isLessThan(On.tileID)?-1:1))}const hn=this.crossTileSymbolIndex.addLayer(Xi,Fi[Xi.source],Ne.center.lng,Ne.projection);Si=Si||hn}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),ui=ui||this._layerOrderChanged||Qe===0,this._layerOrderChanged&&this.fire(new Ie.Event("neworder")),(ui||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(Ie.exported.now(),Ne.zoom))&&(this.pauseablePlacement=new mp(Ne,this._order,ui,Ge,Qe,ai,this.placement,this.fog&&Ne.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,Fi),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(Ie.exported.now()),Mi=!0),Si&&this.pauseablePlacement.placement.setStale()),Mi||Si)for(const qi of this._order){const Xi=this._layers[qi];Xi.type==="symbol"&&this.placement.updateLayerOpacities(Xi,Fi[Xi.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(Ie.exported.now())}_releaseSymbolFadeTiles(){for(const Ne in this._sourceCaches)this._sourceCaches[Ne].releaseSymbolFadeTiles()}getImages(Ne,Ge,Qe){this.imageManager.getImages(Ge.icons,Qe),this._updateTilesForChangedImages();const ai=ui=>{ui&&ui.setDependencies(Ge.tileID.key,Ge.type,Ge.icons)};ai(this._otherSourceCaches[Ge.source]),ai(this._symbolSourceCaches[Ge.source])}getGlyphs(Ne,Ge,Qe){this.glyphManager.getGlyphs(Ge.stacks,Qe)}
219getResource(Ne,Ge,Qe){return Ie.makeRequest(Ge,Qe)}_getSourceCache(Ne){return this._otherSourceCaches[Ne]}_getLayerSourceCache(Ne){return Ne.type==="symbol"?this._symbolSourceCaches[Ne.source]:this._otherSourceCaches[Ne.source]}_getSourceCaches(Ne){const Ge=[];return this._otherSourceCaches[Ne]&&Ge.push(this._otherSourceCaches[Ne]),this._symbolSourceCaches[Ne]&&Ge.push(this._symbolSourceCaches[Ne]),Ge}_isSourceCacheLoaded(Ne){const Ge=this._getSourceCaches(Ne);return Ge.length===0?(this.fire(new Ie.ErrorEvent(new Error(`There is no source with ID '${Ne}'`))),!1):Ge.every(Qe=>Qe.loaded())}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}ya.getSourceType=function(Ze){return Hs[Ze]},ya.setSourceType=function(Ze,Ne){Hs[Ze]=Ne},ya.registerForPluginStateChange=Ie.registerForPluginStateChange;var Lu=`
220#define EPSILON 0.0000001
221#define PI 3.141592653589793
222#define EXTENT 8192.0
223#define HALF_PI PI/2.0
224#define QUARTER_PI PI/4.0
225#define RAD_TO_DEG 180.0/PI
226#define DEG_TO_RAD PI/180.0
227#define GLOBE_RADIUS EXTENT/PI/2.0`,ac="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",wc=`
228#define ELEVATION_SCALE 7.0
229#define ELEVATION_OFFSET 450.0
230#ifdef PROJECTION_GLOBE_VIEW
231uniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(
232mix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}
233#else
234vec3 elevationVector(vec2 pos) { return vec3(0,0,1); }
235#endif
236const float skirtOffset=24575.0;vec3 decomposeToPosAndSkirt(vec2 posWithComposedSkirt)
237{float skirt=float(posWithComposedSkirt.x >=skirtOffset);vec2 pos=posWithComposedSkirt-vec2(skirt*skirtOffset,0.0);return vec3(pos,skirt);}
238#ifdef TERRAIN
239#ifdef TERRAIN_DEM_FLOAT_FORMAT
240uniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;
241#else
242uniform sampler2D u_dem;uniform sampler2D u_dem_prev;
243#endif
244uniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {
245#ifdef TERRAIN_DEM_FLOAT_FORMAT
246vec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;
247#else
248float dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));
249#ifdef TERRAIN_DEM_NEAREST_FILTER
250return u_exaggeration*tl;
251#endif
252float tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);
253#endif
254}float prevElevation(vec2 apos) {
255#ifdef TERRAIN_DEM_FLOAT_FORMAT
256vec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;
257#else
258float dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);
259#endif
260}
261#ifdef TERRAIN_VERTEX_MORPHING
262float elevation(vec2 apos) {
263#ifdef ZERO_EXAGGERATION
264return 0.0;
265#endif
266float nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}
267#else
268float elevation(vec2 apos) {
269#ifdef ZERO_EXAGGERATION
270return 0.0;
271#endif
272return currentElevation(apos);}
273#endif
274highp float unpack_depth(highp vec4 rgba_depth)
275{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;
275vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(
276unpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))
277);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {
278#ifdef TERRAIN_DEM_FLOAT_FORMAT
279float tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;
280#else
281vec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);
282#endif
283return vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}
284#else
285float elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }
286#endif`,$d=`#ifdef FOG
287uniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}
288#endif`,zl=`#ifdef FOG
289uniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump float u_fog_temporal_offset;varying vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(
290mix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}
290vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}
291#endif`;let pi={},Ci={};const Ui=[];ur(Lu,Ui),ur(wc,Ui),ur($d,Ui),ur(zl,Ui),pi=Kn("",wc),Ci=Kn(zl,$d);const Ki=Kn(`
292#if __VERSION__ >=300
293#define varying in
294#define gl_FragColor glFragColor
295#define texture2D texture
296#define textureCube texture
297out vec4 glFragColor;
298#endif
299highp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}highp float unpack_depth(highp vec4 rgba_depth)
300{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}`,`
301#if __VERSION__ >=300
302#define attribute in
303#define varying out
304#define texture2D texture
305#endif
306float wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}
307#ifdef PROJECTION_GLOBE_VIEW
308vec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {
309#ifndef PROJECTED_POS_ON_VIEWPORT
310float tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;
311#else
312return vec3(0.0);
313#endif
314}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}
315#endif
316vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(
317unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0
318);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered.`),mn=Lu,yn=`
319#ifdef GL_ES
320precision mediump float;
321#else
322
323#if !defined(lowp)
324#define lowp
325#endif
326
327#if !defined(mediump)
328#define mediump
329#endif
330
331#if !defined(highp)
332#define highp
333#endif
334
335#endif`;var An={background:Kn(`uniform vec4 u_color;uniform float u_opacity;
336#ifdef LIGHTING_3D_MODE
337varying vec4 v_color;
338#endif
339void main() {vec4 out_color;
340#ifdef LIGHTING_3D_MODE
341out_color=v_color;
342#else
343out_color=u_color;
344#endif
345#ifdef FOG
346out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
347#endif
348gl_FragColor=out_color*u_opacity;
349#ifdef OVERDRAW_INSPECTOR
350gl_FragColor=vec4(1.0);
351#endif
352}`,`attribute vec2 a_pos;uniform mat4 u_matrix;
353#ifdef LIGHTING_3D_MODE
354uniform vec4 u_color;varying vec4 v_color;
355#endif
356void main() {gl_Position=u_matrix*vec4(a_pos,0,1);
357#ifdef LIGHTING_3D_MODE
358v_color=apply_lighting(u_color);
359#endif
360#ifdef FOG
361v_fog_pos=fog_position(a_pos);
362#endif
363}`),backgroundPattern:Kn(`uniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos;void main() {vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);
364#ifdef LIGHTING_3D_MODE
365out_color=apply_lighting(out_color);
366#endif
367#ifdef FOG
368out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
369#endif
370gl_FragColor=out_color*u_opacity;
371#ifdef OVERDRAW_INSPECTOR
372gl_FragColor=vec4(1.0);
373#endif
374}`,`uniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_pattern_size,u_tile_units_to_pixels,a_pos);
375#ifdef FOG
376v_fog_pos=fog_position(a_pos);
377#endif
378}`),circle:Kn(`varying vec3 v_data;varying float v_visibility;
379#pragma mapbox: define highp vec4 color
380#pragma mapbox: define mediump float radius
381#pragma mapbox: define lowp float blur
382#pragma mapbox: define lowp float opacity
383#pragma mapbox: define highp vec4 stroke_color
384#pragma mapbox: define mediump float stroke_width
385#pragma mapbox: define lowp float stroke_opacity
386void main() {
387#pragma mapbox: initialize highp vec4 color
388#pragma mapbox: initialize mediump float radius
389#pragma mapbox: initialize lowp float blur
390#pragma mapbox: initialize lowp float opacity
391#pragma mapbox: initialize highp vec4 stroke_color
392#pragma mapbox: initialize mediump float stroke_width
393#pragma mapbox: initialize lowp float stroke_opacity
394vec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(
395antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)
396);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);
397#ifdef LIGHTING_3D_MODE
398out_color=apply_lighting(out_color);
399#endif
400#ifdef FOG
401out_color=fog_apply_premultiplied(out_color,v_fog_pos);
402#endif
403gl_FragColor=out_color*(v_visibility*opacity_t);
404#ifdef OVERDRAW_INSPECTOR
405gl_FragColor=vec4(1.0);
406#endif
407}`,`#define NUM_VISIBILITY_RINGS 2
408#define INV_SQRT2 0.70710678
409#define ELEVATION_BIAS 0.0001
410#define NUM_SAMPLES_PER_RING 16
411uniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;
412#ifdef PROJECTION_GLOBE_VIEW
413attribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;
414#endif
415varying vec3 v_data;varying float v_visibility;
416#pragma mapbox: define highp vec4 color
417#pragma mapbox: define mediump float radius
418#pragma mapbox: define lowp float blur
419#pragma mapbox: define lowp float opacity
420#pragma mapbox: define highp vec4 stroke_color
421#pragma mapbox: define mediump float stroke_width
422#pragma mapbox: define lowp float stroke_opacity
423vec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {
424#if defined(TERRAIN)
425return elevation(pos)+ELEVATION_BIAS;
426#else
427return 0.0;
428#endif
429}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);
430#ifdef PITCH_WITH_MAP
431#ifdef PROJECTION_GLOBE_VIEW
432return u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );
433#else
434return u_matrix*( world_center+vec4(sample_offset,0,0) );
435#endif
436#else
437return projected_center+vec4(sample_offset,0,0);
438#endif
439}float get_sample_step() {
440#ifdef PITCH_WITH_MAP
441return 2.0*PI/float(NUM_SAMPLES_PER_RING);
442#else
443return PI/float(NUM_SAMPLES_PER_RING);
444#endif
445}void main(void) {
446#pragma mapbox: initialize highp vec4 color
447#pragma mapbox: initialize mediump float radius
448#pragma mapbox: initialize lowp float blur
449#pragma mapbox: initialize lowp float opacity
450#pragma mapbox: initialize highp vec4 stroke_color
451#pragma mapbox: initialize mediump float stroke_width
452#pragma mapbox: initialize lowp float stroke_opacity
453vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);vec4 world_center;mat3 surface_vectors;
454#ifdef PROJECTION_GLOBE_VIEW
455vec3 pos_normal_3=a_pos_normal_3/16384.0;surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);world_center=vec4(pos,1);
456#else 
457surface_vectors=mat3(1.0);float height=circle_elevation(circle_center);world_center=vec4(circle_center,height,1);
458#endif
459vec4 projected_center=u_matrix*world_center;float view_scale=0.0;
460#ifdef PITCH_WITH_MAP
461#ifdef SCALE_WITH_MAP
462view_scale=1.0;
463#else
464view_scale=projected_center.w/u_camera_to_center_distance;
465#endif
466#else
467#ifdef SCALE_WITH_MAP
468view_scale=u_camera_to_center_distance;
469#else
470view_scale=projected_center.w;
471#endif
472#endif
473gl_Position=project_vertex(extrude,world_center,projected_center,radiu
473s,stroke_width,view_scale,surface_vectors);float visibility=0.0;
474#ifdef TERRAIN
475float step=get_sample_step();vec4 occlusion_world_center;vec4 occlusion_projected_center;
476#ifdef PITCH_WITH_MAP
477float cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);occlusion_world_center=vec4(circle_center,cantilevered_height,1);occlusion_projected_center=u_matrix*occlusion_world_center;
478#else
479occlusion_world_center=world_center;occlusion_projected_center=projected_center;
480#endif
481for(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);
482#else
483visibility=1.0;
484#endif
485#ifdef PROJECTION_GLOBE_VIEW
486visibility=1.0;
487#endif
488v_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);
489#ifdef FOG
490v_fog_pos=fog_position(world_center.xyz);
491#endif
492}`),clippingMask:Kn("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:Kn(`uniform highp float u_intensity;varying vec2 v_extrude;
493#pragma mapbox: define highp float weight
494#define GAUSS_COEF 0.3989422804014327
495void main() {
496#pragma mapbox: initialize highp float weight
497float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);
498#ifdef FOG
499if (u_is_globe==0) {gl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}
500#endif
501#ifdef OVERDRAW_INSPECTOR
502gl_FragColor=vec4(1.0);
503#endif
504}`,`uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;
505#ifdef PROJECTION_GLOBE_VIEW
506attribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;
507#endif
508varying vec2 v_extrude;
509#pragma mapbox: define highp float weight
510#pragma mapbox: define mediump float radius
511const highp float ZERO=1.0/255.0/16.0;
512#define GAUSS_COEF 0.3989422804014327
513void main(void) {
514#pragma mapbox: initialize highp float weight
515#pragma mapbox: initialize mediump float radius
516vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);vec3 pos;
517#ifdef PROJECTION_GLOBE_VIEW
518vec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);
519#else
520pos=vec3(tilePos+extrude,elevation(tilePos));
521#endif
522gl_Position=u_matrix*vec4(pos,1);
523#ifdef FOG
524v_fog_pos=fog_position(pos);
525#endif
526}`),heatmapTexture:Kn(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;
527#ifdef OVERDRAW_INSPECTOR
528gl_FragColor=vec4(0.0);
529#endif
530}`,"attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:Kn("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}",`attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(
5310.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}`),collisionCircle:Kn("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}",`attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(
532mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(
5330.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}`),debug:Kn("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}",`attribute vec2 a_pos;
534#ifdef PROJECTION_GLOBE_VIEW
535attribute vec3 a_pos_3;
536#endif
537varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;
538#ifdef PROJECTION_GLOBE_VIEW
539gl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1);
540#else
541gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);
542#endif
543}`),fill:Kn(`#pragma mapbox: define highp vec4 color
544#pragma mapbox: define lowp float opacity
545void main() {
546#pragma mapbox: initialize highp vec4 color
547#pragma mapbox: initialize lowp float opacity
548vec4 out_color=color;
549#ifdef LIGHTING_3D_MODE
550out_color=apply_lighting(out_color);
551#endif
552#ifdef FOG
553out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
554#endif
555gl_FragColor=out_color*opacity;
556#ifdef OVERDRAW_INSPECTOR
557gl_FragColor=vec4(1.0);
558#endif
559}`,`attribute vec2 a_pos;uniform mat4 u_matrix;
560#pragma mapbox: define highp vec4 color
561#pragma mapbox: define lowp float opacity
562void main() {
563#pragma mapbox: initialize highp vec4 color
564#pragma mapbox: initialize lowp float opacity
565gl_Position=u_matrix*vec4(a_pos,0,1);
566#ifdef FOG
567v_fog_pos=fog_position(a_pos);
568#endif
569}`),fillOutline:Kn(`varying vec2 v_pos;
570#pragma mapbox: define highp vec4 outline_color
571#pragma mapbox: define lowp float opacity
572void main() {
573#pragma mapbox: initialize highp vec4 outline_color
574#pragma mapbox: initialize lowp float opacity
575float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;
576#ifdef LIGHTING_3D_MODE
577out_color=apply_lighting(out_color);
578#endif
579#ifdef FOG
580out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
581#endif
582gl_FragColor=out_color*(alpha*opacity);
583#ifdef OVERDRAW_INSPECTOR
584gl_FragColor=vec4(1.0);
585#endif
586}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;
587#pragma mapbox: define highp vec4 outline_color
588#pragma mapbox: define lowp float opacity
589void main() {
590#pragma mapbox: initialize highp vec4 outline_color
591#pragma mapbox: initialize lowp float opacity
592gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
593#ifdef FOG
594v_fog_pos=fog_position(a_pos);
595#endif
596}`),fillOutlinePattern:Kn(`uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;varying vec2 v_pos_world;
597#pragma mapbox: define lowp float opacity
598#pragma mapbox: define lowp vec4 pattern
599void main() {
600#pragma mapbox: initialize lowp float opacity
601#pragma mapbox: initialize mediump vec4 pattern
602vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);float dist=length(v_pos_world-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=texture2D(u_image,pos);
603#ifdef LIGHTING_3D_MODE
604out_color=apply_lighting(out_color);
605#endif
606#ifdef FOG
607out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
608#endif
609gl_FragColor=out_color*(alpha*opacity);
610#ifdef OVERDRAW_INSPECTOR
611gl_FragColor=vec4(1.0);
612#endif
613}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;varying vec2 v_pos_world;
614#pragma mapbox: define lowp float opacity
615#pragma mapbox: define lowp vec4 pattern
616#pragma mapbox: define lowp float pixel_ratio
617void main() {
618#pragma mapbox: initialize lowp float opacity
619#pragma mapbox: initialize mediump vec4 pattern
620#pragma mapbox: initialize lowp float pixel_ratio
621vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);v_pos_world=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
622#ifdef FOG
623v_fog_pos=fog_position(a_pos);
624#endif
625}`),fillPattern:Kn(`uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;
626#pragma mapbox: define lowp float opacity
627#pragma mapbox: define lowp vec4 pattern
628void main() {
629#pragma mapbox: initialize lowp float opacity
630#pragma mapbox: initialize mediump vec4 pattern
631vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);
632#ifdef LIGHTING_3D_MODE
633out_color=apply_lighting(out_color);
634#endif
635#ifdef FOG
636out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
637#endif
638gl_FragColor=out_color*opacity;
639#ifdef OVERDRAW_INSPECTOR
640gl_FragColor=vec4(1.0);
641#endif
642}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;
643#pragma mapbox: define lowp float opacity
644#pragma mapbox: define lowp vec4 pattern
645#pragma mapbox: define lowp float pixel_ratio
646void main() {
647#pragma mapbox: initialize lowp float opacity
648#pragma mapbox: initialize mediump vec4 pattern
649#pragma mapbox: initialize lowp float pixel_ratio
650vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);
651#ifdef FOG
652v_fog_pos=fog_position(a_pos);
653#endif
654}`),fillExtrusion:Kn(`varying vec4 v_color;
655#ifdef RENDER_SHADOWS
656varying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;
657#endif
658#ifdef FAUX_AO
659uniform lowp vec2 u_ao;varying vec3 v_ao;
660#endif
661#ifdef ZERO_ROOF_RADIUS
662varying vec4 v_roof_color;
663#endif
664#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)
665varying highp vec3 v_normal;
666#endif
667void main() {
668#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)
669vec3 normal=v_normal;
670#endif
671float z;vec4 color;
672#ifdef ZERO_ROOF_RADIUS
673z=float(normal.z > 0.00001);color=mix(v_color,v_roof_color,z);
674#else
675color=v_color;
676#endif
677#ifdef FAUX_AO
678float intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0
678),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;
679#ifdef ZERO_ROOF_RADIUS
680concave*=(1.0-z);
681#endif
682float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);color.rgb=color.rgb*shade;
683#endif
684#ifdef RENDER_SHADOWS
685#ifdef ZERO_ROOF_RADIUS
686normal=mix(normal,vec3(0.0,0.0,1.0),z);
687#endif
688color.xyz=shadowed_color_normal(color.xyz,normalize(normal),v_pos_light_view_0,v_pos_light_view_1,v_depth);
689#endif
690#ifdef FOG
691color=fog_dither(fog_apply_premultiplied(color,v_fog_pos));
692#endif
693gl_FragColor=color;
694#ifdef OVERDRAW_INSPECTOR
695gl_FragColor=vec4(1.0);
696#endif
697}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;
698#ifdef PROJECTION_GLOBE_VIEW
699attribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;
700#endif
701varying vec4 v_color;
702#ifdef RENDER_SHADOWS
703uniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;
704#endif
705#ifdef ZERO_ROOF_RADIUS
706varying vec4 v_roof_color;
707#endif
708#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)
709varying highp vec3 v_normal;
710#endif
711#ifdef FAUX_AO
712uniform lowp vec2 u_ao;varying vec3 v_ao;
713#endif
714#pragma mapbox: define highp float base
715#pragma mapbox: define highp float height
716#pragma mapbox: define highp vec4 color
717void main() {
718#pragma mapbox: initialize highp float base
719#pragma mapbox: initialize highp float height
720#pragma mapbox: initialize highp vec4 color
721vec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));
722#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)
723v_normal=normal;
724#endif
725base=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);
726#if defined(HAS_CENTROID) || defined(TERRAIN)
727centroid_pos=a_centroid_pos;
728#endif
729float ele=0.0;float h=0.0;float c_ele;vec3 pos;
730#ifdef TERRAIN
731bool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);pos=vec3(pos_nx.xy,h);
732#else
733h=t > 0.0 ? height : base;pos=vec3(pos_nx.xy,h);
734#endif
735#ifdef PROJECTION_GLOBE_VIEW
736float lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);
737#endif
738float hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);
739#ifdef RENDER_SHADOWS
740v_pos_light_view_0=u_light_matrix_0*vec4(pos,1);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1);v_depth=gl_Position.w;
741#endif
742float NdotL=0.0;float colorvalue=0.0;
743#ifdef LIGHTING_3D_MODE
744NdotL=calculate_NdotL(normal);
745#else
746colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),NdotL);
747#endif
748if (normal.y !=0.0) {float r=0.84;
749#ifndef LIGHTING_3D_MODE
750r=mix(0.7,0.98,1.0-u_lightintensity);
751#endif
752NdotL*=(
753(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}v_color=vec4(0.0,0.0,0.0,1.0);
754#ifdef FAUX_AO
755float concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;
756#ifdef TERRAIN
757top_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);
758#endif
759v_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);
760#ifdef PROJECTION_GLOBE_VIEW
761top_height+=u_height_lift;
762#endif
763gl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;
764#endif
765#ifdef LIGHTING_3D_MODE
766v_color=apply_lighting(color,NdotL);
767#else
768v_color.rgb+=clamp(color.rgb*NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));
769#endif
770v_color*=u_opacity;
771#ifdef ZERO_ROOF_RADIUS
772v_roof_color=vec4(0.0,0.0,0.0,1.0);
773#ifdef LIGHTING_3D_MODE
774v_roof_color=apply_lighting(color,calculate_NdotL(vec3(0.0,0.0,1.0)));
775#else
776float roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),roofNdotL);v_roof_color.rgb+=clamp(color.rgb*roofNdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));
777#endif
778v_roof_color*=u_opacity;
779#endif
780#ifdef FOG
781v_fog_pos=fog_position(pos);
782#endif
783}`),fillExtrusionPattern:Kn(`uniform vec2 u_texsize;uniform sampler2D u_image;
784#ifdef FAUX_AO
785uniform lowp vec2 u_ao;varying vec3 v_ao;
786#endif
787#ifdef LIGHTING_3D_MODE
788varying float v_NdotL;
789#endif
790varying vec2 v_pos;varying vec4 v_lighting;uniform lowp float u_opacity;
791#pragma mapbox: define lowp float base
792#pragma mapbox: define lowp float height
793#pragma mapbox: define lowp vec4 pattern
794#pragma mapbox: define lowp float pixel_ratio
795void main() {
796#pragma mapbox: initialize lowp float base
797#pragma mapbox: initialize lowp float height
798#pragma mapbox: initialize mediump vec4 pattern
799#pragma mapbox: initialize lowp float pixel_ratio
800vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);
801#ifdef LIGHTING_3D_MODE
802out_color=apply_lighting(out_color,v_NdotL)*u_opacity;
803#else
804out_color=out_color*v_lighting;
805#endif
806#ifdef FAUX_AO
807float intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;
808#endif
809#ifdef FOG
810out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
811#endif
812gl_FragColor=out_color;
813#ifdef OVERDRAW_INSPECTOR
814gl_FragColor=vec4(1.0);
815#endif
816}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform float u_tile_units_to_pixels;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;
817#ifdef PROJECTION_GLOBE_VIEW
818attribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;
819#endif
820varying vec2 v_pos;varying vec4 v_lighting;
821#ifdef FAUX_AO
822uniform lowp vec2 u_ao;varying vec3 v_ao;
823#endif
824#ifdef LIGHTING_3D_MODE
825varying float v_NdotL;
826#endif
827#pragma mapbox: define lowp float base
828#pragma mapbox: define lowp float height
829#pragma mapbox: define lowp vec4 pattern
830#pragma mapbox: define lowp float pixel_ratio
831void main() {
832#pragma mapbox: initialize lowp float base
833#pragma mapbox: initialize lowp float height
834#pragma mapbox: initialize mediump vec4 pattern
835#pragma mapbox: initialize lowp float pixel_ratio
836vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;
836base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);
837#if defined(HAS_CENTROID) || defined(TERRAIN)
838centroid_pos=a_centroid_pos;
839#endif
840float ele=0.0;float h=z;vec3 p;float c_ele;
841#ifdef TERRAIN
842bool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);p=vec3(pos_nx.xy,h);
843#else
844p=vec3(pos_nx.xy,z);
845#endif
846#ifdef PROJECTION_GLOBE_VIEW
847float lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);
848#endif
849float hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0
850? pos_nx.xy
851: vec2(edgedistance,z*u_height_factor);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float NdotL=0.0;
852#ifdef LIGHTING_3D_MODE
853NdotL=calculate_NdotL(normal);
854#else
855NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),NdotL);
856#endif
857if (normal.y !=0.0) {float r=0.84;
858#ifndef LIGHTING_3D_MODE
859r=mix(0.7,0.98,1.0-u_lightintensity);
860#endif
861NdotL*=(
862(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}
863#ifdef FAUX_AO
864float concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;
865#ifdef TERRAIN
866top_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(ce
866ntroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);
867#endif
868v_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);
869#ifdef PROJECTION_GLOBE_VIEW
870top_height+=u_height_lift;
871#endif
872gl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;
873#endif
874#ifdef LIGHTING_3D_MODE
875v_NdotL=NdotL;
876#else
877v_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;
878#endif 
879#ifdef FOG
880v_fog_pos=fog_position(p);
881#endif
882}`),hillshadePrepare:Kn(`#ifdef GL_ES
883precision highp float;
884#endif
885uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {
886#ifdef TERRAIN_DEM_FLOAT_FORMAT
887return texture2D(u_image,coord).a/4.0;
888#else
889vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;
890#endif
891}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(
892(c+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c)
893)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(
894deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);
895#ifdef OVERDRAW_INSPECTOR
896gl_FragColor=vec4(1.0);
897#endif
898}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:Kn(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;
899#ifdef LIGHTING_3D_MODE
900gl_FragColor=apply_lighting(gl_FragColor);
901#endif
902#ifdef FOG
903gl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));
904#endif
905#ifdef OVERDRAW_INSPECTOR
906gl_FragColor=vec4(1.0);
907#endif
908}`,`uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;
909#ifdef FOG
910v_fog_pos=fog_position(a_pos);
911#endif
912}`),line:Kn(`uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec4 v_uv;
913#ifdef RENDER_LINE_DASH
914uniform sampler2D u_dash_image;varying vec2 v_tex;
915#endif
916#ifdef RENDER_LINE_GRADIENT
917uniform sampler2D u_gradient_image;
918#endif
919uniform float u_border_width;uniform vec4 u_border_color;float luminance(vec3 c) {return (c.r+c.r+c.b+c.g+c.g+c.g)*0.1667;}
920#pragma mapbox: define highp vec4 color
921#pragma mapbox: define lowp float floorwidth
922#pragma mapbox: define lowp vec4 dash
923#pragma mapbox: define lowp float blur
924#pragma mapbox: define lowp float opacity
925float linearstep(float edge0,float edge1,float x) {return  clamp((x-edge0)/(edge1-edge0),0.0,1.0);}void main() {
926#pragma mapbox: initialize highp vec4 color
927#pragma mapbox: initialize lowp float floorwidth
928#pragma mapbox: initialize lowp vec4 dash
929#pragma mapbox: initialize lowp float blur
930#pragma mapbox: initialize lowp float opacity
931float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);
932#ifdef RENDER_LINE_DASH
933float sdfdist=texture2D(u_dash_image,v_tex).a;float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/dash.z;alpha*=linearstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);
934#endif
935highp vec4 out_color;
936#ifdef RENDER_LINE_GRADIENT
937out_color=texture2D(u_gradient_image,v_uv.xy);
938#else
939out_color=color;
940#endif
941float trimmed=1.0;
942#ifdef RENDER_LINE_TRIM_OFFSET
943highp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {out_color=vec4(0,0,0,0);trimmed=0.0;}}
944#endif
945#ifdef LIGHTING_3D_MODE
946out_color=apply_lighting(out_color);
947#endif
948#ifdef FOG
949out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
950#endif
951#ifdef RENDER_LINE_ALPHA_DISCARD
952if (alpha < u_alpha_discard_threshold) {discard;}
953#endif
954#ifdef RENDER_LINE_BORDER
955float edgeBlur=(u_border_width+1.0/u_device_pixel_ratio);float alpha2=clamp(min(dist-(v_width2.t-edgeBlur),v_width2.s-dist)/edgeBlur,0.0,1.0);if (alpha2 < 1.) {float smoothAlpha=smoothstep(0.6,1.0,alpha2);
956#ifdef RENDER_LINE_BORDER_AUTO
957float Y=(out_color.a > 0.01) ? luminance(out_color.rgb/out_color.a) : 1.;float adjustment=(Y > 0.) ? 0.5/Y : 0.45;if (out_color.a > 0.25 && Y < 0.25) {vec3 borderColor=(Y > 0.) ? out_color.rgb : vec3(1,1,1)*out_color.a;out_color.rgb=out_color.rgb+borderColor*(adjustment*(1.0-smoothAlpha));} else {out_color.rgb*=(0.6 +0.4*smoothAlpha);}
958#else
959out_color.rgb=mix(u_border_color.rgb*u_border_color.a*trimmed,out_color.rgb,smoothAlpha);
960#endif
961}
962#endif
963gl_FragColor=out_color*(alpha*opacity);
964#ifdef OVERDRAW_INSPECTOR
965gl_FragColor=vec4(1.0);
966#endif
967}`,`
968#define EXTRUDE_SCALE 0.015873016
969attribute vec2 a_pos_normal;attribute vec4 a_data;
970#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)
971attribute highp vec4 a_packed;
972#endif
973#ifdef RENDER_LINE_DASH
974attribute float a_linesofar;
975#endif
976uniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec4 v_uv;
977#ifdef RENDER_LINE_DASH
978uniform vec2 u_texsize;uniform float u_tile_units_to_pixels;varying vec2 v_tex;
979#endif
980#ifdef RENDER_LINE_GRADIENT
981uniform float u_image_height;
982#endif
983#pragma mapbox: define highp vec4 color
984#pragma mapbox: define lowp float floorwidth
985#pragma mapbox: define lowp vec4 dash
986#pragma mapbox: define lowp float blur
987#pragma mapbox: define lowp float opacity
988#pragma mapbox: define mediump float gapwidth
989#pragma mapbox: define lowp float offset
990#pragma mapbox: define mediump float width
991void main() {
992#pragma mapbox: initialize highp vec4 color
993#pragma mapbox: initialize lowp float floorwidth
994#pragma mapbox: initialize lowp vec4 dash
995#pragma mapbox: initialize lowp float blur
996#pragma mapbox: initialize lowp float opacity
997#pragma mapbox: initialize mediump float gapwidth
998#pragma mapbox: initialize lowp float offset
999#pragma mapbox: initialize mediump float width
1000float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;
1001#ifndef RENDER_TO_TEXTURE
1002float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
1003#else
1004v_gamma_scale=1.0;
1005#endif
1006#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)
1007float a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];
1008#ifdef RENDER_LINE_GRADIENT
1009highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);
1010#else
1011v_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);
1012#endif
1013#endif
1014#ifdef RENDER_LINE_DASH
1015float scale=dash.z==0.0 ? 0.0 : u_tile_units_to_pixels/dash.z;float height=dash.y;v_tex=vec2(a_linesofar*scale/floorwidth,(-normal.y*height+dash.x+0.5)/u_texsize.y);
1016#endif
1017v_width2=vec2(outset,inset);
1018#ifdef FOG
1019v_fog_pos=fog_position(pos);
1020#endif
1021}`),linePattern:Kn(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_tile_units_to_pixels;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;
1022#pragma mapbox: define lowp vec4 pattern
1023#pragma mapbox: define lowp float pixel_ratio
1024#pragma mapbox: define lowp float blur
1025#pragma mapbox: define lowp float opacity
1026void main() {
1027#pragma mapbox: initialize mediump vec4 pattern
1028#pragma mapbox: initialize lowp float pixel_ratio
1029#pragma mapbox: initialize lowp float blur
1030#pragma mapbox: initialize lowp float opacity
1031vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;vec2 pattern_size=vec2(display_size.x/u_tile_units_to_pixels,display_size.y);float aspect=display_size.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x=mod(v_linesofar/pattern_size.x*aspect,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(x,y));vec4 color=texture2D(u_image,pos);
1032#ifdef LIGHTING_3D_MODE
1033color=apply_lighting(color);
1034#endif
1035#ifdef FOG
1036color=fog_dither(fog_apply_premultiplied(color,v_fog_pos));
1037#endif
1038gl_FragColor=color*(alpha*opacity);
1039#ifdef OVERDRAW_INSPECTOR
1040gl_FragColor=vec4(1.0);
1041#endif
1042}`,`
1043#define scale 0.015873016
1044attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;
1045#pragma mapbox: define lowp float blur
1046#pragma mapbox: define lowp float opacity
1047#pragma mapbox: define lowp float offset
1048#pragma mapbox: define mediump float gapwidth
1049#pragma mapbox: define mediump float width
1050#pragma mapbox: define lowp float floorwidth
1051#pragma mapbox: define lowp vec4 pattern
1052#pragma mapbox: define lowp float pixel_ratio
1053void main() {
1054#pragma mapbox: initialize lowp float blur
1055#pragma mapbox: initialize lowp float opacity
1056#pragma mapbox: initialize lowp float offset
1057#pragma mapbox: initialize mediump float gapwidth
1058#pragma mapbox: initialize mediump float width
1059#pragma mapbox: initialize lowp float floorwidth
1060#pragma mapbox: initialize mediump vec4 pattern
1061#pragma mapbox: initialize lowp float pixel_ratio
1062float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;
1063#ifndef RENDER_TO_TEXTURE
1064float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
1065#else
1066v_gamma_scale=1.0;
1067#endif
1068v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;
1069#ifdef FOG
1070v_fog_pos=fog_position(pos);
1071#endif
1072}`),raster:Kn(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(
1073dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);
1074#ifdef LIGHTING_3D_MODE
1075out_color=apply_lighting(out_color);
1076#endif
1077#ifdef FOG
1078out_color=fog_dither(fog_apply(out_color,v_fog_pos));
1079#endif
1080gl_FragColor=vec4(out_color*color.a,color.a);
1081#ifdef OVERDRAW_INSPECTOR
1082gl_FragColor=vec4(1.0);
1083#endif
1084}`,`uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;
1085#ifdef FOG
1086v_fog_pos=fog_position(a_pos);
1087#endif
1088}`),symbolIcon:Kn(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;
1089#pragma mapbox: define lowp float opacity
1090void main() {
1091#pragma mapbox: initialize lowp float opacity
1092lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;
1093#ifdef OVERDRAW_INSPECTOR
1094gl_FragColor=vec4(1.0);
1095#endif
1096}`,`attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;
1097#ifdef PROJECTION_GLOBE_VIEW
1098attribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;
1099#endif
1100uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector;
1101#ifdef PROJECTION_GLOBE_VIEW
1102uniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;
1103#endif
1104varying vec2 v_tex;varying float v_fade_opacity;
1105#pragma mapbox: define lowp float opacity
1106void main() {
1107#pragma mapbox: initialize lowp float opacity
1108vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;
1109#ifdef PROJECTION_GLOBE_VIEW
1110mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;
1111#else
1112world_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;
1113#endif
1114vec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?
1115camera_to_anchor_distance/u_camera_to_center_distance :
1116u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(
11170.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjected_point;
1118#ifdef PROJECTION_GLOBE_VIEW
1119vec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1);
1120#else
1121offsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);
1122#endif
1123vec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;
1124#ifdef PROJECTION_GLOBE_VIEW
1125vec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);
1126#else
1127projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);
1128#endif
1129highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);
1130#ifdef TERRAIN
1131#ifdef PITCH_WITH_MAP_TERRAIN
1132vec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);
1133#endif
1134#endif
1135float occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;
1136#ifdef PROJECTION_GLOBE_VIEW
1137vec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));
1138#else
1139gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));
1140#endif
1141float projection_transition_fade=1.0;
1142#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)
1143projection_transition_fade=1.0-step(EPSILON,u_zoom_transition);
1144#endif
1145v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}`),symbolSDF:Kn(`#define SDF_PX 8.0
1146uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;
1147#pragma mapbox: define highp vec4 fill_color
1148#pragma mapb
1148ox: define highp vec4 halo_color
1149#pragma mapbox: define lowp float opacity
1150#pragma mapbox: define lowp float halo_width
1151#pragma mapbox: define lowp float halo_blur
1152void main() {
1153#pragma mapbox: initialize highp vec4 fill_color
1154#pragma mapbox: initialize highp vec4 halo_color
1155#pragma mapbox: initialize lowp float opacity
1156#pragma mapbox: initialize lowp float halo_width
1157#pragma mapbox: initialize lowp float halo_blur
1158float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);
1159#ifdef OVERDRAW_INSPECTOR
1160gl_FragColor=vec4(1.0);
1161#endif
1162}`,`attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;
1163#ifdef PROJECTION_GLOBE_VIEW
1164attribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;
1165#endif
1166uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;
1167#ifdef PROJECTION_GLOBE_VIEW
1168uniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;
1169#endif
1170varying vec2 v_data0;varying vec3 v_data1;
1171#pragma mapbox: define highp vec4 fill_color
1172#pragma mapbox: define highp vec4 halo_color
1173#pragma mapbox: define lowp float opacity
1174#pragma mapbox: define lowp float halo_width
1175#pragma mapbox: define lowp float halo_blur
1176void main() {
1177#pragma mapbox: initialize highp vec4 fill_color
1178#pragma mapbox: initialize highp vec4 halo_color
1179#pragma mapbox: initialize lowp float opacity
1180#pragma mapbox: initialize lowp float halo_width
1181#pragma mapbox: initialize lowp float halo_blur
1182vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;
1183#ifdef PROJECTION_GLOBE_VIEW
1184mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;
1185#else
1186world_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;
1187#endif
1188vec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?
1189camera_to_anchor_distance/u_camera_to_center_distance :
1190u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(
11910.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point;
1192#ifdef PROJECTION_GLOBE_VIEW
1193vec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);
1194#else
1195offsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);
1196#endif
1197vec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;
1198#ifdef PROJECTION_GLOBE_VIEW
1199vec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);
1200#else
1201projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);
1202#endif
1203highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);
1204#ifdef TERRAIN
1205#ifdef PITCH_WITH_MAP_TERRAIN
1206vec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);
1207#endif
1208#endif
1209float occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;
1210#ifdef PROJECTION_GLOBE_VIEW
1211vec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));
1212#else
1213gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));
1214#endif
1215float gamma_scale=gl_Position.w;float projection_transition_fade=1.0;
1216#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)
1217projection_transition_fade=1.0-step(EPSILON,u_zoom_transition);
1218#endif
1219vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}`),symbolTextAndIcon:Kn(`#define SDF_PX 8.0
1220#define SDF 1.0
1221#define ICON 0.0
1222uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;
1223#pragma mapbox: define highp vec4 fill_color
1224#pragma mapbox: define highp vec4 halo_color
1225#pragma mapbox: define lowp float opacity
1226#pragma mapbox: define lowp float halo_width
1227#pragma mapbox: define lowp float halo_blur
1228void main() {
1229#pragma mapbox: initialize highp vec4 fill_color
1230#pragma mapbox: initialize highp vec4 halo_color
1231#pragma mapbox: initialize lowp float opacity
1232#pragma mapbox: initialize lowp float halo_width
1233#pragma mapbox: initialize lowp float halo_blur
1234float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;
1234gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;
1235#ifdef OVERDRAW_INSPECTOR
1236gl_FragColor=vec4(1.0);
1237#endif
1238return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);
1239#ifdef OVERDRAW_INSPECTOR
1240gl_FragColor=vec4(1.0);
1241#endif
1242}`,`attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_projected_pos;attribute float a_fade_opacity;
1243#ifdef PROJECTION_GLOBE_VIEW
1244attribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;
1245#endif
1246uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;
1247#ifdef PROJECTION_GLOBE_VIEW
1248uniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;
1249#endif
1250varying vec4 v_data0;varying vec4 v_data1;
1251#pragma mapbox: define highp vec4 fill_color
1252#pragma mapbox: define highp vec4 halo_color
1253#pragma mapbox: define lowp float opacity
1254#pragma mapbox: define lowp float halo_width
1255#pragma mapbox: define lowp float halo_blur
1256void main() {
1257#pragma mapbox: initialize highp vec4 fill_color
1258#pragma mapbox: initialize highp vec4 halo_color
1259#pragma mapbox: initialize lowp float opacity
1260#pragma mapbox: initialize lowp float halo_width
1261#pragma mapbox: initialize lowp float halo_blur
1262vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;
1263#ifdef PROJECTION_GLOBE_VIEW
1264mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;
1265#else
1266world_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;
1267#endif
1268vec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?
1269camera_to_anchor_distance/u_camera_to_center_distance :
1270u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(
12710.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;
1272#ifdef PROJECTION_GLOBE_VIEW
1273vec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);
1274#else
1275projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);
1276#endif
1277highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);
1278#ifdef TERRAIN
1279#ifdef PITCH_WITH_MAP_TERRAIN
1280vec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);
1281#endif
1282#endif
1283float occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;
1284#ifdef PROJECTION_GLOBE_VIEW
1285vec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));
1286#else
1287gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));
1288#endif
1289float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;
1290#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)
1291projection_transition_fade=1.0-step(EPSILON,u_zoom_transition);
1292#endif
1293v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_s
1293df);}`),terrainRaster:Kn(`uniform sampler2D u_image0;varying vec2 v_pos0;
1294#ifdef FOG
1295varying float v_fog_opacity;
1296#endif
1297#ifdef RENDER_SHADOWS
1298varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;
1299#endif
1300void main() {vec4 color=texture2D(u_image0,v_pos0);
1301#ifdef RENDER_SHADOWS
1302color.xyz=shadowed_color(color.xyz,v_pos_light_view_0,v_pos_light_view_1,v_depth);
1303#endif
1304#ifdef FOG
1305#ifdef ZERO_EXAGGERATION
1306color=fog_dither(fog_apply_premultiplied(color,v_fog_pos));
1307#else
1308color=fog_dither(fog_apply_from_vert(color,v_fog_opacity));
1309#endif
1310#endif
1311gl_FragColor=color;
1312#ifdef TERRAIN_WIREFRAME
1313gl_FragColor=vec4(1.0,0.0,0.0,0.8);
1314#endif
1315#ifdef OVERDRAW_INSPECTOR
1316gl_FragColor=vec4(1.0);
1317#endif
1318}`,`uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;varying vec2 v_pos0;
1319#ifdef FOG
1320varying float v_fog_opacity;
1321#endif
1322#ifdef RENDER_SHADOWS
1323uniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;
1324#endif
1325const float wireframeOffset=0.00015;void main() {vec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;vec2 decodedPos=decomposedPosAndSkirt.xy;float elevation=elevation(decodedPos)-skirt*u_skirt_height;
1326#ifdef TERRAIN_WIREFRAME
1327elevation+=wireframeOffset;
1328#endif
1329v_pos0=decodedPos/8192.0;gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);
1330#ifdef FOG
1331#ifdef ZERO_EXAGGERATION
1332v_fog_pos=fog_position(decodedPos);
1333#else
1334v_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));
1335#endif
1336#endif
1337#ifdef RENDER_SHADOWS
1338vec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);v_depth=gl_Position.w;
1339#endif
1340}`),terrainDepth:Kn(`#ifdef GL_ES
1341precision highp float;
1342#endif
1343varying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}`,"uniform mat4 u_matrix;attribute vec2 a_pos;varying float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:Kn(`
1344varying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(
1345cos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(e
1345nd-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;
1346#ifdef FOG
1347sky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);
1348#endif
1349sky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);
1350#ifdef OVERDRAW_INSPECTOR
1351gl_FragColor=vec4(1.0);
1352#endif
1353}`,ac),skyboxGradient:Kn(`varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));
1354#ifdef FOG
1355color.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;
1356#endif
1357color*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;
1358#ifdef OVERDRAW_INSPECTOR
1359gl_FragColor=vec4(1.0);
1360#endif
1361}`,ac),skyboxCapture:Kn(`
1362varying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;
1363#ifdef GL_ES
1364precision highp float;
1365#endif
1366#define BETA_R                  vec3(5.5e-6,13.0e-6,22.4e-6)
1367#define BETA_M                  vec3(21e-6,21e-6,21e-6)
1368#define MIE_G                   0.76
1369#define DENSITY_HEIGHT_SCALE_R  8000.0
1370#define DENSITY_HEIGHT_SCALE_M  1200.0
1371#define PLANET_RADIUS           6360e3
1372#define ATMOSPHERE_RADIUS       6420e3
1373#define SAMPLE_STEPS            10
1374#define DENSITY_STEPS           4
1375float ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}
1375float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}`,"attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(e
1375nd-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:Kn(`uniform sampler2D u_image0;varying vec2 v_pos0;
1376#ifndef FOG
1377uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;
1378#endif
1379void main() {vec4 color;
1380#ifdef CUSTOM_ANTIALIASING
1381vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(
1382mix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture2D(u_image0,v_pos0);color=vec4(raster.rgb*antialias,raster.a*antialias);
1383#else
1384color=texture2D(u_image0,v_pos0);
1385#endif
1386#ifdef FOG
1387color=fog_dither(fog_apply_premultiplied(color,v_fog_pos));
1388#endif
1389gl_FragColor=color;
1390#ifdef TERRAIN_WIREFRAME
1391gl_FragColor=vec4(1.0,0.0,0.0,0.8);
1392#endif
1393#ifdef OVERDRAW_INSPECTOR
1394gl_FragColor=vec4(1.0);
1395#endif
1396}`,`uniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;uniform float u_skirt_height;
1397#ifdef GLOBE_POLES
1398attribute vec3 a_globe_pos;attribute vec2 a_uv;
1399#else
1400attribute vec2 a_pos;
1401#endif
1402varying vec2 v_pos0;const float wireframeOffset=1e3;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {
1403#ifdef GLOBE_POLES
1404vec3 globe_pos=a_globe_pos;vec2 uv=a_uv;
1405#else
1406float tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=mercatorX*tiles-idx;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);
1407#endif
1408v_pos0=uv;vec2 tile_pos=uv*EXTENT;vec3 globe_derived_up_vector=normalize(globe_pos)*u_tile_up_scale;
1409#ifdef GLOBE_POLES
1410vec3 up_vector=globe_derived_up_vector;
1411#else
1412vec3 up_vector=elevationVector(tile_pos);
1413#endif
1414float height=elevation(tile_pos);
1415#ifdef TERRAIN_WIREFRAME
1416height+=wireframeOffset;
1417#endif
1418globe_pos+=up_vector*height;
1419#ifndef GLOBE_POLES
1420globe_pos-=globe_derived_up_vector*u_skirt_height*decomposed_pos_and_skirt.z;
1421#endif
1422#ifdef GLOBE_POLES
1423vec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);
1424#else
1425vec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height-u_skirt_height*decomposed_pos_and_skirt.z,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);
1426#endif
1427gl_Position=u_proj_matrix*interpolated_pos;
1428#ifdef FOG
1429v_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);
1430#endif
1431}`),globeAtmosphere:Kn(`uniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec3 u_start_color;uniform vec4 u_color;uniform vec4 u_space_color;uniform vec4 u_high_color;uniform float u_star_intensity;uniform float u_star_size;uniform float u_star_density;uniform float u_horizon_angle;uniform mat4 u_rotation_matrix;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;
1431highp float random(highp vec3 p) {p=fract(p*vec3(23.2342,97.1231,91.2342));p+=dot(p.zxy,p.yxz+123.1234);return fract(p.x*p.y);}float stars(vec3 p,float scale,vec2 offset) {vec2 uv_scale=(u_viewport/u_star_size)*scale;vec3 position=vec3(p.xy*uv_scale+offset*u_viewport,p.z);vec3 q=fract(position)-0.5;vec3 id=floor(position);float random_visibility=step(random(id),u_star_density);float circle=smoothstep(0.5+u_star_intensity,0.5,length(q));return circle*random_visibility;}void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir;
1432#ifdef PROJECTION_GLOBE_VIEW
1433globe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {discard;return;}
1434#endif
1435highp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?
14360.0 : max(acos(dot(dir,horizon_dir)),0.0);float horizon_angle;
1437#ifdef PROJECTION_GLOBE_VIEW
1438highp vec3 closest_point=globe_pos_dot_dir*dir;float closest_point_to_center=length(closest_point-u_globe_pos);float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));horizon_angle=globe_pos_dot_dir < 0.0 ?
1439PI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);
1440#else
1441horizon_angle=horizon_angle_mercator;
1442#endif
1443horizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;vec3 color_stop_2=u_space_color.rgb;vec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c =mix(color_stop_2,c2,t);float a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);vec2 uv=gl_FragCoord.xy/u_viewport-0.5;float aspect_ratio=u_viewport.x/u_viewport.y;vec4 uv_dir=vec4(normalize(vec3(uv.x*aspect_ratio,uv.y,1.0)),1.0);uv_dir=u_rotation_matrix*uv_dir;vec3 n=abs(uv_dir.xyz);vec2 uv_remap=(n.x > n.y && n.x > n.z) ? uv_dir.yz/uv_dir.x:
1444(n.y > n.x && n.y > n.z) ? uv_dir.zx/uv_dir.y:
1445uv_dir.xy/uv_dir.z;uv_remap.x/=aspect_ratio;vec3 D=vec3(uv_remap,1.0);highp float star_field=0.0;if (u_star_intensity > 0.0) {star_field+=stars(D,1.2,vec2(0.0,0.0));star_field+=stars(D,1.0,vec2(1.0,0.0));star_field+=stars(D,0.8,vec2(0.0,1.0));star_field+=stars(D,0.6,vec2(1.0,1.0));star_field*=(1.0-pow(t,0.25+(1.0-u_high_color.a)*0.75));c+=star_field*alpha_2;}c=dither(c,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=vec4(c,a);}`,`attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(
1446mix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(
1447mix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}`)};function ur(Ze,Ne){const Ge=Ze.replace(/\s*\/\/[^\n]*\n/g,`
1448`).split(`
1449`);for(let Qe of Ge)if(Qe=Qe.trim(),Qe[0]==="#"&&Qe.includes("if")&&!Qe.includes("endif")){Qe=Qe.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim();const ai=Qe.split(" ");for(const ui of ai)Ne.includes(ui)||Ne.push(ui)}}function Kn(Ze,Ne){const Ge=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Qe=Ne.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),ai={},ui=[...Ui];return ur(Ze,ui),ur(Ne,ui),{fragmentSource:Ze=Ze.replace(Ge,(Si,Mi,Fi,qi,Xi)=>(ai[Xi]=!0,Mi==="define"?`
1450#ifndef HAS_UNIFORM_u_${Xi}
1451varying ${Fi} ${qi} ${Xi};
1452#else
1453uniform ${Fi} ${qi} u_${Xi};
1454#endif
1455`:`
1456#ifdef HAS_UNIFORM_u_${Xi}
1457    ${Fi} ${qi} ${Xi} = u_${Xi};
1458#endif
1459`)),vertexSource:Ne=Ne.replace(Ge,(Si,Mi,Fi,qi,Xi)=>{const hn=qi==="float"?"vec2":"vec4",Dn=Xi.match(/color/)?"color":hn;return ai[Xi]?Mi==="define"?`
1460#ifndef HAS_UNIFORM_u_${Xi}
1461uniform lowp float u_${Xi}_t;
1462attribute ${Fi} ${hn} a_${Xi};
1463varying ${Fi} ${qi} ${Xi}
1463;
1464#else
1465uniform ${Fi} ${qi} u_${Xi};
1466#endif
1467`:Dn==="vec4"?`
1468#ifndef HAS_UNIFORM_u_${Xi}
1469    ${Xi} = a_${Xi};
1470#else
1471    ${Fi} ${qi} ${Xi} = u_${Xi};
1472#endif
1473`:`
1474#ifndef HAS_UNIFORM_u_${Xi}
1475    ${Xi} = unpack_mix_${Dn}(a_${Xi}, u_${Xi}_t);
1476#else
1477    ${Fi} ${qi} ${Xi} = u_${Xi};
1478#endif
1479`:Mi==="define"?`
1480#ifndef HAS_UNIFORM_u_${Xi}
1481uniform lowp float u_${Xi}_t;
1482attribute ${Fi} ${hn} a_${Xi};
1483#else
1484uniform ${Fi} ${qi} u_${Xi};
1485#endif
1486`:Dn==="vec4"?`
1487#ifndef HAS_UNIFORM_u_${Xi}
1488    ${Fi} ${qi} ${Xi} = a_${Xi};
1489#else
1490    ${Fi} ${qi} ${Xi} = u_${Xi};
1491#endif
1492`:`
1493#ifndef HAS_UNIFORM_u_${Xi}
1494    ${Fi} ${qi} ${Xi} = unpack_mix_${Dn}(a_${Xi}, u_${Xi}_t);
1495#else
1496    ${Fi} ${qi} ${Xi} = u_${Xi};
1497#endif
1498`}),staticAttributes:Qe,usedDefines:ui}}class Br{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(Ne,Ge,Qe,ai,ui,Si,Mi){this.context=Ne;let Fi=this.boundPaintVertexBuffers.length!==ai.length;for(let Xi=0;!Fi&&Xi<ai.length;Xi++)this.boundPaintVertexBuffers[Xi]!==ai[Xi]&&(Fi=!0);let qi=this.boundDynamicVertexBuffers.length!==Mi.length;for(let Xi=0;!qi&&Xi<Mi.length;Xi++)this.boundDynamicVertexBuffers[Xi]!==Mi[Xi]&&(qi=!0);if(!Ne.extVertexArrayObject||!this.vao||this.boundProgram!==Ge||this.boundLayoutVertexBuffer!==Qe||Fi||qi||this.boundIndexBuffer!==ui||this.boundVertexOffset!==Si)this.freshBind(Ge,Qe,ai,ui,Si,Mi);else{Ne.bindVertexArrayOES.set(this.vao);for(const Xi of Mi)Xi&&Xi.bind();ui&&ui.dynamicDraw&&ui.bind()}}freshBind(Ne,Ge,Qe,ai,ui,Si){let Mi;const Fi=Ne.numAttributes,qi=this.context,Xi=qi.gl;if(qi.extVertexArrayObject)this.vao&&this.destroy(),this.vao=qi.extVertexArrayObject.createVertexArrayOES(),qi.bindVertexArrayOES.set(this.vao),Mi=0,this.boundProgram=Ne,this.boundLayoutVertexBuffer=Ge,this.boundPaintVertexBuffers=Qe,this.boundIndexBuffer=ai,this.boundVertexOffset=ui,this.boundDynamicVertexBuffers=Si;else{Mi=qi.currentNumAttributes||0;for(let hn=Fi;hn<Mi;hn++)Xi.disableVertexAttribArray(hn)}Ge.enableAttributes(Xi,Ne),Ge.bind(),Ge.setVertexAttribPointers(Xi,Ne,ui);for(const hn of Qe)hn.enableAttributes(Xi,Ne),hn.bind(),hn.setVertexAttribPointers(Xi,Ne,ui);for(const hn of Si)hn&&(hn.enableAttributes(Xi,Ne),hn.bind(),hn.setVertexAttribPointers(Xi,Ne,ui));ai&&ai.bind(),qi.currentNumAttributes=Fi}destroy(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)}}function ls(Ze,Ne){const Ge=Math.pow(2,Ne.canonical.z),Qe=Ne.canonical.y;return[new Ie.MercatorCoordinate(0,Qe/Ge).toLngLat().lat,new Ie.MercatorCoordinate(0,(Qe+1)/Ge).toLngLat().lat]}function ps(Ze,Ne,Ge,Qe,ai,ui,Si){const Mi=Ze.context,Fi=Mi.gl,qi=Ge.fbo;if(!qi)return;Ze.prepareDrawTile();const Xi=Ze.useProgram("hillshade");Mi.activeTexture.set(Fi.TEXTURE0),Fi.bindTexture(Fi.TEXTURE_2D,qi.colorAttachment.get());const hn=((Bn,Vn,pn,Pn)=>{const Jn=pn.paint.get("hillshade-shadow-color"),qn=pn.paint.get("hillshade-highlight-color"),gr=pn.paint.get("hillshade-accent-color");let vr=pn.paint.get("hillshade-illumination-direction")*(Math.PI/180);pn.paint.get("hillshade-illumination-anchor")==="viewport"&&(vr-=Bn.transform.angle);const dr=!Bn.options.moving;return{u_matrix:Pn||Bn.transform.calculateProjMatrix(Vn.tileID.toUnwrapped(),dr),u_image:0,u_latrange:ls(0,Vn.tileID),u_light:[pn.paint.get("hillshade-exaggeration"),vr],u_shadow:Jn,u_highlight:qn,u_accent:gr}})(Ze,Ge,Qe,Ze.terrain?Ne.projMatrix:null);Ze.prepareDrawProgram(Mi,Xi,Ne.toUnwrapped());const{tileBoundsBuffer:Dn,tileBoundsIndexBuffer:In,tileBoundsSegments:On}=Ze.getTileBoundsBuffers(Ge);Xi.draw(Mi,Fi.TRIANGLES,ai,ui,Si,Ie.CullFaceMode.disabled,hn,Qe.id,Dn,In,On)}function Kr(Ze,Ne,Ge){if(!Ne.needsDEMTextureUpload)return;const Qe=Ze.context,ai=Qe.gl;Qe.pixelStoreUnpackPremultiplyAlpha.set(!1),Ne.demTexture=Ne.demTexture||Ze.getTileTexture(Ge.stride);const ui=Ge.getPixels();Ne.demTexture?Ne.demTexture.update(ui,{premultiply:!1}):Ne.demTexture=new Ie.Texture(Qe,ui,ai.RGBA,{premultiply:!1}),Ne.needsDEMTextureUpload=!1}function Ns(Ze,Ne,Ge,Qe,ai,ui){const Si=Ze.context,Mi=Si.gl;if(!Ne.dem)return;const Fi=Ne.dem;if(Si.activeTexture.set(Mi.TEXTURE1),Kr(Ze,Ne,Fi),!Ne.demTexture)return;Ne.demTexture.bind(Mi.NEAREST,Mi.CLAMP_TO_EDGE);const qi=Fi.dim;Si.activeTexture.set(Mi.TEXTURE0);let Xi=Ne.fbo;if(!Xi){const On=new Ie.Texture(Si,{width:qi,height:qi,data:null},Mi.RGBA);On.bind(Mi.LINEAR,Mi.CLAMP_TO_EDGE),Xi=Ne.fbo=Si.createFramebuffer(qi,qi,!0),Xi.colorAttachment.set(On.texture)}Si.bindFramebuffer.set(Xi.framebuffer),Si.viewport.set([0,0,qi,qi]);const{tileBoundsBuffer:hn,tileBoundsIndexBuffer:Dn,tileBoundsSegments:In}=Ze.getMercatorTileBoundsBuffers();Ze.useProgram("hillshadePrepare").draw(Si,Mi.TRIANGLES,Qe,ai,ui,Ie.CullFaceMode.disabled,((On,Bn)=>{const Vn=Bn.stride,pn=Ie.create();return Ie.ortho(pn,0,Ie.EXTENT,-Ie.EXTENT,0,0,1),Ie.translate(pn,pn,[0,-Ie.EXTENT,0]),{u_matrix:pn,u_image:1,u_dimension:[Vn,Vn],u_zoom:On.overscaledZ,u_unpack:Bn.unpackVector}}
1498)(Ne.tileID,Fi),Ge.id,hn,Dn,In),Ne.needsHillshadePrepare=!1}const co=Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_image0:new Ie.Uniform1i(Ze),u_skirt_height:new Ie.Uniform1f(Ze)}),Fo=(Ze,Ne)=>({u_matrix:Ze,u_image0:0,u_skirt_height:Ne}),Vo=(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi,hn,Dn,In,On)=>({u_proj_matrix:Float32Array.from(Ze),u_globe_matrix:Ne,u_normalize_matrix:Float32Array.from(Qe),u_merc_matrix:Ge,u_zoom_transition:ai,u_merc_center:ui,u_image0:0,u_frustum_tl:Si,u_frustum_tr:Mi,u_frustum_br:Fi,u_frustum_bl:qi,u_globe_pos:Xi,u_globe_radius:hn,u_viewport:Dn,u_grid_matrix:On?Float32Array.from(On):new Float32Array(9),u_skirt_height:In});function Dl(Ze,Ne){return Ze!=null&&Ne!=null&&!(!Ze.hasData()||!Ne.hasData())&&Ze.demTexture!=null&&Ne.demTexture!=null&&Ze.tileID.key!==Ne.tileID.key}const Wa=new class{constructor(){this.operations={}}newMorphing(Ze,Ne,Ge,Qe,ai){if(Ze in this.operations){const ui=this.operations[Ze];ui.to.tileID.key!==Ge.tileID.key&&(ui.queued=Ge)}else this.operations[Ze]={startTime:Qe,phase:0,duration:ai,from:Ne,to:Ge,queued:null}}getMorphValuesForProxy(Ze){if(!(Ze in this.operations))return null;const Ne=this.operations[Ze];return{from:Ne.from,to:Ne.to,phase:Ne.phase}}update(Ze){for(const Ne in this.operations){const Ge=this.operations[Ne];for(Ge.phase=(Ze-Ge.startTime)/Ge.duration;Ge.phase>=1||!this._validOp(Ge);)if(!this._nextOp(Ge,Ze)){delete this.operations[Ne];break}}}_nextOp(Ze,Ne){return!!Ze.queued&&(Ze.from=Ze.to,Ze.to=Ze.queued,Ze.queued=null,Ze.phase=0,Ze.startTime=Ne,!0)}_validOp(Ze){return Ze.from.hasData()&&Ze.to.hasData()}},Sc={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function qa(Ze){return 6*Math.pow(1.5,22-Ze)}function Wo(Ze,Ne){const Ge=1<<Ze.z;return!Ne&&(Ze.x===0||Ze.x===Ge-1)||Ze.y===0||Ze.y===Ge-1}const Xc=Ze=>({u_matrix:Ze});function zo(Ze,Ne,Ge,Qe,ai){if(ai>0){const ui=Ie.exported.now(),Si=(ui-Ze.timeAdded)/ai,Mi=Ne?(ui-Ne.timeAdded)/ai:-1,Fi=Ge.getSource(),qi=Qe.coveringZoomLevel({tileSize:Fi.tileSize,roundZoom:Fi.roundZoom}),Xi=!Ne||Math.abs(Ne.tileID.overscaledZ-qi)>Math.abs(Ze.tileID.overscaledZ-qi),hn=Xi&&Ze.refreshedUponExpiration?1:Ie.clamp(Xi?Si:1-Mi,0,1);return Ze.refreshedUponExpiration&&Si>=1&&(Ze.refreshedUponExpiration=!1),Ne?{opacity:1,mix:1-hn}:{opacity:hn,mix:0}}return{opacity:1,mix:0}}class Na extends Ie.SourceCache{constructor(Ne){const Ge={type:"raster-dem",maxzoom:Ne.transform.maxZoom},Qe=new os(dl(),null),ai=xo("mock-dem",Ge,Qe,Ne.style);super("mock-dem",ai,!1),ai.setEventedParent(this),this._sourceLoaded=!0}_loadTile(Ne,Ge){Ne.state="loaded",Ge(null)}}class hu extends Ie.SourceCache{constructor(Ne){const Ge=xo("proxy",{type:"geojson",maxzoom:Ne.transform.maxZoom},new os(dl(),null),Ne.style);super("proxy",Ge,!1),Ge.setEventedParent(this),this.map=this.getSource().map=Ne,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(Ne,Ge,Qe){if(Ne.freezeTileCoverage)return;this.transform=Ne;const ai=Ne.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce((ui,Si)=>{if(ui[Si.key]="",!this._tiles[Si.key]){const Mi=new Ie.Tile(Si,this._source.tileSize*Si.overscaleFactor(),Ne.tileZoom);Mi.state="loaded",this._tiles[Si.key]=Mi}return ui},{});for(const ui in this._tiles)ui in ai||(this.freeFBO(ui),this._tiles[ui].unloadVectorData(),delete this._tiles[ui])}freeFBO(Ne){const Ge=this.proxyCachedFBO[Ne];if(Ge!==void 0){const Qe=Object.values(Ge);this.renderCachePool.push(...Qe),delete this.proxyCachedFBO[Ne]}}deallocRenderCache(){this.renderCache.forEach(Ne=>Ne.fb.destroy()),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class ud extends Ie.OverscaledTileID{constructor(Ne,Ge,Qe){super(Ne.overscaledZ,Ne.wrap,Ne.canonical.z,Ne.canonical.x,Ne.canonical.y),this.proxyTileKey=Ge,this.projMatrix=Qe}}class Ic extends Ie.Elevation{constructor(Ne,Ge){super(),this.painter=Ne,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[Qe,ai,ui]=function(Fi){const qi=new Ie.StructArrayLayout2i4,Xi=new Ie.StructArrayLayout3ui6,hn=131;
vendor: 4,952 bytes, lines 1498-1501
1498qi.reserve(17161),Xi.reserve(33800);const Dn=Ie.EXTENT/128,In=Ie.EXTENT+Dn/2,On=In+Dn;for(let Vn=-Dn;Vn<On;Vn+=Dn)for(let pn=-Dn;pn<On;pn+=Dn){const Pn=pn<0||pn>In||Vn<0||Vn>In?24575:0,Jn=Ie.clamp(Math.round(pn),0,Ie.EXTENT),qn=Ie.clamp(Math.round(Vn),0,Ie.EXTENT);qi.emplaceBack(Jn+Pn,qn)}const Bn=(Vn,pn)=>{const Pn=pn*hn+Vn;Xi.emplaceBack(Pn+1,Pn,Pn+hn),Xi.emplaceBack(Pn+hn,Pn+hn+1,Pn+1)};for(let Vn=1;Vn<129;Vn++)for(let pn=1;pn<129;pn++)Bn(pn,Vn);return[0,129].forEach(Vn=>{for(let pn=0;pn<130;pn++)Bn(pn,Vn),Bn(Vn,pn)}),[qi,Xi,32768]}(),Si=Ne.context;this.gridBuffer=Si.createVertexBuffer(Qe,Ie.posAttributes.members),this.gridIndexBuffer=Si.createIndexBuffer(ai),this.gridSegments=Ie.SegmentVector.simpleSegment(0,0,Qe.length,ai.length),this.gridNoSkirtSegments=Ie.SegmentVector.simpleSegment(0,0,Qe.length,ui),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new hu(Ge.map),this.orthoMatrix=Ie.create(),Ie.ortho(this.orthoMatrix,this.painter.transform.projection.name==="globe"?.015:0,Ie.EXTENT,0,Ie.EXTENT,0,1);const Mi=Si.gl;this._overlapStencilMode=new Ie.StencilMode({func:Mi.GEQUAL,mask:255},0,255,Mi.KEEP,Mi.KEEP,Mi.REPLACE),this._previousZoom=Ne.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=Ge,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new Na(Ge.map)}set style(Ne){Ne.on("data",this._onStyleDataEvent.bind(this)),Ne.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=Ne,this._checkRenderCacheEfficiency(),this._style.map.on("moveend",()=>{this._clearLineLayersFromRenderCache()})}update(Ne,Ge,Qe){if(Ne&&Ne.terrain){this._style!==Ne&&(this.style=Ne),this.enabled=!0;const ai=Ne.terrain.properties;this.sourceCache=Ne.terrain.drapeRenderMode===0?this._mockSourceCache:Ne._getSourceCache(ai.get("source")),this._exaggeration=ai.get("exaggeration");const ui=()=>{this.sourceCache.used&&Ie.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.
1499This leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const Si=this.getScaledDemTileSize();this.sourceCache.update(Ge,Si,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,ui(),this._initializing=!0),ui(),Ge.updateElevation(!0,Qe),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(Ge),this._emptyDEMTextureDirty=!0}else this._disable()}resetTileLookupCache(Ne){this._findCoveringTileCache[Ne]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_checkRenderCacheEfficiency(){const Ne=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||Ne.efficiency!==100&&Ie.warnOnce(`Terrain render cache efficiency is not optimal (${Ne.efficiency}%) and performance
1500                may be affected negatively, consider placing all background, fill and line layers before layer
1501                with id '${Ne.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(Ne){Ne.coord&&Ne.dataType==="source"?this._clearRenderCacheForTile(Ne.sourceCacheId,Ne.coord):Ne.dataType==="style"&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const Ne in this._style._sourceCaches)this._style._sourceCaches[Ne].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach(Ne=>Ne.fb.destroy()),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0)}_source(){return this.enabled?this.sourceCache:null}isUsingMockSource(){return this.sourceCache===this._mockSourceCache}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const Ne=2*this.proxySourceCache.getSource().tileSize;return[Ne,Ne]}set useVertexMorphing(Ne){this._useVertexMorphing=Ne}updateTileBinding(Ne){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const Ge=this.proxySourceCache,Qe=this.painter.transform;this._initializing&&(this._initializing=Qe._centerAltitude===0&&this.getAtPointOrZero(Ie.MercatorCoordinate.fromLngLat(Qe.center),-1)===-1,this._emptyDEMTextureDirty=!this._initializing);const ai=this.proxyCoords=Ge.getIds().map(Fi=>{const qi=Ge.getTileByID(Fi).tileID;return qi.projMatrix=Qe.calculateProjMatrix(qi.toUnwrapped()),qi});(function(Fi,qi){const Xi=qi.transform.pointCoordinate(qi.transform.getCameraPoint()),hn=new Ie.Point(Xi.x,Xi.y);Fi.sort((Dn,In)=>
vendor: 4,186 bytes, line 1501
1501{if(In.overscaledZ-Dn.overscaledZ)return In.overscaledZ-Dn.overscaledZ;const On=new Ie.Point(Dn.canonical.x+(1<<Dn.canonical.z)*Dn.wrap,Dn.canonical.y),Bn=new Ie.Point(In.canonical.x+(1<<In.canonical.z)*In.wrap,In.canonical.y),Vn=hn.mult(1<<Dn.canonical.z);return Vn.x-=.5,Vn.y-=.5,Vn.distSqr(On)-Vn.distSqr(Bn)})})(ai,this.painter),this._previousZoom=Qe.zoom;const ui=this.proxyToSource||{};this.proxyToSource={},ai.forEach(Fi=>{this.proxyToSource[Fi.key]={}}),this.terrainTileForTile={};const Si=this._style._sourceCaches;for(const Fi in Si){const qi=Si[Fi];if(!qi.used||(qi!==this.sourceCache&&this.resetTileLookupCache(qi.id),this._setupProxiedCoordsForOrtho(qi,Ne[Fi],ui),qi.usedForTerrain))continue;const Xi=Ne[Fi];qi.getSource().reparseOverscaled&&this._assignTerrainTiles(Xi)}this.proxiedCoords[Ge.id]=ai.map(Fi=>new ud(Fi,Fi.key,this.orthoMatrix)),this._assignTerrainTiles(ai),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(ui),this.renderingToTexture=!1,this._updateTimestamp=Ie.exported.now();const Mi={};this._visibleDemTiles=[];for(const Fi of this.proxyCoords){const qi=this.terrainTileForTile[Fi.key];if(!qi)continue;const Xi=qi.tileID.key;Xi in Mi||(this._visibleDemTiles.push(qi),Mi[Xi]=Xi)}}_assignTerrainTiles(Ne){this._initializing||Ne.forEach(Ge=>{if(this.terrainTileForTile[Ge.key])return;const Qe=this._findTileCoveringTileID(Ge,this.sourceCache);Qe&&(this.terrainTileForTile[Ge.key]=Qe)})}_prepareDEMTextures(){const Ne=this.painter.context,Ge=Ne.gl;for(const Qe in this.terrainTileForTile){const ai=this.terrainTileForTile[Qe],ui=ai.dem;!ui||ai.demTexture&&!ai.needsDEMTextureUpload||(Ne.activeTexture.set(Ge.TEXTURE1),Kr(this.painter,ai,ui))}}_prepareDemTileUniforms(Ne,Ge,Qe,ai){if(!Ge||Ge.demTexture==null)return!1;const ui=Ne.tileID.canonical,Si=Math.pow(2,Ge.tileID.canonical.z-ui.z),Mi=ai||"";return Qe[`u_dem_tl${Mi}`]=[ui.x*Si%1,ui.y*Si%1],Qe[`u_dem_scale${Mi}`]=Si,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){const Ne=this.painter.context,Ge=Ne.gl;if(!this._emptyDepthBufferTexture){const Qe=new Ie.RGBAImage({width:1,height:1},Uint8Array.of(255,255,255,255));this._emptyDepthBufferTexture=new Ie.Texture(Ne,Qe,Ge.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let Ne=0;const Ge=this._visibleDemTiles.reduce((Qe,ai)=>{if(!ai.dem)return Qe;const ui=ai.dem.tree.minimums[0];return ui>0&&Ne++,Qe+ui},0);return Ne?Ge/Ne:0}_updateEmptyDEMTexture(){const Ne=this.painter.context,Ge=Ne.gl;Ne.activeTexture.set(Ge.TEXTURE2);const Qe=this._getLoadedAreaMinimum(),ai=new Ie.RGBAImage({width:1,height:1},new Uint8Array(Ie.DEMData.pack(Qe,this.sourceCache.getSource().encoding)));this._emptyDEMTextureDirty=!1;let ui=this._emptyDEMTexture;return ui?ui.update(ai,{premultiply:!1}):ui=this._emptyDEMTexture=new Ie.Texture(Ne,ai,Ge.RGBA,{premultiply:!1}),ui}setupElevationDraw(Ne,Ge,Qe){const ai=this.painter.context,ui=ai.gl,Si=(Mi=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:Ie.DEMData.getUnpackVector(Mi),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0});var Mi;Si.u_dem_size=this.sourceCache.getSource().tileSize,Si.u_exaggeration=this.exaggeration();let Fi=null,qi=null,Xi=1;if(Qe&&Qe.morphing&&this._useVertexMorphing){const hn=Qe.morphing.srcDemTile,Dn=Qe.morphing.dstDemTile;Xi=Qe.morphing.phase,hn&&Dn&&(this._prepareDemTileUniforms(Ne,hn,Si,"_prev")&&(qi=hn),this._prepareDemTileUniforms(Ne,Dn,Si)&&(Fi=Dn))}if(qi&&Fi?(ai.activeTexture.set(ui.TEXTURE2),Fi.demTexture.bind(ui.NEAREST,ui.CLAMP_TO_EDGE,ui.NEAREST),ai.activeTexture.set(ui.TEXTURE4),qi.demTexture.bind(ui.NEAREST,ui.CLAMP_TO_EDGE,ui.NEAREST),Si.u_dem_lerp=Xi):(Fi=this.terrainTileForTile[Ne.tileID.key],ai.activeTexture.set(ui.TEXTURE2),(this._prepareDemTileUniforms(Ne,Fi,Si)?Fi.demTexture:this.emptyDEMTexture).bind(ui.NEAREST,ui.CLAMP_TO_EDGE)),ai.activeTexture.set(ui.TEXTURE3),Qe&&Qe.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(u
1501i.NEAREST,ui.CLAMP_TO_EDGE),this._depthFBO&&(Si.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.emptyDepthBufferTexture.bind(ui.NEAREST,ui.CLAMP_TO_EDGE),Si.u_depth_size_inv=[1,1]),Qe&&Qe.useMeterToDem&&Fi){const hn=(1<<Fi.tileID.canonical.z)*Ie.mercatorZfromAltitude(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;Si.u_meter_to_dem=hn}if(Qe&&Qe.labelPlaneMatrixInv&&(Si.u_label_plane_matrix_inv=Qe.labelPlaneMatrixInv),Ge.setTerrainUniformValues(ai,Si),this.painter.transform.projection.name==="globe"){const hn=this.globeUniformValues(this.painter.transform,Ne.tileID.canonical,Qe&&Qe.useDenormalizedUpVectorScale);Ge.setGlobeUniformValues(ai,hn)}}globeUniformValues(Ne,Ge,Qe){const ai=Ne.projection;return{u_tile_tl_up:ai.upVector(Ge,0,0),u_tile_tr_up:ai.upVector(Ge,Ie.EXTENT,0),u_tile_br_up:ai.upVector(Ge,Ie.EXTENT,Ie.EXTENT),u_tile_bl_up:ai.upVector(Ge,0,Ie.EXTENT),u_tile_up_scale:Qe?Ie.globeMetersToEcef(1):ai.upVectorScale(Ge,Ne.center.lat,Ne.worldSize).metersToTile}}renderToBackBuffer(Ne){const Ge=this.painter,Qe=this.painter.context;Ne.length!==0&&(Qe.bindFramebuffer.set(null),Qe.viewport.set([0,0,Ge.width,Ge.height]),Ge.gpuTimingDeferredRenderStart(),this.renderingToTexture=!1,function(ai,ui,Si,Mi,Fi){if(ai.transform.projection.name==="globe")(function(qi,Xi,hn,Dn,In){const On=qi.context,Bn=On.gl;let Vn,pn;const Pn=qi.options.showTerrainWireframe?2:0,Jn=qi.transform,qn=Ie.globeUseCustomAntiAliasing(qi,On,Jn),gr=(ss,Lr)=>{if(pn===ss)return;const ns=[Sc[ss],"PROJECTION_GLOBE_VIEW"];qn&&ns.push("CUSTOM_ANTIALIASING"),Lr&&ns.push(Sc[Pn]),Vn=qi.useProgram("globeRaster",null,ns),pn=ss},vr=qi.colorModeForRenderPass(),dr=new Ie.DepthMode(Bn.LEQUAL,Ie.DepthMode.ReadWrite,qi.depthRangeFor3D);Wa.update(In);const $r=Ie.calculateGlobeMercatorMatrix(Jn),Pr=[Ie.mercatorXfromLng(Jn.center.lng),Ie.mercatorYfromLat(Jn.center.lat)],Vr=Pn?[!1,!0]:[!1],Ds=qi.globeSharedBuffers,zr=[Jn.width*Ie.exported.devicePixelRatio,Jn.height*Ie.exported.devicePixelRatio],cs=Float32Array.from(Jn.globeMatrix),Xr={useDenormalizedUpVectorScale:!0};if(Vr.forEach(ss=>{const Lr=qi.transform,ns=qa(Lr.zoom)*Xi.exaggeration();pn=-1;const Ss=ss?Bn.LINES:Bn.TRIANGLES;for(const ds of Dn){const Is=hn.getTile(ds),ho=Ie.StencilMode.disabled,ko=Xi.prevTerrainTileForTile[ds.key],Js=Xi.terrainTileForTile[ds.key];Dl(ko,Js)&&Wa.newMorphing(ds.key,ko,Js,In,250),On.activeTexture.set(Bn.TEXTURE0),Is.texture.bind(Bn.LINEAR,Bn.CLAMP_TO_EDGE);const _o=Wa.getMorphValuesForProxy(ds.key),ia=_o?1:0;_o&&Ie.extend$1(Xr,{morphing:{srcDemTile:_o.from,dstDemTile:_o.to,phase:Ie.easeCubicInOut(_o.phase)}});const No=Ie.tileCornersToBounds(ds.canonical),lo=Ie.getLatitudinalLod(No.getCenter().lat),Ea=Ie.getGridMatrix(ds.canonical,No,lo,Lr.worldSize/Lr._pixelsPerMercatorPixel),Va=Ie.globeNormalizeECEF(Ie.globeTileBounds(ds.canonical)),Pa=Vo(Lr.projMatrix,cs,$r,Va,Ie.globeToMercatorTransition(Lr.zoom),Pr,Lr.frustumCorners.TL,Lr.frustumCorners.TR,Lr.frustumCorners.BR,Lr.frustumCorners.BL,Lr.globeCenterInViewSpace,Lr.globeRadius,zr,ns,Ea);if(gr(ia,ss),Xi.setupElevationDraw(Is,Vn,Xr),qi.prepareDrawProgram(On,Vn,ds.toUnwrapped()),Ds){const[ha,Hl,Wl]=ss?Ds.getWirefameBuffers(qi.context,lo):Ds.getGridBuffers(lo,ns!==0);Vn.draw(On,Ss,dr,ho,vr,Ie.CullFaceMode.backCCW,Pa,"globe_raster",ha,Hl,Wl)}}}),Ds){const ss=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];qn&&ss.push("CUSTOM_ANTIALIASING"),Vn=qi.useProgram("globeRaster",null,ss);for(const Lr of Dn){const{x:ns,y:Ss,z:ds}=Lr.canonical,Is=Ss===0,ho=Ss===(1<<ds)-1,[ko,Js,_o,ia]=Ds.getPoleBuffers(ds);if(ia&&(Is||ho)){const No=hn.getTile(Lr);On.activeTexture.set(Bn.TEXTURE0),No.texture.bind(Bn.LINEAR,Bn.CLAMP_TO_EDGE);let lo=Ie.globePoleMatrixForTile(ds,ns,Jn);const Ea=Ie.globeNormalizeECEF(Ie.globeTileBounds(Lr.canonical)),Va=(Pa,ha)=>Pa.draw(On,Bn.TRIANGLES,dr,Ie.StencilMode.disabled,vr,Ie.CullFaceMode.disabled,Vo(Jn.projMatrix,lo,lo,Ea,0,Pr,Jn.frustumCorners.TL,Jn.frustumCorners.TR,Jn.frustumCorners.BR,Jn.frustumCorners.BL,Jn.globeCenterInViewSpace,Jn.globeRadius,zr,0),"globe_pole_raster",ha,_o,ia);Xi.setupElevationDraw(No,Vn,Xr),qi.prepareDrawProgram(On,Vn,Lr.toUnwrapped()),Is&&Va(Vn,ko),ho&&(lo=Ie.scale(Ie.create(),lo,[1,-1,1]),Va(Vn,Js))}}}})(ai,ui,Si,Mi,Fi);else{const qi=ai.context,Xi=qi.gl;let hn,Dn;const In=ai.options.showTerrainWireframe?2:0,On=(Jn,qn)=>{if(Dn===Jn)return;const gr=[Sc[Jn]];qn&&gr.push(Sc[In]),hn=ai.useProgram("terrainRaster",null,gr),Dn=Jn},Bn=ai.colorModeForRenderPass(),Vn=new Ie.DepthMode(Xi.LEQUAL,Ie.DepthMode.ReadWrite,ai.depthRangeFor3D);Wa.update(Fi);const pn=ai.transform,Pn=qa(pn.zoom)*ui.exaggeration();
1501(In?[!1,!0]:[!1]).forEach(Jn=>{Dn=-1;const qn=Jn?Xi.LINES:Xi.TRIANGLES,[gr,vr]=Jn?ui.getWirefameBuffer():[ui.gridIndexBuffer,ui.gridSegments];for(const dr of Mi){const $r=Si.getTile(dr),Pr=Ie.StencilMode.disabled,Vr=ui.prevTerrainTileForTile[dr.key],Ds=ui.terrainTileForTile[dr.key];Dl(Vr,Ds)&&Wa.newMorphing(dr.key,Vr,Ds,Fi,250),qi.activeTexture.set(Xi.TEXTURE0),$r.texture.bind(Xi.LINEAR,Xi.CLAMP_TO_EDGE,Xi.LINEAR_MIPMAP_NEAREST);const zr=Wa.getMorphValuesForProxy(dr.key),cs=zr?1:0;let Xr;zr&&(Xr={morphing:{srcDemTile:zr.from,dstDemTile:zr.to,phase:Ie.easeCubicInOut(zr.phase)}});const ss=Fo(dr.projMatrix,Wo(dr.canonical,pn.renderWorldCopies)?Pn/10:Pn);On(cs,Jn),ui.setupElevationDraw($r,hn,Xr),ai.prepareDrawProgram(qi,hn,dr.toUnwrapped()),hn.draw(qi,qn,Vn,Pr,Bn,Ie.CullFaceMode.backCCW,ss,"terrain_raster",ui.gridBuffer,gr,vr)}})}}(Ge,this,this.proxySourceCache,Ne,this._updateTimestamp),this.renderingToTexture=!0,Ge.gpuTimingDeferredRenderEnd(),Ne.splice(0,Ne.length))}renderBatch(Ne){if(this._drapedRenderBatches.length===0)return Ne+1;this.renderingToTexture=!0;const Ge=this.painter,Qe=this.painter.context,ai=this.proxySourceCache,ui=this.proxiedCoords[ai.id],Si=this._drapedRenderBatches.shift(),Mi=[],Fi=Ge.style.order;let qi=0;for(const Xi of ui){const hn=ai.getTileByID(Xi.proxyTileKey),Dn=ai.proxyCachedFBO[Xi.key]?ai.proxyCachedFBO[Xi.key][Ne]:void 0,In=Dn!==void 0?ai.renderCache[Dn]:this.pool[qi++],On=Dn!==void 0;if(hn.texture=In.tex,On&&!In.dirty){Mi.push(hn.tileID);continue}let Bn;Qe.bindFramebuffer.set(In.fb.framebuffer),this.renderedToTile=!1,In.dirty&&(Qe.clear({color:Ie.Color.transparent,stencil:0}),In.dirty=!1);for(let Vn=Si.start;Vn<=Si.end;++Vn){const pn=Ge.style._layers[Fi[Vn]];if(pn.isHidden(Ge.transform.zoom))continue;const Pn=Ge.style._getLayerSourceCache(pn),Jn=Pn?this.proxyToSource[Xi.key][Pn.id]:[Xi];if(!Jn)continue;const qn=Jn;Qe.viewport.set([0,0,In.fb.width,In.fb.height]),Bn!==(Pn?Pn.id:null)&&(this._setupStencil(In,Jn,pn,Pn),Bn=Pn?Pn.id:null),Ge.renderLayer(Ge,Pn,pn,qn)}this.renderedToTile?(In.dirty=!0,Mi.push(hn.tileID)):On||--qi,qi===5&&(qi=0,this.renderToBackBuffer(Mi))}return this.renderToBackBuffer(Mi),this.renderingToTexture=!1,Qe.bindFramebuffer.set(null),Qe.viewport.set([0,0,Ge.width,Ge.height]),Si.end+1}postRender(){}renderCacheEfficiency(Ne){const Ge=Ne.order.length;if(Ge===0)return{efficiency:100};let Qe,ai=0,ui=0,Si=!1;for(let Mi=0;Mi<Ge;++Mi){const Fi=Ne._layers[Ne.order[Mi]];this._style.isLayerDraped(Fi)?(Si&&++ai,++ui):Si||(Si=!0,Qe=Fi.id)}return ui===0?{efficiency:100}:{efficiency:100*(1-ai/ui),firstUndrapedLayer:Qe}}getMinElevationBelowMSL(){let Ne=0;return this._visibleDemTiles.filter(Ge=>Ge.dem).forEach(Ge=>{Ne=Math.min(Ne,Ge.dem.tree.minimums[0])}),Ne===0?Ne:(Ne-30)*this._exaggeration}raycast(Ne,Ge,Qe){if(!this._visibleDemTiles)return null;const ai=this._visibleDemTiles.filter(ui=>ui.dem).map(ui=>{const Si=ui.tileID,Mi=1<<Si.overscaledZ,{x:Fi,y:qi}=Si.canonical,Xi=Fi/Mi,hn=(Fi+1)/Mi,Dn=qi/Mi,In=(qi+1)/Mi;return{minx:Xi,miny:Dn,maxx:hn,maxy:In,t:ui.dem.tree.raycastRoot(Xi,Dn,hn,In,Ne,Ge,Qe),tile:ui}});ai.sort((ui,Si)=>(ui.t!==null?ui.t:Number.MAX_VALUE)-(Si.t!==null?Si.t:Number.MAX_VALUE));for(const ui of ai){if(ui.t==null)return null;const Si=ui.tile.dem.tree.raycast(ui.minx,ui.miny,ui.maxx,ui.maxy,Ne,Ge,Qe);if(Si!=null)return Si}return null}_createFBO(){const Ne=this.painter.context,Ge=Ne.gl,Qe=this.drapeBufferSize;Ne.activeTexture.set(Ge.TEXTURE0);const ai=new Ie.Texture(Ne,{width:Qe[0],height:Qe[1],data:null},Ge.RGBA);ai.bind(Ge.LINEAR,Ge.CLAMP_TO_EDGE);const ui=Ne.createFramebuffer(Qe[0],Qe[1],!1);return ui.colorAttachment.set(ai.texture),ui.depthAttachment=new br(Ne,ui.framebuffer),this._sharedDepthStencil===void 0?(this._sharedDepthStencil=Ne.createRenderbuffer(Ne.gl.DEPTH_STENCIL,Qe[0],Qe[1]),this._stencilRef=0,ui.depthAttachment.set(this._sharedDepthStencil),Ne.clear({stencil:0})):ui.depthAttachment.set(this._sharedDepthStencil),Ne.extTextureFilterAnisotropic&&!Ne.extTextureFilterAnisotropicForceOff&&Ge.texParameterf(Ge.TEXTURE_2D,Ne.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Ne.extTextureFilterAnisotropicMax),{fb:ui,tex:ai,dirty:!1}}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){if(this._style.light&&this._style.light.hasTransition())return!0;for(const Ne in this._style._sourceCaches)if(this._style._sourceCaches[Ne].hasTransition())return!0;return this._style.order.some(Ne=>{const Ge=this._style._layers[Ne],Qe=Ge.isHidden(this.painter.transform.zoom);return Ge.type==="custom"?!Qe&&Ge.shouldRedrape():!Qe&&Ge.hasTransition()})}_clearLineLayersFromRenderCache(){let Ne=!1;for(const Qe of this._style._getSources())if(Qe instanceof Fs){Ne=!0;break}if(!Ne)return;const Ge={};for(let Qe=0;Qe<this._style.order.length;++Qe){const ai=this._style._layers[this._style.order[Qe]],ui=this._style._getLayerSourceCache(ai);if(ui&&!Ge[ui.id]&&!ai.isHidden(this.painter.transform.zoom)&&ai.type==="line"&&ai.widthExpression()instanceof Ie.ZoomDependentExpression){Ge[ui.id]=!0;for(const Si of this.proxyCoords){const Mi=this.proxyToSource[Si.key][ui.id];if(Mi)for(const Fi of Mi)this._clearRenderCacheForTile(ui.id,Fi)}}}}_clearRasterLayersFromRenderCache(){let Ne=!1;for(const Qe in this._style._sourceCaches)if(this._style._sourceCaches[Qe]._source instanceof wr){Ne=!0;break}if(!Ne)return;const Ge={};for(let Qe=0;Qe<this._style.order.length;++Qe){const ai=this._style._layers[this._style.order[Qe]],ui=this._style._getLayerSourceCache(ai);if(!ui||Ge[ui.id]||ai.isHidden(this.painter.transform.zoom)||ai.type!=="raster")continue;const Si=ai.paint.get("raster-fade-duration");for(const Mi of this.proxyCoords){const Fi=this.proxyToSource[Mi.key][ui.id];if(Fi)for(const qi of Fi){const Xi=zo(ui.getTile(qi),ui.findLoadedParent(qi,0),ui,this.painter.transform,Si);(Xi.opacity!==1||Xi.mix!==0)&&this._clearRenderCacheForTile(ui.id,qi)}}}}_setupDrapedRenderBatches(){const Ne=this._style.order,Ge=Ne.length;if(Ge===0)return;const Qe=[];let ai,ui=0,Si=this._style._layers[Ne[ui]];for(;!this._style.isLayerDraped(Si)&&Si.isHidden(this.painter.transform.zoom)&&++ui<Ge;)Si=this._style._layers[Ne[ui]];for(;ui<Ge;
vendor: 4,595 bytes, line 1501
1501++ui){const Mi=this._style._layers[Ne[ui]];Mi.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(Mi)?ai===void 0&&(ai=ui):ai!==void 0&&(Qe.push({start:ai,end:ui-1}),ai=void 0))}ai!==void 0&&Qe.push({start:ai,end:ui-1}),this._drapedRenderBatches=Qe}_setupRenderCache(Ne){const Ge=this.proxySourceCache;if(this._shouldDisableRenderCache()||this._invalidateRenderCache){if(this._invalidateRenderCache=!1,Ge.renderCache.length>Ge.renderCachePool.length){const Si=Object.values(Ge.proxyCachedFBO);Ge.proxyCachedFBO={};for(let Mi=0;Mi<Si.length;++Mi){const Fi=Object.values(Si[Mi]);Ge.renderCachePool.push(...Fi)}}return}this._clearRasterLayersFromRenderCache();const Qe=this.proxyCoords,ai=this._tilesDirty;for(let Si=Qe.length-1;Si>=0;Si--){const Mi=Qe[Si];if(Ge.getTileByID(Mi.key),Ge.proxyCachedFBO[Mi.key]!==void 0){const Fi=Ne[Mi.key],qi=this.proxyToSource[Mi.key];let Xi=0;for(const hn in qi){const Dn=qi[hn],In=Fi[hn];if(!In||In.length!==Dn.length||Dn.some((On,Bn)=>On!==In[Bn]||ai[hn]&&ai[hn].hasOwnProperty(On.key))){Xi=-1;break}++Xi}for(const hn in Ge.proxyCachedFBO[Mi.key])Ge.renderCache[Ge.proxyCachedFBO[Mi.key][hn]].dirty=Xi<0||Xi!==Object.values(Fi).length}}const ui=[...this._drapedRenderBatches];ui.sort((Si,Mi)=>Mi.end-Mi.start-(Si.end-Si.start));for(const Si of ui)for(const Mi of Qe){if(Ge.proxyCachedFBO[Mi.key])continue;let Fi=Ge.renderCachePool.pop();Fi===void 0&&Ge.renderCache.length<50&&(Fi=Ge.renderCache.length,Ge.renderCache.push(this._createFBO())),Fi!==void 0&&(Ge.proxyCachedFBO[Mi.key]={},Ge.proxyCachedFBO[Mi.key][Si.start]=Fi,Ge.renderCache[Fi].dirty=!0)}this._tilesDirty={}}_setupStencil(Ne,Ge,Qe,ai){if(!ai||!this._sourceTilesOverlap[ai.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const ui=this.painter.context,Si=ui.gl;if(Ge.length<=1)return void(this._overlapStencilType=!1);let Mi;if(Qe.isTileClipped())Mi=Ge.length,this._overlapStencilMode.test={func:Si.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(Ge[0].overscaledZ>Ge[Ge.length-1].overscaledZ))return void(this._overlapStencilType=!1);Mi=1,this._overlapStencilMode.test={func:Si.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+Mi>255&&(ui.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=Mi,this._overlapStencilMode.ref=this._stencilRef,Qe.isTileClipped()&&this._renderTileClippingMasks(Ge,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return this._overlapStencilType==="Clip"||this._overlapStencilType==="Mask"}stencilModeForRTTOverlap(Ne){return this.renderingToTexture&&this._overlapStencilType?(this._overlapStencilType==="Clip"&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[Ne.key]),this._overlapStencilMode):Ie.StencilMode.disabled}_renderTileClippingMasks(Ne,Ge){const Qe=this.painter,ai=this.painter.context,ui=ai.gl;Qe._tileClippingMaskIDs={},ai.setColorMode(Ie.ColorMode.disabled),ai.setDepthMode(Ie.DepthMode.disabled);const Si=Qe.useProgram("clippingMask");for(const Mi of Ne){const Fi=Qe._tileClippingMaskIDs[Mi.key]=--Ge;Si.draw(ai,ui.TRIANGLES,Ie.DepthMode.disabled,new Ie.StencilMode({func:ui.ALWAYS,mask:0},Fi,255,ui.KEEP,ui.KEEP,ui.REPLACE),Ie.ColorMode.disabled,Ie.CullFaceMode.disabled,Xc(Mi.projMatrix),"$clipping",Qe.tileExtentBuffer,Qe.quadTriangleIndexBuffer,Qe.tileExtentSegments)}}pointCoordinate(Ne){const Ge=this.painter.transform;if(Ne.x<0||Ne.x>Ge.width||Ne.y<0||Ne.y>Ge.height)return null;const Qe=[Ne.x,Ne.y,1,1];Ie.transformMat4$1(Qe,Qe,Ge.pixelMatrixInverse),Ie.scale$1(Qe,Qe,1/Qe[3]),Qe[0]/=Ge.worldSize,Qe[1]/=Ge.worldSize;const ai=Ge._camera.position,ui=Ie.mercatorZfromAltitude(1,Ge.center.lat),Si=[ai[0],ai[1],ai[2]/ui,0],Mi=Ie.subtract([],Qe.slice(0,3),Si);Ie.normalize(Mi,Mi);const Fi=this.raycast(Si,Mi,this._exaggeration);return Fi!==null&&Fi?(Ie.scaleAndAdd(Si,Si,Mi,Fi),Si[3]=Si[2],Si[2]*=ui,Si):null}drawDepth(){const Ne=this.painter,Ge=Ne.context,Qe=this.proxySourceCache,ai=Math.ceil(Ne.width),ui=Math.ceil(Ne.height);if(!this._depthFBO||this._depthFBO.width===ai&&this._depthFBO.height===ui||(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){const Si=Ge.gl,Mi=Ge.createFramebuffer(ai,ui,!0);Ge.activeTexture.set(Si.TEXTURE0);const Fi=new Ie.Texture(Ge,{width:ai,height:ui,data:null},Si.RGBA);Fi.bind(Si.NEAREST,Si.CLAMP_TO_EDGE),Mi.colorAttachment.set(Fi.texture);const qi=Ge.createRenderbuffer(Ge.gl.DEPTH_COMPONENT16,ai,ui);Mi.depthAttachment.set(qi),this._depthFBO=Mi,this._depthTexture=Fi}Ge.bindFramebuffer.set(this._depthFBO.framebuffer),Ge.viewport.set([0,0,ai,ui]),function(Si,Mi,Fi,qi){if
vendor: 9,032 bytes, lines 1501-1522
1501(Si.transform.projection.name==="globe")return;const Xi=Si.context,hn=Xi.gl;Xi.clear({depth:1});const Dn=Si.useProgram("terrainDepth"),In=new Ie.DepthMode(hn.LESS,Ie.DepthMode.ReadWrite,Si.depthRangeFor3D);for(const On of qi){const Bn=Fi.getTile(On),Vn=Fo(On.projMatrix,0);Mi.setupElevationDraw(Bn,Dn),Dn.draw(Xi,hn.TRIANGLES,In,Ie.StencilMode.disabled,Ie.ColorMode.unblended,Ie.CullFaceMode.backCCW,Vn,"terrain_depth",Mi.gridBuffer,Mi.gridIndexBuffer,Mi.gridNoSkirtSegments)}}(Ne,this,Qe,this.proxyCoords)}_setupProxiedCoordsForOrtho(Ne,Ge,Qe){if(Ne.getSource()instanceof Es)return this._setupProxiedCoordsForImageSource(Ne,Ge,Qe);this._findCoveringTileCache[Ne.id]=this._findCoveringTileCache[Ne.id]||{};const ai=this.proxiedCoords[Ne.id]=[],ui=this.proxyCoords;for(let Mi=0;Mi<ui.length;Mi++){const Fi=ui[Mi],qi=this._findTileCoveringTileID(Fi,Ne);if(qi){const Xi=this._createProxiedId(Fi,qi,Qe[Fi.key]&&Qe[Fi.key][Ne.id]);ai.push(Xi),this.proxyToSource[Fi.key][Ne.id]=[Xi]}}let Si=!1;for(let Mi=0;Mi<Ge.length;Mi++){const Fi=Ne.getTile(Ge[Mi]);if(!Fi||!Fi.hasData())continue;const qi=this._findTileCoveringTileID(Fi.tileID,this.proxySourceCache);if(qi&&qi.tileID.canonical.z!==Fi.tileID.canonical.z){const Xi=this.proxyToSource[qi.tileID.key][Ne.id],hn=this._createProxiedId(qi.tileID,Fi,Qe[qi.tileID.key]&&Qe[qi.tileID.key][Ne.id]);Xi?Xi.splice(Xi.length-1,0,hn):this.proxyToSource[qi.tileID.key][Ne.id]=[hn],ai.push(hn),Si=!0}}this._sourceTilesOverlap[Ne.id]=Si}_setupProxiedCoordsForImageSource(Ne,Ge,Qe){if(!Ne.getSource().loaded())return;const ai=this.proxiedCoords[Ne.id]=[],ui=this.proxyCoords,Si=Ne.getSource(),Mi=new Ie.Point(Si.tileID.x,Si.tileID.y)._div(1<<Si.tileID.z),Fi=Si.coordinates.map(Ie.MercatorCoordinate.fromLngLat).reduce((Xi,hn)=>(Xi.min.x=Math.min(Xi.min.x,hn.x-Mi.x),Xi.min.y=Math.min(Xi.min.y,hn.y-Mi.y),Xi.max.x=Math.max(Xi.max.x,hn.x-Mi.x),Xi.max.y=Math.max(Xi.max.y,hn.y-Mi.y),Xi),{min:new Ie.Point(Number.MAX_VALUE,Number.MAX_VALUE),max:new Ie.Point(-Number.MAX_VALUE,-Number.MAX_VALUE)}),qi=(Xi,hn)=>{const Dn=Xi.wrap+Xi.canonical.x/(1<<Xi.canonical.z),In=Xi.canonical.y/(1<<Xi.canonical.z),On=Ie.EXTENT/(1<<Xi.canonical.z),Bn=hn.wrap+hn.canonical.x/(1<<hn.canonical.z),Vn=hn.canonical.y/(1<<hn.canonical.z);return Dn+On<Bn+Fi.min.x||Dn>Bn+Fi.max.x||In+On<Vn+Fi.min.y||In>Vn+Fi.max.y};for(let Xi=0;Xi<ui.length;Xi++){const hn=ui[Xi];for(let Dn=0;Dn<Ge.length;Dn++){const In=Ne.getTile(Ge[Dn]);if(!In||!In.hasData()||qi(hn,In.tileID))continue;const On=this._createProxiedId(hn,In,Qe[hn.key]&&Qe[hn.key][Ne.id]),Bn=this.proxyToSource[hn.key][Ne.id];Bn?Bn.push(On):this.proxyToSource[hn.key][Ne.id]=[On],ai.push(On)}}}_createProxiedId(Ne,Ge,Qe){let ai=this.orthoMatrix;if(Qe){const ui=Qe.find(Si=>Si.key===Ge.tileID.key);if(ui)return ui}if(Ge.tileID.key!==Ne.key){const ui=Ne.canonical.z-Ge.tileID.canonical.z;let Si,Mi,Fi;ai=Ie.create();const qi=Ge.tileID.wrap-Ne.wrap<<Ne.overscaledZ;ui>0?(Si=Ie.EXTENT>>ui,Mi=Si*((Ge.tileID.canonical.x<<ui)-Ne.canonical.x+qi),Fi=Si*((Ge.tileID.canonical.y<<ui)-Ne.canonical.y)):(Si=Ie.EXTENT<<-ui,Mi=Ie.EXTENT*(Ge.tileID.canonical.x-(Ne.canonical.x+qi<<-ui)),Fi=Ie.EXTENT*(Ge.tileID.canonical.y-(Ne.canonical.y<<-ui))),Ie.ortho(ai,0,Si,0,Si,0,1),Ie.translate(ai,ai,[Mi,Fi,0])}return new ud(Ge.tileID,Ne.key,ai)}_findTileCoveringTileID(Ne,Ge){let Qe=Ge.getTile(Ne);if(Qe&&Qe.hasData())return Qe;const ai=this._findCoveringTileCache[Ge.id],ui=ai[Ne.key];if(Qe=ui?Ge.getTileByID(ui):null,Qe&&Qe.hasData()||ui===null)return Qe;let Si=Qe?Qe.tileID:Ne,Mi=Si.overscaledZ;const Fi=Ge.getSource().minzoom,qi=[];if(!ui){const hn=Ge.getSource().maxzoom;if(Ne.canonical.z>=hn){const Dn=Ne.canonical.z-hn;Ge.getSource().reparseOverscaled?(Mi=Math.max(Ne.canonical.z+2,Ge.transform.tileZoom),Si=new Ie.OverscaledTileID(Mi,Ne.wrap,hn,Ne.canonical.x>>Dn,Ne.canonical.y>>Dn)):Dn!==0&&(Mi=hn,Si=new Ie.OverscaledTileID(Mi,Ne.wrap,hn,Ne.canonical.x>>Dn,Ne.canonical.y>>Dn))}Si.key!==Ne.key&&(qi.push(Si.key),Qe=Ge.getTile(Si))}const Xi=hn=>{qi.forEach(Dn=>{ai[Dn]=hn}),qi.length=0};for(Mi-=1;Mi>=Fi&&(!Qe||!Qe.hasData());Mi--){Qe&&Xi(Qe.tileID.key);const hn=Si.calculateScaledKey(Mi);if(Qe=Ge.getTileByID(hn),Qe&&Qe.hasData())break;const Dn=ai[hn];if(Dn===null)break;Dn===void 0?qi.push(hn):Qe=Ge.getTileByID(Dn)}return Xi(Qe?Qe.tileID.key:null),Qe&&Qe.hasData()?Qe:null}findDEMTileFor(Ne){return this.enabled?this._findTileCoveringTileID(Ne,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(Ne,Ge){let Qe=this._tilesDirty[Ne];Qe||(Qe=this._tilesDirty[Ne]={}),Qe[Ge.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){const Ne=function(Ge){let Qe=0;const ai=new Ie.StructArrayLayout2ui4,ui=131;for(let Si=1;Si<129;Si++){for(let Mi=1;Mi<129;Mi++)Qe=Si*ui+Mi,ai.emplaceBack(Qe,Qe+1),ai.emplaceBack(Qe,Qe+ui),ai.emplaceBack(Qe+1,Qe+ui),Si===128&&ai.emplaceBack(Qe+ui,Qe+ui+1);ai.emplaceBack(Qe+1,Qe+1+ui)}return ai}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(Ne),this.wireframeSegments=Ie.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,Ne.length)}return[this.wireframeIndexBuffer,this.wireframeSegments]}}class qo{static cacheKey(Ne,Ge,Qe,ai){let ui=`${Ge}${ai?ai.cacheKey:""}`;for(const Si of Qe)Ne.usedDefines.includes(Si)&&(ui+=`/${Si}`);return ui}constructor(Ne,Ge,Qe,ai,ui,Si){const Mi=Ne.gl;this.program=Mi.createProgram();const Fi=function(pn){const Pn=[];for(let Jn=0;Jn<pn.length;Jn++){if(pn[Jn]===null)continue;const qn=pn[Jn].split(" ");Pn.push(qn.pop())}return Pn}(Qe.staticAttributes),qi=ai?ai.getBinderAttributes():[],Xi=Fi.concat(qi);let hn=ai?ai.defines():[];hn=hn.concat(Si.map(pn=>`#define ${pn}`));const Dn=Ne.isWebGL2?`#version 300 es
1502`:"",In=Dn+hn.concat(Ne.extStandardDerivatives&&Dn.length===0?`#extension GL_OES_standard_derivatives : enable
1503`.concat(yn):yn,yn,mn,Ki.fragmentSource,Ci.fragmentSource,Qe.fragmentSource).join(`
1504`),On=Dn+hn.concat(`
1505#ifdef GL_ES
1506precision highp float;
1507#else
1508
1509#if !defined(lowp)
1510#define lowp
1511#endif
1512
1513#if !defined(mediump)
1514#define mediump
1515#endif
1516
1517#if !defined(highp)
1518#define highp
1519#endif
1520
1521#endif`,mn,Ki.vertexSource,Ci.vertexSource,pi.vertexSource,Qe.vertexSource).join(`
1522`),Bn=Mi.createShader(Mi.FRAGMENT_SHADER);if(Mi.isContextLost())return void(this.failedToCreate=!0);Mi.shaderSource(Bn,In),Mi.compileShader(Bn),Mi.attachShader(this.program,Bn);const Vn=Mi.createShader(Mi.VERTEX_SHADER);if(Mi.isContextLost())this.failedToCreate=!0;else{Mi.shaderSource(Vn,On),Mi.compileShader(Vn),Mi.attachShader(this.program,Vn),this.attributes={},this.numAttributes=Xi.length;for(let pn=0;pn<this.numAttributes;pn++)Xi[pn]&&(Mi.bindAttribLocation(this.program,pn,Xi[pn]),this.attributes[Xi[pn]]=pn);Mi.linkProgram(this.program),Mi.deleteShader(Vn),Mi.deleteShader(Bn),this.fixedUniforms=ui(Ne),this.binderUniforms=ai?ai.getUniforms(Ne):[],Si.includes("TERRAIN")&&(this.terrainUniforms=(pn=>({u_dem:new Ie.Uniform1i(pn),u_dem_prev:new Ie.Uniform1i(pn),u_dem_unpack:new Ie.Uniform4f(pn),u_dem_tl:new Ie.Uniform2f(pn),u_dem_scale:new Ie.Uniform1f(pn),u_dem_tl_prev:new Ie.Uniform2f(pn),u_dem_scale_prev:new Ie.Uniform1f(pn),u_dem_size:new Ie.Uniform1f(pn),u_dem_lerp:new Ie.Uniform1f(pn),u_exaggeration:new Ie.Uniform1f(pn),u_depth:new Ie.Uniform1i(pn),u_depth_size_inv:new Ie.Uniform2f(pn),u_meter_to_dem:new Ie.Uniform1f(pn),u_label_plane_matrix_inv:new Ie.UniformMatrix4f(pn)}))(Ne)),Si.includes("GLOBE")&&(this.globeUniforms=(pn=>({u_tile_tl_up:new Ie.Uniform3f(pn),u_tile_tr_up:new Ie.Uniform3f(pn),u_tile_br_up:new Ie.Uniform3f(pn),u_tile_bl_up:new Ie.Uniform3f(pn),u_tile_up_scale:new Ie.Uniform1f(pn)}))(Ne)),Si.includes("FOG")&&(this.fogUniforms=(pn=>({u_fog_matrix:new Ie.UniformMatrix4f(pn),u_fog_range:new Ie.Uniform2f(pn),u_fog_color:new Ie.Uniform4f(pn),u_fog_horizon_blend:new Ie.Uniform1f(pn),u_fog_temporal_offset:new Ie.Uniform1f(pn),u_frustum_tl:new Ie.Uniform3f(pn),u_frustum_tr:new Ie.Uniform3f(pn),u_frustum_br:new Ie.Uniform3f(pn),u_frustum_bl:new Ie.Uniform3f(pn),u_globe_pos:new Ie.Uniform3f(pn),u_globe_radius:new Ie.Uniform1f(pn),u_globe_transition:new Ie.Uniform1f(pn),u_is_globe:new Ie.Uniform1i(pn),u_viewport:new Ie.Uniform2f(pn)}))(Ne))}}setTerrainUniformValues(Ne,Ge){if(!this.terrainUniforms)return;const Qe=this.terrainUniforms;if(!this.failedToCreate){Ne.program.set(this.program);for(const ai in Ge)Qe[ai]&&Qe[ai].set(this.program,ai,Ge[ai])}}setGlobeUniformValues(Ne,Ge){if(!this.globeUniforms)return;const Qe=this.globeUniforms;if(!this.failedToCreate){Ne.program.set(this.program);for(const ai in Ge)Qe[ai]&&Qe[ai].set(this.program,ai,Ge[ai])}}setFogUniformValues(Ne,Ge){if(!this.fogUniforms)return;const Qe=this.fogUniforms;if(!this.failedToCreate){Ne.program.set(this.program);for(const ai in Ge)Qe[ai].set(this.program,ai,Ge[ai])}}draw(Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi,hn,Dn,In,On,Bn){const Vn=Ne.gl;if(this.failedToCreate)return;Ne.program.set(this.program),Ne.setDepthMode(Qe),Ne.setStencilMode(ai),Ne.setColorMode(ui),Ne.setCullFace(Si);for(const Pn of Object.keys(this.fixedUniforms))this.fixedUniforms[Pn].set(this.program,P
1522n,Mi[Pn]);On&&On.setUniforms(this.program,Ne,this.binderUniforms,Dn,{zoom:In});const pn={[Vn.LINES]:2,[Vn.TRIANGLES]:3,[Vn.LINE_STRIP]:1}[Ge];for(const Pn of hn.get()){const Jn=Pn.vaos||(Pn.vaos={});(Jn[Fi]||(Jn[Fi]=new Br)).bind(Ne,this,qi,On?On.getPaintVertexBuffers():[],Xi,Pn.vertexOffset,Bn||[]),Vn.drawElements(Ge,Pn.primitiveLength*pn,Vn.UNSIGNED_SHORT,Pn.primitiveOffset*pn*2)}}}function lc(Ze,Ne){const Ge=Math.pow(2,Ne.tileID.overscaledZ),Qe=Ne.tileSize*Math.pow(2,Ze.transform.tileZoom)/Ge,ai=Qe*(Ne.tileID.canonical.x+Ne.tileID.wrap*Ge),ui=Qe*Ne.tileID.canonical.y;return{u_image:0,u_texsize:Ne.imageAtlasTexture.size,u_tile_units_to_pixels:1/wi(Ne,1,Ze.transform.tileZoom),u_pixel_coord_upper:[ai>>16,ui>>16],u_pixel_coord_lower:[65535&ai,65535&ui]}}const $u=Ie.create(),Zc=(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi)=>{const hn=Ne.style.light,Dn=hn.properties.get("position"),In=[Dn.x,Dn.y,Dn.z],On=Ie.create$1();hn.properties.get("anchor")==="viewport"&&(Ie.fromRotation(On,-Ne.transform.angle),Ie.transformMat3(In,In,On));const Bn=hn.properties.get("color"),Vn=Ne.transform,pn={u_matrix:Ze,u_lightpos:In,u_lightintensity:hn.properties.get("intensity"),u_lightcolor:[Bn.r,Bn.g,Bn.b],u_vertical_gradient:+Ge,u_opacity:Qe,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:$u,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_ao:ai,u_edge_radius:ui};return Vn.projection.name==="globe"&&(pn.u_tile_id=[Si.canonical.x,Si.canonical.y,1<<Si.canonical.z],pn.u_zoom_transition=Fi,pn.u_inv_rot_matrix=Xi,pn.u_merc_center=qi,pn.u_up_dir=Vn.projection.upVector(new Ie.CanonicalTileID(0,0,0),qi[0]*Ie.EXTENT,qi[1]*Ie.EXTENT),pn.u_height_lift=Mi),pn},Ml=(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi,hn)=>{const Dn=Zc(Ze,Ne,Ge,Qe,ai,ui,Si,Fi,qi,Xi,hn),In={u_height_factor:-Math.pow(2,Si.overscaledZ)/Mi.tileSize/8};return Ie.extend(Dn,lc(Ne,Mi),In)},Tu=Ze=>({u_matrix:Ze}),Kl=(Ze,Ne,Ge)=>Ie.extend(Tu(Ze),lc(Ne,Ge)),Tc=(Ze,Ne)=>({u_matrix:Ze,u_world:Ne}),pu=(Ze,Ne,Ge,Qe)=>Ie.extend(Kl(Ze,Ne,Ge),{u_world:Qe}),Xp=Ie.create(),lh=(Ze,Ne,Ge,Qe,ai,ui)=>{const Si=Ze.transform,Mi=Si.projection.name==="globe";let Fi;if(ui.paint.get("circle-pitch-alignment")==="map")if(Mi){const Xi=Ie.globePixelsToTileUnits(Si.zoom,Ne.canonical)*Si._pixelsPerMercatorPixel;Fi=Float32Array.from([Xi,0,0,Xi])}else Fi=Si.calculatePixelsToTileUnitsMatrix(Ge);else Fi=new Float32Array([Si.pixelsToGLUnits[0],0,0,Si.pixelsToGLUnits[1]]);const qi={u_camera_to_center_distance:Si.cameraToCenterDistance,u_matrix:Ze.translatePosMatrix(Ne.projMatrix,Ge,ui.paint.get("circle-translate"),ui.paint.get("circle-translate-anchor")),u_device_pixel_ratio:Ie.exported.devicePixelRatio,u_extrude_scale:Fi,u_inv_rot_matrix:Xp,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(Mi){qi.u_inv_rot_matrix=Qe,qi.u_merc_center=ai,qi.u_tile_id=[Ne.canonical.x,Ne.canonical.y,1<<Ne.canonical.z],qi.u_zoom_transition=Ie.globeToMercatorTransition(Si.zoom);const Xi=ai[0]*Ie.EXTENT,hn=ai[1]*Ie.EXTENT;qi.u_up_dir=Si.projection.upVector(new Ie.CanonicalTileID(0,0,0),Xi,hn)}return qi},xa=Ze=>{const Ne=[];return Ze.paint.get("circle-pitch-alignment")==="map"&&Ne.push("PITCH_WITH_MAP"),Ze.paint.get("circle-pitch-scale")==="map"&&Ne.push("SCALE_WITH_MAP"),Ne},Fu=(Ze,Ne,Ge,Qe)=>{const ai=Ie.EXTENT/Ge.tileSize;return{u_matrix:Ze,u_camera_to_center_distance:Ne.getCameraToCenterDistance(Qe),u_extrude_scale:[Ne.pixelsToGLUnits[0]/ai,Ne.pixelsToGLUnits[1]/ai]}},Rc=(Ze,Ne,Ge=1)=>({u_matrix:Ze,u_color:Ne,u_overlay:0,u_overlay_scale:Ge}),Fd=Ie.create(),Tf=(Ze,Ne,Ge,Qe,ai,ui,Si)=>{const Mi=Ze.transform,Fi=Mi.projection.name==="globe",qi=Fi?Ie.globePixelsToTileUnits(Mi.zoom,Ne.canonical)*Mi._pixelsPerMercatorPixel:wi(Ge,1,ui),Xi={u_matrix:Ne.projMatrix,u_extrude_scale:qi,u_intensity:Si,u_inv_rot_matrix:Fd,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(Fi){Xi.u_inv_rot_matrix=Qe,Xi.u_merc_center=ai,Xi.u_tile_id=[Ne.canonical.x,Ne.canonical.y,1<<Ne.canonical.z],Xi.u_zoom_transition=Ie.globeToMercatorTransition(Mi.zoom);const hn=ai[0]*Ie.EXTENT,Dn=ai[1]*Ie.EXTENT;Xi.u_up_dir=Mi.projection.upVector(new Ie.CanonicalTileID(0,0,0),hn,Dn)}return Xi},Ef=(Ze,Ne,Ge,Qe,ai,ui,Si)=>{const Mi=Ze.transform,Fi=Mi.calculatePixelsToTileUnitsMatrix(Ne);return{u_matrix:Bd(Ze,Ne,Ge,Qe),u_pixels_to_tile_units:Fi,u_device_pixel_ratio:ui,u_units_to_pixels:[1/Mi.pixelsToGLUnits[0],1/Mi.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:ai,u_texsize:Yc(Ge)?Ne.lineAtlasTexture.size:[0,0],u_tile_units_to_pixels:Bl(Ne,Ze.transform),u_alpha_discard_threshold:0,u_trim_offset:Si}},zd=(Ze,Ne,Ge,Qe,ai)=>{const ui=Ze.transform;return{u_matrix:Bd(Ze,Ne,Ge,Qe),u_texsize:Ne.imageAtlasTexture.size,u_pixels_to_tile_units:ui.calculatePixelsToTileUnitsMatrix(Ne),u_device_pixel_ratio:ai,u_image:0,u_tile_units_to_pixels:Bl(Ne,ui),u_units_to_pixels:[1/ui.pixelsToGLUnits[0],1/ui.pixelsToGLUnits[1]],u_alph
vendor: 13,498 bytes, line 1522
1522a_discard_threshold:0}};function Bl(Ze,Ne){return 1/wi(Ze,1,Ne.tileZoom)}function Bd(Ze,Ne,Ge,Qe){return Ze.translatePosMatrix(Qe||Ne.tileID.projMatrix,Ne,Ge.paint.get("line-translate"),Ge.paint.get("line-translate-anchor"))}function Yc(Ze){const Ne=Ze.paint.get("line-dasharray").value;return Ne.value||Ne.kind!=="constant"}const zh=(Ze,Ne,Ge,Qe,ai,ui)=>{return{u_matrix:Ze,u_tl_parent:Ne,u_scale_parent:Ge,u_fade_t:Qe.mix,u_opacity:Qe.opacity*ai.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ai.paint.get("raster-brightness-min"),u_brightness_high:ai.paint.get("raster-brightness-max"),u_saturation_factor:(Mi=ai.paint.get("raster-saturation"),Mi>0?1-1/(1.001-Mi):-Mi),u_contrast_factor:(Si=ai.paint.get("raster-contrast"),Si>0?1/(1-Si):1+Si),u_spin_weights:Ec(ai.paint.get("raster-hue-rotate")),u_perspective_transform:ui};var Si,Mi};function Ec(Ze){Ze*=Math.PI/180;const Ne=Math.sin(Ze),Ge=Math.cos(Ze);return[(2*Ge+1)/3,(-Math.sqrt(3)*Ne-Ge+1)/3,(Math.sqrt(3)*Ne-Ge+1)/3]}const Kc=Ie.create(),dd=(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi,hn,Dn,In,On,Bn)=>{const Vn=ai.transform,pn={u_is_size_zoom_constant:+(Ze==="constant"||Ze==="source"),u_is_size_feature_constant:+(Ze==="constant"||Ze==="camera"),u_size_t:Ne?Ne.uSizeT:0,u_size:Ne?Ne.uSize:0,u_camera_to_center_distance:Vn.cameraToCenterDistance,u_rotate_symbol:+Ge,u_aspect_ratio:Vn.width/Vn.height,u_fade_change:ai.options.fadeDuration?ai.symbolFadeChange:1,u_matrix:ui,u_label_plane_matrix:Si,u_coord_matrix:Mi,u_is_text:+Fi,u_pitch_with_map:+Qe,u_texsize:qi,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:Kc,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:Kc,u_up_vector:[0,-1,0]};return Bn.name==="globe"&&(pn.u_tile_id=[Xi.canonical.x,Xi.canonical.y,1<<Xi.canonical.z],pn.u_zoom_transition=hn,pn.u_inv_rot_matrix=In,pn.u_merc_center=Dn,pn.u_camera_forward=Vn._camera.forward(),pn.u_ecef_origin=Ie.globeECEFOrigin(Vn.globeMatrix,Xi.toUnwrapped()),pn.u_tile_matrix=Float32Array.from(Vn.globeMatrix),pn.u_up_vector=On),pn},ch=(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi,hn,Dn,In,On,Bn,Vn)=>Ie.extend(dd(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,hn,Dn,In,On,Bn,Vn),{u_gamma_scale:Qe?ai.transform.cameraToCenterDistance*Math.cos(ai.terrain?0:ai.transform._pitch):1,u_device_pixel_ratio:Ie.exported.devicePixelRatio,u_is_halo:+Xi}),sm=(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi,hn,Dn,In,On,Bn)=>Ie.extend(ch(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,!0,Fi,!0,Xi,hn,Dn,In,On,Bn),{u_texsize_icon:qi,u_texture_icon:1}),Nd=(Ze,Ne,Ge)=>({u_matrix:Ze,u_opacity:Ne,u_color:Ge}),Ku=(Ze,Ne,Ge,Qe,ai)=>Ie.extend(function(ui,Si,Mi){const Fi=Si.imageManager.getPattern(ui.toString()),{width:qi,height:Xi}=Si.imageManager.getPixelSize(),hn=Math.pow(2,Mi.tileID.overscaledZ),Dn=Mi.tileSize*Math.pow(2,Si.transform.tileZoom)/hn,In=Dn*(Mi.tileID.canonical.x+Mi.tileID.wrap*hn),On=Dn*Mi.tileID.canonical.y;return{u_image:0,u_pattern_tl:Fi.tl,u_pattern_br:Fi.br,u_texsize:[qi,Xi],u_pattern_size:Fi.displaySize,u_tile_units_to_pixels:1/wi(Mi,1,Si.transform.tileZoom),u_pixel_coord_upper:[In>>16,On>>16],u_pixel_coord_lower:[65535&In,65535&On]}}(Qe,Ge,ai),{u_matrix:Ze,u_opacity:Ne}),Jl={fillExtrusion:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_lightpos:new Ie.Uniform3f(Ze),u_lightintensity:new Ie.Uniform1f(Ze),u_lightcolor:new Ie.Uniform3f(Ze),u_vertical_gradient:new Ie.Uniform1f(Ze),u_opacity:new Ie.Uniform1f(Ze),u_edge_radius:new Ie.Uniform1f(Ze),u_ao:new Ie.Uniform2f(Ze),u_tile_id:new Ie.Uniform3f(Ze),u_zoom_transition:new Ie.Uniform1f(Ze),u_inv_rot_matrix:new Ie.UniformMatrix4f(Ze),u_merc_center:new Ie.Uniform2f(Ze),u_up_dir:new Ie.Uniform3f(Ze),u_height_lift:new Ie.Uniform1f(Ze)}),fillExtrusionPattern:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_lightpos:new Ie.Uniform3f(Ze),u_lightintensity:new Ie.Uniform1f(Ze),u_lightcolor:new Ie.Uniform3f(Ze),u_vertical_gradient:new Ie.Uniform1f(Ze),u_height_factor:new Ie.Uniform1f(Ze),u_edge_radius:new Ie.Uniform1f(Ze),u_ao:new Ie.Uniform2f(Ze),u_tile_id:new Ie.Uniform3f(Ze),u_zoom_transition:new Ie.Uniform1f(Ze),u_inv_rot_matrix:new Ie.UniformMatrix4f(Ze),u_merc_center:new Ie.Uniform2f(Ze),u_up_dir:new Ie.Uniform3f(Ze),u_height_lift:new Ie.Uniform1f(Ze),u_image:new Ie.Uniform1i(Ze),u_texsize:new Ie.Uniform2f(Ze),u_pixel_coord_upper:new Ie.Uniform2f(Ze),u_pixel_coord_lower:new Ie.Uniform2f(Ze),u_tile_units_to_pixels:new Ie.Uniform1f(Ze),u_opacity:new Ie.Uniform1f(Ze)}),fill:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze)}),fillPattern:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_image:new Ie.Uniform1i(Ze),u_texsize:new Ie.Uniform2f(Ze),u_pixel_coord_upper:new Ie.Uniform2f(Ze),u_pixel_coord_lower:new Ie.Uniform2f(Ze),u_tile_units_to_pixels:new Ie.Uniform1f(Ze)}),fillOutline:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_world:new Ie.Uniform2f(Ze)}),fillOutlinePattern:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_world:new Ie.Uniform2f(Ze),u_image:new Ie.Uniform1i(Ze),u_texsize:new Ie.Uniform2f(Ze),u_pixel_coord_upper:new Ie.Uniform2f(Ze),u_pixel_coord_lower:new Ie.Uniform2f(Ze),u_tile_units_to_pixels:new Ie.Uniform1f(Ze)}),circle:Ze=>({u_camera_to_center_distance:new Ie.Uniform1f(Ze),u_extrude_scale:new Ie.UniformMatrix2f(Ze),u_device_pixel_ratio:new Ie.Uniform1f(Ze),u_matrix:new Ie.UniformMatrix4f(Ze),u_inv_rot_matrix:new Ie.UniformMatrix4f(Ze),u_merc_center:new Ie.Uniform2f(Ze),u_tile_id:new Ie.Uniform3f(Ze),u_zoom_transition:new Ie.Uniform1f(Ze),u_up_dir:new Ie.Uniform3f(Ze)}),collisionBox:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_camera_to_center_distance:new Ie.Uniform1f(Ze),u_extrude_scale:new Ie.Uniform2f(Ze)}),collisionCircle:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_inv_matrix:new Ie.UniformMatrix4f(Ze),u_camera_to_center_distance:new Ie.Uniform1f(Ze),u_viewport_size:new Ie.Uniform2f(Ze)}),debug:Ze=>({u_color:new Ie.UniformColor(Ze),u_matrix:new Ie.UniformMatrix4f(Ze),u_overlay:new Ie.Uniform1i(Ze),u_overlay_scale:new Ie.Uniform1f(Ze)}),clippingMask:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze)}),heatmap:Ze=>({u_extrude_scale:new Ie.Uniform1f(Ze),u_intensity:new Ie.Uniform1f(Ze),u_matrix:new Ie.UniformMatrix4f(Ze),u_inv_rot_matrix:new Ie.UniformMatrix4f(Ze),u_merc_center:new Ie.Uniform2f(Ze),u_tile_id:new Ie.Uniform3f(Ze),u_zoom_transition:new Ie.Uniform1f(Ze),u_up_dir:new Ie.Uniform3f(Ze)}),heatmapTexture:Ze=>({u_image:new Ie.Uniform1i(Ze),u_color_ramp:new Ie.Uniform1i(Ze),u_opacity:new Ie.Uniform1f(Ze)}),hillshade:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_image:new Ie.Uniform1i(Ze),u_latrange:new Ie.Uniform2f(Ze),u_light:new Ie.Uniform2f(Ze),u_shadow:new Ie.UniformColor(Ze),u_highlight:new Ie.UniformColor(Ze),u_accent:new Ie.UniformColor(Ze)}),hillshadePrepare:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_image:new Ie.Uniform1i(Ze),u_dimension:new Ie.Uniform2f(Ze),u_zoom:new Ie.Uniform1f(Ze),u_unpack:new Ie.Uniform4f(Ze)}),line:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_pixels_to_tile_units:new Ie.UniformMatrix2f(Ze),u_device_pixel_ratio:new Ie.Uniform1f(Ze),u_units_to_pixels:new Ie.Uniform2f(Ze),u_dash_image:new Ie.Uniform1i(Ze),u_gradient_image:new Ie.Uniform1i(Ze),u_image_height:new Ie.Uniform1f(Ze),u_texsize:new Ie.Uniform2f(Ze),u_tile_units_to_pixels:new Ie.Uniform1f(Ze),u_alpha_discard_threshold:new Ie.Uniform1f(Ze),u_trim_offset:new Ie.Uniform2f(Ze)}),linePattern:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_texsize:new Ie.Uniform2f(Ze),u_pixels_to_tile_units:new Ie.UniformMatrix2f(Ze),u_device_pixel_ratio:new Ie.Uniform1f(Ze),u_image:new Ie.Uniform1i(Ze),u_units_to_pixels:new Ie.Uniform2f(Ze),u_tile_units_to_pixels:new Ie.Uniform1f(Ze),u_alpha_discard_threshold:new Ie.Uniform1f(Ze)}),raster:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_tl_parent:new Ie.Uniform2f(Ze),u_scale_parent:new Ie.Uniform1f(Ze),u_fade_t:new Ie.Uniform1f(Ze),u_opacity:new Ie.Uniform1f(Ze),u_image0:new Ie.Uniform1i(Ze),u_image1:new Ie.Uniform1i(Ze),u_brightness_low:new Ie.Uniform1f(Ze),u_brightness_high:new Ie.Uniform1f(Ze),u_saturation_factor:new Ie.Uniform1f(Ze),u_contrast_factor:new Ie.Uniform1f(Ze),u_spin_weights:new Ie.Uniform3f(Ze),u_perspective_transform:new Ie.Uniform2f(Ze)}),symbolIcon:Ze=>({u_is_size_zoom_constant:new Ie.Uniform1i(Ze),u_is_size_feature_constant:new Ie.Uniform1i(Ze),u_size_t:new Ie.Uniform1f(Ze),u_size:new Ie.Uniform1f(Ze),u_camera_to_center_distance:new Ie.Uniform1f(Ze),u_rotate_symbol:new Ie.Uniform1i(Ze),u_aspect_ratio:new Ie.Uniform1f(Ze),u_fade_change:new Ie.Uniform1f(Ze),u_matrix:new Ie.UniformMatrix4f(Ze),u_label_plane_matrix:new Ie.UniformMatrix4f(Ze),u_coord_matrix:new Ie.UniformMatrix4f(Ze),u_is_text:new Ie.Uniform1i(Ze),u_pitch_with_map:new Ie.Uniform1i(Ze),u_texsize:new Ie.Uniform2f(Ze),u_tile_id:new Ie.Uniform3f(Ze),u_zoom_transition:new Ie.Uniform1f(Ze),u_inv_rot_matrix:new Ie.UniformMatrix4f(Ze),u_merc_center:new Ie.Uniform2f(Ze),u_camera_forward:new Ie.Uniform3f(Ze),u_tile_matrix:new Ie.UniformMatrix4f(Ze),u_up_vector:new Ie.Uniform3f(Ze),u_ecef_origin:new Ie.Uniform3f(Ze),u_texture:new Ie.Uniform1i(Ze)}),symbolSDF:Ze=>({u_is_size_zoom_constant:new Ie.Uniform1i(Ze),u_is_size_feature_constant:new Ie.Uniform1i(Ze),u_size_t:new Ie.Uniform1f(Ze),u_size:new Ie.Uniform1f(Ze),u_camera_to_center_distance:new Ie.Uniform1f(Ze),u_rotate_symbol:new Ie.Uniform1i(Ze),u_aspect_ratio:new Ie.Uniform1f(Ze),u_fade_change:new Ie.Uniform1f(Ze),u_matrix:new Ie.UniformMatrix4f(Ze),u_label_plane_matrix:new Ie.UniformMatrix4f(Ze),u_coord_matrix:new Ie.UniformMatrix4f(Ze),u_is_text:new Ie.Uniform1i(Ze),u_pitch_with_map:new Ie.Uniform1i(Ze),u_texsize:new Ie.Uniform2f(Ze),u_texture:new Ie.Uniform1i(Ze),u_gamma_scale:new Ie.Uniform1f(Ze),u_device_pixel_ratio:new Ie.Uniform1f(Ze),u_tile_id:new Ie.Uniform3f(Ze),u_zoom_transition:new Ie.Uniform1f(Ze),u_inv_rot_matrix:new Ie.UniformMatrix4f(Ze),u_merc_center:new Ie.Uniform2f(Ze),u_camera_forward:new Ie.Uniform3f(Ze),u_tile_matrix:new Ie.UniformMatrix4f(Ze),u_up_vector:new Ie.Uniform3f(Ze),u_ecef_origin:new Ie.Uniform3f(Ze),u_is_halo:new Ie.Uniform1i(Ze)}),symbolTextAndIcon:Ze=>({u_is_size_zoom_constant:new Ie.Uniform1i(Ze),u_is_size_feature_constant:new Ie.Uniform1i(Ze),u_size_t:new Ie.Uniform1f(Ze),u_size:new Ie.Uniform1f(Ze),u_camera_to_center_distance:new Ie.Uniform1f(Ze),u_rotate_symbol:new Ie.Uniform1i(Ze),u_aspect_ratio:new Ie.Uniform1f(Ze),u_fade_change:new Ie.Uniform1f(Ze),u_matrix:new Ie.UniformMatrix4f(Ze),u_label_plane_matrix:new Ie.UniformMatrix4f(Ze),u_coord_matrix:new Ie.UniformMatrix4f(Ze),u_is_text:new Ie.Uniform1i(Ze),u_pitch_with_map:new Ie.Uniform1i(Ze),u_texsize:new Ie.Uniform2f(Ze),u_texsize_icon:new Ie.Uniform2f(Ze),u_texture:new Ie.Uniform1i(Ze),u_texture_icon:new Ie.Uniform1i(Ze),u_gamma_scale:new Ie.Uniform1f(Ze),u_device_pixel_ratio:new Ie.Uniform1f(Ze),u_is_halo:new Ie.Uniform1i(Ze)}),background:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_opacity:new Ie.Uniform1f(Ze),u_color:new Ie.UniformColor(Ze)}),backgroundPattern:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_opacity:new Ie.Uniform1f(Ze),u_image:new Ie.Uniform1i(Ze),u_pattern_tl:new Ie.Uniform2f(Ze),u_pattern_br:new Ie.Uniform2f(Ze),u_texsize:new Ie.Uniform2f(Ze),u_pattern_size:new Ie.Uniform2f(Ze),u_pixel_coord_upper:new Ie.Uniform2f(Ze),u_pixel_coord_lower:new Ie.Uniform2f(Ze),u_tile_units_to_pixels:new Ie.Uniform1f(Ze)}),terrainRaster:co,terrainDepth:co,skybox:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_sun_direction:new Ie.Uniform3f(Ze),u_cubemap:new Ie.Uniform1i(Ze),u_opacity:new Ie.Uniform1f(Ze),u_temporal_offset:new Ie.Uniform1f(Ze)}),skyboxGradient:Ze=>({u_matrix:new Ie.UniformMatrix4f(Ze),u_color_ramp:new Ie.Uniform1i(Ze),u_center_direction:new Ie.Uniform3f(Ze),u_radius:new Ie.Uniform1f(Ze),u_opacity:new Ie.Uniform1f(Ze),u_temporal_offset:new Ie.Uniform1f(Ze)}),skyboxCapture:Ze=>({u_matrix_3f:new Ie.UniformMatrix3f(Ze),u_sun_direction:new Ie.Uniform3f(Ze),u_sun_intensity:new Ie.Uniform1f(Ze),u_color_tint_r:new Ie.Uniform4f(Ze),u_color_tint_m:new Ie.Uniform4f(Ze),u_luminance:new Ie.Uniform1f(Ze)}),globeRaster:Ze=>({u_proj_matrix:new Ie.UniformMatrix4f(Ze),u_globe_matrix:new Ie.UniformMatrix4f(Ze),u_normalize_matrix:new Ie.UniformMatrix4f(Ze),u_merc_matrix:new Ie.UniformMatrix4f(Ze),u_zoom_transition:new Ie.Uniform1f(Ze),u_merc_center:new Ie.Uniform2f(Ze),u_image0:new Ie.Uniform1i(Ze),u_grid_matrix:new Ie.UniformMatrix3f(Ze),u_skirt_height:new Ie.Uniform1f(Ze),u_frustum_tl:new Ie.Uniform3f(Ze),u_frustum_tr:new Ie.Uniform3f(Ze),u_frustum_br:new Ie.Uniform3f(Ze),u_frustum_bl:new Ie.Uniform3f(Ze),u_globe_pos:new Ie.Uniform3f(Ze),u_globe_radius:new Ie.Uniform1f(Ze),u_viewport:new Ie.Uniform2f(Ze)}),globeAtmosphere:Ze=>({u_frustum_tl:new Ie.Uniform3f(Ze),u_frustum_tr:new Ie.Uniform3f(Ze),u_frustum_br:new Ie.Uniform3f(Ze),u_frustum_bl:new Ie.Uniform3f(Ze),u_horizon:new Ie.Uniform1f(Ze),u_transition:new Ie.Uniform1f(Ze),u_fadeout_range:new Ie.Uniform1f(Ze),u_color:new Ie.Uniform4f(Ze),u_high_color:new Ie.Uniform4f(Ze),u_space_color:new Ie.Uniform4f(Ze),u_star_intensity:new Ie.Uniform1f(Ze),u_star_density:new Ie.Uniform1f(Ze),u_star_size:new Ie.Uniform1f(Ze),u_temporal_offset:new Ie.Uniform1f(Ze),u_horizon_angle:new Ie.Uniform1f(Ze),u_rotation_matrix:new Ie.UniformMatrix4f(Ze)})};let Jc;function Vd(Ze,Ne,Ge,Qe,ai,ui,Si){const Mi=Ze.context,Fi=Mi.gl,qi=Ze.transform,Xi=Ze.useProgram("collisionBox"),hn=[];let Dn=0,In=0;for(let qn=0;qn<Qe.length;qn++){const gr=Qe[qn],vr=Ne.getTile(gr),dr=vr.getBucket(Ge);if(!dr)continue;const $r=xc(gr,dr,qi);let Pr=$r;ai[0]===0&&ai[1]===0||(Pr=Ze.translatePosMatrix($r,vr,ai,ui));const Vr=Si?dr.textCollisionBox:dr.iconCollisionBox,Ds=dr.collisionCircleArray;
1522if(Ds.length>0){const zr=Ie.create(),cs=Pr;Ie.mul(zr,dr.placementInvProjMatrix,qi.glCoordMatrix),Ie.mul(zr,zr,dr.placementViewportMatrix),hn.push({circleArray:Ds,circleOffset:In,transform:cs,invTransform:zr,projection:dr.getProjection()}),Dn+=Ds.length/4,In=Dn}Vr&&(Ze.terrain&&Ze.terrain.setupElevationDraw(vr,Xi),Xi.draw(Mi,Fi.LINES,Ie.DepthMode.disabled,Ie.StencilMode.disabled,Ze.colorModeForRenderPass(),Ie.CullFaceMode.disabled,Fu(Pr,qi,vr,dr.getProjection()),Ge.id,Vr.layoutVertexBuffer,Vr.indexBuffer,Vr.segments,null,qi.zoom,null,[Vr.collisionVertexBuffer,Vr.collisionVertexBufferExt]))}if(!Si||!hn.length)return;const On=Ze.useProgram("collisionCircle"),Bn=new Ie.StructArrayLayout2f1f2i16;Bn.resize(4*Dn),Bn._trim();let Vn=0;for(const qn of hn)for(let gr=0;gr<qn.circleArray.length/4;gr++){const vr=4*gr,dr=qn.circleArray[vr+0],$r=qn.circleArray[vr+1],Pr=qn.circleArray[vr+2],Vr=qn.circleArray[vr+3];Bn.emplace(Vn++,dr,$r,Pr,Vr,0),Bn.emplace(Vn++,dr,$r,Pr,Vr,1),Bn.emplace(Vn++,dr,$r,Pr,Vr,2),Bn.emplace(Vn++,dr,$r,Pr,Vr,3)}(!Jc||Jc.length<2*Dn)&&(Jc=function(qn){const gr=2*qn,vr=new Ie.StructArrayLayout3ui6;vr.resize(gr),vr._trim();for(let dr=0;dr<gr;dr++){const $r=6*dr;vr.uint16[$r+0]=4*dr+0,vr.uint16[$r+1]=4*dr+1,vr.uint16[$r+2]=4*dr+2,vr.uint16[$r+3]=4*dr+2,vr.uint16[$r+4]=4*dr+3,vr.uint16[$r+5]=4*dr+0}return vr}(Dn));const pn=Mi.createIndexBuffer(Jc,!0),Pn=Mi.createVertexBuffer(Bn,Ie.collisionCircleLayout.members,!0);for(const qn of hn){const gr={u_matrix:qn.transform,u_inv_matrix:qn.invTransform,u_camera_to_center_distance:(Jn=qi).getCameraToCenterDistance(qn.projection),u_viewport_size:[Jn.width,Jn.height]};On.draw(Mi,Fi.TRIANGLES,Ie.DepthMode.disabled,Ie.StencilMode.disabled,Ze.colorModeForRenderPass(),Ie.CullFaceMode.disabled,gr,Ge.id,Pn,pn,Ie.SegmentVector.simpleSegment(0,2*qn.circleOffset,qn.circleArray.length,qn.circleArray.length/2),null,qi.zoom)}var Jn;Pn.destroy(),pn.destroy()}const gp=Ie.create();function nr({width:Ze,height:Ne,anchor:Ge,textOffset:Qe,textScale:ai},ui){const{horizontalAlign:Si,verticalAlign:Mi}=Ie.getAnchorAlignment(Ge),Fi=-(Si-.5)*Ze,qi=-(Mi-.5)*Ne,Xi=Ie.evaluateVariableOffset(Ge,Qe);return new Ie.Point((Fi/ai+Xi[0])*ui,(qi/ai+Xi[1])*ui)}function Ir(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi){const hn=Ze.text.placedSymbolArray,Dn=Ze.text.dynamicLayoutVertexArray,In=Ze.icon.dynamicLayoutVertexArray,On={},Bn=Ze.getProjection(),Vn=Ma(Mi,Bn,ui),pn=ui.elevation,Pn=Bn.upVectorScale(Mi.canonical,ui.center.lat,ui.worldSize).metersToTile;Dn.clear();for(let Jn=0;Jn<hn.length;Jn++){const qn=hn.get(Jn),{tileAnchorX:gr,tileAnchorY:vr,numGlyphs:dr}=qn,$r=qn.hidden||!qn.crossTileID||Ze.allowVerticalPlacement&&!qn.placedOrientation?null:Qe[qn.crossTileID];if($r){let Pr=0,Vr=0,Ds=0;if(pn){const Is=pn?pn.getAtTileOffset(Mi,gr,vr):0,[ho,ko,Js]=Bn.upVector(Mi.canonical,gr,vr);Pr=Is*ho*Pn,Vr=Is*ko*Pn,Ds=Is*Js*Pn}let[zr,cs,Xr,ss]=il(qn.projectedAnchorX+Pr,qn.projectedAnchorY+Vr,qn.projectedAnchorZ+Ds,Ge?Vn:Si);const Lr=_c(ui.getCameraToCenterDistance(Bn),ss);let ns=ai.evaluateSizeForFeature(Ze.textSizeData,qi,qn)*Lr/Ie.ONE_EM;Ge&&(ns*=Ze.tilePixelRatio/Fi);const Ss=nr($r,ns);Ge?({x:zr,y:cs,z:Xr}=Bn.projectTilePoint(gr+Ss.x,vr+Ss.y,Mi.canonical),[zr,cs,Xr]=il(zr+Pr,cs+Vr,Xr+Ds,Si)):(Ne&&Ss._rotate(-ui.angle),zr+=Ss.x,cs+=Ss.y,Xr=0);const ds=Ze.allowVerticalPlacement&&qn.placedOrientation===Ie.WritingMode.vertical?Math.PI/2:0;for(let Is=0;Is<dr;Is++)Ie.addDynamicAttributes(Dn,zr,cs,Xr,ds);Xi&&qn.associatedIconIndex>=0&&(On[qn.associatedIconIndex]={x:zr,y:cs,z:Xr,angle:ds})}else cu(dr,Dn)}if(Xi){In.clear();const Jn=Ze.icon.placedSymbolArray;for(let qn=0;qn<Jn.length;qn++){const gr=Jn.get(qn),{numGlyphs:vr}=gr,dr=On[qn];if(gr.hidden||!dr)cu(vr,In);else{const{x:$r,y:Pr,z:Vr,angle:Ds}=dr;for(let zr=0;zr<vr;zr++)Ie.addDynamicAttributes(In,$r,Pr,Vr,Ds)}}Ze.icon.dynamicLayoutVertexBuffer.updateData(In)}Ze.text.dynamicLayoutVertexBuffer.updateData(Dn)}function Yr(Ze,Ne,Ge){return Ge.iconsInText&&Ne?"symbolTextAndIcon":Ze?"symbolSDF":"symbolIcon"}function is(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi,qi,Xi,hn){const Dn=Ze.context,In=Dn.gl,On=Ze.transform,Bn=Mi==="map",Vn=Fi==="map",pn=Bn&&Ge.layout.get("symbol-placement")!=="point",Pn=Bn&&!Vn&&!pn,Jn=Ge.layout.get("symbol-sort-key").constantOr(1)!==void 0;let qn=!1;const gr=Ze.depthModeForSublayer(0,Ie.DepthMode.ReadOnly),vr=[Ie.mercatorXfromLng(On.center.lng),Ie.mercatorYfromLat(On.center.lat)],dr=Ge.layout.get("text-variable-anchor"),$r=On.projection.name==="globe",Pr=[],Vr=[0,-1,0];let Ds=Vr;!$r&&!On.mercatorFromTransition||Bn||(Ds=function(zr){const cs=zr._camera.getWorldToCamera(zr.worldSize,1),Xr=Ie.multiply([],cs,zr.globeMatrix);Ie.invert(Xr,Xr);const ss=[0,0,0],Lr=[0,1,0,0];return Ie.transformMat4$1(Lr,Lr,Xr),ss[0]=Lr[0],ss[1]=Lr[1],ss[2]=Lr[2],Ie.normalize(ss,ss),ss}(On));for(const zr of Qe){const cs=Ne.getTile(zr),Xr=cs.getBucket(Ge);if(!Xr||Xr.projection.name==="mercator"&&$r)continue;const ss=ai?Xr.text:Xr.icon;if(!ss||Xr.fullyClipped||!ss.segments.get().length)continue;const Lr=ss.programConfigurations.get(Ge.id),ns=ai||Xr.sdfIcons,Ss=ai?Xr.textSizeData:Xr.iconSizeData,ds=Vn||On.pitch!==0,Is=Ie.evaluateSizeForZoom(Ss,On.zoom);let ho,ko,Js,_o,ia=[0,0],No=null;if(ai)ko=cs.glyphAtlasTexture,Js=In.LINEAR,ho=cs.glyphAtlasTexture.size,Xr.
1522iconsInText&&(ia=cs.imageAtlasTexture.size,No=cs.imageAtlasTexture,_o=ds||Ze.options.rotating||Ze.options.zooming||Ss.kind==="composite"||Ss.kind==="camera"?In.LINEAR:In.NEAREST);else{const Uu=Ge.layout.get("icon-size").constantOr(0)!==1||Xr.iconsNeedLinear;ko=cs.imageAtlasTexture,Js=ns||Ze.options.rotating||Ze.options.zooming||Uu||ds?In.LINEAR:In.NEAREST,ho=cs.imageAtlasTexture.size}const lo=Xr.projection.name==="globe",Ea=lo?Ds:Vr,Va=lo?Ie.globeToMercatorTransition(On.zoom):0,Pa=Ma(zr,Xr.getProjection(),On),ha=On.calculatePixelsToTileUnitsMatrix(cs),Hl=rs(Pa,cs.tileID.canonical,Vn,Bn,On,Xr.getProjection(),ha),Wl=Ze.terrain&&Vn&&pn?Ie.invert(Ie.create(),Hl):gp,gu=hl(Pa,cs.tileID.canonical,Vn,Bn,On,Xr.getProjection(),ha),Hu=dr&&Xr.hasTextData(),rl=Ge.layout.get("icon-text-fit")!=="none"&&Hu&&Xr.hasIconData();if(pn){const Uu=On.elevation,yd=Uu?Uu.getAtTileOffsetFunc(zr,On.center.lat,On.worldSize,Xr.getProjection()):null,kp=Ou(Pa,cs.tileID.canonical,Vn,Bn,On,Xr.getProjection(),ha);jl(Xr,Pa,Ze,ai,kp,gu,Vn,qi,yd,zr)}const Ha=pn||ai&&dr||rl,Yo=Ze.translatePosMatrix(Pa,cs,ui,Si),wl=Ha?gp:Hl,pl=Ze.translatePosMatrix(gu,cs,ui,Si,!0),Za=Xr.getProjection().createInversionMatrix(On,zr.canonical),Cc=[];Ze.terrainRenderModeElevated()&&Vn&&Cc.push("PITCH_WITH_MAP_TERRAIN"),lo&&Cc.push("PROJECTION_GLOBE_VIEW"),Ha&&Cc.push("PROJECTED_POS_ON_VIEWPORT");const Mp=ns&&Ge.paint.get(ai?"text-halo-width":"icon-halo-width").constantOr(1)!==0;let Cu;Cu=ns?Xr.iconsInText?sm(Ss.kind,Is,Pn,Vn,Ze,Yo,wl,pl,ho,ia,zr,Va,vr,Za,Ea,Xr.getProjection()):ch(Ss.kind,Is,Pn,Vn,Ze,Yo,wl,pl,ai,ho,!0,zr,Va,vr,Za,Ea,Xr.getProjection()):dd(Ss.kind,Is,Pn,Vn,Ze,Yo,wl,pl,ai,ho,zr,Va,vr,Za,Ea,Xr.getProjection());const gd={program:Ze.useProgram(Yr(ns,ai,Xr),Lr,Cc),buffers:ss,uniformValues:Cu,atlasTexture:ko,atlasTextureIcon:No,atlasInterpolation:Js,atlasInterpolationIcon:_o,isSDF:ns,hasHalo:Mp,tile:cs,labelPlaneMatrixInv:Wl};if(Jn&&Xr.canOverlap){qn=!0;const Uu=ss.segments.get();for(const yd of Uu)Pr.push({segments:new Ie.SegmentVector([yd]),sortKey:yd.sortKey,state:gd})}else Pr.push({segments:ss.segments,sortKey:0,state:gd})}qn&&Pr.sort((zr,cs)=>zr.sortKey-cs.sortKey);for(const zr of Pr){const cs=zr.state;if(Ze.terrain&&Ze.terrain.setupElevationDraw(cs.tile,cs.program,{useDepthForOcclusion:!$r,labelPlaneMatrixInv:cs.labelPlaneMatrixInv}),Dn.activeTexture.set(In.TEXTURE0),cs.atlasTexture.bind(cs.atlasInterpolation,In.CLAMP_TO_EDGE),cs.atlasTextureIcon&&(Dn.activeTexture.set(In.TEXTURE1),cs.atlasTextureIcon&&cs.atlasTextureIcon.bind(cs.atlasInterpolationIcon,In.CLAMP_TO_EDGE)),cs.isSDF){const Xr=cs.uniformValues;cs.hasHalo&&(Xr.u_is_halo=1,Un(cs.buffers,zr.segments,Ge,Ze,cs.program,gr,Xi,hn,Xr)),Xr.u_is_halo=0}Un(cs.buffers,zr.segments,Ge,Ze,cs.program,gr,Xi,hn,cs.uniformValues)}}function Un(Ze,Ne,Ge,Qe,ai,ui,Si,Mi,Fi){const qi=Qe.context,Xi=[Ze.dynamicLayoutVertexBuffer,Ze.opacityVertexBuffer,Ze.globeExtVertexBuffer];ai.draw(qi,qi.gl.TRIANGLES,ui,Si,Mi,Ie.CullFaceMode.disabled,Fi,Ge.id,Ze.layoutVertexBuffer,Ze.indexBuffer,Ne,Ge.paint,Qe.transform.zoom,Ze.programConfigurations.get(Ge.id),Xi)}function Ar(Ze,Ne,Ge,Qe,ai,ui,Si){const Mi=Ze.context.gl,Fi=Ge.paint.get("fill-pattern"),qi=Fi&&Fi.constantOr(1);let Xi,hn,Dn,In,On;Si?(hn=qi&&!Ge.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",Xi=Mi.LINES):(hn=qi?"fillPattern":"fill",Xi=Mi.TRIANGLES);for(const Bn of Qe){const Vn=Ne.getTile(Bn);if(qi&&!Vn.patternsLoaded())continue;const pn=Vn.getBucket(Ge);if(!pn)continue;Ze.prepareDrawTile();const Pn=pn.programConfigurations.get(Ge.id),Jn=Ze.useProgram(hn,Pn);qi&&(Ze.context.activeTexture.set(Mi.TEXTURE0),Vn.imageAtlasTexture.bind(Mi.LINEAR,Mi.CLAMP_TO_EDGE),Pn.updatePaintBuffers());const qn=Fi.constantOr(null);if(qn&&Vn.imageAtlas){const vr=Vn.imageAtlas.patternPositions[qn.toString()];vr&&Pn.setConstantPatternPositions(vr)}const gr=Ze.translatePosMatrix(Bn.projMatrix,Vn,Ge.paint.get("fill-translate"),Ge.paint.get("fill-translate-anchor"));if(Si){In=pn.indexBuffer2,On=pn.segments2;const vr=Ze.terrain&&Ze.terrain.renderingToTexture?Ze.terrain.drapeBufferSize:[Mi.drawingBufferWidth,Mi.drawingBufferHeight];Dn=hn==="fillOutlinePattern"&&qi?pu(gr,Ze,Vn,vr):Tc(gr,vr)}else In=pn.indexBuffer,On=pn.segments,Dn=qi?Kl(gr,Ze,Vn):Tu(gr);Ze.prepareDrawProgram(Ze.context,Jn,Bn.toUnwrapped()),Jn.draw(Ze.context,Xi,ai,Ze.stencilModeForClipping(Bn),ui,Ie.CullFaceMode.disabled,Dn,Ge.id,pn.layoutVertexBuffer,In,On,Ge.paint,Ze.transform.zoom,Pn)}}function Tr(Ze,Ne,Ge,Qe,ai,ui,Si){const Mi=Ze.context,Fi=Mi.gl,qi=Ze.transform,Xi=Ge.paint.get("fill-extrusion-pattern"),hn=Xi.constantOr(1),Dn=Ge.paint.get("fill-extrusion-opacity"),In=[Ge.paint.get("fill-extrusion-ambient-occlusion-intensity"),Ge.paint.get("fill-extrusion-ambient-occlusion-radius")],On=Ge.layout.get("fill-extrusion-edge-radius"),Bn=On>0&&!Ge.paint.get("fill-extrusion-rounded-roof"),Vn=Bn?0:On,pn=qi.projection.name==="globe"?Ie.fillExtrusionHeightLift():0,Pn=qi.projection.name==="globe",Jn=Pn?Ie.globeToMercatorTransition(qi.zoom):0,qn=[Ie.mercatorXfromLng(qi.center.lng),Ie.mercatorYfromLat(qi.center.lat)],gr=[];Pn&&gr.push("PROJECTION_GLOBE_VIEW"),In[0]>0&&gr.push("FAUX_AO"),Bn&&gr.push("ZERO_ROOF_RADIUS");for(const vr of Qe){const dr=Ne.getTile(vr),$r=dr.getBucket(Ge);if(!$r||$r.projection.name!==qi.projection.name)continue;const Pr=$r.programConfigurations.get(Ge.id),Vr=Ze.useProgram(hn?"fillExtrusionPattern":"fillExtrusion",Pr,gr);
vendor: 4,823 bytes, line 1522
1522if(Ze.terrain){const ns=Ze.terrain;if(Ze.style.terrainSetForDrapingOnly())ns.setupElevationDraw(dr,Vr,{useMeterToDem:!0});else{if(!$r.enableTerrain)continue;if(ns.setupElevationDraw(dr,Vr,{useMeterToDem:!0}),fs(Mi,Ne,vr,$r,Ge,ns),!$r.centroidVertexBuffer){const Ss=Vr.attributes.a_centroid_pos;Ss!==void 0&&Fi.vertexAttrib2f(Ss,0,0)}}}hn&&(Ze.context.activeTexture.set(Fi.TEXTURE0),dr.imageAtlasTexture.bind(Fi.LINEAR,Fi.CLAMP_TO_EDGE),Pr.updatePaintBuffers());const Ds=Xi.constantOr(null);if(Ds&&dr.imageAtlas){const ns=dr.imageAtlas.patternPositions[Ds.toString()];ns&&Pr.setConstantPatternPositions(ns)}const zr=Ze.translatePosMatrix(vr.projMatrix,dr,Ge.paint.get("fill-extrusion-translate"),Ge.paint.get("fill-extrusion-translate-anchor")),cs=qi.projection.createInversionMatrix(qi,vr.canonical),Xr=Ge.paint.get("fill-extrusion-vertical-gradient"),ss=hn?Ml(zr,Ze,Xr,Dn,In,Vn,vr,dr,pn,Jn,qn,cs):Zc(zr,Ze,Xr,Dn,In,Vn,vr,pn,Jn,qn,cs);Ze.prepareDrawProgram(Mi,Vr,vr.toUnwrapped());const Lr=[];Ze.terrain&&Lr.push($r.centroidVertexBuffer),Pn&&Lr.push($r.layoutVertexExtBuffer),Vr.draw(Mi,Mi.gl.TRIANGLES,ai,ui,Si,Ie.CullFaceMode.backCCW,ss,Ge.id,$r.layoutVertexBuffer,$r.indexBuffer,$r.segments,Ge.paint,Ze.transform.zoom,Pr,Lr)}}function fs(Ze,Ne,Ge,Qe,ai,ui){const Si=[pn=>{let Pn=pn.canonical.x-1,Jn=pn.wrap;return Pn<0&&(Pn=(1<<pn.canonical.z)-1,Jn--),new Ie.OverscaledTileID(pn.overscaledZ,Jn,pn.canonical.z,Pn,pn.canonical.y)},pn=>{let Pn=pn.canonical.x+1,Jn=pn.wrap;return Pn===1<<pn.canonical.z&&(Pn=0,Jn++),new Ie.OverscaledTileID(pn.overscaledZ,Jn,pn.canonical.z,Pn,pn.canonical.y)},pn=>new Ie.OverscaledTileID(pn.overscaledZ,pn.wrap,pn.canonical.z,pn.canonical.x,(pn.canonical.y===0?1<<pn.canonical.z:pn.canonical.y)-1),pn=>new Ie.OverscaledTileID(pn.overscaledZ,pn.wrap,pn.canonical.z,pn.canonical.x,pn.canonical.y===(1<<pn.canonical.z)-1?0:pn.canonical.y+1)],Mi=pn=>{const Pn=Ne.getSource().minzoom,Jn=gr=>{const vr=Ne.getTileByID(gr);if(vr&&vr.hasData())return vr.getBucket(ai)},qn=[0,-1,1];for(const gr of qn){if(pn.overscaledZ+gr<Pn)continue;const vr=Jn(pn.calculateScaledKey(pn.overscaledZ+gr));if(vr)return vr}},Fi=[0,0,0],qi=(pn,Pn)=>(Fi[0]=Math.min(pn.min.y,Pn.min.y),Fi[1]=Math.max(pn.max.y,Pn.max.y),Fi[2]=Ie.EXTENT-Pn.min.x>pn.max.x?Pn.min.x-Ie.EXTENT:pn.max.x,Fi),Xi=(pn,Pn)=>(Fi[0]=Math.min(pn.min.x,Pn.min.x),Fi[1]=Math.max(pn.max.x,Pn.max.x),Fi[2]=Ie.EXTENT-Pn.min.y>pn.max.y?Pn.min.y-Ie.EXTENT:pn.max.y,Fi),hn=[(pn,Pn)=>qi(pn,Pn),(pn,Pn)=>qi(Pn,pn),(pn,Pn)=>Xi(pn,Pn),(pn,Pn)=>Xi(Pn,pn)],Dn=new Ie.Point(0,0);let In,On,Bn;const Vn=(pn,Pn,Jn,qn,gr)=>{const vr=[[qn?Jn:pn,qn?pn:Jn,0],[qn?Jn:Pn,qn?Pn:Jn,0]],dr=gr<0?Ie.EXTENT+gr:gr,$r=[qn?dr:(pn+Pn)/2,qn?(pn+Pn)/2:dr,0];return Jn===0&&gr<0||Jn!==0&&gr>0?ui.getForTilePoints(Bn,[$r],!0,On):vr.push($r),ui.getForTilePoints(Ge,vr,!0,In),Math.max(vr[0][2],vr[1][2],$r[2])/ui.exaggeration()};for(let pn=0;pn<4;pn++){const Pn=(pn<2?1:5)-pn,Jn=Qe.borders[pn];if(Jn.length===0)continue;const qn=Bn=Si[pn](Ge),gr=Mi(qn);if(!(gr&&gr instanceof Ie.FillExtrusionBucket&&gr.enableTerrain)||Qe.borderDoneWithNeighborZ[pn]===gr.canonical.z&&gr.borderDoneWithNeighborZ[Pn]===Qe.canonical.z||(On=ui.findDEMTileFor(qn),!On||!On.dem))continue;if(!In){const Pr=ui.findDEMTileFor(Ge);if(!Pr||!Pr.dem)return;In=Pr}const vr=gr.borders[Pn];let dr=0;const $r=gr.borderDoneWithNeighborZ[Pn]!==Qe.canonical.z;if(Qe.canonical.z===gr.canonical.z){for(let Pr=0;Pr<Jn.length;Pr++){const Vr=Qe.featuresOnBorder[Jn[Pr]],Ds=Vr.borders[pn];let zr;for(;dr<vr.length&&(zr=gr.featuresOnBorder[vr[dr]],!(zr.borders[Pn][1]>Ds[0]+3));)$r&&gr.encodeCentroid(void 0,zr,!1),dr++;if(zr&&dr<vr.length){const cs=dr;let Xr=0;for(;!(zr.borders[Pn][0]>Ds[1]-3)&&(Xr++,++dr!==vr.length);)zr=gr.featuresOnBorder[vr[dr]];if(zr=gr.featuresOnBorder[vr[cs]],Vr.intersectsCount()>1||zr.intersectsCount()>1||Xr!==1){Xr!==1&&(dr=cs),Qe.encodeCentroid(void 0,Vr,!1),$r&&gr.encodeCentroid(void 0,zr,!1);continue}const ss=hn[pn](Vr,zr),Lr=pn%2?Ie.EXTENT-1:0;Dn.x=Vn(ss[0],Math.min(Ie.EXTENT-1,ss[1]),Lr,pn<2,ss[2]),Dn.y=0,Qe.encodeCentroid(Dn,Vr,!1),$r&&gr.encodeCentroid(Dn,zr,!1)}else Qe.encodeCentroid(void 0,Vr,!1)}Qe.borderDoneWithNeighborZ[pn]=gr.canonical.z,Qe.needsCentroidUpdate=!0,$r&&(gr.borderDoneWithNeighborZ[Pn]=Qe.canonical.z,gr.needsCentroidUpdate=!0)}else{for(const Pr of Jn)Qe.encodeCentroid(void 0,Qe.featuresOnBorder[Pr],!1);if($r){for(const Pr of vr)gr.encodeCentroid(void 0,gr.featuresOnBorder[Pr],!1);gr.borderDoneWithNeighborZ[Pn]=Qe.canonical.z,gr.needsCentroidUpdate=!0}Qe.borderDoneWithNeighborZ[pn]=gr.canonical.z,Qe.needsCentroidUpdate=!0}}(Qe.needsCentroidUpdate||!Qe.centroidVertexBuffer&&Qe.centroidVertexArray.length!==0)&&Qe.uploadCentroid(Ze)}const ws=new Ie.Color(1,0,0,1),yo=new Ie.Color(0,1,0,1),vo=new Ie.Color(0,0,1,1),uo=new Ie.Color(1,0,1,1),ua=new Ie.Color(0,1,1,1);
vendor: 4,884 bytes, line 1522
1522function To(Ze,Ne,Ge){const Qe=Ze.context,ai=Ze.transform,ui=Qe.gl,Si=ai.projection.name==="globe",Mi=Si?["PROJECTION_GLOBE_VIEW"]:null;let Fi=Ge.projMatrix;if(Si&&Ie.globeToMercatorTransition(ai.zoom)>0){const Vr=Ie.transitionTileAABBinECEF(Ge.canonical,ai),Ds=Ie.globeDenormalizeECEF(Vr);Fi=Ie.multiply(new Float32Array(16),ai.globeMatrix,Ds),Ie.multiply(Fi,ai.projMatrix,Fi)}const qi=Ze.useProgram("debug",null,Mi),Xi=Ne.getTileByID(Ge.key);Ze.terrain&&Ze.terrain.setupElevationDraw(Xi,qi);const hn=Ie.DepthMode.disabled,Dn=Ie.StencilMode.disabled,In=Ze.colorModeForRenderPass(),On="$debug";Qe.activeTexture.set(ui.TEXTURE0),Ze.emptyTexture.bind(ui.LINEAR,ui.CLAMP_TO_EDGE),Si?Xi._makeGlobeTileDebugBuffers(Ze.context,ai):Xi._makeDebugTileBoundsBuffers(Ze.context,ai.projection);const Bn=Xi._tileDebugBuffer||Ze.debugBuffer,Vn=Xi._tileDebugIndexBuffer||Ze.debugIndexBuffer,pn=Xi._tileDebugSegments||Ze.debugSegments;qi.draw(Qe,ui.LINE_STRIP,hn,Dn,In,Ie.CullFaceMode.disabled,Rc(Fi,Ie.Color.red),On,Bn,Vn,pn,null,null,null,[Xi._globeTileDebugBorderBuffer]);const Pn=Xi.latestRawTileData,Jn=Math.floor((Pn&&Pn.byteLength||0)/1024),qn=Ne.getTile(Ge).tileSize,gr=512/Math.min(qn,512)*(Ge.overscaledZ/ai.zoom)*.5;let vr=Ge.canonical.toString();Ge.overscaledZ!==Ge.canonical.z&&(vr+=` => ${Ge.overscaledZ}`),vr+=` ${Jn}kb`,function(Vr,Ds){Vr.initDebugOverlayCanvas();const zr=Vr.debugOverlayCanvas,cs=Vr.context.gl,Xr=Vr.debugOverlayCanvas.getContext("2d");Xr.clearRect(0,0,zr.width,zr.height),Xr.shadowColor="white",Xr.shadowBlur=2,Xr.lineWidth=1.5,Xr.strokeStyle="white",Xr.textBaseline="top",Xr.font="bold 36px Open Sans, sans-serif",Xr.fillText(Ds,5,5),Xr.strokeText(Ds,5,5),Vr.debugOverlayTexture.update(zr),Vr.debugOverlayTexture.bind(cs.LINEAR,cs.CLAMP_TO_EDGE)}(Ze,vr);const dr=Xi._tileDebugTextBuffer||Ze.debugBuffer,$r=Xi._tileDebugTextIndexBuffer||Ze.quadTriangleIndexBuffer,Pr=Xi._tileDebugTextSegments||Ze.debugSegments;qi.draw(Qe,ui.TRIANGLES,hn,Dn,Ie.ColorMode.alphaBlended,Ie.CullFaceMode.disabled,Rc(Fi,Ie.Color.transparent,gr),On,dr,$r,Pr,null,null,null,[Xi._globeTileDebugTextBuffer])}function Ho(Ze,Ne,Ge,Qe){Xa(Ze,0,Ne+Ge/2,Ze.transform.width,Ge,Qe)}function Oa(Ze,Ne,Ge,Qe){Xa(Ze,Ne-Ge/2,0,Ge,Ze.transform.height,Qe)}function Xa(Ze,Ne,Ge,Qe,ai,ui){const Si=Ze.context,Mi=Si.gl;Mi.enable(Mi.SCISSOR_TEST),Mi.scissor(Ne*Ie.exported.devicePixelRatio,Ge*Ie.exported.devicePixelRatio,Qe*Ie.exported.devicePixelRatio,ai*Ie.exported.devicePixelRatio),Si.clear({color:ui}),Mi.disable(Mi.SCISSOR_TEST)}const Nl=Ie.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:Oc}=Nl;function Ql(Ze,Ne,Ge,Qe){Ze.emplaceBack(Ne,Ge,Qe)}class Bo{constructor(Ne){this.vertexArray=new Ie.StructArrayLayout3f12,this.indices=new Ie.StructArrayLayout3ui6,Ql(this.vertexArray,-1,-1,1),Ql(this.vertexArray,1,-1,1),Ql(this.vertexArray,-1,1,1),Ql(this.vertexArray,1,1,1),Ql(this.vertexArray,-1,-1,-1),Ql(this.vertexArray,1,-1,-1),Ql(this.vertexArray,-1,1,-1),Ql(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=Ne.createVertexBuffer(this.vertexArray,Oc),this.indexBuffer=Ne.createIndexBuffer(this.indices),this.segment=Ie.SegmentVector.simpleSegment(0,0,36,12)}}function Ju(Ze,Ne,Ge,Qe,ai,ui){const Si=Ze.gl,Mi=Ne.paint.get("sky-atmosphere-color"),Fi=Ne.paint.get("sky-atmosphere-halo-color"),qi=Ne.paint.get("sky-atmosphere-sun-intensity"),Xi=((hn,Dn,In,On,Bn)=>({u_matrix_3f:hn,u_sun_direction:Dn,u_sun_intensity:In,u_color_tint_r:[On.r,On.g,On.b,On.a],u_color_tint_m:[Bn.r,Bn.g,Bn.b,Bn.a],u_luminance:5e-5}))(Ie.fromMat4(Ie.create$1(),Qe),ai,qi,Mi,Fi);Si.framebufferTexture2D(Si.FRAMEBUFFER,Si.COLOR_ATTACHMENT0,Si.TEXTURE_CUBE_MAP_POSITIVE_X+ui,Ne.skyboxTexture,0),Ge.draw(Ze,Si.TRIANGLES,Ie.DepthMode.disabled,Ie.StencilMode.disabled,Ie.ColorMode.unblended,Ie.CullFaceMode.frontCW,Xi,"skyboxCapture",Ne.skyboxGeometry.vertexBuffer,Ne.skyboxGeometry.indexBuffer,Ne.skyboxGeometry.segment)}const yp=Ie.createLayout([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class da{constructor(Ne){const Ge=new Ie.StructArrayLayout5f20;Ge.emplaceBack(-1,1,1,0,0),Ge.emplaceBack(1,1,1,1,0),Ge.emplaceBack(1,-1,1,1,1),Ge.emplaceBack(-1,-1,1,0,1);const Qe=new Ie.StructArrayLayout3ui6;Qe.emplaceBack(0,1,2),Qe.emplaceBack(2,3,0),this.vertexBuffer=Ne.createVertexBuffer(Ge,yp.members),this.indexBuffer=Ne.createIndexBuffer(Qe),this.segments=Ie.SegmentVector.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}
1522const Bh={symbol:function(Ze,Ne,Ge,Qe,ai){if(Ze.renderPass!=="translucent")return;const ui=Ie.StencilMode.disabled,Si=Ze.colorModeForRenderPass();Ge.layout.get("text-variable-anchor")&&function(Mi,Fi,qi,Xi,hn,Dn,In){const On=Fi.transform,Bn=hn==="map",Vn=Dn==="map";for(const pn of Mi){const Pn=Xi.getTile(pn),Jn=Pn.getBucket(qi);if(!Jn||!Jn.text||!Jn.text.segments.get().length)continue;const qn=Ie.evaluateSizeForZoom(Jn.textSizeData,On.zoom),gr=Ma(pn,Jn.getProjection(),On),vr=On.calculatePixelsToTileUnitsMatrix(Pn),dr=rs(gr,Pn.tileID.canonical,Vn,Bn,On,Jn.getProjection(),vr),$r=qi.layout.get("icon-text-fit")!=="none"&&Jn.hasIconData();if(qn){const Pr=Math.pow(2,On.zoom-Pn.tileID.overscaledZ);Ir(Jn,Bn,Vn,In,Ie.symbolSize,On,dr,pn,Pr,qn,$r)}}}(Qe,Ze,Ge,Ne,Ge.layout.get("text-rotation-alignment"),Ge.layout.get("text-pitch-alignment"),ai),Ge.paint.get("icon-opacity").constantOr(1)!==0&&is(Ze,Ne,Ge,Qe,!1,Ge.paint.get("icon-translate"),Ge.paint.get("icon-translate-anchor"),Ge.layout.get("icon-rotation-alignment"),Ge.layout.get("icon-pitch-alignment"),Ge.layout.get("icon-keep-upright"),ui,Si),Ge.paint.get("text-opacity").constantOr(1)!==0&&is(Ze,Ne,Ge,Qe,!0,Ge.paint.get("text-translate"),Ge.paint.get("text-translate-anchor"),Ge.layout.get("text-rotation-alignment"),Ge.layout.get("text-pitch-alignment"),Ge.layout.get("text-keep-upright"),ui,Si),Ne.map.showCollisionBoxes&&(Vd(Ze,Ne,Ge,Qe,Ge.paint.get("text-translate"),Ge.paint.get("text-translate-anchor"),!0),Vd(Ze,Ne,Ge,Qe,Ge.paint.get("icon-translate"),Ge.paint.get("icon-translate-anchor"),!1))},circle:function(Ze,Ne,Ge,Qe){if(Ze.renderPass!=="translucent")return;const ai=Ge.paint.get("circle-opacity"),ui=Ge.paint.get("circle-stroke-width"),Si=Ge.paint.get("circle-stroke-opacity"),Mi=Ge.layout.get("circle-sort-key").constantOr(1)!==void 0;if(ai.constantOr(1)===0&&(ui.constantOr(1)===0||Si.constantOr(1)===0))return;const Fi=Ze.context,qi=Fi.gl,Xi=Ze.transform,hn=Ze.depthModeForSublayer(0,Ie.DepthMode.ReadOnly),Dn=Ie.StencilMode.disabled,In=Ze.colorModeForRenderPass(),On=Xi.projection.name==="globe",Bn=[Ie.mercatorXfromLng(Xi.center.lng),Ie.mercatorYfromLat(Xi.center.lat)],Vn=[];for(let Pn=0;Pn<Qe.length;Pn++){const Jn=Qe[Pn],qn=Ne.getTile(Jn),gr=qn.getBucket(Ge);if(!gr||gr.projection.name!==Xi.projection.name)continue;const vr=gr.programConfigurations.get(Ge.id),dr=xa(Ge);On&&dr.push("PROJECTION_GLOBE_VIEW");const $r=Ze.useProgram("circle",vr,dr),Pr=gr.layoutVertexBuffer,Vr=gr.globeExtVertexBuffer,Ds=gr.indexBuffer,zr=Xi.projection.createInversionMatrix(Xi,Jn.canonical),cs={programConfiguration:vr,program:$r,layoutVertexBuffer:Pr,globeExtVertexBuffer:Vr,indexBuffer:Ds,uniformValues:lh(Ze,Jn,qn,zr,Bn,Ge),tile:qn};if(Mi){const Xr=gr.segments.get();for(const ss of Xr)Vn.push({segments:new Ie.SegmentVector([ss]),sortKey:ss.sortKey,state:cs})}else Vn.push({segments:gr.segments,sortKey:0,state:cs})}Mi&&Vn.sort((Pn,Jn)=>Pn.sortKey-Jn.sortKey);const pn={useDepthForOcclusion:!On};for(const Pn of Vn){const{programConfiguration:Jn,program:qn,layoutVertexBuffer:gr,globeExtVertexBuffer:vr,indexBuffer:dr,uniformValues:$r,tile:Pr}=Pn.state,Vr=Pn.segments;Ze.terrain&&Ze.terrain.setupElevationDraw(Pr,qn,pn),Ze.prepareDrawProgram(Fi,qn,Pr.tileID.toUnwrapped()),qn.draw(Fi,qi.TRIANGLES,hn,Dn,In,Ie.CullFaceMode.disabled,$r,Ge.id,gr,dr,Vr,Ge.paint,Xi.zoom,Jn,[vr])}},heatmap:function(Ze,Ne,Ge,Qe){if(Ge.paint.get("heatmap-opacity")!==0)if(Ze.renderPass==="offscreen"){const ai=Ze.context,ui=ai.gl,Si=Ie.StencilMode.disabled,Mi=new Ie.ColorMode([ui.ONE,ui.ONE],Ie.Color.transparent,[!0,!0,!0,!0]);(function(In,On,Bn,Vn){const pn=In.gl,Pn=On.width*Vn,Jn=On.height*Vn;In.activeTexture.set(pn.TEXTURE1),In.viewport.set([0,0,Pn,Jn]);let qn=Bn.heatmapFbo;if(!qn||qn&&(qn.width!==Pn||qn.height!==Jn)){qn&&qn.destroy();const gr=pn.createTexture();pn.bindTexture(pn.TEXTURE_2D,gr),pn.texParameteri(pn.TEXTURE_2D,pn.TEXTURE_WRAP_S,pn.CLAMP_TO_EDGE),pn.texParameteri(pn.TEXTURE_2D,pn.TEXTURE_WRAP_T,pn.CLAMP_TO_EDGE),pn.texParameteri(pn.TEXTURE_2D,pn.TEXTURE_MIN_FILTER,pn.LINEAR),pn.texParameteri(pn.TEXTURE_2D,pn.TEXTURE_MAG_FILTER,pn.LINEAR),qn=Bn.heatmapFbo=In.createFramebuffer(Pn,Jn,!1),function(vr,dr,$r,Pr,Vr,Ds){const zr=vr.gl;zr.texImage2D(zr.TEXTURE_2D,0,vr.isWebGL2&&vr.extRenderToTextureHalfFloat?zr.RGBA16F:zr.RGBA,Vr,Ds,0,zr.RGBA,vr.extRenderToTextureHalfFloat?vr.isWebGL2?zr.HALF_FLOAT:vr.extTextureHalfFloat.HALF_FLOAT_OES:zr.UNSIGNED_BYTE,null),Pr.colorAttachment.set($r)}(In,0,gr,qn,Pn,Jn)}else pn.bindTexture(pn.TEXTURE_2D,qn.colorAttachment.get()),In.bindFramebuffer.set(qn.framebuffer)})(ai,Ze,Ge,Ze.transform.projection.name==="globe"?.5:.25),ai.clear({color:Ie.Color.transparent});const Fi=Ze.transform,qi=Fi.projection.name==="globe",Xi=qi?["PROJECTION_GLOBE_VIEW"]:null,hn=qi?Ie.CullFaceMode.frontCCW:Ie.CullFaceMode.disabled,Dn=[Ie.mercatorXfromLng(Fi.center.lng),Ie.mercatorYfromLat(Fi.center.lat)];for(let In=0;In<Qe.length;In++){const On=Qe[In];if(Ne.hasRenderableParent(On))continue;const Bn=Ne.getTile(On),Vn=Bn.getBucket(Ge);if(!Vn||Vn.projection.name!==Fi.projection.name)continue;const pn=Vn.programConfigurations.get(Ge.id),Pn=Ze.useProgram("heatmap",pn,Xi),{zoom:Jn}=Ze.transform;Ze.terrain&&Ze.terrain.setupElevationDraw(Bn,Pn),Ze.prepareDrawProgram(ai,Pn,On.toUnwrapped());const qn=Fi.projection.createInversionMatrix(Fi,On.canonical);Pn.draw(ai,ui.TRIANGLES,Ie.DepthMode.disabled,Si,Mi,hn,Tf(Ze,On,Bn,qn,Dn,Jn,Ge.paint.get("heatmap-intensity")),Ge.id,Vn.layoutVertexBuffer,Vn.indexBuffer,Vn.segments,Ge.paint,Ze.transform.zoom,pn,qi?[Vn.globeExtVertexBuffer]:null)}ai.viewport.set([0,0,Ze.width,Ze.height])}else Ze.renderPass==="translucent"&&(Ze.context.setColorMode(Ze.colorModeForRenderPass()),function(ai,ui){const Si=ai.context,Mi=Si.gl,Fi=ui.heatmapFbo;if(!Fi)return;Si.activeTexture.set(Mi.TEXTURE0),Mi.bindTexture(Mi.TEXTURE_2D,Fi.colorAttachment.get()),Si.activeTexture.set(Mi.TEXTURE1);let qi=ui.colorRampTexture;qi||(qi=ui.colorRampTexture=new Ie.Texture(Si,ui.colorRamp,Mi.RGBA)),qi.bind(Mi.LINEAR,Mi.CLAMP_TO_EDGE),ai.useProgram("heatmapTexture").draw(Si,Mi.TRIANGLES,Ie.DepthMode.disabled,Ie.StencilMode.disabled,ai.colorModeForRenderPass(),Ie.CullFaceMode.disabled,((Xi,hn,Dn,In)=>({u_image:0,u_color_ramp:1,u_opacity:hn.paint.get("heatmap-opacity")}))(0,ui),ui.id,ai.viewportBuffer,ai.quadTriangleIndexBuffer,ai.viewportSegments,ui.paint,ai.transform.zoom)}(Ze,Ge))},line:function(Ze,Ne,Ge,Qe){if(Ze.renderPass!=="translucent")return;const ai=Ge.paint.get("line-opacity"),ui=Ge.paint.get("line-width");if(ai.constantOr(1)===0||ui.constantOr(1)===0)return;const Si=Ze.depthModeForSublayer(0,Ie.DepthMode.ReadOnly),Mi=Ze.colorModeForRenderPass(),Fi=Ze.terrain&&Ze.terrain.renderingToTexture?1:Ie.exp
1522orted.devicePixelRatio,qi=Ge.paint.get("line-dasharray"),Xi=qi.constantOr(1),hn=Ge.layout.get("line-cap"),Dn=Ge.paint.get("line-pattern"),In=Dn.constantOr(1),On=Ge.paint.get("line-gradient"),Bn=In?"linePattern":"line",Vn=Ze.context,pn=Vn.gl,Pn=(qn=>{const gr=[];Yc(qn)&&gr.push("RENDER_LINE_DASH"),qn.paint.get("line-gradient")&&gr.push("RENDER_LINE_GRADIENT");const vr=qn.paint.get("line-trim-offset");vr[0]===0&&vr[1]===0||gr.push("RENDER_LINE_TRIM_OFFSET");const dr=qn.paint.get("line-pattern").constantOr(1),$r=qn.paint.get("line-opacity").constantOr(1)!==1;return!dr&&$r&&gr.push("RENDER_LINE_ALPHA_DISCARD"),gr})(Ge);let Jn=Pn.includes("RENDER_LINE_ALPHA_DISCARD");Ze.terrain&&Ze.terrain.clipOrMaskOverlapStencilType()&&(Jn=!1);for(const qn of Qe){const gr=Ne.getTile(qn);if(In&&!gr.patternsLoaded())continue;const vr=gr.getBucket(Ge);if(!vr)continue;Ze.prepareDrawTile();const dr=vr.programConfigurations.get(Ge.id),$r=Ze.useProgram(Bn,dr,Pn),Pr=Dn.constantOr(null);if(Pr&&gr.imageAtlas){const ns=gr.imageAtlas.patternPositions[Pr.toString()];ns&&dr.setConstantPatternPositions(ns)}const Vr=qi.constantOr(null),Ds=hn.constantOr(null);if(!In&&Vr&&Ds&&gr.lineAtlas){const ns=gr.lineAtlas.getDash(Vr,Ds);ns&&dr.setConstantPatternPositions(ns)}let[zr,cs]=Ge.paint.get("line-trim-offset");(Ds==="round"||Ds==="square")&&zr!==cs&&(zr===0&&(zr-=1),cs===1&&(cs+=1));const Xr=Ze.terrain?qn.projMatrix:null,ss=In?zd(Ze,gr,Ge,Xr,Fi):Ef(Ze,gr,Ge,Xr,vr.lineClipsArray.length,Fi,[zr,cs]);if(On){const ns=vr.gradients[Ge.id];let Ss=ns.texture;if(Ge.gradientVersion!==ns.version){let ds=256;if(Ge.stepInterpolant){const Is=Ne.getSource().maxzoom,ho=qn.canonical.z===Is?Math.ceil(1<<Ze.transform.maxZoom-qn.canonical.z):1;ds=Ie.clamp(Ie.nextPowerOfTwo(vr.maxLineLength/Ie.EXTENT*1024*ho),256,Vn.maxTextureSize)}ns.gradient=Ie.renderColorRamp({expression:Ge.gradientExpression(),evaluationKey:"lineProgress",resolution:ds,image:ns.gradient||void 0,clips:vr.lineClipsArray}),ns.texture?ns.texture.update(ns.gradient):ns.texture=new Ie.Texture(Vn,ns.gradient,pn.RGBA),ns.version=Ge.gradientVersion,Ss=ns.texture}Vn.activeTexture.set(pn.TEXTURE1),Ss.bind(Ge.stepInterpolant?pn.NEAREST:pn.LINEAR,pn.CLAMP_TO_EDGE)}Xi&&(Vn.activeTexture.set(pn.TEXTURE0),gr.lineAtlasTexture.bind(pn.LINEAR,pn.REPEAT),dr.updatePaintBuffers()),In&&(Vn.activeTexture.set(pn.TEXTURE0),gr.imageAtlasTexture.bind(pn.LINEAR,pn.CLAMP_TO_EDGE),dr.updatePaintBuffers()),Ze.prepareDrawProgram(Vn,$r,qn.toUnwrapped());const Lr=ns=>{$r.draw(Vn,pn.TRIANGLES,Si,ns,Mi,Ie.CullFaceMode.disabled,ss,Ge.id,vr.layoutVertexBuffer,vr.indexBuffer,vr.segments,Ge.paint,Ze.transform.zoom,dr,[vr.layoutVertexBuffer2])};if(Jn){const ns=Ze.stencilModeForClipping(qn).ref;ns===0&&Ze.terrain&&Vn.clear({stencil:0});const Ss={func:pn.EQUAL,mask:255};ss.u_alpha_discard_threshold=.8,Lr(new Ie.StencilMode(Ss,ns,255,pn.KEEP,pn.KEEP,pn.INVERT)),ss.u_alpha_discard_threshold=0,Lr(new Ie.StencilMode(Ss,ns,255,pn.KEEP,pn.KEEP,pn.KEEP))}else Lr(Ze.stencilModeForClipping(qn))}Jn&&(Ze.resetStencilClippingMasks(),Ze.terrain&&Vn.clear({stencil:0}))},fill:function(Ze,Ne,Ge,Qe){const ai=Ge.paint.get("fill-color"),ui=Ge.paint.get("fill-opacity");if(ui.constantOr(1)===0)return;const Si=Ze.colorModeForRenderPass(),Mi=Ge.paint.get("fill-pattern"),Fi=Ze.opaquePassEnabledForLayer()&&!Mi.constantOr(1)&&ai.constantOr(Ie.Color.transparent).a===1&&ui.constantOr(0)===1?"opaque":"translucent";if(Ze.renderPass===Fi){const qi=Ze.depthModeForSublayer(1,Ze.renderPass==="opaque"?Ie.DepthMode.ReadWrite:Ie.DepthMode.ReadOnly);Ar(Ze,Ne,Ge,Qe,qi,Si,!1)}if(Ze.renderPass==="translucent"&&Ge.paint.get("fill-antialias")){const qi=Ze.depthModeForSublayer(Ge.getPaintProperty("fill-outline-color")?2:0,Ie.DepthMode.ReadOnly);Ar(Ze,Ne,Ge,Qe,qi,Si,!0)}},"fill-extrusion":function(Ze,Ne,Ge,Qe){const ai=Ge.paint.get("fill-extrusion-opacity");if(ai!==0&&Ze.renderPass==="translucent"){const ui=new Ie.DepthMode(Ze.context.gl.LEQUAL,Ie.DepthMode.ReadWrite,Ze.depthRangeFor3D);if(ai!==1||Ge.paint.get("fill-extrusion-pattern").constantOr(1))Tr(Ze,Ne,Ge,Qe,ui,Ie.StencilMode.disabled,Ie.ColorMode.disabled),Tr(Ze,Ne,Ge,Qe,ui,Ze.stencilModeFor3D(),Ze.colorModeForRenderPass()),Ze.resetStencilClippingMasks();else{const Si=Ze.colorModeForRenderPass();Tr(Ze,Ne,Ge,Qe,ui,Ie.StencilMode.disabled,Si)}}},hillshade:function(Ze,Ne,Ge,Qe){if(Ze.renderPass!=="offscreen"&&Ze.renderPass!=="translucent")return;const ai=Ze.context,ui=Ze.depthModeForSublayer(0,Ie.DepthMode.ReadOnly),Si=Ze.colorModeForRenderPass(),Mi=Ze.terrain&&Ze.terrain.renderingToTexture,[Fi,qi]=Ze.renderPass!=="translucent"||Mi?[{},Qe]:Ze.stencilConfigForOverlap(Qe);for(const Xi of qi){const hn=Ne.getTile(Xi);if(hn.needsHillshadePrepare&&Ze.renderPass==="offscreen")Ns(Ze,hn,Ge,ui,Ie.StencilMode.disabled,Si);else if(Ze.renderPass==="translucent"){const Dn=Mi&&Ze.terrain?Ze.terrain.stencilModeForRTTOverlap(Xi):Fi[Xi.overscaledZ];ps(Ze,Xi,hn,Ge,ui,Dn,Si)}}ai.viewport.set([0,0,Ze.width,Ze.height]),Ze.resetStencilClippingMasks()},raster:function(Ze,Ne,Ge,Qe,ai,ui){if(Ze.renderPass!=="translucent"||Ge.paint.get("raster-opacity")===0||!Qe.length)return;const Si=Ze.context,Mi=Si.gl,Fi=Ne.getSource(),qi=Ze.useProgram("raster"),Xi=Ze.colorModeForRenderPass(),hn=Ze.terrain&&Ze.terrain.renderingToTexture,[Dn,In]=Fi instanceof Es||hn?[{},Qe]:Ze.stencilConfigForOverlap(Qe),On=In[In.length-1].overscaledZ,Bn=!Ze.options.moving;for(const Vn of In){const pn=hn?Ie.DepthMode.disabled:Ze.depthModeForSublayer(Vn.overscaledZ-On,Ge.paint.get("raster-opacity")===1?Ie.DepthMode.ReadWrite:Ie.DepthMode.ReadOnly,Mi.LESS),Pn=Vn.toUnwrapped(),Jn=Ne.getTile(Vn);if(hn&&(!Jn||!Jn.hasData()))continue;const qn=hn?Vn.projMatrix:Ze.transform.calculateProjMatrix(Pn,Bn),gr=Ze.terrain&&hn?Ze.terrain.stencilModeForRTTOverlap(Vn):Dn[Vn.overscaledZ],vr=ui?0:Ge.paint.get("raster-fade-duration");Jn.registerFadeDuration(vr);const dr=Ne.findLoadedParent(Vn,0),$r=zo(Jn,dr,Ne,Ze.transform,vr);let Pr,Vr;Ze.terrain&&Ze.terrain.prepareDrawTile();const Ds=Ge.paint.get("raster-resampling")==="nearest"?Mi.NEAREST:Mi.LINEAR;Si.activeTexture.set(Mi.TEXTURE0),Jn.texture.bind(Ds,Mi.CLAMP_TO_EDGE),Si.activeTexture.set(Mi.TEXTURE1),dr?(dr.texture.bind(Ds,Mi.CLAMP_TO_EDGE),Pr=Math.pow(2,dr.tileID.overscaledZ-Jn.tileID.overscaledZ
1522),Vr=[Jn.tileID.canonical.x*Pr%1,Jn.tileID.canonical.y*Pr%1]):Jn.texture.bind(Ds,Mi.CLAMP_TO_EDGE),Jn.texture.useMipmap&&Si.extTextureFilterAnisotropic&&Ze.transform.pitch>20&&Mi.texParameterf(Mi.TEXTURE_2D,Si.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Si.extTextureFilterAnisotropicMax);const zr=zh(qn,Vr||[0,0],Pr||1,$r,Ge,Fi instanceof Es?Fi.perspectiveTransform:[0,0]);if(Ze.prepareDrawProgram(Si,qi,Pn),Fi instanceof Es)Fi.boundsBuffer&&Fi.boundsSegments&&qi.draw(Si,Mi.TRIANGLES,pn,Ie.StencilMode.disabled,Xi,Ie.CullFaceMode.disabled,zr,Ge.id,Fi.boundsBuffer,Ze.quadTriangleIndexBuffer,Fi.boundsSegments);else{const{tileBoundsBuffer:cs,tileBoundsIndexBuffer:Xr,tileBoundsSegments:ss}=Ze.getTileBoundsBuffers(Jn);qi.draw(Si,Mi.TRIANGLES,pn,gr,Xi,Ie.CullFaceMode.disabled,zr,Ge.id,cs,Xr,ss)}}Ze.resetStencilClippingMasks()},background:function(Ze,Ne,Ge,Qe){const ai=Ge.paint.get("background-color"),ui=Ge.paint.get("background-opacity");if(ui===0)return;const Si=Ze.context,Mi=Si.gl,Fi=Ze.transform,qi=Fi.tileSize,Xi=Ge.paint.get("background-pattern");if(Ze.isPatternMissing(Xi))return;const hn=!Xi&&ai.a===1&&ui===1&&Ze.opaquePassEnabledForLayer()?"opaque":"translucent";if(Ze.renderPass!==hn)return;const Dn=Ie.StencilMode.disabled,In=Ze.depthModeForSublayer(0,hn==="opaque"?Ie.DepthMode.ReadWrite:Ie.DepthMode.ReadOnly),On=Ze.colorModeForRenderPass(),Bn=Ze.useProgram(Xi?"backgroundPattern":"background");let Vn,pn=Qe;pn||(Vn=Ze.getBackgroundTiles(),pn=Object.values(Vn).map(Pn=>Pn.tileID)),Xi&&(Si.activeTexture.set(Mi.TEXTURE0),Ze.imageManager.bind(Ze.context));for(const Pn of pn){const Jn=Pn.toUnwrapped(),qn=Qe?Pn.projMatrix:Ze.transform.calculateProjMatrix(Jn);Ze.prepareDrawTile();const gr=Ne?Ne.getTile(Pn):Vn?Vn[Pn.key]:new Ie.Tile(Pn,qi,Fi.zoom,Ze),vr=Xi?Ku(qn,ui,Ze,Xi,{tileID:Pn,tileSize:qi}):Nd(qn,ui,ai);Ze.prepareDrawProgram(Si,Bn,Jn);const{tileBoundsBuffer:dr,tileBoundsIndexBuffer:$r,tileBoundsSegments:Pr}=Ze.getTileBoundsBuffers(gr);Bn.draw(Si,Mi.TRIANGLES,In,Dn,On,Ie.CullFaceMode.disabled,vr,Ge.id,dr,$r,Pr)}},sky:function(Ze,Ne,Ge){const Qe=Ze.transform,ai=Qe.projection.name==="mercator"||Qe.projection.name==="globe"?1:Ie.smoothstep(7,8,Qe.zoom),ui=Ge.paint.get("sky-opacity")*ai;if(ui===0)return;const Si=Ze.context,Mi=Ge.paint.get("sky-type"),Fi=new Ie.DepthMode(Si.gl.LEQUAL,Ie.DepthMode.ReadOnly,[0,1]),qi=Ze.frameCounter/1e3%1;Mi==="atmosphere"?Ze.renderPass==="offscreen"?Ge.needsSkyboxCapture(Ze)&&(function(Xi,hn,Dn,In){const On=Xi.context,Bn=On.gl;let Vn=hn.skyboxFbo;if(!Vn){Vn=hn.skyboxFbo=On.createFramebuffer(32,32,!1),hn.skyboxGeometry=new Bo(On),hn.skyboxTexture=On.gl.createTexture(),Bn.bindTexture(Bn.TEXTURE_CUBE_MAP,hn.skyboxTexture),Bn.texParameteri(Bn.TEXTURE_CUBE_MAP,Bn.TEXTURE_WRAP_S,Bn.CLAMP_TO_EDGE),Bn.texParameteri(Bn.TEXTURE_CUBE_MAP,Bn.TEXTURE_WRAP_T,Bn.CLAMP_TO_EDGE),Bn.texParameteri(Bn.TEXTURE_CUBE_MAP,Bn.TEXTURE_MIN_FILTER,Bn.LINEAR),Bn.texParameteri(Bn.TEXTURE_CUBE_MAP,Bn.TEXTURE_MAG_FILTER,Bn.LINEAR);for(let qn=0;qn<6;++qn)Bn.texImage2D(Bn.TEXTURE_CUBE_MAP_POSITIVE_X+qn,0,Bn.RGBA,32,32,0,Bn.RGBA,Bn.UNSIGNED_BYTE,null)}On.bindFramebuffer.set(Vn.framebuffer),On.viewport.set([0,0,32,32]);const pn=hn.getCenter(Xi,!0),Pn=Xi.useProgram("skyboxCapture"),Jn=new Float64Array(16);Ie.identity(Jn),Ie.rotateY(Jn,Jn,.5*-Math.PI),Ju(On,hn,Pn,Jn,pn,0),Ie.identity(Jn),Ie.rotateY(Jn,Jn,.5*Math.PI),Ju(On,hn,Pn,Jn,pn,1),Ie.identity(Jn),Ie.rotateX(Jn,Jn,.5*-Math.PI),Ju(On,hn,Pn,Jn,pn,2),Ie.identity(Jn),Ie.rotateX(Jn,Jn,.5*Math.PI),Ju(On,hn,Pn,Jn,pn,3),Ie.identity(Jn),Ju(On,hn,Pn,Jn,pn,4),Ie.identity(Jn),Ie.rotateY(Jn,Jn,Math.PI),Ju(On,hn,Pn,Jn,pn,5),On.viewport.set([0,0,Xi.width,Xi.height])}(Ze,Ge),Ge.markSkyboxValid(Ze)):Ze.renderPass==="sky"&&function(Xi,hn,Dn,In,On){const Bn=Xi.context,Vn=Bn.gl,pn=Xi.transform,Pn=Xi.useProgram("skybox");Bn.activeTexture.set(Vn.TEXTURE0),Vn.bindTexture(Vn.TEXTURE_CUBE_MAP,hn.skyboxTexture);const Jn=((qn,gr,vr,dr,$r)=>({u_matrix:qn,u_sun_direction:gr,u_cubemap:0,u_opacity:dr,u_temporal_offset:$r}))(pn.skyboxMatrix,hn.getCenter(Xi,!1),0,In,On);Xi.prepareDrawProgram(Bn,Pn),Pn.draw(Bn,Vn.TRIANGLES,Dn,Ie.StencilMode.disabled,Xi.colorModeForRenderPass(),Ie.CullFaceMode.backCW,Jn,"skybox",hn.skyboxGeometry.vertexBuffer,hn.skyboxGeometry.indexBuffer,hn.skyboxGeometry.segment)}(Ze,Ge,Fi,ui,qi):Mi==="gradient"&&Ze.renderPass==="sky"&&function(Xi,hn,Dn,In,On){const Bn=Xi.context,Vn=Bn.gl,pn=Xi.transform,Pn=Xi.useProgram("skyboxGradient");hn.skyboxGeometry||(hn.skyboxGeometry=new Bo(Bn)),Bn.activeTexture.set(Vn.TEXTURE0);let Jn=hn.colorRampTexture;Jn||(Jn=hn.colorRampTexture=new Ie.Texture(Bn,hn.colorRamp,Vn.RGBA)),Jn.bind(Vn.LINEAR,Vn.CLAMP_TO_EDGE);const qn=((gr,vr,dr,$r,Pr)=>({u_matrix:gr,u_color_ramp:0,u_center_direction:vr,u_radius:Ie.degToRad(dr),u_opacity:$r,u_temporal_offset:Pr}))(pn.skyboxMatrix,hn.getCenter(Xi,!1),hn.paint.get("sky-gradient-radius"),In,On);Xi.prepareDrawProgram(Bn,Pn),Pn.draw(Bn,Vn.TRIANGLES,Dn,Ie.StencilMode.disabled,Xi.colorModeForRenderPass(),Ie.CullFaceMode.backCW,qn,"skyboxGradient",hn.skyboxGeometry.vertexBuffer,hn.skyboxGeometry.indexBuffer,hn.skyboxGeometry.segment)}(Ze,Ge,Fi,ui,qi)},debug:function(Ze,Ne,Ge){for(let Qe=0;Qe<Ge.length;Qe++)To(Ze,Ne,Ge[Qe])},custom:function(Ze,Ne,Ge,Qe){const ai=Ze.context,ui=Ge.implementation;if(!Ze.transform.projection.unsupportedLayers||!Ze.transform.projection.unsupportedLayers.includes("custom")||Ze.terrain&&(Ze.terrain.renderingToTexture||Ze.renderPass==="offscreen")&&Ge.isLayerDraped()){if(Ze.renderPass==="offscreen"){const Si=ui.prerender;if(Si){if(Ze.setCustomLayerDefaults(),ai.setColorMode(Ze.colorModeForRenderPass()),Ze.transform.projection.name==="globe"){const Mi=Ze.transform.pointMerc;Si.call(ui,ai.gl,Ze.transform.customLayerMatrix(),Ze.transform.getProjection(),Ze.transform.globeToMercatorMatrix(),Ie.globeToMercatorTransition(Ze.transform.zoom),[Mi.x,Mi.y],Ze.transform.pixelsPerMeterRatio)}else Si.call(ui,ai.gl,Ze.transform.customLayerMatrix());ai.setDirty(),Ze.setBaseState()}}else if(Ze.renderPass==="translucent"){if(Ze.terrain&&Ze.terrain.renderingToTexture){const Mi=ui.renderToTile;if(Mi){const Fi=Qe[0].canonical,qi=new Ie.MercatorCoordinate(Fi.x+Qe[0].wrap*(1<<Fi.z),Fi.y,Fi.z);ai.setDepthMode(Ie.DepthMode.disabled),ai.setStencilMode(Ie.StencilMode.disabled),ai.setColorMode(Ze.colorModeForRenderPass()),Ze.setCustomLayerDefaults(),Mi.call(ui,ai.gl,qi),ai.setDirty(),Ze.setBaseState()}return}Ze.setCustomLayerDefaults(),ai.setColorMode(Ze.colorModeForRenderPass()),ai.setStencilMode(Ie.StencilMode.disabled);const Si=ui.renderingMode==="3d"?new Ie.DepthMode(Ze.context.gl.LEQUAL,Ie.DepthMode.ReadWrite,Ze.depthRangeFor3D):Ze.depthModeForSublayer(0,Ie.DepthMode.ReadOnly);if(ai.setDepthMode(Si),Ze.transform.projection.name==="globe"){const Mi=Ze.transform.pointMerc;ui.render(ai.gl,Ze.transform.customLayerMatrix(),Ze.transform.getProjection(),Ze.transform.globeToMercatorMatrix(),Ie.globeToMercatorTransition(Ze.transform.zoom),[Mi.x,Mi.y],Ze.transform.pixelsPerMeterRatio)}else ui.render(ai.gl,Ze.transform.customLayerMatrix());ai.setDirty(),Ze.setBaseState(),ai.bindFramebuffer.set(null)}}else Ie.warnOnce("Custom layers are not yet supported with this projection. Use mercator or globe to enable usage of custom layers.")}};class vp{constructor(Ne,Ge,Qe=!1){this.context=new bs(Ne,Qe),this.transform=Ge,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.setup(),this.numSublayers=Ie.SourceCache.maxUnderzooming+Ie.SourceCache.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.deferredRenderGpuTimeQueries=[],this.gpuTimers={},this.frameCounter=0,this._backgroundTiles={}}updateTerrain(Ne,Ge){const Qe=!!Ne&&!!Ne.terrain&&this.transform.projection.supportsTerrain;if(!(Qe||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new Ic(this,Ne));const ai=this._terrain;this.transform.elevation=Qe?ai:null,ai.update(Ne,this.transform,Ge)}_updateFog(Ne){const Ge=Ne.fog;if(!Ge||this.transform.projection.name==="globe"||Ge.getOpacity(this.transform.pitch)<1||Ge.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);const[Qe,ai]=Ge.getFovAdjustedRange(this.transform._fov);if(Qe>ai)return void(this.transform.fogCullDistSq=null);const ui=Qe+.78*(ai-Qe);this.transform.fogCullDistSq=ui*ui}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}resize(Ne,Ge){if(this.width=Ne*Ie.exported.devicePixelRatio,this.height=Ge*Ie.exp
vendor: 4,402 bytes, line 1522
1522orted.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const Qe of this.style.order)this.style._layers[Qe].resize()}setup(){const Ne=this.context,Ge=new Ie.StructArrayLayout2i4;Ge.emplaceBack(0,0),Ge.emplaceBack(Ie.EXTENT,0),Ge.emplaceBack(0,Ie.EXTENT),Ge.emplaceBack(Ie.EXTENT,Ie.EXTENT),this.tileExtentBuffer=Ne.createVertexBuffer(Ge,Ie.posAttributes.members),this.tileExtentSegments=Ie.SegmentVector.simpleSegment(0,0,4,2);const Qe=new Ie.StructArrayLayout2i4;Qe.emplaceBack(0,0),Qe.emplaceBack(Ie.EXTENT,0),Qe.emplaceBack(0,Ie.EXTENT),Qe.emplaceBack(Ie.EXTENT,Ie.EXTENT),this.debugBuffer=Ne.createVertexBuffer(Qe,Ie.posAttributes.members),this.debugSegments=Ie.SegmentVector.simpleSegment(0,0,4,5);const ai=new Ie.StructArrayLayout2i4;ai.emplaceBack(-1,-1),ai.emplaceBack(1,-1),ai.emplaceBack(-1,1),ai.emplaceBack(1,1),this.viewportBuffer=Ne.createVertexBuffer(ai,Ie.posAttributes.members),this.viewportSegments=Ie.SegmentVector.simpleSegment(0,0,4,2);const ui=new Ie.StructArrayLayout4i8;ui.emplaceBack(0,0,0,0),ui.emplaceBack(Ie.EXTENT,0,Ie.EXTENT,0),ui.emplaceBack(0,Ie.EXTENT,0,Ie.EXTENT),ui.emplaceBack(Ie.EXTENT,Ie.EXTENT,Ie.EXTENT,Ie.EXTENT),this.mercatorBoundsBuffer=Ne.createVertexBuffer(ui,Ie.boundsAttributes.members),this.mercatorBoundsSegments=Ie.SegmentVector.simpleSegment(0,0,4,2);const Si=new Ie.StructArrayLayout3ui6;Si.emplaceBack(0,1,2),Si.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=Ne.createIndexBuffer(Si);const Mi=new Ie.StructArrayLayout1ui2;for(const qi of[0,1,3,2,0])Mi.emplaceBack(qi);this.debugIndexBuffer=Ne.createIndexBuffer(Mi),this.emptyTexture=new Ie.Texture(Ne,new Ie.RGBAImage({width:1,height:1},Uint8Array.of(0,0,0,0)),Ne.gl.RGBA),this.identityMat=Ie.create();const Fi=this.context.gl;this.stencilClearMode=new Ie.StencilMode({func:Fi.ALWAYS,mask:0},0,255,Fi.ZERO,Fi.ZERO,Fi.ZERO),this.loadTimeStamps.push(Ie.window.performance.now()),this.atmosphereBuffer=new da(this.context)}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(Ne){return Ne._makeTileBoundsBuffers(this.context,this.transform.projection),Ne._tileBoundsBuffer?{tileBoundsBuffer:Ne._tileBoundsBuffer,tileBoundsIndexBuffer:Ne._tileBoundsIndexBuffer,tileBoundsSegments:Ne._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const Ne=this.context,Ge=Ne.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.useProgram("clippingMask").draw(Ne,Ge.TRIANGLES,Ie.DepthMode.disabled,this.stencilClearMode,Ie.ColorMode.disabled,Ie.CullFaceMode.disabled,Xc(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(Ne,Ge,Qe){if(!Ge||this.currentStencilSource===Ge.id||!Ne.isTileClipped()||!Qe||Qe.length===0)return;if(this._tileClippingMaskIDs&&!this.terrain){let Mi=!1;for(const Fi of Qe)if(this._tileClippingMaskIDs[Fi.key]===void 0){Mi=!0;break}if(!Mi)return}this.currentStencilSource=Ge.id;const ai=this.context,ui=ai.gl;this.nextStencilID+Qe.length>256&&this.clearStencil(),ai.setColorMode(Ie.ColorMode.disabled),ai.setDepthMode(Ie.DepthMode.disabled);const Si=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const Mi of Qe){const Fi=Ge.getTile(Mi),qi=this._tileClippingMaskIDs[Mi.key]=this.nextStencilID++,{tileBoundsBuffer:Xi,tileBoundsIndexBuffer:hn,tileBoundsSegments:Dn}=this.getTileBoundsBuffers(Fi);Si.draw(ai,ui.TRIANGLES,Ie.DepthMode.disabled,new Ie.StencilMode({func:ui.ALWAYS,mask:0},qi,255,ui.KEEP,ui.KEEP,ui.REPLACE),Ie.ColorMode.disabled,Ie.CullFaceMode.disabled,Xc(Mi.projMatrix),"$clipping",Xi,hn,Dn)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const Ne=this.nextStencilID++,Ge=this.context.gl;return new Ie.StencilMode({func:Ge.NOTEQUAL,mask:255},Ne,255,Ge.KEEP,Ge.KEEP,Ge.REPLACE)}stencilModeForClipping(Ne){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(Ne);const Ge=this.context.gl;return new Ie.StencilMode({func:Ge.EQUAL,mask:255},this._tileClippingMaskIDs[Ne.key],0,Ge.KEEP,Ge.KEEP,Ge.REPLACE)}stencilConfigForOverlap(Ne){const Ge=this.context.gl,Qe=Ne.sort((Si,Mi)=>
1522Mi.overscaledZ-Si.overscaledZ),ai=Qe[Qe.length-1].overscaledZ,ui=Qe[0].overscaledZ-ai+1;if(ui>1){this.currentStencilSource=void 0,this.nextStencilID+ui>256&&this.clearStencil();const Si={};for(let Mi=0;Mi<ui;Mi++)Si[Mi+ai]=new Ie.StencilMode({func:Ge.GEQUAL,mask:255},Mi+this.nextStencilID,255,Ge.KEEP,Ge.KEEP,Ge.REPLACE);return this.nextStencilID+=ui,[Si,Qe]}return[{[ai]:Ie.StencilMode.disabled},Qe]}colorModeForRenderPass(){const Ne=this.context.gl;return this._showOverdrawInspector?new Ie.ColorMode([Ne.CONSTANT_COLOR,Ne.ONE],new Ie.Color(.125,.125,.125,0),[!0,!0,!0,!0]):this.renderPass==="opaque"?Ie.ColorMode.unblended:Ie.ColorMode.alphaBlended}depthModeForSublayer(Ne,Ge,Qe){if(!this.opaquePassEnabledForLayer())return Ie.DepthMode.disabled;const ai=1-((1+this.currentLayer)*this.numSublayers+Ne)*this.depthEpsilon;return new Ie.DepthMode(Qe||this.context.gl.LEQUAL,Ge,[ai,ai])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(Ne,Ge){this.style=Ne,this.options=Ge,this.imageManager=Ne.imageManager,this.glyphManager=Ne.glyphManager,this.symbolFadeChange=Ne.placement.symbolFadeChange(Ie.exported.now()),this.imageManager.beginFrame();const Qe=this.style.order,ai=this.style._sourceCaches;for(const qi in ai){const Xi=ai[qi];Xi.used&&Xi.prepare(this.context)}const ui={},Si={},Mi={};for(const qi in ai){const Xi=ai[qi];ui[qi]=Xi.getVisibleCoordinates(),Si[qi]=ui[qi].slice().reverse(),Mi[qi]=Xi.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let qi=0;qi<Qe.length;qi++)if(this.style._layers[Qe[qi]].is3D()){this.opaquePassCutoff=qi;break}if(this.terrain&&(this.terrain.updateTileBinding(Mi),this.opaquePassCutoff=0),this.transform.projection.name!=="globe"||this.globeSharedBuffers||(this.globeSharedBuffers=new Ie.GlobeSharedBuffers(this.context)),!Ie.isMapAuthenticated(this.context.gl))return;this.renderPass="offscreen";for(const qi of Qe){const Xi=this.style._layers[qi],hn=Ne._getLayerSourceCache(Xi);if(!Xi.hasOffscreenPass()||Xi.isHidden(this.transform.zoom))continue;const Dn=hn?Si[hn.id]:void 0;(Xi.type==="custom"||Xi.isSky()||Dn&&Dn.length)&&this.renderLayer(this,hn,Xi,Dn)}this.depthRangeFor3D=[0,1-(Ne.order.length+2)*this.numSublayers*this.depthEpsilon];const Fi=this.terrain;if(Fi&&(this.style.hasSymbolLayers()||this.style.hasCircleLayers())&&Fi.drawDepth(),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]),this.context.clear({color:Ge.showOverdrawInspector?Ie.Color.black:Ie.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=Ge.showOverdrawInspector,this.renderPass="opaque",!this.terrain)for(this.currentLayer=Qe.length-1;this.currentLayer>=0;this.currentLayer--){const qi=this.style._layers[Qe[this.currentLayer]],Xi=Ne._getLayerSourceCache(qi);if(qi.isSky())continue;const hn=Xi?Si[Xi.id]:void 0;this._renderTileClippingMasks(qi,Xi,hn),this.renderLayer(this,Xi,qi,hn)}if(this.style.fog&&this.transform.projection.supportsFog&&function(qi,Xi){const hn=qi.context,Dn=hn.gl,In=qi.transform,On=new Ie.DepthMode(Dn.LEQUAL,Ie.DepthMode.ReadOnly,[0,1]),Bn=qi.useProgram("globeAtmosphere",null,In.projection.name==="globe"?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"]),Vn=Ie.globeToMercatorTransition(In.zoom),pn=Xi.properties.get("color").toArray01(),Pn=Xi.properties.get("high-color").toArray01(),Jn=Xi.properties.get("space-color").toArray01PremultipliedAlpha(),qn=Ie.identity$1([]);Ie.rotateY$1(qn,qn,-Ie.degToRad(In._center.lng)),Ie.rotateX$1(qn,qn,Ie.degToRad(In._center.lat)),Ie.rotateZ$1(qn,qn,In.angle),Ie.rotateX$1(qn,qn,-In._pitch);const gr=Ie.fromQuat(new Float32Array(16),qn),vr=Ie.mapValue(Xi.properties.get("star-intensity"),0,1,0,.25),dr=5e-4,$r=Ie.mapValue(Xi.properties.get("horizon-blend"),0,1,dr,.25),Pr=Ie.globeUseCustomAntiAliasing(qi,hn,In)&&$r===dr?In.worldSize/(2*Math.PI*1.025)-1:In.globeRadius,Vr=qi.frameCounter/1e3%1,Ds=Ie.length(In.globeCenterInViewSpace),zr=Math.sqrt(Math.pow(Ds,2)-Math.pow(Pr,2)),cs=Math.acos(zr/Ds),Xr=((Lr,ns,Ss,ds,Is,ho,ko,Js,_o,ia,No,lo,Ea,Va)=>({u_frustum_tl:Lr,u_frustum_tr:ns,u_frustum_br:Ss,u_frustum_bl:ds,u_horizon:Is,u_transition:ho,u_fadeout_range:ko,u_color:Js,u_high_color:_o,u_space_color:ia,u_star_intensity:No,u_star_size:5*Ie.exported.devicePixelRatio,u_star_density:0,u_temporal_offset:lo,u_horizon_angle:Ea,u_rotation_matrix:Va}))(In.frustumCorners.TL,In.frustumCorners.TR,In.frustumCorners.BR,In.frustumCorners.BL,In.frustumCorners.horizon,Vn,$r,pn,Pn,Jn,vr,Vr,cs,gr);qi.prepareDrawProgram(hn,Bn);const ss=qi.atmosphereBuffer;ss&&Bn.draw(hn,Dn.TRIANGLES,On,Ie.StencilMode.disabled,Ie.ColorMode.alphaBlended,Ie.CullFaceMode.backCW,Xr,"skybox",ss.vertexBuffer,ss.indexBuffer,ss.segments)}(this,this.style.fog),this.renderPass="sky",(Ie.globeToMercatorTransition(this.transform.zoom)>0||this.transform.projection.name!=="globe")&&this.transform.isH
vendor: 1,765 bytes, line 1522
1522orizonVisible())for(this.currentLayer=0;this.currentLayer<Qe.length;this.currentLayer++){const qi=this.style._layers[Qe[this.currentLayer]],Xi=Ne._getLayerSourceCache(qi);qi.isSky()&&this.renderLayer(this,Xi,qi,Xi?Si[Xi.id]:void 0)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<Qe.length;){const qi=this.style._layers[Qe[this.currentLayer]],Xi=Ne._getLayerSourceCache(qi);if(qi.isSky()){++this.currentLayer;continue}if(this.terrain&&this.style.isLayerDraped(qi)){if(qi.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=this.terrain.renderBatch(this.currentLayer);continue}const hn=Xi?(qi.type==="symbol"?Mi:Si)[Xi.id]:void 0;this._renderTileClippingMasks(qi,Xi,Xi?ui[Xi.id]:void 0),this.renderLayer(this,Xi,qi,hn),++this.currentLayer}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry||this.options.showTileAABBs){let qi=null;Ie.values(this.style._layers).forEach(Xi=>{const hn=Ne._getLayerSourceCache(Xi);hn&&!Xi.isHidden(this.transform.zoom)&&(!qi||qi.getSource().maxzoom<hn.getSource().maxzoom)&&(qi=hn)}),qi&&this.options.showTileBoundaries&&Bh.debug(this,qi,qi.getVisibleCoordinates())}this.options.showPadding&&function(qi){const Xi=qi.transform.padding;Ho(qi,qi.transform.height-(Xi.top||0),3,ws),Ho(qi,Xi.bottom||0,3,yo),Oa(qi,Xi.left||0,3,vo),Oa(qi,qi.transform.width-(Xi.right||0),3,uo);const hn=qi.transform.centerPoint;(function(Dn,In,On,Bn){Xa(Dn,In-1,On-10,2,20,Bn),Xa(Dn,In-10,On-1,20,2,Bn)})(qi,hn.x,qi.transform.height-hn.y,ua)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%Number.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(Ie.window.performance.now()),this.saveC
vendor: 1,142 bytes, line 1522
1522anvasCopy())}renderLayer(Ne,Ge,Qe,ai){Qe.isHidden(this.transform.zoom)||(Qe.type==="background"||Qe.type==="sky"||Qe.type==="custom"||ai&&ai.length)&&(this.id=Qe.id,this.gpuTimingStart(Qe),(!Ne.transform.projection.unsupportedLayers||!Ne.transform.projection.unsupportedLayers.includes(Qe.type)||Ne.terrain&&Qe.type==="custom")&&Bh[Qe.type](Ne,Ge,Qe,ai,this.style.placement.variableOffsets,this.options.isInitialLoad),this.gpuTimingEnd())}gpuTimingStart(Ne){if(!this.options.gpuTiming)return;const Ge=this.context.extTimerQuery;let Qe=this.gpuTimers[Ne.id];Qe||(Qe=this.gpuTimers[Ne.id]={calls:0,cpuTime:0,query:Ge.createQueryEXT()}),Qe.calls++,Ge.beginQueryEXT(Ge.TIME_ELAPSED_EXT,Qe.query)}gpuTimingDeferredRenderStart(){if(this.options.gpuTimingDeferredRender){const Ne=this.context.extTimerQuery,Ge=Ne.createQueryEXT();this.deferredRenderGpuTimeQueries.push(Ge),Ne.beginQueryEXT(Ne.TIME_ELAPSED_EXT,Ge)}}gpuTimingDeferredRenderEnd(){if(!this.options.gpuTimingDeferredRender)return;const Ne=this.context.extTimerQuery;Ne.endQueryEXT(Ne.TIME_ELAPSED_EXT)}gpuTimingEnd(){if(!this.options.gpuTiming)return;const Ne=this.context.extTimerQuery;
1522Ne.endQueryEXT(Ne.TIME_ELAPSED_EXT)}collectGpuTimers(){const Ne=this.gpuTimers;return this.gpuTimers={},Ne}collectDeferredRenderGpuQueries(){const Ne=this.deferredRenderGpuTimeQueries;return this.deferredRenderGpuTimeQueries=[],Ne}queryGpuTimers(Ne){const Ge={};for(const Qe in Ne){const ai=Ne[Qe],ui=this.context.extTimerQuery,Si=ui.getQueryObjectEXT(ai.query,ui.QUERY_RESULT_EXT)/1e6;ui.deleteQueryEXT(ai.query),Ge[Qe]=Si}return Ge}queryGpuTimeDeferredRender(Ne){if(!this.options.gpuTimingDeferredRender)return 0;const Ge=this.context.extTimerQuery;let Qe=0;for(const ai of Ne)Qe+=Ge.getQueryObjectEXT(ai,Ge.QUERY_RESULT_EXT)/1e6,Ge.deleteQueryEXT(ai);return Qe}translatePosMatrix(Ne,Ge,Qe,ai,ui){if(!Qe[0]&&!Qe[1])return Ne;const Si=ui?ai==="map"?this.transform.angle:0:ai==="viewport"?-this.transform.angle:0;if(Si){const qi=Math.sin(Si),Xi=Math.cos(Si);Qe=[Qe[0]*Xi-Qe[1]*qi,Qe[0]*qi+Qe[1]*Xi]}const Mi=[ui?Qe[0]:wi(Ge,Qe[0],this.transform.zoom),ui?Qe[1]:wi(Ge,Qe[1],this.transform.zoom),0],Fi=new Float32Array(16);return Ie.translate(Fi,Ne,Mi),Fi}saveTileTexture(Ne){const Ge=this._tileTextures[Ne.size[0]];Ge?Ge.push(Ne):this._tileTextures[Ne.size[0]]=[Ne]}getTileTexture(Ne){const Ge=this._tileTextures[Ne];return Ge&&Ge.length>0?Ge.pop():null}isPatternMissing(Ne){return Ne===null||Ne!==void 0&&!this.imageManager.getPattern(Ne.toString())}terrainRenderModeElevated(){return this.style&&!!this.style.getTerrain()&&!!this.terrain&&!this.terrain.renderingToTexture}currentGlobalDefines(){const Ne=this.terrain&&this.terrain.renderingToTexture,Ge=this.terrain&&this.terrain.exaggeration()===0,Qe=this.style&&this.style.fog,ai=[];return this.terrainRenderModeElevated()&&ai.push("TERRAIN"),this.transform.projection.name==="globe"&&ai.push("GLOBE"),Ge&&ai.push("ZERO_EXAGGERATION"),Qe&&!Ne&&Qe.getOpacity(this.transform.pitch)!==0&&ai.push("FOG"),Ne&&ai.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&ai.push("OVERDRAW_INSPECTOR"),ai}useProgram(Ne,Ge,Qe){this.cache=this.cache||{};const ai=Qe||[],ui=this.currentGlobalDefines().concat(ai),Si=qo.cacheKey(An[Ne],Ne,ui,Ge);return this.cache[Si]||(this.cache[Si]=new qo(this.context,Ne,An[Ne],Ge,Jl[Ne],ui)),this.cache[Si]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const Ne=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(Ne.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=Ie.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new Ie.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.atmosphereBuffer&&this.atmosphereBuffer.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}prepareDrawProgram(Ne,Ge,Qe){if(this.terrain&&this.terrain.renderingToTexture)return;const ai=this.style.fog;if(ai){const ui=ai.getOpacity(this.transform.pitch),Si=((Mi,Fi,qi,Xi,hn,Dn,In,On,Bn,Vn,pn)=>{const Pn=Mi.transform,Jn=Fi.properties.get("color").toArray01();Jn[3]=Xi;const qn=Mi.frameCounter/1e3%1;return{u_fog_matrix:qi?Pn.calculateFogTileMatrix(qi):Mi.identityMat,u_fog_range:Fi.getFovAdjustedRange(Pn._fov),u_fog_color:Jn,u_fog_horizon_blend:Fi.properties.get("horizon-blend"),u_fog_temporal_offset:qn,u_frustum_tl:hn,u_frustum_tr:Dn,u_frustum_br:In,u_frustum_bl:On,u_globe_pos:Bn,u_globe_radius:Vn,u_viewport:pn,u_globe_transition:Ie.globeToMercatorTransition(Pn.zoom),u_is_globe:+(Pn.projection.name==="globe")}})(this,ai,Qe,ui,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*Ie.exported.devicePixelRatio,this.transform.height*Ie.exp
vendor: 7,927 bytes, line 1522
1522orted.devicePixelRatio]);Ge.setFogUniformValues(Ne,Si)}}setTileLoadedFlag(Ne){this.tileLoaded=Ne}saveCanvasCopy(){const Ne=this.canvasCopy();Ne&&(this.frameCopies.push(Ne),this.tileLoaded=!1)}canvasCopy(){const Ne=this.context.gl,Ge=Ne.createTexture();return Ne.bindTexture(Ne.TEXTURE_2D,Ge),Ne.copyTexImage2D(Ne.TEXTURE_2D,0,Ne.RGBA,0,0,Ne.drawingBufferWidth,Ne.drawingBufferHeight,0),Ge}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const Ne=this.style&&this.style.fog;return!!Ne&&Ne.getOpacity(this.transform.pitch)!==0}getBackgroundTiles(){const Ne=this._backgroundTiles,Ge=this._backgroundTiles={},Qe=this.transform.coveringTiles({tileSize:512});for(const ai of Qe)Ge[ai.key]=Ne[ai.key]||new Ie.Tile(ai,512,this.transform.tileZoom,this);return Ge}clearBackgroundTiles(){this._backgroundTiles={}}}class Cf{constructor(Ne=0,Ge=0,Qe=0,ai=0){if(isNaN(Ne)||Ne<0||isNaN(Ge)||Ge<0||isNaN(Qe)||Qe<0||isNaN(ai)||ai<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=Ne,this.bottom=Ge,this.left=Qe,this.right=ai}interpolate(Ne,Ge,Qe){return Ge.top!=null&&Ne.top!=null&&(this.top=Ie.number(Ne.top,Ge.top,Qe)),Ge.bottom!=null&&Ne.bottom!=null&&(this.bottom=Ie.number(Ne.bottom,Ge.bottom,Qe)),Ge.left!=null&&Ne.left!=null&&(this.left=Ie.number(Ne.left,Ge.left,Qe)),Ge.right!=null&&Ne.right!=null&&(this.right=Ie.number(Ne.right,Ge.right,Qe)),this}getCenter(Ne,Ge){const Qe=Ie.clamp((this.left+Ne-this.right)/2,0,Ne),ai=Ie.clamp((this.top+Ge-this.bottom)/2,0,Ge);return new Ie.Point(Qe,ai)}equals(Ne){return this.top===Ne.top&&this.bottom===Ne.bottom&&this.left===Ne.left&&this.right===Ne.right}clone(){return new Cf(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Nh(Ze,Ne){const Ge=Ie.getColumn(Ze,3);Ie.fromQuat(Ze,Ne),Ie.setColumn(Ze,3,Ge)}function la(Ze,Ne){const Ge=Ie.identity$1([]);return Ie.rotateZ$1(Ge,Ge,-Ne),Ie.rotateX$1(Ge,Ge,-Ze),Ge}function hd(Ze,Ne){const Ge=[Ze[0],Ze[1],0],Qe=[Ne[0],Ne[1],0];if(Ie.length(Ge)>=1e-15){const Si=Ie.normalize([],Ge);Ie.scale$2(Qe,Si,Ie.dot(Qe,Si)),Ne[0]=Qe[0],Ne[1]=Qe[1]}const ai=Ie.cross([],Ne,Ze);if(Ie.len(ai)<1e-15)return null;const ui=Math.atan2(-ai[1],ai[0]);return la(Math.atan2(Math.sqrt(Ze[0]*Ze[0]+Ze[1]*Ze[1]),-Ze[2]),ui)}class jm{constructor(Ne,Ge){this.position=Ne,this.orientation=Ge}get position(){return this._position}set position(Ne){if(Ne){const Ge=Ne instanceof Ie.MercatorCoordinate?Ne:new Ie.MercatorCoordinate(Ne[0],Ne[1],Ne[2]);this._renderWorldCopies&&(Ge.x=Ie.wrap(Ge.x,0,1)),this._position=Ge}else this._position=null}lookAtPoint(Ne,Ge){if(this.orientation=null,!this.position)return;const Qe=this.position,ai=this._elevation?this._elevation.getAtPointOrZero(Ie.MercatorCoordinate.fromLngLat(Ne)):0,ui=Ie.MercatorCoordinate.fromLngLat(Ne,ai),Si=[ui.x-Qe.x,ui.y-Qe.y,ui.z-Qe.z];Ge||(Ge=[0,0,1]),Ge[2]=Math.abs(Ge[2]),this.orientation=hd(Si,Ge)}setPitchBearing(Ne,Ge){this.orientation=la(Ie.degToRad(Ne),Ie.degToRad(-Ge))}}class _p{constructor(Ne,Ge){this._transform=Ie.identity([]),this.orientation=Ge,this.position=Ne}get mercatorPosition(){const Ne=this.position;return new Ie.MercatorCoordinate(Ne[0],Ne[1],Ne[2])}get position(){const Ne=Ie.getColumn(this._transform,3);return[Ne[0],Ne[1],Ne[2]]}set position(Ne){var Ge;Ne&&Ie.setColumn(this._transform,3,[(Ge=Ne)[0],Ge[1],Ge[2],1])}get orientation(){return this._orientation}set orientation(Ne){this._orientation=Ne||Ie.identity$1([]),Ne&&Nh(this._transform,this._orientation)}getPitchBearing(){const Ne=this.forward(),Ge=this.right();return{bearing:Math.atan2(-Ge[1],Ge[0]),pitch:Math.atan2(Math.sqrt(Ne[0]*Ne[0]+Ne[1]*Ne[1]),-Ne[2])}}setPitchBearing(Ne,Ge){this._orientation=la(Ne,Ge),Nh(this._transform,this._orientation)}forward(){const Ne=Ie.getColumn(this._transform,2);return[-Ne[0],-Ne[1],-Ne[2]]}up(){const Ne=Ie.getColumn(this._transform,1);return[-Ne[0],-Ne[1],-Ne[2]]}right(){const Ne=Ie.getColumn(this._transform,0);return[Ne[0],Ne[1],Ne[2]]}getCameraToWorld(Ne,Ge){const Qe=new Float64Array(16);return Ie.invert(Qe,this.getWorldToCamera(Ne,Ge)),Qe}getWorldToCameraPosition(Ne,Ge,Qe){const ai=this.position;Ie.scale$2(ai,ai,-Ne);const ui=new Float64Array(16);return Ie.fromScaling(ui,[Qe,Qe,Qe]),Ie.translate(ui,ui,ai),ui[10]*=Ge,ui}getWorldToCamera(Ne,Ge){const Qe=new Float64Array(16),ai=new Float64Array(4),ui=this.position;return Ie.conjugate(ai,this._orientation),Ie.scale$2(ui,ui,-Ne),Ie.fromQuat(Qe,ai),Ie.translate(Qe,Qe,ui),Qe[1]*=-1,Qe[5]*=-1,Qe[9]*=-1,Qe[13]*=-1,Qe[8]*=Ge,Qe[9]*=Ge,Qe[10]*=Ge,Qe[11]*=Ge,Qe}getCameraToClipPerspective(Ne,Ge,Qe,ai){const ui=new Float64Array(16);return Ie.perspective(ui,Ne,Ge,Qe,ai),ui}getDistanceToElevation(Ne,Ge=!1){const Qe=Ne===0?0:Ie.mercatorZfromAltitude(Ne,Ge?Ie.latFromMercatorY(this.position[1]):this.position[1]),ai=this.forward();return(Qe-this.position[2])/ai[2]}clone(){return new _p([...this.position],[...this.orientation])}}function bp(Ze,Ne){const Ge=Vh(Ze.projection,Ze.zoom,Ze.width,Ze.height),Qe=function(ui,Si,Mi,Fi,qi){const Xi=new Ie.LngLat(Mi.lng-180*Hd,Mi.lat),hn=new Ie.LngLat(Mi.lng+180*Hd,Mi.lat),Dn=ui.project(Xi.lng,Xi.lat),In=ui.project(hn.lng,hn.lat),On=-Math.atan2(In.y-Dn.y,In.x-Dn.x),Bn=Ie.MercatorCoordinate.fromLngLat(Mi);Bn.y=Ie.clamp(Bn.y,-1+Hd,1-Hd);const Vn=Bn.toLngLat(),pn=ui.project(Vn.lng,Vn.lat),Pn=Ie.MercatorCoordinate.fromLngLat(Vn);Pn.x+=Hd;const Jn=Pn.toLngLat(),qn=ui.project(Jn.lng,Jn.lat),gr=Qu(qn.x-pn.x,qn.y-pn.y,On),vr=Ie.MercatorCoordinate.fromLngLat(Vn);vr.y+=Hd;const dr=vr.toLngLat(),$r=ui.project(dr.lng,dr.lat),Pr=Qu($r.x-pn.x,$r.y-pn.y,On),Vr=Math.abs(gr.x)/Math.abs(Pr.y),Ds=Ie.identity([]);Ie.rotateZ(Ds,Ds,-On*(1-(qi?0:Fi)));const zr=Ie.identity([]);return Ie.scale(zr,zr,[1,1-(1-Vr)*Fi,1]),zr[4]=-Pr.x/Pr.y*Fi,Ie.rotateZ(zr,zr,On),Ie.multiply(zr,Ds,zr),zr}(Ze.projection,0,Ze.center,Ge,Ne),ai=om(Ze);return Ie.scale(Qe,Qe,[ai,ai,1]),Qe}function om(Ze){const Ne=Ze.projection,Ge=Vh(Ze.projection,Ze.zoom,Ze.width,Ze.height),Qe=pd(Ne,Ze.center),ai=pd(Ne,Ie.LngLat.convert(Ne.center));return Math.pow(2,Qe*Ge+(1-Ge)*ai)}function Vh(Ze,Ne,Ge,Qe,ai=1/0){const ui=Ze.range;if(!ui)return 0;const Si=Math.min(ai,Math.max(Ge,Qe)),Mi=Math.log(Si/1024)/Math.LN2;return Ie.smoothstep(ui[0]+Mi,ui[1]+Mi,Ne)}const Hd=1/4e4;function pd(Ze,Ne){const Ge=Ie.clamp(Ne.lat,-Ie.MAX_MERCATOR_LATITUDE,Ie.MAX_MERCATOR_LATITUDE),Qe=new Ie.LngLat(Ne.lng-180*Hd,Ge),ai=new Ie.LngLat(Ne.lng+180*Hd,Ge),ui=Ze.project(Qe.lng,Ge),Si=Ze.project(ai.lng,Ge),Mi=Ie.MercatorCoordinate.fromLngLat(Qe),Fi=Ie.MercatorCoordinate.fromLngLat(ai),qi=Si.x-ui.x,Xi=Si.y-ui.y,hn=Fi.x-Mi.x,Dn=Fi.y-Mi.y,In=Math.sqrt((hn*hn+Dn*Dn)/(qi*qi+Xi*Xi));return Math.log(In)/Math.LN2}function Qu(Ze,Ne,Ge){const Qe=Math.cos(Ge),ai=Math.sin(Ge);return{x:Ze*Qe-Ne*ai,y:Ze*ai+Ne*Qe}}class Ud{constructor(Ne,Ge,Qe,ai,ui,Si,Mi){this.tileSize=512,this._renderWorldCopies=ui===void 0||ui,this._minZoom=Ne||0,this._maxZoom=Ge||22,this._minPitch=Qe??0,this._maxPitch=ai??60,this.setProjection(Si),this.setMaxBounds(Mi),this.width=0,this.height=0,this._center=new Ie.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new Cf,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new _p,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._horizonShift=.1}clone(){const Ne=new Ud(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return Ne._elevation=this._elevation,Ne._centerAltitude=this._centerAltitude,Ne._centerAltitudeValidForE
1522xaggeration=this._centerAltitudeValidForExaggeration,Ne.tileSize=this.tileSize,Ne.mercatorFromTransition=this.mercatorFromTransition,Ne.width=this.width,Ne.height=this.height,Ne.cameraElevationReference=this.cameraElevationReference,Ne._center=this._center,Ne._setZoom(this.zoom),Ne._seaLevelZoom=this._seaLevelZoom,Ne.angle=this.angle,Ne._fov=this._fov,Ne._pitch=this._pitch,Ne._nearZ=this._nearZ,Ne._farZ=this._farZ,Ne._averageElevation=this._averageElevation,Ne._unmodified=this._unmodified,Ne._edgeInsets=this._edgeInsets.clone(),Ne._camera=this._camera.clone(),Ne._calcMatrices(),Ne.freezeTileCoverage=this.freezeTileCoverage,Ne.frustumCorners=this.frustumCorners,Ne}get elevation(){return this._elevation}set elevation(Ne){this._elevation!==Ne&&(this._elevation=Ne,this._updateCameraOnTerrain(),this._calcMatrices())}updateElevation(Ne,Ge=!1){const Qe=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(this._seaLevelZoom==null||Qe)&&this._updateCameraOnTerrain(),(Ne||Qe)&&this._constrainCamera(Ge),this._calcMatrices()}getProjection(){return Ie.pick(this.projection,["name","center","parallels"])}setProjection(Ne){this.projectionOptions=Ne||{name:"mercator"};const Ge=this.projection?this.getProjection():void 0;this.projection=Ie.getProjection(this.projectionOptions);const Qe=!je(Ge,this.getProjection());return Qe&&this._calcMatrices(),this.mercatorFromTransition=!1,Qe}setMercatorFromTransition(){const Ne=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=Ie.getProjection({name:"mercator"});const Ge=Ne!==this.projection.name;return Ge&&this._calcMatrices(),Ge}get minZoom(){return this._minZoom}set minZoom(Ne){this._minZoom!==Ne&&(this._minZoom=Ne,this.zoom=Math.max(this.zoom,Ne))}get maxZoom(){return this._maxZoom}set maxZoom(Ne){this._maxZoom!==Ne&&(this._maxZoom=Ne,this.zoom=Math.min(this.zoom,Ne))}get minPitch(){return this._minPitch}set minPitch(Ne){this._minPitch!==Ne&&(this._minPitch=Ne,this.pitch=Math.max(this.pitch,Ne))}get maxPitch(){return this._maxPitch}set maxPitch(Ne){this._maxPitch!==Ne&&(this._maxPitch=Ne,this.pitch=Math.min(this.pitch,Ne))}get renderWorldCopies(){return this._renderWorldCopies&&this.projection.supportsWorldCopies===!0}set renderWorldCopies(Ne){Ne===void 0?Ne=!0:Ne===null&&(Ne=!1),this._renderWorldCopies=Ne}get worldSize(){return this.tileSize*this.scale}get cameraWorldSizeForFog(){const Ne=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(Ne))}get cameraWorldSize(){const Ne=Math.max(this._camera.getDistanceToElevation(this._averageElevation,!0),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(Ne))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return Ie.mercatorZfromAltitude(this.center.lat,this.cameraWorldSizeForFog)}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new Ie.Point(this.width,this.height)}get bearing(){return Ie.wrap(this.rotation,-180,180)}set bearing(Ne){this.rotation=Ne}get rotation(){return-this.angle/Math.PI*180}set rotation(Ne){const Ge=-Ne*Math.PI/180;var Qe;this.angle!==Ge&&(this._unmodified=!1,this.angle=Ge,this._calcMatrices(),this.rotationMatrix=(Qe=new Ie.ARRAY_TYPE(4),Ie.ARRAY_TYPE!=Float32Array&&(Qe[1]=0,Qe[2]=0),Qe[0]=1,Qe[3]=1,Qe),function(ai,ui,Si){var Mi=ui[0],Fi=ui[1],qi=ui[2],Xi=ui[3],hn=Math.sin(Si),Dn=Math.cos(Si);ai[0]=Mi*Dn+qi*hn,ai[1]=Fi*Dn+Xi*hn,ai[2]=Mi*-hn+qi*Dn,ai[3]=Fi*-hn+Xi*Dn}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(Ne){const Ge=Ie.clamp(Ne,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==Ge&&(this._unmodified=!1,this._pitch=Ge,this._calcMatrices())}get aspect(){return this.width/this.height}get fov(){return this._fov/Math.PI*180}get fovX(){return this._fov}get fovY(){const Ne=1/Math.tan(.5*this.fovX);return 2*Math.atan(1/this.aspect/Ne)}set fov(Ne){Ne=Math.max(.01,Math.min(60,Ne)),this._fov!==Ne&&(this._unmodified=!1,this._fov=Ie.degToRad(Ne),this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(Ne){this._averageElevation=Ne,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(Ne){const Ge=Math.min(Math.max(Ne,this.minZoom),this.maxZoom);this._zoom!==Ge&&(this._unmodified=!1,this._setZoom(Ge),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(Ne){this._zoom=Ne,this.scale=this.zoomScale(Ne),this.tileZoom=Math.floor(Ne),this.zoomFraction=Ne-this.tileZoom}_updateCameraOnTerrain(){if(!this._elevation||!this._elevation.isDataAvailableAtPoint(this.locationCoordinate(this.center)))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForE
vendor: 11,469 bytes, line 1522
1522xaggeration=void 0);const Ne=this._elevation;this._centerAltitude=Ne.getAtPointOrZero(this.locationCoordinate(this.center)),this._centerAltitudeValidForExaggeration=Ne.exaggeration(),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){this._centerAltitudeValidForExaggeration!==void 0&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;const Ne=this._elevation,Ge=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],Qe=this.horizonLineFromTop();let ai=0,ui=0;for(let Si=0;Si<Ge.length;Si++){const Mi=new Ie.Point(Ge[Si][0]*this.width,Qe+Ge[Si][1]*(this.height-Qe)),Fi=Ne.pointCoordinate(Mi);if(!Fi)continue;const qi=1/Math.hypot(Fi[0]-this._camera.position[0],Fi[1]-this._camera.position[1]);ai+=Fi[3]*qi,ui+=qi}return ui===0?NaN:ai/ui}get center(){return this._center}set center(Ne){Ne.lat===this._center.lat&&Ne.lng===this._center.lng||(this._unmodified=!1,this._center=Ne,this._terrainEnabled()&&(this.cameraElevationReference==="ground"?this._updateCameraOnTerrain():this._updateZoomFromElevation()),this._constrain(),this._calcMatrices())}_updateZoomFromElevation(){if(this._seaLevelZoom==null||!this._elevation)return;const Ne=this._seaLevelZoom,Ge=this._elevation.getAtPointOrZero(this.locationCoordinate(this.center)),Qe=this.pixelsPerMeter/this.worldSize*Ge,ai=this._mercatorZfromZoom(Ne),ui=this._mercatorZfromZoom(this._maxZoom),Si=Math.max(ai-Qe,ui);this._setZoom(this._zoomFromMercatorZ(Si))}get padding(){return this._edgeInsets.toJSON()}set padding(Ne){this._edgeInsets.equals(Ne)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Ne,1),this._calcMatrices())}computeZoomRelativeTo(Ne){const Ge=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,Ne.toAltitude()));let Qe;Qe=Ne.z<this._camera.position[2]?[Ge.x,Ge.y,Ge.z]:[Ne.x,Ne.y,Ne.z];const ai=Ie.length(Ie.sub([],this._camera.position,Qe));return Ie.clamp(this._zoomFromMercatorZ(ai),this._minZoom,this._maxZoom)}setFreeCameraOptions(Ne){if(!this.height||!Ne.position&&!Ne.orientation)return;this._updateCameraState();let Ge=!1;if(Ne.orientation&&!Ie.exactEquals(Ne.orientation,this._camera.orientation)&&(Ge=this._setCameraOrientation(Ne.orientation)),Ne.position){const Qe=[Ne.position.x,Ne.position.y,Ne.position.z];Ie.exactEquals$1(Qe,this._camera.position)||(this._setCameraPosition(Qe),Ge=!0)}Ge&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();const Ne=this._camera.position,Ge=new jm;return Ge.position=new Ie.MercatorCoordinate(Ne[0],Ne[1],Ne[2]),Ge.orientation=this._camera.orientation,Ge._elevation=this.elevation,Ge._renderWorldCopies=this.renderWorldCopies,Ge}_setCameraOrientation(Ne){if(!Ie.length$1(Ne))return!1;Ie.normalize$1(Ne,Ne);const Ge=Ie.transformQuat([],[0,0,-1],Ne),Qe=Ie.transformQuat([],[0,-1,0],Ne);if(Qe[2]<0)return!1;const ai=hd(Ge,Qe);return!!ai&&(this._camera.orientation=ai,!0)}_setCameraPosition(Ne){const Ge=this.zoomScale(this.minZoom)*this.tileSize,Qe=this.zoomScale(this.maxZoom)*this.tileSize,ai=this.cameraToCenterDistance;Ne[2]=Ie.clamp(Ne[2],ai/Qe,ai/Ge),this._camera.position=Ne}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}get fovAboveCenter(){return this._fov*(.5+this.centerOffset.y/this.height)}isPaddingEqual(Ne){return this._edgeInsets.equals(Ne)}interpolatePadding(Ne,Ge,Qe){this._unmodified=!1,this._edgeInsets.interpolate(Ne,Ge,Qe),this._constrain(),this._calcMatrices()}coveringZoomLevel(Ne){const Ge=(Ne.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/Ne.tileSize));return Math.max(0,Ge)}getVisibleUnwrappedCoordinates(Ne){const Ge=[new Ie.UnwrappedTileID(0,Ne)];if(this.renderWorldCopies){const Qe=this.pointCoordinate(new Ie.Point(0,0)),ai=this.pointCoordinate(new Ie.Point(this.width,0)),ui=this.pointCoordinate(new Ie.Point(this.width,this.height)),Si=this.pointCoordinate(new Ie.Point(0,this.height)),Mi=Math.floor(Math.min(Qe.x,ai.x,ui.x,Si.x)),Fi=Math.floor(Math.max(Qe.x,ai.x,ui.x,Si.x)),qi=1;for(let Xi=Mi-qi;Xi<=Fi+qi;Xi++)Xi!==0&&Ge.push(new Ie.UnwrappedTileID(Xi,Ne))}return Ge}coveringTiles(Ne){let Ge=this.coveringZoomLevel(Ne);const Qe=Ge,ai=this.elevation&&!Ne.isTerrainDEM,ui=this.projection.name==="mercator";if(Ne.minzoom!==void 0&&Ge<Ne.minzoom)return[];Ne.maxzoom!==void 0&&Ge>Ne.maxzoom&&(Ge=Ne.maxzoom);const Si=this.locationCoordinate(this.center),Mi=this.center.lat,Fi=1<<Ge,qi=[Fi*Si.x,Fi*Si.y,0],Xi=this.projection.name==="globe",hn=!Xi,Dn=Ie.Frustum.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,Ge,hn),In=Xi?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),On=Fi*Ie.mercatorZfromAltitude(1,this.center.lat),Bn=this._camera.position[2]/Ie.mercatorZfromAltitude(1,this.center.lat),Vn=[Fi*In.x,Fi*In.y,Bn*(hn?1:On)],pn=this.cameraToCenterDistance/Ne.tileSize*(Ne.roundZoom?1:.502),Pn=this.pitch<=60&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation&&!this.projection.isReprojectedInTileSpace?Ge:0,Jn=Ne.isTerrainDEM&&this._elevation?1e4*this._elevation.exaggeration():this._centerAltitude,qn=Ne.isTerrainDEM?-Jn:this._elevation?this._elevation.getMinElevationBelowMSL():0,gr=this.projection.isReprojectedInTileSpace?om(this):1,vr=Lr=>{const Ss=new Ie.MercatorCoordinate(Lr.x+25e-6,Lr.y,Lr.z),ds=new Ie.MercatorCoordinate(Lr.x,Lr.y+25e-6,Lr.z),Is=Lr.toLngLat(),ho=Ss.toLngLat(),ko=ds.toLngLat(),Js=this.locationCoordinate(Is),_o=this.locationCoordinate(ho),ia=this.locationCoordinate(ko),No=Math.hypot(_o.x-Js.x,_o.y-Js.y),lo=Math.hypot(ia.x-Js.x,ia.y-Js.y);return Math.sqrt(No*lo)*gr/25e-6},dr=Lr=>{const ns=Jn,Ss=qn;return{aabb:Ie.tileAABB(this,Fi,0,0,0,Lr,Ss,ns,this.projection),zoom:0,x:0,y:0,minZ:Ss,maxZ:ns,wrap:Lr,fullyVisible:!1}},$r=[];let Pr=[];const Vr=Ge,Ds=Ne.reparseOverscaled?Qe:Ge,zr=Lr=>Lr*Lr,cs=zr((Bn-this._centerAltitude)*On),Xr=Lr=>{if(!this._elevation||!Lr.tileID||!ui)return;const ns=this._elevation.getMinMaxForTile(Lr.tileID),Ss=Lr.aabb;ns?(Ss.min[2]=ns.min,Ss.max[2]=ns.max,Ss.center[2]=(Ss.min[2]+Ss.max[2])/2):(Lr.shouldSplit=ss(Lr),Lr.shouldSplit||(Ss.min[2]=Ss.max[2]=Ss.center[2]=this._centerAltitude))},ss=Lr=>{if(Lr.zoom<Pn)return!0;if(Lr.zoom===Vr)return!1;if(Lr.shouldSplit!=null)return Lr.shouldSplit;const ns=Lr.aabb.distanceX(Vn),Ss=Lr.aabb.distanceY(Vn);let ds=cs,Is=1;if(Xi){ds=zr(Lr.aabb.distanceZ(Vn));const Js=Math.pow(2,Lr.zoom),_o=Ie.latFromMercatorY((Lr.y+1)/Js),ia=Ie.latFromMercatorY(Lr.y/Js),No=Math.min(Math.max(Mi,_o),ia),lo=Ie.circumferenceAtLatitude(No)/Ie.circumferenceAtLatitude(Mi);if(Is=No===Mi?1/Math.max(1,this._mercatorScaleRatio-.3):Math.min(1,lo/this._mercatorScaleRatio),this.zoom<=Ie.GLOBE_ZOOM_THRESHOLD_MIN&&Lr.zoom===Vr-1&&lo>=.9)return!0}else if(ai&&(ds=zr(Lr.aabb.distanceZ(Vn)*On)),this.projection.isReprojectedInTileSpace&&Qe<=5){const Js=Math.pow(2,Lr.zoom),_o=vr(new Ie.MercatorCoordinate((Lr.x+.5)/Js,(Lr.y+.5)/Js));Is=_o>.85?1:_o}const ho=ns*ns+Ss*Ss+ds,ko=zr((1<<Vr-Lr.zoom)*pn*Is*((Js,_o)=>{if(_o*zr(.707)<Js)return 1;const ia=Math.sqrt(_o/Js);return ia/(1.4144271570014144+(Math.pow(1.1,ia-1.4144271570014144+1)-1)/(1.1-1)-1)})(Math.max(ds,cs),ho));return ho<ko};if(this.renderWorldCopies)for(let Lr=1;Lr<=3;Lr++)$r.push(dr(-Lr)),$r.push(dr(Lr));for($r.push(dr(0));$r.length>0;){const Lr=$r.pop(),ns=Lr.x,Ss=Lr.y;let ds=Lr.fullyVisible;if(!ds){const Is=Lr.aabb.intersects(Dn);if(Is===0)continue;ds=Is===2}if(Lr.zoom!==Vr&&ss(Lr))for(let Is=0;Is<4;Is++){const ho=(ns<<1)+Is%2,ko=(Ss<<1)+(Is>>1),Js={aabb:ui?Lr.aabb.quadrant(Is):Ie.tileAABB(this,Fi,Lr.zoom+1,ho,ko,Lr.wrap,Lr.minZ,Lr.maxZ,this.projection),zoom:Lr.zoom+1,x:ho,y:ko,wrap:Lr.wrap,fullyVisible:ds,tileID:void 0,shouldSplit:void 0,minZ:Lr.minZ,maxZ:Lr.maxZ};ai&&!Xi&&(Js.tileID=new Ie.OverscaledTileID(Lr.zoom+1===Vr?Ds:Lr.zoom+1,Lr.wrap,Lr.zoom+1,ho,ko),Xr(Js)),$r.push(Js)}else{const Is=Lr.zoom===Vr?Ds:Lr.zoom;if(Ne.minzoom&&Ne.minzoom>Is)continue;const ho=qi[0]-(.5+ns+(Lr.wrap<<Lr.zoom))*(1<<Ge-Lr.zoom),ko=qi[1]-.5-Ss,Js=Lr.tileID?Lr.tileID:new Ie.OverscaledTileID(Is,Lr.wrap,Lr.zoom,ns,Ss);Pr.push({tileID:Js,distanceSq:ho*ho+ko*ko})}}if(this.fogCullDistSq){const Lr=this.fogCullDistSq,ns=this.horizonLineFromTop();Pr=Pr.filter(Ss=>{const ds=[0,0,0,1],Is=[Ie.EXTENT,Ie.EXTENT,0,1],ho=this.calculateFogTileMatrix(Ss.tileID.toUnwrapped());Ie.transformMat4$1(ds,ds,ho),Ie.transformMat4$1(Is,Is,ho);const ko=Ie.getAABBPointSquareDist(ds,Is);if(ko===0)return!0;let Js=!1;const _o=this._elevation;if(_o&&ko>Lr&&ns!==0){const ia=this.calculateProjMatrix(Ss.tileID.toUnwrapped());let No;Ne.isTerrainDEM||(No=_o.getMinMaxForTile(Ss.tileID)),No||(No={min:qn,max:Jn});const lo=Ie.furthestTileCorner(this.rotation),Ea=[lo[0]*Ie.EXTENT,lo[1]*Ie.EXTENT,No.max];Ie.transformMat4(Ea,Ea,ia),Js=(1-Ea[1])*this.height*.5<ns}return ko<Lr||Js})}return Pr.sort((Lr,ns)=>Lr.distanceSq-ns.distanceSq).map(Lr=>Lr.tileID)}resize(Ne,Ge){this.width=Ne,this.height=Ge,this.pixelsToGLUnits=[2/Ne,-2/Ge],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(Ne){return Math.pow(2,Ne)}scaleZoom(Ne){return Math.log(Ne)/Math.LN2}project(Ne){const Ge=Ie.clamp(Ne.lat,-Ie.MAX_MERCATOR_LATITUDE,Ie.MAX_MERCATOR_LATITUDE),Qe=this.projection.project(Ne.lng,Ge);return new Ie.Point(Qe.x*this.worldSize,Qe.y*this.worldSize)}unproject(Ne){return this.projection.unproject(Ne.x/this.worldSize,Ne.y/this.worldSize)}get point(){return this.project(this.center)}get pointMerc(){return this.point._div(this.worldSize)}get pixelsPerMeterRatio(){return this.pixelsPerMeter/Ie.mercatorZfromAltitude(1,this.center.lat)/this.worldSize}setLocationAtPoint(Ne,Ge){let Qe,ai;const ui=this.centerPoint;if(this.projection.name==="globe"){const Mi=this.worldSize;Qe=(Ge.x-ui.x)/Mi,ai=(Ge.y-ui.y)/Mi}else{const Mi=this.pointCoordinate(Ge),Fi=this.pointCoordinate(ui);Qe=Mi.x-Fi.x,ai=Mi.y-Fi.y}const Si=this.locationCoordinate(Ne);this.setLocation(new Ie.MercatorCoordinate(Si.x-Qe,Si.y-ai))}setLocation(Ne){this.center=this.coordinateLocation(Ne),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(Ne){return this.projection.locationPoint(this,Ne)}locationPoint3D(Ne){return this.projection.locationPoint(this,Ne,!0)}pointLocation(Ne){return this.coordinateLocation(this.pointCoordinate(Ne))}pointLocation3D(Ne){return this.coordinateLocation(this.pointCoordinate3D(Ne))}locationCoordinate(Ne,Ge){const Qe=Ge?Ie.mercatorZfromAltitude(Ge,Ne.lat):void 0,ai=this.projection.project(Ne.lng,Ne.lat);return new Ie.MercatorCoordinate(ai.x,ai.y,Qe)}coordinateLocation(Ne){return this.projection.unproject(Ne.x,Ne.y)}pointRayIntersection(Ne,Ge){const Qe=Ge??this._centerAltitude,ai=[Ne.x,Ne.y,0,1],ui=[Ne.x,Ne.y,1,1];Ie.transformMat4$1(ai,ai,this.pixelMatrixInverse),Ie.transformMat4$1(ui,ui,this.pixelMatrixInverse);const Si=ui[3];Ie.scale$1(ai,ai,1/ai[3]),Ie.scale$1(ui,ui,1/Si);const Mi=ai[2],Fi=ui[2];return{p0:ai,p1:ui,t:Mi===Fi?0:(Qe-Mi)/(Fi-Mi)}}screenPointToMercatorRay(Ne){const Ge=[Ne.x,Ne.y,0,1],Qe=[Ne.x,Ne.y,1,1];return Ie.transformMat4$1(Ge,Ge,this.pixelMatrixInverse),Ie.transformMat4$1(Qe,Qe,this.pixelMatrixInverse),Ie.scale$1(Ge,Ge,1/Ge[3]),Ie.scale$1(Qe,Qe,1/Qe[3]),Ge[2]=Ie.mercatorZfromAltitude(Ge[2],this._center.lat)*this.worldSize,Qe[2]=Ie.mercatorZfromAltitude(Qe[2],this._center.lat)*this.worldSize,Ie.scale$1(Ge,Ge,1/this.worldSize),Ie.scale$1(Qe,Qe,1/this.worldSize),new Ie.Ray([Ge[0],Ge[1],Ge[2]],Ie.normalize([],Ie.sub([],Qe,Ge)))}
1522rayIntersectionCoordinate(Ne){const{p0:Ge,p1:Qe,t:ai}=Ne,ui=Ie.mercatorZfromAltitude(Ge[2],this._center.lat),Si=Ie.mercatorZfromAltitude(Qe[2],this._center.lat);return new Ie.MercatorCoordinate(Ie.number(Ge[0],Qe[0],ai)/this.worldSize,Ie.number(Ge[1],Qe[1],ai)/this.worldSize,Ie.number(ui,Si,ai))}pointCoordinate(Ne,Ge=this._centerAltitude){return this.projection.pointCoordinate(this,Ne.x,Ne.y,Ge)}pointCoordinate3D(Ne){if(!this.elevation)return this.pointCoordinate(Ne);let Ge=this.projection.pointCoordinate3D(this,Ne.x,Ne.y);if(Ge)return new Ie.MercatorCoordinate(Ge[0],Ge[1],Ge[2]);let Qe=0,ai=this.horizonLineFromTop();if(Ne.y>ai)return this.pointCoordinate(Ne);const ui=.02*ai,Si=Ne.clone();for(let Mi=0;Mi<10&&ai-Qe>ui;Mi++){Si.y=Ie.number(Qe,ai,.66);const Fi=this.projection.pointCoordinate3D(this,Si.x,Si.y);Fi?(ai=Si.y,Ge=Fi):Qe=Si.y}return Ge?new Ie.MercatorCoordinate(Ge[0],Ge[1],Ge[2]):this.pointCoordinate(Ne)}isPointAboveHorizon(Ne){return this.projection.isPointAboveHorizon(this,Ne)}isPointOnSurface(Ne){if(Ne.y<0||Ne.y>this.height||Ne.x<0||Ne.x>this.width)return!1;if(this.elevation||this.zoom>=Ie.GLOBE_ZOOM_THRESHOLD_MAX)return!this.isPointAboveHorizon(Ne);const Ge=this.pointCoordinate(Ne);return Ge.y>=0&&Ge.y<=1}_coordinatePoint(Ne,Ge){const Qe=Ge&&this.elevation?this.elevation.getAtPointOrZero(Ne,this._centerAltitude):this._centerAltitude,ai=[Ne.x*this.worldSize,Ne.y*this.worldSize,Qe+Ne.toAltitude(),1];return Ie.transformMat4$1(ai,ai,this.pixelMatrix),ai[3]>0?new Ie.Point(ai[0]/ai[3],ai[1]/ai[3]):new Ie.Point(Number.MAX_VALUE,Number.MAX_VALUE)}_getBoundsNonRectangular(){const{top:Ne,left:Ge}=this._edgeInsets,Qe=this.height-this._edgeInsets.bottom,ai=this.width-this._edgeInsets.right,ui=this.pointLocation3D(new Ie.Point(Ge,Ne)),Si=this.pointLocation3D(new Ie.Point(ai,Ne)),Mi=this.pointLocation3D(new Ie.Point(ai,Qe)),Fi=this.pointLocation3D(new Ie.Point(Ge,Qe));let qi=Math.min(ui.lng,Si.lng,Mi.lng,Fi.lng),Xi=Math.max(ui.lng,Si.lng,Mi.lng,Fi.lng),hn=Math.min(ui.lat,Si.lat,Mi.lat,Fi.lat),Dn=Math.max(ui.lat,Si.lat,Mi.lat,Fi.lat);const In=Math.pow(2,-this.zoom)/16*270,On=this.projection.name==="globe"?1:4,Bn=(Vn,pn,Pn,Jn,qn)=>{const gr=(Vn+Pn)/2,vr=(pn+Jn)/2,dr=new Ie.Point(gr,vr),{lng:$r,lat:Pr}=this.pointLocation3D(dr),Vr=Math.max(0,qi-$r,hn-Pr,$r-Xi,Pr-Dn);qi=Math.min(qi,$r),Xi=Math.max(Xi,$r),hn=Math.min(hn,Pr),Dn=Math.max(Dn,Pr),(qn<On||Vr>In)&&(Bn(Vn,pn,gr,vr,qn+1),Bn(gr,vr,Pn,Jn,qn+1))};if(Bn(Ge,Ne,ai,Ne,1),Bn(ai,Ne,ai,Qe,1),Bn(ai,Qe,Ge,Qe,1),Bn(Ge,Qe,Ge,Ne,1),this.projection.name==="globe"){const[Vn,pn]=Ie.polesInViewport(this);Vn?(Dn=90,Xi=180,qi=-180):pn&&(hn=-90,Xi=180,qi=-180)}return new Ie.LngLatBounds(new Ie.LngLat(qi,hn),new Ie.LngLat(Xi,Dn))}_getBoundsRectangular(Ne,Ge){const{top:Qe,left:ai}=this._edgeInsets,ui=this.height-this._edgeInsets.bottom,Si=this.width-this._edgeInsets.right,Mi=new Ie.Point(ai,Qe),Fi=new Ie.Point(Si,Qe),qi=new Ie.Point(Si,ui),Xi=new Ie.Point(ai,ui);let hn=this.pointCoordinate(Mi,Ne),Dn=this.pointCoordinate(Fi,Ne);const In=this.pointCoordinate(qi,Ge),On=this.pointCoordinate(Xi,Ge),Bn=(Vn,pn)=>(pn.y-Vn.y)/(pn.x-Vn.x);return hn.y>1&&Dn.y>=0?hn=new Ie.MercatorCoordinate((1-On.y)/Bn(On,hn)+On.x,1):hn.y<0&&Dn.y<=1&&(hn=new Ie.MercatorCoordinate(-On.y/Bn(On,hn)+On.x,0)),Dn.y>1&&hn.y>=0?Dn=new Ie.MercatorCoordinate((1-In.y)/Bn(In,Dn)+In.x,1):Dn.y<0&&hn.y<=1&&(Dn=new Ie.MercatorCoordinate(-In.y/Bn(In,Dn)+In.x,0)),new Ie.LngLatBounds().extend(this.coordinateLocation(hn)).extend(this.coordinateLocation(Dn)).extend(this.coordinateLocation(On)).extend(this.coordinateLocation(In))}_getBoundsRectangularTerrain(){const Ne=this.elevation;if(!Ne.visibleDemTiles.length||Ne.isUsingMockSource())return this._getBoundsRectangular(0,0);const Ge=Ne.visibleDemTiles.reduce((Qe,ai)=>{if(ai.dem){const ui=ai.dem.tree;Qe.min=Math.min(Qe.min,ui.minimums[0]),Qe.max=Math.max(Qe.max,ui.maximums[0])}return Qe},{min:Number.MAX_VALUE,max:0});return this._getBoundsRectangular(Ge.min*Ne.exaggeration(),Ge.max*Ne.exaggeration())}getBounds(){return this.projection.name==="mercator"||this.projection.name==="equirectangular"?this._terrainEnabled()?this._getBoundsRectangularTerrain():this._getBoundsRectangular(0,0):this._getBoundsNonRectangular()}horizonLineFromTop(Ne=!0){const Ge=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,Qe=this.height/2-Ge*(1-this._horizonShift);return Ne?Math.max(0,Qe):Qe}getMaxBounds(){return this.maxBounds}setMaxBounds(Ne){this.maxBounds=Ne,this.minLat=-Ie.MAX_MERCATOR_LATITUDE,this.maxLat=Ie.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,Ne&&(this.minLat=Ne.getSouth(),this.maxLat=Ne.getNorth(),this.minLng=Ne.getWest(),this.maxLng=Ne.getEast(),this.maxLng<this.minLng&&(this.maxLng+=360)),this.worldMinX=Ie.mercatorXfromLng(this.minLng)*this.tileSize,this.worldMaxX=Ie.mercatorXfromLng(this.maxLng)*this.tileSize,this.worldMinY=Ie.mercatorYfromLat(this.maxLat)*this.tileSize,this.worldMaxY=Ie.mercatorYfromLat(this.minLat)*this.tileSize,this._constrain()}calculatePosMatrix(Ne,Ge){return this.projection.createTileMatrix(this,Ge,Ne)}calculateDistanceTileData(Ne){const Ge=Ne.key,Qe=this._distanceTileDataCache;if(Qe[Ge])return Qe[Ge];const ai=Ne.canonical,ui=1/this.height,Si=this.cameraWorldSize,Mi=Si/this.zoomScale(ai.z),Fi=(ai.x+Math.pow(2,ai.z)*Ne.wrap)*Mi,qi=ai.y*Mi,Xi=this.point;Xi.x*=Si/this.worldSize,Xi.y*=Si/this.worldSize;const hn=this.angle,Dn=Math.sin(-hn),In=-Math.cos(-hn);return Qe[Ge]={bearing:[Dn,In],center:[(Xi.x-Fi)*ui,(Xi.y-qi)*ui],scale:Mi/Ie.EXTENT*ui},Qe[Ge]}calculateFogTileMatrix(Ne){const Ge=Ne.key,Qe=this._fogTileMatrixCache;if(Qe[Ge])return Qe[Ge];const ai=this.projection.createTileMatrix(this,this.cameraWorldSizeForFog,Ne);return Ie.multiply(ai,this.worldToFogMatrix,ai),Qe[Ge]=new Float32Array(ai),Qe[Ge]}calculateProjMatrix(Ne,Ge=!1){const Qe=Ne.key,ai=Ge?this._alignedProjMatrixCache:this._projMatrixCache;if(ai[Qe])return ai[Qe];const ui=this.calculatePosMatrix(Ne,this.worldSize);return Ie.multiply(ui,this.projection.isReprojectedInTileSpace?this.mercatorMatrix:Ge?this.alignedProjMatrix:this.projMatrix,ui),ai[Qe]=new Float32Array(ui),ai[Qe]}calculatePixelsToTileUnitsMatrix(Ne){const Ge=Ne.tileID.key,Qe=this._pixelsToTileUnitsCache;if(Qe[Ge])return Qe[Ge];const ai=function(ui,Si){const{scale:Mi}=ui.tileTransform,Fi=Mi*Ie.EXTENT/(ui.tileSize*Math.pow(2,Si.zoom-ui.tileID.overscaledZ+ui.tileID.canonical.z));return qi=new Float32Array(4),Dn=(Xi=Si.inverseAdjustmentMatrix)[1],In=Xi[2],On=Xi[3],Vn=(hn=[Fi,Fi])[1],qi[0]=Xi[0]*(Bn=hn[0]),qi[1]=Dn*Bn,qi[2]=In*Vn,qi[3]=On*Vn,qi;var qi,Xi,hn,Dn,In,On,Bn,Vn}(Ne,this);return Qe[Ge]=ai,Qe[Ge]}customLayerMatrix(){return this.mercatorMatrix.slice()}globeToMercatorMatrix(){if(this.projection.name==="globe"){const Ne=1/this.worldSize,Ge=Ie.fromScaling([],[Ne,Ne,Ne]);return Ie.multiply(Ge,Ge,this.globeMatrix),Ge}}recenterOnTerrain(){if(!this._elevation||this.projection.name==="globe")return;const Ne=this._elevation;this._updateCameraState();const Ge=Ie.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,Qe=this._computeCameraPosition(Ge),ai=this._camera.forward(),ui=Ie.mercatorZfromAltitude(1,this._center.lat);Qe[2]/=ui,ai[2]/=ui,Ie.normalize(ai,ai);const Si=Ne.raycast(Qe,ai,Ne.exaggeration());if(Si){const Mi=Ie.scaleAndAdd([],Qe,ai,Si),Fi=new Ie.MercatorCoordinate(Mi[0],Mi[1],Ie.mercatorZfromAltitude(Mi[2],Ie.latFromMercatorY(Mi[1]))),qi=(Fi.z+Ie.length([Fi.x-Qe[0],Fi.y-
1522Qe[1],Fi.z-Qe[2]*ui]))*this._pixelsPerMercatorPixel;this._seaLevelZoom=this._zoomFromMercatorZ(qi),this._centerAltitude=Fi.toAltitude(),this._center=this.coordinateLocation(Fi),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCamera(Ne=!1){if(!this._elevation)return;const Ge=this._elevation,Qe=Ie.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,ai=this._computeCameraPosition(Qe),ui=Ge.getAtPointOrZero(new Ie.MercatorCoordinate(...ai)),Si=this.pixelsPerMeter/this.worldSize*ui,Mi=this._minimumHeightOverTerrain(),Fi=ai[2]-Si;if(Fi<=Mi)if(Fi<0||Ne){const qi=this.locationCoordinate(this._center,this._centerAltitude),Xi=[ai[0],ai[1],qi.z-ai[2]],hn=Ie.length(Xi);Xi[2]-=(Mi-Fi)/this._pixelsPerMercatorPixel;const Dn=Ie.length(Xi);if(Dn===0)return;Ie.scale$2(Xi,Xi,hn/Dn*this._pixelsPerMercatorPixel),this._camera.position=[ai[0],ai[1],qi.z*this._pixelsPerMercatorPixel-Xi[2]],this._updateStateFromCamera()}else this._isCameraConstrained=!0}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;const Ne=this.projection.name==="globe"||this.mercatorFromTransition;if(this.projection.isReprojectedInTileSpace||Ne){const Dn=this.center;return Dn.lat=Ie.clamp(Dn.lat,this.minLat,this.maxLat),(this.maxBounds||!this.renderWorldCopies&&!Ne)&&(Dn.lng=Ie.clamp(Dn.lng,this.minLng,this.maxLng)),this.center=Dn,void(this._constraining=!1)}const Ge=this._unmodified,{x:Qe,y:ai}=this.point;let ui=0,Si=Qe,Mi=ai;const Fi=this.width/2,qi=this.height/2,Xi=this.worldMinY*this.scale,hn=this.worldMaxY*this.scale;if(ai-qi<Xi&&(Mi=Xi+qi),ai+qi>hn&&(Mi=hn-qi),hn-Xi<this.height&&(ui=Math.max(ui,this.height/(hn-Xi)),Mi=(hn+Xi)/2),this.maxBounds||!this._renderWorldCopies||!this.projection.wrap){const Dn=this.worldMinX*this.scale,In=this.worldMaxX*this.scale,On=this.worldSize/2-(Dn+In)/2;Si=(Qe+On+this.worldSize)%this.worldSize-On,Si-Fi<Dn&&(Si=Dn+Fi),Si+Fi>In&&(Si=In-Fi),In-Dn<this.width&&(ui=Math.max(ui,this.width/(In-Dn)),Si=(In+Dn)/2)}Si===Qe&&Mi===ai||(this.center=this.unproject(new Ie.Point(Si,Mi))),ui&&(this.zoom+=this.scaleZoom(ui)),this._constrainCamera(),this._unmodified=Ge,this._constraining=!1}_minZoomForBounds(){let Ne=Math.max(0,this.scaleZoom(this.height/(this.worldMaxY-this.worldMinY)));return this.maxBounds&&(Ne=Math.max(Ne,this.scaleZoom(this.width/(this.worldMaxX-this.worldMinX)))),Ne}_maxCameraBoundsDistance(){return this._mercatorZfromZoom(this._minZoomForBounds())}_calcMatrices(){if(!this.height)return;const Ne=this.centerOffset,Ge=this.pixelsPerMeter;this.projection.name==="globe"&&(this._mercatorScaleRatio=Ie.mercatorZfromAltitude(1,this.center.lat)/Ie.mercatorZfromAltitude(1,Ie.GLOBE_SCALE_MATCH_LATITUDE));const Qe=Vh(this.projection,this.zoom,this.width,this.height,1024);this._pixelsPerMercatorPixel=this.projection.pixelSpaceConversion(this.center.lat,this.worldSize,Qe),this.cameraToCenterDistance=.5/Math.tan(.5*this._fov)*this.height*this._pixelsPerMercatorPixel,this._updateCameraState(),this._farZ=this.projection.farthestPixelDistance(this),this._nearZ=this.height/50;const ai=this.projection.zAxisUnit==="meters"?Ge:1,ui=this._camera.getWorldToCamera(this.worldSize,ai),Si=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,this._farZ);Si[8]=2*-Ne.x/this.width,Si[9]=2*Ne.y/this.height;let Mi=Ie.mul([],Si,ui);if(this.projection.isReprojectedInTileSpace){const vr=this.locationCoordinate(this.center),dr=Ie.identity([]);Ie.translate(dr,dr,[vr.x*this.worldSize,vr.y*this.worldSize,0]),Ie.multiply(dr,dr,bp(this)),Ie.translate(dr,dr,[-vr.x*this.worldSize,-vr.y*this.worldSize,0]),Ie.multiply(Mi,Mi,dr),this.inverseAdjustmentMatrix=function($r){const Pr=bp($r,!0);return Gi([],[Pr[0],Pr[1],Pr[4],Pr[5]])}(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];this.mercatorMatrix=Ie.scale([],Mi,[this.worldSize,this.worldSize,this.worldSize/ai,1]),this.projMatrix=Mi,this.invProjMatrix=Ie.invert(new Float64Array(16),this.projMatrix);const Fi=Ie.invert([],Si);this.frustumCorners=Ie.FrustumCorners.fromInvProjectionMatrix(Fi,this.horizonLineFromTop(),this.height);const qi=new Float32Array(16);
vendor: 4,256 bytes, line 1522
1522Ie.identity(qi),Ie.scale(qi,qi,[1,-1,1]),Ie.rotateX(qi,qi,this._pitch),Ie.rotateZ(qi,qi,this.angle);const Xi=Ie.perspective(new Float32Array(16),this._fov,this.width/this.height,this._nearZ,this._farZ),hn=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;Xi[8]=2*-Ne.x/this.width,Xi[9]=2*(Ne.y+hn)/this.height,this.skyboxMatrix=Ie.multiply(qi,Xi,qi);const Dn=this.point,In=Dn.x,On=Dn.y,Bn=this.width%2/2,Vn=this.height%2/2,pn=Math.cos(this.angle),Pn=Math.sin(this.angle),Jn=In-Math.round(In)+pn*Bn+Pn*Vn,qn=On-Math.round(On)+pn*Vn+Pn*Bn,gr=new Float64Array(Mi);if(Ie.translate(gr,gr,[Jn>.5?Jn-1:Jn,qn>.5?qn-1:qn,0]),this.alignedProjMatrix=gr,Mi=Ie.create(),Ie.scale(Mi,Mi,[this.width/2,-this.height/2,1]),Ie.translate(Mi,Mi,[1,-1,0]),this.labelPlaneMatrix=Mi,Mi=Ie.create(),Ie.scale(Mi,Mi,[1,-1,1]),Ie.translate(Mi,Mi,[-1,-1,0]),Ie.scale(Mi,Mi,[2/this.width,2/this.height,1]),this.glCoordMatrix=Mi,this.pixelMatrix=Ie.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},Mi=Ie.invert(new Float64Array(16),this.pixelMatrix),!Mi)throw new Error("failed to invert matrix");if(this.pixelMatrixInverse=Mi,this.projection.name==="globe"||this.mercatorFromTransition){this.globeMatrix=Ie.calculateGlobeMatrix(this);const vr=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=Ie.transformMat4(vr,vr,ui),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=Mi;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const Ne=this.cameraWorldSizeForFog,Ge=this.cameraPixelsPerMeter,Qe=this._camera.position,ai=1/this.height/this._pixelsPerMercatorPixel,ui=[Ne,Ne,Ge];Ie.scale$2(ui,ui,ai),Ie.scale$2(Qe,Qe,-1),Ie.multiply$2(Qe,Qe,ui);const Si=Ie.create();Ie.translate(Si,Si,Qe),Ie.scale(Si,Si,ui),this.mercatorFogMatrix=Si,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(Ne,Ge,ai)}_computeCameraPosition(Ne){const Ge=(Ne=Ne||this.pixelsPerMeter)/this.pixelsPerMeter,Qe=this._camera.forward(),ai=this.point,ui=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*Ge-Ne/this.worldSize*this._centerAltitude;return[ai.x/this.worldSize-Qe[0]*ui,ai.y/this.worldSize-Qe[1]*ui,Ne/this.worldSize*this._centerAltitude-Qe[2]*ui]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(Ne){const Ge=this._maxCameraBoundsDistance()*Math.cos(this._pitch),Qe=this._camera.position[2],ai=Ne[2];let ui=1;this.projection.wrap&&(this.center=this.center.wrap()),ai>0&&(ui=Math.min((Ge-Qe)/ai,1)),this._camera.position=Ie.scaleAndAdd([],this._camera.position,Ne,ui),this._updateStateFromCamera()}_updateStateFromCamera(){const Ne=this._camera.position,Ge=this._camera.forward(),{pitch:Qe,bearing:ai}=this._camera.getPitchBearing(),ui=Ie.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,Si=this._mercatorZfromZoom(this._maxZoom)*Math.cos(Ie.degToRad(this._maxPitch)),Mi=Math.max((Ne[2]-ui)/Math.cos(Qe),Si),Fi=this._zoomFromMercatorZ(Mi);Ie.scaleAndAdd(Ne,Ne,Ge,Mi),this._pitch=Ie.clamp(Qe,Ie.degToRad(this.minPitch),Ie.degToRad(this.maxPitch)),this.angle=Ie.wrap(ai,-Math.PI,Math.PI),this._setZoom(Ie.clamp(Fi,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new Ie.MercatorCoordinate(Ne[0],Ne[1],Ne[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(Ne){return Math.pow(2,Ne)*this.tileSize}_mercatorZfromZoom(Ne){return this.cameraToCenterDistance/this._worldSizeFromZoom(Ne)}_minimumHeightOverTerrain(){const Ne=Math.min((this._seaLevelZoom!=null?this._seaLevelZoom:this._zoom)+4,this._maxZoom);return this._mercatorZfromZoom(Ne)}_zoomFromMercatorZ(Ne){return this.scaleZoom(this.cameraToCenterDistance/(Ne*this.tileSize))}zoomFromMercatorZAdjusted(Ne){let Ge=0,Qe=Ie.GLOBE_ZOOM_THRESHOLD_MAX,ai=0,ui=1/0;for(;Qe-Ge>1e-6&&Qe>Ge;){const Si=Ge+.5*(Qe-Ge),Mi=this.tileSize*Math.pow(2,Si),Fi=this.getCameraToCenterDistance(this.projection,Si,Mi),qi=this.scaleZoom(Fi/(Ne*this.tileSize)),Xi=Math.abs(Si-qi
1522);Xi<ui&&(ui=Xi,ai=Si),Si<qi?Ge=Si:Qe=Si}return ai}_terrainEnabled(){return!(!this._elevation||!this.projection.supportsTerrain&&(Ie.warnOnce("Terrain is not yet supported with alternate projections. Use mercator or globe to enable terrain."),1))}anyCornerOffEdge(Ne,Ge){const Qe=Math.min(Ne.x,Ge.x),ai=Math.max(Ne.x,Ge.x),ui=Math.min(Ne.y,Ge.y),Si=Math.max(Ne.y,Ge.y);if(ui<this.horizonLineFromTop(!1))return!0;if(this.projection.name!=="mercator")return!1;const Mi=[new Ie.Point(Qe,ui),new Ie.Point(ai,Si),new Ie.Point(Qe,Si),new Ie.Point(ai,ui)],Fi=this.renderWorldCopies?-3:0,qi=this.renderWorldCopies?4:1;for(const Xi of Mi){const hn=this.pointRayIntersection(Xi);if(hn.t<0)return!0;const Dn=this.rayIntersectionCoordinate(hn);if(Dn.x<Fi||Dn.y<0||Dn.x>qi||Dn.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+Ie.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new Ie.Point(0,0),new Ie.Point(this.width,this.height))}zoomDeltaToMovement(Ne,Ge){const Qe=Ie.length(Ie.sub([],this._camera.position,Ne)),ai=this._zoomFromMercatorZ(Qe)+Ge;return Qe-this._mercatorZfromZoom(ai)}getCameraPoint(){if(this.projection.name==="globe"){const Ne=function([Ge,Qe,ai],ui){const Si=[Ge,Qe,ai,1];Ie.transformMat4$1(Si,Si,ui);const Mi=Si[3]=Math.max(Si[3],1e-6);return Si[0]/=Mi,Si[1]/=Mi,Si[2]/=Mi,Si}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new Ie.Point(Ne[0],Ne[1])}{const Ne=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new Ie.Point(0,Ne))}}getCameraToCenterDistance(Ne,Ge=this.zoom,Qe=this.worldSize){const ai=Vh(Ne,Ge,this.width,this.height,1024),ui=Ne.pixelSpaceConversion(this.center.lat,Qe,ai);return .5/Math.tan(.5*this._fov)*this.height*ui}getWorldToCameraMatrix(){const Ne=this._camera.getWorldToCamera(this.worldSize,this.projection.zAxisUnit==="meters"?this.pixelsPerMeter:1);return this.projection.name==="globe"&&Ie.multiply(Ne,Ne,this.globeMatrix),Ne}}function xp(Ze,Ne){let Ge=!1,Qe=null;const ai=()=>{Qe=null,Ge&&(Ze(),Qe=setTimeout(ai,Ne),Ge=!1)};return()=>(Ge=!0,Qe||ai(),Qe)}class Hh{constructor(Ne){this._hashName=Ne&&encodeURIComponent(Ne),Ie.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=xp(this._updateHashUnthrottled.bind(this),300)}addTo(Ne){return this._map=Ne,Ie.window.addEventListener("hashchange",this._onHashChange,!1),Ne.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),Ie.window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(){const Ne=this._map;if(!Ne)return"";const Ge=Af(Ne);if(this._hashName){const Qe=this._hashName;let ai=!1;const ui=Ie.window.location.hash.slice(1).split("&").map(Si=>{const Mi=Si.split("=")[0];return Mi===Qe?(ai=!0,`${Mi}=${Ge}`):Si}).filter(Si=>Si);return ai||ui.push(`${Qe}=${Ge}`),`#${ui.join("&")}`}return`#${Ge}`}_getCurrentHash(){const Ne=Ie.window.location.hash.replace("#","");if(this._hashName){let Ge;return Ne.split("&").map(Qe=>Qe.split("=")).forEach(Qe=>{Qe[0]===this._hashName&&(Ge=Qe)}),(Ge&&Ge[1]||"").split("/")}return Ne.split("/")}_onHashChange(){const Ne=this._map;if(!Ne)return!1;const Ge=this._getCurrentHash();if(Ge.length>=3&&!Ge.some(Qe=>isNaN(Qe))){const Qe=Ne.dragRotate.isEnabled()&&Ne.touchZoomRotate.isEnabled()?+(Ge[3]||0):Ne.getBearing();return Ne.jumpTo({center:[+Ge[2],+Ge[1]],zoom:+Ge[0],bearing:Qe,pitch:+(Ge[4]||0)}),!0}return!1}_updateHashUnthrottled(){const Ne=Ie.window.location.href.replace(/(#.+)?$/,this.getHashString());Ie.window.history.replaceState(Ie.window.history.state,null,Ne)}}function Af(Ze,Ne){const Ge=Ze.getCenter(),Qe=Math.round(100*Ze.getZoom())/100,ai=Math.ceil((Qe*Math.LN2+Math.log(512/360/.5))/Math.LN10),ui=Math.pow(10,ai),Si=Math.round(Ge.lng*ui)/ui,Mi=Math.round(Ge.lat*ui)/ui,Fi=Ze.getBearing(),qi=Ze.getPitch();let Xi=Ne?`/${Si}/${Mi}/${Qe}`:`${Qe}/${Mi}/${Si}`;return(Fi||qi)&&(Xi+="/"+Math.round(10*Fi)/10),qi&&(Xi+=`/${Math.round(qi)}`),Xi}const ed={linearity:.3,easing:Ie.bezier(0,0,.3,1)},wp=Ie.extend({deceleration:2500,maxSpeed:1400},ed),Uh=Ie.extend({deceleration:20,maxSpeed:1400},ed),Ys=Ie.extend({deceleration:1e3,maxSpeed:360},ed),kl=Ie.extend({deceleration:1e3,maxSpeed:90},ed);class Wm{constructor(Ne){this._map=Ne,this.clear()}clear(){this._inertiaBuffer=[]}record(Ne){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:Ie.exported.now(),settings:Ne})}_drainInertiaBuffer(){const Ne=this._inertiaBuffer,Ge=Ie.exported.now();for(;Ne.length>0&&Ge-Ne[0].time>160;)Ne.shift()}_onMoveEnd(Ne){if(this._map._prefersReducedMotion()||(this._drainInertiaBuffer(),this._inertiaBuffer.length<2))return;const Ge={zoom:0,bearing:0,pitch:0,pan:new Ie.Point(0,0),pinchAround:void 0,around:void 0};for(const{settings:ui}of this._inertiaBuffer)Ge.zoom+=ui.zoomDelta||0,Ge.bearing+=ui.bearingDelta||0,Ge.pitch+=ui.pitchDelta||0,ui.panDelta&&Ge.pan._add(ui.panDelta),ui.around&&(Ge.around=ui.around),ui.pinchAround&&(Ge.pinchAround=ui.pinchAround);const Qe=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ai={};if(Ge.pan.mag()){const ui=Pl(Ge.pan.mag(),Qe,Ie.extend({},wp,Ne||{}));ai.offset=Ge.pan.mult(ui.amount/Ge.pan.mag()),ai.center=this._map.transform.center,Zp(ai,ui)}if(Ge.zoom){const ui=Pl(Ge.zoom,Qe,Uh);ai.zoom=this._map.transform.zoom+ui.amount,Zp(ai,ui)}if(Ge.bearing){const ui=Pl(Ge.bearing,Qe,Ys);
vendor: 3,064 bytes, line 1522
1522ai.bearing=this._map.transform.bearing+Ie.clamp(ui.amount,-179,179),Zp(ai,ui)}if(Ge.pitch){const ui=Pl(Ge.pitch,Qe,kl);ai.pitch=this._map.transform.pitch+ui.amount,Zp(ai,ui)}if(ai.zoom||ai.bearing){const ui=Ge.pinchAround===void 0?Ge.around:Ge.pinchAround;ai.around=ui?this._map.unproject(ui):this._map.getCenter()}return this.clear(),ai.noMoveStart=!0,ai}}function Zp(Ze,Ne){(!Ze.duration||Ze.duration<Ne.duration)&&(Ze.duration=Ne.duration,Ze.easing=Ne.easing)}function Pl(Ze,Ne,Ge){const{maxSpeed:Qe,linearity:ai,deceleration:ui}=Ge,Si=Ie.clamp(Ze*ai/(Ne/1e3),-Qe,Qe),Mi=Math.abs(Si)/(ui*ai);return{easing:Ge.easing,duration:1e3*Mi,amount:Si*(Mi/2)}}class Ta extends Ie.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(Ne,Ge,Qe,ai={}){const ui=zi(Ge.getCanvasContainer(),Qe),Si=Ge.unproject(ui);super(Ne,Ie.extend({point:ui,lngLat:Si,originalEvent:Qe},ai)),this._defaultPrevented=!1,this.target=Ge}}class Df extends Ie.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(Ne,Ge,Qe){const ai=Ne==="touchend"?Qe.changedTouches:Qe.touches,ui=an(Ge.getCanvasContainer(),ai),Si=ui.map(Fi=>Ge.unproject(Fi)),Mi=ui.reduce((Fi,qi,Xi,hn)=>Fi.add(qi.div(hn.length)),new Ie.Point(0,0));super(Ne,{points:ui,point:Mi,lngLats:Si,lngLat:Ge.unproject(Mi),originalEvent:Qe}),this._defaultPrevented=!1}}class am extends Ie.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(Ne,Ge,Qe){super(Ne,{originalEvent:Qe}),this._defaultPrevented=!1}}class lm{constructor(Ne,Ge){this._map=Ne,this._clickTolerance=Ge.clickTolerance}reset(){this._mousedownPos=void 0}wheel(Ne){return this._firePreventable(new am(Ne.type,this._map,Ne))}mousedown(Ne,Ge){return this._mousedownPos=Ge,this._firePreventable(new Ta(Ne.type,this._map,Ne))}mouseup(Ne){this._map.fire(new Ta(Ne.type,this._map,Ne))}preclick(Ne){const Ge=Ie.extend({},Ne);Ge.type="preclick",this._map.fire(new Ta(Ge.type,this._map,Ge))}click(Ne,Ge){this._mousedownPos&&this._mousedownPos.dist(Ge)>=this._clickTolerance||(this.preclick(Ne),this._map.fire(new Ta(Ne.type,this._map,Ne)))}dblclick(Ne){return this._firePreventable(new Ta(Ne.type,this._map,Ne))}mouseover(Ne){this._map.fire(new Ta(Ne.type,this._map,Ne))}mouseout(Ne){this._map.fire(new Ta(Ne.type,this._map,Ne))}touchstart(Ne){return this._firePreventable(new Df(Ne.type,this._map,Ne))}touchmove(Ne){this._map.fire(new Df(Ne.type,this._map,Ne))}touchend(Ne){this._map.fire(new Df(Ne.type,this._map,Ne))}touchcancel(Ne){this._map.fire(new Df(Ne.type,this._map,Ne))}_firePreventable(Ne){if(this._map.fire(Ne),Ne.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Gh{constructor(Ne){this._map=Ne}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(Ne){this._map.fire(new Ta(Ne.type,this._map,Ne))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Ta("c
1522ontextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(Ne){this._delayContextMenu?this._contextMenuEvent=Ne:this._map.fire(new Ta(Ne.type,this._map,Ne)),this._map.listens("contextmenu")&&Ne.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class zu{constructor(Ne,Ge){this._map=Ne,this._el=Ne.getCanvasContainer(),this._container=Ne.getContainer(),this._clickTolerance=Ge.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(Ne,Ge){this.isEnabled()&&Ne.shiftKey&&Ne.button===0&&(hi(),this._startPos=this._lastPos=Ge,this._active=!0)}mousemoveWindow(Ne,Ge){if(!this._active)return;const Qe=Ge,ai=this._startPos,ui=this._lastPos;if(!ai||!ui||ui.equals(Qe)||!this._box&&Qe.dist(ai)<this._clickTolerance)return;this._lastPos=Qe,this._box||(this._box=ci("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",Ne));const Si=Math.min(ai.x,Qe.x),Mi=Math.max(ai.x,Qe.x),Fi=Math.min(ai.y,Qe.y),qi=Math.max(ai.y,Qe.y);this._map._requestDomTask(()=>{this._box&&(this._box.style.transform=`translate(${Si}px,${Fi}px)`,this._box.style.width=Mi-Si+"px",this._box.style.height=qi-Fi+"px")})}mouseupWindow(Ne,Ge){if(!this._active)return;const Qe=this._startPos,ai=Ge;if(Qe&&Ne.button===0){if(this.reset(),Di(),Qe.x!==ai.x||Qe.y!==ai.y)return this._map.fire(new Ie.Event("boxzoomend",{originalEvent:Ne})),{cameraAnimation:ui=>ui.fitScreenCoordinates(Qe,ai,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",Ne)}}keydown(Ne){this._active&&Ne.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",Ne))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),Ei(),delete this._startPos,delete this._lastPos}_fireEvent(Ne,Ge){return this._map.fire(new Ie.Event(Ne,{originalEvent:Ge}))}}function Gd(Ze,Ne){const Ge={};for(let Qe=0;Qe<Ze.length;Qe++)Ge[Ze[Qe].identifier]=Ne[Qe];return Ge}class fd{constructor(Ne){this.reset(),this.numTouches=Ne.numTouches}reset(){this.centroid=void 0,this.startTime=0,this.touches={},this.aborted=!1}touchstart(Ne,Ge,Qe){(this.centroid||Qe.length>this.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===0&&(this.startTime=Ne.timeStamp),Qe.length===this.numTouches&&(this.centroid=function(ai){const ui=new Ie.Point(0,0);for(const Si of ai)ui._add(Si);return ui.div(ai.length)}(Ge),this.touches=Gd(Qe,Ge)))}touchmove(Ne,Ge,Qe){if(this.aborted||!this.centroid)return;const ai=Gd(Qe,Ge);for(const ui in this.touches){const Si=ai[ui];(!Si||Si.dist(this.touches[ui])>30)&&(this.aborted=!0)}}touchend(Ne,Ge,Qe){if((!this.centroid||Ne.timeStamp-this.startTime>500)&&(this.aborted=!0),Qe.length===0){const ai=!this.aborted&&this.centroid;if(this.reset(),ai)return ai}}}class uh{constructor(Ne){this.singleTap=new fd(Ne),this.numTaps=Ne.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(Ne,Ge,Qe){this.singleTap.touchstart(Ne,Ge,Qe)}touchmove(Ne,Ge,Qe){this.singleTap.touchmove(Ne,Ge,Qe)}touchend(Ne,Ge,Qe){const ai=this.singleTap.touchend(Ne,Ge,Qe);if(ai){const ui=Ne.timeStamp-this.lastTime<500,Si=!this.lastTap||this.lastTap.dist(ai)<30;if(ui&&Si||this.reset(),this.count++,this.lastTime=Ne.timeStamp,this.lastTap=ai,this.count===this.numTaps)return this.reset(),ai}}}class jd{constructor(){this._zoomIn=new uh({numTouches:1,numTaps:2}),this._zoomOut=new uh({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(Ne,Ge,Qe){this._zoomIn.touchstart(Ne,Ge,Qe),this._zoomOut.touchstart(Ne,Ge,Qe)}touchmove(Ne,Ge,Qe){this._zoomIn.touchmove(Ne,Ge,Qe),this._zoomOut.touchmove(Ne,Ge,Qe)}touchend(Ne,Ge,Qe){const ai=this._zoomIn.touchend(Ne,Ge,Qe),ui=this._zoomOut.touchend(Ne,Ge,Qe);return ai?(this._active=!0,Ne.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Si=>Si.easeTo({duration:300,zoom:Si.getZoom()+1,around:Si.unproject(ai)},{originalEvent:Ne})}):ui?(this._active=!0,Ne.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Si=>Si.easeTo({duration:300,zoom:Si.getZoom()-1,around:Si.unproject(ui
vendor: 12,283 bytes, line 1522
1522)},{originalEvent:Ne})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const Yp={0:1,2:2};class Wd{constructor(Ne){this.reset(),this._clickTolerance=Ne.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(Ne,Ge){return!1}_move(Ne,Ge){return{}}mousedown(Ne,Ge){if(this._lastPoint)return;const Qe=Je(Ne);this._correctButton(Ne,Qe)&&(this._lastPoint=Ge,this._eventButton=Qe)}mousemoveWindow(Ne,Ge){const Qe=this._lastPoint;if(Qe){if(Ne.preventDefault(),this._eventButton!=null&&function(ai,ui){const Si=Yp[ui];return ai.buttons===void 0||(ai.buttons&Si)!==Si}(Ne,this._eventButton))this.reset();else if(this._moved||!(Ge.dist(Qe)<this._clickTolerance))return this._moved=!0,this._lastPoint=Ge,this._move(Qe,Ge)}}mouseupWindow(Ne){this._lastPoint&&Je(Ne)===this._eventButton&&(this._moved&&Di(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class dh extends Wd{mousedown(Ne,Ge){super.mousedown(Ne,Ge),this._lastPoint&&(this._active=!0)}_correctButton(Ne,Ge){return Ge===0&&!Ne.ctrlKey}_move(Ne,Ge){return{around:Ge,panDelta:Ge.sub(Ne)}}}class Sp extends Wd{_correctButton(Ne,Ge){return Ge===0&&Ne.ctrlKey||Ge===2}_move(Ne,Ge){const Qe=.8*(Ge.x-Ne.x);if(Qe)return this._active=!0,{bearingDelta:Qe}}contextmenu(Ne){Ne.preventDefault()}}class Kp extends Wd{_correctButton(Ne,Ge){return Ge===0&&Ne.ctrlKey||Ge===2}_move(Ne,Ge){const Qe=-.5*(Ge.y-Ne.y);if(Qe)return this._active=!0,{pitchDelta:Qe}}contextmenu(Ne){Ne.preventDefault()}}class md{constructor(Ne,Ge){this._map=Ne,this._el=Ne.getCanvasContainer(),this._minTouches=1,this._clickTolerance=Ge.clickTolerance||1,this.reset(),Ie.bindAll(["_addTouchPanBlocker","_showTouchPanBlockerAlert"],this)}reset(){this._active=!1,this._touches={},this._sum=new Ie.Point(0,0)}touchstart(Ne,Ge,Qe){return this._calculateTransform(Ne,Ge,Qe)}touchmove(Ne,Ge,Qe){if(this._active&&!(Qe.length<this._minTouches)){if(this._map._cooperativeGestures&&!this._map.isMoving()){if(Qe.length===1&&!Ie.isFullscreen())return void this._showTouchPanBlockerAlert();this._alertContainer.style.visibility!=="hidden"&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}return Ne.cancelable&&Ne.preventDefault(),this._calculateTransform(Ne,Ge,Qe)}}touchend(Ne,Ge,Qe){this._calculateTransform(Ne,Ge,Qe),this._active&&Qe.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(Ne,Ge,Qe){Qe.length>0&&(this._active=!0);const ai=Gd(Qe,Ge),ui=new Ie.Point(0,0),Si=new Ie.Point(0,0);let Mi=0;for(const qi in ai){const Xi=ai[qi],hn=this._touches[qi];hn&&(ui._add(Xi),Si._add(Xi.sub(hn)),Mi++,ai[qi]=Xi)}if(this._touches=ai,Mi<this._minTouches||!Si.mag())return;const Fi=Si.div(Mi);return this._sum._add(Fi),this._sum.mag()<this._clickTolerance?void 0:{around:ui.div(Mi),panDelta:Fi}}enable(){this._enabled=!0,this._map._cooperativeGestures&&(this._addTouchPanBlocker(),this._el.classList.add("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page"))}disable(){this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove(),this._el.classList.remove("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page")),this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}_addTouchPanBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=ci("div","mapboxgl-touch-pan-blocker",this._map._container),this._alertContainer.textContent=this._map._getUIString("TouchPanBlocker.Message"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showTouchPanBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","null")},500)}}class Tp{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(Ne){}_move(Ne,Ge,Qe){return{}}touchstart(Ne,Ge,Qe){this._firstTwoTouches||Qe.length<2||(this._firstTwoTouches=[Qe[0].identifier,Qe[1].identifier],this._start([Ge[0],Ge[1]]))}touchmove(Ne,Ge,Qe){const ai=this._firstTwoTouches;if(!ai)return;Ne.preventDefault();const[ui,Si]=ai,Mi=jh(Qe,Ge,ui),Fi=jh(Qe,Ge,Si);if(!Mi||!Fi)return;const qi=this._aroundCenter?null:Mi.add(Fi).div(2);return this._move([Mi,Fi],qi,Ne)}touchend(Ne,Ge,Qe){if(!this._firstTwoTouches)return;const[ai,ui]=this._firstTwoTouches,Si=jh(Qe,Ge,ai),Mi=jh(Qe,Ge,ui);Si&&Mi||(this._active&&Di(),this.reset())}touchcancel(){this.reset()}enable(Ne){this._enabled=!0,this._aroundCenter=!!Ne&&Ne.around==="center"}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function jh(Ze,Ne,Ge){for(let Qe=0;Qe<Ze.length;Qe++)if(Ze[Qe].identifier===Ge)return Ne[Qe]}function Ep(Ze,Ne){return Math.log(Ze/Ne)/Math.LN2}class Cp extends Tp{reset(){super.reset(),this._distance=0,this._startDistance=0}_start(Ne){this._startDistance=this._distance=Ne[0].dist(Ne[1])}_move(Ne,Ge){const Qe=this._distance;if(this._distance=Ne[0].dist(Ne[1]),this._active||!(Math.abs(Ep(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Ep(this._distance,Qe),pinchAround:Ge}}}function Mf(Ze,Ne){return 180*Ze.angleWith(Ne)/Math.PI}class Rn extends Tp{reset(){super.reset(),this._minDiameter=0,this._startVector=void 0,this._vector=void 0}_start(Ne){this._startVector=this._vector=Ne[0].sub(Ne[1]),this._minDiameter=Ne[0].dist(Ne[1])}_move(Ne,Ge){const Qe=this._vector;if(this._vector=Ne[0].sub(Ne[1]),Qe&&(this._active||!this._isBelowThreshold(this._vector)))return this._active=!0,{bearingDelta:Mf(this._vector,Qe),pinchAround:Ge}}_isBelowThreshold(Ne){this._minDiameter=Math.min(this._minDiameter,Ne.mag());const Ge=25/(Math.PI*this._minDiameter)*360,Qe=this._startVector;if(!Qe)return!1;const ai=Mf(Ne,Qe);return Math.abs(ai)<Ge}}function Bu(Ze){return Math.abs(Ze.y)>Math.abs(Ze.x)}class Ap extends Tp{constructor(Ne){super(),this._map=Ne}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(Ne){this._lastPoints=Ne,Bu(Ne[0].sub(Ne[1]))&&(this._valid=!1)}_move(Ne,Ge,Qe){const ai=this._lastPoints;if(!ai)return;const ui=Ne[0].sub(ai[0]),Si=Ne[1].sub(ai[1]);return this._map._cooperativeGestures&&!Ie.isFullscreen()&&Qe.touches.length<3||(this._valid=this.gestureBeginsVertically(ui,Si,Qe.timeStamp),!this._valid)?void 0:(this._lastPoints=Ne,this._active=!0,{pitchDelta:(ui.y+Si.y)/2*-.5})}gestureBeginsVertically(Ne,Ge,Qe){if(this._valid!==void 0)return this._valid;const ai=Ne.mag()>=2,ui=Ge.mag()>=2;if(!ai&&!ui)return;if(!ai||!ui)return this._firstMove==null&&(this._firstMove=Qe),Qe-this._firstMove<100&&void 0;const Si=Ne.y>0==Ge.y>0;return Bu(Ne)&&Bu(Ge)&&Si}}const Lc={panStep:100,bearingStep:15,pitchStep:10};class ta{constructor(){const Ne=Lc;this._panStep=Ne.panStep,this._bearingStep=Ne.bearingStep,this._pitchStep=Ne.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(Ne){if(Ne.altKey||Ne.ctrlKey||Ne.metaKey)return;let Ge=0,Qe=0,ai=0,ui=0,Si=0;switch(Ne.keyCode){case 61:case 107:case 171:case 187:Ge=1;break;case 189:case 109:case 173:Ge=-1;break;case 37:Ne.shiftKey?Qe=-1:(Ne.preventDefault(),ui=-1);break;case 39:Ne.shiftKey?Qe=1:(Ne.preventDefault(),ui=1);break;case 38:Ne.shiftKey?ai=1:(Ne.preventDefault(),Si=-1);break;case 40:Ne.shiftKey?ai=-1:(Ne.preventDefault(),Si=1);break;default:return}return this._rotationDisabled&&(Qe=0,ai=0),{cameraAnimation:Mi=>{const Fi=Mi.getZoom();Mi.easeTo({duration:300,easeId:"keyboardHandler",easing:qm,zoom:Ge?Math.round(Fi)+Ge*(Ne.shiftKey?2:1):Fi,bearing:Mi.getBearing()+Qe*this._bearingStep,pitch:Mi.getPitch()+ai*this._pitchStep,offset:[-ui*this._panStep,-Si*this._panStep],center:Mi.getCenter()},{originalEvent:Ne})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function qm(Ze){return Ze*(2-Ze)}const Jp=4.000244140625;class kf{constructor(Ne,Ge){this._map=Ne,this._el=Ne.getCanvasContainer(),this._handler=Ge,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,Ie.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}setZoomRate(Ne){this._defaultZoomRate=Ne}setWheelZoomRate(Ne){this._wheelZoomRate=Ne}isEnabled(){return!!this._enabled}isActive(){return this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(Ne){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!Ne&&Ne.around==="center",this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(Ne){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(Ne.ctrlKey||Ne.metaKey||this.isZooming()||Ie.isFullscreen()))return void this._showBlockerAlert();this._alertContainer.style.visibility!=="hidden"&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let Ge=Ne.deltaMode===Ie.window.WheelEvent.DOM_DELTA_LINE?40*Ne.deltaY:Ne.deltaY;const Qe=Ie.exported.now(),ai=Qe-(this._lastWheelEventTime||0);this._lastWheelEventTime=Qe,Ge!==0&&Ge%Jp==0?this._type="wheel":Ge!==0&&Math.abs(Ge)<4?this._type="trackpad":ai>400?(this._type=null,this._lastValue=Ge,this._timeout=setTimeout(this._onTimeout,40,Ne)):this._type||(this._type=Math.abs(ai*Ge)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,Ge+=this._lastValue)),Ne.shiftKey&&Ge&&(Ge/=4),this._type&&(this._lastWheelEvent=Ne,this._delta-=Ge,this._active||this._start(Ne)),Ne.preventDefault()}_onTimeout(Ne){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Ne)}_start(Ne){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const Ge=zi(this._el,Ne);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:Ge,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const Ne=this._map.transform;this._type==="wheel"&&Ne.projection.wrap&&(Ne._center.lng>=180||Ne._center.lng<=-180)&&(this._prevEase=null,this._easing=null,this._lastWheelEvent=null,this._lastWheelEventTime=0);const Ge=()=>Ne._terrainEnabled()&&this._aroundCoord?Ne.computeZoomRelativeTo(this._aroundCoord):Ne.zoom;if(this._delta!==0){const Fi=this._type==="wheel"&&Math.abs(this._delta)>Jp?this._wheelZoomRate:this._defaultZoomRate;let qi=2/(1+Math.exp(-Math.abs(this._delta*Fi)));this._delta<0&&qi!==0&&(qi=1/qi);const Xi=Ge(),hn=Math.pow(2,Xi),Dn=typeof this._targetZoom=="number"?Ne.zoomScale(this._targetZoom):hn;this._targetZoom=Math.min(Ne.maxZoom,Math.max(Ne.minZoom,Ne.scaleZoom(Dn*qi))),this._type==="wheel"&&(this._startZoom=Xi,this._easing=this._smoothOutEasing(200)),this._delta=0}const Qe=typeof this._targetZoom=="number"?this._targetZoom:Ge(),ai=this._startZoom,ui=this._easing;let Si,Mi=!1;if(this._type==="wheel"&&ai&&ui){const Fi=Math.min((Ie.exported.now()-this._lastWheelEventTime)/200,1),qi=ui(Fi);Si=Ie.number(ai,Qe,qi),Fi<1?this._frameId||(this._frameId=!0):Mi=!0}else Si=Qe,Mi=!0;return this._active=!0,Mi&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Mi,zoomDelta:Si-Ge(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(Ne){let Ge=Ie.ease;
vendor: 9,064 bytes, line 1522
1522if(this._prevEase){const Qe=this._prevEase,ai=(Ie.exported.now()-Qe.start)/Qe.duration,ui=Qe.easing(ai+.01)-Qe.easing(ai),Si=.27/Math.sqrt(ui*ui+1e-4)*.01,Mi=Math.sqrt(.0729-Si*Si);Ge=Ie.bezier(Si,Mi,.25,1)}return this._prevEase={start:Ie.exported.now(),duration:Ne,easing:Ge},Ge}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=ci("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(Ie.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","null")},200)}}class hh{constructor(Ne,Ge){this._clickZoom=Ne,this._tapZoom=Ge}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class $c{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(Ne,Ge){return Ne.preventDefault(),{cameraAnimation:Qe=>{Qe.easeTo({duration:300,zoom:Qe.getZoom()+(Ne.shiftKey?-1:1),around:Qe.unproject(Ge)},{originalEvent:Ne})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ng{constructor(){this._tap=new uh({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(Ne,Ge,Qe){this._swipePoint||(this._tapTime&&Ne.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?Qe.length>0&&(this._swipePoint=Ge[0],this._swipeTouch=Qe[0].identifier):this._tap.touchstart(Ne,Ge,Qe))}touchmove(Ne,Ge,Qe){if(this._tapTime){if(this._swipePoint){if(Qe[0].identifier!==this._swipeTouch)return;const ai=Ge[0],ui=ai.y-this._swipePoint.y;return this._swipePoint=ai,Ne.preventDefault(),this._active=!0,{zoomDelta:ui/128}}}else this._tap.touchmove(Ne,Ge,Qe)}touchend(Ne,Ge,Qe){this._tapTime?this._swipePoint&&Qe.length===0&&this.reset():this._tap.touchend(Ne,Ge,Qe)&&(this._tapTime=Ne.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Pf{constructor(Ne,Ge,Qe){this._el=Ne,this._mousePan=Ge,this._touchPan=Qe}enable(Ne){this._inertiaOptions=Ne||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Vg{constructor(Ne,Ge,Qe){this._pitchWithRotate=Ne.pitchWithRotate,this._mouseRotate=Ge,this._mousePitch=Qe}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Hg{constructor(Ne,Ge,Qe,ai){this._el=Ne,this._touchZoom=Ge,this._touchRotate=Qe,this._tapDragZoom=ai,this._rotationDisabled=!1,this._enabled=!0}enable(Ne){this._touchZoom.enable(Ne),this._rotationDisabled||this._touchRotate.enable(Ne),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const Vl=Ze=>Ze.zoom||Ze.drag||Ze.pitch||Ze.rotate;class qd extends Ie.Event{}class Dp{constructor(){this.constants=[1,1,.01],this.radius=0}setup(Ne,Ge){const Qe=Ie.sub([],Ge,Ne);this.radius=Ie.length(Qe[2]<0?Ie.div([],Qe,this.constants):[Qe[0],Qe[1],0])}projectRay(Ne){Ie.div(Ne,Ne,this.constants),Ie.normalize(Ne,Ne),Ie.mul$1(Ne,Ne,this.constants);const Ge=Ie.scale$2([],Ne,this.radius);if(Ge[2]>0){const Qe=Ie.scale$2([],[0,0,1],Ie.dot(Ge,[0,0,1])),ai=Ie.scale$2([],Ie.normalize([],[Ge[0],Ge[1],0]),this.radius),ui=Ie.add([],Ge,Ie.scale$2([],Ie.sub([],Ie.add([],ai,Qe),Ge),2));Ge[0]=ui[0],Ge[1]=ui[1]}return Ge}}function Nu(Ze){return Ze.panDelta&&Ze.panDelta.mag()||Ze.zoomDelta||Ze.bearingDelta||Ze.pitchDelta}class fu{constructor(Ne,Ge){this._map=Ne,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Wm(Ne),this._bearingSnap=Ge.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new Dp,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(Ge),Ie.bindAll(["handleEvent","handleWindowEvent"],this);const Qe=this._el;this._listeners=[[Qe,"touchstart",{passive:!0}],[Qe,"touchmove",{passive:!1}],[Qe,"touchend",void 0],[Qe,"touchcancel",void 0],[Qe,"mousedown",void 0],[Qe,"mousemove",void 0],[Qe,"mouseup",void 0],[Ie.window.document,"mousemove",{capture:!0}],[Ie.window.document,"mouseup",void 0],[Qe,"mouseover",void 0],[Qe,"mouseout",void 0],[Qe,"dblclick",void 0],[Qe,"click",void 0],[Qe,"keydown",{capture:!1}],[Qe,"keyup",void 0],[Qe,"wheel",{passive:!1}],[Qe,"contextmenu",void 0],[Ie.window,"blur",void 0]];for(const[ai,ui,Si]of this._listeners)ai.addEventListener(ui,ai===Ie.window.document?this.handleWindowEvent:this.handleEvent,Si)}destroy(){for(const[Ne,Ge,Qe]of this._listeners)Ne.removeEventListener(Ge,Ne===Ie.window.document?this.handleWindowEvent:this.handleEvent,Qe)}_addDefaultHandlers(Ne){const Ge=this._map,Qe=Ge.getCanvasContainer();this._add("mapEvent",new lm(Ge,Ne));const ai=Ge.boxZoom=new zu(Ge,Ne);this._add("boxZoom",ai);const ui=new jd,Si=new $c;Ge.doubleClickZoom=new hh(Si,ui),this._add("tapZoom",ui),this._add("clickZoom",Si);const Mi=new Ng;this._add("tapDragZoom",Mi);const Fi=Ge.touchPitch=new Ap(Ge);this._add("touchPitch",Fi);const qi=new Sp(Ne),Xi=new Kp(Ne);Ge.dragRotate=new Vg(Ne,qi,Xi),this._add("mouseRotate",qi,["mousePitch"]),this._add("mousePitch",Xi,["mouseRotate"]);const hn=new dh(Ne),Dn=new md(Ge,Ne);Ge.dragPan=new Pf(Qe,hn,Dn),this._add("mousePan",hn),this._add("touchPan",Dn,["touchZoom","touchRotate"]);const In=new Rn,On=new Cp;Ge.touchZoomRotate=new Hg(Qe,On,In,Mi),this._add("touchRotate",In,["touchPan","touchZoom"]),this._add("touchZoom",On,["touchPan","touchRotate"]),this._add("blockableMapEvent",new Gh(Ge));const Bn=Ge.scrollZoom=new kf(Ge,this);this._add("scrollZoom",Bn,["mousePan"]);const Vn=Ge.keyboard=new ta;this._add("keyboard",Vn);for(const pn of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])Ne.interactive&&Ne[pn]&&Ge[pn].enable(Ne[pn])}_add(Ne,Ge,Qe){this._handlers.push({handlerName:Ne,handler:Ge,allowed:Qe}),this._handlersById[Ne]=Ge}stop(Ne){if(!this._updatingCamera){for(const{handler:Ge}of this._handlers)Ge.reset();this._inertia.clear(),this._fireEvents({},{},Ne),this._changes=[]}}isActive(){for(const{handler:Ne}of this._handlers)if(Ne.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Vl(this._eventsInProgress)||this.isZooming()}_isDragging(){return!!this._eventsInProgress.drag}_blockedByActive(Ne,Ge,Qe){for(const ai in Ne)if(ai!==Qe&&(!Ge||Ge.indexOf(ai)<0))return!0;return!1}handleWindowEvent(Ne){this.handleEvent(Ne,`${Ne.type}Window`)}_getMapTouches(Ne){const Ge=[];for(const Qe of Ne)this._el.contains(Qe.target)&&Ge.push(Qe);return Ge}handleEvent(Ne,Ge){this._updatingCamera=!0;const Qe=Ne.type==="renderFrame",ai=Qe?void 0:Ne,ui={needsRenderFrame:!1},Si={},Mi={},Fi=Ne.touches?this._getMapTouches(Ne.touches):void 0,qi=Fi?an(this._el,Fi):Qe?void 0:zi(this._el,Ne);for(const{handlerName:Dn,handler:In,allowed:On}of this._handlers){if(!In.isEnabled())continue;let Bn;this._blockedByActive(Mi,On,Dn)?In.reset():In[Ge||Ne.type]&&(Bn=In[Ge||Ne.type](Ne,qi,Fi),this.mergeHandlerResult(ui,Si,Bn,Dn,ai),Bn&&Bn.needsRenderFrame&&this._triggerRe
vendor: 22,761 bytes, line 1522
1522nderFrame()),(Bn||In.isActive())&&(Mi[Dn]=In)}const Xi={};for(const Dn in this._previousActiveHandlers)Mi[Dn]||(Xi[Dn]=ai);this._previousActiveHandlers=Mi,(Object.keys(Xi).length||Nu(ui))&&(this._changes.push([ui,Si,Xi]),this._triggerRenderFrame()),(Object.keys(Mi).length||Nu(ui))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:hn}=ui;hn&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],hn(this._map))}mergeHandlerResult(Ne,Ge,Qe,ai,ui){if(!Qe)return;Ie.extend(Ne,Qe);const Si={handlerName:ai,originalEvent:Qe.originalEvent||ui};Qe.zoomDelta!==void 0&&(Ge.zoom=Si),Qe.panDelta!==void 0&&(Ge.drag=Si),Qe.pitchDelta!==void 0&&(Ge.pitch=Si),Qe.bearingDelta!==void 0&&(Ge.rotate=Si)}_applyChanges(){const Ne={},Ge={},Qe={};for(const[ai,ui,Si]of this._changes)ai.panDelta&&(Ne.panDelta=(Ne.panDelta||new Ie.Point(0,0))._add(ai.panDelta)),ai.zoomDelta&&(Ne.zoomDelta=(Ne.zoomDelta||0)+ai.zoomDelta),ai.bearingDelta&&(Ne.bearingDelta=(Ne.bearingDelta||0)+ai.bearingDelta),ai.pitchDelta&&(Ne.pitchDelta=(Ne.pitchDelta||0)+ai.pitchDelta),ai.around!==void 0&&(Ne.around=ai.around),ai.aroundCoord!==void 0&&(Ne.aroundCoord=ai.aroundCoord),ai.pinchAround!==void 0&&(Ne.pinchAround=ai.pinchAround),ai.noInertia&&(Ne.noInertia=ai.noInertia),Ie.extend(Ge,ui),Ie.extend(Qe,Si);this._updateMapTransform(Ne,Ge,Qe),this._changes=[]}_updateMapTransform(Ne,Ge,Qe){const ai=this._map,ui=ai.transform,Si=Pn=>[Pn.x,Pn.y,Pn.z];if((Pn=>{const Jn=this._eventsInProgress.drag;return Jn&&!this._handlersById[Jn.handlerName].isActive()})()&&!Nu(Ne)){const Pn=ui.zoom;ui.cameraElevationReference="sea",ui.recenterOnTerrain(),ui.cameraElevationReference="ground",Pn!==ui.zoom&&this._map._update(!0)}if(ui._isCameraConstrained&&ai._stop(!0),!Nu(Ne))return void this._fireEvents(Ge,Qe,!0);let{panDelta:Mi,zoomDelta:Fi,bearingDelta:qi,pitchDelta:Xi,around:hn,aroundCoord:Dn,pinchAround:In}=Ne;ui._isCameraConstrained&&(Fi>0&&(Fi=0),ui._isCameraConstrained=!1),In!==void 0&&(hn=In),(Fi||(Pn=>Ge[Pn]&&!this._eventsInProgress[Pn])("drag"))&&hn&&(this._dragOrigin=Si(ui.pointCoordinate3D(hn)),this._trackingEllipsoid.setup(ui._camera.position,this._dragOrigin)),ui.cameraElevationReference="sea",ai._stop(!0),hn=hn||ai.transform.centerPoint,qi&&(ui.bearing+=qi),Xi&&(ui.pitch+=Xi),ui._updateCameraState();const On=[0,0,0];if(Mi)if(ui.projection.name==="mercator"){const Pn=this._trackingEllipsoid.projectRay(ui.screenPointToMercatorRay(hn).dir),Jn=this._trackingEllipsoid.projectRay(ui.screenPointToMercatorRay(hn.sub(Mi)).dir);On[0]=Jn[0]-Pn[0],On[1]=Jn[1]-Pn[1]}else{const Pn=ui.pointCoordinate(hn);if(ui.projection.name==="globe"){Mi=Mi.rotate(-ui.angle);const Jn=ui._pixelsPerMercatorPixel/ui.worldSize;On[0]=-Mi.x*Ie.mercatorScale(Ie.latFromMercatorY(Pn.y))*Jn,On[1]=-Mi.y*Ie.mercatorScale(ui.center.lat)*Jn}else{const Jn=ui.pointCoordinate(hn.sub(Mi));Pn&&Jn&&(On[0]=Jn.x-Pn.x,On[1]=Jn.y-Pn.y)}}const Bn=ui.zoom,Vn=[0,0,0];if(Fi){const Pn=Si(Dn||ui.pointCoordinate3D(hn)),Jn={dir:Ie.normalize([],Ie.sub([],Pn,ui._camera.position))};if(Jn.dir[2]<0){const qn=ui.zoomDeltaToMovement(Pn,Fi);Ie.scale$2(Vn,Jn.dir,qn)}}const pn=Ie.add(On,On,Vn);ui._translateCameraConstrained(pn),Fi&&Math.abs(ui.zoom-Bn)>1e-4&&ui.recenterOnTerrain(),ui.cameraElevationReference="ground",this._map._update(),Ne.noInertia||this._inertia.record(Ne),this._fireEvents(Ge,Qe,!0)}_fireEvents(Ne,Ge,Qe){const ai=Vl(this._eventsInProgress),ui=Vl(Ne),Si={};for(const Xi in Ne){const{originalEvent:hn}=Ne[Xi];this._eventsInProgress[Xi]||(Si[`${Xi}start`]=hn),this._eventsInProgress[Xi]=Ne[Xi]}!ai&&ui&&this._fireEvent("movestart",ui.originalEvent);for(const Xi in Si)this._fireEvent(Xi,Si[Xi]);ui&&this._fireEvent("move",ui.originalEvent);for(const Xi in Ne){const{originalEvent:hn}=Ne[Xi];this._fireEvent(Xi,hn)}const Mi={};let Fi;for(const Xi in this._eventsInProgress){const{handlerName:hn,originalEvent:Dn}=this._eventsInProgress[Xi];this._handlersById[hn].isActive()||(delete this._eventsInProgress[Xi],Fi=Ge[hn]||Dn,Mi[`${Xi}end`]=Fi)}for(const Xi in Mi)this._fireEvent(Xi,Mi[Xi]);const qi=Vl(this._eventsInProgress);if(Qe&&(ai||ui)&&!qi){this._updatingCamera=!0;const Xi=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),hn=Dn=>Dn!==0&&-this._bearingSnap<Dn&&Dn<this._bearingSnap;Xi?(hn(Xi.bearing||this._map.getBearing())&&(Xi.bearing=0),this._map.easeTo(Xi,{originalEvent:Fi})):(this._map.fire(new Ie.Event("moveend",{originalEvent:Fi})),hn(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(Ne,Ge){this._map.fire(new Ie.Event(Ne,Ge?{originalEvent:Ge}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(Ne=>{this._frameId=void 0,this.handleEvent(new qd("renderFrame",{timeStamp:Ne})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}const Xd="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class mu extends Ie.Evented{constructor(Ne,Ge){super(),this._moving=!1,this._zooming=!1,this.transform=Ne,this._bearingSnap=Ge.bearingSnap,this._respectPrefersReducedMotion=Ge.respectPrefersReducedMotion!==!1,Ie.bindAll(["_renderFrameCallback"],this)}getCenter(){return new Ie.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(Ne,Ge){return this.jumpTo({center:Ne},Ge)}panBy(Ne,Ge,Qe){return Ne=Ie.Point.convert(Ne).mult(-1),this.panTo(this.transform.center,Ie.extend({offset:Ne},Ge),Qe)}panTo(Ne,Ge,Qe){return this.easeTo(Ie.extend({center:Ne},Ge),Qe)}getZoom(){return this.transform.zoom}setZoom(Ne,Ge){return this.jumpTo({zoom:Ne},Ge),this}zoomTo(Ne,Ge,Qe){return this.easeTo(Ie.extend({zoom:Ne},Ge),Qe)}zoomIn(Ne,Ge){return this.zoomTo(this.getZoom()+1,Ne,Ge),this}zoomOut(Ne,Ge){return this.zoomTo(this.getZoom()-1,Ne,Ge),this}getBearing(){return this.transform.bearing}setBearing(Ne,Ge){return this.jumpTo({bearing:Ne},Ge),this}getPadding(){return this.transform.padding}setPadding(Ne,Ge){return this.jumpTo({padding:Ne},Ge),this}rotateTo(Ne,Ge,Qe){return this.easeTo(Ie.extend({bearing:Ne},Ge),Qe)}resetNorth(Ne,Ge){return this.rotateTo(0,Ie.extend({duration:1e3},Ne),Ge),this}resetNorthPitch(Ne,Ge){return this.easeTo(Ie.extend({bearing:0,pitch:0,duration:1e3},Ne),Ge),this}snapToNorth(Ne,Ge){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(Ne,Ge):this}getPitch(){return this.transform.pitch}setPitch(Ne,Ge){return this.jumpTo({pitch:Ne},Ge),this}cameraForBounds(Ne,Ge){Ne=Ie.LngLatBounds.convert(Ne);const Qe=Ge&&Ge.bearing||0,ai=Ge&&Ge.pitch||0,ui=Ne.getNorthWest(),Si=Ne.getSouthEast();return this._cameraForBounds(this.transform,ui,Si,Qe,ai,Ge)}_extendCameraOptions(Ne){const Ge={top:0,bottom:0,right:0,left:0};if(typeof(Ne=Ie.extend({padding:Ge,offset:[0,0],maxZoom:this.transform.maxZoom},Ne)).padding=="number"){const Qe=Ne.padding;Ne.padding={top:Qe,bottom:Qe,right:Qe,left:Qe}}return Ne.padding=Ie.extend(Ge,Ne.padding),Ne}_minimumAABBFrustumDistance(Ne,Ge){const Qe=Ge.max[0]-Ge.min[0],ai=Ge.max[1]-Ge.min[1];return Qe/ai>Ne.aspect?Qe/(2*Math.tan(.5*Ne.fovX)*Ne.aspect):ai/(2*Math.tan(.5*Ne.fovY)*Ne.aspect)}_cameraForBoundsOnGlobe(Ne,Ge,Qe,ai,ui,Si){const Mi=Ne.clone(),Fi=this._extendCameraOptions(Si);Mi.bearing=ai,Mi.pitch=ui;const qi=Ie.LngLat.convert(Ge),Xi=Ie.LngLat.convert(Qe),hn=.5*(qi.lat+Xi.lat),Dn=.5*(qi.lng+Xi.lng),In=Ie.latLngToECEF(hn,Dn),On=Ie.normalize([],In),Bn=Ie.normalize([],Ie.cross([],On,[0,1,0])),Vn=Ie.cross([],Bn,On),pn=[Bn[0],Bn[1],Bn[2],0,Vn[0],Vn[1],Vn[2],0,On[0],On[1],On[2],0,0,0,0,1],Pn=[In,Ie.latLngToECEF(qi.lat,qi.lng),Ie.latLngToECEF(Xi.lat,qi.lng),Ie.latLngToECEF(Xi.lat,Xi.lng),Ie.latLngToECEF(qi.lat,Xi.lng),Ie.latLngToECEF(hn,qi.lng),Ie.latLngToECEF(hn,Xi.lng),Ie.latLngToECEF(qi.lat,Dn),Ie.latLngToECEF(Xi.lat,Dn)];let Jn=Ie.Aabb.fromPoints(Pn.map(ds=>[Ie.dot(Bn,ds),Ie.dot(Vn,ds),Ie.dot(On,ds)]));const qn=Ie.transformMat4([],Jn.center,pn);Ie.squaredLength(qn)===0&&Ie.set(qn,0,0,1),Ie.normalize(qn,qn),Ie.scale$2(qn,qn,Ie.GLOBE_RADIUS),Mi.center=Ie.ecefToLatLng(qn);const gr=Mi.getWorldToCameraMatrix(),vr=Ie.invert(new Float64Array(16),gr);Jn=Ie.Aabb.applyTransform(Jn,Ie.multiply([],gr,pn)),Ie.transformMat4(qn,qn,gr);const dr=.5*(Jn.max[2]-Jn.min[2]),$r=this._minimumAABBFrustumDistance(Mi,Jn),Pr=Ie.scale$2([],[0,0,1],dr),Vr=Ie.add(Pr,qn,Pr),Ds=$r+(Mi.pitch===0?0:Ie.distance(qn,Vr)),zr=Mi.globeCenterInViewSpace,cs=Ie.sub([],qn,[zr[0],zr[1],zr[2]]);Ie.normalize(cs,cs),Ie.scale$2(cs,cs,Ds);const Xr=Ie.add([],qn,cs);Ie.transformMat4(Xr,Xr,vr);const ss=Ie.earthRadius/Ie.GLOBE_RADIUS,Lr=Ie.length(Xr),ns=Ie.mercatorZfromAltitude(Math.max(Lr*ss-Ie.earthRadius,Number.EPSILON),0),Ss=Math.min(Mi.zoomFromMercatorZAdjusted(ns),Fi.maxZoom);return Ss>.5*(Ie.GLOBE_ZOOM_THRESHOLD_MIN+Ie.GLOBE_ZOOM_THRESHOLD_MAX)?(Mi.setProjection({name:"mercator"}),Mi.zoom=Ss,this._cameraForBounds(Mi,Ge,Qe,ai,ui,Si)):{center:Mi.center,zoom:Ss,bearing:ai,pitch:ui}}queryTerrainElevation(Ne,Ge){const Qe=this.transform.elevation;return Qe?(Ge=Ie.extend({},{exaggerated:!0},Ge),Qe.getAtPoint(Ie.MercatorCoordinate.fromLngLat(Ne),null,Ge.exaggerated)):null}_cameraForBounds(Ne,Ge,Qe,ai,ui,Si){if(Ne.projection.name==="globe")return this._cameraForBoundsOnGlobe(Ne,Ge,Qe,ai,ui,Si);const Mi=Ne.clone(),Fi=this._extendCameraOptions(Si),qi=Mi.padding;Mi.bearing=ai,Mi.pitch=ui;const Xi=Ie.LngLat.convert(Ge),hn=Ie.LngLat.convert(Qe),Dn=new Ie.LngLat(Xi.lng,hn.lat),In=new Ie.LngLat(hn.lng,Xi.lat),On=Mi.project(Xi),Bn=Mi.project(hn),Vn=this.queryTerrainElevation(Xi),pn=this.queryTerrainElevation(hn),Pn=this.queryTerrainElevation(Dn),Jn=this.queryTerrainElevation(In),qn=[[On.x,On.y,Math.min(Vn||0,pn||0,Pn||0,Jn||0)],[Bn.x,Bn.y,Math.max(Vn||0,pn||0,Pn||0,Jn||0)]];let gr=Ie.Aabb.fromPoints(qn);const vr=Mi.getWorldToCameraMatrix(),dr=Ie.invert(new Float64Array(16),vr);gr=Ie.Aabb.applyTransform(gr,vr);const $r=Ie.sub([],gr.max,gr.min),Pr=qi.left||0,Vr=qi.right||0,Ds=qi.bottom||0,zr=qi.top||0,{left:cs,right:Xr,top:ss,bottom:Lr}=Fi.padding,ns=.5*(Pr+Vr),Ss=.5*(zr+Ds),ds=Math.min(Mi.scaleZoom(Mi.scale*Math.min((Mi.width-(Pr+Vr+cs+Xr))/$r[0],(Mi.height-(Ds+zr+Lr+ss))/$r[1])),Fi.maxZoom),Is=Mi.scale/Mi.zoomScale(ds);gr=new Ie.Aabb([gr.min[0]-(cs+ns)*Is,gr.min[1]-(Lr+Ss)*Is,gr.min[2]],[gr.max[0]+(Xr+ns)*Is,gr.max[1]+(ss+Ss)*Is,gr.max[2]]);const ho=.5*$r[2],ko=this._minimumAABBFrustumDistance(Mi,gr),Js=[0,0,1,0];Ie.transformMat4$1(Js,Js,vr),Ie.normalize$2(Js,Js);const _o=Ie.scale$2([],Js,ko+ho),ia=Ie.add([],gr.center,_o),No=(typeof Fi.offset.x=="number"&&typeof Fi.offset.y=="number"?new Ie.Point(Fi.offset.x,Fi.offset.y):Ie.Point.convert(Fi.offset)).rotate(-Ie.degToRad(ai));gr.center[0]-=No.x*Is,gr.center[1]+=No.y*Is,Ie.transformMat4(gr.center,gr.center,dr),Ie.transformMat4(ia,ia,dr);const lo=[gr.center[0],gr.center[1],ia[2]*Mi.pixelsPerMeter];Ie.scale$2(lo,lo,1/Mi.worldSize);const Ea=Ie.lngFromMercatorX(lo[0]),Va=Ie.latFromMercatorY(lo[1]),Pa=Math.min(Mi._zoomFromMercatorZ(lo[2]),Fi.maxZoom),ha=new Ie.LngLat(Ea,Va);return Mi.mercatorFromTransition&&Pa<.5*(Ie.GLOBE_ZOOM_THRESHOLD_MIN+Ie.GLOBE_ZOOM_THRESHOLD_MAX)?(Mi.setProjection({name:"globe"}),Mi.zoom=Pa,this._cameraForBounds(Mi,Ge,Qe,ai,ui,Si)):{center:ha,zoom:Pa,bearing:ai,pitch:ui}}fitBounds(Ne,Ge,Qe){const ai=this.cameraForBounds(Ne,Ge);return this._fitInternal(ai,Ge,Qe)}fitScreenCoordinates(Ne,Ge,Qe,ai,ui){const Si=Ie.Point.convert(Ne),Mi=Ie.Point.convert(Ge),Fi=new Ie.Point(Math.min(Si.x,Mi.x),Math.min(Si.y,Mi.y)),qi=new Ie.Point(Math.max(Si.x,Mi.x),Math.max(Si.y,Mi.y));if(this.transform.projection.name==="mercator"&&this.transform.anyCornerOffEdge(Si,Mi))return this;const Xi=this.transform.pointLocation3D(Fi),hn=this.transform.pointLocation3D(qi),Dn=this.transform.pointLocation3D(new Ie.Point(Fi.x,qi.y)),In=this.transform.pointLocation3D(new Ie.Point(qi.x,Fi.y)),On=[Math.min(Xi.lng,hn.lng,Dn.lng,In.lng),Math.min(Xi.lat,hn.lat,Dn.lat,In.lat)],Bn=[Math.max(Xi.lng,hn.lng,Dn.lng,In.lng),Math.max(Xi.lat,hn.lat,Dn.lat,In.lat)],Vn=ai&&ai.pitch?ai.pitch:this.getPitch(),pn=this._cameraForBounds(this.transform,On,Bn,Qe,Vn,ai);return this._fitInternal(pn,ai,ui)}_fitInternal(Ne,Ge,Qe){return Ne?(delete(Ge=Ie.extend(Ne,Ge)).padding,Ge.linear?this.easeTo(Ge,Qe):this.flyTo(Ge,Qe)):this}jumpTo(Ne,Ge){this.stop();const Qe=Ne.preloadOnly?this.transform.clone():this.transform;let ai=!1,ui=!1,Si=!1;return"zoom"in Ne&&Qe.zoom!==+Ne.zoom&&(ai=!0,Qe.zoom=+Ne.zoom),Ne.center!==void 0&&(Qe.center=Ie.LngLat.convert(Ne.center)),"bearing"in Ne&&Qe.bearing!==+Ne.bearing&&(ui=!0,Qe.bearing=+Ne.bearing),"pitch"in Ne&&Qe.pitch!==+Ne.pitch&&(Si=!0,Qe.pitch=+Ne.pitch),Ne.padding==null||Qe.isPaddingEqual(Ne.padding)||(Qe.padding=Ne.padding),Ne.preloadOnly?(this._preloadTiles(Qe),this):(this.fire(new Ie.Event("movestart",Ge)).fire(new Ie.Event("move",Ge)),ai&&this.fire(new Ie.Event("zoomstart",Ge)).fire(new Ie.Event("zoom",Ge)).fire(new Ie.Event("zoomend",Ge)),ui&&this.fire(new Ie.Event("rotatestart",Ge)).fire(new Ie.Event("rotate",Ge)).fire(new Ie.Event("rotateend",Ge)),Si&&this.fire(new Ie.Event("pitchstart",Ge)).fire(new Ie.Event("pitch",Ge)).fire(new Ie.Event("pitchend",Ge)),this.fire(new Ie.Event("moveend",Ge)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||Ie.warnOnce(Xd),this.transform.getFreeCameraOptions()}setFreeCameraOptions(Ne,Ge){const Qe=this.transform;if(!Qe.projection.supportsFreeCamera)return Ie.warnOnce(Xd),this;this.stop();const ai=Qe.zoom,ui=Qe.pitch,Si=Qe.bearing;Qe.setFreeCameraOptions(Ne);const Mi=ai!==Qe.zoom,Fi=ui!==Qe.pitch,qi=Si!==Qe.bearing;return this.fire(new Ie.Event("movestart",Ge)).fire(new Ie.Event("move",Ge)),Mi&&this.fire(new Ie.Event("zoomstart",Ge)).fire(new Ie.Event("zoom",Ge)).fire(new Ie.Event("zoomend",Ge)),qi&&this.fire(new Ie.Event("rotatestart",Ge)).fire(new Ie.Event("rotate",Ge)).fire(new Ie.Event("rotateend",Ge)),Fi&&this.fire(new Ie.Event("pitchstart",Ge)).fire(new Ie.Event("pitch",Ge)).fire(new Ie.Event("pitchend",Ge)),this.fire(new Ie.Event("moveend",Ge)),this}easeTo(Ne,Ge){this._stop(!1,Ne.easeId),((Ne=Ie.extend({offset:[0,0],duration:500,easing:Ie.ease},Ne)).animate===!1||this._prefersReducedMotion(Ne))&&(Ne.duration=0);const Qe=this.transform,ai=this.getZoom(),ui=this.getBearing(),Si=this.getPitch(),Mi=this.getPadding(),Fi="zoom"in Ne?+Ne.zoom:ai,qi="bearing"in Ne?this._normalizeBearing(Ne.bearing,ui):ui,Xi="pitch"in Ne?+Ne.pitch:Si,hn="padding"in Ne?Ne.padding:Qe.padding,Dn=Ie.Point.convert(Ne.offset);let In,On,Bn;if(Qe.projection.name==="globe"){const Pr=Ie.MercatorCoordinate.fromLngLat(Qe.center),Vr=Dn.rotate(-Qe.angle);Pr.x+=Vr.x/Qe.worldSize,Pr.y+=Vr.y/Qe.worldSize;const Ds=Pr.toLngLat(),zr=Ie.LngLat.convert(Ne.center||Ds);this._normalizeCenter(zr),In=Qe.centerPoint.add(Vr),On=new Ie.Point(Pr.x,Pr.y).mult(Qe.worldSize),Bn=new Ie.Point(Ie.mercatorXfromLng(zr.lng),Ie.mercatorYfromLat(zr.lat)).mult(Qe.worldSize).sub(On)}else{In=Qe.centerPoint.add(Dn);const Pr=Qe.pointLocation(In),Vr=Ie.LngLat.convert(Ne.center||Pr);this._normalizeCenter(Vr),On=Qe.project(Pr),Bn=Qe.project(Vr).sub(On)}const Vn=Qe.zoomScale(Fi-ai);let pn,Pn;Ne.around&&(pn=Ie.LngLat.convert(Ne.around),Pn=Qe.locationPoint(pn));const Jn=this._zooming||Fi!==ai,qn=this._rotating||ui!==qi,gr=this._pitching||Xi!==Si,vr=!Qe.isPaddingEqual(hn),dr=Pr=>Vr=>{if(Jn&&(Pr.zoom=Ie.number(ai,Fi,Vr)),qn&&(Pr.bearing=Ie.number(ui,qi,Vr)),gr&&(Pr.pitch=Ie.number(Si,Xi,Vr)),vr&&(Pr.interpolatePadding(Mi,hn,Vr),In=Pr.centerPoint.add(Dn)),pn)Pr.setLocationAtPoint(pn,Pn);else{const Ds=Pr.zoomScale(Pr.zoom-ai),zr=Fi>ai?Math.min(2,Vn):Math.max(.5,Vn),cs=Math.pow(zr,1-Vr),Xr=Pr.unproject(On.add(Bn.mult(Vr*cs)).mult(Ds));Pr.setLocationAtPoint(Pr.renderWorldCopies?Xr.wrap():Xr,In)}return Ne.preloadOnly||this._fireMoveEvents(Ge),Pr};if(Ne.preloadOnly){const Pr=this._emulate(dr,Ne.duration,Qe);return this._preloadTiles(Pr),this}const $r={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=Jn,this._rotating=qn,this._pitching=gr,this._padding=vr,this._easeId=Ne.easeId,this._prepareEase(Ge,Ne.noMoveStart,$r),this._ease(dr(Qe),Pr=>{Qe.recenterOnTerrain(),this._afterEase(Ge,Pr)},Ne),this}_prepareEase(Ne,Ge,Qe={}){this._moving=!0,this.transform.cameraElevationReference="sea",Ge||Qe.moving||this.fire(new Ie.Event("movestart",Ne)),this._zooming&&!Qe.zooming&&this.fire(new Ie.Event("zoomstart",Ne)),this._rotating&&!Qe.rotating&&this.fire(new Ie.Event("rotatestart",Ne)),this._pitching&&!Qe.pitching&&this.fire(new Ie.Event("pitchstart",Ne))}_fireMoveEvents(Ne){this.fire(new Ie.Event("move",Ne)),this._zooming&&this.fire(new Ie.Event("zoom",Ne)),this._rotating&&this.fire(new Ie.Event("rotate",Ne)),this._pitching&&this.fire(new Ie.Event("pitch",Ne))}_afterEase(Ne,Ge){if(this._easeId&&Ge&&this._easeId===Ge)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const Qe=this._zooming,ai=this._rotating,ui=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Qe&&this.fire(new Ie.Event("zoomend",Ne)),ai&&this.fire(new Ie.Event("rotateend",Ne)),ui&&this.fire(new Ie.Event("pitchend",Ne)),this.fire(new Ie.Event("moveend",Ne))}flyTo(Ne,Ge){if(this._prefersReducedMotion(Ne)){const ds=Ie.pick(Ne,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ds,Ge)}this.stop(),Ne=Ie.extend({offset:[0,0],speed:1.2,curve:1.42,easing:Ie.ease},Ne);const Qe=this.transform,ai=this.getZoom(),ui=this.getBearing(),Si=this.getPitch(),Mi=this.getPadding(),Fi="zoom"in Ne?Ie.clamp(+Ne.zoom,Qe.minZoom,Qe.maxZoom):ai,qi="bearing"in Ne?this._normalizeBearing(Ne.bearing,ui):ui,Xi="pitch"in Ne?+Ne.pitch:Si,hn="padding"in Ne?Ne.padding:Qe.padding,Dn=Qe.zoomScale(Fi-ai),In=Ie.Point.convert(Ne.offset);let On=Qe.centerPoint.add(In);const Bn=Qe.pointLocation(On),Vn=Ie.LngLat.convert(Ne.center||Bn);this._normalizeCenter(Vn);const pn=Qe.project(Bn),Pn=Qe.project(Vn).sub(pn);let Jn=Ne.curve;const qn=Math.max(Qe.width,Qe.height),gr=qn/Dn,vr=Pn.mag();if("minZoom"in Ne){const ds=Ie.clamp(Math.min(Ne.minZoom,ai,Fi),Qe.minZoom,Qe.maxZoom),Is=qn/Qe.zoomScale(ds-ai);Jn=Math.sqrt(Is/vr*2)}const dr=Jn*Jn;function $r(ds){const Is=(gr*gr-qn*qn+(ds?-1:1)*dr*dr*vr*vr)/(2*(ds?gr:qn)*dr*vr);return Math.log(Math.sqrt(Is*Is+1)-Is)}function Pr(ds){return(Math.exp(ds)-Math.exp(-ds))/2}function Vr(ds){return(Math.exp(ds)+Math.exp(-ds))/2}const Ds=$r(0);let zr=function(ds){return Vr(Ds)/Vr(Ds+Jn*ds)},cs=function(ds){return qn*((Vr(Ds)*(Pr(Is=Ds+Jn*ds)/Vr(Is))-Pr(Ds))/dr)/vr;var Is},Xr=($r(1)-Ds)/Jn;if(Math.abs(vr)<1e-6||!isFinite(Xr)){if(Math.abs(qn-gr)<1e-6)return this.easeTo(Ne,Ge);const ds=gr<qn?-1:1;Xr=Math.abs(Math.log(gr/qn))/Jn,cs=function(){return 0},zr=function(Is){return Math.exp(ds*Jn*Is)}}Ne.duration="duration"in Ne?+Ne.duration:1e3*Xr/("screenSpeed"in Ne?+Ne.screenSpeed/Jn:+Ne.speed),Ne.maxDuration&&Ne.duration>Ne.maxDuration&&(Ne.duration=0);const ss=ui!==qi,Lr=Xi!==Si,ns=!Qe.isPaddingEqual(hn),Ss=ds=>Is=>{const ho=Is*Xr,ko=1/zr(ho);ds.zoom=Is===1?Fi:ai+ds.scaleZoom(ko),ss&&(ds.bearing=Ie.number(ui,qi,Is)),Lr&&(ds.pitch=Ie.number(Si,Xi,Is)),ns&&(ds.interpolatePadding(Mi,hn,Is),On=ds.centerPoint.add(In));const Js=Is===1?Vn:ds.unproject(pn.add(Pn.mult(cs(ho))).mult(ko));return ds.setLocationAtPoint(ds.renderWorldCopies?Js.wrap():Js,On),ds._updateCameraOnTerrain(),Ne.preloadOnly||this._fireMoveEvents(Ge),ds};if(Ne.preloadOnly){const ds=this._emulate(Ss,Ne.duration,Qe);return this._preloadTiles(ds),this}return this._zooming=!0,this._rotating=ss,this._pitching=Lr,this._padding=ns,this._prepareEase(Ge,!1),this._ease(Ss(Qe),()=>this._afterEase(Ge),Ne),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(Ne,Ge){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){const Qe=this._onEaseEnd;this._onEaseEnd=void 0,Qe.call(this,Ge)}if(!Ne){const Qe=this.handlers;Qe&&Qe.stop(!1)}return this}_ease(Ne,Ge,Qe){Qe.animate===!1||Qe.duration===0?(Ne(1),Ge()):(this._easeStart=Ie.exported.now(),this._easeOptions=Qe,this._onEaseFrame=Ne,this._onEaseEnd=Ge,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const Ne=Math.min((Ie.exported.now()-this._easeStart)/this._easeOptions.duration,1),Ge=this._onEaseFrame;Ge&&Ge(this._easeOptions.easing(Ne)),Ne<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(Ne,Ge){Ne=Ie.wrap(Ne,-180,180);const Qe=Math.abs(Ne-Ge);return Math.abs(Ne-360-Ge)<Qe&&(Ne-=360),Math.abs(Ne+360-Ge)<Qe&&(Ne+=360),Ne}_normalizeCenter(Ne){const Ge=this.transform;if(!Ge.renderWorldCopies||Ge.maxBounds)return;const Qe=Ne.lng-Ge.center.lng;Ne.lng+=Qe>180?-360:Qe<-180?360:0}_prefersReducedMotion(Ne){return this._respectPrefersReducedMotion&&Ie.exported.prefersReducedMotion&&!(Ne&&Ne.essential)}_emulate(Ne,Ge,Qe){const ai=Math.ceil(15*Ge/1e3),ui=[],Si=Ne(Qe.clone());for(let Mi=0;Mi<=ai;Mi++){const Fi=Si(Mi/ai);ui.push(Fi.clone())}return ui}}class to{constructor(Ne={}){this.options=Ne,Ie.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(Ne){const Ge=this.options&&this.options.compact;return this._map=Ne,this._container=ci("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=ci("button","mapboxgl-ctrl-attrib-button",this._container),ci("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=ci("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),Ge&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),Ge===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(Ne,Ge){const Qe=this._map._getUIString(`AttributionControl.${Ge}`);Ne.setAttribute("aria-label",Qe),Ne.removeAttribute("title"),Ne.firstElementChild&&Ne.firstElementChild.setAttribute("title",Qe)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","fal
1522se")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let Ne=this._editLink;Ne||(Ne=this._editLink=this._container.querySelector(".mapbox-improve-map"));const Ge=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||Ie.config.ACCESS_TOKEN}];if(Ne){const Qe=Ge.reduce((ai,ui,Si)=>(ui.value&&(ai+=`${ui.key}=${ui.value}${Si<Ge.length-1?"&":""}`),ai),"?");Ne.href=`${Ie.config.FEEDBACK_URL}/${Qe}#${Af(this._map,!0)}`,Ne.rel="noopener nofollow",this._setElementTitle(Ne,"MapFeedback")}}_updateData(Ne){!Ne||Ne.sourceDataType!=="metadata"&&Ne.sourceDataType!=="visibility"&&Ne.dataType!=="style"||(this._updateAttributions(),this._updateEditLink())}_updateAttributions(){if(!this._map.style)return;let Ne=[];if(this._map.style.stylesheet){const ai=this._map.style.stylesheet;this.styleOwner=ai.owner,this.styleId=ai.id}const Ge=this._map.style._sourceCaches;for(const ai in Ge){const ui=Ge[ai];if(ui.used){const Si=ui.getSource();Si.attribution&&Ne.indexOf(Si.attribution)<0&&Ne.push(Si.attribution)}}Ne.sort((ai,ui)=>ai.length-ui.length),Ne=Ne.filter((ai,ui)=>{for(let Si=ui+1;Si<Ne.length;Si++)if(Ne[Si].indexOf(ai)>=0)return!1;return!0}),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?Ne=[...this.options.customAttribution,...Ne]:Ne.unshift(this.options.customAttribution));const Qe=Ne.join(" | ");Qe!==this._attribHTML&&(this._attribHTML=Qe,Ne.length?(this._innerContainer.innerHTML=Qe,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class Qp{constructor(){Ie.bindAll(["_updateLogo","_updateCompact"],this)}onAdd(Ne){this._map=Ne,this._container=ci("div","mapboxgl-ctrl");const Ge=ci("a","mapboxgl-ctrl-logo");return Ge.target="_blank",Ge.rel="noopener nofollow",Ge.href="https://www.mapbox.com/",Ge.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),Ge.setAttribute("rel","noopener nofollow"),this._container.appendChild(Ge),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(Ne){Ne&&Ne.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const Ne=this._map.style._sourceCaches;if(Object.entries(Ne).length===0)return!0;for(const Ge in Ne){const Qe=Ne[Ge].getSource();if(Qe.hasOwnProperty("mapbox_logo")&&!Qe.mapbox_logo)return!1}return!0}_updateCompact(){const Ne=this._container.children;if(Ne.length){const Ge=Ne[0];this._map.getCanvasContainer().offsetWidth<250?Ge.classList.add("mapboxgl-compact"):Ge.classList.remove("mapboxgl-compact")}}}class cm{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(Ne){const Ge=++this._id;return this._queue.push({callback:Ne,id:Ge,cancelled:!1}),Ge}remove(Ne){const Ge=this._currentlyRunning,Qe=Ge?this._queue.concat(Ge):this._queue;for(const ai of Qe)if(ai.id===Ne)return void(ai.cancelled=!0)}run(Ne=0){const Ge=this._currentlyRunning=this._queue;this._queue=[];for(const Qe of Ge)if(!Qe.cancelled&&(Qe.callback(Ne),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function Qc(Ze,Ne,Ge){if(Ze=new Ie.LngLat(Ze.lng,Ze.lat),Ne){const Qe=new Ie.LngLat(Ze.lng-360,Ze.lat),ai=new Ie.LngLat(Ze.lng+360,Ze.lat),ui=360*Math.ceil(Math.abs(Ze.lng-Ge.center.lng)/360),Si=Ge.locationPoint(Ze).distSqr(Ne),Mi=Ne.x<0||Ne.y<0||Ne.x>Ge.width||Ne.y>Ge.height;Ge.locationPoint(Qe).distSqr(Ne)<Si&&(Mi||Math.abs(Qe.lng-Ge.center.lng)<ui)?Ze=Qe:Ge.locationPoint(ai).distSqr(Ne)<Si&&(Mi||Math.abs(ai.lng-Ge.center.lng)<ui)&&(Ze=ai)}for(;Math.abs(Ze.lng-Ge.center.lng)>180;){const Qe=Ge.locationPoint(Ze);if(Qe.x>=0&&Qe.y>=0&&Qe.x<=Ge.width&&Qe.y<=Ge.height)break;Ze.lng>Ge.center.lng?Ze.lng-=360:Ze.lng+=360}return Ze}
vendor: 4,116 bytes, line 1522
1522const ph={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class Gs extends Ie.Evented{constructor(Ne,Ge){if(super(),(Ne instanceof Ie.window.HTMLElement||Ge)&&(Ne=Ie.extend({element:Ne},Ge)),Ie.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=Ne&&Ne.anchor||"center",this._color=Ne&&Ne.color||"#3FB1CE",this._scale=Ne&&Ne.scale||1,this._draggable=Ne&&Ne.draggable||!1,this._clickTolerance=Ne&&Ne.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=Ne&&Ne.rotation||0,this._rotationAlignment=Ne&&Ne.rotationAlignment||"auto",this._pitchAlignment=Ne&&Ne.pitchAlignment&&Ne.pitchAlignment||"auto",this._updateMoving=()=>this._update(!0),this._occludedOpacity=Ne&&Ne.occludedOpacity||.2,Ne&&Ne.element)this._element=Ne.element,this._offset=Ie.Point.convert(Ne&&Ne.offset||[0,0]);else{this._defaultMarker=!0,this._element=ci("div");const ai=41,ui=27,Si=gi("svg",{display:"block",height:ai*this._scale+"px",width:ui*this._scale+"px",viewBox:`0 0 ${ui} ${ai}`},this._element),Mi=gi("radialGradient",{id:"shadowGradient"},gi("defs",{},Si));gi("stop",{offset:"10%","stop-opacity":.4},Mi),gi("stop",{offset:"100%","stop-opacity":.05},Mi),gi("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},Si),gi("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},Si),gi("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},Si),gi("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},Si),this._offset=Ie.Point.convert(Ne&&Ne.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",ai=>{ai.preventDefault()}),this._element.addEventListener("mousedown",ai=>{ai.preventDefault()});const Qe=this._element.classList;for(const ai in ph)Qe.remove(`mapboxgl-marker-anchor-${ai}`);Qe.add(`mapboxgl-marker-anchor-${this._anchor}`),this._popup=null}addTo(Ne){return Ne===this._map||(this.remove(),this._map=Ne,Ne.getCanvasContainer().appendChild(this._element),Ne.on("move",this._updateMoving),Ne.on("moveend",this._update),Ne.on("remove",this._clearFadeTimer),Ne._addMarker(this),this.setDraggable(this._draggable),this._update(),Ne.on("click",this._onMapClick)),this}remove(){const Ne=this._map;return Ne&&(Ne.off("click",this._onMapClick),Ne.off("move",this._updateMoving),Ne.off("moveend",this._update),Ne.off("mousedown",this._addDragHandler),Ne.off("touchstart",this._addDragHandler),Ne.off("mouseup",this._onUp),Ne.off("touchend",this._onUp),Ne.off("mousemove",this._onMove),Ne.off("touchmove",this._onMove),Ne.off("remove",this._clearFadeTimer),Ne._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(Ne){return this._lngLat=Ie.LngLat.convert(Ne),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(Ne){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),Ne){if(!("offset"in Ne.options)){const ai=Math.sqrt(Math.pow(13.5,2)/2);Ne.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[
vendor: 8,786 bytes, lines 1522-1527
15220,-38.1],"bottom-left":[ai,-1*(38.1-13.5+ai)],"bottom-right":[-ai,-1*(38.1-13.5+ai)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=Ne,Ne._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(Ne){const Ge=Ne.code,Qe=Ne.charCode||Ne.keyCode;Ge!=="Space"&&Ge!=="Enter"&&Qe!==32&&Qe!==13||this.togglePopup()}_onMapClick(Ne){const Ge=Ne.originalEvent.target,Qe=this._element;this._popup&&(Ge===Qe||Qe.contains(Ge))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const Ne=this._popup;return Ne?(Ne.isOpen()?(Ne.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(Ne.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_behindTerrain(){const Ne=this._map,Ge=this._pos;if(!Ne||!Ge)return!1;const Qe=Ne.unproject(Ge),ai=Ne.getFreeCameraOptions();if(!ai.position)return!1;const ui=ai.position.toLngLat();return ui.distanceTo(Qe)<.9*ui.distanceTo(this._lngLat)}_evaluateOpacity(){const Ne=this._map;if(!Ne)return;const Ge=this._pos;if(!Ge||Ge.x<0||Ge.x>Ne.transform.width||Ge.y<0||Ge.y>Ne.transform.height)return void this._clearFadeTimer();const Qe=Ne.unproject(Ge);let ai;Ne._showingGlobe()&&Ie.isLngLatBehindGlobe(Ne.transform,this._lngLat)?ai=0:(ai=1-Ne._queryFogOpacity(Qe),Ne.transform._terrainEnabled()&&Ne.getTerrain()&&this._behindTerrain()&&(ai*=this._occludedOpacity)),this._element.style.opacity=`${ai}`,this._element.style.pointerEvents=ai>0?"auto":"none",this._popup&&this._popup._setOpacity(ai),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const Ne=this._pos;if(!Ne||!this._map)return;const Ge=this._offset.mult(this._scale);this._element.style.transform=`
1523            translate(${Ne.x}px,${Ne.y}px)
1524            ${ph[this._anchor]}
1525            ${this._calculateXYTransform()} ${this._calculateZTransform()}
1526            translate(${Ge.x}px,${Ge.y}px)
1527        `}_calculateXYTransform(){const Ne=this._pos,Ge=this._map,Qe=this.getPitchAlignment();if(!Ge||!Ne||Qe!=="map")return"";if(!Ge._showingGlobe()){const Fi=Ge.getPitch();return Fi?`rotateX(${Fi}deg)`:""}const ai=Ie.radToDeg(Ie.globeTiltAtLngLat(Ge.transform,this._lngLat)),ui=Ne.sub(Ie.globeCenterToScreenPoint(Ge.transform)),Si=Math.abs(ui.x)+Math.abs(ui.y);if(Si===0)return"";const Mi=ai/Si;return`rotateX(${-ui.y*Mi}deg) rotateY(${ui.x*Mi}deg)`}_calculateZTransform(){const Ne=this._pos,Ge=this._map;if(!Ge||!Ne)return"";let Qe=0;const ai=this.getRotationAlignment();if(ai==="map")if(Ge._showingGlobe()){const ui=Ge.project(new Ie.LngLat(this._lngLat.lng,this._lngLat.lat+.001)),Si=Ge.project(new Ie.LngLat(this._lngLat.lng,this._lngLat.lat-.001)).sub(ui);Qe=Ie.radToDeg(Math.atan2(Si.y,Si.x))-90}else Qe=-Ge.getBearing();else if(ai==="horizon"){const ui=Ie.smoothstep(4,6,Ge.getZoom()),Si=Ie.globeCenterToScreenPoint(Ge.transform);Si.y+=ui*Ge.transform.height;const Mi=Ne.sub(Si),Fi=Ie.radToDeg(Math.atan2(Mi.y,Mi.x));Qe=(Fi>90?Fi-270:Fi+90)*(1-ui)}return Qe+=this._rotation,Qe?`rotateZ(${Qe}deg)`:""}_update(Ne){Ie.window.cancelAnimationFrame(this._updateFrameId);const Ge=this._map;Ge&&(Ge.transform.renderWorldCopies&&(this._lngLat=Qc(this._lngLat,this._pos,Ge.transform)),this._pos=Ge.project(this._lngLat),Ne===!0?this._updateFrameId=Ie.window.requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),Ge._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(Ge._showingGlobe()||Ge.getTerrain()||Ge.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(Ne){return this._offset=Ie.Point.convert(Ne),this._update(),this}_onMove(Ne){const Ge=this._map;if(!Ge)return;const Qe=this._pointerdownPos,ai=this._positionDelta;if(Qe&&ai){if(!this._isDragging){const ui=this._clickTolerance||Ge._clickTolerance;if(Ne.point.dist(Qe)<ui)return;this._isDragging=!0}this._pos=Ne.point.sub(ai),this._lngLat=Ge.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new Ie.Event("dragstart"))),this.fire(new Ie.Event("drag"))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const Ne=this._map;Ne&&(Ne.off("mousemove",this._onMove),Ne.off("touchmove",this._onMove)),this._state==="active"&&this.fire(new Ie.Event("dragend")),this._state="inactive"}_addDragHandler(Ne){const Ge=this._map,Qe=this._pos;Ge&&Qe&&this._element.contains(Ne.originalEvent.target)&&(Ne.preventDefault(),this._positionDelta=Ne.point.sub(Qe),this._pointerdownPos=Ne.point,this._state="pending",Ge.on("mousemove",this._onMove),Ge.on("touchmove",this._onMove),Ge.once("mouseup",this._onUp),Ge.once("touchend",this._onUp))}setDraggable(Ne){this._draggable=!!Ne;const Ge=this._map;return Ge&&(Ne?(Ge.on("mousedown",this._addDragHandler),Ge.on("touchstart",this._addDragHandler)):(Ge.off("mousedown",this._addDragHandler),Ge.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(Ne){return this._rotation=Ne||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(Ne){return this._rotationAlignment=Ne||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment==="auto"||this._rotationAlignment==="horizon"&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(Ne){return this._pitchAlignment=Ne||"auto",this._update(),this}getPitchAlignment(){return this._pitchAlignment==="auto"?this.getRotationAlignment():this._pitchAlignment}setOccludedOpacity(Ne){return this._occludedOpacity=Ne||.2,this._update(),this}getOccludedOpacity(){return this._occludedOpacity}}const um={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ug=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function Eu(Ze=new Ie.Point(0,0),Ne="bottom"){if(typeof Ze=="number"){const Ge=Math.round(Math.sqrt(.5*Math.pow(Ze,2)));switch(Ne){case"top":return new Ie.Point(0,Ze);case"top-left":return new Ie.Point(Ge,Ge);case"top-right":return new Ie.Point(-Ge,Ge);case"bottom":return new Ie.Point(0,-Ze);case"bottom-left":return new Ie.Point(Ge,-Ge);case"bottom-right":return new Ie.Point(-Ge,-Ge);case"left":return new Ie.Point(Ze,0);case"right":return new Ie.Point(-Ze,0)}return new Ie.Point(0,0)}return Ze instanceof Ie.Point||Array.isArray(Ze)?Ie.Point.convert(Ze):Ie.Point.convert(Ze[Ne]||[0,0])}class If{constructor(Ne){this.jumpTo(Ne)}getValue(Ne){if(Ne<=this._startTime)return this._start;if(Ne>=this._endTime)return this._end;const Ge=Ie.easeCubicInOut((Ne-this._startTime)/(this._endTime-this._startTime));return this._start*(1-Ge)+this._end*Ge}isEasing(Ne){return Ne>=this._startTime&&Ne<=this._endTime}jumpTo(Ne){this._startTime=-1/0,this._endTime=-1/0,this._start=Ne,this._end=Ne}easeTo(Ne,Ge,Qe){this._start=this.getValue(Ge),this._end=Ne,this._startTime=Ge,this._endTime=Ge+Qe}}const Gg={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use ⌘ + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},dm={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileC
1527acheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0},ef={showCompass:!0,showZoom:!0,visualizePitch:!1};class Vu{constructor(Ne,Ge,Qe=!1){this._clickTolerance=10,this.element=Ge,this.mouseRotate=new Sp({clickTolerance:Ne.dragRotate._mouseRotate._clickTolerance}),this.map=Ne,Qe&&(this.mousePitch=new Kp({clickTolerance:Ne.dragRotate._mousePitch._clickTolerance})),Ie.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),Ge.addEventListener("mousedown",this.mousedown),Ge.addEventListener("touchstart",this.touchstart,{passive:!1}),Ge.addEventListener("touchmove",this.touchmove),Ge.addEventListener("touchend",this.touchend),Ge.addEventListener("touchcancel",this.reset)}down(Ne,Ge){this.mouseRotate.mousedown(Ne,Ge),this.mousePitch&&this.mousePitch.mousedown(Ne,Ge),hi()}move(Ne,Ge){const Qe=this.map,ai=this.mouseRotate.mousemoveWindow(Ne,Ge),ui=ai&&ai.bearingDelta;if(ui&&Qe.setBearing(Qe.getBearing()+ui),this.mousePitch){const Si=this.mousePitch.mousemoveWindow(Ne,Ge),Mi=Si&&Si.pitchDelta;Mi&&Qe.setPitch(Qe.getPitch()+Mi)}}off(){const Ne=this.element;Ne.removeEventListener("mousedown",this.mousedown),Ne.removeEventListener("touchstart",this.touchstart,{passive:!1}),Ne.removeEventListener("touchmove",this.touchmove),Ne.removeEventListener("touchend",this.touchend),Ne.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){Ei(),Ie.window.removeEventListener("mousemove",this.mousemove),Ie.window.removeEventListener("mouseup",this.mouseup)}mousedown(Ne){this.down(Ie.extend({},Ne,{ctrlKey:!0,preventDefault:()=>Ne.preventDefault()}),zi(this.element,Ne)),Ie.window.addEventListener("mousemove",this.mousemove),Ie.window.addEventListener("mouseup",this.mouseup)}mousemove(Ne){this.move(Ne,zi(this.element,Ne))}mouseup(Ne){this.mouseRotate.mouseupWindow(Ne),this.mousePitch&&this.mousePitch.mouseupWindow(Ne),this.offTemp()}touchstart(Ne){Ne.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=an(this.element,Ne.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>Ne.preventDefault()},this._startPos))}touchmove(Ne){Ne.targetTouches.length!==1?this.reset():(this._lastPos=an(this.element,Ne.targetTouches)[0],this.move({preventDefault:()=>Ne.preventDefault()},this._lastPos))}touchend(Ne){Ne.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}const td={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},Rf={maxWidth:100,unit:"metric"},Wh={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"},qh={version:Ie.version,supported:Ke,setRTLTextPlugin:Ie.setRTLTextPlugin,getRTLTextPluginStatus:Ie.getRTLTextPluginStatus,Map:class extends mu{constructor(Ze){if(Ie.LivePerformanceUtils.mark(Ie.PerformanceMarkers.create),(Ze=Ie.extend({},dm,Ze)).minZoom!=null&&Ze.maxZoom!=null&&Ze.minZoom>Ze.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(Ze.minPitch!=null&&Ze.maxPitch!=null&&Ze.minPitch>Ze.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(Ze.minPitch!=null&&Ze.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(Ze.maxPitch!=null&&Ze.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(Ze.antialias&&Ie.isSafariWithAntialiasingBug(Ie.window)&&(Ze.antialias=!1,Ie.warnOnce("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new Ud(Ze.minZoom,Ze.maxZoom,Ze.minPitch,Ze.maxPitch,Ze.renderWorldCopies),Ze),this._interactive=Ze.interactive,this._minTileCacheSize=Ze.minTileCacheSize,this._maxTileC
1527acheSize=Ze.maxTileCacheSize,this._failIfMajorPerformanceCaveat=Ze.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=Ze.preserveDrawingBuffer,this._antialias=Ze.antialias,this._useWebGL2=Ze.useWebGL2,this._trackResize=Ze.trackResize,this._bearingSnap=Ze.bearingSnap,this._refreshExpiredTiles=Ze.refreshExpiredTiles,this._fadeDuration=Ze.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=Ze.crossSourceCollisions,this._collectResourceTiming=Ze.collectResourceTiming,this._optimizeForTerrain=Ze.optimizeForTerrain,this._language=this._parseLanguage(Ze.language),this._worldview=Ze.worldview,this._renderTaskQueue=new cm,this._domRenderTaskQueue=new cm,this._controls=[],this._markers=[],this._popups=[],this._mapId=Ie.uniqueId(),this._locale=Ie.extend({},Gg,Ze.locale),this._clickTolerance=Ze.clickTolerance,this._cooperativeGestures=Ze.cooperativeGestures,this._performanceMetricsCollection=Ze.performanceMetricsCollection,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new If(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._requestManager=new Ie.RequestManager(Ze.transformRequest,Ze.accessToken,Ze.testMode),this._silenceAuthErrors=!!Ze.testMode,typeof Ze.container=="string"){if(this._container=Ie.window.document.getElementById(Ze.container),!this._container)throw new Error(`Container '${Ze.container}' not found.`)}else{if(!(Ze.container instanceof Ie.window.HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=Ze.container}if(this._container.childNodes.length>0&&Ie.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),Ze.maxBounds&&this.setMaxBounds(Ze.maxBounds),Ie.bindAll(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),Ie.window!==void 0&&(Ie.window.addEventListener("online",this._onWindowOnline,!1),Ie.window.addEventListener("resize",this._onWindowResize,!1),Ie.window.addEventListener("orientationchange",this._onWindowResize,!1),Ie.window.addEventListener("webkitfullscreenchange",this._onWindowResize,!1),Ie.window.addEventListener("visibilitychange",this._onVisibilityChange,!1)),this.handlers=new fu(this,Ze),this._localFontFamily=Ze.localFontFamily,this._localIdeographFontFamily=Ze.localIdeographFontFamily,Ze.style&&this.setStyle(Ze.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),Ze.projection&&this.setProjection(Ze.projection),this._hash=Ze.hash&&new Hh(typeof Ze.hash=="string"&&Ze.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:Ze.center,zoom:Ze.zoom,bearing:Ze.bearing,pitch:Ze.pitch}),Ze.bounds&&(this.resize(),this.fitBounds(Ze.bounds,Ie.extend({},Ze.fitBoundsOptions,{duration:0})))),this.resize(),Ze.attributionControl&&this.addControl(new to({customAttribution:Ze.customAttribution})),this._logoControl=new Qp,this.addControl(this._logoControl,Ze.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",Ne=>{this._update(Ne.dataType==="style"),this.fire(new Ie.Event(`${Ne.dataType}data`,Ne))}),this.on("dataloading",Ne=>{this.fire(new Ie.Event(`${Ne.dataType}dataloading`,Ne))})}_getMapId(){return this._mapId}addControl(Ze,Ne){if(Ne===void 0&&(Ne=Ze.getDefaultPosition?Ze.getDefaultPosition():"top-right"),!Ze||!Ze.onAdd)return this.fire(new Ie.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const Ge=Ze.onAdd(this);this._controls.push(Ze);const Qe=this._controlPositions[Ne];return Ne.indexOf("bottom")!==-1?Qe.insertBefore(Ge,Qe.firstChild):Qe.appendChild(Ge),this}
vendor: 4,413 bytes, line 1527
1527removeControl(Ze){if(!Ze||!Ze.onRemove)return this.fire(new Ie.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const Ne=this._controls.indexOf(Ze);return Ne>-1&&this._controls.splice(Ne,1),Ze.onRemove(this),this}hasControl(Ze){return this._controls.indexOf(Ze)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(Ze){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const Ne=!this._moving;return Ne&&this.fire(new Ie.Event("movestart",Ze)).fire(new Ie.Event("move",Ze)),this.fire(new Ie.Event("resize",Ze)),Ne&&this.fire(new Ie.Event("moveend",Ze)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(Ze){return this.transform.setMaxBounds(Ie.LngLatBounds.convert(Ze)),this._update()}setMinZoom(Ze){if((Ze=Ze??-2)>=-2&&Ze<=this.transform.maxZoom)return this.transform.minZoom=Ze,this._update(),this.getZoom()<Ze?this.setZoom(Ze):this.fire(new Ie.Event("zoomstart")).fire(new Ie.Event("zoom")).fire(new Ie.Event("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(Ze){if((Ze=Ze??22)>=this.transform.minZoom)return this.transform.maxZoom=Ze,this._update(),this.getZoom()>Ze?this.setZoom(Ze):this.fire(new Ie.Event("zoomstart")).fire(new Ie.Event("zoom")).fire(new Ie.Event("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(Ze){if((Ze=Ze??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(Ze>=0&&Ze<=this.transform.maxPitch)return this.transform.minPitch=Ze,this._update(),this.getPitch()<Ze?this.setPitch(Ze):this.fire(new Ie.Event("pitchstart")).fire(new Ie.Event("pitch")).fire(new Ie.Event("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(Ze){if((Ze=Ze??85)>85)throw new Error("maxPitch must be less than or equal to 85");if(Ze>=this.transform.minPitch)return this.transform.maxPitch=Ze,this._update(),this.getPitch()>Ze?this.setPitch(Ze):this.fire(new Ie.Event("pitchstart")).fire(new Ie.Event("pitch")).fire(new Ie.Event("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(Ze){return this.transform.renderWorldCopies=Ze,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(Ze){return Ze==="auto"?Ie.window.navigator.language:Array.isArray(Ze)?Ze.length===0?void 0:Ze.map(Ne=>Ne==="auto"?Ie.window.navigator.language:Ne):Ze}setLanguage(Ze){const Ne=this._parseLanguage(Ze);if(!this.style||Ne===this._language)return this;this._language=Ne,this.style._reloadSources();for(const Ge of this._controls)Ge._setLanguage&&Ge._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(Ze){return this.style&&Ze!==this._worldview?(this._worldview=Ze,this.style._reloadSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return this.transform.projection.name==="globe"}setProjection(Ze){return this._lazyInitEmptyStyle(),Ze?typeof Ze=="string"&&(Ze={name:Ze}):Ze=null,this._useExplicitProjection=!!Ze,this._prioritizeAndUpdateProjection(Ze,this.style.stylesheet?this.style.stylesheet.projection:null)}_updateProjectionTransition(){if(this.getProjection().name!=="globe")return;const Ze=this.transform,Ne=Ze.projection.name;let Ge;Ne==="globe"&&Ze.zoom>=Ie.GLOBE_ZOOM_THRESHOLD_MAX?(Ze.setMercatorFromTransition(),Ge=!0):Ne==="mercator"&&Ze.zoom<Ie.GLOBE_ZOOM_THRESHOLD_MAX&&(Ze.setProjection({name:"globe"}),Ge=!0),Ge&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayer
1527Update())}_prioritizeAndUpdateProjection(Ze,Ne){return this._updateProjection(Ze||Ne||{name:"mercator"})}_updateProjection(Ze){let Ne;if(Ne=Ze.name==="globe"&&this.transform.zoom>=Ie.GLOBE_ZOOM_THRESHOLD_MAX?this.transform.setMercatorFromTransition():this.transform.setProjection(Ze),this.style.applyProjectionUpdate(),Ne){this.painter.clearBackgroundTiles();for(const Ge in this.style._sourceCaches)this.style._sourceCaches[Ge].clearTiles();this._update(!0),this._forceMarkerAndPopupUpdate(!0)}return this}project(Ze){return this.transform.locationPoint3D(Ie.LngLat.convert(Ze))}unproject(Ze){return this.transform.pointLocation3D(Ie.Point.convert(Ze))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(Ze,Ne,Ge){if(Ze==="mouseenter"||Ze==="mouseover"){let Qe=!1;const ai=Si=>{const Mi=Ne.filter(qi=>this.getLayer(qi)),Fi=Mi.length?this.queryRenderedFeatures(Si.point,{layers:Mi}):[];Fi.length?Qe||(Qe=!0,Ge.call(this,new Ta(Ze,this,Si.originalEvent,{features:Fi}))):Qe=!1},ui=()=>{Qe=!1};return{layers:new Set(Ne),listener:Ge,delegates:{mousemove:ai,mouseout:ui}}}if(Ze==="mouseleave"||Ze==="mouseout"){let Qe=!1;const ai=Si=>{const Mi=Ne.filter(Fi=>this.getLayer(Fi));(Mi.length?this.queryRenderedFeatures(Si.point,{layers:Mi}):[]).length?Qe=!0:Qe&&(Qe=!1,Ge.call(this,new Ta(Ze,this,Si.originalEvent)))},ui=Si=>{Qe&&(Qe=!1,Ge.call(this,new Ta(Ze,this,Si.originalEvent)))};return{layers:new Set(Ne),listener:Ge,delegates:{mousemove:ai,mouseout:ui}}}{const Qe=ai=>{const ui=Ne.filter(Mi=>this.getLayer(Mi)),Si=ui.length?this.queryRenderedFeatures(ai.point,{layers:ui}):[];Si.length&&(ai.features=Si,Ge.call(this,ai),delete ai.features)};return{layers:new Set(Ne),listener:Ge,delegates:{[Ze]:Qe}}}}on(Ze,Ne,Ge){if(Ge===void 0)return super.on(Ze,Ne);Array.isArray(Ne)||(Ne=[Ne]);const Qe=this._createDelegatedListener(Ze,Ne,Ge);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[Ze]=this._delegatedListeners[Ze]||[],this._delegatedListeners[Ze].push(Qe);for(const ai in Qe.delegates)this.on(ai,Qe.delegates[ai]);return this}once(Ze,Ne,Ge){if(Ge===void 0)return super.once(Ze,Ne);Array.isArray(Ne)||(Ne=[Ne]);const Qe=this._createDelegatedListener(Ze,Ne,Ge);for(const ai in Qe.delegates)this.once(ai,Qe.delegates[ai]);return this}off(Ze,Ne,Ge){if(Ge===void 0)return super.off(Ze,Ne);Ne=new Set(Array.isArray(Ne)?Ne:[Ne]);const Qe=(ui,Si)=>{if(ui.size!==Si.size)return!1;for(const Mi of ui)if(!Si.has(Mi))return!1;return!0},ai=this._delegatedListeners?this._delegatedListeners[Ze]:void 0;return ai&&(ui=>{for(let Si=0;Si<ui.length;Si++){const Mi=ui[Si];if(Mi.listener===Ge&&Qe(Mi.layers,Ne)){for(const Fi in Mi.delegates)this.off(Fi,Mi.delegates[Fi]);return ui.splice(Si,1),this}}})(ai),this}queryRenderedFeatures(Ze,Ne){return this.style?(Ne!==void 0||Ze===void 0||Ze instanceof Ie.Point||Array.isArray(Ze)||(Ne=Ze,Ze=void 0),this.style.queryRenderedFeatures(Ze=Ze||[[0,0],[this.transform.width,this.transform.height]],Ne=Ne||{},this.transform)):[]}querySourceFeatures(Ze,Ne){return this.style.querySourceFeatures(Ze,Ne)}isPointOnSurface(Ze){const{name:Ne}=this.transform.projection;return Ne!=="globe"&&Ne!=="mercator"&&Ie.warnOnce(`${Ne} projection does not support isPointOnSurface, this API may behave unexpectedly.`),this.transform.isPointOnSurface(Ie.Point.convert(Ze))}setStyle(Ze,Ne){return(Ne=Ie.extend({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},Ne)).diff!==!1&&Ne.localIdeographFontFamily===this._localIdeographFontFamily&&Ne.localFontFamily===this._localFontFamily&&this.style&&Ze?(this._diffStyle(Ze,Ne),this):(this._localIdeographFontFamily=Ne.localIdeographFontFamily,this._localFontFamily=Ne.localFontFamily,this._updateStyle(Ze,Ne))}_getUIString(Ze){const Ne=this._locale[Ze];if(Ne==null)throw new Error(`Missing UI string '${Ze}'`);return Ne}_updateStyle(Ze,Ne){return this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),Ze&&(this.style=new ya(this,Ne||{}),this.style.setEventedParent(this,{style:this.style}),typeof Ze=="string"?this.style.loadURL(Ze):this.style.loadJSON(Ze)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new ya(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(Ze,Ne){if(typeof Ze=="string"){const Ge=this._requestManager.normalizeStyleURL(Ze),Qe=this._requestManager.transformRequest(Ge,Ie.ResourceType.Style);Ie.getJSON(Qe,(ai,ui)=>{ai?this.fire(new Ie.ErrorEvent(ai)):ui&&this._updateDiff(ui,Ne)})}else typeof Ze=="object"&&this._updateDiff(Ze,Ne)}_updateDiff(Ze,Ne){try{this.style.setState(Ze)&&this._update(!0)}catch(Ge){Ie.warnOnce(`Unable to perform style diff: ${Ge.message||Ge.error||Ge}.  Rebuilding the style from scratch.`),this._updateStyle(Ze,Ne)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(Ie.warnOnce("There is no style added to the map."),!1)}addSource(Ze,Ne){return this._lazyInitEmptyStyle(),this.style.addSource(Ze,Ne),this._update(!0)}isSourceLoaded(Ze){return!!this.style&&this.style._isSourceCacheLoaded(Ze)}areTilesLoaded(){const Ze=this.style&&this.style._sourceCaches;for(const Ne in Ze){const Ge=Ze[Ne]._tiles;for(const Qe in Ge){const ai=Ge[Qe];if(ai.state!=="loaded"&&ai.state!=="errored")return!1}}return!0}addSourceType(Ze,Ne,Ge){this._lazyInitEmptyStyle(),this.style.addSourceType(Ze,Ne,Ge)}removeSource(Ze){return this.style.removeSource(Ze),this._updateTerrain(),this._update(!0)}getSource(Ze){return this.style.getSource(Ze)}addImage(Ze,Ne,{pixelRatio:Ge=1,sdf:Qe=!1,stretchX:ai,stretchY:ui,c
1527ontent:Si}={}){if(this._lazyInitEmptyStyle(),Ne instanceof Ie.window.HTMLImageElement||Ie.window.ImageBitmap&&Ne instanceof Ie.window.ImageBitmap){const{width:Mi,height:Fi,data:qi}=Ie.exported.getImageData(Ne);this.style.addImage(Ze,{data:new Ie.RGBAImage({width:Mi,height:Fi},qi),pixelRatio:Ge,stretchX:ai,stretchY:ui,content:Si,sdf:Qe,version:0})}else if(Ne.width===void 0||Ne.height===void 0)this.fire(new Ie.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:Mi,height:Fi}=Ne,qi=Ne;this.style.addImage(Ze,{data:new Ie.RGBAImage({width:Mi,height:Fi},new Uint8Array(qi.data)),pixelRatio:Ge,stretchX:ai,stretchY:ui,content:Si,sdf:Qe,version:0,userImage:qi}),qi.onAdd&&qi.onAdd(this,Ze)}}updateImage(Ze,Ne){const Ge=this.style.getImage(Ze);if(!Ge)return void this.fire(new Ie.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const Qe=Ne instanceof Ie.window.HTMLImageElement||Ie.window.ImageBitmap&&Ne instanceof Ie.window.ImageBitmap?Ie.exported.getImageData(Ne):Ne,{width:ai,height:ui}=Qe;ai!==void 0&&ui!==void 0?ai===Ge.data.width&&ui===Ge.data.height?(Ge.data.replace(Qe.data,!(Ne instanceof Ie.window.HTMLImageElement||Ie.window.ImageBitmap&&Ne instanceof Ie.window.ImageBitmap)),this.style.updateImage(Ze,Ge)):this.fire(new Ie.ErrorEvent(new Error(`The width and height of the updated image (${ai}, ${ui})
1528                must be that same as the previous version of the image
1529                (${Ge.data.width}, ${Ge.data.height})`))):this.fire(new Ie.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")))}hasImage(Ze){return Ze?!!this.style.getImage(Ze):(this.fire(new Ie.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(Ze){this.style.removeImage(Ze)}loadImage(Ze,Ne){Ie.getImage(this._requestManager.transformRequest(Ze,Ie.ResourceType.Image),(Ge,Qe)=>{Ne(Ge,Qe instanceof Ie.window.HTMLImageElement?Ie.exported.getImageData(Qe):Qe)})}listImages(){return this.style.listImages()}addLayer(Ze,Ne){return this._lazyInitEmptyStyle(),this.style.addLayer(Ze,Ne),this._update(!0)}moveLayer(Ze,Ne){return this.style.moveLayer(Ze,Ne),this._update(!0)}removeLayer(Ze){return this.style.removeLayer(Ze),this._update(!0)}getLayer(Ze){return this.style.getLayer(Ze)}setLayerZoomRange(Ze,Ne,Ge){return this.style.setLayerZoomRange(Ze,Ne,Ge),this._update(!0)}setFilter(Ze,Ne,Ge={}){return this.style.setFilter(Ze,Ne,Ge),this._update(!0)}getFilter(Ze){return this.style.getFilter(Ze)}setPaintProperty(Ze,Ne,Ge,Qe={}){return this.style.setPaintProperty(Ze,Ne,Ge,Qe),this._update(!0)}getPaintProperty(Ze,Ne){return this.style.getPaintProperty(Ze,Ne)}setLayoutProperty(Ze,Ne,Ge,Qe={}){return this.style.setLayoutProperty(Ze,Ne,Ge,Qe),this._update(!0)}getLayoutProperty(Ze,Ne){return this.style.getLayoutProperty(Ze,Ne)}setLight(Ze,Ne={}){return this._lazyInitEmptyStyle(),this.style.setLight(Ze,Ne),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(Ze){return this._lazyInitEmptyStyle(),!Ze&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(Ze),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(Ze){return this._lazyInitEmptyStyle(),this.style.setFog(Ze),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(Ze){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(Ie.LngLat.convert(Ze),this.transform):0}setFeatureState(Ze,Ne){return this.style.setFeatureState(Ze,Ne),this._update()}removeFeatureState(Ze,Ne){return this.style.removeFeatureState(Ze,Ne),this._update()}getFeatureState(Ze){return this.style.getFeatureState(Ze)}_updateContainerDimensions(){if(!this._container)return;const Ze=this._container.getBoundingClientRect().width||400,Ne=this._container.getBoundingClientRect().height||300;let Ge,Qe,ai,ui=this._container;for(;ui&&(!Qe||!ai);){const Si=Ie.window.getComputedStyle(ui).transform;Si&&Si!=="none"&&(Ge=Si.match(/matrix.*\((.+)\)/)[1].split(", "),Ge[0]&&Ge[0]!=="0"&&Ge[0]!=="1"&&(Qe=Ge[0]),Ge[3]&&Ge[3]!=="0"&&Ge[3]!=="1"&&(ai=Ge[3])),ui=ui.parentElement}this._containerWidth=Qe?Math.abs(Ze/Qe):Ze,this._containerHeight=ai?Math.abs(Ne/ai):Ne}_detectMissingCSS(){Ie.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&Ie.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described 
1529in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const Ze=this._container;Ze.classList.add("mapboxgl-map"),(this._missingCSSCanary=ci("div","mapboxgl-canary",Ze)).style.visibility="hidden",this._detectMissingCSS();const Ne=this._canvasContainer=ci("div","mapboxgl-canvas-container",Ze);this._interactive&&Ne.classList.add("mapboxgl-interactive"),this._canvas=ci("canvas","mapboxgl-canvas",Ne),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const Ge=this._controlContainer=ci("div","mapboxgl-control-container",Ze),Qe=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(ai=>{Qe[ai]=ci("div",`mapboxgl-ctrl-${ai}`,Ge)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(Ze,Ne){const Ge=Ie.exported.devicePixelRatio||1;this._canvas.width=Ge*Math.ceil(Ze),this._canvas.height=Ge*Math.ceil(Ne),this._canvas.style.width=`${Ze}px`,this._canvas.style.height=`${Ne}px`}_addMarker(Ze){this._markers.push(Ze)}_removeMarker(Ze){const Ne=this._markers.indexOf(Ze);Ne!==-1&&this._markers.splice(Ne,1)}_addPopup(Ze){this._popups.push(Ze)}_removePopup(Ze){const Ne=this._popups.indexOf(Ze);Ne!==-1&&this._popups.splice(Ne,1)}_setupPainter(){const Ze=Ie.extend({},Ke.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),Ne=this._useWebGL2&&this._canvas.getContext("webgl2",Ze),Ge=Ne||this._canvas.getContext("webgl",Ze)||this._canvas.getContext("experimental-webgl",Ze);Ge?(this._useWebGL2&&!Ne&&Ie.warnOnce("Failed to create WebGL 2 context. Using WebGL 1."),Ie.storeAuthState(Ge,!0),this.painter=new vp(Ge,this.transform,!!Ne),this.on("data",Qe=>{Qe.dataType==="source"&&this.painter.setTileLoadedFlag(!0)}),Ie.exported$1.testSupport(Ge)):this.fire(new Ie.ErrorEvent(new Error("Failed to initialize WebGL")))}_contextLost(Ze){Ze.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new Ie.Event("webglcontextlost",{originalEvent:Ze}))}_contextRestored(Ze){this._setupPainter(),this.resize(),this._update(),this.fire(new Ie.Event("webglcontextrestored",{originalEvent:Ze}))}_onMapScroll(Ze){if(Ze.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(Ze){return this.style?(this._styleDirty=this._styleDirty||Ze,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(Ze){return this._update(),this._renderTaskQueue.add(Ze)}_cancelRenderFrame(Ze){this._renderTaskQueue.remove(Ze)}_requestDomTask(Ze){!this.loaded()||this.loaded()&&!this.isMoving()?Ze():this._domRenderTaskQueue.add(Ze)}_render(Ze){let Ne;const Ge=this.painter.context.extTimerQuery,Qe=Ie.exported.now();if(this.listens("gpu-timing-frame")&&(Ne=Ge.createQueryEXT(),Ge.beginQueryEXT(Ge.TIME_ELAPSED_EXT,Ne)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],Ie.window.performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],Ie.window.performance.now())),this._renderTaskQueue.run(Ze),this._domRenderTaskQueue.run(Ze),this._removed)return;this._updateProjectionTransition();const ai=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const Mi=this.transform.zoom,Fi=this.transform.pitch,qi=Ie.exported.now(),Xi=new Ie.EvaluationParameters(Mi,{now:qi,fadeDuration:ai,pitch:Fi,transition:this.style.getTransition()});this.style.update(Xi)}this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedU
vendor: 15,038 bytes, line 1529
1529pdate=!0,this._sourcesDirty=!0);let ui=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),ui=this._updateAverageElevation(Qe),this.style._updateSources(this.transform),this._forceMarkerAndPopupUpdate()):ui=this._updateAverageElevation(Qe),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,ai,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:ai,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new Ie.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new Ie.Event("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),Ne){const Mi=Ie.exported.now()-Qe;Ge.endQueryEXT(Ge.TIME_ELAPSED_EXT,Ne),setTimeout(()=>{const Fi=Ge.getQueryObjectEXT(Ne,Ge.QUERY_RESULT_EXT)/1e6;Ge.deleteQueryEXT(Ne),this.fire(new Ie.Event("gpu-timing-frame",{cpuTime:Mi,gpuTime:Fi})),Ie.window.performance.mark("frame-gpu",{startTime:Qe,detail:{gpuTime:Fi}})},50)}if(this.listens("gpu-timing-layer")){const Mi=this.painter.collectGpuTimers();setTimeout(()=>{const Fi=this.painter.queryGpuTimers(Mi);this.fire(new Ie.Event("gpu-timing-layer",{layerTimes:Fi}))},50)}if(this.listens("gpu-timing-deferred-render")){const Mi=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const Fi=this.painter.queryGpuTimeDeferredRender(Mi);this.fire(new Ie.Event("gpu-timing-deferred-render",{gpuTime:Fi}))},50)}const Si=this._sourcesDirty||this._styleDirty||this._placementDirty||ui;if(Si||this._repaint)this.triggerRepaint();else{const Mi=!this.isMoving()&&this.loaded();if(Mi&&(ui=this._updateAverageElevation(Qe,!0)),ui)this.triggerRepaint();else if(this._triggerFrame(!1),Mi&&(this.fire(new Ie.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const Fi=this._calculateSpeedIndex();this.fire(new Ie.Event("speedindexcompleted",{speedIndex:Fi})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||Si||(this._fullyLoaded=!0,Ie.LivePerformanceUtils.mark(Ie.PerformanceMarkers.fullLoad),this._performanceMetricsCollection&&Ie.postPerformanceEvent(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(Ze){for(const Ne of this._markers)Ze&&!this.getRenderWorldCopies()&&(Ne._lngLat=Ne._lngLat.wrap()),Ne._update();for(const Ne of this._popups)!Ze||this.getRenderWorldCopies()||Ne._trackPointer||(Ne._lngLat=Ne._lngLat.wrap()),Ne._update()}_updateAverageElevation(Ze,Ne=!1){const Ge=Qe=>(this.transform.averageElevation=Qe,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return this.transform.averageElevation!==0&&Ge(0);if((Ne||Ze-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(Ze)){const Qe=this.transform.averageElevation;let ai=this.transform.sampleAverageElevation(),ui=!1;this.transform.elevation&&(ui=this.transform.elevation.exaggeration()!==this._averageElevationExaggeration,this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(ai)?ai=0:this._averageElevationLastSampledAt=Ze;const Si=Math.abs(Qe-ai);if(Si>1){if(this._isInitialLoad||ui)return this._averageElevation.jumpTo(ai),Ge(ai);this._averageElevation.easeTo(ai,Ze,300)}else if(Si>1e-4)return this._averageElevation.jumpTo(ai),Ge(ai)}return!!this._averageElevation.isEasing(Ze)&&Ge(this._averageElevation.getValue(Ze))}_authenticate(){Ie.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,Ze=>{if(Ze&&(Ze.message===Ie.AUTH_ERR_MSG||Ze.status===401)){const Ne=this.painter.context.gl;Ie.storeAuthState(Ne,!1),this._logoControl instanceof Qp&&this._logoControl._updateLogo(),Ne&&Ne.clear(Ne.DEPTH_BUFFER_BIT|Ne.COLOR_BUFFER_BIT|Ne.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new Ie.ErrorEvent(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),Ie.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){const Ze=this._isDragging();this.painter.updateTerrain(this.style,Ze)}_calculateSpeedIndex(){const Ze=this.painter.canvasCopy(),Ne=this.painter.getCanvasCopiesAndTimestamps();Ne.timeStamps.push(performance.now());const Ge=this.painter.context.gl,Qe=Ge.createFramebuffer();function ai(ui){Ge.framebufferTexture2D(Ge.FRAMEBUFFER,Ge.COLOR_ATTACHMENT0,Ge.TEXTURE_2D,ui,0);const Si=new Uint8Array(Ge.drawingBufferWidth*Ge.drawingBufferHeight*4);return Ge.readPixels(0,0,Ge.drawingBufferWidth,Ge.drawingBufferHeight,Ge.RGBA,Ge.UNSIGNED_BYTE,Si),Si}return Ge.bindFramebuffer(Ge.FRAMEBUFFER,Qe),this._canvasPixelComparison(ai(Ze),Ne.canvasCopies.map(ai),Ne.timeStamps)}_canvasPixelComparison(Ze,Ne,Ge){let Qe=Ge[1]-Ge[0];const ai=Ze.length/4;for(let ui=0;ui<Ne.length;ui++){const Si=Ne[ui];let Mi=0;for(let Fi=0;Fi<Si.length;Fi+=4)Si[Fi]===Ze[Fi]&&Si[Fi+1]===Ze[Fi+1]&&Si[Fi+2]===Ze[Fi+2]&&Si[Fi+3]===Ze[Fi+3]&&(Mi+=1);Qe+=(Ge[ui+2]-Ge[ui+1])*(1-Mi/ai)}return Qe}remove(){this._hash&&this._hash.remove();for(const Ne of this._controls)Ne.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),Ie.window!==void 0&&(Ie.window.removeEventListener("resize",this._onWindowResize,!1),Ie.window.removeEventListener("orientationchange",this._onWindowResize,!1),Ie.window.removeEventListener("webkitfullscreenchange",this._onWindowResize,!1),Ie.window.removeEventListener("online",this._onWindowOnline,!1),Ie.window.removeEventListener("visibilitychange",this._onVisibilityChange,!1));const Ze=this.painter.context.gl.getExtension("WEBGL_lose_context");Ze&&Ze.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),Ie.removeAuthState(this.painter.context.gl),this._removed=!0,this.fire(new Ie.Event("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(Ze){this._renderNextFrame=this._renderNextFrame||Ze,this.style&&!this._frame&&(this._frame=Ie.exported.frame(Ne=>{const Ge=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,Ge&&this._render(Ne)}))}_preloadTiles(Ze){const Ne=this.style?Object.values(this.style._sourceCaches):[];return Ie.asyncAll(Ne,(Ge,Qe)=>Ge._preloadTiles(Ze,Qe),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(Ze){this._trackResize&&this.resize({originalEvent:Ze})._update()}_onVisibilityChange(){Ie.window.document.visibilityState==="hidden"&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(Ze){this._showTileBoundaries!==Ze&&(this._showTileBoundaries=Ze,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(Ze){this._showTerrainWireframe!==Ze&&(this._showTerrainWireframe=Ze,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(Ze){this._speedIndexTiming!==Ze&&(this._speedIndexTiming=Ze,this._update())}get showPadding(){return!!this._showPadding}set showPadding(Ze){this._showPadding!==Ze&&(this._showPadding=Ze,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(Ze){this._showCollisionBoxes!==Ze&&(this._showCollisionBoxes=Ze,Ze?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(Ze){this._showOverdrawInspector!==Ze&&(this._showOverdrawInspector=Ze,this._update())}get repaint(){return!!this._repaint}set repaint(Ze){this._repaint!==Ze&&(this._repaint=Ze,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(Ze){this._vertices=Ze,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(Ze){this._showTileAABBs!==Ze&&(this._showTileAABBs=Ze,Ze&&this._update())}_setCacheLimits(Ze,Ne){Ie.setCacheLimits(Ze,Ne)}get version(){return Ie.version}},NavigationControl:class{constructor(Ze){this.options=Ie.extend({},ef,Ze),this._container=ci("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",Ne=>Ne.preventDefault()),this.options.showZoom&&(Ie.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",Ne=>{this._map&&this._map.zoomIn({},{originalEvent:Ne})}),ci("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",Ne=>{this._map&&this._map.zoomOut({},{originalEvent:Ne})}),ci("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(Ie.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",Ne=>{const Ge=this._map;Ge&&(this.options.visualizePitch?Ge.resetNorthPitch({},{originalEvent:Ne}):Ge.resetNorth({},{originalEvent:Ne}))}),this._compassIcon=ci("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const Ze=this._map;if(!Ze)return;const Ne=Ze.getZoom(),Ge=Ne===Ze.getMaxZoom(),Qe=Ne===Ze.getMinZoom();this._zoomInButton.disabled=Ge,this._zoomOutButton.disabled=Qe,this._zoomInButton.setAttribute("aria-disabled",Ge.toString()),this._zoomOutButton.setAttribute("aria-disabled",Qe.toString())}_rotateCompassArrow(){const Ze=this._map;if(!Ze)return;const Ne=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(Ze.transform.pitch*(Math.PI/180)),.5)}) rotateX(${Ze.transform.pitch}deg) rotateZ(${Ze.transform.angle*(180/Math.PI)}deg)`:`rotate(${Ze.transform.angle*(180/Math.PI)}deg)`;Ze._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=Ne)})}onAdd(Ze){return this._map=Ze,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),Ze.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&Ze.on("pitch",this._rotateCompassArrow),Ze.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Vu(Ze,this._compass,this.options.visualizePitch)),this._container}onRemove(){const Ze=this._map;Ze&&(this._container.remove(),this.options.showZoom&&Ze.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&Ze.off("pitch",this._rotateCompassArrow),Ze.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(Ze,Ne){const Ge=ci("button",Ze,this._container);return Ge.type="button",Ge.addEventListener("click",Ne),Ge}_setButtonTitle(Ze,Ne){if(!this._map)return;const Ge=this._map._getUIString(`NavigationControl.${Ne}`);Ze.setAttribute("aria-label",Ge),Ze.firstElementChild&&Ze.firstElementChild.setAttribute("title",Ge)}},GeolocateControl:class extends Ie.Evented{constructor(Ze){super(),this.options=Ie.extend({geolocation:Ie.window.navigator.geolocation},td,Ze),Ie.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=xp(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(Ze){return this._map=Ze,this._container=ci("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){this._geolocationWatchID!==void 0&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(Ze){const Ne=(Ge=!!this.options.geolocation)=>{this._supportsGeolocation=Ge,Ze(Ge)};this._supportsGeolocation!==void 0?Ze(this._supportsGeolocation):Ie.window.navigator.permissions!==void 0?Ie.window.navigator.permissions.query({name:"geolocation"}).then(Ge=>Ne(Ge.state!=="denied")).catch(()=>Ne()):Ne()}_isOutOfMapMaxBounds(Ze){const Ne=this._map.getMaxBounds(),Ge=Ze.coords;return!!Ne&&(Ge.longitude<Ne.getWest()||Ge.longitude>Ne.getEast()||Ge.latitude<Ne.getSouth()||Ge.latitude>Ne.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(Ze){if(this._map){if(this._isOutOfMapMaxBounds(Ze))return this._setErrorState(),this.fire(new Ie.Event("outofmaxbounds",Ze)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=Ze,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_E
1529RROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(Ze),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(Ze),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new Ie.Event("geolocate",Ze)),this._finish()}}_updateCamera(Ze){const Ne=new Ie.LngLat(Ze.coords.longitude,Ze.coords.latitude),Ge=Ze.coords.accuracy,Qe=this._map.getBearing(),ai=Ie.extend({bearing:Qe},this.options.fitBoundsOptions);this._map.fitBounds(Ne.toBounds(Ge),ai,{geolocateSource:!0})}_updateMarker(Ze){if(Ze){const Ne=new Ie.LngLat(Ze.coords.longitude,Ze.coords.latitude);this._accuracyCircleMarker.setLngLat(Ne).addTo(this._map),this._userLocationDotMarker.setLngLat(Ne).addTo(this._map),this._accuracy=Ze.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const Ze=this._map.transform,Ne=Ie.mercatorZfromAltitude(1,Ze._center.lat)*Ze.worldSize,Ge=Math.ceil(2*this._accuracy*Ne);this._circleElement.style.width=`${Ge}px`,this._circleElement.style.height=`${Ge}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&typeof this._heading=="number"?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(Ze){if(this._map){if(this.options.trackUserLocation)if(Ze.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const Ne=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",Ne),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",Ne),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(Ze.code===3&&this._noTimeout)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new Ie.Event("error",Ze)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(Ze){if(this._map!==void 0){if(this._container.addEventListener("contextmenu",Ne=>Ne.preventDefault()),this._geolocateButton=ci("button","mapboxgl-ctrl-geolocate",this._container),ci("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",Ze===!1){Ie.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const Ne=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",Ne),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",Ne)}else{const Ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",Ne),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",Ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
1529se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=ci("div","mapboxgl-user-location"),this._dotElement.appendChild(ci("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(ci("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new Gs({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=ci("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Gs({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",Ne=>{Ne.geolocateSource||this._watchState!=="ACTIVE_LOCK"||Ne.originalEvent&&Ne.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new Ie.Event("trackuserlocationend")))})}}_onDeviceOrientation(Ze){this._userLocationDotMarker&&(Ze.webkitCompassHeading?this._heading=Ze.webkitCompassHeading:Ze.absolute===!0&&(this._heading=-1*Ze.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return Ie.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new Ie.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new Ie.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new Ie.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let Ze;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(Ze={maximumAge:6e5,timeout:0},this._noTimeout=!0):(Ze=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,Ze),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const Ze=()=>{Ie.window.addEventListener("ondeviceorientationabsolute"in Ie.window?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};Ie.window.DeviceMotionEvent!==void 0&&typeof Ie.window.DeviceMotionEvent.requestPermission=="function"?DeviceOrientationEvent.requestPermission().then(Ne=>{Ne==="granted"&&Ze()}).catch(console.error):Ze()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),Ie.window.removeEventListener("deviceorientation",this._onDeviceOrientation),Ie.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","fal
1529se"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:to,ScaleControl:class{constructor(Ze){this.options=Ie.extend({},Rf,Ze),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),Ie.bindAll(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const Ze=this.options.maxWidth||100,Ne=this._map,Ge=Ne._containerHeight/2,Qe=Ne._containerWidth/2-Ze/2,ai=Ne.unproject([Qe,Ge]),ui=Ne.unproject([Qe+Ze,Ge]),Si=ai.distanceTo(ui);if(this.options.unit==="imperial"){const Mi=3.2808*Si;Mi>5280?this._setScale(Ze,Mi/5280,"mile"):this._setScale(Ze,Mi,"foot")}else this.options.unit==="nautical"?this._setScale(Ze,Si/1852,"nautical-mile"):Si>=1e3?this._setScale(Ze,Si/1e3,"kilometer"):this._setScale(Ze,Si,"meter")}_setScale(Ze,Ne,Ge){this._map._requestDomTask(()=>{const Qe=function(ui){const Si=Math.pow(10,`${Math.floor(ui)}`.length-1);let Mi=ui/Si;return Mi=Mi>=10?10:Mi>=5?5:Mi>=3?3:Mi>=2?2:Mi>=1?1:function(Fi){const qi=Math.pow(10,Math.ceil(-Math.log(Fi)/Math.LN10));return Math.round(Fi*qi)/qi}(Mi),Si*Mi}(Ne),ai=Qe/Ne;this._container.innerHTML=this._isNumberFormatSupported&&Ge!=="nautical-mile"?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:Ge}).format(Qe):`${Qe}&nbsp;${Wh[Ge]}`,this._container.style.width=Ze*ai+"px"})}onAdd(Ze){return this._map=Ze,this._language=Ze.getLanguage(),this._container=ci("div","mapboxgl-ctrl mapboxgl-ctrl-scale",Ze.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(Ze){this._language=Ze,this._update()}setUnit(Ze){this.options.unit=Ze,this._update()}},FullscreenControl:class{constructor(Ze){this._fullscreen=!1,Ze&&Ze.container&&(Ze.container instanceof Ie.window.HTMLElement?this._container=Ze.container:Ie.warnOnce("Full screen control 'container' must be a DOM element.")),Ie.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in Ie.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in Ie.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(Ze){return this._map=Ze,this._container||(this._container=this._map.getContainer()),this._controlContainer=ci("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",Ie.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,Ie.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!Ie.window.document.fullscreenEnabled&&!Ie.window.document.webkitFullscreenEnabled)}_setupUI(){const Ze=this._fullscreenButton=ci("button","mapboxgl-ctrl-fullscreen",this._controlContainer);ci("span","mapboxgl-ctrl-icon",Ze).setAttribute("aria-hidden","true"),Ze.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),Ie.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const Ze=this._getTitle();this._fullscreenButton.setAttribute("aria-label",Ze),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",Ze)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(Ie.window.document.fullscreenElement||Ie.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?Ie.window.document.exitFullscreen?Ie.window.document.exitFullscreen():Ie.window.document.webkitCancelFullScreen&&Ie.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends Ie.Evented{constructor(Ze){super(),this.options=Ie.extend(Object.create(um),Ze),Ie.b
vendor: 4,513 bytes, line 1529
1529indAll(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(Ze&&Ze.className?Ze.className.trim().split(/\s+/):[])}addTo(Ze){return this._map&&this.remove(),this._map=Ze,this.options.closeOnClick&&Ze.on("preclick",this._onClose),this.options.closeOnMove&&Ze.on("move",this._onClose),Ze.on("remove",this.remove),this._update(),Ze._addPopup(this),this._focusFirstElement(),this._trackPointer?(Ze.on("mousemove",this._onMouseEvent),Ze.on("mouseup",this._onMouseEvent),Ze._canvasContainer.classList.add("mapboxgl-track-pointer")):Ze.on("move",this._update),this.fire(new Ie.Event("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const Ze=this._map;return Ze&&(Ze.off("move",this._update),Ze.off("move",this._onClose),Ze.off("preclick",this._onClose),Ze.off("click",this._onClose),Ze.off("remove",this.remove),Ze.off("mousemove",this._onMouseEvent),Ze.off("mouseup",this._onMouseEvent),Ze.off("drag",this._onMouseEvent),Ze._canvasContainer&&Ze._canvasContainer.classList.remove("mapboxgl-track-pointer"),Ze._removePopup(this),this._map=void 0),this.fire(new Ie.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(Ze){this._lngLat=Ie.LngLat.convert(Ze),this._pos=null,this._trackPointer=!1,this._update();const Ne=this._map;return Ne&&(Ne.on("move",this._update),Ne.off("mousemove",this._onMouseEvent),Ne._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const Ze=this._map;return Ze&&(Ze.off("move",this._update),Ze.on("mousemove",this._onMouseEvent),Ze.on("drag",this._onMouseEvent),Ze._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(Ze){return this.setDOMContent(Ie.window.document.createTextNode(Ze))}setHTML(Ze){const Ne=Ie.window.document.createDocumentFragment(),Ge=Ie.window.document.createElement("body");let Qe;for(Ge.innerHTML=Ze;Qe=Ge.firstChild,Qe;)Ne.appendChild(Qe);return this.setDOMContent(Ne)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(Ze){return this.options.maxWidth=Ze,this._update(),this}setDOMContent(Ze){let Ne=this._content;if(Ne)for(;Ne.hasChildNodes();)Ne.firstChild&&Ne.removeChild(Ne.firstChild);else Ne=this._content=ci("div","mapboxgl-popup-content",this._container||void 0);if(Ne.appendChild(Ze),this.options.closeButton){const Ge=this._closeButton=ci("button","mapboxgl-popup-close-button",Ne);Ge.type="button",Ge.setAttribute("aria-label","Close popup"),Ge.setAttribute("aria-hidden","true"),Ge.innerHTML="&#215;",Ge.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(Ze){return this._classList.add(Ze),this._updateClassList(),this}removeClassName(Ze){return this._classList.delete(Ze),this._updateClassList(),this}setOffset(Ze){return this.options.offset=Ze,this._update(),this}toggleClassName(Ze){let Ne;return this._classList.delete(Ze)?Ne=!1:(this._classList.add(Ze),Ne=!0),this._updateClassList(),Ne}_onMouseEvent(Ze){this._update(Ze.point)}_getAnchor(Ze){if(this.options.anchor)return this.options.anchor;const Ne=this._map,Ge=this._container,Qe=this._pos;if(!Ne||!Ge||!Qe)return"bottom";const ai=Ge.offsetWidth,ui=Ge.offsetHeight,Si=Qe.x<ai/2,Mi=Qe.x>Ne.transform.width-ai/2;if(Qe.y+Ze<ui)return Si?"top-left":Mi?"top-right":"top";if(Qe.y>Ne.transform.height-ui){if(Si)return"bottom-left";if(Mi)return"bottom-right"}return Si?"left":Mi?"right":"bottom"}_updateClassList(){const Ze=this._container;if(!Ze)return;const Ne=[...this._classList];Ne.push("mapboxgl-popup"),this._anchor&&Ne.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&Ne.push("mapboxgl-popup-track-pointer"),Ze.className=Ne.join(" ")}_update(Ze){const Ne=this._map,Ge=this._content;if(!Ne||!this._lngLat&&!this._trackPointer||!Ge)return;let Qe=this._container;if(Qe||(Qe=this._container=ci("div","mapboxgl-popup",Ne.getContainer()),this._tip=ci("div","mapboxgl-popup-tip",Qe),Qe.appendChild(Ge)),this.options.maxWidth&&Qe.style.maxWidth!==this.options.maxWidth&&(Qe.style.maxWidth=this.options.maxWidth),Ne.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Qc(this._lngLat,this._pos,Ne.transform)),!this._trackPointer||Ze){const ai=this._pos=this._trackPointer&&Ze?Ze:Ne.project(this._lngLat),ui=Eu(this.options.offset),Si=this._anchor=this._getAnchor(ui.y),Mi=Eu(this.options.offset,Si),Fi=ai.add(Mi).roun
1529d();Ne._requestDomTask(()=>{this._container&&Si&&(this._container.style.transform=`${ph[Si]} translate(${Fi.x}px,${Fi.y}px)`)})}if(!this._marker&&Ne._showingGlobe()){const ai=Ie.isLngLatBehindGlobe(Ne.transform,this._lngLat)?0:1;this._setOpacity(ai)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const Ze=this._container.querySelector(Ug);Ze&&Ze.focus()}_onClose(){this.remove()}_setOpacity(Ze){this._container&&(this._container.style.opacity=`${Ze}`),this._content&&(this._content.style.pointerEvents=Ze?"auto":"none")}},Marker:Gs,Style:ya,LngLat:Ie.LngLat,LngLatBounds:Ie.LngLatBounds,Point:Ie.Point,MercatorCoordinate:Ie.MercatorCoordinate,FreeCameraOptions:jm,Evented:Ie.Evented,config:Ie.config,prewarm:function(){dl().acquire(za)},clearPrewarmedResources:function(){const Ze=Ba;Ze&&(Ze.isPreloaded()&&Ze.numActive()===1?(Ze.release(za),Ba=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return Ie.config.ACCESS_TOKEN},set accessToken(Ze){Ie.config.ACCESS_TOKEN=Ze},get baseApiUrl(){return Ie.config.API_URL},set baseApiUrl(Ze){Ie.config.API_URL=Ze},get workerCount(){return ul.workerCount},set workerCount(Ze){ul.workerCount=Ze},get maxParallelImageRequests(){return Ie.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Ze){Ie.config.MAX_PARALLEL_IMAGE_REQUESTS=Ze},clearStorage(Ze){Ie.clearTileCache(Ze)},workerUrl:"",workerClass:null,setNow:Ie.exported.setNow,restoreNow:Ie.exported.restoreNow};return qh});var Ve=Le;return Ve})})(mapboxGl);var mapboxGlExports=mapboxGl.exports;const mapboxgl=getDefaultExportFromCjs(mapboxGlExports);function map(De,_e={}){return{init:function(){mapboxgl.accessToken="pk.eyJ1IjoiY2ctc3VwcG9ydCIsImEiOiJjbHJiOGp1aTYwa3p3Mmpudm96Y2IxcWhiIn0._oSs9Xx0B-S5vxr2VejGQg";let Ae=new mapboxgl.Map(_$3.merge({container:this.$el,dragPan:!0,interactive:!0,scrollZoom:!0,style:"mapbox://styles/mapbox/streets-v12",zoom:0},_e==null?void 0:_e.map)),ke=new mapboxgl.NavigationControl(_$3.merge({showCompass:!0,showZoom:!0},_e==null?void 0:_e.navigationControl));Ae.addControl(ke,"top-right");let Le=new mapboxgl.LngLatBounds;De.forEach(function(Fe){let Ve=new mapboxgl.LngLat(Fe.lng,Fe.lat),Ie=new mapboxgl.Marker(_$3.merge({color:"#111827",scale:1},Fe==null?void 0:Fe.options)).setLngLat(Ve);if(Fe.popup){let je="";Fe.popup.heading&&(je+=`<h4 class="leading-none text-sm">${Fe.popup.heading}</h4>`),Fe.popup.description&&(je+=`<div class="leading-relaxed text-xs">${Fe.popup.description}</div>`);let Ke=new mapboxgl.Popup().setHTML(`<div class="pt-2 space-y-1">${je}</div>`);Ie.setPopup(Ke)}Ie.addTo(Ae),Le.extend(Ve)}),Ae.fitBounds(Le,_$3.merge({linear:!0,padding:96},_e==null?void 0:_e.fitBounds))}}}const sides=["top","right","bottom","left"],alignments=["start","end"],placements=sides.reduce((De,_e)=>De.concat(_e,_e+"-"+alignments[0],_e+"-"+alignments[1]),[]),min=Math.min,max=Math.max,round$1=Math.round,floor=Math.floor,createCoords=De=>({x:De,y:De}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(De,_e,Ae){return max(De,min(_e,Ae))}function evaluate(De,_e){return typeof De=="function"?De(_e):De}function getSide(De){return De.split("-")[0]}function getAlignment(De){return De.split("-")[1]}function getOppositeAxis(De){return De==="x"?"y":"x"}function getAxisLength(De){return De==="y"?"height":"width"}const yAxisSides=new Set(["top","bottom"]);function getSideAxis(De){return yAxisSides.has(getSide(De))?"y":"x"}function getAlignmentAxis(De){return getOppositeAxis(getSideAxis(De))}function getAlignmentSides(De,_e,Ae){Ae===void 0&&(Ae=!1);const ke=getAlignment(De),Le=getAlignmentAxis(De),Fe=getAxisLength(Le);let Ve=Le==="x"?ke===(Ae?"end":"start")?"right":"left":ke==="start"?"bottom":"top";return _e.reference[Fe]>_e.floating[Fe]&&(Ve=getOppositePlacement(Ve)),[Ve,getOppositePlacement(Ve)]}function getExpandedPlacements(De){const _e=getOppositePlacement(De);return[getOppositeAlignmentPlacement(De),_e,getOppositeAlignmentPlacement(_e)]}function getOppositeAlignmentPlacement(De){return De.replace(/start|end/g,_e=>oppositeAlignmentMap[_e])}const lrPlacement=["left","right"],rlPlacement=["right","left"],tbPlacement=["top","bottom"],btPlacement=["bottom","top"];function getSideList(De,_e,Ae){switch(De){case"top":case"bottom":return Ae?_e?rlPlacement:lrPlacement:_e?lrPlacement:rlPlacement;case"left":case"right":return _e?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(De,_e,Ae,ke){const Le=getAlignment(De);let Fe=getSideList(getSide(De),Ae==="start",ke);return Le&&(Fe=Fe.map(Ve=>Ve+"-"+Le),_e&&(Fe=Fe.concat(Fe.map(getOppositeAlignmentPlacement)))),Fe}function getOppositePlacement(De){return De.replace(/left|right|bottom|top/g,_e=>oppositeSideMap[_e])}
vendor: 7,106 bytes, line 1529
1529function expandPaddingObject(De){return{top:0,right:0,bottom:0,left:0,...De}}function getPaddingObject(De){return typeof De!="number"?expandPaddingObject(De):{top:De,right:De,bottom:De,left:De}}function rectToClientRect(De){const{x:_e,y:Ae,width:ke,height:Le}=De;return{width:ke,height:Le,top:Ae,left:_e,right:_e+ke,bottom:Ae+Le,x:_e,y:Ae}}function computeCoordsFromPlacement(De,_e,Ae){let{reference:ke,floating:Le}=De;const Fe=getSideAxis(_e),Ve=getAlignmentAxis(_e),Ie=getAxisLength(Ve),je=getSide(_e),Ke=Fe==="y",$e=ke.x+ke.width/2-Le.width/2,qe=ke.y+ke.height/2-Le.height/2,ci=ke[Ie]/2-Le[Ie]/2;let gi;switch(je){case"top":gi={x:$e,y:ke.y-Le.height};break;case"bottom":gi={x:$e,y:ke.y+ke.height};break;case"right":gi={x:ke.x+ke.width,y:qe};break;case"left":gi={x:ke.x-Le.width,y:qe};break;default:gi={x:ke.x,y:ke.y}}switch(getAlignment(_e)){case"start":gi[Ve]-=ci*(Ae&&Ke?-1:1);break;case"end":gi[Ve]+=ci*(Ae&&Ke?-1:1);break}return gi}const computePosition$1=async(De,_e,Ae)=>{const{placement:ke="bottom",strategy:Le="absolute",middleware:Fe=[],platform:Ve}=Ae,Ie=Fe.filter(Boolean),je=await(Ve.isRTL==null?void 0:Ve.isRTL(_e));let Ke=await Ve.getElementRects({reference:De,floating:_e,strategy:Le}),{x:$e,y:qe}=computeCoordsFromPlacement(Ke,ke,je),ci=ke,gi={},Ai=0;for(let oi=0;oi<Ie.length;oi++){const{name:ii,fn:hi}=Ie[oi],{x:Ei,y:Li,data:Di,reset:zi}=await hi({x:$e,y:qe,initialPlacement:ke,placement:ci,strategy:Le,middlewareData:gi,rects:Ke,platform:Ve,elements:{reference:De,floating:_e}});$e=Ei??$e,qe=Li??qe,gi={...gi,[ii]:{...gi[ii],...Di}},zi&&Ai<=50&&(Ai++,typeof zi=="object"&&(zi.placement&&(ci=zi.placement),zi.rects&&(Ke=zi.rects===!0?await Ve.getElementRects({reference:De,floating:_e,strategy:Le}):zi.rects),{x:$e,y:qe}=computeCoordsFromPlacement(Ke,ci,je)),oi=-1)}return{x:$e,y:qe,placement:ci,strategy:Le,middlewareData:gi}};async function detectOverflow(De,_e){var Ae;_e===void 0&&(_e={});const{x:ke,y:Le,platform:Fe,rects:Ve,elements:Ie,strategy:je}=De,{boundary:Ke="clippingAncestors",rootBoundary:$e="viewport",elementContext:qe="floating",altBoundary:ci=!1,padding:gi=0}=evaluate(_e,De),Ai=getPaddingObject(gi),ii=Ie[ci?qe==="floating"?"reference":"floating":qe],hi=rectToClientRect(await Fe.getClippingRect({element:(Ae=await(Fe.isElement==null?void 0:Fe.isElement(ii)))==null||Ae?ii:ii.contextElement||await(Fe.getDocumentElement==null?void 0:Fe.getDocumentElement(Ie.floating)),boundary:Ke,rootBoundary:$e,strategy:je})),Ei=qe==="floating"?{x:ke,y:Le,width:Ve.floating.width,height:Ve.floating.height}:Ve.reference,Li=await(Fe.getOffsetParent==null?void 0:Fe.getOffsetParent(Ie.floating)),Di=await(Fe.isElement==null?void 0:Fe.isElement(Li))?await(Fe.getScale==null?void 0:Fe.getScale(Li))||{x:1,y:1}:{x:1,y:1},zi=rectToClientRect(Fe.convertOffsetParentRelativeRectToViewportRelativeRect?await Fe.convertOffsetParentRelativeRectToViewportRelativeRect({elements:Ie,rect:Ei,offsetParent:Li,strategy:je}):Ei);return{top:(hi.top-zi.top+Ai.top)/Di.y,bottom:(zi.bottom-hi.bottom+Ai.bottom)/Di.y,left:(hi.left-zi.left+Ai.left)/Di.x,right:(zi.right-hi.right+Ai.right)/Di.x}}const arrow$1=De=>({name:"arrow",options:De,async fn(_e){const{x:Ae,y:ke,placement:Le,rects:Fe,platform:Ve,elements:Ie,middlewareData:je}=_e,{element:Ke,padding:$e=0}=evaluate(De,_e)||{};if(Ke==null)return{};const qe=getPaddingObject($e),ci={x:Ae,y:ke},gi=getAlignmentAxis(Le),Ai=getAxisLength(gi),oi=await Ve.getDimensions(Ke),ii=gi==="y",hi=ii?"top":"left",Ei=ii?"bottom":"right",Li=ii?"clientHeight":"clientWidth",Di=Fe.reference[Ai]+Fe.reference[gi]-ci[gi]-Fe.floating[Ai],zi=ci[gi]-Fe.reference[gi],an=await(Ve.getOffsetParent==null?void 0:Ve.getOffsetParent(Ke));let Je=an?an[Li]:0;(!Je||!await(Ve.isElement==null?void 0:Ve.isElement(an)))&&(Je=Ie.floating[Li]||Fe.floating[Ai]);const fi=Di/2-zi/2,Gi=Je/2-oi[Ai]/2-1,fn=min(qe[hi],Gi),cn=min(qe[Ei],Gi),Tn=fn,Sn=Je-oi[Ai]-cn,Cn=Je/2-oi[Ai]/2+fi,tr=clamp(Tn,Cn,Sn),xr=!je.arrow&&getAlignment(Le)!=null&&Cn!==tr&&Fe.reference[Ai]/2-(Cn<Tn?fn:cn)-oi[Ai]/2<0,er=xr?Cn<Tn?Cn-Tn:Cn-Sn:0;return{[gi]:ci[gi]+er,data:{[gi]:tr,centerOffset:Cn-tr-er,...xr&&{alignmentOffset:er}},reset:xr}}});function getPlacementList(De,_e,Ae){return(De?[...Ae.filter(Le=>getAlignment(Le)===De),...Ae.filter(Le=>getAlignment(Le)!==De)]:Ae.filter(Le=>getSide(Le)===Le)).filter(Le=>De?getAlignment(Le)===De||(_e?getOppositeAlignmentPlacement(Le)!==Le:!1):!0)}const autoPlacement$2=function(De){return De===void 0&&(De={}),{name:"autoPlacement",options:De,async fn(_e){var Ae,ke,Le;const{rects:Fe,middlewareData:Ve,placement:Ie,platform:je,elements:Ke}=_e,{crossAxis:$e=!1,alignment:qe,allowedPlacements:ci=placements,autoAlignment:gi=!0,...Ai}=evaluate(De,_e),oi=qe!==void 0||ci===placements?getPlacementList(qe||null,gi,ci):ci,ii=await detectOverflow(_e,Ai),hi=((Ae=Ve.autoPlacement)==null?void 0:Ae.index)||0,Ei=oi[hi];if(Ei==null)return{};const Li=getAlignmentSides(Ei,Fe,await(je.isRTL==null?void 0:je.isRTL(Ke.floating)));if(Ie!==Ei)return{reset:{placement:oi[0]}};const Di=[ii[getSide(Ei)],ii[Li[0]],ii[Li[1]]],zi=[...((ke=Ve.autoPlacement)==null?void 0:ke.overflows)||[],{placement:Ei,overflows:Di}],an=oi[hi+1];if(an)return{data:{index:hi+1,overflows:zi},reset:{placement:an}};const Je=zi.map(fn=>{const cn=getAlignment(fn.placement);return[fn.placement,cn&&$e?fn.overflows.slice(0,2).reduce((Tn,Sn)=>Tn+Sn,0):fn.overflows[0],fn.overflows]}).sort((fn,cn)=>fn[1]-cn[1]),Gi=((Le=Je.filter(fn=>fn[2].slice(0,getAlignment(fn[0])?2:3).every(cn=>cn<=0))[0])==null?void 0:Le[0])||Je[0][0];return Gi!==Ie?{data:{index:hi+1,overflows:zi},reset:{placement:Gi}}:{}}}},flip$1=function(De){return De===void 0&&(De={}),{name:"flip",options:De,async fn(_e){var Ae,ke;const{placement:Le,middlewareData:Fe,rects:Ve,initialPlacement:Ie,platform:je,elements:Ke}=_e,{mainAxis:$e=!0,crossAxis:qe=!0,fallbackPlacements:ci,fallbackStrategy:gi="bestFit",fallbackAxisSideDirection:Ai="none",flipAlignment:oi=!0,...ii}=evaluate(De,_e);if((Ae=Fe.arrow)!=null&&Ae.alignmentOffset)return{};const hi=getSide(Le),Ei=getSideAxis(Ie),Li=getSide(Ie)===Ie,Di=await(je.isRTL==null?void 0:je.isRTL(Ke.floating)),zi=ci||(Li||!oi?[getOppositePlacement(Ie)]:getExpandedPlacements(Ie)),an=Ai!=="none";!ci&&an&&zi.push(...getOppositeAxisPlacements(Ie,oi,Ai,Di));const Je=[Ie,...zi],fi=await detectOverflow(_e,ii),Gi=[];let fn=((ke=Fe.flip)==null?void 0:ke.overflows)||[];if($e&&Gi.push(fi[hi]),qe){const Cn=getAlignmentSides(Le,Ve,Di);Gi.push(fi[Cn[0]],fi[Cn[1]])}if(fn=[...fn,{placement:Le,overflows:Gi}],!Gi.every(Cn=>Cn<=0)){var cn,Tn;const Cn=(((cn=Fe.flip)==null?void 0:cn.index)||0)+1,tr=Je[Cn];if(tr&&(!(qe==="alignment"?Ei!==getSideAxis(tr):!1)||fn.every(Hn=>getSideAxis(Hn.placement)===Ei?Hn.overflows[0]>0:!0)))return{data:{index:Cn,overflows:fn},reset:{placement:tr}};let xr=(Tn=fn.filter(er=>er.overflows[0]<=0).sort((er,Hn)=>er.overflows[1]-Hn.overflows[1])[0])==null?void 0:Tn.placement;if(!xr)switch(gi){case"bestFit":{var Sn;const er=(Sn=fn.filter(Hn=>{if(an){const Er=getSideAxis(Hn.placement);return Er===Ei||Er==="y"}return!0}).map(Hn=>[Hn.placement,Hn.overflows.filter(Er=>Er>0).reduce((Er,os)=>
1529Er+os,0)]).sort((Hn,Er)=>Hn[1]-Er[1])[0])==null?void 0:Sn[0];er&&(xr=er);break}case"initialPlacement":xr=Ie;break}if(Le!==xr)return{reset:{placement:xr}}}return{}}}};function getSideOffsets(De,_e){return{top:De.top-_e.height,right:De.right-_e.width,bottom:De.bottom-_e.height,left:De.left-_e.width}}function isAnySideFullyClipped(De){return sides.some(_e=>De[_e]>=0)}const hide$1=function(De){return De===void 0&&(De={}),{name:"hide",options:De,async fn(_e){const{rects:Ae}=_e,{strategy:ke="referenceHidden",...Le}=evaluate(De,_e);switch(ke){case"referenceHidden":{const Fe=await detectOverflow(_e,{...Le,elementContext:"reference"}),Ve=getSideOffsets(Fe,Ae.reference);return{data:{referenceHiddenOffsets:Ve,referenceHidden:isAnySideFullyClipped(Ve)}}}case"escaped":{const Fe=await detectOverflow(_e,{...Le,altBoundary:!0}),Ve=getSideOffsets(Fe,Ae.floating);return{data:{escapedOffsets:Ve,escaped:isAnySideFullyClipped(Ve)}}}default:return{}}}}};function getBoundingRect(De){const _e=min(...De.map(Fe=>Fe.left)),Ae=min(...De.map(Fe=>Fe.top)),ke=max(...De.map(Fe=>Fe.right)),Le=max(...De.map(Fe=>Fe.bottom));return{x:_e,y:Ae,width:ke-_e,height:Le-Ae}}function getRectsByLine(De){const _e=De.slice().sort((Le,Fe)=>Le.y-Fe.y),Ae=[];let ke=null;for(let Le=0;Le<_e.length;Le++){const Fe=_e[Le];!ke||Fe.y-ke.y>ke.height/2?Ae.push([Fe]):Ae[Ae.length-1].push(Fe),ke=Fe}return Ae.map(Le=>rectToClientRect(getBoundingRect(Le)))}const inline$1=function(De){return De===void 0&&(De={}),{name:"inline",options:De,async fn(_e){const{placement:Ae,elements:ke,rects:Le,platform:Fe,strategy:Ve}=_e,{padding:Ie=2,x:je,y:Ke}=evaluate(De,_e),$e=Array.from(await(Fe.getClientRects==null?void 0:Fe.getClientRects(ke.reference))||[]),qe=getRectsByLine($e),ci=rectToClientRect(getBoundingRect($e)),gi=getPaddingObject(Ie);function Ai(){if(qe.length===2&&qe[0].left>qe[1].right&&je!=null&&Ke!=null)return qe.find(ii=>je>ii.left-gi.left&&je<ii.right+gi.right&&Ke>ii.top-gi.top&&Ke<ii.bottom+gi.bottom)||ci;if(qe.length>=2){if(getSideAxis(Ae)==="y"){const fn=qe[0],cn=qe[qe.length-1],Tn=getSide(Ae)==="top",Sn=fn.top,Cn=cn.bottom,tr=Tn?fn.left:cn.left,xr=Tn?fn.right:cn.right,er=xr-tr,Hn=Cn-Sn;return{top:Sn,bottom:Cn,left:tr,right:xr,width:er,height:Hn,x:tr,y:Sn}}const ii=getSide(Ae)==="left",hi=max(...qe.map(fn=>fn.right)),Ei=min(...qe.map(fn=>fn.left)),Li=qe.filter(fn=>ii?fn.left===Ei:fn.right===hi),Di=Li[0].top,zi=Li[Li.length-1].bottom,an=Ei,Je=hi,fi=Je-an,Gi=zi-Di;return{top:Di,bottom:zi,left:an,right:Je,width:fi,height:Gi,x:an,y:Di}}return ci}const oi=await Fe.getElementRects({reference:{getBoundingClientRect:Ai},floating:ke.floating,strategy:Ve});return Le.reference.x!==oi.reference.x||Le.reference.y!==oi.reference.y||Le.reference.width!==oi.reference.width||Le.reference.height!==oi.reference.height?{reset:{rects:oi}}:{}}}},originSides=new Set(["left","top"]);async function convertValueToCoords(De,_e){const{placement:Ae,platform:ke,elements:Le}=De,Fe=await(ke.isRTL==null?void 0:ke.isRTL(Le.floating)),Ve=getSide(Ae),Ie=getAlignment(Ae),je=getSideAxis(Ae)==="y",Ke=originSides.has(Ve)?-1:1,$e=Fe&&je?-1:1,qe=evaluate(_e,De);let{mainAxis:ci,crossAxis:gi,alignmentAxis:Ai}=typeof qe=="number"?{mainAxis:qe,crossAxis:0,alignmentAxis:null}:{mainAxis:qe.mainAxis||0,crossAxis:qe.crossAxis||0,alignmentAxis:qe.alignmentAxis};return Ie&&typeof Ai=="number"&&(gi=Ie==="end"?Ai*-1:Ai),je?{x:gi*$e,y:ci*Ke}:{x:ci*Ke,y:gi*$e}}const offset$1=function(De){return De===void 0&&(De=0),{name:"offset",options:De,async fn(_e){var Ae,ke;const{x:Le,y:Fe,placement:Ve,middlewareData:Ie}=_e,je=await convertValueToCoords(_e,De);return Ve===((Ae=Ie.offset)==null?void 0:Ae.placement)&&(ke=Ie.arrow)!=null&&ke.alignmentOffset?{}:{x:Le+je.x,y:Fe+je.y,data:{...je,placement:Ve}}}}},shift$1=function(De){return De===void 0&&(De={}),{name:"shift",options:De,async fn(_e){const{x:Ae,y:ke,placement:Le}=_e,{mainAxis:Fe=!0,crossAxis:Ve=!1,limiter:Ie={fn:ii=>{let{x:hi,y:Ei}=ii;return{x:hi,y:Ei}}},...je}=evaluate(De,_e),Ke={x:Ae,y:ke},$e=await detectOverflow(_e,je),qe=getSideAxis(getSide(Le)),ci=getOppositeAxis(qe);let gi=Ke[ci],Ai=Ke[qe];if(Fe){const ii=ci==="y"?"top":"left",hi=ci==="y"?"bottom":"right",Ei=gi+$e[ii],Li=gi-$e[hi];gi=clamp(Ei,gi,Li)}if(Ve){const ii=qe==="y"?"top":"left",hi=qe==="y"?"bottom":"right",Ei=Ai+$e[ii],Li=Ai-$e[hi];Ai=clamp(Ei,Ai,Li)}const oi=Ie.fn({..._e,[ci]:gi,[qe]:Ai});return{...oi,data:{x:oi.x-Ae,y:oi.y-ke,enabled:{[ci]:Fe,[qe]:Ve}}}}}},size$1=function(De){return De===void 0&&(De={}),{name:"size",options:De,async fn(_e){var Ae,ke;const{placement:Le,rects:Fe,platform:Ve,elements:Ie}=_e,{apply:je=()=>{},...Ke}=evaluate(De,_e),$e=await detectOverflow(_e,Ke),qe=getSide(Le),ci=getAlignment(Le),gi=getSideAxis(Le)==="y",{width:Ai,height:oi}=Fe.floating;let ii,hi;qe==="top"||qe==="bottom"?(ii=qe,hi=ci===(await(Ve.isRTL==null?void 0:Ve.isRTL(Ie.floating))?"start":"end")?"left":"right"):(hi=qe,ii=ci==="end"?"top":"bottom");const Ei=oi-$e.top-$e.bottom,Li=Ai-$e.left-$e.right,Di=min(oi-$e[ii],Ei),zi=min(Ai-$e[hi],Li),an=!_e.middlewareData.shift;let Je=Di,fi=zi;if((Ae=_e.middlewareData.shift)!=null&&Ae.enabled.x&&(fi=Li),(ke=_e.middlewareData.shift)!=null&&ke.enabled.y&&(Je=Ei),an&&!ci){const fn=max($e.left,0),cn=max($e.right,0),Tn=max($e.top,0),Sn=max($e.bottom,0);gi?fi=Ai-2*(fn!==0||cn!==0?fn+cn:max($e.left,$e.right)):Je=oi-2*(Tn!==0||Sn!==0?Tn+Sn:max($e.top,$e.bottom))}await je({..._e,availableWidth:fi,availableHeight:Je});const Gi=await Ve.getDimensions(Ie.floating);return Ai!==Gi.width||oi!==Gi.height?{reset:{rects:!0}}:{}}}};function hasWindow(){return typeof window<"u"}function getNodeName(De){return isNode(De)?(De.nodeName||"").toLowerCase():"#document"}function getWindow(De){var _e;return(De==null||(_e=De.ownerDocument)==null?void 0:_e.defaultView)||window}function getDocumentElement(De){var _e;return(_e=(isNode(De)?De.ownerDocument:De.document)||window.document)==null?void 0:_e.documentElement}function isNode(De){return hasWindow()?De instanceof Node||De instanceof getWindow(De).Node:!1}function isElement(De){return hasWindow()?De instanceof Element||De instanceof getWindow(De).Element:!1}function isHTMLElement$1(De){return hasWindow()?De instanceof HTMLElement||De instanceof getWindow(De).HTMLElement:!1}function isShadowRoot(De){return!hasWindow()||typeof ShadowRoot>"u"?!1:De instanceof ShadowRoot||De instanceof getWindow(De).ShadowRoot}const invalidOverflowDisplayValues=new Set(["inline","contents"]);function isOverflowElement(De){const{overflow:_e,overflowX:Ae,overflowY:ke,display:Le}=getComputedStyle$1(De);return/auto|scroll|overlay|hidden|clip/.test(_e+ke+Ae)&&!invalidOverflowDisplayValues.has(Le)}const tableElements=new Set(["table","td","th"]);function isTableElement(De){return tableElements.has(getNodeName(De))}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(De){return topLayerSelectors.some(_e=>{try{return De.matches(_e)}catch{return!1}})}const transformProperties=["transform","translate","scale","rotate","perspective"],willChangeValues=["transform","translate","scale","rotate","perspective","filter"],containValues=["paint","layout","strict","content"];function isContainingBlock(De){const _e=isWebKit(),Ae=isElement(De)?getComputedStyle$1(De):De;return transformProperties.some(ke=>Ae[ke]?Ae[ke]!=="none":!1)||(Ae.containerType?Ae.containerType!=="normal":!1)||!_e&&(Ae.backdropFilter?Ae.backdropFilter!=="none":!1)||!_e&&(Ae.filter?Ae.filter!=="none":!1)||willChangeValues.some(ke=>(Ae.willChange||"").includes(ke))||containValues.some(ke=>(Ae.contain||"").includes(ke))}function getContainingBlock(De){let _e=getParentNode(De);for(;isHTMLElement$1(_e)&&!isLastTraversableNode(_e);){if(isContainingBlock(_e))return _e;if(isTopLayer(_e))return null;_e=getParentNode(_e)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lastTraversableNodeNames=new Set(["html","body","#document"]);function isLastTraversableNode(De){return lastTraversableNodeNames.has(getNodeName(De))}function getComputedStyle$1(De){return getWindow(De).getComputedStyle(De)}function getNodeScroll(De){return isElement(De)?{scrollLeft:De.scrollLeft,scrollTop:De.scrollTop}:{scrollLeft:De.scrollX,scrollTop:De.scrollY}}
vendor: 10,547 bytes, line 1529
1529function getParentNode(De){if(getNodeName(De)==="html")return De;const _e=De.assignedSlot||De.parentNode||isShadowRoot(De)&&De.host||getDocumentElement(De);return isShadowRoot(_e)?_e.host:_e}function getNearestOverflowAncestor(De){const _e=getParentNode(De);return isLastTraversableNode(_e)?De.ownerDocument?De.ownerDocument.body:De.body:isHTMLElement$1(_e)&&isOverflowElement(_e)?_e:getNearestOverflowAncestor(_e)}function getOverflowAncestors(De,_e,Ae){var ke;_e===void 0&&(_e=[]),Ae===void 0&&(Ae=!0);const Le=getNearestOverflowAncestor(De),Fe=Le===((ke=De.ownerDocument)==null?void 0:ke.body),Ve=getWindow(Le);if(Fe){const Ie=getFrameElement(Ve);return _e.concat(Ve,Ve.visualViewport||[],isOverflowElement(Le)?Le:[],Ie&&Ae?getOverflowAncestors(Ie):[])}return _e.concat(Le,getOverflowAncestors(Le,[],Ae))}function getFrameElement(De){return De.parent&&Object.getPrototypeOf(De.parent)?De.frameElement:null}function getCssDimensions(De){const _e=getComputedStyle$1(De);let Ae=parseFloat(_e.width)||0,ke=parseFloat(_e.height)||0;const Le=isHTMLElement$1(De),Fe=Le?De.offsetWidth:Ae,Ve=Le?De.offsetHeight:ke,Ie=round$1(Ae)!==Fe||round$1(ke)!==Ve;return Ie&&(Ae=Fe,ke=Ve),{width:Ae,height:ke,$:Ie}}function unwrapElement(De){return isElement(De)?De:De.contextElement}function getScale(De){const _e=unwrapElement(De);if(!isHTMLElement$1(_e))return createCoords(1);const Ae=_e.getBoundingClientRect(),{width:ke,height:Le,$:Fe}=getCssDimensions(_e);let Ve=(Fe?round$1(Ae.width):Ae.width)/ke,Ie=(Fe?round$1(Ae.height):Ae.height)/Le;return(!Ve||!Number.isFinite(Ve))&&(Ve=1),(!Ie||!Number.isFinite(Ie))&&(Ie=1),{x:Ve,y:Ie}}const noOffsets=createCoords(0);function getVisualOffsets(De){const _e=getWindow(De);return!isWebKit()||!_e.visualViewport?noOffsets:{x:_e.visualViewport.offsetLeft,y:_e.visualViewport.offsetTop}}function shouldAddVisualOffsets(De,_e,Ae){return _e===void 0&&(_e=!1),!Ae||_e&&Ae!==getWindow(De)?!1:_e}function getBoundingClientRect(De,_e,Ae,ke){_e===void 0&&(_e=!1),Ae===void 0&&(Ae=!1);const Le=De.getBoundingClientRect(),Fe=unwrapElement(De);let Ve=createCoords(1);_e&&(ke?isElement(ke)&&(Ve=getScale(ke)):Ve=getScale(De));const Ie=shouldAddVisualOffsets(Fe,Ae,ke)?getVisualOffsets(Fe):createCoords(0);let je=(Le.left+Ie.x)/Ve.x,Ke=(Le.top+Ie.y)/Ve.y,$e=Le.width/Ve.x,qe=Le.height/Ve.y;if(Fe){const ci=getWindow(Fe),gi=ke&&isElement(ke)?getWindow(ke):ke;let Ai=ci,oi=getFrameElement(Ai);for(;oi&&ke&&gi!==Ai;){const ii=getScale(oi),hi=oi.getBoundingClientRect(),Ei=getComputedStyle$1(oi),Li=hi.left+(oi.clientLeft+parseFloat(Ei.paddingLeft))*ii.x,Di=hi.top+(oi.clientTop+parseFloat(Ei.paddingTop))*ii.y;je*=ii.x,Ke*=ii.y,$e*=ii.x,qe*=ii.y,je+=Li,Ke+=Di,Ai=getWindow(oi),oi=getFrameElement(Ai)}}return rectToClientRect({width:$e,height:qe,x:je,y:Ke})}function getWindowScrollBarX(De,_e){const Ae=getNodeScroll(De).scrollLeft;return _e?_e.left+Ae:getBoundingClientRect(getDocumentElement(De)).left+Ae}function getHTMLOffset(De,_e){const Ae=De.getBoundingClientRect(),ke=Ae.left+_e.scrollLeft-getWindowScrollBarX(De,Ae),Le=Ae.top+_e.scrollTop;return{x:ke,y:Le}}function convertOffsetParentRelativeRectToViewportRelativeRect(De){let{elements:_e,rect:Ae,offsetParent:ke,strategy:Le}=De;const Fe=Le==="fixed",Ve=getDocumentElement(ke),Ie=_e?isTopLayer(_e.floating):!1;if(ke===Ve||Ie&&Fe)return Ae;let je={scrollLeft:0,scrollTop:0},Ke=createCoords(1);const $e=createCoords(0),qe=isHTMLElement$1(ke);if((qe||!qe&&!Fe)&&((getNodeName(ke)!=="body"||isOverflowElement(Ve))&&(je=getNodeScroll(ke)),isHTMLElement$1(ke))){const gi=getBoundingClientRect(ke);Ke=getScale(ke),$e.x=gi.x+ke.clientLeft,$e.y=gi.y+ke.clientTop}const ci=Ve&&!qe&&!Fe?getHTMLOffset(Ve,je):createCoords(0);return{width:Ae.width*Ke.x,height:Ae.height*Ke.y,x:Ae.x*Ke.x-je.scrollLeft*Ke.x+$e.x+ci.x,y:Ae.y*Ke.y-je.scrollTop*Ke.y+$e.y+ci.y}}function getClientRects(De){return Array.from(De.getClientRects())}function getDocumentRect(De){const _e=getDocumentElement(De),Ae=getNodeScroll(De),ke=De.ownerDocument.body,Le=max(_e.scrollWidth,_e.clientWidth,ke.scrollWidth,ke.clientWidth),Fe=max(_e.scrollHeight,_e.clientHeight,ke.scrollHeight,ke.clientHeight);let Ve=-Ae.scrollLeft+getWindowScrollBarX(De);const Ie=-Ae.scrollTop;return getComputedStyle$1(ke).direction==="rtl"&&(Ve+=max(_e.clientWidth,ke.clientWidth)-Le),{width:Le,height:Fe,x:Ve,y:Ie}}const SCROLLBAR_MAX=25;function getViewportRect(De,_e){const Ae=getWindow(De),ke=getDocumentElement(De),Le=Ae.visualViewport;let Fe=ke.clientWidth,Ve=ke.clientHeight,Ie=0,je=0;if(Le){Fe=Le.width,Ve=Le.height;const $e=isWebKit();(!$e||$e&&_e==="fixed")&&(Ie=Le.offsetLeft,je=Le.offsetTop)}const Ke=getWindowScrollBarX(ke);if(Ke<=0){const $e=ke.ownerDocument,qe=$e.body,ci=getComputedStyle(qe),gi=$e.compatMode==="CSS1Compat"&&parseFloat(ci.marginLeft)+parseFloat(ci.marginRight)||0,Ai=Math.abs(ke.clientWidth-qe.clientWidth-gi);Ai<=SCROLLBAR_MAX&&(Fe-=Ai)}else Ke<=SCROLLBAR_MAX&&(Fe+=Ke);return{width:Fe,height:Ve,x:Ie,y:je}}const absoluteOrFixed=new Set(["absolute","fixed"]);function getInnerBoundingClientRect(De,_e){const Ae=getBoundingClientRect(De,!0,_e==="fixed"),ke=Ae.top+De.clientTop,Le=Ae.left+De.clientLeft,Fe=isHTMLElement$1(De)?getScale(De):createCoords(1),Ve=De.clientWidth*Fe.x,Ie=De.clientHeight*Fe.y,je=Le*Fe.x,Ke=ke*Fe.y;return{width:Ve,height:Ie,x:je,y:Ke}}function getClientRectFromClippingAncestor(De,_e,Ae){let ke;if(_e==="viewport")ke=getViewportRect(De,Ae);else if(_e==="document")ke=getDocumentRect(getDocumentElement(De));else if(isElement(_e))ke=getInnerBoundingClientRect(_e,Ae);else{const Le=getVisualOffsets(De);ke={x:_e.x-Le.x,y:_e.y-Le.y,width:_e.width,height:_e.height}}return rectToClientRect(ke)}function hasFixedPositionAncestor(De,_e){const Ae=getParentNode(De);return Ae===_e||!isElement(Ae)||isLastTraversableNode(Ae)?!1:getComputedStyle$1(Ae).position==="fixed"||hasFixedPositionAncestor(Ae,_e)}function getClippingElementAncestors(De,_e){const Ae=_e.get(De);if(Ae)return Ae;let ke=getOverflowAncestors(De,[],!1).filter(Ie=>isElement(Ie)&&getNodeName(Ie)!=="body"),Le=null;const Fe=getComputedStyle$1(De).position==="fixed";let Ve=Fe?getParentNode(De):De;for(;isElement(Ve)&&!isLastTraversableNode(Ve);){const Ie=getComputedStyle$1(Ve),je=isContainingBlock(Ve);!je&&Ie.position==="fixed"&&(Le=null),(Fe?!je&&!Le:!je&&Ie.position==="static"&&!!Le&&absoluteOrFixed.has(Le.position)||isOverflowElement(Ve)&&!je&&hasFixedPositionAncestor(De,Ve))?ke=ke.filter($e=>$e!==Ve):Le=Ie,Ve=getParentNode(Ve)}return _e.set(De,ke),ke}function getClippingRect(De){let{element:_e,boundary:Ae,rootBoundary:ke,strategy:Le}=De;const Ve=[...Ae==="clippingAncestors"?isTopLayer(_e)?[]:getClippingElementAncestors(_e,this._c):[].concat(Ae),ke],Ie=Ve[0],je=Ve.reduce((Ke,$e)=>{const qe=getClientRectFromClippingAncestor(_e,$e,Le);return Ke.top=max(qe.top,Ke.top),Ke.right=min(qe.right,Ke.right),Ke.bottom=min(qe.bottom,Ke.bottom),Ke.left=max(qe.left,Ke.left),Ke},getClientRectFromClippingAncestor(_e,Ie,Le));return{width:je.right-je.left,height:je.bottom-je.top,x:je.left,y:je.top}}function getDimensions(De){const{width:_e,height:Ae}=getCssDimensions(De);return{width:_e,height:Ae}}function getRectRelativeToOffsetParent(De,_e,Ae){const ke=isHTMLElement$1(_e),Le=getDocumentElement(_e),Fe=Ae==="fixed",Ve=getBoundingClientRect(De,!0,Fe,_e);let Ie={scrollLeft:0,scrollTop:0};const je=createCoords(0);function Ke(){je.x=getWindowScrollBarX(Le)}if(ke||!ke&&!Fe)if((getNodeName(_e)!=="body"||isOverflowElement(Le))&&(Ie=getNodeScroll(_e)),ke){const gi=getBoundingClientRect(_e,!0,Fe,_e);je.x=gi.x+_e.clientLeft,je.y=gi.y+_e.clientTop}else Le&&Ke();Fe&&!ke&&Le&&Ke();const $e=Le&&!ke&&!Fe?getHTMLOffset(Le,Ie):createCoords(0),qe=Ve.left+Ie.scrollLeft-je.x-$e.x,ci=Ve.top+Ie.scrollTop-je.y-$e.y;return{x:qe,y:ci,width:Ve.width,height:Ve.height}}function isStaticPositioned(De){return getComputedStyle$1(De).position==="static"}function getTrueOffsetParent(De,_e){if(!isHTMLElement$1(De)||getComputedStyle$1(De).position==="fixed")return null;if(_e)return _e(De);let Ae=De.offsetParent;return getDocumentElement(De)===Ae&&(Ae=Ae.ownerDocument.body),Ae}function getOffsetParent(De,_e){const Ae=getWindow(De);if(isTopLayer(De))return Ae;if(!isHTMLElement$1(De)){let Le=getParentNode(De);for(;Le&&!isLastTraversableNode(Le);){if(isElement(Le)&&!isStaticPositioned(Le))return Le;Le=getParentNode(Le)}return Ae}let ke=getTrueOffsetParent(De,_e);for(;ke&&isTableElement(ke)&&isStaticPositioned(ke);)ke=getTrueOffsetParent(ke,_e);return ke&&isLastTraversableNode(ke)&&isStaticPositioned(ke)&&!isContainingBlock(ke)?Ae:ke||getContainingBlock(De)||Ae}const getElementRects=async function(De){const _e=this.getOffsetParent||getOffsetParent,Ae=this.getDimensions,ke=await Ae(De.floating);return{reference:getRectRelativeToOffsetParent(De.reference,await _e(De.floating),De.strategy),floating:{x:0,y:0,width:ke.width,height:ke.height}}};function isRTL(De){return getComputedStyle$1(De).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function rectsAreEqual(De,_e){return De.x===_e.x&&De.y===_e.y&&De.width===_e.width&&De.height===_e.height}function observeMove(De,_e){let Ae=null,ke;const Le=getDocumentElement(De);function Fe(){var Ie;clearTimeout(ke),(Ie=Ae)==null||Ie.disconnect(),Ae=null}function Ve(Ie,je){Ie===void 0&&(Ie=!1),je===void 0&&(je=1),Fe();const Ke=De.getBoundingClientRect(),{left:$e,top:qe,width:ci,height:gi}=Ke;if(Ie||_e(),!ci||!gi)return;const Ai=floor(qe),oi=floor(Le.clientWidth-($e+ci)),ii=floor(Le.clientHeight-(qe+gi)),hi=floor($e),Li={rootMargin:-Ai+"px "+-oi+"px "+-ii+"px "+-hi+"px",threshold:max(0,min(1,je))||1};let Di=!0;function zi(an){const Je=an[0].intersectionRatio;if(Je!==je){if(!Di)return Ve();Je?Ve(!1,Je):ke=setTimeout(()=>{Ve(!1,1e-7)},1e3)}Je===1&&!rectsAreEqual(Ke,De.getBoundingClientRect())&&Ve(),Di=!1}try{Ae=new IntersectionObserver(zi,{...Li,root:Le.ownerDocument})}catch{Ae=new IntersectionObserver(zi,Li)}Ae.observe(De)}return Ve(!0),Fe}function autoUpdate(De,_e,Ae,ke){ke===void 0&&(ke={});const{ancestorScroll:Le=!0,ancestorResize:Fe=!0,elementResize:Ve=typeof ResizeObserver=="function",layoutShift:Ie=typeof IntersectionObserver=="function",animationFrame:je=!1}=ke,Ke=unwrapElement(De),$e=Le||Fe?[...Ke?getOverflowAncestors(Ke):[],...getOverflowAncestors(_e)]:[];$e.forEach(hi=>{Le&&hi.addEventListener("scroll",Ae,{passive:!0}),Fe&&hi.addEventListener("resize",Ae)});const qe=Ke&&Ie?observeMove(Ke,Ae):null;
1529let ci=-1,gi=null;Ve&&(gi=new ResizeObserver(hi=>{let[Ei]=hi;Ei&&Ei.target===Ke&&gi&&(gi.unobserve(_e),cancelAnimationFrame(ci),ci=requestAnimationFrame(()=>{var Li;(Li=gi)==null||Li.observe(_e)})),Ae()}),Ke&&!je&&gi.observe(Ke),gi.observe(_e));let Ai,oi=je?getBoundingClientRect(De):null;je&&ii();function ii(){const hi=getBoundingClientRect(De);oi&&!rectsAreEqual(oi,hi)&&Ae(),oi=hi,Ai=requestAnimationFrame(ii)}return Ae(),()=>{var hi;$e.forEach(Ei=>{Le&&Ei.removeEventListener("scroll",Ae),Fe&&Ei.removeEventListener("resize",Ae)}),qe==null||qe(),(hi=gi)==null||hi.disconnect(),gi=null,je&&cancelAnimationFrame(Ai)}}const offset=offset$1,autoPlacement$1=autoPlacement$2,shift=shift$1,flip=flip$1,size=size$1,hide=hide$1,arrow=arrow$1,inline=inline$1,computePosition=(De,_e,Ae)=>{const ke=new Map,Le={platform,...Ae},Fe={...Le.platform,_c:ke};return computePosition$1(De,_e,{...Le,platform:Fe})};function popover(De={}){return{cleanup:null,elements:{arrow:null,floating:null,reference:null},isOpen:!1,options:{},init:function(){this.elements.arrow=this.$refs.arrow??this.elements.arrow,this.elements.floating=this.$refs.floating,this.elements.reference=this.$refs.reference,this.setOptions(De)},close:function(){var _e;this.isOpen=!1,(_e=this.cleanup)==null||_e.call(this)},open:function(){this.isOpen=!0,this.cleanup=autoUpdate(this.elements.reference,this.elements.floating,this.update.bind(this))},positionArrow:function(_e,Ae,ke){const Le={bottom:"top",left:"right",right:"left",top:"bottom"}[_e.split("-")[0]];Object.assign(this.elements.arrow.style,{bottom:"",left:Ae!=null?`${Ae}px`:"",right:"",top:ke!=null?`${ke}px`:"",[Le]:`-${this.elements.arrow.offsetHeight/2}px`})},positionFloating:function(_e,Ae){_$3.assign(this.elements.floating.style,{left:`${_e}px`,top:`${Ae}px`})},setOptions:function(_e){_e.middleware&&(this.options.middleware=[],_$3.each(_e.middleware,(function(Ae,ke){if(ke=="arrow")return this.options.middleware.push(arrow(Ae));if(ke=="autoPlacement")return this.options.middleware.push(autoPlacement$1(Ae));if(ke=="flip")return this.options.middleware.push(flip(Ae));if(ke=="hide")return this.options.middleware.push(hide(Ae));if(ke=="inline")return this.options.middleware.push(inline(Ae));if(ke=="offset")return this.options.middleware.push(offset(Ae));if(ke=="shift")return this.options.middleware.push(shift(Ae));if(ke=="size")return this.options.middleware.push(size(Ae))}).bind(this))),_e.placement&&(this.options.placement=_e.placement),_e.strategy&&(this.options.strategy=_e.strategy)},toggle:function(){return this.isOpen?this.close():this.open()},update:function(){computePosition(this.elements.reference,this.elements.floating,this.options).then((function({x:_e,y:Ae,placement:ke,middlewareData:Le}){if(this.positionFloating(_e,Ae),Le.arrow){let{x:Fe,y:Ve}=Le.arrow;this.positionArrow(ke,Fe,Ve)}}).bind(this))}}}const theme="",video$1="",SCOPE=Symbol(0);let scheduledEffects=!1,runningEffects=!1,currentScope=null,currentObserver=null,currentObservers=null,currentObserversIndex=0,effects=[],defaultContext={};const NOOP=()=>{},STATE_CLEAN=0,STATE_CHECK=1,STATE_DIRTY=2,STATE_DISPOSED=3;function flushEffects(){scheduledEffects=!0,queueMicrotask(runEffects)}function runEffects(){if(!effects.length){scheduledEffects=!1;return}runningEffects=!0;for(let De=0;De<effects.length;De++)effects[De].$st!==STATE_CLEAN&&runTop(effects[De]);effects=[],scheduledEffects=!1,runningEffects=!1}function runTop(De){let _e=[De];for(;De=De[SCOPE];)De.$e&&De.$st!==STATE_CLEAN&&_e.push(De);for(let Ae=_e.length-1;Ae>=0;Ae--)updateCheck(_e[Ae])}function root(De){const _e=createScope();return compute(_e,De.length?De.bind(null,dispose.bind(_e)):De,null)}function peek(De){return compute(currentScope,De,null)}function untrack(De){return compute(null,De,null)}function tick(){runningEffects||runEffects()}function getScope(){return currentScope}function scoped(De,_e){try{return compute(_e,De,null)}catch(Ae){handleError(_e,Ae);return}}function getContext(De,_e=currentScope){return _e==null?void 0:_e.$cx[De]}function setContext(De,_e,Ae=currentScope){Ae&&(Ae.$cx={...Ae.$cx,[De]:_e})}function onDispose(De){if(!De||!currentScope)return De||NOOP;const _e=currentScope;return _e.$d?Array.isArray(_e.$d)?_e.$d.push(De):_e.$d=[_e.$d,De]:_e.$d=De,function(){_e.$st!==STATE_DISPOSED&&(De.call(null),isFunction$1(_e.$d)?_e.$d=null:Array.isArray(_e.$d)&&_e.$d.splice(_e.$d.indexOf(De),1))}}function dispose(De=!0){if(this.$st!==STATE_DISPOSED){if(this.$h)if(Array.isArray(this.$h))for(let _e=this.$h.length-1;_e>=0;_e--)dispose.call(this.$h[_e]);else dispose.call(this.$h);if(De){const _e=this[SCOPE];_e&&(Array.isArray(_e.$h)?_e.$h.splice(_e.$h.indexOf(this),1):_e.$h=null),disposeNode(this)}}}
1529function disposeNode(De){De.$st=STATE_DISPOSED,De.$d&&emptyDisposal(De),De.$s&&removeSourceObservers(De,0),De[SCOPE]=null,De.$s=null,De.$o=null,De.$h=null,De.$cx=defaultContext,De.$eh=null}function emptyDisposal(De){try{if(Array.isArray(De.$d))for(let _e=De.$d.length-1;_e>=0;_e--){const Ae=De.$d[_e];Ae.call(Ae)}else De.$d.call(De.$d);De.$d=null}catch(_e){handleError(De,_e)}}function compute(De,_e,Ae){const ke=currentScope,Le=currentObserver;currentScope=De,currentObserver=Ae;try{return _e.call(De)}finally{currentScope=ke,currentObserver=Le}}function handleError(De,_e){if(!De||!De.$eh)throw _e;let Ae=0,ke=De.$eh.length,Le=_e;for(Ae=0;Ae<ke;Ae++)try{De.$eh[Ae](Le);break}catch(Fe){Le=Fe}if(Ae===ke)throw Le}function read(){return this.$st===STATE_DISPOSED?this.$v:(currentObserver&&!this.$e&&(!currentObservers&&currentObserver.$s&&currentObserver.$s[currentObserversIndex]==this?currentObserversIndex++:currentObservers?currentObservers.push(this):currentObservers=[this]),this.$c&&updateCheck(this),this.$v)}function write(De){const _e=isFunction$1(De)?De(this.$v):De;if(this.$ch(this.$v,_e)&&(this.$v=_e,this.$o))for(let Ae=0;Ae<this.$o.length;Ae++)notify(this.$o[Ae],STATE_DIRTY);return this.$v}const ScopeNode=function De(){this[SCOPE]=null,this.$h=null,currentScope&&currentScope.append(this)},ScopeProto=ScopeNode.prototype;ScopeProto.$cx=defaultContext;ScopeProto.$eh=null;ScopeProto.$c=null;ScopeProto.$d=null;ScopeProto.append=function(De){De[SCOPE]=this,this.$h?Array.isArray(this.$h)?this.$h.push(De):this.$h=[this.$h,De]:this.$h=De,De.$cx=De.$cx===defaultContext?this.$cx:{...this.$cx,...De.$cx},this.$eh&&(De.$eh=De.$eh?[...De.$eh,...this.$eh]:this.$eh)};ScopeProto.dispose=function(){dispose.call(this)};function createScope(){return new ScopeNode}const ComputeNode=function De(_e,Ae,ke){ScopeNode.call(this),this.$st=Ae?STATE_DIRTY:STATE_CLEAN,this.$i=!1,this.$e=!1,this.$s=null,this.$o=null,this.$v=_e,Ae&&(this.$c=Ae),ke&&ke.dirty&&(this.$ch=ke.dirty)},ComputeProto=ComputeNode.prototype;Object.setPrototypeOf(ComputeProto,ScopeProto);ComputeProto.$ch=isNotEqual;ComputeProto.call=read;function createComputation(De,_e,Ae){return new ComputeNode(De,_e,Ae)}function isNotEqual(De,_e){return De!==_e}function isFunction$1(De){return typeof De=="function"}function updateCheck(De){if(De.$st===STATE_CHECK)for(let _e=0;_e<De.$s.length&&(updateCheck(De.$s[_e]),De.$st!==STATE_DIRTY);_e++);De.$st===STATE_DIRTY?update(De):De.$st=STATE_CLEAN}function cleanup(De){De.$h&&dispose.call(De,!1),De.$d&&emptyDisposal(De),De.$eh=De[SCOPE]?De[SCOPE].$eh:null}function update(De){let _e=currentObservers,Ae=currentObserversIndex;currentObservers=null,currentObserversIndex=0;try{cleanup(De);const ke=compute(De,De.$c,De);updateObservers(De),!De.$e&&De.$i?write.call(De,ke):(De.$v=ke,De.$i=!0)}catch(ke){updateObservers(De),handleError(De,ke)}
1529finally{currentObservers=_e,currentObserversIndex=Ae,De.$st=STATE_CLEAN}}function updateObservers(De){if(currentObservers){if(De.$s&&removeSourceObservers(De,currentObserversIndex),De.$s&&currentObserversIndex>0){De.$s.length=currentObserversIndex+currentObservers.length;for(let Ae=0;Ae<currentObservers.length;Ae++)De.$s[currentObserversIndex+Ae]=currentObservers[Ae]}else De.$s=currentObservers;let _e;for(let Ae=currentObserversIndex;Ae<De.$s.length;Ae++)_e=De.$s[Ae],_e.$o?_e.$o.push(De):_e.$o=[De]}else De.$s&&currentObserversIndex<De.$s.length&&(removeSourceObservers(De,currentObserversIndex),De.$s.length=currentObserversIndex)}function notify(De,_e){if(!(De.$st>=_e)&&(De.$e&&De.$st===STATE_CLEAN&&(effects.push(De),scheduledEffects||flushEffects()),De.$st=_e,De.$o))for(let Ae=0;Ae<De.$o.length;Ae++)notify(De.$o[Ae],STATE_CHECK)}function removeSourceObservers(De,_e){let Ae,ke;for(let Le=_e;Le<De.$s.length;Le++)Ae=De.$s[Le],Ae.$o&&(ke=Ae.$o.indexOf(De),Ae.$o[ke]=Ae.$o[Ae.$o.length-1],Ae.$o.pop())}function noop(...De){}function isNull(De){return De===null}function isUndefined(De){return typeof De>"u"}function isNil(De){return isNull(De)||isUndefined(De)}function isObject(De){return(De==null?void 0:De.constructor)===Object}function isNumber(De){return typeof De=="number"&&!Number.isNaN(De)}function isString(De){return typeof De=="string"}function isBoolean(De){return typeof De=="boolean"}function isFunction(De){return typeof De=="function"}function isArray(De){return Array.isArray(De)}const EVENT=Event,DOM_EVENT=Symbol("DOM_EVENT");var $z;class DOMEvent extends EVENT{constructor(Ae,...ke){var Fe,Ve;super(Ae,ke[0]);Mr(this,$z,!0);Mr(this,"detail");Mr(this,"triggers",new EventTriggers);this.detail=(Fe=ke[0])==null?void 0:Fe.detail;const Le=(Ve=ke[0])==null?void 0:Ve.trigger;Le&&this.triggers.add(Le)}get trigger(){return this.triggers.source}get originEvent(){return this.triggers.origin}get isOriginTrusted(){var Ae;return((Ae=this.triggers.origin)==null?void 0:Ae.isTrusted)??!1}}$z=DOM_EVENT;class EventTriggers{constructor(){Mr(this,"chain",[])}get source(){return this.chain[0]}get origin(){return this.chain[this.chain.length-1]}add(_e){this.chain.push(_e),isDOMEvent(_e)&&this.chain.push(..._e.triggers)}remove(_e){return this.chain.splice(this.chain.indexOf(_e),1)[0]}has(_e){return this.chain.some(Ae=>Ae===_e)}hasType(_e){return!!this.findType(_e)}findType(_e){return this.chain.find(Ae=>Ae.type===_e)}walk(_e){for(const Ae of this.chain){const ke=_e(Ae);if(ke)return[Ae,ke]}}[Symbol.iterator](){return this.chain.values()}}function isDOMEvent(De){return!!(De!=null&&De[DOM_EVENT])}class EventsTarget extends EventTarget{constructor(){super(...arguments);Mr(this,"$ts__events")}addEventListener(Ae,ke,Le){return super.addEventListener(Ae,ke,Le)}removeEventListener(Ae,ke,Le){return super.removeEventListener(Ae,ke,Le)}}function listenEvent(De,_e,Ae,ke){return De.addEventListener(_e,Ae,ke),onDispose(()=>De.removeEventListener(_e,Ae,ke))}var a_,l_;class EventsController{constructor(_e){Oi(this,a_,void 0);Oi(this,l_,void 0);Qn(this,a_,_e),Qn(this,l_,new AbortController),onDispose(this.abort.bind(this))}get signal(){return mi(this,l_).signal}add(_e,Ae,ke){if(this.signal.aborted)throw Error("aborted");return mi(this,a_).addEventListener(_e,Ae,{...ke,signal:ke!=null&&ke.signal?anySignal(this.signal,ke.signal):this.signal}),this}remove(_e,Ae){return mi(this,a_).removeEventListener(_e,Ae),this}abort(_e){mi(this,l_).abort(_e)}}a_=new WeakMap,l_=new WeakMap;function anySignal(...De){const _e=new AbortController,Ae={signal:_e.signal};function ke(Le){_e.abort(Le.target.reason)}for(const Le of De){if(Le.aborted){_e.abort(Le.reason);break}Le.addEventListener("abort",ke,Ae)}return _e.signal}function isPointerEvent(De){return!!(De!=null&&De.type.startsWith("pointer"))}function isTouchEvent(De){return!!(De!=null&&De.type.startsWith("touch"))}function isMouseEvent(De){return/^(click|mouse)/.test((De==null?void 0:De.type)??"")}function isKeyboardEvent(De){return!!(De!=null&&De.type.startsWith("key"))}function wasEnterKeyPressed(De){return isKeyboardEvent(De)&&De.key==="Enter"}function isKeyboardClick(De){return isKeyboardEvent(De)&&(De.key==="Enter"||De.key===" ")}function isDOMNode(De){return De instanceof Node}function setAttribute(De,_e,Ae){if(De)if(!Ae&&Ae!==""&&Ae!==0)De.removeAttribute(_e);
1529else{const ke=Ae===!0?"":Ae+"";De.getAttribute(_e)!==ke&&De.setAttribute(_e,ke)}else return}function setStyle(De,_e,Ae){if(De)!Ae&&Ae!==0?De.style.removeProperty(_e):De.style.setProperty(_e,Ae+"");else return}function toggleClass(De,_e,Ae){De.classList[Ae?"add":"remove"](_e)}function signal(De,_e){const Ae=createComputation(De,null,_e),ke=read.bind(Ae);return ke[SCOPE]=!0,ke.set=write.bind(Ae),ke}function isReadSignal(De){return isFunction$1(De)&&SCOPE in De}function computed(De,_e){const Ae=createComputation(_e==null?void 0:_e.initial,De,_e),ke=read.bind(Ae);return ke[SCOPE]=!0,ke}function effect$1(De,_e){const Ae=createComputation(null,function(){let Le=De();return isFunction$1(Le)&&onDispose(Le),null},void 0);return Ae.$e=!0,update(Ae),dispose.bind(Ae,!0)}function isWriteSignal(De){return isReadSignal(De)&&"set"in De}const effect=effect$1;function createContext(De){return{id:Symbol(),provide:De}}function provideContext(De,_e,Ae=getScope()){var Le;const ke=!isUndefined(_e);setContext(De.id,ke?_e:(Le=De.provide)==null?void 0:Le.call(De),Ae)}function useContext(De){return getContext(De.id)}function hasProvidedContext(De){return!isUndefined(getContext(De.id))}const PROPS=Symbol(0),METHODS=Symbol(0),ON_DISPATCH=Symbol(0),EMPTY_PROPS={};var Fz,c_,u_,Ly,d_,IT,PR,RT,IR,OT,RR,LT,OR;class Instance{constructor(_e,Ae,ke){Oi(this,IT);Oi(this,RT);Oi(this,OT);Oi(this,LT);Mr(this,"$ts__events");Mr(this,"$ts__vars");Mr(this,Fz,null);Mr(this,"$el",signal(null));Mr(this,"el",null);Mr(this,"scope",null);Mr(this,"attachScope",null);Mr(this,"connectScope",null);Mr(this,"component",null);Mr(this,"destroyed",!1);Mr(this,"props",EMPTY_PROPS);Mr(this,"attrs",null);Mr(this,"styles",null);Mr(this,"state");Mr(this,"$state");Oi(this,c_,[]);Oi(this,u_,[]);Oi(this,Ly,[]);Oi(this,d_,[]);var Ve;this.scope=Ae,ke!=null&&ke.scope&&ke.scope.append(Ae);let Le=_e.state,Fe=_e.props;if(Le&&(this.$state=Le.create(),this.state=new Proxy(this.$state,{get:(Ie,je)=>this.$state[je]()}),provideContext(Le,this.$state)),Fe&&(this.props=createInstanceProps(Fe),ke!=null&&ke.props))for(const Ie of Object.keys(ke.props))(Ve=this.props[Ie])==null||Ve.set(ke.props[Ie]);onDispose(this.destroy.bind(this))}setup(){scoped(()=>{for(const _e of mi(this,c_))_e()},this.scope)}attach(_e){this.el||(this.el=_e,this.$el.set(_e),scoped(()=>{this.attachScope=createScope(),scoped(()=>{for(const Ae of mi(this,u_))Ae(this.el);Bi(this,IT,PR).call(this),Bi(this,RT,IR).call(this)},this.attachScope)},this.scope),_e.dispatchEvent(new Event("attached")))}detach(){var _e;(_e=this.attachScope)==null||_e.dispose(),this.attachScope=null,this.connectScope=null,this.el=null,this.$el.set(null)}connect(){!this.el||!this.attachScope||!mi(this,Ly).length||scoped(()=>{this.connectScope=createScope(),scoped(()=>{for(const _e of mi(this,Ly))_e(this.el)},this.connectScope)},this.attachScope)}disconnect(){var _e;(_e=this.connectScope)==null||_e.dispose(),this.connectScope=null}destroy(){if(this.destroyed)return;this.destroyed=!0,scoped(()=>{for(const Ae of mi(this,d_))Ae(this.el)},this.scope);const _e=this.el;this.detach(),this.scope.dispose(),mi(this,c_).length=0,mi(this,u_).length=0,mi(this,Ly).length=0,mi(this,d_).length=0,this.component=null,this.attrs=null,this.styles=null,this.props=EMPTY_PROPS,this.scope=null,this.state=EMPTY_PROPS,this.$state=null,_e&&delete _e.$}addHooks(_e){_e.onSetup&&mi(this,c_).push(_e.onSetup.bind(_e)),_e.onAttach&&mi(this,u_).push(_e.onAttach.bind(_e)),_e.onConnect&&mi(this,Ly).push(_e.onConnect.bind(_e)),_e.onDestroy&&mi(this,d_).push(_e.onDestroy.bind(_e))}}Fz=ON_DISPATCH,c_=new WeakMap,u_=new WeakMap,Ly=new WeakMap,d_=new WeakMap,IT=new WeakSet,PR=function(){if(this.attrs)for(const _e of Object.keys(this.attrs))isFunction(this.attrs[_e])?effect(Bi(this,OT,RR).bind(this,_e)):setAttribute(this.el,_e,this.attrs[_e])},RT=new WeakSet,IR=function(){if(this.styles)for(const _e of Object.keys(this.styles))isFunction(this.styles[_e])?effect(Bi(this,LT,OR).bind(this,_e)):setStyle(this.el,_e,this.styles[_e])},OT=new WeakSet,RR=function(_e){setAttribute(this.el,_e,this.attrs[_e].call(this.component))},LT=new WeakSet,OR=function(_e){setStyle(this.el,_e,this.styles[_e].call(this.component))};function createInstanceProps(De){const _e={};for(const Ae of Object.keys(De)){const ke=De[Ae];_e[Ae]=signal(ke,ke)}return _e}let currentInstance={$$:null};
1529function createComponent(De,_e){return root(()=>{currentInstance.$$=new Instance(De,getScope(),_e);const Ae=new De;return currentInstance.$$.component=Ae,currentInstance.$$=null,Ae})}class ViewController extends EventTarget{constructor(){super();Mr(this,"$$");currentInstance.$$&&this.attach(currentInstance)}get el(){return this.$$.el}get $el(){return this.$$.$el()}get scope(){return this.$$.scope}get attachScope(){return this.$$.attachScope}get connectScope(){return this.$$.connectScope}get $props(){return this.$$.props}get $state(){return this.$$.$state}get state(){return this.$$.state}attach({$$:Ae}){return this.$$=Ae,Ae.addHooks(this),this}addEventListener(Ae,ke,Le){this.listen(Ae,ke,Le)}removeEventListener(Ae,ke,Le){var Fe;(Fe=this.el)==null||Fe.removeEventListener(Ae,ke,Le)}setAttributes(Ae){this.$$.attrs||(this.$$.attrs={}),Object.assign(this.$$.attrs,Ae)}setStyles(Ae){this.$$.styles||(this.$$.styles={}),Object.assign(this.$$.styles,Ae)}setCSSVars(Ae){this.setStyles(Ae)}createEvent(Ae,...ke){return new DOMEvent(Ae,ke[0])}dispatch(Ae,...ke){if(!this.el)return!1;const Le=Ae instanceof Event?Ae:new DOMEvent(Ae,ke[0]);return Object.defineProperty(Le,"target",{get:()=>this.$$.component}),untrack(()=>{var Fe,Ve;return(Ve=(Fe=this.$$)[ON_DISPATCH])==null||Ve.call(Fe,Le),this.el.dispatchEvent(Le)})}dispatchEvent(Ae){return this.dispatch(Ae)}listen(Ae,ke,Le){return this.el?listenEvent(this.el,Ae,ke,Le):noop}}class Component extends ViewController{subscribe(_e){return scoped(()=>effect(()=>_e(this.state)),this.$$.scope)}destroy(){this.$$.destroy()}}function prop(De,_e,Ae){De[PROPS]||(De[PROPS]=new Set),De[PROPS].add(_e)}function method(De,_e,Ae){De[METHODS]||(De[METHODS]=new Set),De[METHODS].add(_e)}var h_;class State{constructor(_e){Mr(this,"id",Symbol(0));Mr(this,"record");Oi(this,h_,void 0);this.record=_e,Qn(this,h_,Object.getOwnPropertyDescriptors(_e))}create(){const _e={},Ae=new Proxy(_e,{get:(ke,Le)=>_e[Le]()});for(const ke of Object.keys(this.record)){const Le=mi(this,h_)[ke].get;_e[ke]=Le?computed(Le.bind(Ae)):signal(this.record[ke])}return _e}reset(_e,Ae){for(const ke of Object.keys(_e))!mi(this,h_)[ke].get&&(!Ae||Ae(ke))&&_e[ke].set(this.record[ke])}}h_=new WeakMap;function useState(De){return useContext(De)}function runAll(De,_e){for(const Ae of De)Ae(_e)}function camelToKebabCase(De){return De.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function kebabToCamelCase(De){return De.replace(/-./g,_e=>_e[1].toUpperCase())}function uppercaseFirstChar(De){return De.charAt(0).toUpperCase()+De.slice(1)}function unwrap(De){return isFunction(De)?De():De}function ariaBool$1(De){return De?"true":"false"}function createDisposalBin(){const De=new Set;return{add(..._e){for(const Ae of _e)De.add(Ae)},empty(){for(const _e of De)_e();De.clear()}}}function keysOf(De){return Object.keys(De)}function deferredPromise(){let De,_e;return{promise:new Promise((ke,Le)=>{De=ke,_e=Le}),resolve:De,reject:_e}}function waitTimeout(De){return new Promise(_e=>setTimeout(_e,De))}function animationFrameThrottle(De){let _e=-1,Ae;function ke(...Le){Ae=Le,!(_e>=0)&&(_e=window.requestAnimationFrame(()=>{De.apply(this,Ae),_e=-1,Ae=void 0}))}return ke}const requestIdleCallback=typeof window<"u"?"requestIdleCallback"in window?window.requestIdleCallback:De=>window.setTimeout(De,1):noop;function waitIdlePeriod(De,_e){return new Promise(Ae=>{requestIdleCallback(ke=>{De==null||De(ke),Ae()},_e)})}var key={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},webkit=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],moz=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],ms=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],document$1=typeof window<"u"&&typeof window.document<"u"?window.document:{},vendor="fullscreenEnabled"in document$1&&Object.keys(key)||webkit[0]in document$1&&webkit||moz[0]in document$1&&moz||ms[0]in document$1&&ms||[],fscreen={requestFullscreen:function(De){return De[vendor[key.requestFullscreen]]()},requestFullscreenFunction:function(De){return De[vendor[key.requestFullscreen]]},get exitFullscreen(){return document$1[vendor[key.exitFullscreen]].bind(document$1)},get fullscreenPseudoClass(){return":"+vendor[key.fullscreen]},addEventListener:function(De,_e,Ae){return document$1.addEventListener(vendor[key[De]],_e,Ae)},removeEventListener:function(De,_e,Ae){return document$1.removeEventListener(vendor[key[De]],_e,Ae)},get fullscreenEnabled(){return!!document$1[vendor[key.fullscreenEnabled]]},set fullscreenEnabled(De){},get fullscreenElement(){return document$1[vendor[key.fullscreenElement]]},set fullscreenElement(De){},get onfullscreenchange(){return document$1[("on"+vendor[key.fullscreenchange]).toLowerCase()]},set onfullscreenchange(De){return document$1[("on"+vendor[key.fullscreenchange]).toLowerCase()]=De},get onfullscreenerror(){return document$1[("on"+vendor[key.fullscreenerror]).toLowerCase()]},set onfullscreenerror(De){return document$1[("on"+vendor[key.fullscreenerror]).toLowerCase()]=De}},functionThrottle=throttle;function throttle(De,_e,Ae){var ke=null,Le=null,Fe=Ae&&Ae.leading,Ve=Ae&&Ae.trailing;Fe==null&&(Fe=!0),Ve==null&&(Ve=!Fe),Fe==!0&&(Ve=!1);var Ie=function(){ke&&(clearTimeout(ke),ke=null)},je=function(){var $e=Le;Ie(),$e&&$e()},Ke=function(){var $e=Fe&&!ke,qe=this,ci=arguments;if(Le=function(){return De.apply(qe,ci)},ke||(ke=setTimeout(function(){if(ke=null,Ve)return Le()},_e)),$e)return $e=!1,Le()};return Ke.cancel=Ie,Ke.flush=je,Ke}var functionDebounce=debounce;function debounce(De,_e,Ae){var ke=null,Le=null,Fe=function(){ke&&(clearTimeout(ke),Le=null,ke=null)},Ve=function(){var je=Le;Fe(),je&&je()},Ie=function(){if(!_e)return De.apply(this,arguments);var je=this,Ke=arguments,$e=Ae&&!ke;if(Fe(),Le=function(){De.apply(je,Ke)},ke=setTimeout(function(){if(ke=null,!$e){var qe=Le;return Le=null,qe()}},_e),$e)return Le()};return Ie.cancel=Fe,Ie.flush=Ve,Ie}const t$3=De=>typeof De=="object"&&De!=null&&De.nodeType===1,e$4=(De,_e)=>(!_e||De!=="hidden")&&De!=="visible"&&De!=="clip",n$3=(De,_e)=>{if(De.clientHeight<De.scrollHeight||De.clientWidth<De.scrollWidth){const Ae=getComputedStyle(De,null);return e$4(Ae.overflowY,_e)||e$4(Ae.overflowX,_e)||(ke=>{const Le=(Fe=>{if(!Fe.ownerDocument||!Fe.ownerDocument.defaultView)return null;try{return Fe.ownerDocument.defaultView.frameElement}catch{return null}})(ke);return!!Le&&(Le.clientHeight<ke.scrollHeight||Le.clientWidth<ke.scrollWidth)})(De)}return!1},o$4=(De,_e,Ae,ke,Le,Fe,Ve,Ie)=>Fe<De&&Ve>_e||Fe>De&&Ve<_e?0:Fe<=De&&Ie<=Ae||Ve>=_e&&Ie>=Ae?Fe-De-ke:Ve>_e&&Ie<Ae||Fe<De&&Ie>Ae?Ve-_e+Le:0,l$3=De=>{const _e=De.parentElement;return _e??(De.getRootNode().host||null)},r$2=(De,_e)=>{var Ae,ke,Le,Fe;if(typeof document>"u")return[];const{scrollMode:Ve,block:Ie,inline:je,boundary:Ke,skipOverflowHiddenElements:$e}=_e,qe=typeof Ke=="function"?Ke:xr=>xr!==Ke;if(!t$3(De))throw new TypeError("Invalid target");const ci=document.scrollingElement||document.documentElement,gi=[];let Ai=De;for(;t$3(Ai)&&qe(Ai);){if(Ai=l$3(Ai),Ai===ci){gi.push(Ai);break}Ai!=null&&Ai===document.body&&n$3(Ai)&&!n$3(document.documentElement)||Ai!=null&&n$3(Ai,$e)&&gi.push(Ai)}
1529const oi=(ke=(Ae=window.visualViewport)==null?void 0:Ae.width)!=null?ke:innerWidth,ii=(Fe=(Le=window.visualViewport)==null?void 0:Le.height)!=null?Fe:innerHeight,{scrollX:hi,scrollY:Ei}=window,{height:Li,width:Di,top:zi,right:an,bottom:Je,left:fi}=De.getBoundingClientRect(),{top:Gi,right:fn,bottom:cn,left:Tn}=(xr=>{const er=window.getComputedStyle(xr);return{top:parseFloat(er.scrollMarginTop)||0,right:parseFloat(er.scrollMarginRight)||0,bottom:parseFloat(er.scrollMarginBottom)||0,left:parseFloat(er.scrollMarginLeft)||0}})(De);let Sn=Ie==="start"||Ie==="nearest"?zi-Gi:Ie==="end"?Je+cn:zi+Li/2-Gi+cn,Cn=je==="center"?fi+Di/2-Tn+fn:je==="end"?an+fn:fi-Tn;const tr=[];for(let xr=0;xr<gi.length;xr++){const er=gi[xr],{height:Hn,width:Er,top:os,right:wi,bottom:Zi,left:Qi}=er.getBoundingClientRect();if(Ve==="if-needed"&&zi>=0&&fi>=0&&Je<=ii&&an<=oi&&(er===ci&&!n$3(er)||zi>=os&&Je<=Zi&&fi>=Qi&&an<=wi))return tr;const Hi=getComputedStyle(er),vn=parseInt(Hi.borderLeftWidth,10),zn=parseInt(Hi.borderTopWidth,10),ji=parseInt(Hi.borderRightWidth,10),hr=parseInt(Hi.borderBottomWidth,10);let Ri=0,xs=0;const Ue="offsetWidth"in er?er.offsetWidth-er.clientWidth-vn-ji:0,bi="offsetHeight"in er?er.offsetHeight-er.clientHeight-zn-hr:0,Ii="offsetWidth"in er?er.offsetWidth===0?0:Er/er.offsetWidth:0,Ji="offsetHeight"in er?er.offsetHeight===0?0:Hn/er.offsetHeight:0;if(ci===er)Ri=Ie==="start"?Sn:Ie==="end"?Sn-ii:Ie==="nearest"?o$4(Ei,Ei+ii,ii,zn,hr,Ei+Sn,Ei+Sn+Li,Li):Sn-ii/2,xs=je==="start"?Cn:je==="center"?Cn-oi/2:je==="end"?Cn-oi:o$4(hi,hi+oi,oi,vn,ji,hi+Cn,hi+Cn+Di,Di),Ri=Math.max(0,Ri+Ei),xs=Math.max(0,xs+hi);else{Ri=Ie==="start"?Sn-os-zn:Ie==="end"?Sn-Zi+hr+bi:Ie==="nearest"?o$4(os,Zi,Hn,zn,hr+bi,Sn,Sn+Li,Li):Sn-(os+Hn/2)+bi/2,xs=je==="start"?Cn-Qi-vn:je==="center"?Cn-(Qi+Er/2)+Ue/2:je==="end"?Cn-wi+ji+Ue:o$4(Qi,wi,Er,vn,ji+Ue,Cn,Cn+Di,Di);const{scrollLeft:Mn,scrollTop:En}=er;Ri=Ji===0?0:Math.max(0,Math.min(En+Ri/Ji,er.scrollHeight-Hn/Ji+bi)),xs=Ii===0?0:Math.max(0,Math.min(Mn+xs/Ii,er.scrollWidth-Er/Ii+Ue)),Sn+=En-Ri,Cn+=Mn-xs}tr.push({el:er,top:Ri,left:xs})}return tr},STRING=De=>De===null?"":De+"",NULLABLE_STRING=De=>De===null?null:De+"",NUMBER=De=>De===null?0:Number(De),BOOLEAN=De=>De!==null,FUNCTION=()=>null,ARRAY=De=>De===null?[]:JSON.parse(De),OBJECT=De=>De===null?{}:JSON.parse(De);function inferAttributeConverter(De){if(De===null)return NULLABLE_STRING;switch(typeof De){case"undefined":return STRING;case"string":return STRING;case"boolean":return BOOLEAN;case"number":return NUMBER;case"function":return FUNCTION;case"object":return isArray(De)?ARRAY:OBJECT;default:return STRING}}const ATTRS=Symbol(0),SETUP=Symbol(0),SETUP_STATE=Symbol(0),SETUP_CALLBACKS=Symbol(0);var SetupState;(function(De){De[De.Idle=0]="Idle";const Ae=1;De[De.Pending=Ae]="Pending";const ke=2;De[De.Ready=ke]="Ready"})(SetupState||(SetupState={}));function Host(De,_e){var ke,Le,Fe;class Ae extends De{constructor(...je){super(...je);Mr(this,"$");Mr(this,Le,SetupState.Idle);Mr(this,Fe,null);Mr(this,"keepAlive",!1);Mr(this,"forwardKeepAlive",!0);if(this.$=scoped(()=>createComponent(_e),null),this.$.$$.addHooks(this),_e.props){const Ke=this.$props,$e=Object.getOwnPropertyDescriptors(this);for(const qe of Object.keys($e))qe in _e.props&&(Ke[qe].set(this[qe]),delete this[qe])}}static get observedAttributes(){var je;if(!this[ATTRS]&&_e.props){const Ke=new Map;for(const $e of Object.keys(_e.props)){let qe=(je=this.attrs)==null?void 0:je[$e],ci=isString(qe)?qe:qe&&(qe==null?void 0:qe.attr);ci!==!1&&(ci||(ci=camelToKebabCase($e)),Ke.set(ci,{prop:$e,converter:qe&&!isString(qe)&&(qe==null?void 0:qe.converter)||inferAttributeConverter(_e.props[$e])}))}this[ATTRS]=Ke}return this[ATTRS]?Array.from(this[ATTRS].keys()):[]}get scope(){return this.$.$$.scope}get attachScope(){return this.$.$$.attachScope}get connectScope(){return this.$.$$.connectScope}get $props(){return this.$.$$.props}get $state(){return this.$.$$.$state}get state(){return this.$.state}attributeChangedCallback(je,Ke,$e){var gi;const qe=this.constructor;if(!qe[ATTRS]){(gi=super.attributeChangedCallback)==null||gi.call(this,je,Ke,$e);return}const ci=qe[ATTRS].get(je);ci&&(this[ci.prop]=ci.converter($e))}connectedCallback(){var $e;const je=($e=this.$)==null?void 0:$e.$$;if(!je||je.destroyed)return;if(this[SETUP_STATE]!==SetupState.Ready){setup.call(this);return}if(!this.isConnected)return;this.hasAttribute("keep-alive")&&(this.keepAlive=!0),je.connect(),isArray(this[SETUP_CALLBACKS])&&runAll(this[SETUP_CALLBACKS],this),this[SETUP_CALLBACKS]=null;const Ke=super.connectedCallback;Ke&&scoped(()=>Ke.call(this),this.connectScope)}disconnectedCallback(){var $e;const je=($e=this.$)==null?void 0:$e.$$;if(!je||je.destroyed)return;je.disconnect();const Ke=super.disconnectedCallback;Ke&&Ke.call(this),!this.keepAlive&&!this.hasAttribute("keep-alive")&&setTimeout(()=>{requestAnimationFrame(()=>{this.isConnected||je.destroy()})}
1529,0)}[(ke=ATTRS,Le=SETUP_STATE,Fe=SETUP_CALLBACKS,SETUP)](){const je=this.$.$$,Ke=this.constructor;if(je.destroyed)return;const $e=Ke[ATTRS];if($e)for(const qe of this.attributes){let ci=$e.get(qe.name);ci&&ci.converter&&je.props[ci.prop].set(ci.converter(this.getAttribute(qe.name)))}je.setup(),je.attach(this),this[SETUP_STATE]=SetupState.Ready,this.connectedCallback()}subscribe(je){return this.$.subscribe(je)}destroy(){this.disconnectedCallback(),this.$.destroy()}}return Mr(Ae,"attrs"),Mr(Ae,ke,null),extendProto(Ae,_e),Ae}function extendProto(De,_e){const Ae=De.prototype,ke=_e.prototype;if(_e.props)for(const Le of Object.keys(_e.props))Object.defineProperty(Ae,Le,{enumerable:!0,configurable:!0,get(){return this.$props[Le]()},set(Fe){this.$props[Le].set(Fe)}});if(ke[PROPS])for(const Le of ke[PROPS])Object.defineProperty(Ae,Le,{enumerable:!0,configurable:!0,get(){return this.$[Le]},set(Fe){this.$[Le]=Fe}});if(ke[METHODS])for(const Le of ke[METHODS])Ae[Le]=function(...Fe){return this.$[Le](...Fe)}}function setup(){if(this[SETUP_STATE]!==SetupState.Idle)return;this[SETUP_STATE]=SetupState.Pending;const De=findParent(this),_e=De&&window.customElements.get(De.localName),Ae=De&&De[SETUP_STATE]===SetupState.Ready;if(De&&(!_e||!Ae)){waitForParent.call(this,De);return}attach.call(this,De)}async function waitForParent(De){await window.customElements.whenDefined(De.localName),De[SETUP_STATE]!==SetupState.Ready&&await new Promise(_e=>(De[SETUP_CALLBACKS]??(De[SETUP_CALLBACKS]=[])).push(_e)),attach.call(this,De)}function attach(De){if(this.isConnected){if(De){De.keepAlive&&De.forwardKeepAlive&&(this.keepAlive=!0,this.setAttribute("keep-alive",""));const _e=this.$.$$.scope;_e&&De.$.$$.attachScope.append(_e)}this[SETUP]()}}function findParent(De){let _e=De.parentNode,Ae=De.localName.split("-",1)[0]+"-";for(;_e;){if(_e.nodeType===1&&_e.localName.startsWith(Ae))return _e;_e=_e.parentNode}return null}function defineCustomElement(De,_e=!1){(_e||!window.customElements.get(De.tagName))&&window.customElements.define(De.tagName,De)}var Icon$24='<path fill-rule="evenodd" clip-rule="evenodd" d="M6 7C5.63181 7 5.33333 7.29848 5.33333 7.66667V14.8667C5.33333 14.9403 5.39361 14.9999 5.46724 15.0009C10.8844 15.0719 15.2614 19.449 15.3325 24.8661C15.3334 24.9397 15.393 25 15.4667 25H26C26.3682 25 26.6667 24.7015 26.6667 24.3333V7.66667C26.6667 7.29848 26.3682 7 26 7H6ZM17.0119 22.2294C17.0263 22.29 17.0802 22.3333 17.1425 22.3333H23.3333C23.7015 22.3333 24 22.0349 24 21.6667V10.3333C24 9.96514 23.7015 9.66667 23.3333 9.66667H8.66667C8.29848 9.66667 8 9.96514 8 10.3333V13.1909C8 13.2531 8.04332 13.3071 8.10392 13.3214C12.5063 14.3618 15.9715 17.827 17.0119 22.2294Z" fill="currentColor"/> <path d="M13.2 25C13.2736 25 13.3334 24.9398 13.3322 24.8661C13.2615 20.5544 9.77889 17.0718 5.46718 17.0011C5.39356 16.9999 5.33333 17.0597 5.33333 17.1333V18.8667C5.33333 18.9403 5.39348 18.9999 5.4671 19.0015C8.67465 19.0716 11.2617 21.6587 11.3319 24.8662C11.3335 24.9399 11.393 25 11.4667 25H13.2Z" fill="currentColor"/> <path d="M5.33333 21.1333C5.33333 21.0597 5.39332 20.9998 5.46692 21.0022C7.57033 21.0712 9.26217 22.763 9.33114 24.8664C9.33356 24.94 9.27364 25 9.2 25H6C5.63181 25 5.33333 24.7015 5.33333 24.3333V21.1333Z" fill="currentColor"/>',Icon$0='<path fill-rule="evenodd" clip-rule="evenodd" d="M15.0007 28.7923C15.0007 29.0152 14.9774 29.096 14.9339 29.1775C14.8903 29.259 14.8263 29.323 14.7449 29.3665C14.6634 29.4101 14.5826 29.4333 14.3597 29.4333H12.575C12.3521 29.4333 12.2713 29.4101 12.1898 29.3665C12.1083 29.323 12.0443 29.259 12.0008 29.1775C11.9572 29.096 11.934 29.0152 11.934 28.7923V12.2993L5.97496 12.3C5.75208 12.3 5.67125 12.2768 5.58977 12.2332C5.50829 12.1896 5.44434 12.1257 5.40077 12.0442C5.35719 11.9627 5.33398 11.8819 5.33398 11.659V9.87429C5.33398 9.65141 5.35719 9.57059 5.40077 9.48911C5.44434 9.40762 5.50829 9.34368 5.58977 9.3001C5.67125 9.25652 5.75208 9.23332 5.97496 9.23332H26.0263C26.2492 9.23332 26.33 9.25652 26.4115 9.3001C26.493 9.34368 26.557 9.40762 26.6005 9.48911C26.6441 9.57059 26.6673 9.65141 26.6673 9.87429V11.659C26.6673 11.8819 26.6441 11.9627 26.6005 12.0442C26.557 12.1257 26.493 12.1896 26.4115 12.2332C26.33 12.2768 26.2492 12.3 26.0263 12.3L20.067 12.2993L20.0673 28.7923C20.0673 29.0152 20.0441 29.096 20.0005 29.1775C19.957 29.259 19.893 29.323 19.8115 29.3665C19.73 29.4101 19.6492 29.4333 19.4263 29.4333H17.6416C17.4187 29.4333 17.3379 29.4101 17.2564 29.3665C17.175 29.323 17.111 29.259 17.0674 29.1775C17.0239 29.096 17.0007 29.0152 17.0007 28.7923L17 22.7663H15L15.0007 28.7923Z" fill="currentColor"/> <path d="M16.0007 7.89998C17.4734 7.89998 18.6673 6.70608 18.6673 5.23332C18.6673 3.76056 17.4734 2.56665 16.0007 2.56665C14.5279 2.56665 13.334 3.76056 13.334 5.23332C13.334 6.70608 14.5279 7.89998 16.0007 7.89998Z" fill="currentColor"/>',Icon$5='<path d="M5.33334 6.00001C5.33334 5.63182 5.63181 5.33334 6 5.33334H26C26.3682 5.33334 26.6667 5.63182 26.6667 6.00001V20.6667C26.6667 21.0349 26.3682 21.3333 26 21.3333H23.7072C23.4956 21.3333 23.2966 21.233 23.171 21.0628L22.1859 19.7295C21.8607 19.2894 22.1749 18.6667 22.7221 18.6667H23.3333C23.7015 18.6667 24 18.3682 24 18V8.66668C24 8.29849 23.7015 8.00001 23.3333 8.00001H8.66667C8.29848 8.00001 8 8.29849 8 8.66668V18C8 18.3682 8.29848 18.6667 8.66667 18.6667H9.29357C9.84072 18.6667 10.
15291549 19.2894 9.82976 19.7295L8.84467 21.0628C8.71898 21.233 8.52 21.3333 8.30848 21.3333H6C5.63181 21.3333 5.33334 21.0349 5.33334 20.6667V6.00001Z" fill="currentColor"/> <path d="M8.78528 25.6038C8.46013 26.0439 8.77431 26.6667 9.32147 26.6667L22.6785 26.6667C23.2256 26.6667 23.5398 26.0439 23.2146 25.6038L16.5358 16.5653C16.2693 16.2046 15.73 16.2047 15.4635 16.5653L8.78528 25.6038Z" fill="currentColor"/>',Icon$8='<path d="M17.4853 18.9093C17.4853 19.0281 17.6289 19.0875 17.7129 19.0035L22.4185 14.2979C22.6788 14.0376 23.1009 14.0376 23.3613 14.2979L24.7755 15.7122C25.0359 15.9725 25.0359 16.3946 24.7755 16.655L16.2902 25.1403C16.0299 25.4006 15.6078 25.4006 15.3474 25.1403L13.9332 23.726L13.9319 23.7247L6.86189 16.6547C6.60154 16.3944 6.60154 15.9723 6.86189 15.7119L8.2761 14.2977C8.53645 14.0373 8.95856 14.0373 9.21891 14.2977L13.9243 19.0031C14.0083 19.0871 14.1519 19.0276 14.1519 18.9088L14.1519 6.00004C14.1519 5.63185 14.4504 5.33337 14.8186 5.33337L16.8186 5.33337C17.1868 5.33337 17.4853 5.63185 17.4853 6.00004L17.4853 18.9093Z" fill="currentColor"/>',Icon$11='<path d="M13.0908 14.3334C12.972 14.3334 12.9125 14.1898 12.9965 14.1058L17.7021 9.40022C17.9625 9.13987 17.9625 8.71776 17.7021 8.45741L16.2879 7.04319C16.0275 6.78284 15.6054 6.78284 15.3451 7.04319L6.8598 15.5285C6.59945 15.7888 6.59945 16.2109 6.8598 16.4713L8.27401 17.8855L8.27536 17.8868L15.3453 24.9568C15.6057 25.2172 16.0278 25.2172 16.2881 24.9568L17.7024 23.5426C17.9627 23.2822 17.9627 22.8601 17.7024 22.5998L12.9969 17.8944C12.9129 17.8104 12.9724 17.6668 13.0912 17.6668L26 17.6668C26.3682 17.6668 26.6667 17.3683 26.6667 17.0001V15.0001C26.6667 14.6319 26.3682 14.3334 26 14.3334L13.0908 14.3334Z" fill="currentColor"/>',Icon$13='<path d="M14.1521 13.0929C14.1521 12.9741 14.0085 12.9147 13.9245 12.9987L9.21891 17.7043C8.95856 17.9646 8.53645 17.9646 8.2761 17.7043L6.86189 16.29C6.60154 16.0297 6.60154 15.6076 6.86189 15.3472L15.3472 6.86195C15.6075 6.6016 16.0296 6.6016 16.29 6.86195L17.7042 8.27616L17.7055 8.27751L24.7755 15.3475C25.0359 15.6078 25.0359 16.0299 24.7755 16.2903L23.3613 17.7045C23.1009 17.9649 22.6788 17.9649 22.4185 17.7045L17.7131 12.9991C17.6291 12.9151 17.4855 12.9746 17.4855 13.0934V26.0022C17.4855 26.3704 17.187 26.6688 16.8188 26.6688H14.8188C14.4506 26.6688 14.1521 26.3704 14.1521 26.0022L14.1521 13.0929Z" fill="currentColor"/>',Icon$16='<path d="M16.6927 25.3346C16.3245 25.3346 16.026 25.0361 16.026 24.6679L16.026 7.3346C16.026 6.96641 16.3245 6.66794 16.6927 6.66794L18.6927 6.66794C19.0609 6.66794 19.3594 6.96642 19.3594 7.3346L19.3594 24.6679C19.3594 25.0361 19.0609 25.3346 18.6927 25.3346H16.6927Z" fill="currentColor"/> <path d="M24.026 25.3346C23.6578 25.3346 23.3594 25.0361 23.3594 24.6679L23.3594 7.3346C23.3594 6.96641 23.6578 6.66794 24.026 6.66794L26.026 6.66794C26.3942 6.66794 26.6927 6.96642 26.6927 7.3346V24.6679C26.6927 25.0361 26.3942 25.3346 26.026 25.3346H24.026Z" fill="currentColor"/> <path d="M5.48113 23.9407C5.38584 24.2963 5.59689 24.6619 5.95254 24.7572L7.88439 25.2748C8.24003 25.3701 8.60559 25.159 8.70089 24.8034L13.1871 8.06067C13.2824 7.70503 13.0713 7.33947 12.7157 7.24417L10.7838 6.72654C10.4282 6.63124 10.0626 6.8423 9.96733 7.19794L5.48113 23.9407Z" fill="currentColor"/>',Icon$19='<path fill-rule="evenodd" clip-rule="evenodd" d="M24.9266 7.57992C25.015 7.60672 25.0886 7.64746 25.2462 7.80506L26.956 9.51488C27.1136 9.67248 27.1543 9.74604 27.1811 9.83447C27.2079 9.9229 27.2079 10.0133 27.1811 10.1018C27.1543 10.1902 27.1136 10.2638 26.956 10.4214L13.1822 24.1951C13.0246 24.3527 12.951 24.3935 12.8626 24.4203C12.797 24.4402 12.7304 24.4453 12.6642 24.4357L12.7319 24.4203C12.6435 24.4471 12.553 24.4471 12.4646 24.4203C12.3762 24.3935 12.3026 24.3527 12.145 24.1951L5.04407 17.0942C4.88647 16.9366 4.84573 16.863 4.81893 16.7746C4.79213 16.6862 4.79213 16.5957 4.81893 16.5073C4.84573 16.4189 4.88647 16.3453 5.04407 16.1877L6.7539 14.4779C6.9115 14.3203 6.98506 14.2796 7.07349 14.2528C7.16191 14.226 7.25235 14.226 7.34078 14.2528C7.42921 14.2796 7.50277 14.3203 7.66037 14.4779L12.6628 19.4808L24.3397 7.80506C24.4973 7.64746 24.5709 7.60672 24.6593 7.57992C24.7477 7.55311 24.8382 7.55311 24.9266 7.57992Z" fill="currentColor"/>
1529',Icon$22='<path d="M17.947 16.095C17.999 16.043 17.999 15.9585 17.947 15.9065L11.6295 9.58899C11.3691 9.32864 11.3691 8.90653 11.6295 8.64618L13.2323 7.04341C13.4926 6.78306 13.9147 6.78306 14.1751 7.04341L21.0289 13.8973C21.0392 13.9064 21.0493 13.9158 21.0591 13.9257L22.6619 15.5285C22.9223 15.7888 22.9223 16.2109 22.6619 16.4713L14.1766 24.9565C13.9163 25.2169 13.4942 25.2169 13.2338 24.9565L11.631 23.3538C11.3707 23.0934 11.3707 22.6713 11.631 22.411L17.947 16.095Z" fill="currentColor"/>',Icon$26='<path d="M8 28.0003C8 27.6321 8.29848 27.3336 8.66667 27.3336H23.3333C23.7015 27.3336 24 27.6321 24 28.0003V29.3336C24 29.7018 23.7015 30.0003 23.3333 30.0003H8.66667C8.29848 30.0003 8 29.7018 8 29.3336V28.0003Z" fill="currentColor"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.66602 6.66699C4.29783 6.66699 3.99935 6.96547 3.99935 7.33366V24.667C3.99935 25.0352 4.29783 25.3337 4.66602 25.3337H27.3327C27.7009 25.3337 27.9994 25.0352 27.9994 24.667V7.33366C27.9994 6.96547 27.7009 6.66699 27.3327 6.66699H4.66602ZM8.66659 21.3333C8.2984 21.3333 7.99992 21.0349 7.99992 20.6667V11.3333C7.99992 10.9651 8.2984 10.6667 8.66659 10.6667H13.9999C14.3681 10.6667 14.6666 10.9651 14.6666 11.3333V12.6667C14.6666 13.0349 14.3681 13.3333 13.9999 13.3333H10.7999C10.7263 13.3333 10.6666 13.393 10.6666 13.4667V18.5333C10.6666 18.607 10.7263 18.6667 10.7999 18.6667H13.9999C14.3681 18.6667 14.6666 18.9651 14.6666 19.3333V20.6667C14.6666 21.0349 14.3681 21.3333 13.9999 21.3333H8.66659ZM17.9999 21.3333C17.6317 21.3333 17.3333 21.0349 17.3333 20.6667V11.3333C17.3333 10.9651 17.6317 10.6667 17.9999 10.6667H23.3333C23.7014 10.6667 23.9999 10.9651 23.9999 11.3333V12.6667C23.9999 13.0349 23.7014 13.3333 23.3333 13.3333H20.1333C20.0596 13.3333 19.9999 13.393 19.9999 13.4667V18.5333C19.9999 18.607 20.0596 18.6667 20.1333 18.6667H23.3333C23.7014 18.6667 23.9999 18.9651 23.9999 19.3333V20.6667C23.9999 21.0349 23.7014 21.3333 23.3333 21.3333H17.9999Z" fill="currentColor"/>',Icon$27='<path fill-rule="evenodd" clip-rule="evenodd" d="M4.6661 6.66699C4.29791 6.66699 3.99943 6.96547 3.99943 7.33366V24.667C3.99943 25.0352 4.29791 25.3337 4.6661 25.3337H27.3328C27.701 25.3337 27.9994 25.0352 27.9994 24.667V7.33366C27.9994 6.96547 27.701 6.66699 27.3328 6.66699H4.6661ZM8.66667 21.3333C8.29848 21.3333 8 21.0349 8 20.6667V11.3333C8 10.9651 8.29848 10.6667 8.66667 10.6667H14C14.3682 10.6667 14.6667 10.9651 14.6667 11.3333V12.6667C14.6667 13.0349 14.3682 13.3333 14 13.3333H10.8C10.7264 13.3333 10.6667 13.393 10.6667 13.4667V18.5333C10.6667 18.607 10.7264 18.6667 10.8 18.6667H14C14.3682 18.6667 14.6667 18.9651 14.6667 19.3333V20.6667C14.6667 21.0349 14.3682 21.3333 14 21.3333H8.66667ZM18 21.3333C17.6318 21.3333 17.3333 21.0349 17.3333 20.6667V11.3333C17.3333 10.9651 17.6318 10.6667 18 10.6667H23.3333C23.7015 10.6667 24 10.9651 24 11.3333V12.6667C24 13.0349 23.7015 13.3333 23.3333 13.3333H20.1333C20.0597 13.3333 20 13.393 20 13.4667V18.5333C20 18.607 20.0597 18.6667 20.1333 18.6667H23.3333C23.7015 18.6667 24 18.9651 24 19.3333V20.6667C24 21.0349 23.7015 21.3333 23.3333 21.3333H18Z" fill="currentColor"/>',Icon$31='<path d="M14.2225 13.7867C14.3065 13.8706 14.4501 13.8112 14.4501 13.6924V5.99955C14.4501 5.63136 14.7486 5.33289 15.1167 5.33289H16.8501C17.2183 5.33289 17.5167 5.63136 17.5167 5.99955V13.6916C17.5167 13.8104 17.6604 13.8699 17.7444 13.7859L19.9433 11.5869C20.2037 11.3266 20.6258 11.3266 20.8861 11.5869L22.1118 12.8126C22.3722 13.0729 22.3722 13.4951 22.1118 13.7554L16.4549 19.4123C16.1946 19.6726 15.772 19.6731 15.5116 19.4128L9.85479 13.7559C9.59444 13.4956 9.59444 13.0734 9.85479 12.8131L11.0804 11.5874C11.3408 11.3271 11.7629 11.3271 12.0233 11.5874L14.2225 13.7867Z" fill="currentColor"/> <path d="M5.99998 20.267C5.63179 20.267 5.33331 20.5654 5.33331 20.9336V25.9997C5.33331 26.3678 5.63179 26.6663 5.99998 26.6663H26C26.3682 26.6663 26.6666 26.3678 26.6666 25.9997V20.9336C26.6666 20.5654 26.3682 20.267 26 20.267H24.2666C23.8985 20.267 23.6 20.5654 23.6 20.9336V22.9333C23.6 23.3014 23.3015 23.5999 22.9333 23.5999H9.06638C8.69819 23.5999 8.39972 23.3014 8.39972 22.9333V20.9336C8.39972 20.5654 8.10124 20.267 7.73305 20.267H5.99998Z" fill="currentColor"/>',Icon$33='<path d="M16 20C18.2091 20 20 18.2092 20 16C20 13.7909 18.2091 12 16 12C13.7909 12 12 13.7909 12 16C12 18.2092 13.7909 20 16 20Z" fill="currentColor"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M28 16.0058C28 18.671 23.5 25.3334 16 25.3334C8.5 25.3334 4 18.6762 4 16.0058C4 13.3354 8.50447 6.66669 16 6.66669C23.4955 6.66669 28 13.3406 28 16.0058ZM25.3318 15.9934C25.3328 16.0017 25.3328 16.0099 25.3318 16.
15290182C25.3274 16.0571 25.3108 16.1728 25.2485 16.3708C25.1691 16.6229 25.0352 16.9462 24.8327 17.3216C24.4264 18.0749 23.7969 18.9398 22.9567 19.754C21.2791 21.3798 18.9148 22.6667 16 22.6667C13.0845 22.6667 10.7202 21.3805 9.04298 19.7557C8.20295 18.9419 7.57362 18.0773 7.16745 17.3241C6.96499 16.9486 6.83114 16.6252 6.75172 16.3729C6.67942 16.1431 6.66856 16.0243 6.66695 16.0066L6.66695 16.005C6.66859 15.9871 6.67951 15.8682 6.75188 15.6383C6.83145 15.3854 6.96554 15.0614 7.16831 14.6853C7.57507 13.9306 8.20514 13.0644 9.04577 12.249C10.7245 10.6208 13.0886 9.33335 16 9.33335C18.9108 9.33335 21.2748 10.6215 22.9539 12.2507C23.7947 13.0664 24.4249 13.933 24.8318 14.6877C25.0346 15.0639 25.1688 15.3878 25.2483 15.6404C25.3107 15.8386 25.3274 15.9545 25.3318 15.9934Z" fill="currentColor"/>',Icon$34='<path d="M15.8747 8.11857C16.3148 7.79342 16.9375 8.10759 16.9375 8.65476V14.2575C16.9375 14.3669 17.0621 14.4297 17.1501 14.3647L25.6038 8.11857C26.0439 7.79342 26.6667 8.10759 26.6667 8.65476V23.3451C26.6667 23.8923 26.0439 24.2064 25.6038 23.8813L17.1501 17.6346C17.0621 17.5695 16.9375 17.6324 16.9375 17.7418L16.9375 23.3451C16.9375 23.8923 16.3147 24.2064 15.8747 23.8813L5.93387 16.5358C5.57322 16.2693 5.57323 15.7299 5.93389 15.4634L15.8747 8.11857Z" fill="currentColor"/>',Icon$35='<path d="M16.1253 8.11866C15.6852 7.7935 15.0625 8.10768 15.0625 8.65484V14.2576C15.0625 14.367 14.9379 14.4298 14.8499 14.3648L6.39615 8.11866C5.95607 7.7935 5.33331 8.10768 5.33331 8.65484V23.3452C5.33331 23.8923 5.9561 24.2065 6.39617 23.8813L14.8499 17.6347C14.9379 17.5696 15.0625 17.6325 15.0625 17.7419L15.0625 23.3452C15.0625 23.8923 15.6853 24.2065 16.1253 23.8813L26.0661 16.5358C26.4268 16.2694 26.4268 15.73 26.0661 15.4635L16.1253 8.11866Z" fill="currentColor"/>',Icon$39='<path d="M19.3334 13.3333C18.9652 13.3333 18.6667 13.0349 18.6667 12.6667L18.6667 7.33333C18.6667 6.96514 18.9652 6.66666 19.3334 6.66666H21.3334C21.7015 6.66666 22 6.96514 22 7.33333V9.86666C22 9.9403 22.0597 10 22.1334 10L24.6667 10C25.0349 10 25.3334 10.2985 25.3334 10.6667V12.6667C25.3334 13.0349 25.0349 13.3333 24.6667 13.3333L19.3334 13.3333Z" fill="currentColor"/> <path d="M13.3334 19.3333C13.3334 18.9651 13.0349 18.6667 12.6667 18.6667H7.33335C6.96516 18.6667 6.66669 18.9651 6.66669 19.3333V21.3333C6.66669 21.7015 6.96516 22 7.33335 22H9.86669C9.94032 22 10 22.0597 10 22.1333L10 24.6667C10 25.0349 10.2985 25.3333 10.6667 25.3333H12.6667C13.0349 25.3333 13.3334 25.0349 13.3334 24.6667L13.3334 19.3333Z" fill="currentColor"/> <path d="M18.6667 24.6667C18.6667 25.0349 18.9652 25.3333 19.3334 25.3333H21.3334C21.7015 25.3333 22 25.0349 22 24.6667V22.1333C22 22.0597 22.0597 22 22.1334 22H24.6667C25.0349 22 25.3334 21.7015 25.3334 21.3333V19.3333C25.3334 18.9651 25.0349 18.6667 24.6667 18.6667L19.3334 18.6667C18.9652 18.6667 18.6667 18.9651 18.6667 19.3333L18.6667 24.6667Z" fill="currentColor"/> <path d="M10.6667 13.3333H12.6667C13.0349 13.3333 13.3334 13.0349 13.3334 12.6667L13.3334 10.6667V7.33333C13.3334 6.96514 13.0349 6.66666 12.6667 6.66666H10.6667C10.2985 6.66666 10 6.96514 10 7.33333L10 9.86666C10 9.9403 9.94033 10 9.86669 10L7.33335 10C6.96516 10 6.66669 10.2985 6.66669 10.6667V12.6667C6.66669 13.0349 6.96516 13.3333 7.33335 13.3333L10.6667 13.3333Z" fill="currentColor"/>',Icon$40='<path d="M25.3299 7.26517C25.2958 6.929 25.0119 6.66666 24.6667 6.66666H19.3334C18.9652 6.66666 18.6667 6.96514 18.6667 7.33333V9.33333C18.6667 9.70152 18.9652 10 19.3334 10L21.8667 10C21.9403 10 22 10.0597 22 10.1333V12.6667C22 13.0349 22.2985 13.3333 22.6667 13.3333H24.6667C25.0349 13.3333 25.3334 13.0349 25.3334 12.6667V7.33333C25.3334 7.31032 25.3322 7.28758 25.3299 7.26517Z" fill="currentColor"/> <path d="M22 21.8667C22 21.9403 21.9403 22 21.8667 22L19.3334 22C18.9652 22 18.6667 22.2985 18.6667 22.6667V24.6667C18.6667 25.0349 18.9652 25.3333 19.3334 25.3333L24.6667 25.3333C25.0349 25.3333 25.3334 25.0349 25.3334 24.6667V19.3333C25.3334 18.9651 25.0349 18.6667 24.6667 18.6667H22.6667C22.2985 18.6667 22 18.9651 22 19.3333V21.8667Z" fill="currentColor"/> <path d="M12.6667 22H10.1334C10.0597 22 10 21.9403 10 21.8667V19.3333C10 18.9651 9.70154 18.6667 9.33335 18.6667H7.33335C6.96516 18.6667 6.66669 18.9651 6.66669 19.3333V24.6667C6.66669 25.0349 6.96516 25.3333 7.33335 25.3333H12.6667C13.0349 25.3333 13.3334 25.0349 13.3334 24.6667V22.6667C13.3334 22.2985 13.0349 22 12.6667 22Z" fill="currentColor"/> <path d="M10 12.6667V10.1333C10 10.0597 10.0597 10 10.1334 10L12.6667 10C13.0349 10 13.3334 9.70152 13.3334 9.33333V7.33333C13.3334 6.96514 13.0349 6.66666 12.6667 6.66666H7.33335C6.96516 6.66666 6.66669 6.96514 6.66669 7.33333V12.6667C6.66669 13.0349 6.96516 13.3333 7.33335 13.3333H9.33335C9.70154 13.3333 10 13.0349 10 12.6667Z" fill="currentColor"/>',Icon$53='<path fill-rule="evenodd" clip-rule="evenodd" d="M26.6667 5.99998C26.6667 5.63179 26.3682 5.33331 26 5.33331H11.3333C10.9651 5.33331 10.6667 5.63179 10.6667 5.99998V17.5714C10.6667 17.6694 10.5644 17.7342 10.4741 17.6962C9.91823 17.4625 9.30754 17.3333 8.66667 17.3333C6.08934 17.3333 4 19.4226 4 22C4 24.5773 6.08934 26.6666 8.66667 26.6666C11.244 26.6666 13.3333 24.5773 13.3333 22V8.66665C13.3333 8.29846 13.6318 7.99998 14 7.99998L23.3333 7.99998C23.7015 7.99998 24 8.29846 24 8.66665V14.9048C24 15.0027 23.8978 15.0675 23.8075 15.0296C23.2516 14.7958 22.6409 14.6666 22 14.6666C19.4227 14.6666 17.3333 16.756 17.3333 19.3333C17.3333 21.9106 19.4227 24 22 24C24.5773 24 26.6667 21.9106 26.6667 19.3333V5.99998ZM22 21.3333C23.1046 21.3333 24 20.4379 24 19.3333C24 18.2287 23.1046 17.3333 22 17.3333C20.8954 17.3333 20 18.2287 20 19.3333C20 20.4379 20.8954 21.3333 22 21.3333ZM8.66667 24C9.77124 24 10.6667 23.1045 10.6667 22C10.6667 20.8954 9.77124 20 8.66667 20C7.5621 20 6.66667 20.8954 6.66667 22C6.66667 23.1045 7.5621 24 8.66667 24Z" fill="currentColor"/>',Icon$54='<path d="M17.5091 24.6594C17.5091 25.2066 16.8864 25.5208 16.4463 25.1956L9.44847 20.0252C9.42553 20.0083 9.39776 19.9991 9.36923 19.9991H4.66667C4.29848 19.9991 4 19.7006 4 19.3325V12.6658C4 12.2976 4.29848 11.9991 4.66667 11.9991H9.37115C9.39967 11.9991 9.42745 11.99 9.45039 11.973L16.4463 6.8036C16.8863 6.47842 17.5091 6.79259 17.5091 7.33977L17.5091 24.6594Z" fill="currentColor"/> <path d="M28.8621 13.6422C29.1225 13.3818 29.1225 12.9597 28.8621 12.6994L27.9193 11.7566C27.659 11.4962 27.2368 11.4962 26.9765 11.7566L24.7134 14.0197C24.6613 14.0717 24.5769 14.0717 24.5248 14.0197L22.262 11.7568C22.0016 11.4964 21.5795 11.4964 21.3191 11.7568L20.3763 12.6996C20.116 12.9599 20.116 13.382 20.3763 13.6424L22.6392 15.9053C22.6913 15.9573 22.6913 16.0418 22.6392 16.0938L20.3768 18.3562C20.1165 18.6166 20.1165 19.0387 20.3768 19.299L21.3196 20.2419C21.58 20.5022 22.0021 20.5022 22.2624 20.2418L24.5248 17.9795C24.5769 17.9274 24.6613 17.9274 24.7134 17.9795L26.976 20.2421C27.2363 20.5024 27.6585 20.5024 27.9188 20.2421L28.8616 19.2992C29.122 19.0389 29.122 18.6168 28.8616 18.3564L26.599 16.0938C26.547 16.0418 26.547 15.9573 26.599 15.9053L28.8621 13.6422Z" fill="currentColor"/>',Icon$56='<path d="M26.6009 16.0725C26.6009 16.424 26.4302 17.1125 25.9409 18.0213C25.4676 18.8976 24.7542 19.8715 23.8182 20.7783C21.9489 22.5905 19.2662 24.0667 15.9342 24.0667C12.6009 24.0667 9.91958 22.5915 8.04891 20.78C7.11424 19.8736 6.40091 18.9 5.92758 18.0236C5.43824 17.1149 5.26758 16.4257 5.26758 16.0725C5.26758 15.7193 5.43824 15.0293 5.92891 14.1193C6.40224 13.2416 7.11558 12.2665 8.05158 11.3587C9.92224 9.54398 12.6049 8.06665 15.9342 8.06665C19.2636 8.06665 21.9449 9.54505 23.8169 11.3604C24.7529 12.2687 25.4662 13.2441 25.9396 14.1216C26.4302 15.0317 26.6009 15.7209 26.6009 16.0725Z" stroke="currentColor" stroke-width="3"/> <path d="M15.9336 20.0667C18.1427 20.0667 19.9336 18.2758 19.9336 16.0667C19.9336 13.8575 18.1427 12.0667 15.9336 12.0667C13.7245 12.0667 11.9336 13.8575 11.9336 16.0667C11.9336 18.2758 13.7245 20.0667 15.9336 20.0667Z" fill="currentColor"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M27.2323 25.0624L6.93878 4.76886C6.78118 4.61126 6.70762 4.57052 6.61919 4.54372C6.53077 4.51692 6.44033 4.51691 6.3519 4.54372C6.26347 4.57052 6.18991 4.61126 6.03231 4.76886L4.77032 6.03085C4.61272 6.18845 4.57198 6.26201 4.54518 6.35044C4.51838 6.43887 4.51838 6.5293 4.54518 6.61773C4.57198 6.70616 4.61272 6.77972 4.77032 6.93732L25.0639 27.2308C25.2215 27.3884 25.295 27.4292 25.3834 27.456C25.4719 27.4828 25.5623 27.4828 25.6507 27.456C25.7392 27.4292 25.8127 27.3885 25.9703 27.2309L27.2323 25.9689C27.3899 25.8113 27.4307 25.7377 27.4575 25.6493C27.4843 25.5608 27.4843 25.4704 27.4575 25.382C27.4307 25.2935 27.3899 25.22 27.2323 25.0624Z" fill="currentColor"/>',Icon$59='<path d="M8.66667 6.66667C8.29848 6.66667 8 6.96514 8 7.33333V24.6667C8 25.0349 8.29848 25.3333 8.66667 25.3333H12.6667C13.0349 25.3333 13.3333 25.0349 13.3333 24.6667V7.33333C13.3333 6.96514 13.0349 6.66667 12.6667 6.66667H8.66667Z" fill="currentColor"/> <path d="M19.3333 6.66667C18.9651 6.66667 18.6667 6.96514 18.6667 7.33333V24.6667C18.6667 25.0349 18.9651 25.3333 19.3333 25.3333H23.3333C23.7015 25.3333 24 25.0349 24 24.6667V7.33333C24 6.96514 23.7015 6.66667 23.3333 6.66667H19.3333Z" fill="currentColor"/>',Icon$60='<path d="M5.33334 26V19.4667C5.33334 19.393 5.39304 19.3333 5.46668 19.3333H7.86668C7.94031 19.3333 8.00001 19.393 8.00001 19.4667V23.3333C8.00001 23.7015 8.29849 24 8.66668 24H23.3333C23.7015 24 24 23.7015 24 23.3333V8.66666C24 8.29847 23.7015 7.99999 23.3333 7.99999H19.4667C19.393 7.99999 19.3333 7.9403 19.3333 7.86666V5.46666C19.3333 5.39302 19.393 5.33333 19.4667 5.33333H26C26.3682 5.33333 26.6667 5.63181 26.6667 5.99999V26C26.6667 26.3682 26.3682 26.6667 26 26.6667H6.00001C5.63182 26.6667 5.33334 26.3682 5.33334 26Z" fill="currentColor"/> <path d="M14.0098 8.42359H10.806C10.6872 8.42359 10.6277 8.56721 10.7117 8.6512L16.5491 14.4886C16.8094 14.7489 16.8094 15.171 16.5491 15.4314L15.3234 16.657C15.0631 16.9174 14.641 16.9174 14.3806 16.657L8.63739 10.9138C8.55339 10.8298 8.40978 10.8893 8.40978 11.0081V14.0236C8.40978 14.3918 8.1113 14.6903 7.74311 14.6903H6.00978C5.64159 14.6903 5.34311 14.3918 5.34311 14.0236L5.34311 6.02359C5.34311 5.6554 5.64159 5.35692 6.00978 5.35692L14.0098 5.35692C14.378 5.35692 14.6764 5.6554 14.6764 6.02359V7.75692C14.6764 8.12511 14.378 8.42359 14.0098 8.42359Z" fill="currentColor"/>',Icon$61='<path d="M16 15.3333C15.6318 15.3333 15.3333 15.6318 15.3333 16V20C15.3333 20.3682 15.6318 20.6667 16 20.6667H21.3333C21.7015 20.6667 22 20.3682 22 20V16C22 
152915.6318 21.7015 15.3333 21.3333 15.3333H16Z" fill="currentColor"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5.33333 7.33334C5.33333 6.96515 5.63181 6.66667 5.99999 6.66667H26C26.3682 6.66667 26.6667 6.96515 26.6667 7.33334V24.6667C26.6667 25.0349 26.3682 25.3333 26 25.3333H5.99999C5.63181 25.3333 5.33333 25.0349 5.33333 24.6667V7.33334ZM7.99999 10C7.99999 9.63182 8.29847 9.33334 8.66666 9.33334H23.3333C23.7015 9.33334 24 9.63182 24 10V22C24 22.3682 23.7015 22.6667 23.3333 22.6667H8.66666C8.29847 22.6667 7.99999 22.3682 7.99999 22V10Z" fill="currentColor"/>',Icon$62='<path d="M10.6667 6.6548C10.6667 6.10764 11.2894 5.79346 11.7295 6.11862L24.377 15.4634C24.7377 15.7298 24.7377 16.2692 24.3771 16.5357L11.7295 25.8813C11.2895 26.2065 10.6667 25.8923 10.6667 25.3451L10.6667 6.6548Z" fill="currentColor"/>',Icon$63='<path d="M13.9213 5.53573C14.3146 5.45804 14.6666 5.76987 14.6666 6.17079V7.57215C14.6666 7.89777 14.4305 8.17277 14.114 8.24925C12.5981 8.61559 11.2506 9.41368 10.2091 10.506C9.98474 10.7414 9.62903 10.8079 9.34742 10.6453L8.14112 9.94885C7.79394 9.7484 7.69985 9.28777 7.96359 8.98585C9.48505 7.24409 11.5636 6.00143 13.9213 5.53573Z" fill="currentColor"/> <path d="M5.88974 12.5908C6.01805 12.2101 6.46491 12.0603 6.81279 12.2611L8.01201 12.9535C8.29379 13.1162 8.41396 13.4577 8.32238 13.7699C8.11252 14.4854 7.99998 15.2424 7.99998 16.0257C7.99998 16.809 8.11252 17.566 8.32238 18.2814C8.41396 18.5936 8.29378 18.9352 8.01201 19.0979L6.82742 19.7818C6.48051 19.9821 6.03488 19.8337 5.90521 19.4547C5.5345 18.3712 5.33331 17.2091 5.33331 16C5.33331 14.8078 5.5289 13.6613 5.88974 12.5908Z" fill="currentColor"/> <path d="M8.17106 22.0852C7.82291 22.2862 7.72949 22.7486 7.99532 23.0502C9.51387 24.773 11.5799 26.0017 13.9213 26.4642C14.3146 26.5419 14.6666 26.2301 14.6666 25.8291V24.4792C14.6666 24.1536 14.4305 23.8786 14.114 23.8021C12.5981 23.4358 11.2506 22.6377 10.2091 21.5453C9.98474 21.31 9.62903 21.2435 9.34742 21.4061L8.17106 22.0852Z" fill="currentColor"/> <path d="M17.3333 25.8291C17.3333 26.2301 17.6857 26.5418 18.079 26.4641C22.9748 25.4969 26.6666 21.1796 26.6666 16C26.6666 10.8204 22.9748 6.50302 18.079 5.5358C17.6857 5.4581 17.3333 5.76987 17.3333 6.17079V7.57215C17.3333 7.89777 17.5697 8.17282 17.8862 8.24932C21.3942 9.09721 24 12.2572 24 16.0257C24 19.7942 21.3942 22.9542 17.8862 23.802C17.5697 23.8785 17.3333 24.1536 17.3333 24.4792V25.8291Z" fill="currentColor"/> <path d="M14.3961 10.4163C13.9561 10.0911 13.3333 10.4053 13.3333 10.9525L13.3333 21.0474C13.3333 21.5946 13.9561 21.9087 14.3962 21.5836L21.2273 16.5359C21.5879 16.2694 21.5879 15.73 21.2273 15.4635L14.3961 10.4163Z" fill="currentColor"/>',Icon$74='<path d="M15.6038 12.2147C16.0439 12.5399 16.6667 12.2257 16.6667 11.6786V10.1789C16.6667 10.1001 16.7351 10.0384 16.8134 10.0479C20.1116 10.4494 22.6667 13.2593 22.6667 16.6659C22.6667 20.3481 19.6817 23.3332 15.9995 23.3332C12.542 23.3332 9.69927 20.7014 9.36509 17.332C9.32875 16.9655 9.03371 16.6662 8.66548 16.6662L6.66655 16.6666C6.29841 16.6666 5.99769 16.966 6.02187 17.3334C6.36494 22.5454 10.7012 26.6667 16 26.6667C21.5228 26.6667 26 22.1895 26 16.6667C26 11.4103 21.9444 7.10112 16.7916 6.69757C16.7216 6.69209 16.6667 6.63396 16.6667 6.56372V4.98824C16.6667 4.44106 16.0439 4.12689 15.6038 4.45206L11.0765 7.79738C10.7159 8.06387 10.7159 8.60326 11.0766 8.86973L15.6038 12.2147Z" fill="currentColor"/>',Icon$77='<path d="M16.6667 10.3452C16.6667 10.8924 16.0439 11.2066 15.6038 10.8814L11.0766 7.5364C10.7159 7.26993 10.7159 6.73054 11.0766 6.46405L15.6038 3.11873C16.0439 2.79356 16.6667 3.10773 16.6667 3.6549V5.22682C16.6667 5.29746 16.7223 5.35579 16.7927 5.36066C22.6821 5.76757 27.3333 10.674 27.3333 16.6667C27.3333 22.9259 22.2592 28 16 28C9.96483 28 5.03145 23.2827 4.68601 17.3341C4.66466 16.9665 4.96518 16.6673 5.33339 16.6673H7.3334C7.70157 16.6673 7.99714 16.9668 8.02743 17.3337C8.36638 21.4399 11.8064 24.6667 16 24.6667C20.4183 24.6667 24 21.085 24 16.6667C24 12.5225 20.8483 9.11428 16.8113 8.70739C16.7337 8.69957 16.6667 8.76096 16.6667 8.83893V10.3452Z" fill="currentColor"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M17.0879 19.679C17.4553 19.9195 17.8928 20.0398 18.4004 20.0398C18.9099 20.0398 19.3474 19.9205 19.7129 19.6818C20.0803 19.4413 20.3635 19.0938 20.5623 18.6392C20.7612 18.1847 20.8606 17.6373 20.8606 16.9972C20.8625 16.3608 20.764 15.8192 20.5652 15.3722C20.3663 14.9252 20.0822 14.5853 19.7129 14.3523C19.3455 14.1175 18.908 14 18.4004 14C17.8928 14 17.4553 14.1175 17.0879 14.3523C16.7224 14.5853 16.4402 14.9252 16.2413 15.3722C16.0443 15.8173 15.9449 16.3589 15.943 16.9972C15.9411 17.6354 16.0396 18.1818 16.2385 18.6364C16.4373 19.089 16.7205 19.4366 17.0879 19.679ZM19.1362 18.4262C18.9487 18.7349 18.7034 18.8892 18.4004 18.8892C18.1996 18.8892 18.0226 18.8211 17.8691 18.6847C17.7157 18.5464 17.5964 18.3372 17.5112 18.0568C17.4279 17.7765 17.3871 17.4233 17.389 16.9972C17.3909 16.3684 17.4847 15.9025 17.6703 15.5995C17.8559 15.2945 18.0993 15.1421 18.4004 15.1421C18.603 15.1421 18.7801 15.2093 18.9316 15.3438C19.0832 15.4782 19.2015 15.6828 19.2868 15.9574C19.372 16.2301 19.4146 16.5767 19.4146 16.9972C19.4165 17.6392 19.3237 18.1156 19.1362 18.4262Z" fill="currentColor"/> <path d="M13.7746 19.8978C13.8482 19.8978 13.9079 19.8381 13.9079 19.7644V14.2129C13.9079 14.1393 13.8482 14.0796 13.7746 14.0796H12.642C12.6171 14.0796 12.5927 14.0865 12.5716 14.0997L11.2322 14.9325C11.1931 14.9568 11.1693 14.9996 11.1693 15.0457V15.9497C11.1693 16.0539 11.2833 16.1178 11.3722 16.0635L12.464 15.396C12.4682 15.3934 12.473 15.3921 12.4779 15.3921C12.4926 15.3921 12.5045 15.404 12.5045 15.4187V19.7644C12.5045 19.8381 12.5642 19.8978 12.6378 19.8978H13.7746Z" fill="currentColor"/>',Icon$81='<path d="M15.3333 10.3452C15.3333 10.8924 15.9561 11.2066 16.3962 10.8814L20.9234 7.5364C21.2841 7.26993 21.2841 6.73054 20.9235 6.46405L16.3962 3.11873C15.9561 2.79356 15.3333 3.10773 15.3333 3.6549V5.22682C15.3333 5.29746 15.2778 5.35579 15.2073 5.36066C9.31791 5.76757 4.66667 10.674 4.66667 16.6667C4.66667 22.9259 9.74078 28 16 28C22.0352 28 26.9686 23.2827 27.314 17.3341C27.3354 16.9665 27.0348 16.6673 26.6666 16.6673H24.6666C24.2984 16.6673 24.0029 16.9668 23.9726 17.3337C23.6336 21.4399 20.1937 24.6667 16 24.6667C11.5817 24.6667 8 21.085 8 16.6667C8 12.5225 11.1517 9.11428 15.1887 8.70739C15.2663 8.69957 15.3333 8.76096 15.3333 8.83893V10.3452Z" fill="currentColor"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M17.0879 19.679C17.4553 19.9195 17.8928 20.0398 18.4004 20.0398C18.9099 20.0398 19.3474 19.9205 19.7129 19.6818C20.0803 19.4413 20.3635 19.0938 20.5623 18.6392C20.7612 18.1847 20.8606 17.6373 20.8606 16.9972C20.8625 16.3608 20.764 15.8192 20.5652 15.3722C20.3663 14.9252 20.0822 14.5853 19.7129 14.3523C19.3455 14.1175 18.908 14 18.4004 14C17.8928 14 17.4553 14.1175 17.0879 14.3523C16.7224 14.5853 16.4402 14.9252 16.2413 15.3722C16.0443 15.8173 15.9449 16.3589 15.943 16.9972C15.9411 17.6354 16.0396 18.1818 16.2385 18.6364C16.4373 19.089 16.7205 19.4366 17.0879 19.679ZM19.1362 18.4262C18.9487 18.7349 18.7034 18.8892 18.4004 18.8892C18.1996 18.8892 18.0225 18.8211 17.8691 18.6847C17.7157 18.5464 17.5964 18.3372 17.5112 18.0568C17.4278 17.7765 17.3871 17.4233 17.389 16.9972C17.3909 16.3684 17.4847 15.9025 17.6703 15.5995C17.8559 15.2945 18.0992 15.1421 18.4004 15.1421C18.603 15.1421 18.7801 15.2093 18.9316 15.3438C19.0831 15.4782 19.2015 15.6828 19.2867 15.9574C19.372 16.2301 19.4146 16.5767 19.4146 16.9972C19.4165 17.6392 19.3237 18.1156 19.1362 18.4262Z" fill="currentColor"/> <path d="M13.7746 19.8978C13.8482 19.8978 13.9079 19.8381 13.9079 19.7644V14.2129C13.9079 14.1393 13.8482 14.0796 13.7746 14.0796H12.642C12.6171 14.0796 12.5927 14.0865 12.5716 14.0997L11.2322 14.9325C11.1931 14.9568 11.1693 14.9996 11.1693 15.0457V15.9497C11.1693 16.0539 11.2833 16.1178 11.3722 16.0635L12.464 15.396C12.4682 15.3934 12.473 15.3921 12.4779 15.3921C12.4926 15.3921 12.5045 15.404 12.5045 15.4187V19.7644C12.5045 19.8381 12.5642 19.8978 12.6378 19.8978H13.7746Z" fill="currentColor"/>',Icon$88='<path fill-rule="evenodd" clip-rule="evenodd" d="M13.5722 5.33333C13.2429 5.33333 12.9629 5.57382 12.9132 5.89938L12.4063 9.21916C12.4 9.26058 12.3746 9.29655 12.3378 9.316
152972C12.2387 9.37118 12.1409 9.42779 12.0444 9.48648C12.0086 9.5083 11.9646 9.51242 11.9255 9.49718L8.79572 8.27692C8.48896 8.15732 8.14083 8.27958 7.9762 8.56472L5.5491 12.7686C5.38444 13.0538 5.45271 13.4165 5.70981 13.6223L8.33308 15.7225C8.3658 15.7487 8.38422 15.7887 8.38331 15.8306C8.38209 15.8867 8.38148 15.9429 8.38148 15.9993C8.38148 16.0558 8.3821 16.1121 8.38332 16.1684C8.38423 16.2102 8.36582 16.2503 8.33313 16.2765L5.7103 18.3778C5.45334 18.5836 5.38515 18.9462 5.54978 19.2314L7.97688 23.4352C8.14155 23.7205 8.48981 23.8427 8.79661 23.723L11.926 22.5016C11.9651 22.4864 12.009 22.4905 12.0449 22.5123C12.1412 22.5709 12.2388 22.6274 12.3378 22.6818C12.3745 22.7019 12.4 22.7379 12.4063 22.7793L12.9132 26.0993C12.9629 26.4249 13.2429 26.6654 13.5722 26.6654H18.4264C18.7556 26.6654 19.0356 26.425 19.0854 26.0995L19.5933 22.7801C19.5997 22.7386 19.6252 22.7027 19.6619 22.6825C19.7614 22.6279 19.8596 22.5711 19.9564 22.5121C19.9923 22.4903 20.0362 22.4862 20.0754 22.5015L23.2035 23.7223C23.5103 23.842 23.8585 23.7198 24.0232 23.4346L26.4503 19.2307C26.6149 18.9456 26.5467 18.583 26.2898 18.3771L23.6679 16.2766C23.6352 16.2504 23.6168 16.2104 23.6177 16.1685C23.619 16.1122 23.6196 16.0558 23.6196 15.9993C23.6196 15.9429 23.619 15.8866 23.6177 15.8305C23.6168 15.7886 23.6353 15.7486 23.668 15.7224L26.2903 13.623C26.5474 13.4172 26.6156 13.0544 26.451 12.7692L24.0239 8.56537C23.8592 8.28023 23.5111 8.15797 23.2043 8.27757L20.0758 9.49734C20.0367 9.51258 19.9927 9.50846 19.9569 9.48664C19.8599 9.42762 19.7616 9.37071 19.6618 9.31596C19.6251 9.2958 19.5997 9.25984 19.5933 9.21843L19.0854 5.89915C19.0356 5.57369 18.7556 5.33333 18.4264 5.33333H13.5722ZM16.0001 20.2854C18.3672 20.2854 20.2862 18.3664 20.2862 15.9993C20.2862 13.6322 18.3672 11.7132 16.0001 11.7132C13.6329 11.7132 11.714 13.6322 11.714 15.9993C11.714 18.3664 13.6329 20.2854 16.0001 20.2854Z" fill="currentColor"/>',Icon$104='<path d="M17.5091 24.6595C17.5091 25.2066 16.8864 25.5208 16.4463 25.1956L9.44847 20.0252C9.42553 20.0083 9.39776 19.9992 9.36923 19.9992H4.66667C4.29848 19.9992 4 19.7007 4 19.3325V12.6658C4 12.2976 4.29848 11.9992 4.66667 11.9992H9.37115C9.39967 11.9992 9.42745 11.99 9.45039 11.9731L16.4463 6.80363C16.8863 6.47845 17.5091 6.79262 17.5091 7.3398L17.5091 24.6595Z" fill="currentColor"/> <path d="M27.5091 9.33336C27.8773 9.33336 28.1758 9.63184 28.1758 10V22C28.1758 22.3682 27.8773 22.6667 27.5091 22.6667H26.1758C25.8076 22.6667 25.5091 22.3682 25.5091 22V10C25.5091 9.63184 25.8076 9.33336 26.1758 9.33336L27.5091 9.33336Z" fill="currentColor"/> <path d="M22.1758 12C22.544 12 22.8424 12.2985 22.8424 12.6667V19.3334C22.8424 19.7016 22.544 20 22.1758 20H20.8424C20.4743 20 20.1758 19.7016 20.1758 19.3334V12.6667C20.1758 12.2985 20.4743 12 20.8424 12H22.1758Z" fill="currentColor"/>',Icon$105='<path d="M17.5091 24.6594C17.5091 25.2066 16.8864 25.5207 16.4463 25.1956L9.44847 20.0252C9.42553 20.0083 9.39776 19.9991 9.36923 19.9991H4.66667C4.29848 19.9991 4 19.7006 4 19.3324V12.6658C4 12.2976 4.29848 11.9991 4.66667 11.9991H9.37115C9.39967 11.9991 9.42745 11.99 9.45039 11.973L16.4463 6.80358C16.8863 6.4784 17.5091 6.79258 17.5091 7.33975L17.5091 24.6594Z" fill="currentColor"/> <path d="M22.8424 12.6667C22.8424 12.2985 22.544 12 22.1758 12H20.8424C20.4743 12 20.1758 12.2985 20.1758 12.6667V19.3333C20.1758 19.7015 20.4743 20 20.8424 20H22.1758C22.544 20 22.8424 19.7015 22.8424 19.3333V12.6667Z" fill="currentColor"/>';const mediaContext=createContext();function useMediaContext(){return useContext(mediaContext)}function useMediaState(){return useMediaContext().$state}const UA=(navigator==null?void 0:navigator.userAgent.toLowerCase())||"",IS_IOS=/iphone|ipad|ipod|ios|crios|fxios/i.test(UA),IS_IPHONE=/(iphone|ipod)/gi.test((navigator==null?void 0:navigator.platform)||""),IS_CHROME=!!window.chrome,IS_SAFARI=!!window.safari||IS_IOS;function canOrientScreen(){return canRotateScreen()&&isFunction(screen.orientation.unlock)}function canRotateScreen(){return!isUndefined(window.screen.orientation)&&!isUndefined(window.screen.orientation.lock)}function canPlayAudioType(De,_e){return De||(De=document.createElement("audio")),De.canPlayType(_e).length>0}function canPlayVideoType(De,_e){return De||(De=document.createElement("video")),De.canPlayType(_e).length>0}function canPlayHLSNatively(De){return De||(De=document.createElement("video")),De.canPlayType("application/vnd.apple.mpegurl").length>0}function canUsePictureInPicture(De){return!!document.pictureInPictureEnabled&&!(De!=null&&De.disablePictureInPicture)}function canUseVideoPresentation(De){return isFunction(De==null?void 0:De.webkitSupportsPresentationMode)&&isFunction(De==null?void 0:De.webkitSetPresentationMode)}async function canChangeVolume(){const De=document.createElement("video");return De.volume=.5,await waitTimeout(0),De.volume===.5}function getMediaSource(){return(window==null?void 0:window.ManagedMediaSource)??(window==null?void 0:window.MediaSource)??(window==null?void 0:window.WebKitMediaSource)}function getSourceBuffer(){return(window==null?void 0:window.SourceBuffer)??
1529(window==null?void 0:window.WebKitSourceBuffer)}function isHLSSupported(){const De=getMediaSource();if(isUndefined(De))return!1;const _e=De&&isFunction(De.isTypeSupported)&&De.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),Ae=getSourceBuffer(),ke=isUndefined(Ae)||!isUndefined(Ae.prototype)&&isFunction(Ae.prototype.appendBuffer)&&isFunction(Ae.prototype.remove);return!!_e&&!!ke}function isDASHSupported(){return isHLSSupported()}const AUDIO_EXTENSIONS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx|flac)($|\?)/i,AUDIO_TYPES=new Set(["audio/mpeg","audio/ogg","audio/3gp","audio/mp3","audio/webm","audio/flac","audio/m4a","audio/m4b","audio/mp4a","audio/mp4"]),VIDEO_EXTENSIONS=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,VIDEO_TYPES=new Set(["video/mp4","video/webm","video/3gp","video/ogg","video/avi","video/mpeg"]),HLS_VIDEO_EXTENSIONS=/\.(m3u8)($|\?)/i,DASH_VIDEO_EXTENSIONS=/\.(mpd)($|\?)/i,HLS_VIDEO_TYPES=new Set(["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"]),DASH_VIDEO_TYPES=new Set(["application/dash+xml"]);function isAudioSrc({src:De,type:_e}){return isString(De)?AUDIO_EXTENSIONS.test(De)||AUDIO_TYPES.has(_e)||De.startsWith("blob:")&&_e==="audio/object":_e==="audio/object"}function isVideoSrc(De){return isString(De.src)?VIDEO_EXTENSIONS.test(De.src)||VIDEO_TYPES.has(De.type)||De.src.startsWith("blob:")&&De.type==="video/object"||isHLSSrc(De)&&canPlayHLSNatively():De.type==="video/object"}function isHLSSrc({src:De,type:_e}){return isString(De)&&HLS_VIDEO_EXTENSIONS.test(De)||HLS_VIDEO_TYPES.has(_e)}function isDASHSrc({src:De,type:_e}){return isString(De)&&DASH_VIDEO_EXTENSIONS.test(De)||DASH_VIDEO_TYPES.has(_e)}function canGoogleCastSrc(De){return isString(De.src)&&(isAudioSrc(De)||isVideoSrc(De)||isHLSSrc(De))}function isMediaStream(De){return typeof window.MediaStream<"u"&&De instanceof window.MediaStream}var lg;class TimeRange{constructor(_e,Ae){Oi(this,lg,void 0);isArray(_e)?Qn(this,lg,_e):!isUndefined(_e)&&!isUndefined(Ae)?Qn(this,lg,[[_e,Ae]]):Qn(this,lg,[])}get length(){return mi(this,lg).length}start(_e){return mi(this,lg)[_e][0]??1/0}end(_e){return mi(this,lg)[_e][1]??1/0}}lg=new WeakMap;function getTimeRangesStart(De){if(!De.length)return null;let _e=De.start(0);for(let Ae=1;Ae<De.length;Ae++){const ke=De.start(Ae);ke<_e&&(_e=ke)}return _e}function getTimeRangesEnd(De){if(!De.length)return null;let _e=De.end(0);for(let Ae=1;Ae<De.length;Ae++){const ke=De.end(Ae);ke>_e&&(_e=ke)}return _e}function normalizeTimeIntervals(De){if(De.length<=1)return De;De.sort((ke,Le)=>ke[0]-Le[0]);let _e=[],Ae=De[0];for(let ke=1;ke<De.length;ke++){const Le=De[ke];Ae[1]>=Le[0]-1?Ae=[Ae[0],Math.max(Ae[1],Le[1])]:(_e.push(Ae),Ae=Le)}return _e.push(Ae),_e}function updateTimeIntervals(De,_e,Ae){let ke=_e[0],Le=_e[1];return Ae<ke?[Ae,-1]:Ae===ke?_e:ke===-1?(_e[0]=Ae,_e):(Ae>ke&&(_e[1]=Ae,Le===-1&&De.push(_e)),normalizeTimeIntervals(De),_e)}function appendParamsToURL(De,_e){const Ae=new URL(De);for(const ke of Object.keys(_e))Ae.searchParams.set(ke,_e[ke]+"");return Ae.toString()}function preconnect(De,_e="preconnect"){const Ae=document.querySelector(`link[href="${De}"]`);if(!isNull(Ae))return!0;const ke=document.createElement("link");return ke.rel=_e,ke.href=De,ke.crossOrigin="true",document.head.append(ke),!0}const pendingRequests={};function loadScript(De){if(pendingRequests[De])return pendingRequests[De].promise;const _e=deferredPromise(),Ae=document.querySelector(`script[src="${De}"]`);if(!isNull(Ae))return _e.resolve(),_e.promise;pendingRequests[De]=_e;const ke=document.createElement("script");return ke.src=De,ke.onload=()=>{_e.resolve(),delete pendingRequests[De]},ke.onerror=()=>{_e.reject(),delete pendingRequests[De]},setTimeout(()=>document.head.append(ke),0),_e.promise}function getRequestCredentials(De){return De==="use-credentials"?"include":isString(De)?"same-origin":void 0}function getDownloadFile({title:De,src:_e,download:Ae}){const ke=isBoolean(Ae)||Ae===""?_e.src:isString(Ae)?Ae:Ae==null?void 0:Ae.url;return isValidFileDownload({url:ke,src:_e,download:Ae})?{url:ke,name:!isBoolean(Ae)&&!isString(Ae)&&(Ae==null?void 0:Ae.filename)||De.toLowerCase()||"media"}:null}function isValidFileDownload({url:De,src:_e,download:Ae}){return isString(De)&&(Ae&&Ae!==!0||isAudioSrc(_e)||isVideoSrc(_e))}function isCueActive(De,_e){return _e>=De.startTime&&_e<De.endTime}function watchActiveTextTrack(De,_e,Ae){let ke=null,Le=getScope();function Fe(){const Ve=isString(_e)?[_e]:_e,Ie=De.toArray().find(je=>Ve.includes(je.kind)&&je.mode==="showing");if(Ie!==ke){if(!Ie){Ae(null),ke=null;return}Ie.readyState==2?Ae(Ie):(Ae(null),scoped(()=>{const je=listenEvent(Ie,"load",()=>{Ae(Ie),je()},{once:!0})},Le)),ke=Ie}}return Fe(),listenEvent(De,"mode-change",Fe)}function watchCueTextChange(De,_e,Ae){watchActiveTextTrack(De,_e,ke=>{if(!ke){Ae("");return}const Le=()=>{const Fe=ke==null?void 0:ke.activeCues[0];Ae((Fe==null?void 0:Fe.text)||"")};Le(),listenEvent(ke,"cue-change",Le)}
1529)}const CROSS_ORIGIN=Symbol(0),READY_STATE=Symbol(0),UPDATE_ACTIVE_CUES=Symbol(0),CAN_LOAD=Symbol(0),ON_MODE_CHANGE=Symbol(0),NATIVE=Symbol(0),NATIVE_HLS=Symbol(0),TextTrackSymbol={crossOrigin:CROSS_ORIGIN,readyState:READY_STATE,updateActiveCues:UPDATE_ACTIVE_CUES,canLoad:CAN_LOAD,onModeChange:ON_MODE_CHANGE,native:NATIVE,nativeHLS:NATIVE_HLS};var wb,cg,$y,Sb,Fy,Ad,ug,zz,Bz,Nz,Vz,$T,LR,Tb,u3,zy,gb,Eb,d3,Cb,h3,Ab,p3;class TextTrack extends EventsTarget{constructor(Ae){super();Oi(this,$T);Oi(this,Tb);Oi(this,zy);Oi(this,Eb);Oi(this,Cb);Oi(this,Ab);Mr(this,"src");Mr(this,"content");Mr(this,"type");Mr(this,"encoding");Mr(this,"id","");Mr(this,"label","");Mr(this,"language","");Mr(this,"kind");Mr(this,"default",!1);Oi(this,wb,!1);Oi(this,cg,0);Oi(this,$y,"disabled");Oi(this,Sb,{});Oi(this,Fy,[]);Oi(this,Ad,[]);Oi(this,ug,[]);Mr(this,zz,0);Mr(this,Bz);Mr(this,Nz,null);Mr(this,Vz,null);for(const ke of Object.keys(Ae))this[ke]=Ae[ke];this.type||(this.type="vtt"),Ae.content?Bi(this,$T,LR).call(this,Ae):Ae.src||(this[TextTrackSymbol.readyState]=2)}static createId(Ae){return`vds-${Ae.type}-${Ae.kind}-${Ae.src??Ae.label??"?"}`}get metadata(){return mi(this,Sb)}get regions(){return mi(this,Fy)}get cues(){return mi(this,Ad)}get activeCues(){return mi(this,ug)}get readyState(){return this[TextTrackSymbol.readyState]}get mode(){return mi(this,$y)}set mode(Ae){this.setMode(Ae)}addCue(Ae,ke){var Ve;let Le=0,Fe=mi(this,Ad).length;for(Le=0;Le<Fe&&!(Ae.endTime<=mi(this,Ad)[Le].startTime);Le++);Le===Fe?mi(this,Ad).push(Ae):mi(this,Ad).splice(Le,0,Ae),Ae instanceof TextTrackCue||(Ve=this[TextTrackSymbol.native])==null||Ve.track.addCue(Ae),this.dispatchEvent(new DOMEvent("add-cue",{detail:Ae,trigger:ke})),isCueActive(Ae,mi(this,cg))&&this[TextTrackSymbol.updateActiveCues](mi(this,cg),ke)}removeCue(Ae,ke){var Fe;const Le=mi(this,Ad).indexOf(Ae);if(Le>=0){const Ve=mi(this,ug).includes(Ae);mi(this,Ad).splice(Le,1),(Fe=this[TextTrackSymbol.native])==null||Fe.track.removeCue(Ae),this.dispatchEvent(new DOMEvent("remove-cue",{detail:Ae,trigger:ke})),Ve&&this[TextTrackSymbol.updateActiveCues](mi(this,cg),ke)}}setMode(Ae,ke){var Le;mi(this,$y)!==Ae&&(Qn(this,$y,Ae),Ae==="disabled"?(Qn(this,ug,[]),Bi(this,Ab,p3).call(this)):this.readyState===2?this[TextTrackSymbol.updateActiveCues](mi(this,cg),ke):Bi(this,Tb,u3).call(this),this.dispatchEvent(new DOMEvent("mode-change",{detail:this,trigger:ke})),(Le=this[TextTrackSymbol.onModeChange])==null||Le.call(this))}[(zz=TextTrackSymbol.readyState,Bz=TextTrackSymbol.crossOrigin,Nz=TextTrackSymbol.onModeChange,Vz=TextTrackSymbol.native,TextTrackSymbol.updateActiveCues)](Ae,ke){if(Qn(this,cg,Ae),this.mode==="disabled"||!mi(this,Ad).length)return;const Le=[];for(let Ve=0,Ie=mi(this,Ad).length;Ve<Ie;Ve++){const je=mi(this,Ad)[Ve];isCueActive(je,Ae)&&Le.push(je)}let Fe=Le.length!==mi(this,ug).length;if(!Fe){for(let Ve=0;Ve<Le.length;Ve++)if(!mi(this,ug).includes(Le[Ve])){Fe=!0;break}}Qn(this,ug,Le),Fe&&Bi(this,Ab,p3).call(this,ke)}[TextTrackSymbol.canLoad](){Qn(this,wb,!0),mi(this,$y)!=="disabled"&&Bi(this,Tb,u3).call(this)}}wb=new WeakMap,cg=new WeakMap,$y=new WeakMap,Sb=new WeakMap,Fy=new WeakMap,Ad=new WeakMap,ug=new WeakMap,$T=new WeakSet,LR=function(Ae){__vitePreload(()=>import("./prod-ff22be83.js").then(ke=>ke.d),[]).then(({parseText:ke,VTTCue:Le,VTTRegion:Fe})=>{!isString(Ae.content)||Ae.type==="json"?(Bi(this,Cb,h3).call(this,Ae.content,Le,Fe),this.readyState!==3&&Bi(this,zy,gb).call(this)):ke(Ae.content,{type:Ae.type}).then(({cues:Ve,regions:Ie})=>{Qn(this,Ad,Ve),Qn(this,Fy,Ie),Bi(this,zy,gb).call(this)})})},Tb=new WeakSet,u3=async function(){var Ae,ke;if(!(!mi(this,wb)||this[TextTrackSymbol.readyState]>0)){if(this[TextTrackSymbol.readyState]=1,this.dispatchEvent(new DOMEvent("load-start")),!this.src){Bi(this,zy,gb).call(this);return}try{const{parseResponse:Le,VTTCue:Fe,VTTRegion:Ve}=await __vitePreload(()=>import("./prod-ff22be83.js").then(Ke=>Ke.d),[]),Ie=(Ae=this[TextTrackSymbol.crossOrigin])==null?void 0:Ae.call(this),je=fetch(this.src,{headers:this.type==="json"?{"Content-Type":"application/json"}:void 0,credentials:getRequestCredentials(Ie)});
1529if(this.type==="json")Bi(this,Cb,h3).call(this,await(await je).text(),Fe,Ve);else{const{errors:Ke,metadata:$e,regions:qe,cues:ci}=await Le(je,{type:this.type,encoding:this.encoding});if(((ke=Ke[0])==null?void 0:ke.code)===0)throw Ke[0];Qn(this,Sb,$e),Qn(this,Fy,qe),Qn(this,Ad,ci)}Bi(this,zy,gb).call(this)}catch(Le){Bi(this,Eb,d3).call(this,Le)}}},zy=new WeakSet,gb=function(){if(this[TextTrackSymbol.readyState]=2,!this.src||this.type!=="vtt"){const ke=this[TextTrackSymbol.native];if(ke&&!ke.managed)for(const Le of mi(this,Ad))ke.track.addCue(Le)}const Ae=new DOMEvent("load");this[TextTrackSymbol.updateActiveCues](mi(this,cg),Ae),this.dispatchEvent(Ae)},Eb=new WeakSet,d3=function(Ae){this[TextTrackSymbol.readyState]=3,this.dispatchEvent(new DOMEvent("error",{detail:Ae}))},Cb=new WeakSet,h3=function(Ae,ke,Le){try{const{regions:Fe,cues:Ve}=parseJSONCaptionsFile(Ae,ke,Le);Qn(this,Fy,Fe),Qn(this,Ad,Ve)}catch(Fe){Bi(this,Eb,d3).call(this,Fe)}},Ab=new WeakSet,p3=function(Ae){this.dispatchEvent(new DOMEvent("cue-change",{trigger:Ae}))};const captionRE=/captions|subtitles/;function isTrackCaptionKind(De){return captionRE.test(De.kind)}function parseJSONCaptionsFile(De,_e,Ae){const ke=isString(De)?JSON.parse(De):De;let Le=[],Fe=[];return ke.regions&&Ae&&(Le=ke.regions.map(Ve=>Object.assign(new Ae,Ve))),(ke.cues||isArray(ke))&&(Fe=(isArray(ke)?ke:ke.cues).filter(Ve=>isNumber(Ve.startTime)&&isNumber(Ve.endTime)).map(Ve=>Object.assign(new _e(0,0,""),Ve))),{regions:Le,cues:Fe}}const ADD=Symbol(0),REMOVE=Symbol(0),RESET=Symbol(0),SELECT=Symbol(0),READONLY=Symbol(0),SET_READONLY=Symbol(0),ON_RESET=Symbol(0),ON_REMOVE=Symbol(0),ON_USER_SELECT=Symbol(0),ListSymbol={add:ADD,remove:REMOVE,reset:RESET,select:SELECT,readonly:READONLY,setReadonly:SET_READONLY,onReset:ON_RESET,onRemove:ON_REMOVE,onUserSelect:ON_USER_SELECT},SET_AUTO=Symbol(0),ENABLE_AUTO=Symbol(0),QualitySymbol={setAuto:SET_AUTO,enableAuto:ENABLE_AUTO};function coerceToError(De){return De instanceof Error?De:Error(typeof De=="string"?De:JSON.stringify(De))}function assert(De,_e){if(!De)throw Error("Assertion failed.")}function isEventInside(De,_e){const Ae=_e.composedPath()[0];return isDOMNode(Ae)&&De.contains(Ae)}const rafJobs=new Set;{let De=function(){for(const _e of rafJobs)try{_e()}catch{}window.requestAnimationFrame(De)};De()}function scheduleRafJob(De){return rafJobs.add(De),()=>rafJobs.delete(De)}function setAttributeIfEmpty(De,_e,Ae){De.hasAttribute(_e)||De.setAttribute(_e,Ae)}function setARIALabel(De,_e){if(De.hasAttribute("aria-label")||De.hasAttribute("data-no-label"))return;if(!isFunction(_e)){setAttribute(De,"aria-label",_e);return}function Ae(){setAttribute(De,"aria-label",_e())}effect(Ae)}function isElementVisible(De){const _e=getComputedStyle(De);return _e.display!=="none"&&parseInt(_e.opacity)>0}function checkVisibility(De){return!!De&&("checkVisibility"in De?De.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}):isElementVisible(De))}function observeVisibility(De,_e){return scheduleRafJob(()=>_e(checkVisibility(De)))}function isElementParent(De,_e,Ae){for(;_e;){if(_e===De)return!0;if(Ae!=null&&Ae(_e))break;_e=_e.parentElement}return!1}function onPress(De,_e){return new EventsController(De).add("pointerup",Ae=>{Ae.button===0&&!Ae.defaultPrevented&&_e(Ae)}).add("keydown",Ae=>{isKeyboardClick(Ae)&&_e(Ae)})}function isTouchPinchEvent(De){return isTouchEvent(De)&&(De.touches.length>1||De.changedTouches.length>1)}function requestScopedAnimationFrame(De){let _e=getScope(),Ae=window.requestAnimationFrame(()=>{scoped(De,_e),Ae=-1});return()=>void window.cancelAnimationFrame(Ae)}function cloneTemplate(De,_e,Ae){let ke,Le=De,Fe=De.parentElement,Ve=De.content.firstElementChild,Ie=[];!Ve&&De.firstElementChild&&(De.innerHTML=De.firstElementChild.outerHTML,De.firstElementChild.remove(),Ve=De.content.firstElementChild);for(let je=0;je<_e;je++)ke=document.importNode(Ve,!0),Ae==null||Ae(ke,je),Fe.insertBefore(ke,Le.nextSibling),Ie.push(ke),Le=ke;return onDispose(()=>{for(let je=0;je<Ie.length;je++)Ie[je].remove()}),Ie}function createTemplate(De){const _e=document.createElement("template");return _e.innerHTML=De,_e.content}function cloneTemplateContent(De){return De.cloneNode(!0).firstElementChild}function autoPlacement(De,_e,Ae,{offsetVarName:ke,xOffset:Le,yOffset:Fe,...Ve}){if(!De)return;const Ie=Ae.replace(" ","-").replace("-center","");if(setStyle(De,"visibility",_e?null:"hidden"),!_e)return;let je=Ae.includes("top");const Ke=qe=>Ae.includes("left")?`calc(-1 * ${qe})`:qe,$e=qe=>je?`calc(-1 * ${qe})`:qe;return autoUpdate(_e,De,()=>{computePosition(_e,De,{placement:Ie,middleware:[...Ve.middleware??[],flip({fallbackAxisSideDirection:"start",crossAxis:!1}),shift()],...Ve}).then(({x:qe,y:ci,middlewareData:gi})=>{var oi;const Ai=!!((oi=gi.flip)!=null&&oi.index);je=Ae.includes(Ai?"bottom":"top"),De.setAttribute("data-placement",Ai?Ae.startsWith("top")?Ae.replace("top","bottom"):Ae.replace("bottom","top"):Ae),Object.assign(De.style,{top:`calc(${ci+"px"} + ${$e(Fe?Fe+"px":`var(--${ke}-y-offset, 0px)`)})`,left:`calc(${qe+"px"} + ${Ke(Le?Le+"px":`var(--${ke}-x-offset, 0px)`)})`})})})}function hasAnimation(De){return getComputedStyle(De).animationName!=="none"}function createSlot(De){const _e=document.createElement("slot");return _e.name=De,_e}function useTransitionActive(De){const _e=signal(!1);return effect(()=>{const Ae=De();Ae&&new EventsController(Ae).add("transitionstart",()=>_e.set(!0)).add("transitionend",()=>_e.set(!1))}),_e}function useResizeObserver(De,_e){function Ae(){const ke=De();if(!ke)return;_e();const Le=new ResizeObserver(animationFrameThrottle(_e));return Le.observe(ke),()=>Le.disconnect()}effect(Ae)}function useActive(De){const _e=useMouseEnter(De),Ae=useFocusIn(De);let ke=!1;return computed(()=>{const Le=_e();return ke&&!Le?!1:(ke=Le,Le||Ae())})}function useMouseEnter(De){const _e=signal(!1);return effect(()=>{const Ae=De();if(!Ae){_e.set(!1);return}new EventsController(Ae).add("mouseenter",()=>_e.set(!0)).add("mouseleave",()=>_e.set(!1))}),_e}function useFocusIn(De){const _e=signal(!1);return effect(()=>{const Ae=De();if(!Ae){_e.set(!1);return}new EventsController(Ae).add("focusin",()=>_e.set(!0)).add("focusout",()=>_e.set(!1))}),_e}function isHTMLElement(De){return De instanceof HTMLElement}function useColorSchemePreference(){const De=signal("dark"),_e=window.matchMedia("(prefers-color-scheme: light)");function Ae(){De.set(_e.matches?"light":"dark")}return Ae(),listenEvent(_e,"change",Ae),De}function watchColorScheme(De,_e){effect(()=>{const ke=_e();if(ke==="system"){const Le=useColorSchemePreference();effect(()=>Ae(Le()));return}Ae(ke)});function Ae(ke){toggleClass(De,"light",ke==="light"),toggleClass(De,"dark",ke==="dark")}}function ariaBool(De){return De?"true":"false"}function $ariaBool(De){return()=>ariaBool(De())}function prefersReducedMotion(){return typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function round(De,_e=2){return Number(De.toFixed(_e))}function getNumberOfDecimalPlaces(De){var _e;return((_e=String(De).split(".")[1])==null?void 0:_e.length)??0}function clampNumber(De,_e,Ae){return Math.max(De,Math.min(Ae,_e))}let $keyboard=signal(!1);listenEvent(document,"pointerdown",()=>{$keyboard.set(!1)}),listenEvent(document,"keydown",De=>{De.metaKey||De.altKey||De.ctrlKey||$keyboard.set(!0)});var y0,FT,$R,zT,FR,BT,zR,NT,BR;class FocusVisibleController extends ViewController{constructor(){super(...arguments);Oi(this,FT);Oi(this,zT);Oi(this,BT);Oi(this,NT);Oi(this,y0,signal(!1))}onConnect(Ae){effect(()=>{const ke=new EventsController(Ae);if(!$keyboard()){mi(this,y0).set(!1),updateFocusAttr(Ae,!1),ke.add("pointerenter",Bi(this,BT,zR).bind(this)).add("pointerleave",Bi(this,NT,BR).bind(this));return}const Le=document.activeElement===Ae;mi(this,y0).set(Le),updateFocusAttr(Ae,Le),ke.add("focus",Bi(this,FT,$R).bind(this)).add("blur",Bi(this,zT,FR).bind(this))})}focused(){return mi(this,y0).call(this)}}y0=new WeakMap,FT=new WeakSet,$R=function(){mi(this,y0).set(!0),updateFocusAttr(this.el,!0)},zT=new WeakSet,FR=function(){mi(this,y0).set(!1),updateFocusAttr(this.el,!1)},BT=new WeakSet,zR=function(){updateHoverAttr(this.el,!0)},NT=new WeakSet,BR=function(){updateHoverAttr(this.el,!1)};function updateFocusAttr(De,_e){setAttribute(De,"data-focus",_e),setAttribute(De,"data-hocus",_e)}function updateHoverAttr(De,_e){setAttribute(De,"data-hocus",_e),setAttribute(De,"data-hover",_e)}var Hz;
1529class List extends EventsTarget{constructor(){super(...arguments);Mr(this,"items",[]);Mr(this,Hz,!1)}get length(){return this.items.length}get readonly(){return this[ListSymbol.readonly]}indexOf(Ae){return this.items.indexOf(Ae)}getById(Ae){return Ae===""?null:this.items.find(ke=>ke.id===Ae)??null}toArray(){return[...this.items]}[(Hz=ListSymbol.readonly,Symbol.iterator)](){return this.items.values()}[ListSymbol.add](Ae,ke){const Le=this.items.length;""+Le in this||Object.defineProperty(this,Le,{get(){return this.items[Le]}}),!this.items.includes(Ae)&&(this.items.push(Ae),this.dispatchEvent(new DOMEvent("add",{detail:Ae,trigger:ke})))}[ListSymbol.remove](Ae,ke){var Fe;const Le=this.items.indexOf(Ae);Le>=0&&((Fe=this[ListSymbol.onRemove])==null||Fe.call(this,Ae,ke),this.items.splice(Le,1),this.dispatchEvent(new DOMEvent("remove",{detail:Ae,trigger:ke})))}[ListSymbol.reset](Ae){var ke;for(const Le of[...this.items])this[ListSymbol.remove](Le,Ae);this.items=[],this[ListSymbol.setReadonly](!1,Ae),(ke=this[ListSymbol.onReset])==null||ke.call(this)}[ListSymbol.setReadonly](Ae,ke){this[ListSymbol.readonly]!==Ae&&(this[ListSymbol.readonly]=Ae,this.dispatchEvent(new DOMEvent("readonly-change",{detail:Ae,trigger:ke})))}}const CAN_FULLSCREEN=fscreen.fullscreenEnabled;var v0,p_,VT,NR,HT,VR,UT,HR;class FullscreenController extends ViewController{constructor(){super(...arguments);Oi(this,VT);Oi(this,HT);Oi(this,UT);Oi(this,v0,!1);Oi(this,p_,!1)}get active(){return mi(this,p_)}get supported(){return CAN_FULLSCREEN}onConnect(){new EventsController(fscreen).add("fullscreenchange",Bi(this,HT,VR).bind(this)).add("fullscreenerror",Bi(this,UT,HR).bind(this)),onDispose(Bi(this,VT,NR).bind(this))}async enter(){try{return Qn(this,v0,!0),!this.el||isFullscreen(this.el)?void 0:(assertFullscreenAPI(),fscreen.requestFullscreen(this.el))}catch(Ae){throw Qn(this,v0,!1),Ae}}async exit(){if(!(!this.el||!isFullscreen(this.el)))return assertFullscreenAPI(),fscreen.exitFullscreen()}}v0=new WeakMap,p_=new WeakMap,VT=new WeakSet,NR=async function(){CAN_FULLSCREEN&&await this.exit()},HT=new WeakSet,VR=function(Ae){const ke=isFullscreen(this.el);ke!==mi(this,p_)&&(ke||Qn(this,v0,!1),Qn(this,p_,ke),this.dispatch("fullscreen-change",{detail:ke,trigger:Ae}))},UT=new WeakSet,HR=function(Ae){mi(this,v0)&&(this.dispatch("fullscreen-error",{detail:null,trigger:Ae}),Qn(this,v0,!1))};function isFullscreen(De){if(fscreen.fullscreenElement===De)return!0;try{return De.matches(fscreen.fullscreenPseudoClass)}catch{return!1}}function assertFullscreenAPI(){if(!CAN_FULLSCREEN)throw Error("[vidstack] no fullscreen API")}var _0,dg,By,GT,UR,Db,f3,Mb,m3,kb,g3;const jT=class jT extends ViewController{constructor(){super(...arguments);Oi(this,GT);Oi(this,Db);Oi(this,Mb);Oi(this,kb);Oi(this,_0,signal(Bi(this,kb,g3).call(this)));Oi(this,dg,signal(!1));Oi(this,By,void 0)}get type(){return mi(this,_0).call(this)}get locked(){return mi(this,dg).call(this)}get portrait(){return mi(this,_0).call(this).startsWith("portrait")}get landscape(){return mi(this,_0).call(this).startsWith("landscape")}get supported(){return jT.supported}onConnect(){if(this.supported)listenEvent(screen.orientation,"change",Bi(this,Db,f3).bind(this));else{const Ae=window.matchMedia("(orientation: landscape)");Ae.onchange=Bi(this,Db,f3).bind(this),onDispose(()=>Ae.onchange=null)}onDispose(Bi(this,GT,UR).bind(this))}async lock(Ae){peek(mi(this,dg))||mi(this,By)===Ae||(Bi(this,Mb,m3).call(this),await screen.orientation.lock(Ae),mi(this,dg).set(!0),Qn(this,By,Ae))}
1529async unlock(){peek(mi(this,dg))&&(Bi(this,Mb,m3).call(this),Qn(this,By,void 0),await screen.orientation.unlock(),mi(this,dg).set(!1))}};_0=new WeakMap,dg=new WeakMap,By=new WeakMap,GT=new WeakSet,UR=async function(){this.supported&&mi(this,dg).call(this)&&await this.unlock()},Db=new WeakSet,f3=function(Ae){mi(this,_0).set(Bi(this,kb,g3).call(this)),this.dispatch("orientation-change",{detail:{orientation:peek(mi(this,_0)),lock:mi(this,By)},trigger:Ae})},Mb=new WeakSet,m3=function(){if(!this.supported)throw Error("[vidstack] no orientation API")},kb=new WeakSet,g3=function(){return this.supported?window.screen.orientation.type:window.innerWidth>=window.innerHeight?"landscape-primary":"portrait-primary"},Mr(jT,"supported",canOrientScreen());let ScreenOrientationController=jT;function isVideoQualitySrc(De){return!isString(De)&&"width"in De&&"height"in De&&isNumber(De.width)&&isNumber(De.height)}const mediaState=new State({artist:"",artwork:null,audioTrack:null,audioTracks:[],autoPlay:!1,autoPlayError:null,audioGain:null,buffered:new TimeRange,canLoad:!1,canLoadPoster:!1,canFullscreen:!1,canOrientScreen:canOrientScreen(),canPictureInPicture:!1,canPlay:!1,clipStartTime:0,clipEndTime:0,controls:!1,get iOSControl
vendor: 1,785 bytes, line 1529
1529s(){return IS_IPHONE&&this.mediaType==="video"&&(!this.playsInline||!fscreen.fullscreenEnabled&&this.fullscreen)},get nativeControls(){return this.controls||this.iOSControls},controlsVisible:!1,get controlsHidden(){return!this.controlsVisible},crossOrigin:null,ended:!1,error:null,fullscreen:!1,get loop(){return this.providedLoop||this.userPrefersLoop},logLevel:"silent",mediaType:"unknown",muted:!1,paused:!0,played:new TimeRange,playing:!1,playsInline:!1,pictureInPicture:!1,preload:"metadata",playbackRate:1,qualities:[],quality:null,autoQuality:!1,canSetQuality:!0,canSetPlaybackRate:!0,canSetVolume:!1,canSetAudioGain:!1,seekable:new TimeRange,seeking:!1,source:{src:"",type:""},sources:[],started:!1,textTracks:[],textTrack:null,get hasCaptions(){return this.textTracks.filter(isTrackCaptionKind).length>0},volume:1,waiting:!1,realCurrentTime:0,get currentTime(){return this.ended?this.duration:this.clipStartTime>0?Math.max(0,Math.min(this.realCurrentTime-this.clipStartTime,this.duration)):this.realCurrentTime},providedDuration:-1,intrinsicDuration:0,get duration(){return this.seekableWindow},get title(){return this.providedTitle||this.inferredTitle},get poster(){return this.providedPoster||this.inferredPoster},get viewType(){return this.providedViewType!=="unknown"?this.providedViewType:this.inferredViewType},get streamType(){return this.providedStreamType!=="unknown"?this.providedStreamType:this.inferredStreamType},get currentSrc(){return this.source},get bufferedStart(){const De=getTimeRangesStart(this.buffered)??0;return Math.max(De,this.clipStartTime)},get bufferedEnd(){const De=getTimeRangesEnd(this.buffered)??0;return Math.min(this.seekableEnd,Math.max(0,De-this.clipStartTime))},get bufferedWindow(){return Math.max(0,this.bufferedEnd-this.bufferedStart)}
1529,get seekableStart(){if(this.isLiveDVR&&this.liveDVRWindow>0)return Math.max(0,this.seekableEnd-this.liveDVRWindow);const De=getTimeRangesStart(this.seekable)??0;return Math.max(De,this.clipStartTime)},get seekableEnd(){if(this.providedDuration>0)return this.providedDuration;const De=this.liveSyncPosition>0?this.liveSyncPosition:this.canPlay?getTimeRangesEnd(this.seekable)??1/0:0;return this.clipEndTime>0?Math.min(this.clipEndTime,De):De},get seekableWindow(){const De=this.seekableEnd-this.seekableStart;return isNaN(De)?1/0:Math.max(0,De)},canAirPlay:!1,canGoogleCast:!1,remotePlaybackState:"disconnected",remotePlaybackType:"none",remotePlaybackLoader:null,remotePlaybackInfo:null,get isAirPlayConnected(){return this.remotePlaybackType==="airplay"&&this.remotePlaybackState==="connected"},get isGoogleCastConnected(){return this.remotePlaybackType==="google-cast"&&this.remotePlaybackState==="connected"},pointer:"fine",orientation:"landscape",width:0,height:0,mediaWidth:0,mediaHeight:0,lastKeyboardAction:null,userBehindLiveEdge:!1,liveEdgeTolerance:10,minLiveDVRWindow:60,get canSeek(){return/unknown|on-demand|:dvr/.test(this.streamType)&&Number.isFinite(this.duration)&&(!this.isLiveDVR||this.duration>=this.liveDVRWindow)},get live(){return this.streamType.includes("live")||!Number.isFinite(this.duration)},get liveEdgeStart(){return this.live&&Number.isFinite(this.seekableEnd)?Math.max(0,this.seekableEnd-this.liveEdgeTolerance):0},get liveEdge(){return this.live&&(!this.canSeek||!this.userBehindLiveEdge&&this.currentTime>=this.liveEdgeStart)},get liveEdgeWindow(){return this.live&&Number.isFinite(this.seekableEnd)?this.seekableEnd-this.liveEdgeStart:0},get isLiveDVR(){return/:dvr/.test(this.streamType)},get liveDVRWindow(){return Math.max(this.inferredLiveDVRWindow,this.minLiveDVRWindow)},autoPlaying:!1,providedTitle:"",inferredTitle:"",providedLoop:!1,userPrefersLoop:!1,providedPoster:"",inferredPoster:"",inferredViewType:"unknown",providedViewType:"unknown",providedStreamType:"unknown",inferredStreamType:"unknown",liveSyncPosition:null,inferredLiveDVRWindow:0,savedState:null}),RESET_ON_SRC_QUALITY_CHANGE=new Set(["autoPlayError","autoPlaying","buffered","canPlay","error","paused","played","playing","seekable","seeking","waiting"]),RESET_ON_SRC_CHANGE=new Set([...RESET_ON_SRC_QUALITY_CHANGE,"ended","inferredPoster","inferredStreamType","inferredTitle","intrinsicDuration","inferredLiveDVRWindow","liveSyncPosition","realCurrentTime","savedState","started","userBehindLiveEdge"]);function softResetMediaState(De,_e=!1){const Ae=_e?RESET_ON_SRC_QUALITY_CHANGE:RESET_ON_SRC_CHANGE;mediaState.reset(De,ke=>Ae.has(ke)),tick()}function boundTime(De,_e){const Ae=De+_e.clipStartTime(),ke=Math.floor(De)===Math.floor(_e.seekableStart()),Le=Math.floor(Ae)===Math.floor(_e.seekableEnd());return ke?_e.seekableStart():Le?_e.seekableEnd():_e.isLiveDVR()&&_e.liveDVRWindow()>0&&Ae<_e.seekableEnd()-_e.liveDVRWindow()?_e.bufferedStart():Math.min(Math.max(_e.seekableStart()+.1,Ae),_e.seekableEnd()-.1)}var Ny,Up,f_,WT,_l,Fl,rR,Rz;class MediaRemoteControl{constructor(_e=void 0){Oi(this,_l);Oi(this,rR);Oi(this,Ny,null);Oi(this,Up,null);Oi(this,f_,-1);Oi(this,WT,void 0);Qn(this,WT,_e)}setTarget(_e){Qn(this,Ny,_e)}getPlayer(_e){var Ae;return mi(this,Up)?mi(this,Up):((Ae=_e??mi(this,Ny))==null||Ae.dispatchEvent(new DOMEvent("find-media-player",{detail:ke=>void Qn(this,Up,ke),bubbles:!0,composed:!0})),mi(this,Up))}setPlayer(_e){Qn(this,Up,_e)}startLoading(_e){Bi(this,_l,Fl).call(this,"media-start-loading",_e)}startLoadingPoster(_e){Bi(this,_l,Fl).call(this,"media-poster-start-loading",_e)}requestAirPlay(_e){Bi(this,_l,Fl).call(this,"media-airplay-request",_e)}requestGoogleCast(_e){Bi(this,_l,Fl).call(this,"media-google-cast-request",_e)}play(_e){Bi(this,_l,Fl).call(this,"media-play-request",_e)}pause(_e){Bi(this,_l,Fl).call(this,"media-pause-request",_e)}mute(_e){Bi(this,_l,Fl).call(this,"media-mute-request",_e)}unmute(_e){Bi(this,_l,Fl).call(this,"media-unmute-request",_e)}enterFullscreen(_e,Ae){Bi(this,_l,Fl).call(this,"media-enter-fullscreen-request",Ae,_e)}exitFullscreen(_e,Ae){Bi(this,_l,Fl).call(this,"media-exit-fullscreen-request",Ae,_e)}lockScreenOrientation(_e,Ae){Bi(this,_l,Fl).call(this,"media-orientation-lock-request",Ae,_e)}unlockScreenOrientation(_e){Bi(this,_l,Fl).call(this,"media-orientation-unlock-request",_e)}enterPictureInPicture(_e){Bi(this,_l,Fl).call(this,"media-enter-pip-request",_e)}exitPictureInPicture(_e){Bi(this,_l,Fl).call(this,"media-exit-pip-request",_e)}seeking(_e,Ae){Bi(this,_l,Fl).call(this,"media-seeking-request",Ae,_e)}seek(_e,Ae){Bi(this,_l,Fl).call(this,"media-seek-request",Ae,_e)}seekToLiveEdge(_e){Bi(this,_l,Fl).call(this,"media-live-edge-request",_e)}changeDuration(_e,Ae){Bi(this,_l,Fl).call(this,"media-duration-change-request",Ae,_e)}changeClipStart(_e,Ae){Bi(this,_l,Fl).call(this,"media-clip-start-change-request",Ae,_e)}changeClipEnd(_e,Ae){Bi(this,_l,Fl).call(this,"media-clip-end-change-request",Ae,_e)}changeVolume(_e,Ae){Bi(this,_l,Fl).call(this,"media-volume-change-request",Ae,Math.max(0,Math.min(1,_e)))}changeAudioTrack(_e,Ae){Bi(this,_l,Fl).call(this,"media-audio-track-change-request",Ae,_e)}changeQuality(_e,Ae){Bi(this,_l,Fl).call(this,"media-quality-change-request",Ae,_e)}requestAutoQuality(_e){this.changeQuality(-1,_e)}changeTextTrackMode(_e,Ae,ke){Bi(this,_l,Fl).call(this,"media-text-track-change-request",ke,{index:_e,mode:Ae})}changePlaybackRate(_e,Ae){Bi(this,_l,Fl).call(this,"media-rate-change-request",Ae,_e)}changeAudioGain(_e,Ae){Bi(this,_l,Fl).call(this,"media-audio-gain-change-request",Ae,_e)}resumeControls(_e){Bi(this,_l,Fl).call(this,"media-resume-control
1529s-request",_e)}pauseControls(_e){Bi(this,_l,Fl).call(this,"media-pause-controls-request",_e)}togglePaused(_e){const Ae=this.getPlayer(_e==null?void 0:_e.target);Ae&&(Ae.state.paused?this.play(_e):this.pause(_e))}toggleControls(_e){const Ae=this.getPlayer(_e==null?void 0:_e.target);Ae&&(Ae.controls.showing?Ae.controls.hide(0,_e):Ae.controls.show(0,_e))}toggleMuted(_e){const Ae=this.getPlayer(_e==null?void 0:_e.target);Ae&&(Ae.state.muted?this.unmute(_e):this.mute(_e))}toggleFullscreen(_e,Ae){const ke=this.getPlayer(Ae==null?void 0:Ae.target);ke&&(ke.state.fullscreen?this.exitFullscreen(_e,Ae):this.enterFullscreen(_e,Ae))}togglePictureInPicture(_e){const Ae=this.getPlayer(_e==null?void 0:_e.target);Ae&&(Ae.state.pictureInPicture?this.exitPictureInPicture(_e):this.enterPictureInPicture(_e))}showCaptions(_e){const Ae=this.getPlayer(_e==null?void 0:_e.target);if(!Ae)return;let ke=Ae.state.textTracks,Le=mi(this,f_);(!ke[Le]||!isTrackCaptionKind(ke[Le]))&&(Le=-1),Le===-1&&(Le=ke.findIndex(Fe=>isTrackCaptionKind(Fe)&&Fe.default)),Le===-1&&(Le=ke.findIndex(Fe=>isTrackCaptionKind(Fe))),Le>=0&&this.changeTextTrackMode(Le,"showing",_e),Qn(this,f_,-1)}disableCaptions(_e){const Ae=this.getPlayer(_e==null?void 0:_e.target);if(!Ae)return;const ke=Ae.state.textTracks,Le=Ae.state.textTrack;if(Le){const Fe=ke.indexOf(Le);this.changeTextTrackMode(Fe,"disabled",_e),Qn(this,f_,Fe)}}toggleCaptions(_e){const Ae=this.getPlayer(_e==null?void 0:_e.target);Ae&&(Ae.state.textTrack?this.disableCaptions():this.showCaptions())}userPrefersLoopChange(_e,Ae){Bi(this,_l,Fl).call(this,"media-user-loop-change-request",Ae,_e)}}Ny=new WeakMap,Up=new WeakMap,f_=new WeakMap,WT=new WeakMap,_l=new WeakSet,Fl=function(_e,Ae,ke){var Ie,je;const Le=new DOMEvent(_e,{bubbles:!0,composed:!0,cancelable:!0,detail:ke,trigger:Ae});let Fe=(Ae==null?void 0:Ae.target)||null;Fe&&Fe instanceof Component&&(Fe=Fe.el),Fe=!Fe||Fe===document||Fe===window||Fe===document.body||((Ie=mi(this,Up))==null?void 0:Ie.el)&&Fe instanceof Node&&!mi(this,Up).el.contains(Fe)?mi(this,Ny)??((je=this.getPlayer())==null?void 0:je.el):Fe??mi(this,Ny),mi(this,Up)?_e==="media-play-request"&&!mi(this,Up).state.canLoad?Fe==null||Fe.dispatchEvent(Le):mi(this,Up).canPlayQueue.enqueue(_e,()=>Fe==null?void 0:Fe.dispatchEvent(Le)):Fe==null||Fe.dispatchEvent(Le)},rR=new WeakSet,Rz=function(_e){};var au;class LocalMediaStorage{constructor(){Mr(this,"playerId","vds-player");Mr(this,"mediaId",null);Oi(this,au,{volume:null,muted:null,audioGain:null,time:null,lang:null,captions:null,rate:null,quality:null});Mr(this,"saveTimeThrottled",functionThrottle(this.saveTime.bind(this),1e3))}async getVolume(){return mi(this,au).volume}async setVolume(_e){mi(this,au).volume=_e,this.save()}async getMuted(){return mi(this,au).muted}async setMuted(_e){mi(this,au).muted=_e,this.save()}async getTime(){return mi(this,au).time}async setTime(_e,Ae){const ke=_e<0;mi(this,au).time=ke?null:_e,ke||Ae?this.saveTime():this.saveTimeThrottled()}async getLang(){return mi(this,au).lang}async setLang(_e){mi(this,au).lang=_e,this.save()}async getCaptions(){return mi(this,au).captions}async setCaptions(_e){mi(this,au).captions=_e,this.save()}async getPlaybackRate(){return mi(this,au).rate}async setPlaybackRate(_e){mi(this,au).rate=_e,this.save()}async getAudioGain(){return mi(this,au).audioGain}async setAudioGain(_e){mi(this,au).audioGain=_e,this.save()}async getVideoQuality(){return mi(this,au).quality}async setVideoQuality(_e){mi(this,au).quality=_e,this.save()}onChange(_e,Ae,ke="vds-player"){const Le=ke?localStorage.getItem(ke):null,Fe=Ae?localStorage.getItem(Ae):null;this.playerId=ke,this.mediaId=Ae,Qn(this,au,{volume:null,muted:null,audioGain:null,lang:null,captions:null,rate:null,quality:null,...Le?JSON.parse(Le):{},time:Fe?+Fe:null})}save(){if(!this.playerId)return;const _e=JSON.stringify({...mi(this,au),time:void 0});localStorage.setItem(this.playerId,_e)}saveTime(){if(!this.mediaId)return;const _e=(mi(this,au).time??0).toString();localStorage.setItem(this.mediaId,_e)}}au=new WeakMap;const SELECTED=Symbol(0);class SelectList extends List{get selected(){return this.items.find(_e=>_e.selected)??null}get selectedIndex(){return this.items.findIndex(_e=>_e.selected)}[ListSymbol.onRemove](_e,Ae){this[ListSymbol.select](_e,!1,Ae)}[ListSymbol.add](_e,Ae){_e[SELECTED]=!1,Object.defineProperty(_e,"selected",{get(){return this[SELECTED]},set:ke=>{var Le;
1529this.readonly||((Le=this[ListSymbol.onUserSelect])==null||Le.call(this),this[ListSymbol.select](_e,ke))}}),super[ListSymbol.add](_e,Ae)}[ListSymbol.select](_e,Ae,ke){if(Ae===(_e==null?void 0:_e[SELECTED]))return;const Le=this.selected;_e&&(_e[SELECTED]=Ae),(Ae?Le!==_e:Le===_e)&&(Le&&(Le[SELECTED]=!1),this.dispatchEvent(new DOMEvent("change",{detail:{prev:Le,current:this.selected},trigger:ke})))}}class AudioTrackList extends SelectList{}var Pb,hg,Ib,b0,qT,GR,XT,jR,Rb,y3,Ob,v3;class NativeTextRenderer{constructor(){Oi(this,qT);Oi(this,XT);Oi(this,Rb);Oi(this,Ob);Mr(this,"priority",0);Oi(this,Pb,!0);Oi(this,hg,null);Oi(this,Ib,null);Oi(this,b0,new Set)}canRender(_e,Ae){return!!Ae}attach(_e){Qn(this,hg,_e),_e&&(_e.textTracks.onchange=Bi(this,Ob,v3).bind(this))}addTrack(_e){mi(this,b0).add(_e),Bi(this,qT,GR).call(this,_e)}removeTrack(_e){var Ae,ke;(ke=(Ae=_e[TextTrackSymbol.native])==null?void 0:Ae.remove)==null||ke.call(Ae),_e[TextTrackSymbol.native]=null,mi(this,b0).delete(_e)}changeTrack(_e){const Ae=_e==null?void 0:_e[TextTrackSymbol.native];Ae&&Ae.track.mode!=="showing"&&(Ae.track.mode="showing"),Qn(this,Ib,_e)}setDisplay(_e){Qn(this,Pb,_e),Bi(this,Ob,v3).call(this)}detach(){mi(this,hg)&&(mi(this,hg).textTracks.onchange=null);for(const _e of mi(this,b0))this.removeTrack(_e);mi(this,b0).clear(),Qn(this,hg,null),Qn(this,Ib,null)}}Pb=new WeakMap,hg=new WeakMap,Ib=new WeakMap,b0=new WeakMap,qT=new WeakSet,GR=function(_e){var ke;if(!mi(this,hg))return;const Ae=_e[ke=TextTrackSymbol.native]??(_e[ke]=Bi(this,XT,jR).call(this,_e));isHTMLElement(Ae)&&(mi(this,hg).append(Ae),Ae.track.mode=Ae.default?"showing":"disabled")},XT=new WeakSet,jR=function(_e){const Ae=document.createElement("track"),ke=_e.default||_e.mode==="showing",Le=_e.src&&_e.type==="vtt";return Ae.id=_e.id,Ae.src=Le?_e.src:"",Ae.label=_e.label,Ae.kind=_e.kind,Ae.default=ke,_e.language&&(Ae.srclang=_e.language),ke&&!Le&&Bi(this,Rb,y3).call(this,_e,Ae.track),Ae},Rb=new WeakSet,y3=function(_e,Ae){var ke;if(!(_e.src&&_e.type==="vtt"||(ke=Ae.cues)!=null&&ke.length))for(const Le of _e.cues)Ae.addCue(Le)},Ob=new WeakSet,v3=function(_e){for(const Ae of mi(this,b0)){const ke=Ae[TextTrackSymbol.native];if(!ke)continue;if(!mi(this,Pb)){ke.track.mode=ke.managed?"hidden":"disabled";continue}const Le=ke.track.mode==="showing";Le&&Bi(this,Rb,y3).call(this,Ae,ke.track),Ae.setMode(Le?"showing":"disabled",_e)}};var Vy,m_,Hy,Lb,$b,Gp,Mm,ZT,WR,Fb,_3,KT,qR,JT,XR,QT,ZR,x0,o_,eE,YR;class TextRenderers{constructor(_e){Oi(this,ZT);Oi(this,Fb);Oi(this,KT);Oi(this,JT);Oi(this,QT);Oi(this,x0);Oi(this,eE);Oi(this,Vy,null);Oi(this,m_,void 0);Oi(this,Hy,[]);Oi(this,Lb,void 0);Oi(this,$b,!1);Oi(this,Gp,null);Oi(this,Mm,null);Qn(this,Lb,_e);const Ae=_e.textTracks;Qn(this,m_,Ae),effect(Bi(this,ZT,WR).bind(this)),onDispose(Bi(this,eE,YR).bind(this)),new EventsController(Ae).add("add",Bi(this,JT,XR).bind(this)).add("remove",Bi(this,QT,ZR).bind(this)).add("mode-change",Bi(this,x0,o_).bind(this))}add(_e){mi(this,Hy).push(_e),untrack(Bi(this,x0,o_).bind(this))}remove(_e){_e.detach(),mi(this,Hy).splice(mi(this,Hy).indexOf(_e),1),untrack(Bi(this,x0,o_).bind(this))}attachVideo(_e){requestAnimationFrame(()=>{if(Qn(this,Vy,_e),_e){Qn(this,Gp,new NativeTextRenderer),mi(this,Gp).attach(_e);for(const Ae of mi(this,m_))Bi(this,Fb,_3).call(this,Ae)}Bi(this,x0,o_).call(this)})}}Vy=new WeakMap,m_=new WeakMap,Hy=new WeakMap,Lb=new WeakMap,$b=new WeakMap,Gp=new WeakMap,Mm=new WeakMap,ZT=new WeakSet,WR=function(){const{nativeControls:_e}=mi(this,Lb).$state;Qn(this,$b,_e()),Bi(this,x0,o_).call(this)},Fb=new WeakSet,_3=function(_e){var Ae;isTrackCaptionKind(_e)&&((Ae=mi(this,Gp))==null||Ae.addTrack(_e))},KT=new WeakSet,qR=function(_e){var Ae;isTrackCaptionKind(_e)&&((Ae=mi(this,Gp))==null||Ae.removeTrack(_e))},JT=new WeakSet,XR=function(_e){Bi(this,Fb,_3).call(this,_e.detail)},QT=new WeakSet,ZR=function(_e){Bi(this,KT,qR).call(this,_e.detail)},x0=new WeakSet,o_=function(){var ke,Le,Fe,Ve,Ie,je,Ke;const _e=mi(this,m_).selected;if(mi(this,Vy)&&(mi(this,$b)||_e!=null&&_e[TextTrackSymbol.nativeHLS])){(ke=mi(this,Mm))==null||ke.changeTrack(null),(Le=mi(this,Gp))==null||Le.setDisplay(!0),(Fe=mi(this,Gp))==null||Fe.changeTrack(_e);return}if((Ve=mi(this,Gp))==null||Ve.setDisplay(!1),(Ie=mi(this,Gp))==null||Ie.changeTrack(null),!_e){(je=mi(this,Mm))==null||je.changeTrack(null);return}const Ae=mi(this,Hy).sort(($e,qe)=>$e.priority-qe.priority).find($e=>$e.canRender(_e,mi(this,Vy)));mi(this,Mm)!==Ae&&((Ke=mi(this,Mm))==null||Ke.detach(),Ae==null||Ae.attach(mi(this,Vy)),Qn(this,Mm,Ae??null)),Ae==null||Ae.changeTrack(_e)},eE=new WeakSet,YR=function(){var _e,Ae;(_e=mi(this,Gp))==null||_e.detach(),Qn(this,Gp,null),(Ae=mi(this,Mm))==null||Ae.detach(),Qn(this,Mm,null)};var Uy,km,Pm,Im,Uz,zb,g_,Bb,tE,KR,Nb,b3,Vb,x3;class TextTrackList extends List{constructor(){super();Oi(this,tE);Oi(this,Nb);Oi(this,Vb);Oi(this,Uy,!1);Oi(this,km,{});Oi(this,Pm,null);Oi(this,Im,null);Mr(this,Uz);Oi(this,zb,functionDebounce(async()=>{var Le;if(!mi(this,Uy))return;!mi(this,Im)&&mi(this,Pm)&&Qn(this,Im,await mi(this,Pm).getLang());const Ae=await((Le=mi(this,Pm))==null?void 0:Le.getCaptions()),ke=[["captions","subtitles"],"chapters","descriptions","metadata"];for(const Fe of ke){const Ve=this.getByKind(Fe);if(Ve.find(qe=>qe.mode==="showing"))continue;const Ie=mi(this,Im)?Ve.find(qe=>qe.language===mi(this,Im)):null,je=isArray(Fe)?mi(this,km)[Fe.find(qe=>mi(this,km)[qe])||""]:mi(this,km)[Fe],Ke=Ie??je,$e=Ke&&isTrackCaptionKind(Ke);Ke&&(!$e||Ae!==!1)&&(Ke.mode="showing",$e&&Bi(this,Nb,b3).call(this,Ke))}},300));Oi(this,g_,null);Oi(this,Bb,Bi(this,tE,KR).bind(this))}get selected(){return this.items.find(ke=>ke.mode==="showing"&&isTrackCaptionKind(ke))??null}get selectedIndex(){const Ae=this.selected;return Ae?this.indexOf(Ae):-1}
1529get preferredLang(){return mi(this,Im)}set preferredLang(Ae){Qn(this,Im,Ae),Bi(this,Vb,x3).call(this,Ae)}add(Ae,ke){const Le=Ae instanceof TextTrack,Fe=Le?Ae:new TextTrack(Ae),Ve=Ae.kind==="captions"||Ae.kind==="subtitles"?"captions":Ae.kind;return mi(this,km)[Ve]&&Ae.default&&delete Ae.default,Fe.addEventListener("mode-change",mi(this,Bb)),this[ListSymbol.add](Fe,ke),Fe[TextTrackSymbol.crossOrigin]=this[TextTrackSymbol.crossOrigin],mi(this,Uy)&&Fe[TextTrackSymbol.canLoad](),Ae.default&&(mi(this,km)[Ve]=Fe),mi(this,zb).call(this),this}remove(Ae,ke){if(Qn(this,g_,Ae),!!this.items.includes(Ae))return Ae===mi(this,km)[Ae.kind]&&delete mi(this,km)[Ae.kind],Ae.mode="disabled",Ae[TextTrackSymbol.onModeChange]=null,Ae.removeEventListener("mode-change",mi(this,Bb)),this[ListSymbol.remove](Ae,ke),Qn(this,g_,null),this}clear(Ae){for(const ke of[...this.items])this.remove(ke,Ae);return this}getByKind(Ae){const ke=Array.isArray(Ae)?Ae:[Ae];return this.items.filter(Le=>ke.includes(Le.kind))}[(Uz=TextTrackSymbol.crossOrigin,TextTrackSymbol.canLoad)](){if(!mi(this,Uy)){for(const Ae of this.items)Ae[TextTrackSymbol.canLoad]();Qn(this,Uy,!0),mi(this,zb).call(this)}}setStorage(Ae){Qn(this,Pm,Ae)}}Uy=new WeakMap,km=new WeakMap,Pm=new WeakMap,Im=new WeakMap,zb=new WeakMap,g_=new WeakMap,Bb=new WeakMap,tE=new WeakSet,KR=function(Ae){const ke=Ae.detail;if(mi(this,Pm)&&isTrackCaptionKind(ke)&&ke!==mi(this,g_)&&Bi(this,Nb,b3).call(this,ke),ke.mode==="showing"){const Le=isTrackCaptionKind(ke)?["captions","subtitles"]:[ke.kind];for(const Fe of this.items)Fe.mode==="showing"&&Fe!=ke&&Le.includes(Fe.kind)&&(Fe.mode="disabled")}this.dispatchEvent(new DOMEvent("mode-change",{detail:Ae.detail,trigger:Ae}))},Nb=new WeakSet,b3=function(Ae){var ke,Le;Ae.mode!=="disabled"&&Bi(this,Vb,x3).call(this,Ae.language),(Le=(ke=mi(this,Pm))==null?void 0:ke.setCaptions)==null||Le.call(ke,Ae.mode==="showing")},Vb=new WeakSet,x3=function(Ae){var ke,Le;(Le=(ke=mi(this,Pm))==null?void 0:ke.setLang)==null||Le.call(ke,Qn(this,Im,Ae))};var Gy,Gz;class VideoQualityList extends SelectList{constructor(){super(...arguments);Oi(this,Gy,!1);Mr(this,"switch","current");Mr(this,Gz)}get auto(){return mi(this,Gy)||this.readonly}[(Gz=QualitySymbol.enableAuto,ListSymbol.onUserSelect)](){this[QualitySymbol.setAuto](!1)}[ListSymbol.onReset](Ae){this[QualitySymbol.enableAuto]=void 0,this[QualitySymbol.setAuto](!1,Ae)}autoSelect(Ae){var ke;this.readonly||mi(this,Gy)||!this[QualitySymbol.enableAuto]||((ke=this[QualitySymbol.enableAuto])==null||ke.call(this,Ae),this[QualitySymbol.setAuto](!0,Ae))}getBySrc(Ae){return this.items.find(ke=>ke.src===Ae)}[QualitySymbol.setAuto](Ae,ke){mi(this,Gy)!==Ae&&(Qn(this,Gy,Ae),this.dispatchEvent(new DOMEvent("auto-change",{detail:Ae,trigger:ke})))}}Gy=new WeakMap;function isHTMLAudioElement(De){return De instanceof HTMLAudioElement}function isHTMLVideoElement(De){return De instanceof HTMLVideoElement}function isHTMLMediaElement(De){return isHTMLAudioElement(De)||isHTMLVideoElement(De)}class MediaPlayerController extends ViewController{}const MEDIA_KEY_SHORTCUTS={togglePaused:"k Space",toggleMuted:"m",toggleFullscreen:"f",togglePictureInPicture:"i",toggleCaptions:"c",seekBackward:"j J ArrowLeft",seekForward:"l L ArrowRight",volumeUp:"ArrowUp",volumeDown:"ArrowDown",speedUp:">",slowDown:"<"},MODIFIER_KEYS=new Set(["Shift","Alt","Meta","Ctrl"]),BUTTON_SELECTORS='button, [role="button"]',IGNORE_SELECTORS='input, textarea, select, [contenteditable], [role^="menuitem"], [role="timer"]';var od,iE,JR,nE,QR,rE,eO,sE,tO,y_,hT,jy,oE,iO,pg,Hb,w3,aE,nO;class MediaKeyboardController extends MediaPlayerController{constructor(Ae){super();Oi(this,iE);Oi(this,nE);Oi(this,rE);Oi(this,sE);Oi(this,y_);Oi(this,oE);Oi(this,Hb);Oi(this,aE);Oi(this,od,void 0);Oi(this,jy,void 0);Oi(this,pg,null);Qn(this,od,Ae)}onConnect(){effect(Bi(this,iE,JR).bind(this))}}od=new WeakMap,iE=new WeakSet,JR=function(){const{keyDisabled:Ae,keyTarget:ke}=this.$props;if(Ae())return;const Le=ke()==="player"?this.el:document,Fe=signal(!1);Le===this.el?new EventsController(this.el).add("focusin",()=>Fe.set(!0)).add("focusout",Ve=>{this.el.contains(Ve.target)||Fe.set(!1)}):(peek(Fe)||Fe.set(document.querySelector("[data-media-player]")===this.el),listenEvent(document,"focusin",Ve=>{const Ie=Ve.composedPath().find(je=>je instanceof Element&&je.localName==="media-player");Ie!==void 0&&Fe.set(this.el===Ie)})),effect(()=>{Fe()&&new EventsController(Le).add("keyup",Bi(this,nE,QR).bind(this)).add("keydown",Bi(this,rE,eO).bind(this)).add("keydown",Bi(this,sE,tO).bind(this),{capture:!0})})},nE=new WeakSet,QR=function(Ae){var Ve,Ie;const ke=document.activeElement;if(!Ae.key||!this.$state.canSeek()||ke!=null&&ke.matches(IGNORE_SELECTORS))return;let{method:Le,value:Fe}=Bi(this,y_,hT).call(this,Ae);if(!isString(Fe)&&!isArray(Fe)){(Ve=Fe==null?void 0:Fe.onKeyUp)==null||Ve.call(Fe,{event:Ae,player:mi(this,od).player,remote:mi(this,od).remote}),(Ie=Fe==null?void 0:Fe.callback)==null||Ie.call(Fe,Ae,mi(this,od).remote);return}if(Le!=null&&Le.startsWith("seek")&&(Ae.preventDefault(),Ae.stopPropagation(),mi(this,pg)?(Bi(this,Hb,w3).call(this,Ae,Le==="seekForward"),Qn(this,pg,null)):(mi(this,od).remote.seek(mi(this,jy),Ae),Qn(this,jy,void 0))),Le!=null&&Le.startsWith("volume")){const je=this.el.querySelector("[data-media-volume-slider]");je==null||je.dispatchEvent(new KeyboardEvent("keyup",{key:Le==="volumeUp"?"Up":"Down",shiftKey:Ae.shiftKey,trigger:Ae}))}},rE=new WeakSet,eO=function(Ae){var Ie,je,Ke,$e;if(!Ae.key||MODIFIER_KEYS.has(Ae.key))return;const ke=document.activeElement;if(ke!=null&&ke.matches(IGNORE_SELECTORS)||isKeyboardClick(Ae)&&(ke!=null&&ke.matches(BUTTON_SELECTORS)))return;let{method:Le,value:Fe}=Bi(this,y_,hT).call(this,Ae),Ve=!Ae.metaKey&&/^[0-9]$/.test(Ae.key);if(!isString(Fe)&&!isArray(Fe)&&!Ve){(Ie=Fe==null?void 0:Fe.onKeyDown)==null||Ie.call(Fe,{event:Ae,player:mi(this,od).player,remote:mi(this,od).remote}),(je=Fe==null?void 0:Fe.callback)==null||je.call(Fe,Ae,mi(this,od).remote);return}if(!Le&&Ve&&!modifierKeyPressed(Ae)){Ae.preventDefault(),Ae.stopPropagation(),mi(this,od).remote.seek(this.$state.duration()/10*Number(Ae.key),Ae);return}if(Le){switch(Ae.preventDefault(),Ae.stopPropagation(),Le){case"seekForward":case"seekBackward":
1529Bi(this,aE,nO).call(this,Ae,Le,Le==="seekForward");break;case"volumeUp":case"volumeDown":const qe=this.el.querySelector("[data-media-volume-slider]");if(qe)qe.dispatchEvent(new KeyboardEvent("keydown",{key:Le==="volumeUp"?"Up":"Down",shiftKey:Ae.shiftKey,trigger:Ae}));else{const gi=Ae.shiftKey?.1:.05;mi(this,od).remote.changeVolume(this.$state.volume()+(Le==="volumeUp"?+gi:-gi),Ae)}break;case"toggleFullscreen":mi(this,od).remote.toggleFullscreen("prefer-media",Ae);break;case"speedUp":case"slowDown":const ci=this.$state.playbackRate();mi(this,od).remote.changePlaybackRate(Math.max(.25,Math.min(2,ci+(Le==="speedUp"?.25:-.25))),Ae);break;default:($e=(Ke=mi(this,od).remote)[Le])==null||$e.call(Ke,Ae)}this.$state.lastKeyboardAction.set({action:Le,event:Ae})}},sE=new WeakSet,tO=function(Ae){isHTMLMediaElement(Ae.target)&&Bi(this,y_,hT).call(this,Ae).method&&Ae.preventDefault()},y_=new WeakSet,hT=function(Ae){const ke={...this.$props.keyShortcuts(),...mi(this,od).ariaKeys},Le=Object.keys(ke).find(Fe=>{var Ke;const Ve=ke[Fe],Ie=isArray(Ve)?Ve.join(" "):isString(Ve)?Ve:Ve==null?void 0:Ve.keys,je=(Ke=isArray(Ie)?Ie:Ie==null?void 0:Ie.split(" "))==null?void 0:Ke.map($e=>replaceSymbolKeys($e).replace(/Control/g,"Ctrl").split("+"));return je==null?void 0:je.some($e=>{const qe=new Set($e.filter(ci=>MODIFIER_KEYS.has(ci)));for(const ci of MODIFIER_KEYS){const gi=ci.toLowerCase()+"Key";if(!qe.has(ci)&&Ae[gi])return!1}return $e.every(ci=>MODIFIER_KEYS.has(ci)?Ae[ci.toLowerCase()+"Key"]:Ae.key===ci.replace("Space"," "))})});return{method:Le,value:Le?ke[Le]:null}},jy=new WeakMap,oE=new WeakSet,iO=function(Ae,ke){const Le=Ae.shiftKey?10:5;return Qn(this,jy,Math.max(0,Math.min((mi(this,jy)??this.$state.currentTime())+(ke==="seekForward"?+Le:-Le),this.$state.duration())))},pg=new WeakMap,Hb=new WeakSet,w3=function(Ae,ke){var Le;(Le=mi(this,pg))==null||Le.dispatchEvent(new KeyboardEvent(Ae.type,{key:ke?"Right":"Left",shiftKey:Ae.shiftKey,trigger:Ae}))},aE=new WeakSet,nO=function(Ae,ke,Le){this.$state.canSeek()&&(mi(this,pg)||Qn(this,pg,this.el.querySelector("[data-media-time-slider]")),mi(this,pg)?Bi(this,Hb,w3).call(this,Ae,Le):mi(this,od).remote.seeking(Bi(this,oE,iO).call(this,Ae,ke),Ae))};const SYMBOL_KEY_MAP=["!","@","#","$","%","^","&","*","(",")"];function replaceSymbolKeys(De){return De.replace(/Shift\+(\d)/g,(_e,Ae)=>SYMBOL_KEY_MAP[Ae-1])}function modifierKeyPressed(De){for(const _e of MODIFIER_KEYS)if(De[_e.toLowerCase()+"Key"])return!0;return!1}var v_,fg,Ub,__,w0,b_,lE,rO,cE,sO,uE,oO,dE,aO,hE,lO,pE,cO,fE,uO,mE,dO,x_,pT,Gb,S3,Wy,yb,jb,T3;class MediaControls extends MediaPlayerController{constructor(){super(...arguments);Oi(this,lE);Oi(this,cE);Oi(this,uE);Oi(this,dE);Oi(this,hE);Oi(this,pE);Oi(this,fE);Oi(this,mE);Oi(this,x_);Oi(this,Gb);Oi(this,Wy);Oi(this,jb);Oi(this,v_,-2);Oi(this,fg,!1);Oi(this,Ub,signal(!1));Oi(this,__,signal(!1));Oi(this,w0,null);Oi(this,b_,signal(!0));Mr(this,"defaultDelay",2e3)}get canIdle(){return mi(this,b_).call(this)}set canIdle(Ae){mi(this,b_).set(Ae)}get hideOnMouseLeave(){const{hideControlsOnMouseLeave:Ae}=this.$props;return mi(this,Ub).call(this)||Ae()}set hideOnMouseLeave(Ae){mi(this,Ub).set(Ae)}get showing(){return this.$state.controlsVisible()}show(Ae=0,ke){Bi(this,x_,pT).call(this),mi(this,fg)||Bi(this,Wy,yb).call(this,!0,Ae,ke)}hide(Ae=this.defaultDelay,ke){Bi(this,x_,pT).call(this),mi(this,fg)||Bi(this,Wy,yb).call(this,!1,Ae,ke)}pause(Ae){Qn(this,fg,!0),Bi(this,x_,pT).call(this),Bi(this,Wy,yb).call(this,!0,0,Ae)}resume(Ae){Qn(this,fg,!1),!this.$state.paused()&&Bi(this,Wy,yb).call(this,!1,this.defaultDelay,Ae)}onConnect(){effect(Bi(this,lE,rO).bind(this))}}v_=new WeakMap,fg=new WeakMap,Ub=new WeakMap,__=new WeakMap,w0=new WeakMap,b_=new WeakMap,lE=new WeakSet,rO=function(){const{viewType:Ae}=this.$state;if(!this.el||!mi(this,b_).call(this))return;if(Ae()==="audio"){this.show();return}effect(Bi(this,cE,sO).bind(this)),effect(Bi(this,uE,oO).bind(this));const ke=Bi(this,dE,aO).bind(this),Le=Bi(this,hE,lO).bind(this),Fe=Bi(this,pE,cO).bind(this);new EventsController(this.el).add("can-play",Ve=>this.show(0,Ve)).add("play",ke).add("pause",Le).add("end",Fe).add("auto-play-fail",Le)},cE=new WeakSet,sO=function(){if(!this.el)return;const{started:Ae,pointer:ke,paused:Le}=this.$state;if(!Ae()||ke()!=="fine")return;const Fe=new EventsController(this.el),Ve=this.hideOnMouseLeave;(!Ve||!mi(this,__).call(this))&&effect(()=>{Le()||Fe.add("pointermove",Bi(this,Gb,S3).bind(this))}),Ve&&Fe.add("mouseenter",Bi(this,fE,uO).bind(this)).add("mouseleave",Bi(this,mE,dO).bind(this))},uE=new WeakSet,oO=function(){const{paused:Ae,started:ke,autoPlayError:Le}=this.$state;if(Ae()||Le()&&!ke())return;const Fe=Bi(this,Gb,S3).bind(this);effect(()=>{if(!this.el)return;const Ve=this.$state.pointer(),Ie=Ve==="coarse",je=new EventsController(this.el),Ke=[Ie?"touchend":"pointerup","keydown"];for(const $e of Ke)je.add($e,Fe,{passive:!1})})},dE=new WeakSet,aO=function(Ae){Ae.triggers.hasType("ended")||(this.show(0,Ae),this.hide(void 0,Ae))},hE=new WeakSet,lO=function(Ae){this.show(0,Ae)},pE=new WeakSet,cO=function(Ae){const{loop:ke}=this.$state;ke()&&this.hide(0,Ae)},fE=new WeakSet,uO=function(Ae){mi(this,__).set(!1),this.show(0,Ae),this.hide(void 0,Ae)},mE=new WeakSet,dO=function(Ae){mi(this,__).set(!0),this.hide(0,Ae)},x_=new WeakSet,pT=function(){window.clearTimeout(mi(this,v_)),Qn(this,v_,-1)},Gb=new WeakSet,S3=function(Ae){var ke;Ae.MEDIA_GESTURE||mi(this,fg)||isTouchPinchEvent(Ae)||(isKeyboardEvent(Ae)&&(Ae.key==="Escape"?((ke=this.el)==null||ke.focus(),Qn(this,w0,null)):mi(this,w0)&&(Ae.preventDefault(),requestAnimationFrame(()=>{var Le;
1529(Le=mi(this,w0))==null||Le.focus(),Qn(this,w0,null)}))),this.show(0,Ae),this.hide(this.defaultDelay,Ae))},Wy=new WeakSet,yb=function(Ae,ke,Le){if(ke===0){Bi(this,jb,T3).call(this,Ae,Le);return}Qn(this,v_,window.setTimeout(()=>{this.scope&&Bi(this,jb,T3).call(this,Ae&&!mi(this,fg),Le)},ke))},jb=new WeakSet,T3=function(Ae,ke){var Le;this.$state.controlsVisible()!==Ae&&(this.$state.controlsVisible.set(Ae),!Ae&&document.activeElement&&((Le=this.el)!=null&&Le.contains(document.activeElement))&&(Qn(this,w0,document.activeElement),requestAnimationFrame(()=>{var Fe;(Fe=this.el)==null||Fe.focus({preventScroll:!0})})),this.dispatch("controls-change",{detail:Ae,trigger:ke}))};class AudioProviderLoader{constructor(){Mr(this,"name","audio");Mr(this,"target")}canPlay(_e){return isAudioSrc(_e)?!isString(_e.src)||_e.type==="?"||canPlayAudioType(this.target,_e.type):!1}mediaType(){return"audio"}async load(_e){return new(await __vitePreload(()=>import("./vidstack-audio-ee8666c4.js"),["assets/vidstack-audio-ee8666c4.js","assets/vidstack-Bq6c3Bam-58091531.js","assets/vidstack-DqAw8m9J-00796d37.js"])).AudioProvider(this.target,_e)}}class VideoProviderLoader{constructor(){Mr(this,"name","video");Mr(this,"target")}canPlay(_e){return isVideoSrc(_e)?!isString(_e.src)||_e.type==="?"||canPlayVideoType(this.target,_e.type):!1}mediaType(){return"video"}async load(_e){return new(await __vitePreload(()=>import("./vidstack-video-e8eb5b95.js"),["assets/vidstack-video-e8eb5b95.js","assets/vidstack-Bq6c3Bam-58091531.js","assets/vidstack-DqAw8m9J-00796d37.js"])).VideoProvider(this.target,_e)}}const gE=class gE extends VideoProviderLoader{constructor(){super(...arguments);Mr(this,"name","hls")}canPlay(Ae){return gE.supported&&isHLSSrc(Ae)}async load(Ae){return new(await __vitePreload(()=>import("./vidstack-hls-f86b5969.js"),["assets/vidstack-hls-f86b5969.js","assets/vidstack-video-e8eb5b95.js","assets/vidstack-Bq6c3Bam-58091531.js","assets/vidstack-DqAw8m9J-00796d37.js"])).HLSProvider(this.target,Ae)}};Mr(gE,"supported",isHLSSupported());let HLSProviderLoader=gE;const yE=class yE extends VideoProviderLoader{constructor(){super(...arguments);Mr(this,"name","dash")}canPlay(Ae){return yE.supported&&isDASHSrc(Ae)}async load(Ae){return new(await __vitePreload(()=>import("./vidstack-dash-0cbfb91d.js"),["assets/vidstack-dash-0cbfb91d.js","assets/vidstack-video-e8eb5b95.js","assets/vidstack-Bq6c3Bam-58091531.js","assets/vidstack-DqAw8m9J-00796d37.js"])).DASHProvider(this.target,Ae)}};Mr(yE,"supported",isDASHSupported());let DASHProviderLoader=yE;class VimeoProviderLoader{constructor(){Mr(this,"name","vimeo");Mr(this,"target")}preconnect(){const _e=["https://i.vimeocdn.com","https://f.vimeocdn.com","https://fresnel.vimeocdn.com"];for(const Ae of _e)preconnect(Ae)}canPlay(_e){return isString(_e.src)&&_e.type==="video/vimeo"}mediaType(){return"video"}async load(_e){return new(await __vitePreload(()=>import("./vidstack-vimeo-9f88d26f.js"),["assets/vidstack-vimeo-9f88d26f.js","assets/vidstack-DqAw8m9J-00796d37.js","assets/vidstack-DDXt6fpN-edfadbeb.js","assets/vidstack-krOAtKMi-78913eb8.js"])).VimeoProvider(this.target,_e)}async loadPoster(_e,Ae,ke){const{resolveVimeoVideoId:Le,getVimeoVideoInfo:Fe}=await __vitePreload(()=>import("./vidstack-krOAtKMi-78913eb8.js"),[]);if(!isString(_e.src))return null;const{videoId:Ve,hash:Ie}=Le(_e.src);return Ve?Fe(Ve,ke,Ie).then(je=>je?je.poster:null):null}}class YouTubeProviderLoader{constructor(){Mr(this,"name","youtube");Mr(this,"target")}preconnect(){const _e=["https://www.google.com","https://i.ytimg.com","https://googleads.g.doubleclick.net","https://static.doubleclick.net"];for(const Ae of _e)preconnect(Ae)}canPlay(_e){return isString(_e.src)&&_e.type==="video/youtube"}mediaType(){return"video"}async load(_e){return new(await __vitePreload(()=>import("./vidstack-youtube-a3cbc331.js"),["assets/vidstack-youtube-a3cbc331.js","assets/vidstack-DDXt6fpN-edfadbeb.js","assets/vidstack-Dm1xEU9Q-42672365.js"])).YouTubeProvider(this.target,_e)}async loadPoster(_e,Ae,ke){const{findYouTubePoster:Le,resolveYouTubeVideoId:Fe}=await __vitePreload(()=>import("./vidstack-Dm1xEU9Q-42672365.js"),[]),Ve=isString(_e.src)&&Fe(_e.src);return Ve?Le(Ve,ke):null}}const MEDIA_ATTRIBUTES=Symbol(0),mediaAttributes=["autoPlay","canAirPlay","canFullscreen","canGoogleCast","canLoad","canLoadPoster","canPictureInPicture","canPlay","canSeek","ended","fullscreen","isAirPlayConnected","isGoogleCastConnected","live","liveEdge","loop","mediaType","muted","paused","pictureInPicture","playing","playsInl
1529ine","remotePlaybackState","remotePlaybackType","seeking","started","streamType","viewType","waiting"],mediaPlayerProps={artist:"",artwork:null,autoplay:!1,autoPlay:!1,clipStartTime:0,clipEndTime:0,controls:!1,currentTime:0,crossorigin:null,crossOrigin:null,duration:-1,fullscreenOrientation:"landscape",googleCast:{},load:"visible",posterLoad:"visible",logLevel:"silent",loop:!1,muted:!1,paused:!0,playsinline:!1,playsInline:!1,playbackRate:1,poster:"",preload:"metadata",preferNativeHLS:!1,src:"",title:"",controlsDelay:2e3,hideControlsOnMouseLeave:!1,viewType:"unknown",streamType:"unknown",volume:1,liveEdgeTolerance:10,minLiveDVRWindow:60,keyDisabled:!1,keyTarget:"player",keyShortcuts:MEDIA_KEY_SHORTCUTS,storage:null};var Wb,qy;class MediaLoadController extends MediaPlayerController{constructor(Ae,ke){super();Oi(this,Wb,void 0);Oi(this,qy,void 0);Qn(this,Wb,Ae),Qn(this,qy,ke)}async onAttach(Ae){const ke=this.$props[mi(this,Wb)]();if(ke==="eager")requestAnimationFrame(mi(this,qy));else if(ke==="idle")waitIdlePeriod(mi(this,qy));else if(ke==="visible"){let Le,Fe=new IntersectionObserver(Ve=>{this.scope&&Ve[0].isIntersecting&&(Le==null||Le(),Le=void 0,mi(this,qy).call(this))});Fe.observe(Ae),Le=onDispose(()=>Fe.disconnect())}}}Wb=new WeakMap,qy=new WeakMap;var qb,Zf,vE,hO;class MediaPlayerDelegate{constructor(_e,Ae){Oi(this,vE);Oi(this,qb,void 0);Oi(this,Zf,void 0);Qn(this,qb,_e),Qn(this,Zf,Ae)}notify(_e,...Ae){mi(this,qb).call(this,new DOMEvent(_e,{detail:Ae==null?void 0:Ae[0],trigger:Ae==null?void 0:Ae[1]}))}async ready(_e,Ae){return untrack(async()=>{var cn,Tn,Sn,Cn,tr,xr,er;mi(this,Zf);const{autoPlay:ke,canPlay:Le,started:Fe,duration:Ve,seekable:Ie,buffered:je,remotePlaybackInfo:Ke,playsInline:$e,savedState:qe,source:ci}=mi(this,Zf).$state;if(Le())return;const gi={duration:(_e==null?void 0:_e.duration)??Ve(),seekable:(_e==null?void 0:_e.seekable)??Ie(),buffered:(_e==null?void 0:_e.buffered)??je(),provider:mi(this,Zf).$provider()};this.notify("can-play",gi,Ae),tick();let Ai=mi(this,Zf).$provider(),{storage:oi,qualities:ii}=mi(this,Zf),{muted:hi,volume:Ei,clipStartTime:Li,playbackRate:Di}=mi(this,Zf).$props;await((cn=oi==null?void 0:oi.onLoad)==null?void 0:cn.call(oi,ci()));const zi=(Tn=qe())==null?void 0:Tn.currentTime,an=(Sn=qe())==null?void 0:Sn.paused,Je=await(oi==null?void 0:oi.getTime()),fi=zi??Je??Li(),Gi=an===!1||an!==!0&&!Fe()&&ke();if(Ai){Ai.setVolume(await(oi==null?void 0:oi.getVolume())??Ei()),Ai.setMuted(hi()||!!await(oi==null?void 0:oi.getMuted()));const Hn=await(oi==null?void 0:oi.getAudioGain())??1;Hn>1&&((tr=(Cn=Ai.audioGain)==null?void 0:Cn.setGain)==null||tr.call(Cn,Hn)),(xr=Ai.setPlaybackRate)==null||xr.call(Ai,await(oi==null?void 0:oi.getPlaybackRate())??Di()),(er=Ai.setPlaysInline)==null||er.call(Ai,$e()),fi>0&&Ai.setCurrentTime(fi)}const fn=await(oi==null?void 0:oi.getVideoQuality());if(fn&&ii.length){let Hn=null,Er=1/0;for(const os of ii){const wi=Math.abs(fn.width-os.width)+Math.abs(fn.height-os.height)+(fn.bitrate?Math.abs(fn.bitrate-(os.bitrate??0)):0);wi<Er&&(Hn=os,Er=wi)}Hn&&(Hn.selected=!0)}Le()&&Gi?await Bi(this,vE,hO).call(this,Ae):Je&&Je>0&&this.notify("started",void 0,Ae),Ke.set(null)})}}qb=new WeakMap,Zf=new WeakMap,vE=new WeakSet,hO=async function(_e){const{player:Ae,$state:{autoPlaying:ke,muted:Le}}=mi(this,Zf);ke.set(!0);const Fe=new DOMEvent("auto-play-attempt",{trigger:_e});try{await Ae.play(Fe)}catch{}};var S0;class Queue{constructor(){Oi(this,S0,new Map)}enqueue(_e,Ae){mi(this,S0).set(_e,Ae)}serve(_e){const Ae=this.peek(_e);return mi(this,S0).delete(_e),Ae}peek(_e){return mi(this,S0).get(_e)}delete(_e){mi(this,S0).delete(_e)}clear(){mi(this,S0).clear()}}S0=new WeakMap;var T0,w_,Yf,Xb,E3,Zb,C3;class RequestQueue{constructor(){Oi(this,Xb);Oi(this,Zb);Oi(this,T0,!1);Oi(this,w_,deferredPromise());Oi(this,Yf,new Map)}get size(){return mi(this,Yf).size}get isServing(){return mi(this,T0)}async waitForFlush(){mi(this,T0)||await mi(this,w_).promise}enqueue(_e,Ae){if(mi(this,T0)){Ae();return}mi(this,Yf).delete(_e),mi(this,Yf).set(_e,Ae)}serve(_e){var Ae;(Ae=mi(this,Yf).get(_e))==null||Ae(),mi(this,Yf).delete(_e)}start(){Bi(this,Xb,E3).call(this),Qn(this,T0,!0),mi(this,Yf).size>0&&Bi(this,Xb,E3).call(this)}stop(){Qn(this,T0,!1)}
1529reset(){this.stop(),mi(this,Yf).clear(),Bi(this,Zb,C3).call(this)}}T0=new WeakMap,w_=new WeakMap,Yf=new WeakMap,Xb=new WeakSet,E3=function(){for(const _e of mi(this,Yf).keys())this.serve(_e);Bi(this,Zb,C3).call(this)},Zb=new WeakSet,C3=function(){mi(this,w_).resolve(),Qn(this,w_,deferredPromise())};var mg,va,gg,Xy,yg,gc,E0,_E,pO,bE,fO,xE,mO,Yb,A3,S_,Kb,D3,Jb,M3,wE,gO,SE,yO,TE,vO,EE,_O,CE,bO,AE,xO,Zy,DE,wO,Qb,k3,ex,P3,sR,Oz;class MediaRequestManager extends MediaPlayerController{constructor(Ae,ke,Le){super();Oi(this,_E);Oi(this,bE);Oi(this,xE);Oi(this,Yb);Oi(this,Kb);Oi(this,Jb);Oi(this,wE);Oi(this,SE);Oi(this,TE);Oi(this,EE);Oi(this,CE);Oi(this,AE);Oi(this,DE);Oi(this,Qb);Oi(this,ex);Oi(this,sR);Oi(this,mg,void 0);Oi(this,va,void 0);Oi(this,gg,void 0);Mr(this,"controls");Oi(this,Xy,void 0);Oi(this,yg,void 0);Oi(this,gc,void 0);Oi(this,E0,new RequestQueue);Oi(this,S_,!1);Oi(this,Zy,void 0);Qn(this,mg,Ae),Qn(this,va,ke),Qn(this,gg,Le),Qn(this,gc,Le.$provider),this.controls=new MediaControls,Qn(this,Xy,new FullscreenController),Qn(this,yg,new ScreenOrientationController)}onAttach(){this.listen("fullscreen-change",Bi(this,DE,wO).bind(this))}onConnect(Ae){const ke=Object.getOwnPropertyNames(Object.getPrototypeOf(this)),Le=new EventsController(Ae),Fe=Bi(this,xE,mO).bind(this);for(const Ve of ke)Ve.startsWith("media-")&&Le.add(Ve,Fe);Bi(this,_E,pO).call(this),effect(Bi(this,bE,fO).bind(this)),effect(Bi(this,wE,gO).bind(this)),effect(Bi(this,SE,yO).bind(this)),effect(Bi(this,TE,vO).bind(this)),effect(Bi(this,EE,_O).bind(this)),effect(Bi(this,CE,bO).bind(this)),effect(Bi(this,AE,xO).bind(this))}onDestroy(){try{const Ae=this.createEvent("destroy"),{pictureInPicture:ke,fullscreen:Le}=this.$state;Le()&&this.exitFullscreen("prefer-media",Ae),ke()&&this.exitPictureInPicture(Ae)}catch{}mi(this,E0).reset()}async play(Ae){const{canPlay:ke,paused:Le,autoPlaying:Fe}=this.$state;if(Bi(this,Yb,A3).call(this,Ae)||!peek(Le))return;Ae&&mi(this,va).queue.enqueue("media-play-request",Ae);const Ve=peek(Fe);try{const Ie=peek(mi(this,gc));return throwIfNotReadyForPlayback(Ie,peek(ke)),throwIfAutoplayingWithReducedMotion(Ve),await Ie.play()}catch(Ie){const je=this.createEvent("play-fail",{detail:coerceToError(Ie),trigger:Ae});throw je.autoPlay=Ve,mi(this,mg).handle(je),Ie}}async pause(Ae){const{canPlay:ke,paused:Le}=this.$state;if(!peek(Le)){Ae&&mi(this,va).queue.enqueue("media-pause-request",Ae);try{const Fe=peek(mi(this,gc));return throwIfNotReadyForPlayback(Fe,peek(ke)),await Fe.pause()}catch(Fe){throw mi(this,va).queue.delete("media-pause-request"),Fe}}}setAudioGain(Ae,ke){const{audioGain:Le,canSetAudioGain:Fe}=this.$state;if(Le()===Ae)return;const Ve=mi(this,gc).call(this);if(!(Ve!=null&&Ve.audioGain)||!Fe())throw Error("[vidstack] audio gain api not available");ke&&mi(this,va).queue.enqueue("media-audio-gain-change-request",ke),Ve.audioGain.setGain(Ae)}seekToLiveEdge(Ae){const{canPlay:ke,live:Le,liveEdge:Fe,canSeek:Ve,liveSyncPosition:Ie,seekableEnd:je,userBehindLiveEdge:Ke}=this.$state;if(Ke.set(!1),peek(()=>!Le()||Fe()||!Ve()))return;const $e=peek(mi(this,gc));throwIfNotReadyForPlayback($e,peek(ke)),Ae&&mi(this,va).queue.enqueue("media-seek-request",Ae);const qe=je()-2;$e.setCurrentTime(Math.min(qe,Ie()??qe))}async enterFullscreen(Ae="prefer-media",ke){const Le=Bi(this,Kb,D3).call(this,Ae);if(throwIfFullscreenNotSupported(Ae,Le),!Le.active)return peek(this.$state.pictureInPicture)&&(Qn(this,S_,!0),await this.exitPictureInPicture(ke)),ke&&mi(this,va).queue.enqueue("media-enter-fullscreen-request",ke),Le.enter()}async exitFullscreen(Ae="prefer-media",ke){const Le=Bi(this,Kb,D3).call(this,Ae);if(throwIfFullscreenNotSupported(Ae,Le),!!Le.active){ke&&mi(this,va).queue.enqueue("media-exit-fullscreen-request",ke);try{const Fe=await Le.exit();return mi(this,S_)&&peek(this.$state.canPictureInPicture)&&await this.enterPictureInPicture(),Fe}finally{Qn(this,S_,!1)}}}async enterPictureInPicture(Ae){if(Bi(this,Jb,M3).call(this),!this.$state.pictureInPicture())return Ae&&mi(this,va).queue.enqueue("media-enter-pip-request",Ae),await mi(this,gc).call(this).pictureInPicture.enter()}async exitPictureInPicture(Ae){if(Bi(this,Jb,M3).call(this),!!this.$state.pictureInPicture())return Ae&&mi(this,va).queue.enqueue("media-exit-pip-request",Ae),await mi(this,gc).call(this).pictureInPicture.exit()}async"media-airplay-request"(Ae){try{await this.requestAirPlay(Ae)}catch{}}async requestAirPlay(Ae){var ke;try{const Le=(ke=mi(this,gc).call(this))==null?void 0:ke.airPlay;if(!(Le!=null&&Le.supported))throw Error("No AirPlay adapter.");return Ae&&mi(this,va).queue.enqueue("media-airplay-request",Ae),await Le.prompt()}catch(Le){throw mi(this,va).queue.delete("media-airplay-request"),Le}}async"media-google-cast-request"(Ae){try{await this.requestGoogleCast(Ae)}catch{}}async requestGoogleCast(Ae){try{const{canGoogleCast:ke}=this.$state;if(!peek(ke)){const Fe=Error("Cast not available.");throw Fe.code="CAST_NOT_AVAILABLE",Fe}
1529if(preconnect("https://www.gstatic.com"),!mi(this,Zy)){const Fe=await __vitePreload(()=>import("./vidstack-D2pY00kU-a981deb0.js").then(Ve=>Ve.v),[]);Qn(this,Zy,new Fe.GoogleCastLoader)}await mi(this,Zy).prompt(mi(this,gg)),Ae&&mi(this,va).queue.enqueue("media-google-cast-request",Ae);const Le=peek(this.$state.remotePlaybackState)!=="disconnected";Le&&this.$state.savedState.set({paused:peek(this.$state.paused),currentTime:peek(this.$state.currentTime)}),this.$state.remotePlaybackLoader.set(Le?mi(this,Zy):null)}catch(ke){throw mi(this,va).queue.delete("media-google-cast-request"),ke}}"media-clip-start-change-request"(Ae){const{clipStartTime:ke}=this.$state;ke.set(Ae.detail)}"media-clip-end-change-request"(Ae){const{clipEndTime:ke}=this.$state;ke.set(Ae.detail),this.dispatch("duration-change",{detail:Ae.detail,trigger:Ae})}"media-duration-change-request"(Ae){const{providedDuration:ke,clipEndTime:Le}=this.$state;ke.set(Ae.detail),Le()<=0&&this.dispatch("duration-change",{detail:Ae.detail,trigger:Ae})}"media-audio-track-change-request"(Ae){const{logger:ke,audioTracks:Le}=mi(this,gg);if(Le.readonly)return;const Fe=Ae.detail,Ve=Le[Fe];if(Ve){const Ie=Ae.type;mi(this,va).queue.enqueue(Ie,Ae),Ve.selected=!0}}async"media-enter-fullscreen-request"(Ae){try{await this.enterFullscreen(Ae.detail,Ae)}catch(ke){Bi(this,Qb,k3).call(this,ke,Ae)}}async"media-exit-fullscreen-request"(Ae){try{await this.exitFullscreen(Ae.detail,Ae)}catch(ke){Bi(this,Qb,k3).call(this,ke,Ae)}}async"media-orientation-lock-request"(Ae){const ke=Ae.type;try{mi(this,va).queue.enqueue(ke,Ae),await mi(this,yg).lock(Ae.detail)}catch{mi(this,va).queue.delete(ke)}}async"media-orientation-unlock-request"(Ae){const ke=Ae.type;try{mi(this,va).queue.enqueue(ke,Ae),await mi(this,yg).unlock()}catch{mi(this,va).queue.delete(ke)}}async"media-enter-pip-request"(Ae){try{await this.enterPictureInPicture(Ae)}catch(ke){Bi(this,ex,P3).call(this,ke,Ae)}}async"media-exit-pip-request"(Ae){try{await this.exitPictureInPicture(Ae)}catch(ke){Bi(this,ex,P3).call(this,ke,Ae)}}"media-live-edge-request"(Ae){const{live:ke,liveEdge:Le,canSeek:Fe}=this.$state;if(!(!ke()||Le()||!Fe())){mi(this,va).queue.enqueue("media-seek-request",Ae);try{this.seekToLiveEdge()}catch{mi(this,va).queue.delete("media-seek-request")}}}async"media-loop-request"(Ae){try{mi(this,va).looping=!0,mi(this,va).replaying=!0,await this.play(Ae)}catch{mi(this,va).looping=!1}}"media-user-loop-change-request"(Ae){this.$state.userPrefersLoop.set(Ae.detail)}async"media-pause-request"(Ae){if(!this.$state.paused())try{await this.pause(Ae)}catch{}}async"media-play-request"(Ae){if(this.$state.paused())try{await this.play(Ae)}catch{}}"media-rate-change-request"(Ae){const{playbackRate:ke,canSetPlaybackRate:Le}=this.$state;if(ke()===Ae.detail||!Le())return;const Fe=mi(this,gc).call(this);Fe!=null&&Fe.setPlaybackRate&&(mi(this,va).queue.enqueue("media-rate-change-request",Ae),Fe.setPlaybackRate(Ae.detail))}"media-audio-gain-change-request"(Ae){try{this.setAudioGain(Ae.detail,Ae)}catch{}}"media-quality-change-request"(Ae){var Ie,je;const{qualities:ke,storage:Le,logger:Fe}=mi(this,gg);if(ke.readonly)return;mi(this,va).queue.enqueue("media-quality-change-request",Ae);const Ve=Ae.detail;if(Ve<0)ke.autoSelect(Ae),Ae.isOriginTrusted&&((Ie=Le==null?void 0:Le.setVideoQuality)==null||Ie.call(Le,null));else{const Ke=ke[Ve];
1529Ke&&(Ke.selected=!0,Ae.isOriginTrusted&&((je=Le==null?void 0:Le.setVideoQuality)==null||je.call(Le,{id:Ke.id,width:Ke.width,height:Ke.height,bitrate:Ke.bitrate})))}}"media-pause-controls-request"(Ae){const ke=Ae.type;mi(this,va).queue.enqueue(ke,Ae),this.controls.pause(Ae)}"media-resume-controls-request"(Ae){const ke=Ae.type;mi(this,va).queue.enqueue(ke,Ae),this.controls.resume(Ae)}"media-seek-request"(Ae){const{canSeek:ke,ended:Le,live:Fe,seekableEnd:Ve,userBehindLiveEdge:Ie}=this.$state,je=Ae.detail;Le()&&(mi(this,va).replaying=!0);const Ke=Ae.type;mi(this,va).seeking=!1,mi(this,va).queue.delete(Ke);const $e=boundTime(je,this.$state);!Number.isFinite($e)||!ke()||(mi(this,va).queue.enqueue(Ke,Ae),mi(this,gc).call(this).setCurrentTime($e),Fe()&&Ae.isOriginTrusted&&Math.abs(Ve()-$e)>=2&&Ie.set(!0))}"media-seeking-request"(Ae){const ke=Ae.type;mi(this,va).queue.enqueue(ke,Ae),this.$state.seeking.set(!0),mi(this,va).seeking=!0}"media-start-loading"(Ae){if(this.$state.canLoad())return;const ke=Ae.type;mi(this,va).queue.enqueue(ke,Ae),mi(this,mg).handle(this.createEvent("can-load"))}"media-poster-start-loading"(Ae){if(this.$state.canLoadPoster())return;const ke=Ae.type;mi(this,va).queue.enqueue(ke,Ae),mi(this,mg).handle(this.createEvent("can-load-poster"))}"media-text-track-change-request"(Ae){const{index:ke,mode:Le}=Ae.detail,Fe=mi(this,gg).textTracks[ke];if(Fe){const Ve=Ae.type;mi(this,va).queue.enqueue(Ve,Ae),Fe.setMode(Le,Ae)}}"media-mute-request"(Ae){if(this.$state.muted())return;const ke=Ae.type;mi(this,va).queue.enqueue(ke,Ae),mi(this,gc).call(this).setMuted(!0)}"media-unmute-request"(Ae){const{muted:ke,volume:Le}=this.$state;if(!ke())return;const Fe=Ae.type;mi(this,va).queue.enqueue(Fe,Ae),mi(this,gg).$provider().setMuted(!1),Le()===0&&(mi(this,va).queue.enqueue(Fe,Ae),mi(this,gc).call(this).setVolume(.25))}"media-volume-change-request"(Ae){const{muted:ke,volume:Le}=this.$state,Fe=Ae.detail;if(Le()===Fe)return;const Ve=Ae.type;mi(this,va).queue.enqueue(Ve,Ae),mi(this,gc).call(this).setVolume(Fe),Fe>0&&ke()&&(mi(this,va).queue.enqueue(Ve,Ae),mi(this,gc).call(this).setMuted(!1))}}mg=new WeakMap,va=new WeakMap,gg=new WeakMap,Xy=new WeakMap,yg=new WeakMap,gc=new WeakMap,E0=new WeakMap,_E=new WeakSet,pO=function(){const{load:Ae}=this.$props,{canLoad:ke}=this.$state;if(Ae()!=="play"||ke())return;const Le=this.listen("media-play-request",Fe=>{Bi(this,Yb,A3).call(this,Fe),Le()})},bE=new WeakSet,fO=function(){const Ae=mi(this,gc).call(this),ke=this.$state.canPlay();return Ae&&ke&&mi(this,E0).start(),()=>{mi(this,E0).stop()}},xE=new WeakSet,mO=function(Ae){Ae.stopPropagation(),!Ae.defaultPrevented&&this[Ae.type]&&(peek(mi(this,gc))?this[Ae.type](Ae):mi(this,E0).enqueue(Ae.type,()=>{peek(mi(this,gc))&&this[Ae.type](Ae)}))},Yb=new WeakSet,A3=function(Ae){const{load:ke}=this.$props,{canLoad:Le}=this.$state;if(ke()==="play"&&!Le()){const Fe=this.createEvent("media-start-loading",{trigger:Ae});return this.dispatchEvent(Fe),mi(this,E0).enqueue("media-play-request",async()=>{try{await this.play(Fe)}catch{}}),!0}return!1},S_=new WeakMap,Kb=new WeakSet,D3=function(Ae){const ke=peek(mi(this,gc));return Ae==="prefer-media"&&mi(this,Xy).supported||Ae==="media"?mi(this,Xy):ke==null?void 0:ke.fullscreen},Jb=new WeakSet,M3=function(){if(!this.$state.canPictureInPicture())throw Error("[vidstack] no pip support")},wE=new WeakSet,gO=function(){this.controls.defaultDelay=this.$props.controlsDelay()},SE=new WeakSet,yO=function(){var Le,Fe;const{canSetAudioGain:Ae}=this.$state,ke=!!((Fe=(Le=mi(this,gc).call(this))==null?void 0:Le.audioGain)!=null&&Fe.supported);Ae.set(ke)},TE=new WeakSet,vO=function(){var Le,Fe;const{canAirPlay:Ae}=this.$state,ke=!!((Fe=(Le=mi(this,gc).call(this))==null?void 0:Le.airPlay)!=null&&Fe.supported);Ae.set(ke)},EE=new WeakSet,_O=function(){const{canGoogleCast:Ae,source:ke}=this.$state,Le=IS_CHROME&&!IS_IOS&&canGoogleCastSrc(ke());Ae.set(Le)},CE=new WeakSet,bO=function(){var Le,Fe;const{canFullscreen:Ae}=this.$state,ke=mi(this,Xy).supported||!!((Fe=(Le=mi(this,gc).call(this))==null?void 0:Le.fullscreen)!=null&&Fe.supported);Ae.set(ke)},AE=new WeakSet,xO=function(){var Le,Fe;const{canPictureInPicture:Ae}=this.$state,ke=!!((Fe=(Le=mi(this,gc).call(this))==null?void 0:Le.pictureInPicture)!=null&&Fe.supported);Ae.set(ke)},Zy=new WeakMap,DE=new WeakSet,wO=async function(Ae){const ke=peek(this.$props.fullscreenOrientation),Le=Ae.detail;if(!(isUndefined(ke)||ke==="none"||!mi(this,yg).supported))if(Le){if(mi(this,yg).locked)return;this.dispatch("media-orientation-lock-request",{detail:ke,trigger:Ae})}else mi(this,yg).locked&&this.dispatch("media-orientation-unlock-request",{trigger:Ae})},Qb=new WeakSet,k3=function(Ae,ke){mi(this,mg).handle(this.createEvent("fullscreen-error",{detail:coerceToError(Ae)}))},ex=new WeakSet,P3=function(Ae,ke){mi(this,mg).handle(this.createEvent("picture-in-picture-error",{detail:coerceToError(Ae)}))},sR=new WeakSet,Oz=function(Ae,ke,Le){};function throwIfNotReadyForPlayback(De,_e){if(!(De&&_e))throw Error("[vidstack] media not ready")}function throwIfFullscreenNotSupported(De,_e){if(!(_e!=null&&_e.supported))throw Error("[vidstack] no fullscreen support")}function throwIfAutoplayingWithReducedMotion(De){if(!(!prefersReducedMotion()||!De))throw Error("[vidstack] autoplay blocked")}class MediaRequestContext{constructor(){Mr(this,"seeking",!1);Mr(this,"looping",!1);Mr(this,"replaying",!1);Mr(this,"queue",new Queue)}}const TRACKED_EVENT=new Set(["auto-play","auto-play-fail","can-load","sources-change","source-change","load-start","abort","error","loaded-metadata","loaded-data","can-play","play","play-fail","pause","playing","seeking","seeked","waiting"]);var Ch,al,Gl,Yy,T_,Ky,Jy,vg,C0,ME,SO,kE,TO,Rm,f0,yc,Uc,PE,EO,IE,CO,RE,AO,E_,fT,tx,I3,ix,R3,OE,DO,nx,O3,LE,MO,$E,kO,C_,rx,L3,A_,mT,FE,PO,zE,IO,BE,RO,sx,$3,ox,F3,ax,z3,NE,OO,lx,B3,VE,LO,D_,HE,$O,cx,N3;class MediaStateManager extends MediaPlayerController{constructor(Ae,ke){super();Oi(this,ME);Oi(this,kE);Oi(this,Rm);Oi(this,yc);Oi(this,PE);Oi(this,IE);Oi(this,RE);Oi(this,E_);Oi(this,tx);Oi(this,ix);Oi(this,OE);Oi(this,nx);Oi(this,LE);Oi(this,$E);Oi(this,rx);Oi(this,A_);Oi(this,FE);Oi(this,zE);Oi(this,BE);Oi(this,sx);Oi(this,ox);Oi(this,ax);Oi(this,NE);Oi(this,lx);Oi(this,VE);Oi(this,HE);Oi(this,cx);Oi(this,Ch,void 0);Oi(this,al,void 0);Oi(this,Gl,new Map);Oi(this,Yy,!1);Oi(this,T_,[]);Oi(this,Ky,[-1,-1]);Oi(this,Jy,!1);Oi(this,vg,void 0);Oi(this,C0,!1);Oi(this,C_,null);Mr(this,"seeking",functionThrottle(Ae=>{const{seeking:ke,realCurrentTime:Le,paused:Fe}=this.$state;ke.set(!0),Le.set(Ae.detail),Bi(this,yc,Uc).call(this,"media-seeking-request",Ae),Fe()&&(Qn(this,vg,Ae),mi(this,D_).call(this)),Qn(this,Ky,[-1,-1])},150,{leading:!0}));Oi(this,D_,functionDebounce(()=>{if(!mi(this,vg))return;Qn(this,Jy,!0);const{waiting:Ae,playing:ke}=this.$state;Ae.set(!0),ke.set(!1);const Le=this.createEvent("waiting",{trigger:mi(this,vg)});mi(this,Gl).set("waiting",Le),this.dispatch(Le),Qn(this,vg,void 0),Qn(this,Jy,!1)},300));Qn(this,Ch,Ae),Qn(this,al,ke)}onAttach(Ae){Ae.setAttribute("aria-busy","true"),new EventsController(this).add("fullscreen-change",this["fullscreen-change"].bind(this)).add("fullscreen-error",this["fullscreen-error"].bind(this)).add("orientation-change",this["orientation-change"].bind(this))}onConnect(Ae){effect(Bi(this,zE,IO).bind(this)),Bi(this,PE,EO).call(this),Bi(this,IE,CO).call(this),Bi(this,RE,AO).call(this),Bi(this,ME,SO).call(this),onDispose(Bi(this,kE,TO).bind(this))}onDestroy(){const{audioTracks:Ae,qualities:ke,textTracks:Le}=mi(this,al);Ae[ListSymbol.reset](),ke[ListSymbol.reset](),Le[ListSymbol.reset](),Bi(this,A_,mT).call(this)}handle(Ae){if(!this.scope)return;const ke=Ae.type;untrack(()=>{var Le;return(Le=this[Ae.type])==null?void 0:Le.call(this,Ae)}),TRACKED_EVENT.has(ke)&&mi(this,Gl).set(ke,Ae),this.dispatch(Ae)}"provider-change"(Ae){var Fe,Ve;const ke=mi(this,al).$provider(),Le=Ae.detail;(ke==null?void 0:ke.type)!==(Le==null?void 0:Le.type)&&((Fe=ke==null?void 0:ke.destroy)==null||Fe.call(ke),(Ve=ke==null?void 0:ke.scope)==null||Ve.dis
1529pose(),mi(this,al).$provider.set(Ae.detail),ke&&Ae.detail===null&&Bi(this,sx,$3).call(this,Ae))}"provider-loader-change"(Ae){}"auto-play"(Ae){this.$state.autoPlayError.set(null)}"auto-play-fail"(Ae){this.$state.autoPlayError.set(Ae.detail),Bi(this,Rm,f0).call(this)}"can-load"(Ae){this.$state.canLoad.set(!0),mi(this,Gl).set("can-load",Ae),mi(this,al).textTracks[TextTrackSymbol.canLoad](),Bi(this,yc,Uc).call(this,"media-start-loading",Ae)}"can-load-poster"(Ae){this.$state.canLoadPoster.set(!0),mi(this,Gl).set("can-load-poster",Ae),Bi(this,yc,Uc).call(this,"media-poster-start-loading",Ae)}"media-type-change"(Ae){const ke=mi(this,Gl).get("source-change");ke&&Ae.triggers.add(ke);const Le=this.$state.viewType();this.$state.mediaType.set(Ae.detail);const Fe=this.$state.providedViewType(),Ve=Fe==="unknown"?Ae.detail:Fe;Le!==Ve&&setTimeout(()=>{requestAnimationFrame(()=>{this.scope&&(this.$state.inferredViewType.set(Ae.detail),this.dispatch("view-type-change",{detail:Ve,trigger:Ae}))})},0)}"stream-type-change"(Ae){const ke=mi(this,Gl).get("source-change");ke&&Ae.triggers.add(ke);const{streamType:Le,inferredStreamType:Fe}=this.$state;Fe.set(Ae.detail),Ae.detail=Le()}"rate-change"(Ae){var Fe;const{storage:ke}=mi(this,al),{canPlay:Le}=this.$state;this.$state.playbackRate.set(Ae.detail),Bi(this,yc,Uc).call(this,"media-rate-change-request",Ae),Le()&&((Fe=ke==null?void 0:ke.setPlaybackRate)==null||Fe.call(ke,Ae.detail))}"remote-playback-change"(Ae){const{remotePlaybackState:ke,remotePlaybackType:Le}=this.$state,{type:Fe,state:Ve}=Ae.detail,Ie=Ve==="connected";Le.set(Fe),ke.set(Ve);const je=Fe==="airplay"?"media-airplay-request":"media-google-cast-request";if(Ie)Bi(this,yc,Uc).call(this,je,Ae);else{const Ke=mi(this,Ch).queue.peek(je);Ke&&(Ae.request=Ke,Ae.triggers.add(Ke))}}"sources-change"(Ae){const ke=this.$state.sources(),Le=Ae.detail;this.$state.sources.set(Le),Bi(this,BE,RO).call(this,ke,Le,Ae)}"source-change"(Ae){var Le,Fe;Ae.isQualityChange=((Le=Ae.originEvent)==null?void 0:Le.type)==="quality-change";const ke=Ae.detail;Bi(this,sx,$3).call(this,Ae,Ae.isQualityChange),mi(this,Gl).set(Ae.type,Ae),this.$state.source.set(ke),(Fe=this.el)==null||Fe.setAttribute("aria-busy","true")}abort(Ae){const ke=mi(this,Gl).get("source-change");ke&&Ae.triggers.add(ke);const Le=mi(this,Gl).get("can-load");Le&&!Ae.triggers.hasType("can-load")&&Ae.triggers.add(Le)}"load-start"(Ae){const ke=mi(this,Gl).get("source-change");ke&&Ae.triggers.add(ke)}error(Ae){this.$state.error.set(Ae.detail);const ke=mi(this,Gl).get("abort");ke&&Ae.triggers.add(ke)}"loaded-metadata"(Ae){const ke=mi(this,Gl).get("load-start");ke&&Ae.triggers.add(ke)}"loaded-data"(Ae){const ke=mi(this,Gl).get("load-start");ke&&Ae.triggers.add(ke)}"can-play"(Ae){var Le;const ke=mi(this,Gl).get("loaded-metadata");ke&&Ae.triggers.add(ke),Bi(this,ox,F3).call(this,Ae.detail),(Le=this.el)==null||Le.setAttribute("aria-busy","false")}"can-play-through"(Ae){Bi(this,ox,F3).call(this,Ae.detail);const ke=mi(this,Gl).get("can-play");ke&&Ae.triggers.add(ke)}"duration-change"(Ae){const{live:ke,intrinsicDuration:Le,providedDuration:Fe,clipEndTime:Ve,ended:Ie}=this.$state,je=Ae.detail;if(!ke()){const Ke=Number.isNaN(je)?0:je;Le.set(Ke),Ie()&&Bi(this,lx,B3).call(this,Ae)}(Fe()>0||Ve()>0)&&Ae.stopImmediatePropagation()}progress(Ae){const{buffered:ke,seekable:Le}=this.$state,{buffered:Fe,seekable:Ve}=Ae.detail,Ie=getTimeRangesEnd(Fe),je=Fe.length!==ke().length,Ke=Ie!==getTimeRangesEnd(ke()),$e=getTimeRangesEnd(Ve),qe=Ve.length!==Le().length,ci=$e!==getTimeRangesEnd(Le());(je||Ke)&&ke.set(Fe),(qe||ci)&&Le.set(Ve)}play(Ae){const{paused:ke,autoPlayError:Le,ended:Fe,autoPlaying:Ve,playsInline:Ie,pointer:je,muted:Ke,viewType:$e,live:qe,userBehindLiveEdge:ci}=this.$state;if(Bi(this,ax,z3).call(this),!ke()){Ae.stopImmediatePropagation();return}Ae.autoPlay=Ve();const gi=mi(this,Gl).get("waiting");gi&&Ae.triggers.add(gi),Bi(this,yc,Uc).call(this,"media-play-request",Ae),mi(this,Gl).set("play",Ae),ke.set(!1),Le.set(null),Ae.autoPlay&&(this.handle(this.createEvent("auto-play",{detail:{muted:Ke()},trigger:Ae})),Ve.set(!1)),(Fe()||mi(this,Ch).replaying)&&(mi(this,Ch).replaying=!1,Fe.set(!1),this.handle(this.createEvent("replay",{trigger:Ae}))),!Ie()&&$e()==="video"&&je()==="coarse"&&mi(this,al).remote.enterFullscreen("prefer-media",Ae),qe()&&!ci()&&mi(this,al).remote.seekToLiveEdge(Ae)}"play-fail"(Ae){const{muted:ke,autoPlaying:Le}=this.$state,Fe=mi(this,Gl).get("play");Fe&&Ae.triggers.add(Fe),Bi(this,yc,Uc).call(this,"media-play-request",Ae);const{paused:Ve,playing:Ie}=this.$state;Ve.set(!0),Ie.set(!1),Bi(this,Rm,f0).call(this),mi(this,Gl).set("play-fail",Ae),Ae.autoPlay&&(this.handle(this.createEvent("auto-play-fail",{detail:{muted:ke(),error:Ae.detail},trigger:Ae})),Le.set(!1))}playing(Ae){const ke=mi(this,Gl).get("play"),Le=mi(this,Gl).get("seeked");ke?Ae.triggers.add(ke):Le&&Ae.triggers.add(Le),setTimeout(()=>
1529Bi(this,Rm,f0).call(this),0);const{paused:Fe,playing:Ve,live:Ie,liveSyncPosition:je,seekableEnd:Ke,started:$e,currentTime:qe,seeking:ci,ended:gi}=this.$state;if(Fe.set(!1),Ve.set(!0),ci.set(!1),gi.set(!1),mi(this,Ch).looping){mi(this,Ch).looping=!1;return}if(Ie()&&!$e()&&qe()===0){const Ai=je()??Ke()-2;Number.isFinite(Ai)&&mi(this,al).$provider().setCurrentTime(Ai)}this.started(Ae)}started(Ae){const{started:ke}=this.$state;ke()||(ke.set(!0),this.handle(this.createEvent("started",{trigger:Ae})))}pause(Ae){var Ve;(Ve=this.el)!=null&&Ve.isConnected||Qn(this,C0,!0),Bi(this,yc,Uc).call(this,"media-pause-request",Ae);const ke=mi(this,Gl).get("seeked");ke&&Ae.triggers.add(ke);const{paused:Le,playing:Fe}=this.$state;Le.set(!0),Fe.set(!1),mi(this,Yy)&&setTimeout(()=>{this.handle(this.createEvent("end",{trigger:Ae})),Qn(this,Yy,!1)},0),Bi(this,Rm,f0).call(this)}"time-change"(Ae){if(mi(this,Ch).looping){Ae.stopImmediatePropagation();return}let{waiting:ke,played:Le,clipEndTime:Fe,realCurrentTime:Ve,currentTime:Ie}=this.$state,je=Ae.detail,Ke=Fe();Ve.set(je),Bi(this,NE,OO).call(this),ke.set(!1);for(const $e of mi(this,al).textTracks)$e[TextTrackSymbol.updateActiveCues](je,Ae);Ke>0&&je>=Ke&&(Qn(this,Yy,!0),this.dispatch("media-pause-request",{trigger:Ae})),Bi(this,VE,LO).call(this),this.dispatch("time-update",{detail:{currentTime:Ie(),played:Le()},trigger:Ae})}"audio-gain-change"(Ae){var Ve;const{storage:ke}=mi(this,al),{canPlay:Le,audioGain:Fe}=this.$state;Fe.set(Ae.detail),Bi(this,yc,Uc).call(this,"media-audio-gain-change-request",Ae),Le()&&((Ve=ke==null?void 0:ke.setAudioGain)==null||Ve.call(ke,Fe()))}"volume-change"(Ae){var je,Ke;const{storage:ke}=mi(this,al),{volume:Le,muted:Fe,canPlay:Ve}=this.$state,Ie=Ae.detail;Le.set(Ie.volume),Fe.set(Ie.muted||Ie.volume===0),Bi(this,yc,Uc).call(this,"media-volume-change-request",Ae),Bi(this,yc,Uc).call(this,Ie.muted?"media-mute-request":"media-unmute-request",Ae),Ve()&&((je=ke==null?void 0:ke.setVolume)==null||je.call(ke,Le()),(Ke=ke==null?void 0:ke.setMuted)==null||Ke.call(ke,Fe()))}seeked(Ae){const{seeking:ke,currentTime:Le,realCurrentTime:Fe,paused:Ve,seekableEnd:Ie,ended:je,live:Ke}=this.$state;if(mi(this,Ch).seeking)ke.set(!0),Ae.stopImmediatePropagation();else if(ke()){const $e=mi(this,Gl).get("waiting");$e&&Ae.triggers.add($e);const qe=mi(this,Gl).get("seeking");qe&&!Ae.triggers.has(qe)&&Ae.triggers.add(qe),Ve()&&Bi(this,cx,N3).call(this),ke.set(!1),Fe.set(Ae.detail),Bi(this,yc,Uc).call(this,"media-seek-request",Ae);const ci=Ae==null?void 0:Ae.originEvent;ci!=null&&ci.isTrusted&&!(ci instanceof MessageEvent)&&!/seek/.test(ci.type)&&this.started(Ae)}Ke()||(Math.floor(Le())!==Math.floor(Ie())?je.set(!1):this.end(Ae))}waiting(Ae){mi(this,Jy)||mi(this,Ch).seeking||(Ae.stopImmediatePropagation(),Qn(this,vg,Ae),mi(this,D_).call(this))}end(Ae){const{loop:ke,ended:Le}=this.$state;if(!(!ke()&&Le())){if(ke()){setTimeout(()=>{requestAnimationFrame(()=>{Bi(this,ax,z3).call(this,Ae),this.dispatch("media-loop-request",{trigger:Ae})})},10);return}setTimeout(()=>Bi(this,HE,$O).call(this,Ae),0)}}"fullscreen-change"(Ae){const ke=Ae.detail;this.$state.fullscreen.set(ke),Bi(this,yc,Uc).call(this,ke?"media-enter-fullscreen-request":"media-exit-fullscreen-request",Ae)}"fullscreen-error"(Ae){Bi(this,yc,Uc).call(this,"media-enter-fullscreen-request",Ae),Bi(this,yc,Uc).call(this,"media-exit-fullscreen-request",Ae)}"orientation-change"(Ae){const ke=Ae.detail.lock;Bi(this,yc,Uc).call(this,ke?"media-orientation-lock-request":"media-orientation-unlock-request",Ae)}"picture-in-picture-change"(Ae){const ke=Ae.detail;this.$state.pictureInPicture.set(ke),Bi(this,yc,Uc).call(this,ke?"media-enter-pip-request":"media-exit-pip-request",Ae)}"picture-in-picture-error"(Ae){Bi(this,yc,Uc).call(this,"media-enter-pip-request",Ae),Bi(this,yc,Uc).call(this,"media-exit-pip-request",Ae)}"title-change"(Ae){Ae.trigger&&(Ae.stopImmediatePropagation(),this.$state.inferredTitle.set(Ae.detail))}"poster-change"(Ae){Ae.trigger&&(Ae.stopImmediatePropagation(),this.$state.inferredPoster.set(Ae.detail))}}Ch=new WeakMap,al=new WeakMap,Gl=new WeakMap,Yy=new WeakMap,T_=new WeakMap,Ky=new WeakMap,Jy=new WeakMap,vg=new WeakMap,C0=new WeakMap,ME=new WeakSet,SO=function(){mi(this,C0)&&(requestAnimationFrame(()=>{this.scope&&mi(this,al).remote.play(new DOMEvent("dom-connect"))}),Qn(this,C0,!1))},kE=new WeakSet,TO=function(){var Ae;mi(this,C0)||(Qn(this,C0,!this.$state.paused()),(Ae=mi(this,al).$provider())==null||Ae.pause())},Rm=new WeakSet,f0=function(){Bi(this,cx,N3).call(this),Qn(this,Yy,!1),mi(this,Ch).replaying=!1,mi(this,Ch).looping=!1,Qn(this,Jy,!1),Qn(this,vg,void 0),mi(this,Gl).clear()},yc=new WeakSet,Uc=function(Ae,ke){const Le=mi(this,Ch).queue.serve(Ae);Le&&(ke.request=Le,ke.triggers.add(Le))},PE=new WeakSet,EO=function(){Bi(this,E_,fT).call(this),Bi(this,tx,I3).call(this);const Ae=mi(this,al).textTracks;new EventsController(Ae).add("add",Bi(this,E_,fT).bind(this)).add("remove",Bi(this,E_,fT).bind(this)).add("mode-change",Bi(this,tx,I3).bind(this))}
1529,IE=new WeakSet,CO=function(){const Ae=mi(this,al).qualities;new EventsController(Ae).add("add",Bi(this,nx,O3).bind(this)).add("remove",Bi(this,nx,O3).bind(this)).add("change",Bi(this,LE,MO).bind(this)).add("auto-change",Bi(this,$E,kO).bind(this)).add("readonly-change",Bi(this,FE,PO).bind(this))},RE=new WeakSet,AO=function(){const Ae=mi(this,al).audioTracks;new EventsController(Ae).add("add",Bi(this,ix,R3).bind(this)).add("remove",Bi(this,ix,R3).bind(this)).add("change",Bi(this,OE,DO).bind(this))},E_=new WeakSet,fT=function(Ae){const{textTracks:ke}=this.$state;ke.set(mi(this,al).textTracks.toArray()),this.dispatch("text-tracks-change",{detail:ke(),trigger:Ae})},tx=new WeakSet,I3=function(Ae){Ae&&Bi(this,yc,Uc).call(this,"media-text-track-change-request",Ae);const ke=mi(this,al).textTracks.selected,{textTrack:Le}=this.$state;Le()!==ke&&(Le.set(ke),this.dispatch("text-track-change",{detail:ke,trigger:Ae}))},ix=new WeakSet,R3=function(Ae){const{audioTracks:ke}=this.$state;ke.set(mi(this,al).audioTracks.toArray()),this.dispatch("audio-tracks-change",{detail:ke(),trigger:Ae})},OE=new WeakSet,DO=function(Ae){const{audioTrack:ke}=this.$state;ke.set(mi(this,al).audioTracks.selected),Ae&&Bi(this,yc,Uc).call(this,"media-audio-track-change-request",Ae),this.dispatch("audio-track-change",{detail:ke(),trigger:Ae})},nx=new WeakSet,O3=function(Ae){const{qualities:ke}=this.$state;ke.set(mi(this,al).qualities.toArray()),this.dispatch("qualities-change",{detail:ke(),trigger:Ae})},LE=new WeakSet,MO=function(Ae){const{quality:ke}=this.$state;ke.set(mi(this,al).qualities.selected),Ae&&Bi(this,yc,Uc).call(this,"media-quality-change-request",Ae),this.dispatch("quality-change",{detail:ke(),trigger:Ae})},$E=new WeakSet,kO=function(){const{qualities:Ae}=mi(this,al),ke=Ae.auto;this.$state.autoQuality.set(ke),ke||Bi(this,A_,mT).call(this)},C_=new WeakMap,rx=new WeakSet,L3=function(){Bi(this,A_,mT).call(this),Qn(this,C_,effect(()=>{const{qualities:Ae}=mi(this,al),{mediaWidth:ke,mediaHeight:Le}=this.$state,Fe=ke(),Ve=Le();if(Fe===0||Ve===0)return;let Ie=null,je=1/0;for(const Ke of Ae){const $e=Math.abs(Ke.width-Fe)+Math.abs(Ke.height-Ve);$e<je&&(je=$e,Ie=Ke)}Ie&&Ae[ListSymbol.select](Ie,!0,new DOMEvent("resize",{detail:{width:Fe,height:Ve}}))}))},A_=new WeakSet,mT=function(){var Ae;(Ae=mi(this,C_))==null||Ae.call(this),Qn(this,C_,null)},FE=new WeakSet,PO=function(){this.$state.canSetQuality.set(!mi(this,al).qualities.readonly)},zE=new WeakSet,IO=function(){const{canSetVolume:Ae,isGoogleCastConnected:ke}=this.$state;if(ke()){Ae.set(!1);return}canChangeVolume().then(Ae.set)},BE=new WeakSet,RO=function(Ae,ke,Le){let{qualities:Fe}=mi(this,al),Ve=!1,Ie=!1;for(const je of Ae){if(!isVideoQualitySrc(je))continue;if(!ke.some($e=>$e.src===je.src)){const $e=Fe.getBySrc(je.src);$e&&(Fe[ListSymbol.remove]($e,Le),Ie=!0)}}Ie&&!Fe.length&&(this.$state.savedState.set(null),Fe[ListSymbol.reset](Le));for(const je of ke){if(!isVideoQualitySrc(je)||Fe.getBySrc(je.src))continue;const Ke={id:je.id??je.height+"p",bitrate:null,codec:null,...je,selected:!1};Fe[ListSymbol.add](Ke,Le),Ve=!0}Ve&&!Fe[QualitySymbol.enableAuto]&&(Bi(this,rx,L3).call(this),Fe[QualitySymbol.enableAuto]=Bi(this,rx,L3).bind(this),Fe[QualitySymbol.setAuto](!0,Le))},sx=new WeakSet,$3=function(Ae,ke=!1){const{audioTracks:Le,qualities:Fe}=mi(this,al);if(!ke){Qn(this,T_,[]),Qn(this,Ky,[-1,-1]),Le[ListSymbol.reset](Ae),Fe[ListSymbol.reset](Ae),softResetMediaState(this.$state,ke),Bi(this,Rm,f0).call(this);return}softResetMediaState(this.$state,ke),Bi(this,Rm,f0).call(this)},ox=new WeakSet,F3=function(Ae){const{seekable:ke,buffered:Le,intrinsicDuration:Fe,canPlay:Ve}=this.$state;Ve.set(!0),Le.set(Ae.buffered),ke.set(Ae.seekable);const Ie=getTimeRangesEnd(Ae.seekable)??1/0;Fe.set(Ie)},ax=new WeakSet,z3=function(Ae){if(!peek(mi(this,al).$provider))return;const{ended:Le,seekableStart:Fe,clipEndTime:Ve,currentTime:Ie,realCurrentTime:je,duration:Ke}=this.$state,$e=Le()||je()<Fe()||Ve()>0&&je()>=Ve()||Math.abs(Ie()-Ke())<.1;return $e&&this.dispatch("media-seek-request",{detail:Fe(),trigger:Ae}),$e},NE=new WeakSet,OO=function(){const{currentTime:Ae,played:ke,paused:Le}=this.$state;
1529Le()||(Qn(this,Ky,updateTimeIntervals(mi(this,T_),mi(this,Ky),Ae())),ke.set(new TimeRange(mi(this,T_))))},lx=new WeakSet,B3=function(Ae){const{clipStartTime:ke,clipEndTime:Le,duration:Fe}=this.$state;ke()>0||Le()>0||this.handle(this.createEvent("time-change",{detail:Fe(),trigger:Ae}))},VE=new WeakSet,LO=function(){var Fe;const{storage:Ae}=mi(this,al),{canPlay:ke,realCurrentTime:Le}=this.$state;ke()&&((Fe=Ae==null?void 0:Ae.setTime)==null||Fe.call(Ae,Le()))},D_=new WeakMap,HE=new WeakSet,$O=function(Ae){var je;const{storage:ke}=mi(this,al),{paused:Le,seeking:Fe,ended:Ve,duration:Ie}=this.$state;Bi(this,lx,B3).call(this,Ae),Le()||this.dispatch("pause",{trigger:Ae}),Fe()&&this.dispatch("seeked",{detail:Ie(),trigger:Ae}),Ve.set(!0),Bi(this,Rm,f0).call(this),(je=ke==null?void 0:ke.setTime)==null||je.call(ke,Ie(),!0),this.dispatch("ended",{trigger:Ae})},cx=new WeakSet,N3=function(){mi(this,D_).cancel(),this.$state.waiting.set(!1)};var UE,FO,GE,zO,oR,Lz,jE,BO,WE,NO,qE,VO,XE,HO,ZE,UO,YE,GO,KE,jO,JE,WO,QE,qO,e2,XO,t2,ZO,i2,YO,n2,KO,r2,JO;class MediaStateSync extends MediaPlayerController{constructor(){super(...arguments);Oi(this,UE);Oi(this,GE);Oi(this,oR);Oi(this,jE);Oi(this,WE);Oi(this,qE);Oi(this,XE);Oi(this,ZE);Oi(this,YE);Oi(this,KE);Oi(this,JE);Oi(this,QE);Oi(this,e2);Oi(this,t2);Oi(this,i2);Oi(this,n2);Oi(this,r2)}onSetup(){Bi(this,UE,FO).call(this);const Ae=[Bi(this,jE,BO),Bi(this,qE,VO),Bi(this,e2,XO),Bi(this,t2,ZO),Bi(this,ZE,UO),Bi(this,KE,jO),Bi(this,JE,WO),Bi(this,i2,YO),Bi(this,r2,JO),Bi(this,n2,KO),Bi(this,XE,HO),Bi(this,QE,qO),Bi(this,YE,GO),Bi(this,GE,zO),Bi(this,WE,NO)];for(const ke of Ae)effect(ke.bind(this))}}UE=new WeakSet,FO=function(){var Le;const Ae={duration:"providedDuration",loop:"providedLoop",poster:"providedPoster",streamType:"providedStreamType",title:"providedTitle",viewType:"providedViewType"},ke=new Set(["currentTime","paused","playbackRate","volume"]);for(const Fe of Object.keys(this.$props))ke.has(Fe)||(Le=this.$state[Ae[Fe]??Fe])==null||Le.set(this.$props[Fe]());this.$state.muted.set(this.$props.muted()||this.$props.volume()===0)},GE=new WeakSet,zO=function(){const{viewType:Ae,streamType:ke,title:Le,poster:Fe,loop:Ve}=this.$props,Ie=this.$state;Ie.providedPoster.set(Fe()),Ie.providedStreamType.set(ke()),Ie.providedViewType.set(Ae()),Ie.providedTitle.set(Le()),Ie.providedLoop.set(Ve())},oR=new WeakSet,Lz=function(){},jE=new WeakSet,BO=function(){const{artist:Ae,artwork:ke}=this.$props;this.$state.artist.set(Ae()),this.$state.artwork.set(ke())},WE=new WeakSet,NO=function(){const{title:Ae}=this.$state;this.dispatch("title-change",{detail:Ae()})},qE=new WeakSet,VO=function(){const Ae=this.$props.autoPlay()||this.$props.autoplay();this.$state.autoPlay.set(Ae),this.dispatch("auto-play-change",{detail:Ae})},XE=new WeakSet,HO=function(){const Ae=this.$state.loop();this.dispatch("loop-change",{detail:Ae})},ZE=new WeakSet,UO=function(){const Ae=this.$props.controls();this.$state.controls.set(Ae)},YE=new WeakSet,GO=function(){const{poster:Ae}=this.$state;this.dispatch("poster-change",{detail:Ae()})},KE=new WeakSet,jO=function(){const Ae=this.$props.crossOrigin()??this.$props.crossorigin(),ke=Ae===!0?"":Ae;this.$state.crossOrigin.set(ke)},JE=new WeakSet,WO=function(){const{duration:Ae}=this.$props;this.dispatch("media-duration-change-request",{detail:Ae()})},QE=new WeakSet,qO=function(){const Ae=this.$props.playsInline()||this.$props.playsinline();this.$state.playsInline.set(Ae),this.dispatch("plays-inline-change",{detail:Ae})},e2=new WeakSet,XO=function(){const{clipStartTime:Ae}=this.$props;this.dispatch("media-clip-start-change-request",{detail:Ae()})},t2=new WeakSet,ZO=function(){const{clipEndTime:Ae}=this.$props;this.dispatch("media-clip-end-change-request",{detail:Ae()})},i2=new WeakSet,YO=function(){this.dispatch("live-change",{detail:this.$state.live()})},n2=new WeakSet,KO=function(){this.$state.liveEdgeTolerance.set(this.$props.liveEdgeTolerance()),this.$state.minLiveDVRWindow.set(this.$props.minLiveDVRWindow())},r2=new WeakSet,JO=function(){this.dispatch("live-edge-change",{detail:this.$state.liveEdge()})};const actions=["play","pause","seekforward","seekbackward","seekto"];var s2,QO,o2,eL,a2,tL,l2,iL;class NavigatorMediaSession extends MediaPlayerController{constructor(){super(...arguments);Oi(this,s2);Oi(this,o2);Oi(this,a2);Oi(this,l2)}onConnect(){effect(Bi(this,o2,eL).bind(this)),effect(Bi(this,a2,tL).bind(this));const Ae=Bi(this,l2,iL).bind(this);for(const ke of actions)navigator.mediaSession.setActionHandler(ke,Ae);onDispose(Bi(this,s2,QO).bind(this))}}s2=new WeakSet,QO=function(){for(const Ae of actions)navigator.mediaSession.setActionHandler(Ae,null)},o2=new WeakSet,eL=function(){const{title:Ae,artist:ke,artwork:Le,poster:Fe}=this.$state;
1529navigator.mediaSession.metadata=new MediaMetadata({title:Ae(),artist:ke(),artwork:Le()??[{src:Fe()}]})},a2=new WeakSet,tL=function(){const{canPlay:Ae,paused:ke}=this.$state;navigator.mediaSession.playbackState=Ae()?ke()?"paused":"playing":"none"},l2=new WeakSet,iL=function(Ae){const ke=new DOMEvent("media-session-action",{detail:Ae});switch(Ae.action){case"play":this.dispatch("media-play-request",{trigger:ke});break;case"pause":this.dispatch("media-pause-request",{trigger:ke});break;case"seekto":case"seekforward":case"seekbackward":this.dispatch("media-seek-request",{detail:isNumber(Ae.seekTime)?Ae.seekTime:this.$state.currentTime()+(Ae.seekOffset??(Ae.action==="seekforward"?10:-10)),trigger:ke});break}};var Dd,Qy,Md,Ah,Hp,M_,gT,k_,c2,nL,u2,rL,d2,sL,h2,oL,p2,aL,ev,vb,ux,V3,f2,lL,dx,H3,m2,cL,hx,U3,g2,uL,px,G3,y2,dL,fx,j3,v2,hL,mx,W3,_2,pL,b2,fL,x2,mL,w2,gL;const Oy=class Oy extends Component{constructor(){super();Oi(this,Ah);Oi(this,M_);Oi(this,c2);Oi(this,u2);Oi(this,d2);Oi(this,h2);Oi(this,p2);Oi(this,ev);Oi(this,ux);Oi(this,f2);Oi(this,dx);Oi(this,m2);Oi(this,hx);Oi(this,g2);Oi(this,px);Oi(this,y2);Oi(this,fx);Oi(this,v2);Oi(this,mx);Oi(this,_2);Oi(this,b2);Oi(this,x2);Oi(this,w2);Oi(this,Dd,void 0);Oi(this,Qy,void 0);Oi(this,Md,void 0);Mr(this,"canPlayQueue",new RequestQueue);Mr(this,"remoteControl");Oi(this,k_,!1);Mr(this,"orientation");new MediaStateSync;const Ae={player:this,qualities:new VideoQualityList,audioTracks:new AudioTrackList,storage:null,$provider:signal(null),$providerSetup:signal(!1),$props:this.$props,$state:this.$state};Ae.remote=this.remoteControl=new MediaRemoteControl(void 0),Ae.remote.setPlayer(this),Ae.textTracks=new TextTrackList,Ae.textTracks[TextTrackSymbol.crossOrigin]=this.$state.crossOrigin,Ae.textRenderers=new TextRenderers(Ae),Ae.ariaKeys={},Qn(this,Dd,Ae),provideContext(mediaContext,Ae),this.orientation=new ScreenOrientationController,new FocusVisibleController,new MediaKeyboardController(Ae);const ke=new MediaRequestContext;Qn(this,Qy,new MediaStateManager(ke,Ae)),Qn(this,Md,new MediaRequestManager(mi(this,Qy),ke,Ae)),Ae.delegate=new MediaPlayerDelegate(mi(this,Qy).handle.bind(mi(this,Qy)),Ae),Ae.notify=Ae.delegate.notify.bind(Ae.delegate),typeof navigator<"u"&&"mediaSession"in navigator&&new NavigatorMediaSession,new MediaLoadController("load",this.startLoading.bind(this)),new MediaLoadController("posterLoad",this.startLoadingPoster.bind(this))}onSetup(){Bi(this,h2,oL).call(this),effect(Bi(this,d2,sL).bind(this)),effect(Bi(this,m2,cL).bind(this)),effect(Bi(this,f2,lL).bind(this)),effect(Bi(this,y2,dL).bind(this)),effect(Bi(this,g2,uL).bind(this)),effect(Bi(this,_2,pL).bind(this)),effect(Bi(this,v2,hL).bind(this))}onAttach(Ae){Ae.setAttribute("data-media-player",""),setAttributeIfEmpty(Ae,"tabindex","0"),setAttributeIfEmpty(Ae,"role","region"),effect(Bi(this,x2,mL).bind(this)),effect(Bi(this,c2,nL).bind(this)),effect(Bi(this,u2,rL).bind(this)),listenEvent(Ae,"find-media-player",Bi(this,p2,aL).bind(this))}onConnect(Ae){IS_IPHONE&&setAttribute(Ae,"data-iphone","");const ke=window.matchMedia("(pointer: coarse)");Bi(this,ux,V3).call(this,ke),ke.onchange=Bi(this,ux,V3).bind(this);const Le=new ResizeObserver(animationFrameThrottle(Bi(this,ev,vb).bind(this)));Le.observe(Ae),effect(Bi(this,ev,vb).bind(this)),this.dispatch("media-player-connect",{detail:this,bubbles:!0,composed:!0}),onDispose(()=>{Le.disconnect(),ke.onchange=null})}onDestroy(){mi(this,Dd).player=null,this.canPlayQueue.reset()}get provider(){return mi(this,Ah,Hp)}get controls(){return mi(this,Md).controls}set controls(Ae){mi(this,M_,gT).controls.set(Ae)}get title(){return peek(this.$state.title)}set title(Ae){if(mi(this,k_)){Qn(this,k_,!1);return}mi(this,M_,gT).title.set(Ae)}get qualities(){return mi(this,Dd).qualities}get audioTracks(){return mi(this,Dd).audioTracks}get textTracks(){return mi(this,Dd).textTracks}get textRenderers(){return mi(this,Dd).textRenderers}get duration(){return this.$state.duration()}set duration(Ae){mi(this,M_,gT).duration.set(Ae)}get paused(){return peek(this.$state.paused)}set paused(Ae){Bi(this,dx,H3).call(this,Ae)}get muted(){return peek(this.$state.muted)}
1529set muted(Ae){Bi(this,hx,U3).call(this,Ae)}get currentTime(){return peek(this.$state.currentTime)}set currentTime(Ae){Bi(this,px,G3).call(this,Ae)}get volume(){return peek(this.$state.volume)}set volume(Ae){Bi(this,fx,j3).call(this,Ae)}get playbackRate(){return peek(this.$state.playbackRate)}set playbackRate(Ae){Bi(this,mx,W3).call(this,Ae)}async play(Ae){return mi(this,Md).play(Ae)}async pause(Ae){return mi(this,Md).pause(Ae)}async enterFullscreen(Ae,ke){return mi(this,Md).enterFullscreen(Ae,ke)}async exitFullscreen(Ae,ke){return mi(this,Md).exitFullscreen(Ae,ke)}enterPictureInPicture(Ae){return mi(this,Md).enterPictureInPicture(Ae)}exitPictureInPicture(Ae){return mi(this,Md).exitPictureInPicture(Ae)}seekToLiveEdge(Ae){mi(this,Md).seekToLiveEdge(Ae)}startLoading(Ae){mi(this,Dd).notify("can-load",void 0,Ae)}startLoadingPoster(Ae){mi(this,Dd).notify("can-load-poster",void 0,Ae)}requestAirPlay(Ae){return mi(this,Md).requestAirPlay(Ae)}requestGoogleCast(Ae){return mi(this,Md).requestGoogleCast(Ae)}setAudioGain(Ae,ke){return mi(this,Md).setAudioGain(Ae,ke)}destroy(){super.destroy(),mi(this,Dd).remote.setPlayer(null),this.dispatch("destroy")}};Dd=new WeakMap,Qy=new WeakMap,Md=new WeakMap,Ah=new WeakSet,Hp=function(){return mi(this,Dd).$provider()},M_=new WeakSet,gT=function(){return this.$props},k_=new WeakMap,c2=new WeakSet,nL=function(){const Ae=this.$el,{title:ke,live:Le,viewType:Fe,providedTitle:Ve}=this.$state,Ie=Le(),je=uppercaseFirstChar(Fe()),Ke=je!=="Unknown"?`${Ie?"Live ":""}${je}`:Ie?"Live":"Media",$e=ke();setAttribute(this.el,"aria-label",`${Ke} Player`+($e?` - ${$e}`:"")),Ae!=null&&Ae.hasAttribute("title")&&(Qn(this,k_,!0),Ae==null||Ae.removeAttribute("title"))},u2=new WeakSet,rL=function(){const Ae=this.orientation.landscape?"landscape":"portrait";this.$state.orientation.set(Ae),setAttribute(this.el,"data-orientation",Ae),Bi(this,ev,vb).call(this)},d2=new WeakSet,sL=function(){this.$state.canPlay()&&mi(this,Ah,Hp)?this.canPlayQueue.start():this.canPlayQueue.stop()},h2=new WeakSet,oL=function(){if(Oy[MEDIA_ATTRIBUTES]){this.setAttributes(Oy[MEDIA_ATTRIBUTES]);return}const Ae={"data-load":function(){return this.$props.load()},"data-captions":function(){const Le=this.$state.textTrack();return!!Le&&isTrackCaptionKind(Le)},"data-ios-controls":function(){return this.$state.iOSControls()},"data-controls":function(){return this.controls.showing},"data-buffering":function(){const{canLoad:Le,canPlay:Fe,waiting:Ve}=this.$state;return Le()&&(!Fe()||Ve())},"data-error":function(){const{error:Le}=this.$state;return!!Le()},"data-autoplay-error":function(){const{autoPlayError:Le}=this.$state;return!!Le()}},ke={autoPlay:"autoplay",canAirPlay:"can-airplay",canPictureInPicture:"can-pip",pictureInPicture:"pip",playsInline:"playsinline",remotePlaybackState:"remote-state",remotePlaybackType:"remote-type",isAirPlayConnected:"airplay",isGoogleCastConnected:"google-cast"};for(const Le of mediaAttributes){const Fe="data-"+(ke[Le]??camelToKebabCase(Le));Ae[Fe]=function(){return this.$state[Le]()}}delete Ae.title,Oy[MEDIA_ATTRIBUTES]=Ae,this.setAttributes(Ae)},p2=new WeakSet,aL=function(Ae){Ae.detail(this)},ev=new WeakSet,vb=function(){if(!this.el)return;const Ae=this.el.clientWidth,ke=this.el.clientHeight;this.$state.width.set(Ae),this.$state.height.set(ke),setStyle(this.el,"--player-width",Ae+"px"),setStyle(this.el,"--player-height",ke+"px")},ux=new WeakSet,V3=function(Ae){const ke=Ae.matches?"coarse":"fine";setAttribute(this.el,"data-pointer",ke),this.$state.pointer.set(ke),Bi(this,ev,vb).call(this)},f2=new WeakSet,lL=function(){Bi(this,dx,H3).call(this,this.$props.paused())},dx=new WeakSet,H3=function(Ae){Ae?this.canPlayQueue.enqueue("paused",()=>mi(this,Md).pause()):this.canPlayQueue.enqueue("paused",()=>mi(this,Md).play())}
1529,m2=new WeakSet,cL=function(){Bi(this,hx,U3).call(this,this.$props.muted())},hx=new WeakSet,U3=function(Ae){this.canPlayQueue.enqueue("muted",()=>{mi(this,Ah,Hp)&&mi(this,Ah,Hp).setMuted(Ae)})},g2=new WeakSet,uL=function(){Bi(this,px,G3).call(this,this.$props.currentTime())},px=new WeakSet,G3=function(Ae){this.canPlayQueue.enqueue("currentTime",()=>{const{currentTime:ke}=this.$state;Ae!==peek(ke)&&peek(()=>{if(!mi(this,Ah,Hp))return;const Le=boundTime(Ae,this.$state);Number.isFinite(Le)&&mi(this,Ah,Hp).setCurrentTime(Le)})})},y2=new WeakSet,dL=function(){Bi(this,fx,j3).call(this,this.$props.volume())},fx=new WeakSet,j3=function(Ae){const ke=clampNumber(0,Ae,1);this.canPlayQueue.enqueue("volume",()=>{mi(this,Ah,Hp)&&mi(this,Ah,Hp).setVolume(ke)})},v2=new WeakSet,hL=function(){Bi(this,mx,W3).call(this,this.$props.playbackRate())},mx=new WeakSet,W3=function(Ae){this.canPlayQueue.enqueue("rate",()=>{var ke,Le;mi(this,Ah,Hp)&&((Le=(ke=mi(this,Ah,Hp)).setPlaybackRate)==null||Le.call(ke,Ae))})},_2=new WeakSet,pL=function(){Bi(this,b2,fL).call(this,this.$props.playsInline())},b2=new WeakSet,fL=function(Ae){this.canPlayQueue.enqueue("playsinline",()=>{var ke,Le;mi(this,Ah,Hp)&&((Le=(ke=mi(this,Ah,Hp)).setPlaysInline)==null||Le.call(ke,Ae))})},x2=new WeakSet,mL=function(){var Le;let Ae=this.$props.storage(),ke=isString(Ae)?new LocalMediaStorage:Ae;if(ke!=null&&ke.onChange){const{source:Fe}=this.$state,Ve=isString(Ae)?Ae:(Le=this.el)==null?void 0:Le.id,Ie=computed(Bi(this,w2,gL).bind(this));effect(()=>ke.onChange(Fe(),Ie(),Ve||void 0))}mi(this,Dd).storage=ke,mi(this,Dd).textTracks.setStorage(ke),onDispose(()=>{var Fe;(Fe=ke==null?void 0:ke.onDestroy)==null||Fe.call(ke),mi(this,Dd).storage=null,mi(this,Dd).textTracks.setStorage(null)})},w2=new WeakSet,gL=function(){const{clipStartTime:Ae,clipEndTime:ke}=this.$props,{source:Le}=this.$state,Fe=Le();return Fe.src?`${Fe.src}:${Ae()}:${ke()}`:null},Mr(Oy,"props",mediaPlayerProps),Mr(Oy,"state",mediaState);let MediaPlayer=Oy;const mediaplayer__proto=MediaPlayer.prototype;prop(mediaplayer__proto,"canPlayQueue");prop(mediaplayer__proto,"remoteControl");prop(mediaplayer__proto,"provider");prop(mediaplayer__proto,"controls");prop(mediaplayer__proto,"orientation");prop(mediaplayer__proto,"title");prop(mediaplayer__proto,"qualities");prop(mediaplayer__proto,"audioTracks");prop(mediaplayer__proto,"textTracks");prop(mediaplayer__proto,"textRenderers");prop(mediaplayer__proto,"duration");prop(mediaplayer__proto,"paused");prop(mediaplayer__proto,"muted");prop(mediaplayer__proto,"currentTime");prop(mediaplayer__proto,"volume");prop(mediaplayer__proto,"playbackRate");method(mediaplayer__proto,"play");method(mediaplayer__proto,"pause");method(mediaplayer__proto,"enterFullscreen");method(mediaplayer__proto,"exitFullscreen");method(mediaplayer__proto,"enterPictureInPicture");method(mediaplayer__proto,"exitPictureInPicture");method(mediaplayer__proto,"seekToLiveEdge");method(mediaplayer__proto,"startLoading");method(mediaplayer__proto,"startLoadingPoster");method(mediaplayer__proto,"requestAirPlay");method(mediaplayer__proto,"requestGoogleCast");method(mediaplayer__proto,"setAudioGain");function resolveStreamTypeFromDASHManifest(De,_e){return fetch(De,_e).then(Ae=>Ae.text()).then(Ae=>/type="static"/.test(Ae)?"on-demand":"live")}function resolveStreamTypeFromHLSManifest(De,_e){return fetch(De,_e).then(Ae=>Ae.text()).then(Ae=>{const ke=resolveHLSRenditionURI(Ae);if(ke)return resolveStreamTypeFromHLSManifest(/^https?:/.test(ke)?ke:new URL(ke,De).href,_e);const Le=/EXT-X-PLAYLIST-TYPE:\s*VOD/.test(Ae)?"on-demand":"live";return Le==="live"&&resolveTargetDuration(Ae)>=10&&(/#EXT-X-DVR-ENABLED:\s*true/.test(Ae)||Ae.includes("#EXT-X-DISCONTINUITY"))?"live:dvr":Le})}function resolveHLSRenditionURI(De){const _e=De.match(/#EXT-X-STREAM-INF:[^\n]+(\n[^\n]+)*/g);return _e?_e[0].split(`
1530`)[1].trim():null}function resolveTargetDuration(De){const _e=De.split(`
1531`);for(const Ae of _e)if(Ae.startsWith("#EXT-X-TARGETDURATION")){const ke=parseFloat(Ae.split(":")[1]);if(!isNaN(ke))return ke}return-1}const sourceTypes=new Map;var P_,I_,gx,ll,_g,S2,yL,T2,vL,yx,q3,vx,X3,_x,Z3,E2,bL,C2,xL,A2,wL;class SourceSelection{constructor(_e,Ae,ke,Le=[]){Oi(this,S2);Oi(this,T2);Oi(this,yx);Oi(this,vx);Oi(this,_x);Oi(this,E2);Oi(this,C2);Oi(this,A2);Oi(this,P_,!1);Oi(this,I_,void 0);Oi(this,gx,void 0);Oi(this,ll,void 0);Oi(this,_g,void 0);Qn(this,gx,_e),Qn(this,ll,Ae),Qn(this,_g,ke);const Fe=new DASHProviderLoader,Ve=new HLSProviderLoader,Ie=new VideoProviderLoader,je=new AudioProvi
1531derLoader,Ke=new YouTubeProviderLoader,$e=new VimeoProviderLoader,qe=[Ke,$e];Qn(this,I_,computed(()=>{const gi=Ae.$state.remotePlaybackLoader(),Ai=Ae.$props.preferNativeHLS()?[Ie,je,Fe,Ve,...qe,...Le]:[Ve,Ie,je,Fe,...qe,...Le];return gi?[gi,...Ai]:Ai}));const{$state:ci}=Ae;ci.sources.set(normalizeSrc(Ae.$props.src()));for(const gi of ci.sources()){const Ai=mi(this,I_).call(this).find(ii=>ii.canPlay(gi));if(!Ai)continue;const oi=Ai.mediaType(gi);Ae.$state.source.set(gi),Ae.$state.mediaType.set(oi),Ae.$state.inferredViewType.set(oi),mi(this,_g).set(Ai),Qn(this,P_,!0);break}}connect(){const _e=mi(this,_g).call(this);mi(this,P_)&&(Bi(this,vx,X3).call(this,mi(this,ll).$state.source(),_e),Bi(this,_x,Z3).call(this,_e),Qn(this,P_,!1)),effect(Bi(this,S2,yL).bind(this)),effect(Bi(this,T2,vL).bind(this)),effect(Bi(this,E2,bL).bind(this)),effect(Bi(this,C2,xL).bind(this)),effect(Bi(this,A2,wL).bind(this))}}P_=new WeakMap,I_=new WeakMap,gx=new WeakMap,ll=new WeakMap,_g=new WeakMap,S2=new WeakSet,yL=function(){mi(this,ll).notify("sources-change",[...normalizeSrc(mi(this,ll).$props.src()),...mi(this,gx).call(this)])},T2=new WeakSet,vL=function(){var Ve;const{$state:_e}=mi(this,ll),Ae=_e.sources(),ke=peek(_e.source),Le=Bi(this,yx,q3).call(this,ke,Ae);if(((Ve=Ae[0])==null?void 0:Ve.src)&&!Le.src&&!Le.type){const{crossOrigin:Ie}=_e,je=getRequestCredentials(Ie()),Ke=new AbortController;return Promise.all(Ae.map($e=>isString($e.src)&&$e.type==="?"?fetch($e.src,{method:"HEAD",credentials:je,signal:Ke.signal}).then(qe=>($e.type=qe.headers.get("content-type")||"??",sourceTypes.set($e.src,$e.type),$e)).catch(()=>$e):$e)).then($e=>{if(Ke.signal.aborted)return;
1531const qe=Bi(this,yx,q3).call(this,peek(_e.source),$e);tick(),qe.src||mi(this,ll).notify("error",{message:"Failed to load resource.",code:4})}),()=>Ke.abort()}tick()},yx=new WeakSet,q3=function(_e,Ae){let ke={src:"",type:""},Le=null,Fe=new DOMEvent("sources-change",{detail:{sources:Ae}}),Ve=mi(this,I_).call(this),{started:Ie,paused:je,currentTime:Ke,quality:$e,savedState:qe}=mi(this,ll).$state;for(const ci of Ae){const gi=Ve.find(Ai=>Ai.canPlay(ci));if(gi){ke=ci,Le=gi;break}}if(isVideoQualitySrc(ke)){const ci=$e(),gi=Ae.find(Ai=>Ai.src===(ci==null?void 0:ci.src));peek(Ie)?qe.set({paused:peek(je),currentTime:peek(Ke)}):qe.set(null),gi&&(ke=gi,Fe=new DOMEvent("quality-change",{detail:{quality:ci}}))}return isSameSrc(_e,ke)||Bi(this,vx,X3).call(this,ke,Le,Fe),Le!==peek(mi(this,_g))&&Bi(this,_x,Z3).call(this,Le,Fe),ke},vx=new WeakSet,X3=function(_e,Ae,ke){mi(this,ll).notify("source-change",_e,ke),mi(this,ll).notify("media-type-change",(Ae==null?void 0:Ae.mediaType(_e))||"unknown",ke)},_x=new WeakSet,Z3=function(_e,Ae){mi(this,ll).$providerSetup.set(!1),mi(this,ll).notify("provider-change",null,Ae),_e&&peek(()=>{var ke;return(ke=_e.preconnect)==null?void 0:ke.call(_e,mi(this,ll))}),mi(this,_g).set(_e),mi(this,ll).notify("provider-loader-change",_e,Ae)},E2=new WeakSet,bL=function(){const _e=mi(this,ll).$provider();if(!(!_e||peek(mi(this,ll).$providerSetup))){if(mi(this,ll).$state.canLoad()){scoped(()=>_e.setup(),_e.scope),mi(this,ll).$providerSetup.set(!0);return}peek(()=>{var Ae;return(Ae=_e.preconnect)==null?void 0:Ae.call(_e)})}},C2=new WeakSet,xL=function(){if(!mi(this,ll).$providerSetup())return;const _e=mi(this,ll).$provider(),Ae=mi(this,ll).$state.source(),ke=peek(mi(this,ll).$state.crossOrigin),Le=peek(mi(this,ll).$props.preferNativeHLS);if(!isSameSrc(_e==null?void 0:_e.currentSrc,Ae)){if(mi(this,ll).$state.canLoad()){const Fe=new AbortController;return isHLSSrc(Ae)?(Le||!isHLSSupported())&&resolveStreamTypeFromHLSManifest(Ae.src,{credentials:getRequestCredentials(ke),signal:Fe.signal}).then(Ve=>{mi(this,ll).notify("stream-type-change",Ve)}).catch(noop):isDASHSrc(Ae)?resolveStreamTypeFromDASHManifest(Ae.src,{credentials:getRequestCredentials(ke),signal:Fe.signal}).then(Ve=>{mi(this,ll).notify("stream-type-change",Ve)}).catch(noop):mi(this,ll).notify("stream-type-change","on-demand"),peek(()=>{const Ve=peek(mi(this,ll).$state.preload);return _e==null?void 0:_e.loadSource(Ae,Ve).catch(Ie=>{})}),()=>Fe.abort()}try{isString(Ae.src)&&preconnect(new URL(Ae.src).origin)}catch{}}},A2=new WeakSet,wL=function(){const _e=mi(this,_g).call(this),{providedPoster:Ae,source:ke,canLoadPoster:Le}=mi(this,ll).$state;if(!_e||!_e.loadPoster||!ke()||!Le()||Ae())return;const Fe=new AbortController,Ve=new DOMEvent("source-change",{detail:ke});return _e.loadPoster(ke(),mi(this,ll),Fe).then(Ie=>{mi(this,ll).notify("poster-change",Ie||"",Ve)}).catch(()=>{mi(this,ll).notify("poster-change","",Ve)}),()=>{Fe.abort()}};function normalizeSrc(De){return(isArray(De)?De:[De]).map(_e=>isString(_e)?{src:_e,type:inferType(_e)}:{..._e,type:inferType(_e.src,_e.type)})}function inferType(De,_e){return isString(_e)&&_e.length?_e:isString(De)&&sourceTypes.has(De)?sourceTypes.get(De):!_e&&isHLSSrc({src:De,type:""})?"application/x-mpegurl":!_e&&isDASHSrc({src:De,type:""})?"application/dash+xml":!isString(De)||De.startsWith("blob:")?"video/object":De.includes("youtube")||De.includes("youtu.be")?"video/youtube":De.includes("vimeo")&&!De.includes("progressive_redirect")&&!De.includes(".m3u8")?"video/vimeo":"?"}function isSameSrc(De,_e){return(De==null?void 0:De.src)===(_e==null?void 0:_e.src)&&(De==null?void 0:De.type)===(_e==null?void 0:_e.type)}var bx,A0,xx,D2,SL;class Tracks{constructor(_e,Ae){Oi(this,D2);Oi(this,bx,void 0);Oi(this,A0,void 0);Oi(this,xx,[]);Qn(this,bx,_e),Qn(this,A0,Ae),effect(Bi(this,D2,SL).bind(this))}}bx=new WeakMap,A0=new WeakMap,xx=new WeakMap,D2=new WeakSet,SL=function(){const _e=mi(this,bx).call(this);for(const Ae of mi(this,xx))if(!_e.some(ke=>ke.id===Ae.id)){const ke=Ae.id&&mi(this,A0).textTracks.getById(Ae.id);ke&&mi(this,A0).textTracks.remove(ke)}for(const Ae of _e){const ke=Ae.id||TextTrack.createId(Ae);mi(this,A0).textTracks.getById(ke)||(Ae.id=ke,mi(this,A0).textTracks.add(Ae))}Qn(this,xx,_e)};var Kf,wx,Sx,Tx,R_,O_,M2,TL,Ex,Y3,Cx,K3,Ax,J3;
1531class MediaProvider extends Component{constructor(){super(...arguments);Oi(this,M2);Oi(this,Ex);Oi(this,Cx);Oi(this,Ax);Oi(this,Kf,void 0);Oi(this,wx,void 0);Oi(this,Sx,signal([]));Oi(this,Tx,signal([]));Oi(this,R_,null);Oi(this,O_,-1)}onSetup(){Qn(this,Kf,useMediaContext()),Qn(this,wx,new SourceSelection(mi(this,Sx),mi(this,Kf),this.$state.loader,this.$props.loaders()))}onAttach(Ae){Ae.setAttribute("data-media-provider","")}onConnect(Ae){mi(this,wx).connect(),new Tracks(mi(this,Tx),mi(this,Kf));const ke=new ResizeObserver(animationFrameThrottle(Bi(this,Cx,K3).bind(this)));ke.observe(Ae);const Le=new MutationObserver(Bi(this,Ax,J3).bind(this));Le.observe(Ae,{attributes:!0,childList:!0}),Bi(this,Cx,K3).call(this),Bi(this,Ax,J3).call(this),onDispose(()=>{ke.disconnect(),Le.disconnect()})}load(Ae){Ae==null||Ae.setAttribute("aria-hidden","true"),window.cancelAnimationFrame(mi(this,O_)),Qn(this,O_,requestAnimationFrame(()=>Bi(this,M2,TL).call(this,Ae))),onDispose(()=>{window.cancelAnimationFrame(mi(this,O_))})}onDestroy(){Qn(this,R_,null),Bi(this,Ex,Y3).call(this)}}Kf=new WeakMap,wx=new WeakMap,Sx=new WeakMap,Tx=new WeakMap,R_=new WeakMap,O_=new WeakMap,M2=new WeakSet,TL=function(Ae){if(!this.scope)return;const ke=this.$state.loader(),{$provider:Le}=mi(this,Kf);mi(this,R_)===ke&&(ke==null?void 0:ke.target)===Ae&&peek(Le)||(Bi(this,Ex,Y3).call(this),Qn(this,R_,ke),ke&&(ke.target=Ae||null),!(!ke||!Ae)&&ke.load(mi(this,Kf)).then(Fe=>{this.scope&&peek(this.$state.loader)===ke&&mi(this,Kf).notify("provider-change",Fe)}))},Ex=new WeakSet,Y3=function(){var Ae;(Ae=mi(this,Kf))==null||Ae.notify("provider-change",null)},Cx=new WeakSet,K3=function(){if(!this.el)return;const{player:Ae,$state:ke}=mi(this,Kf),Le=this.el.offsetWidth,Fe=this.el.offsetHeight;Ae&&(ke.mediaWidth.set(Le),ke.mediaHeight.set(Fe),Ae.el&&(setStyle(Ae.el,"--media-width",Le+"px"),setStyle(Ae.el,"--media-height",Fe+"px")))},Ax=new WeakSet,J3=function(){const Ae=[],ke=[],Le=this.el.children;for(const Fe of Le)if(!Fe.hasAttribute("data-vds")){if(Fe instanceof HTMLSourceElement){const Ve={id:Fe.id,src:Fe.src,type:Fe.type};for(const Ie of["id","src","width","height","bitrate","codec"]){const je=Fe.getAttribute(`data-${Ie}`);isString(je)&&(Ve[Ie]=/id|src|codec/.test(Ie)?je:Number(je))}Ae.push(Ve)}else if(Fe instanceof HTMLTrackElement){const Ve={src:Fe.src,kind:Fe.track.kind,language:Fe.srclang,label:Fe.label,default:Fe.default,type:Fe.getAttribute("data-type")};ke.push({id:Fe.id||TextTrack.createId(Ve),...Ve})}}mi(this,Sx).set(Ae),mi(this,Tx).set(ke),tick()},Mr(MediaProvider,"props",{loaders:[]}),Mr(MediaProvider,"state",new State({loader:null}));const mediaprovider__proto=MediaProvider.prototype;method(mediaprovider__proto,"load");var bg,kd,rp,k2,EL,P2,CL,I2,AL,R2,DL;class MediaProviderElement extends Host(HTMLElement,MediaProvider){constructor(){super(...arguments);Oi(this,k2);Oi(this,P2);Oi(this,I2);Oi(this,R2);Oi(this,bg,void 0);Oi(this,kd,null);Oi(this,rp,null)}onSetup(){Qn(this,bg,useMediaContext()),this.setAttribute("keep-alive","")}onDestroy(){var Ae,ke;(Ae=mi(this,rp))==null||Ae.remove(),Qn(this,rp,null),(ke=mi(this,kd))==null||ke.remove(),Qn(this,kd,null)}onConnect(){effect(()=>{var je,Ke,$e;const Ae=this.$state.loader(),ke=(Ae==null?void 0:Ae.name)==="youtube",Le=(Ae==null?void 0:Ae.name)==="vimeo",Fe=ke||Le,Ve=(Ae==null?void 0:Ae.name)==="google-cast",Ie=Ae?Ve?Bi(this,R2,DL).call(this):Fe?Bi(this,I2,AL).call(this):Ae.mediaType()==="audio"?Bi(this,k2,EL).call(this):Bi(this,P2,CL).call(this):null;if(mi(this,kd)!==Ie){const qe=((je=mi(this,kd))==null?void 0:je.parentElement)??this;(Ke=mi(this,kd))==null||Ke.remove(),Qn(this,kd,Ie),Ie&&qe.prepend(Ie),Fe&&Ie&&effect(()=>{var hi;const{nativeControls:ci,viewType:gi}=mi(this,bg).$state,Ai=ci(),oi=gi()==="audio";!Ai&&!oi?(Qn(this,rp,this.querySelector(".vds-blocker")),mi(this,rp)||(Qn(this,rp,document.createElement("div")),mi(this,rp).classList.add("vds-blocker"),Ie.after(mi(this,rp)))):((hi=mi(this,rp))==null||hi.remove(),Qn(this,rp,null)),setAttribute(Ie,"data-no-controls",!Ai)})}ke?Ie==null||Ie.classList.add("vds-youtube"):Le&&(Ie==null||Ie.classList.add("vds-vimeo")),Fe||(($e=mi(this,rp))==null||$e.remove(),Qn(this,rp,null)),this.load(Ie)})}}bg=new WeakMap,kd=new WeakMap,rp=new WeakMap,k2=new WeakSet,EL=function(){const Ae=mi(this,kd)instanceof HTMLAudioElement?mi(this,kd):document.createElement("audio"),{controls:ke,crossOrigin:Le}=mi(this,bg).$state;return effect(()=>{setAttribute(Ae,"controls",ke()),setAttribute(Ae,"crossorigin",Le())}),Ae},P2=new WeakSet,CL=function(){const Ae=mi(this,kd)instanceof HTMLVideoElement?mi(this,kd):document.createElement("video"),{crossOrigin:ke,poster:Le,nativeControls:Fe}=mi(this,bg).$state,Ve=computed(()=>Fe()?"true":null),Ie=computed(()=>Le()&&Fe()?Le():null);return effect(()=>{setAttribute(Ae,"controls",Ve()),setAttribute(Ae,"crossorigin",ke()),setAttribute(Ae,"poster",Ie())}),Ae},I2=new WeakSet,AL=function(){const Ae=mi(this,kd)instanceof HTMLIFrameElement?mi(this,kd):document.createElement("iframe"),{nativeControls:ke}=mi(this,bg).$state;return effect(()=>setAttribute(Ae,"tabindex",ke()?null:-1)),Ae},R2=new WeakSet,DL=function(){var ke;if((ke=mi(this,kd))!=null&&ke.classList.contains("vds-google-cast"))return mi(this,kd);const Ae=document.createElement("div");return Ae.classList.add("vds-google-cast"),__vitePreload(()=>import("./vidstack-D_-9AA6_-6ba0ad08.js"),[]).then(({insertContent:Le})=>{Le(Ae,mi(this,bg).$state)}),Ae}
vendor: 4,460 bytes, lines 1531-1537
1531,Mr(MediaProviderElement,"tagName","media-provider");class MediaPlayerElement extends Host(HTMLElement,MediaPlayer){}Mr(MediaPlayerElement,"tagName","media-player"),Mr(MediaPlayerElement,"attrs",{autoPlay:"autoplay",crossOrigin:"crossorigin",playsInline:"playsinline",preferNativeHLS:"prefer-native-hls",minLiveDVRWindow:"min-live-dvr-window"});defineCustomElement(MediaPlayerElement);defineCustomElement(MediaProviderElement);/**
1532 * @license
1533 * Copyright 2017 Google LLC
1534 * SPDX-License-Identifier: BSD-3-Clause
1535 */var t$2;const i$2=window,s$2=i$2.trustedTypes,e$3=s$2?s$2.createPolicy("lit-html",{createHTML:De=>De}):void 0,o$3="$lit$",n$2=`lit$${(Math.random()+"").slice(9)}$`,l$2="?"+n$2,h$2=`<${l$2}>`,r$1=document,u=()=>r$1.createComment(""),d=De=>De===null||typeof De!="object"&&typeof De!="function",c$1=Array.isArray,v=De=>c$1(De)||typeof(De==null?void 0:De[Symbol.iterator])=="function",a$1=`[ 	
1536\f\r]`,f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${a$1}(?:([^\\s"'>=/]+)(${a$1}*=${a$1}*(?:[^ 	
1537\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,w=De=>(_e,...Ae)=>({_$litType$:De,strings:_e,values:Ae}),x$1=w(1),T=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),E=new WeakMap,C=r$1.createTreeWalker(r$1,129,null,!1);function P(De,_e){if(!Array.isArray(De)||!De.hasOwnProperty("raw"))throw Error("invalid template strings array");return e$3!==void 0?e$3.createHTML(_e):_e}const V=(De,_e)=>{const Ae=De.length-1,ke=[];let Le,Fe=_e===2?"<svg>":"",Ve=f;for(let Ie=0;Ie<Ae;Ie++){const je=De[Ie];let Ke,$e,qe=-1,ci=0;for(;ci<je.length&&(Ve.lastIndex=ci,$e=Ve.exec(je),$e!==null);)ci=Ve.lastIndex,Ve===f?$e[1]==="!--"?Ve=_:$e[1]!==void 0?Ve=m:$e[2]!==void 0?(y.test($e[2])&&(Le=RegExp("</"+$e[2],"g")),Ve=p):$e[3]!==void 0&&(Ve=p):Ve===p?$e[0]===">"?(Ve=Le??f,qe=-1):$e[1]===void 0?qe=-2:(qe=Ve.lastIndex-$e[2].length,Ke=$e[1],Ve=$e[3]===void 0?p:$e[3]==='"'?$:g):Ve===$||Ve===g?Ve=p:Ve===_||Ve===m?Ve=f:(Ve=p,Le=void 0);const gi=Ve===p&&De[Ie+1].startsWith("/>")?" ":"";Fe+=Ve===f?je+h$2:qe>=0?(ke.push(Ke),je.slice(0,qe)+o$3+je.slice(qe)+n$2+gi):je+n$2+(qe===-2?(ke.push(void 0),Ie):gi)}return[P(De,Fe+(De[Ae]||"<?>")+(_e===2?"</svg>":"")),ke]};class N{constructor({strings:_e,_$litType$:Ae},ke){let Le;this.parts=[];let Fe=0,Ve=0;const Ie=_e.length-1,je=this.parts,[Ke,$e]=V(_e,Ae);if(this.el=N.createElement(Ke,ke),C.currentNode=this.el.content,Ae===2){const qe=this.el.content,ci=qe.firstChild;ci.remove(),qe.append(...ci.childNodes)}for(;(Le=C.nextNode())!==null&&je.length<Ie;){if(Le.nodeType===1){if(Le.hasAttributes()){const qe=[];for(const ci of Le.getAttributeNames())if(ci.endsWith(o$3)||ci.startsWith(n$2)){const gi=$e[Ve++];if(qe.push(ci),gi!==void 0){const Ai=Le.getAttribute(gi.toLowerCase()+o$3).split(n$2),oi=/([.?@])?(.*)/.exec(gi);je.push({type:1,index:Fe,name:oi[2],strings:Ai,ctor:oi[1]==="."?H:oi[1]==="?"?L:oi[1]==="@"?z:k})}else je.push({type:6,index:Fe})}for(const ci of qe)Le.removeAttribute(ci)}if(y.test(Le.tagName)){const qe=Le.textContent.split(n$2),ci=qe.length-1;if(ci>0){Le.textContent=s$2?s$2.emptyScript:"";for(let gi=0;gi<ci;gi++)Le.append(qe[gi],u()),C.nextNode(),je.push({type:2,index:++Fe});Le.append(qe[ci],u())}}}else if(Le.nodeType===8)if(Le.data===l$2)je.push({type:2,index:Fe});else{let qe=-1;for(;(qe=Le.data.indexOf(n$2,qe+1))!==-1;)je.push({type:7,index:Fe}),qe+=n$2.length-1}Fe++}}static createElement(_e,Ae){const ke=r$1.createElement("template");return ke.innerHTML=_e,ke}}function S(De,_e,Ae=De,ke){var Le,Fe,Ve,Ie;if(_e===T)return _e;let je=ke!==void 0?(Le=Ae._$Co)===null||Le===void 0?void 0:Le[ke]:Ae._$Cl;const Ke=d(_e)?void 0:_e._$litDirective$;return(je==null?void 0:je.constructor)!==Ke&&((Fe=je==null?void 0:je._$AO)===null||Fe===void 0||Fe.call(je,!1),Ke===void 0?je=void 0:(je=new Ke(De),je._$AT(De,Ae,ke)),ke!==void 0?((Ve=(Ie=Ae)._$Co)!==null&&Ve!==void 0?Ve:Ie._$Co=[])[ke]=je:Ae._$Cl=je),je!==void 0&&(_e=S(De,je._$AS(De,_e.values),je,ke)),_e}class M{constructor(_e,Ae){this._$AV=[],this._$AN=void 0,this._$AD=_e,this._$AM=Ae}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(_e){var Ae;const{el:{content:ke},parts:Le}=this._$AD,Fe=((Ae=_e==null?void 0:_e.creationScope)!==null&&Ae!==void 0?Ae:r$1).importNode(ke,!0);C.currentNode=Fe;let Ve=C.nextNode(),Ie=0,je=0,Ke=Le[0];for(;Ke!==void 0;){if(Ie===Ke.index){let $e;Ke.type===2?$e=new R(Ve,Ve.nextSibling,this,_e):Ke.type===1?$e=ne
1537w Ke.ctor(Ve,Ke.name,Ke.strings,this,_e):Ke.type===6&&($e=new Z(Ve,this,_e)),this._$AV.push($e),Ke=Le[++je]}Ie!==(Ke==null?void 0:Ke.index)&&(Ve=C.nextNode(),Ie++)}return C.currentNode=r$1,Fe}v(_e){let Ae=0;for(const ke of this._$AV)ke!==void 0&&(ke.strings!==void 0?(ke._$AI(_e,ke,Ae),Ae+=ke.strings.length-2):ke._$AI(_e[Ae])),Ae++}}class R{constructor(_e,Ae,ke,Le){var Fe;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=_e,this._$AB=Ae,this._$AM=ke,this.options=Le,this._$Cp=(Fe=Le==null?void 0:Le.isConnected)===null||Fe===void 0||Fe}get _$AU(){var _e,Ae;return(Ae=(_e=this._$AM)===null||_e===void 0?void 0:_e._$AU)!==null&&Ae!==void 0?Ae:this._$Cp}get parentNode(){let _e=this._$AA.parentNode;const Ae=this._$AM;return Ae!==void 0&&(_e==null?void 0:_e.nodeType)===11&&(_e=Ae.parentNode),_e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(_e,Ae=this){_e=S(this,_e,Ae),d(_e)?_e===A||_e==null||_e===""?(this._$AH!==A&&this._$AR(),this._$AH=A):_e!==this._$AH&&_e!==T&&this._(_e):_e._$litType$!==void 0?this.g(_e):_e.nodeType!==void 0?this.$(_e):v(_e)?this.T(_e):this._(_e)}k(_e){return this._$AA.parentNode.insertBefore(_e,this._$AB)}$(_e){this._$AH!==_e&&(this._$AR(),this._$AH=this.k(_e))}_(_e){this._$AH!==A&&d(this._$AH)?this._$AA.nextSibling.data=_e:this.$(r$1.createTextNode(_e)),this._$AH=_e}g(_e){var Ae;const{values:ke,_$litType$:Le}=_e,Fe=typeof Le=="number"?this._$AC(_e):(Le.el===void 0&&(Le.el=N.createElement(P(Le.h,Le.h[0]),this.options)),Le);if(((Ae=this._$AH)===null||Ae===void 0?void 0:Ae._$AD)===Fe)this._$AH.v(ke);else{const Ve=new M(Fe,this),Ie=Ve.u(this.options);Ve.v(ke),this.$(Ie),this._$AH=Ve}}_$AC(_e){let Ae=E.get(_e.strings);return Ae===void 0&&E.set(_e.strings,Ae=new N(_e)),Ae}T(_e){c$1(this._$AH)||(this._$AH=[],this._$AR());const Ae=this._$AH;let ke,Le=0;for(const Fe of _e)Le===Ae.length?Ae.push(ke=new R(this.k(u()),this.k(u()),this,this.options)):ke=Ae[Le],ke._$AI(Fe),Le++;Le<Ae.length&&(this._$AR(ke&&ke._$AB.nextSibling,Le),Ae.length=Le)}_$AR(_e=this._$AA.nextSibling,Ae){var ke;for((ke=this._$AP)===null||ke===void 0||ke.call(this,!1,!0,Ae);_e&&_e!==this._$AB;){const Le=_e.nextSibling;_e.remove(),_e=Le}}setConnected(_e){var Ae;this._$AM===void 0&&(this._$Cp=_e,(Ae=this._$AP)===null||Ae===void 0||Ae.call(this,_e))}}class k{constructor(_e,Ae,ke,Le,Fe){this.type=1,this._$AH=A,this._$AN=void 0,this.element=_e,this.name=Ae,this._$AM=Le,this.options=Fe,ke.length>2||ke[0]!==""||ke[1]!==""?(this._$AH=Array(ke.length-1).fill(new String),this.strings=ke):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(_e,Ae=this,ke,Le){const Fe=this.strings;let Ve=!1;if(Fe===void 0)_e=S(this,_e,Ae,0),Ve=!d(_e)||_e!==this._$AH&&_e!==T,Ve&&(this._$AH=_e);else{const Ie=_e;let je,Ke;for(_e=Fe[0],je=0;je<Fe.length-1;je++)Ke=S(this,Ie[ke+je],Ae,je),Ke===T&&(Ke=this._$AH[je]),Ve||(Ve=!d(Ke)||Ke!==this._$AH[je]),Ke===A?_e=A:_e!==A&&(_e+=(Ke??"")+Fe[je+1]),this._$AH[je]=Ke}Ve&&!Le&&this.j(_e)}j(_e){_e===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,_e??"")}}class H extends k{constructor(){super(...arguments),this.type=3}j(_e){this.element[this.name]=_e===A?void 0:_e}}const I=s$2?s$2.emptyScript:"";class L extends k{constructor(){super(...arguments),this.type=4}j(_e){_e&&_e!==A?this.element.setAttribute(this.name,I):this.element.removeAttribute(this.name)}}class z extends k{constructor(_e,Ae,ke,Le,Fe){super(_e,Ae,ke,Le,Fe),this.type=5}_$AI(_e,Ae=this){var ke;if((_e=(ke=S(this,_e,Ae,0))!==null&&ke!==void 0?ke:A)===T)return;const Le=this._$AH,Fe=_e===A&&Le!==A||_e.capture!==Le.capture||_e.once!==Le.once||_e.passive!==Le.passive,Ve=_e!==A&&(Le===A||Fe);Fe&&this.element.removeEventListener(this.name,this,Le),Ve&&this.element.addEventListener(this.name,this,_e),this._$AH=_e}handleEvent(_e){var Ae,ke;typeof this._$AH=="function"?this._$AH.call((ke=(Ae=this.options)===null||Ae===void 0?void 0:Ae.host)!==null&&ke!==void 0?ke:this.element,_e):this._$AH.handleEvent(_e)}}class Z{constructor(_e,Ae,ke){this.element=_e,this.type=6,this._$AN=void 0,this._$AM=Ae,this.options=ke}get _$AU(){return this._$AM._$AU}_$AI(_e){S(this,_e)}}const B=i$2.litHtmlPolyfillSupport;B==null||B(N,R),((t$2=i$2.litHtmlVersions)!==null&&t$2!==void 0?t$2:i$2.litHtmlVersions=[]).push("2.8.0");const D=(De,_e,Ae)=>{var ke,Le;const Fe=(ke=Ae==null?void 0:Ae.renderBefore)!==null&&ke!==void 0?ke:_e;let Ve=Fe._$litPart$;if(Ve===void 0){const Ie=(Le=Ae==null?void 0:Ae.renderBefore)!==null&&Le!==void 0?Le:null;Fe._$litPart$=Ve=new R(_e.insertBefore(u(),Ie),Ie,void 0,Ae??{})}return Ve._$AI(De),Ve};/**
1538 * @license
1539 * Copyright 2018 Google LLC
1540 * SPDX-License-Identifier: BSD-3-Clause
1541 */const l$1=De=>De??A;/**
1542 * @license
1543 * Copyright 2017 Google LLC
1544 * SPDX-License-Identifier: BSD-3-Clause
1545 */const t$1={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$2=De=>(..._e)=>({_$litDirective$:De,values:_e});let i$1=class{constructor(_e){}get _$AU(){return this._$AM._$AU}_$AT(_e,Ae,ke){this._$Ct=_e,this._$AM=Ae,this._$Ci=ke}_$AS(_e,Ae){return this.update(_e,Ae)}update(_e,Ae){return this.render(...Ae)}};/**
1546 * @license
1547 * Copyright 2017 Google LLC
1548 * SPDX-License-Identifier: BSD-3-Clause
1549 */let e$1=class extends i$1{constructor(_e){if(super(_e),this.et=A,_e.type!==t$1.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(_e){if(_e===A||_e==null)return this.ft=void 0,this.et=_e;if(_e===T)return _e;if(typeof _e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(_e===this.et)return this.ft;this.et=_e;const Ae=[_e];return Ae.raw=Ae,this.ft={_$litType$:this.constructor.resultType,strings:Ae,values:[]}}};e$1.directiveName="unsafeHTML",e$1.resultType=1;const o$2=e$2(e$1);/**
1550 * @license
1551 * Copyright 2017 Google LLC
1552 * SPDX-License-Identifier: BSD-3-Clause
1553 */class t extends e$1{}t.directiveName="unsafeSVG",t.resultType=2;const o$1=e$2(t);/**
1554 * @license
1555 * Copyright 2020 Google LLC
1556 * SPDX-License-Identifier: BSD-3-Clause
1557 */const e=De=>De.strings===void 0,s$1={},a=(De,_e=s$1)=>De._$AH=_e;/**
1558 * @license
1559 * Copyright 2017 Google LLC
1560 * SPDX-License-Identifier: BSD-3-Clause
1561 */const s=(De,_e)=>{var Ae,ke;const Le=De._$AN;if(Le===void 0)return!1;for(const Fe of Le)(ke=(Ae=Fe)._$AO)===null||ke===void 0||ke.call(Ae,_e,!1),s(Fe,_e);return!0},o=De=>{let _e,Ae;do{if((_e=De._$AM)===void 0)break;Ae=_e._$AN,Ae.delete(De),De=_e}while((Ae==null?void 0:Ae.size)===0)},r=De=>{for(let _e;_e=De._$AM;De=_e){let Ae=_e._$AN;if(Ae===void 0)_e._$AN=Ae=new Set;else if(Ae.has(De))break;Ae.add(De),l(_e)}};function n$1(De){this._$AN!==void 0?(o(this),this._$AM=De,r(this)):this._$AM=De}function h$1(De,_e=!1,Ae=0){const ke=this._$AH,Le=this._$AN;if(Le!==void 0&&Le.size!==0)if(_e)if(Array.isArray(ke))for(let Fe=Ae;Fe<ke.length;Fe++)s(ke[Fe],!1),o(ke[Fe]);else ke!=null&&(s(ke,!1),o(ke));else s(this,De)}const l=De=>{var _e,Ae,ke,Le;De.type==t$1.CHILD&&((_e=(ke=De)._$AP)!==null&&_e!==void 0||(ke._$AP=h$1),(Ae=(Le=De)._$AQ)!==null&&Ae!==void 0||(Le._$AQ=n$1))};class c extends i$1{constructor(){super(...arguments),this._$AN=void 0}_$AT(_e,Ae,ke){super._$AT(_e,Ae,ke),r(this),this.isConnected=_e._$AU}_$AO(_e,Ae=!0){var ke,Le;_e!==this.isConnected&&(this.isConnected=_e,_e?(ke=this.reconnected)===null||ke===void 0||ke.call(this):(Le=this.disconnected)===null||Le===void 0||Le.call(this)),Ae&&(s(this,_e),o(this))}setValue(_e){if(e(this._$Ct))this._$Ct._$AI(_e,this);else{const Ae=[...this._$Ct._$AH];Ae[this._$Ci]=_e,this._$Ct._$AI(Ae,this,0)}}disconnected(){}reconnected(){}}var xg,Dx,L_,Mx,Q3,kx,eI,O2,ML,L2,kL;class SignalDirective extends c{constructor(Ae){super(Ae);Oi(this,Mx);Oi(this,kx);Oi(this,O2);Oi(this,L2);Oi(this,xg,null);Oi(this,Dx,!1);Oi(this,L_,null);Qn(this,Dx,Ae.type===t$1.ATTRIBUTE||Ae.type===t$1.BOOLEAN_ATTRIBUTE)}render(Ae){return Ae!==mi(this,xg)&&(this.disconnected(),Qn(this,xg,Ae),this.isConnected&&Bi(this,Mx,Q3).call(this)),mi(this,xg)?Bi(this,kx,eI).call(this,peek(mi(this,xg))):A}reconnected(){Bi(this,Mx,Q3).call(this)}disconnected(){var Ae;(Ae=mi(this,L_))==null||Ae.call(this),Qn(this,L_,null)}}xg=new WeakMap,Dx=new WeakMap,L_=new WeakMap,Mx=new WeakSet,Q3=function(){mi(this,xg)&&Qn(this,L_,effect(Bi(this,L2,kL).bind(this)))},kx=new WeakSet,eI=function(Ae){return mi(this,Dx)?l$1(Ae):Ae},O2=new WeakSet,ML=function(Ae){this.setValue(Bi(this,kx,eI).call(this,Ae))},L2=new WeakSet,kL=function(){var Ae;Bi(this,O2,ML).call(this,(Ae=mi(this,xg))==null?void 0:Ae.call(this))};function $signal(De){return e$2(SignalDirective)(computed(De))}var $_,Px,$2,Ix,tI;class SlotObserver{constructor(_e,Ae){Oi(this,Ix);Oi(this,$_,void 0);Oi(this,Px,void 0);Mr(this,"elements",new Set);Oi(this,$2,animationFrameThrottle(Bi(this,Ix,tI).bind(this)));Qn(this,$_,_e),Qn(this,Px,Ae)}connect(){Bi(this,Ix,tI).call(this);const _e=new MutationObserver(mi(this,$2));for(const Ae of mi(this,$_))_e.observe(Ae,{childList:!0,subtree:!0});onDispose(()=>_e.disconnect()),onDispose(this.disconnect.bind(this))}disconnect(){this.elements.clear()}assign(_e,Ae){isDOMNode(_e)?(Ae.textContent="",Ae.append(_e)):(D(null,Ae),D(_e,Ae)),Ae.style.display||(Ae.style.display="contents");const ke=Ae.firstElementChild;if(!ke)return;const Le=Ae.getAttribute("data-class");Le&&ke.classList.add(...Le.split(" "))}}$_=new WeakMap,Px=new WeakMap,$2=new WeakMap,Ix=new WeakSet,tI=function(_e){if(_e&&!_e.some(Le=>Le.addedNodes.length))return;let Ae=!1,ke=mi(this,$_).flatMap(Le=>[...Le.querySelectorAll("slot")]);for(const Le of ke)!Le.hasAttribute("name")||this.elements.has(Le)||(this.elements.add(Le),Ae=!0);Ae&&mi(this,Px).call(this,this.elements)};let id$1=0,slotIdAttr="data-slot-id";var F_,F2,z_,yT;class SlotManager{constructor(_e){Oi(this,z_);Oi(this,F_,void 0);Mr(this,"slots");Oi(this,F2,animationFrameThrottle(Bi(this,z_,yT).bind(this)));Qn(this,F_,_e),this.slots=new SlotObserver(_e,Bi(this,z_,yT).bind(this))}connect(){this.slots.connect(),Bi(this,z_,yT).call(this);const _e=new MutationObserver(mi(this,F2));for(const Ae of mi(this,F_))_e.observe(Ae,{childList:!0});onDispose(()=>_e.disconnect())}}F_=new WeakMap,F2=new WeakMap,z_=new WeakSet,yT=function(){for(const _e of mi(this,F_))for(const Ae of _e.children){if(Ae.nodeType!==1)continue;
1561const ke=Ae.getAttribute("slot");if(!ke)continue;Ae.style.display="none";let Le=Ae.getAttribute(slotIdAttr);Le||Ae.setAttribute(slotIdAttr,Le=++id$1+"");for(const Fe of this.slots.elements){if(Fe.getAttribute("name")!==ke||Fe.getAttribute(slotIdAttr)===Le)continue;const Ve=document.importNode(Ae,!0);ke.includes("-icon")&&Ve.classList.add("vds-icon"),Ve.style.display="",Ve.removeAttribute("slot"),this.slots.assign(Ve,Fe),Fe.setAttribute(slotIdAttr,Le)}}};function Icon({name:De,class:_e,state:Ae,paths:ke,viewBox:Le="0 0 32 32"}){return x$1`<svg
1562    class="${"vds-icon"+(_e?` ${_e}`:"")}"
1563    viewBox="${Le}"
1564    fill="none"
1565    aria-hidden="true"
1566    focusable="false"
1567    xmlns="http://www.w3.org/2000/svg"
1568    data-icon=${l$1(De??Ae)}
1569  >
1570    ${isString(ke)?o$1(ke):$signal(ke)}
1571  </svg>`}var B_,Rx,z2,PL,Ox,iI;class IconsLoader{constructor(_e){Oi(this,z2);Oi(this,Ox);Oi(this,B_,{});Oi(this,Rx,!1);Mr(this,"slots");this.slots=new SlotObserver(_e,Bi(this,Ox,iI).bind(this))}connect(){this.slots.connect()}load(){this.loadIcons().then(_e=>{Qn(this,B_,_e),Qn(this,Rx,!0),Bi(this,Ox,iI).call(this)})}}B_=new WeakMap,Rx=new WeakMap,z2=new WeakSet,PL=function*(){for(const _e of Object.keys(mi(this,B_))){const Ae=`${_e}-icon`;for(const ke of this.slots.elements)ke.name===Ae&&(yield{icon:mi(this,B_)[_e],slot:ke})}},Ox=new WeakSet,iI=function(){if(mi(this,Rx))for(const{icon:_e,slot:Ae}of Bi(this,z2,PL).call(this))this.slots.assign(_e,Ae)};class LayoutIconsLoader extends IconsLoader{connect(){super.connect();const{player:_e}=useMediaContext();if(!_e.el)return;let Ae,ke=new IntersectionObserver(Le=>{var Fe;(Fe=Le[0])!=null&&Fe.isIntersecting&&(Ae==null||Ae(),Ae=void 0,this.load())});ke.observe(_e.el),Ae=onDispose(()=>ke.disconnect())}}function sortVideoQualities(De,_e){return[...De].sort(_e?compareVideoQualityDesc:compareVideoQualityAsc)}function compareVideoQualityAsc(De,_e){return De.height===_e.height?(De.bitrate??0)-(_e.bitrate??0):De.height-_e.height}function compareVideoQualityDesc(De,_e){return _e.height===De.height?(_e.bitrate??0)-(De.bitrate??0):_e.height-De.height}const h=new WeakMap,n=e$2(class extends c{render(De){return A}update(De,[_e]){var Ae;const ke=_e!==this.G;return ke&&this.G!==void 0&&this.ot(void 0),(ke||this.rt!==this.lt)&&(this.G=_e,this.dt=(Ae=De.options)===null||Ae===void 0?void 0:Ae.host,this.ot(this.lt=De.element)),A}ot(De){var _e;if(typeof this.G=="function"){const Ae=(_e=this.dt)!==null&&_e!==void 0?_e:globalThis;let ke=h.get(Ae);ke===void 0&&(ke=new WeakMap,h.set(Ae,ke)),ke.get(this.G)!==void 0&&this.G.call(this.dt,void 0),ke.set(this.G,De),De!==void 0&&this.G.call(this.dt,De)}else this.G.value=De}get rt(){var De,_e,Ae;return typeof this.G=="function"?(_e=h.get((De=this.dt)!==null&&De!==void 0?De:globalThis))===null||_e===void 0?void 0:_e.get(this.G):(Ae=this.G)===null||Ae===void 0?void 0:Ae.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),defaultLayoutContext=createContext();function useDefaultLayoutContext(){return useContext(defaultLayoutContext)}const defaultLayoutProps={colorScheme:"system",download:null,customIcons:!1,disableTimeSlider:!1,menuContainer:null,menuGroup:"bottom",noAudioGain:!1,noGestures:!1,noKeyboardAnimations:!1,noModal:!1,noScrubGesture:!1,playbackRates:{min:0,max:2,step:.25},audioGains:{min:0,max:300,step:25},seekStep:10,sliderChaptersMinWidth:325,hideQualityBitrate:!1,smallWhen:!1,thumbnails:null,translations:null,when:!1};var Lx,N_,D0,$x,nI;class DefaultLayout extends Component{constructor(){super(...arguments);Oi(this,$x);Oi(this,Lx,void 0);Oi(this,N_,computed(()=>{const Ae=this.$props.when();return Bi(this,$x,nI).call(this,Ae)}));Oi(this,D0,computed(()=>{const Ae=this.$props.smallWhen();return Bi(this,$x,nI).call(this,Ae)}))}get isMatch(){return mi(this,N_).call(this)}get isSmallLayout(){return mi(this,D0).call(this)}onSetup(){Qn(this,Lx,useMediaContext()),this.setAttributes({"data-match":mi(this,N_),"data-sm":()=>mi(this,D0).call(this)?"":null,"data-lg":()=>mi(this,D0).call(this)?null:"","data-size":()=>mi(this,D0).call(this)?"sm":"lg","data-no-scrub-gesture":this.$props.noScrubGesture}),provideContext(defaultLayoutContext,{...this.$props,when:mi(this,N_),smallWhen:mi(this,D0),userPrefersAnnouncements:signal(!0),userPrefersKeyboardA
1571nimations:signal(!0),menuPortal:signal(null)})}onAttach(Ae){watchColorScheme(Ae,this.$props.colorScheme)}}Lx=new WeakMap,N_=new WeakMap,D0=new WeakMap,$x=new WeakSet,nI=function(Ae){return Ae!=="never"&&(isBoolean(Ae)?Ae:computed(()=>Ae(mi(this,Lx).player.state))())},Mr(DefaultLayout,"props",defaultLayoutProps);const defaultlayout__proto=DefaultLayout.prototype;prop(defaultlayout__proto,"isMatch");prop(defaultlayout__proto,"isSmallLayout");function setLayoutName(De,_e){effect(()=>{const{player:Ae}=useMediaContext(),ke=Ae.el;return ke&&setAttribute(ke,"data-layout",_e()&&De),()=>ke==null?void 0:ke.removeAttribute("data-layout")})}function i18n$1(De,_e){var Ae;return((Ae=De())==null?void 0:Ae[_e])??_e}function DefaultAnnouncer(){return $signal(()=>{const{translations:De,userPrefersAnnouncements:_e}=useDefaultLayoutContext();return _e()?x$1`<media-announcer .translations=${$signal(De)}></media-announcer>`:null})}function IconSlot(De,_e=""){return x$1`<slot
1572    name=${`${De}-icon`}
1573    data-class=${`vds-icon vds-${De}-icon${_e?` ${_e}`:""}`}
1574  ></slot>`}function IconSlots(De){return De.map(_e=>IconSlot(_e))}function $i18n$1(De,_e){return $signal(()=>i18n$1(De,_e))}function DefaultAirPlayButton({tooltip:De}){const{translations:_e}=useDefaultLayoutContext(),{remotePlaybackState:Ae}=useMediaState(),ke=$signal(()=>{const Fe=i18n$1(_e,"AirPlay"),Ve=uppercaseFirstChar(Ae());return`${Fe} ${Ve}`}),Le=$i18n$1(_e,"AirPlay");return x$1`
1575    <media-tooltip class="vds-airplay-tooltip vds-tooltip">
1576      <media-tooltip-trigger>
1577        <media-airplay-button class="vds-airplay-button vds-button" aria-label=${ke}>
1578          ${IconSlot("airplay")}
1579        </media-airplay-button>
1580      </media-tooltip-trigger>
1581      <media-tooltip-content class="vds-tooltip-content" placement=${De}>
1582        <span class="vds-airplay-tooltip-text">${Le}</span>
1583      </media-tooltip-content>
1584    </media-tooltip>
1585  `}function DefaultGoogleCastButton({tooltip:De}){const{translations:_e}=useDefaultLayoutContext(),{remotePlaybackState:Ae}=useMediaState(),ke=$signal(()=>{const Fe=i18n$1(_e,"Google Cast"),Ve=uppercaseFirstChar(Ae());return`${Fe} ${Ve}`}),Le=$i18n$1(_e,"Google Cast");return x$1`
1586    <media-tooltip class="vds-google-cast-tooltip vds-tooltip">
1587      <media-tooltip-trigger>
1588        <media-google-cast-button class="vds-google-cast-button vds-button" aria-label=${ke}>
1589          ${IconSlot("google-cast")}
1590        </media-google-cast-button>
1591      </media-tooltip-trigger>
1592      <media-tooltip-content class="vds-tooltip-content" placement=${De}>
1593        <span class="vds-google-cast-tooltip-text">${Le}</span>
1594      </media-tooltip-content>
1595    </media-tooltip>
1596  `}function DefaultPlayButton({tooltip:De}){const{translations:_e}=useDefaultLayoutContext(),Ae=$i18n$1(_e,"Play"),ke=$i18n$1(_e,"Pause");return x$1`
1597    <media-tooltip class="vds-play-tooltip vds-tooltip">
1598      <media-tooltip-trigger>
1599        <media-play-button
1600          class="vds-play-button vds-button"
1601          aria-label=${$i18n$1(_e,"Play")}
1602        >
1603          ${IconSlots(["play","pause","replay"])}
1604        </media-play-button>
1605      </media-tooltip-trigger>
1606      <media-tooltip-content class="vds-tooltip-content" placement=${De}>
1607        <span class="vds-play-tooltip-text">${Ae}</span>
1608        <span class="vds-pause-tooltip-text">${ke}</span>
1609      </media-tooltip-content>
1610    </media-tooltip>
1611  `}function DefaultMuteButton({tooltip:De,ref:_e=noop}){const{translations:Ae}=useDefaultLayoutContext(),ke=$i18n$1(Ae,"Mute"),Le=$i18n$1(Ae,"Unmute");return x$1`
1612    <media-tooltip class="vds-mute-tooltip vds-tooltip">
1613      <media-tooltip-trigger>
1614        <media-mute-button
1615          class="vds-mute-button vds-button"
1616          aria-label=${$i18n$1(Ae,"Mute")}
1617          ${n(_e)}
1618        >
1619          ${IconSlots(["mute","volume-low","volume-high"])}
1620        </media-mute-button>
1621      </media-tooltip-trigger>
1622      <media-tooltip-content class="vds-tooltip-content" placement=${De}>
1623        <span class="vds-mute-tooltip-text">${Le}</span>
1624        <span class="vds-unmute-tooltip-text">${ke}</span>
1625      </media-tooltip-content>
1626    </media-tooltip>
1627  `}function DefaultCaptionButton({tooltip:De}){const{translations:_e}=useDefaultLayoutContext(),Ae=$i18n$1(_e,"Closed-Captions On"),ke=$i18n$1(_e,"Closed-Captions Off");return x$1`
1628    <media-tooltip class="vds-caption-tooltip vds-tooltip">
1629      <media-tooltip-trigger>
1630        <media-caption-button
1631          class="vds-caption-button vds-button"
1632          aria-label=${$i18n$1(_e,"Captions")}
1633        >
1634          ${IconSlots(["cc-on","cc-off"])}
1635        </media-caption-button>
1636      </media-tooltip-trigger>
1637      <media-tooltip-content class="vds-tooltip-content" placement=${De}>
1638        <span class="vds-cc-on-tooltip-text">${ke}</span>
1639        <span class="vds-cc-off-tooltip-text">${Ae}</span>
1640      </media-tooltip-content>
1641    </media-tooltip>
1642  `}function DefaultPIPButton(){const{translations:De}=useDefaultLayoutContext(),_e=$i18n$1(De,"Enter PiP"),Ae=$i18n$1(De,"Exit PiP");return x$1`
1643    <media-tooltip class="vds-pip-tooltip vds-tooltip">
1644      <media-tooltip-trigger>
1645        <media-pip-button
1646          class="vds-pip-button vds-button"
1647          aria-label=${$i18n$1(De,"PiP")}
1648        >
1649          ${IconSlots(["pip-enter","pip-exit"])}
1650        </media-pip-button>
1651      </media-tooltip-trigger>
1652      <media-tooltip-content class="vds-tooltip-content">
1653        <span class="vds-pip-enter-tooltip-text">${_e}</span>
1654        <span class="vds-pip-exit-tooltip-text">${Ae}</span>
1655      </media-tooltip-content>
1656    </media-tooltip>
1657  `}function DefaultFullscreenButton({tooltip:De}){const{translations:_e}=useDefaultLayoutContext(),Ae=$i18n$1(_e,"Enter Fullscreen"),ke=$i18n$1(_e,"Exit Fullscreen");return x$1`
1658    <media-tooltip class="vds-fullscreen-tooltip vds-tooltip">
1659      <media-tooltip-trigger>
1660        <media-fullscreen-button
1661          class="vds-fullscreen-button vds-button"
1662          aria-label=${$i18n$1(_e,"Fullscreen")}
1663        >
1664          ${IconSlots(["fs-enter","fs-exit"])}
1665        </media-fullscreen-button>
1666      </media-tooltip-trigger>
1667      <media-tooltip-content class="vds-tooltip-content" placement=${De}>
1668        <span class="vds-fs-enter-tooltip-text">${Ae}</span>
1669        <span class="vds-fs-exit-tooltip-text">${ke}</span>
1670      </media-tooltip-content>
1671    </media-tooltip>
1672  `}function DefaultSeekButton({backward:De,tooltip:_e}){const{translations:Ae,seekStep:ke}=useDefaultLayoutContext(),Le=De?"Seek Backward":"Seek Forward",Fe=$i18n$1(Ae,Le);return x$1`
1673    <media-tooltip class="vds-seek-tooltip vds-tooltip">
1674      <media-tooltip-trigger>
1675        <media-seek-button
1676          class="vds-seek-button vds-button"
1677          seconds=${$signal(()=>(De?-1:1)*ke())}
1678          aria-label=${Fe}
1679        >
1680          ${IconSlot(De?"seek-backward":"seek-forward")}
1681        </media-seek-button>
1682      </media-tooltip-trigger>
1683      <media-tooltip-content class="vds-tooltip-content" placement=${_e}>
1684        ${$i18n$1(Ae,Le)}
1685      </media-tooltip-content>
1686    </media-tooltip>
1687  `}function DefaultLiveButton(){const{translations:De}=useDefaultLayoutContext(),{live:_e}=useMediaState(),Ae=$i18n$1(De,"Skip To Live"),ke=$i18n$1(De,"LIVE");return _e()?x$1`
1688        <media-live-button class="vds-live-button" aria-label=${Ae}>
1689          <span class="vds-live-button-text">${ke}</span>
1690        </media-live-button>
1691      `:null}function DefaultDownloadButton(){return $signal(()=>{const{download:De,translations:_e}=useDefaultLayoutContext(),Ae=De();if(isNil(Ae))return null;const{source:ke,title:Le}=useMediaState(),Fe=ke(),Ve=getDownloadFile({title:Le(),src:Fe,download:Ae});return isString(Ve==null?void 0:Ve.url)?x$1`
1692          <media-tooltip class="vds-download-tooltip vds-tooltip">
1693            <media-tooltip-trigger>
1694              <a
1695                role="button"
1696                class="vds-download-button vds-button"
1697                aria-label=${$i18n$1(_e,"Download")}
1698                href=${appendParamsToURL(Ve.url,{download:Ve.name})}
1699                download=${Ve.name}
1700                target="_blank"
1701              >
1702                <slot name="download-icon" data-class="vds-icon" />
1703              </a>
1704            </media-tooltip-trigger>
1705            <media-tooltip-content class="vds-tooltip-content" placement="top">
1706              ${$i18n$1(_e,"Download")}
1707            </media-tooltip-content>
1708          </media-tooltip>
1709        `:null})}function DefaultCaptions(){const{translations:De}=useDefaultLayoutContext();return x$1`
1710    <media-captions
1711      class="vds-captions"
1712      .exampleText=${$i18n$1(De,"Captions look like this")}
1713    ></media-captions>
1714  `}function DefaultControlsSpacer(){return x$1`<div class="vds-controls-spacer"></div>`}function MenuPortal$1(De,_e){return x$1`
1715    <media-menu-portal .container=${$signal(De)} disabled="fullscreen">
1716      ${_e}
1717    </media-menu-portal>
1718  `}function createMenuContainer(De,_e,Ae,ke){let Le=isString(_e)?document.querySelector(_e):_e;
1718Le||(Le=De==null?void 0:De.closest("dialog")),Le||(Le=document.body);const Fe=document.createElement("div");Fe.style.display="contents",Fe.classList.add(Ae),Le.append(Fe),effect(()=>{if(!Fe)return;const{viewType:Ie}=useMediaState(),je=ke();setAttribute(Fe,"data-view-type",Ie()),setAttribute(Fe,"data-sm",je),setAttribute(Fe,"data-lg",!je),setAttribute(Fe,"data-size",je?"sm":"lg")});const{colorScheme:Ve}=useDefaultLayoutContext();return watchColorScheme(Fe,Ve),Fe}function DefaultChaptersMenu({placement:De,tooltip:_e,portal:Ae}){const{textTracks:ke}=useMediaContext(),{viewType:Le,seekableStart:Fe,seekableEnd:Ve}=useMediaState(),{translations:Ie,thumbnails:je,menuPortal:Ke,noModal:$e,menuGroup:qe,smallWhen:ci}=useDefaultLayoutContext();if(computed(()=>{var fi;const Di=Fe(),zi=Ve(),an=signal(null);watchActiveTextTrack(ke,"chapters",an.set);const Je=(fi=an())==null?void 0:fi.cues.filter(Gi=>Gi.startTime<=zi&&Gi.endTime>=Di);return!(Je!=null&&Je.length)})())return null;const Ai=computed(()=>$e()?unwrap(De):ci()?null:unwrap(De)),oi=computed(()=>!ci()&&qe()==="bottom"&&Le()==="video"?26:0),ii=signal(!1);function hi(){ii.set(!0)}function Ei(){ii.set(!1)}const Li=x$1`
1719    <media-menu-items
1720      class="vds-chapters-menu-items vds-menu-items"
1721      placement=${$signal(Ai)}
1722      offset=${$signal(oi)}
1723    >
1724      ${$signal(()=>ii()?x$1`
1725          <media-chapters-radio-group
1726            class="vds-chapters-radio-group vds-radio-group"
1727            .thumbnails=${$signal(je)}
1728          >
1729            <template>
1730              <media-radio class="vds-chapter-radio vds-radio">
1731                <media-thumbnail class="vds-thumbnail"></media-thumbnail>
1732                <div class="vds-chapter-radio-content">
1733                  <span class="vds-chapter-radio-label" data-part="label"></span>
1734                  <span class="vds-chapter-radio-start-time" data-part="start-time"></span>
1735                  <span class="vds-chapter-radio-duration" data-part="duration"></span>
1736                </div>
1737              </media-radio>
1738            </template>
1739          </media-chapters-radio-group>
1740        `:null)}
1741    </media-menu-items>
1742  `;return x$1`
1743    <media-menu class="vds-chapters-menu vds-menu" @open=${hi} @close=${Ei}>
1744      <media-tooltip class="vds-tooltip">
1745        <media-tooltip-trigger>
1746          <media-menu-button
1747            class="vds-menu-button vds-button"
1748            aria-label=${$i18n$1(Ie,"Chapters")}
1749          >
1750            ${IconSlot("menu-chapters")}
1751          </media-menu-button>
1752        </media-tooltip-trigger>
1753        <media-tooltip-content
1754          class="vds-tooltip-content"
1755          placement=${isFunction(_e)?$signal(_e):_e}
1756        >
1757          ${$i18n$1(Ie,"Chapters")}
1758        </media-tooltip-content>
1759      </media-tooltip>
1760      ${MenuPortal$1(Ke,Li)}
1761    </media-menu>
1762  `}function hexToRgb(De){const{style:_e}=new Option;return _e.color=De,_e.color.match(/\((.*?)\)/)[1].replace(/,/g," ")}const FONT_COLOR_OPTION={type:"color"},FONT_FAMILY_OPTION={type:"radio",values:{"Monospaced Serif":"mono-serif","Proportional Serif":"pro-serif","Monospaced Sans-Serif":"mono-sans","Proportional Sans-Serif":"pro-sans",Casual:"casual",Cursive:"cursive","Small Capitals":"capitals"}},FONT_SIZE_OPTION={type:"slider",min:0,max:400,step:25,upIcon:null,downIcon:null},FONT_OPACITY_OPTION={type:"slider",min:0,max:100,step:5,upIcon:null,downIcon:null},FONT_TEXT_SHADOW_OPTION={type:"radio",values:["None","Drop Shadow","Raised","Depressed","Outline"]},FONT_DEFAULTS={fontFamily:"pro-sans",fontSize:"100%",textColor:"#ffffff",textOpacity:"100%",textShadow:"none",textBg:"#000000",textBgOpacity:"100%",displayBg:"#000000",displayBgOpacity:"0%"},FONT_SIGNALS=Object.keys(FONT_DEFAULTS).reduce((De,_e)=>({...De,[_e]:signal(FONT_DEFAULTS[_e])}),{});for(const De of Object.keys(FONT_SIGNALS)){const _e=localStorage.getItem(`vds-player:${camelToKebabCase(De)}`);isString(_e)&&FONT_SIGNALS[De].set(_e)}function onFontReset(){for(const De of Object.keys(FONT_SIGNALS)){const _e=FONT_DEFAULTS[De];FONT_SIGNALS[De].set(_e)}}let isWatchingVars=!1,players=new Set;function updateFontCssVars(){const{player:De}=useMediaContext();players.add(De),onDispose(()=>players.delete(De)),isWatchingVars||(scoped(()=>{for(const _e of keysOf(FONT_SIGNALS)){const Ae=FONT_SIGNALS[_e],ke=FONT_DEFAULTS[_e],Le=`--media-user-${camelToKebabCase(_e)}`,Fe=`vds-player:${camelToKebabCase(_e)}`;effect(()=>{var Ke;const Ve=Ae(),Ie=Ve===ke,je=Ie?null:getCssVarValue(De,_e,Ve);for(const $e of players)(Ke=$e.el)==null||Ke.style.setProperty(Le,je);Ie?localStorage.removeItem(Fe):localStorage.setItem(Fe,Ve)})}},null),isWatchingVars=!0)}function getCssVarValue(De,_e,Ae){var ke;switch(_e){case"fontFamily":const Le=Ae==="capitals"?"small-caps":"";return(ke=De.el)==null||ke.style.setProperty("--media-user-font-variant",Le),getFontFamilyCSSVarValue(Ae);case"fontSize":case"textOpacity":case"textBgOpacity":case"displayBgOpacity":return percentToRatio(Ae);case"textColor":return`rgb(${hexToRgb(Ae)} / var(--media-user-text-opacity, 1))`;case"textShadow":return getTextShadowCssVarValue(Ae);case"textBg":return`rgb(${hexToRgb(Ae)} / var(--media-user-text-bg-opacity, 1))`;case"displayBg":return`rgb(${hexToRgb(Ae)} / var(--media-user-display-bg-opacity, 1))`}}function percentToRatio(De){return(parseInt(De)/100).toString()}function getFontFamilyCSSVarValue(De){switch(De){case"mono-serif":return'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';case"mono-sans":return'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';case"pro-sans":return'Roboto, "Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif';case"casual":return'"Comic Sans MS", Impact, Handlee, fantasy';case"cursive":return'"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';case"capitals":return'"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif + font-variant=small-caps';default:return'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif'}}function getTextShadowCssVarValue(De){switch(De){case"drop shadow":return"rgb(34, 34, 34) 1.86389px 1.86389px 2.79583px, rgb(34, 34, 34) 1.86389px 1.86389px 3.72778px, rgb(34, 34, 34) 1.86389px 1.86389px 4.65972px";case"raised":return"rgb(34, 34, 34) 1px 1px, rgb(34, 34, 34) 2px 2px";case"depressed":return"rgb(204, 204, 204) 1px 1px, rgb(34, 34, 34) -1px -1px";case"outline":return"rgb(34, 34, 34) 0px 0px 1.86389px, rgb(34, 34, 34) 0px 0px 1.86389px, rgb(34, 34, 34) 0px 0px 1.86389px, rgb(34, 34, 34) 0px 0px 1.86389px, rgb(34, 34, 34) 0px 0px 1.86389px";default:return""}}let sectionId=0;function DefaultMenuSection({label:De="",value:_e="",children:Ae}){if(!De)return x$1`
1763      <div class="vds-menu-section">
1764        <div class="vds-menu-section-body">${Ae}</div>
1765      </div>
1766    `;
vendor: 5,351 bytes, lines 1766-1836
1766const ke=`vds-menu-section-${++sectionId}`;return x$1`
1767    <section class="vds-menu-section" role="group" aria-labelledby=${ke}>
1768      <div class="vds-menu-section-title">
1769        <header id=${ke}>${De}</header>
1770        ${_e?x$1`<div class="vds-menu-section-value">${_e}</div>`:null}
1771      </div>
1772      <div class="vds-menu-section-body">${Ae}</div>
1773    </section>
1774  `}function DefaultMenuItem({label:De,children:_e}){return x$1`
1775    <div class="vds-menu-item">
1776      <div class="vds-menu-item-label">${De}</div>
1777      ${_e}
1778    </div>
1779  `}function DefaultMenuButton({label:De,icon:_e,hint:Ae}){return x$1`
1780    <media-menu-button class="vds-menu-item">
1781      ${IconSlot("menu-arrow-left","vds-menu-close-icon")}
1782      ${_e?IconSlot(_e,"vds-menu-item-icon"):null}
1783      <span class="vds-menu-item-label">${$signal(De)}</span>
1784      <span class="vds-menu-item-hint" data-part="hint">${Ae?$signal(Ae):null} </span>
1785      ${IconSlot("menu-arrow-right","vds-menu-open-icon")}
1786    </media-menu-button>
1787  `}function DefaultRadioGroup({value:De=null,options:_e,hideLabel:Ae=!1,children:ke=null,onChange:Le=null}){function Fe(Ve){const{value:Ie,label:je}=Ve;return x$1`
1788      <media-radio class="vds-radio" value=${Ie}>
1789        ${IconSlot("menu-radio-check")}
1790        ${Ae?null:x$1`
1791              <span class="vds-radio-label" data-part="label">
1792                ${isString(je)?je:$signal(je)}
1793              </span>
1794            `}
1795        ${isFunction(ke)?ke(Ve):ke}
1796      </media-radio>
1797    `}return x$1`
1798    <media-radio-group
1799      class="vds-radio-group"
1800      value=${isString(De)?De:De?$signal(De):""}
1801      @change=${Le}
1802    >
1803      ${isArray(_e)?_e.map(Fe):$signal(()=>_e().map(Fe))}
1804    </media-radio-group>
1805  `}function createRadioOptions(De){return isArray(De)?De.map(_e=>({label:_e,value:_e.toLowerCase()})):Object.keys(De).map(_e=>({label:_e,value:De[_e]}))}function DefaultSliderParts(){return x$1`
1806    <div class="vds-slider-track"></div>
1807    <div class="vds-slider-track-fill vds-slider-track"></div>
1808    <div class="vds-slider-thumb"></div>
1809  `}function DefaultSliderSteps(){return x$1`
1810    <media-slider-steps class="vds-slider-steps">
1811      <template>
1812        <div class="vds-slider-step"></div>
1813      </template>
1814    </media-slider-steps>
1815  `}function DefaultMenuSliderItem({label:De=null,value:_e=null,upIcon:Ae="",downIcon:ke="",children:Le,isMin:Fe,isMax:Ve}){const Ie=De||_e,je=[ke?IconSlot(ke,"down"):null,Le,Ae?IconSlot(Ae,"up"):null];return x$1`
1816    <div
1817      class=${`vds-menu-item vds-menu-slider-item${Ie?" group":""}`}
1818      data-min=${$signal(()=>Fe()?"":null)}
1819      data-max=${$signal(()=>Ve()?"":null)}
1820    >
1821      ${Ie?x$1`
1822            <div class="vds-menu-slider-title">
1823              ${[De?x$1`<div>${De}</div>`:null,_e?x$1`<div>${_e}</div>`:null]}
1824            </div>
1825            <div class="vds-menu-slider-body">${je}</div>
1826          `:je}
1827    </div>
1828  `}const FONT_SIZE_OPTION_WITH_ICONS={...FONT_SIZE_OPTION,upIcon:"menu-opacity-up",downIcon:"menu-opacity-down"},FONT_OPACITY_OPTION_WITH_ICONS={...FONT_OPACITY_OPTION,upIcon:"menu-opacity-up",downIcon:"menu-opacity-down"};function DefaultFontMenu(){return $signal(()=>{const{hasCaptions:De}=useMediaState(),{translations:_e}=useDefaultLayoutContext();return De()?x$1`
1829      <media-menu class="vds-font-menu vds-menu">
1830        ${DefaultMenuButton({label:()=>i18n$1(_e,"Caption Styles")})}
1831        <media-menu-items class="vds-menu-items">
1832          ${[DefaultMenuSection({label:$i18n$1(_e,"Font"),children:[DefaultFontFamilyMenu(),DefaultFontSizeSlider()]}),DefaultMenuSection({label:$i18n$1(_e,"Text"),children:[DefaultTextColorInput(),DefaultTextShadowMenu(),DefaultTextOpacitySlider()]}),DefaultMenuSection({label:$i18n$1(_e,"Text Background"),children:[DefaultTextBgInput(),DefaultTextBgOpacitySlider()]}),DefaultMenuSection({label:$i18n$1(_e,"Display Background"),children:[DefaultDisplayBgInput(),DefaultDisplayOpacitySlider()]}),DefaultMenuSection({children:[DefaultResetMenuItem()]})]}
1833        </media-menu-items>
1834      </media-menu>
1835    `:null})}function DefaultFontFamilyMenu(){return DefaultFontSetting({label:"Family",option:FONT_FAMILY_OPTION,type:"fontFamily"})}function DefaultFontSizeSlider(){return DefaultFontSetting({label:"Size",option:FONT_SIZE_OPTION_WITH_ICONS,type:"fontSize"})}function DefaultTextColorInput(){return DefaultFontSetting({label:"Color",option:FONT_COLOR_OPTION,type:"textColor"})}function DefaultTextOpacitySlider(){return DefaultFontSetting({label:"Opacity",option:FONT_OPACITY_OPTION_WITH_ICONS,type:"textOpacity"})}function DefaultTextShadowMenu(){return DefaultFontSetting({label:"Shadow",option:FONT_TEXT_SHADOW_OPTION,type:"textShadow"})}function DefaultTextBgInput(){return DefaultFontSetting({label:"Color",option:FONT_COLOR_OPTION,type:"textBg"})}function DefaultTextBgOpacitySlider(){return DefaultFontSetting({label:"Opacity",option:FONT_OPACITY_OPTION_WITH_ICONS,type:"textBgOpacity"})}function DefaultDisplayBgInput(){return DefaultFontSetting({label:"Color",option:FONT_COLOR_OPTION,type:"displayBg"})}function DefaultDisplayOpacitySlider(){return DefaultFontSetting({label:"Opacity",option:FONT_OPACITY_OPTION_WITH_ICONS,type:"displayBgOpacity"})}function DefaultResetMenuItem(){const{translations:De}=useDefaultLayoutContext();return x$1`
1836    <button class="vds-menu-item" role="menuitem" @click=${onFontReset}>
1837      <span class="vds-menu-item-label">${$signal(()=>i18n$1(De,"Reset"))}</span>
1838    </button>
1839  `}function DefaultFontSetting({label:De,option:_e,type:Ae}){const{player:ke}=useMediaContext(),{translations:Le}=useDefaultLayoutContext(),Fe=FONT_SIGNALS[Ae],Ve=()=>i18n$1(Le,De);function Ie(){tick(),ke.dispatchEvent(new Event("vds-font-change"))}if(_e.type==="color"){let $e=function(qe){Fe.set(qe.target.value),Ie()};return DefaultMenuItem({label:$signal(Ve),children:x$1`
1840        <input
1841          class="vds-color-picker"
1842          type="color"
1843          .value=${$signal(Fe)}
1844          @input=${$e}
1845        />
1846      `})}if(_e.type==="slider"){let $e=function(ii){Fe.set(ii.detail+"%"),Ie()};const{min:qe,max:ci,step:gi,upIcon:Ai,downIcon:oi}=_e;return DefaultMenuSliderItem({label:$signal(Ve),value:$signal(Fe),upIcon:Ai,downIcon:oi,isMin:()=>Fe()===qe+"%",isMax:()=>Fe()===ci+"%",children:x$1`
1847        <media-slider
1848          class="vds-slider"
1849          min=${qe}
1850          max=${ci}
1851          step=${gi}
1852          key-step=${gi}
1853          .value=${$signal(()=>parseInt(Fe()))}
1854          aria-label=${$signal(Ve)}
1855          @value-change=${$e}
1856          @drag-value-change=${$e}
1857        >
1858          ${DefaultSliderParts()}${DefaultSliderSteps()}
1859        </media-slider>
1860      `})}const je=createRadioOptions(_e.values),Ke=()=>{var ci;const $e=Fe(),qe=((ci=je.find(gi=>gi.value===$e))==null?void 0:ci.label)||"";return i18n$1(Le,isString(qe)?qe:qe())};return x$1`
1861    <media-menu class=${`vds-${camelToKebabCase(Ae)}-menu vds-menu`}>
1862      ${DefaultMenuButton({label:Ve,hint:Ke})}
1863      <media-menu-items class="vds-menu-items">
1864        ${DefaultRadioGroup({value:Fe,options:je,onChange({detail:$e}){Fe.set($e),Ie()}})}
1865      </media-menu-items>
1866    </media-menu>
1867  `}function DefaultMenuCheckbox({label:De,checked:_e,defaultChecked:Ae=!1,storageKey:ke,onChange:Le}){const{translations:Fe}=useDefaultLayoutContext(),Ve=ke?localStorage.getItem(ke):null,Ie=signal(!!(Ve??Ae)),je=signal(!1),Ke=$signal($ariaBool(Ie)),$e=$i18n$1(Fe,De);ke&&Le(peek(Ie)),_e&&effect(()=>void Ie.set(_e()));function qe(Ai){(Ai==null?void 0:Ai.button)!==1&&(Ie.set(oi=>!oi),ke&&localStorage.setItem(ke,Ie()?"1":""),Le(Ie(),Ai),je.set(!1))}function ci(Ai){isKeyboardClick(Ai)&&qe()}function gi(Ai){Ai.button===0&&je.set(!0)}return x$1`
1868    <div
1869      class="vds-menu-checkbox"
1870      role="menuitemcheckbox"
1871      tabindex="0"
1872      aria-label=${$e}
1873      aria-checked=${Ke}
1874      data-active=${$signal(()=>je()?"":null)}
1875      @pointerup=${qe}
1876      @pointerdown=${gi}
1877      @keydown=${ci}
1878    ></div>
1879  `}function DefaultAccessibilityMenu(){return $signal(()=>{const{translations:De}=useDefaultLayoutContext();return x$1`
1880      <media-menu class="vds-accessibility-menu vds-menu">
1881        ${DefaultMenuButton({label:()=>i18n$1(De,"Accessibility"),icon:"menu-accessibility"})}
1882        <media-menu-items class="vds-menu-items">
1883          ${[DefaultMenuSection({children:[DefaultAnnouncementsMenuCheckbox(),DefaultKeyboardAnimationsMenuCheckbox()]}),DefaultMenuSection({children:[DefaultFontMenu()]})]}
1884        </media-menu-items>
1885      </media-menu>
1886    `})}function DefaultAnnouncementsMenuCheckbox(){const{userPrefersAnnouncements:De,translations:_e}=useDefaultLayoutContext(),Ae="Announcements";return DefaultMenuItem({label:$i18n$1(_e,Ae),children:DefaultMenuCheckbox({label:Ae,storageKey:"vds-player::announcements",onChange(ke){De.set(ke)}})})}function DefaultKeyboardAnimationsMenuCheckbox(){return $signal(()=>{const{translations:De,userPrefersKeyboardAnimations:_e,noKeyboardAnimations:Ae}=useDefaultLayoutContext(),{viewType:ke}=useMediaState();if(computed(()=>ke()!=="video"||Ae())())return null;const Fe="Keyboard Animations";return DefaultMenuItem({label:$i18n$1(De,Fe),children:DefaultMenuCheckbox({label:Fe,defaultChecked:!0,storageKey:"vds-player::keyboard-animations",onChange(Ve){_e.set(Ve)}})})})}function DefaultAudioMenu(){return $signal(()=>{const{noAudioGain:De,translations:_e}=useDefaultLayoutContext(),{audioTracks:Ae,canSetAudioGain:ke}=useMediaState();return computed(()=>!(ke()&&!De())&&Ae().length<=1)()?null:x$1`
1887      <media-menu class="vds-audio-menu vds-menu">
1888        ${DefaultMenuButton({label:()=>
1888i18n$1(_e,"Audio"),icon:"menu-audio"})}
1889        <media-menu-items class="vds-menu-items">
1890          ${[DefaultAudioTracksMenu(),DefaultAudioBoostSection()]}
1891        </media-menu-items>
1892      </media-menu>
1893    `})}function DefaultAudioTracksMenu(){return $signal(()=>{const{translations:De}=useDefaultLayoutContext(),{audioTracks:_e}=useMediaState(),Ae=$i18n$1(De,"Default");return computed(()=>_e().length<=1)()?null:DefaultMenuSection({children:x$1`
1894        <media-menu class="vds-audio-tracks-menu vds-menu">
1895          ${DefaultMenuButton({label:()=>i18n$1(De,"Track")})}
1896          <media-menu-items class="vds-menu-items">
1897            <media-audio-radio-group
1898              class="vds-audio-track-radio-group vds-radio-group"
1899              empty-label=${Ae}
1900            >
1901              <template>
1902                <media-radio class="vds-audio-track-radio vds-radio">
1903                  <slot name="menu-radio-check-icon" data-class="vds-icon"></slot>
1904                  <span class="vds-radio-label" data-part="label"></span>
1905                </media-radio>
1906              </template>
1907            </media-audio-radio-group>
1908          </media-menu-items>
1909        </media-menu>
1910      `})})}function DefaultAudioBoostSection(){return $signal(()=>{const{noAudioGain:De,translations:_e}=useDefaultLayoutContext(),{canSetAudioGain:Ae}=useMediaState();if(computed(()=>!Ae()||De())())return null;const{audioGain:Le}=useMediaState();return DefaultMenuSection({label:$i18n$1(_e,"Boost"),value:$signal(()=>Math.round(((Le()??1)-1)*100)+"%"),children:[DefaultMenuSliderItem({upIcon:"menu-audio-boost-up",downIcon:"menu-audio-boost-down",children:DefaultAudioGainSlider(),isMin:()=>((Le()??1)-1)*100<=getGainMin(),isMax:()=>((Le()??1)-1)*100===getGainMax()})]})})}function DefaultAudioGainSlider(){const{translations:De}=useDefaultLayoutContext(),_e=$i18n$1(De,"Boost"),Ae=getGainMin,ke=getGainMax,Le=getGainStep;return x$1`
1911    <media-audio-gain-slider
1912      class="vds-audio-gain-slider vds-slider"
1913      aria-label=${_e}
1914      min=${$signal(Ae)}
1915      max=${$signal(ke)}
1916      step=${$signal(Le)}
1917      key-step=${$signal(Le)}
1918    >
1919      ${DefaultSliderParts()}${DefaultSliderSteps()}
1920    </media-audio-gain-slider>
1921  `}function getGainMin(){const{audioGains:De}=useDefaultLayoutContext(),_e=De();return isArray(_e)?_e[0]??0:_e.min}function getGainMax(){const{audioGains:De}=useDefaultLayoutContext(),_e=De();return isArray(_e)?_e[_e.length-1]??300:_e.max}function getGainStep(){const{audioGains:De}=useDefaultLayoutContext(),_e=De();return isArray(_e)?_e[1]-_e[0]||25:_e.step}function DefaultCaptionsMenu(){return $signal(()=>{const{translations:De}=useDefaultLayoutContext(),{hasCaptions:_e}=useMediaState(),Ae=$i18n$1(De,"Off");return _e()?x$1`
1922      <media-menu class="vds-captions-menu vds-menu">
1923        ${DefaultMenuButton({label:()=>i18n$1(De,"Captions"),icon:"menu-captions"})}
1924        <media-menu-items class="vds-menu-items">
1925          <media-captions-radio-group
1926            class="vds-captions-radio-group vds-radio-group"
1927            off-label=${Ae}
1928          >
1929            <template>
1930              <media-radio class="vds-caption-radio vds-radio">
1931                <slot name="menu-radio-check-icon" data-class="vds-icon"></slot>
1932                <span class="vds-radio-label" data-part="label"></span>
1933              </media-radio>
1934            </template>
1935          </media-captions-radio-group>
1936        </media-menu-items>
1937      </media-menu>
1938    `:null})}function DefaultPlaybackMenu(){return $signal(()=>{const{translations:De}=useDefaultLayoutContext();return x$1`
1939      <media-menu class="vds-playback-menu vds-menu">
1940        ${DefaultMenuButton({label:()=>i18n$1(De,"Playback"),icon:"menu-playback"})}
1941        <media-menu-items class="vds-menu-items">
1942          ${[DefaultMenuSection({children:DefaultLoopCheckbox()}),DefaultSpeedMenuSection(),DefaultQualityMenuSection()]}
1943        </media-menu-items>
1944      </media-menu>
1945    `})}function DefaultLoopCheckbox(){const{remote:De}=useMediaContext(),{translations:_e}=useDefaultLayoutContext(),Ae="Loop";
1945return DefaultMenuItem({label:$i18n$1(_e,Ae),children:DefaultMenuCheckbox({label:Ae,storageKey:"vds-player::user-loop",onChange(ke,Le){De.userPrefersLoopChange(ke,Le)}})})}function DefaultSpeedMenuSection(){return $signal(()=>{const{translations:De}=useDefaultLayoutContext(),{canSetPlaybackRate:_e,playbackRate:Ae}=useMediaState();return _e()?DefaultMenuSection({label:$i18n$1(De,"Speed"),value:$signal(()=>Ae()===1?i18n$1(De,"Normal"):Ae()+"x"),children:[DefaultMenuSliderItem({upIcon:"menu-speed-up",downIcon:"menu-speed-down",children:DefaultSpeedSlider(),isMin:()=>Ae()===getSpeedMin(),isMax:()=>Ae()===getSpeedMax()})]}):null})}function getSpeedMin(){const{playbackRates:De}=useDefaultLayoutContext(),_e=De();return isArray(_e)?_e[0]??0:_e.min}function getSpeedMax(){const{playbackRates:De}=useDefaultLayoutContext(),_e=De();return isArray(_e)?_e[_e.length-1]??2:_e.max}function getSpeedStep(){const{playbackRates:De}=useDefaultLayoutContext(),_e=De();return isArray(_e)?_e[1]-_e[0]||.25:_e.step}function DefaultSpeedSlider(){const{translations:De}=useDefaultLayoutContext(),_e=$i18n$1(De,"Speed"),Ae=getSpeedMin,ke=getSpeedMax,Le=getSpeedStep;return x$1`
1946    <media-speed-slider
1947      class="vds-speed-slider vds-slider"
1948      aria-label=${_e}
1949      min=${$signal(Ae)}
1950      max=${$signal(ke)}
1951      step=${$signal(Le)}
1952      key-step=${$signal(Le)}
1953    >
1954      ${DefaultSliderParts()}${DefaultSliderSteps()}
1955    </media-speed-slider>
1956  `}function DefaultAutoQualityCheckbox(){const{remote:De,qualities:_e}=useMediaContext(),{autoQuality:Ae,canSetQuality:ke,qualities:Le}=useMediaState(),{translations:Fe}=useDefaultLayoutContext(),Ve="Auto";return computed(()=>!ke()||Le().length<=1)()?null:DefaultMenuItem({label:$i18n$1(Fe,Ve),children:DefaultMenuCheckbox({label:Ve,checked:Ae,onChange(je,Ke){je?De.requestAutoQuality(Ke):De.changeQuality(_e.selectedIndex,Ke)}})})}function DefaultQualityMenuSection(){return $signal(()=>{const{hideQualityBitrate:De,translations:_e}=useDefaultLayoutContext(),{canSetQuality:Ae,qualities:ke,quality:Le}=useMediaState(),Fe=computed(()=>!Ae()||ke().length<=1),Ve=computed(()=>sortVideoQualities(ke()));return Fe()?null:DefaultMenuSection({label:$i18n$1(_e,"Quality"),value:$signal(()=>{var qe,ci;const Ie=(qe=Le())==null?void 0:qe.height,je=De()?null:(ci=Le())==null?void 0:ci.bitrate,Ke=je&&je>0?`${(je/1e6).toFixed(2)} Mbps`:null,$e=i18n$1(_e,"Auto");return Ie?`${Ie}p${Ke?` (${Ke})`:""}`:$e}),children:[DefaultMenuSliderItem({upIcon:"menu-quality-up",downIcon:"menu-quality-down",children:DefaultQualitySlider(),isMin:()=>Ve()[0]===Le(),isMax:()=>Ve().at(-1)===Le()}),DefaultAutoQualityCheckbox()]})})}function DefaultQualitySlider(){const{translations:De}=useDefaultLayoutContext(),_e=$i18n$1(De,"Quality");return x$1`
1957    <media-quality-slider class="vds-quality-slider vds-slider" aria-label=${_e}>
1958      ${DefaultSliderParts()}${DefaultSliderSteps()}
1959    </media-quality-slider>
1960  `}function DefaultSettingsMenu({placement:De,portal:_e,tooltip:Ae}){return $signal(()=>{const{viewType:ke}=useMediaState(),{translations:Le,menuPortal:Fe,noModal:Ve,menuGroup:Ie,smallWhen:je}=useDefaultLayoutContext(),Ke=computed(()=>Ve()?unwrap(De):je()?null:unwrap(De)),$e=computed(()=>!je()&&Ie()==="bottom"&&ke()==="video"?26:0),qe=signal(!1);updateFontCssVars();function ci(){qe.set(!0)}function gi(){qe.set(!1)}const Ai=x$1`
1961      <media-menu-items
1962        class="vds-settings-menu-items vds-menu-items"
1963        placement=${$signal(Ke)}
1964        offset=${$signal($e)}
1965      >
1966        ${$signal(()=>qe()?[DefaultPlaybackMenu(),DefaultAccessibilityMenu(),DefaultAudioMenu(),DefaultCaptionsMenu()]:null)}
1967      </media-menu-items>
1968    `;return x$1`
1969      <media-menu class="vds-settings-menu vds-menu" @open=${ci} @close=${gi}>
1970        <media-tooltip class="vds-tooltip">
1971          <media-tooltip-trigger>
1972            <media-menu-button
1973              class="vds-menu-button vds-button"
1974              aria-label=${$i18n$1(Le,"Settings")}
1975            >
1976              ${IconSlot("menu-settings","vds-rotate-icon")}
1977            </media-menu-button>
1978          </media-tooltip-trigger>
1979          <media-tooltip-content
1980            class="vds-tooltip-content"
1981            placement=${isFunction(Ae)?$signal(Ae):Ae}
1982          >
1983            ${$i18n$1(Le,"Settings")}
1984          </media-tooltip-content>
1985        </media-tooltip>
1986        ${MenuPortal$1(Fe,Ai)}
1987      </media-menu>
1988    `})}function DefaultVolumePopup({orientation:De,tooltip:_e}){return $signal(()=>{const{pointer:Ae,muted:ke,canSetVolume:Le}=useMediaState();
1988if(Ae()==="coarse"&&!ke())return null;if(!Le())return DefaultMuteButton({tooltip:_e});const Fe=signal(void 0),Ve=useActive(Fe);return x$1`
1989      <div class="vds-volume" ?data-active=${$signal(Ve)} ${n(Fe.set)}>
1990        ${DefaultMuteButton({tooltip:_e})}
1991        <div class="vds-volume-popup">${DefaultVolumeSlider({orientation:De})}</div>
1992      </div>
1993    `})}function DefaultVolumeSlider({orientation:De}={}){const{translations:_e}=useDefaultLayoutContext(),Ae=$i18n$1(_e,"Volume");return x$1`
1994    <media-volume-slider
1995      class="vds-volume-slider vds-slider"
1996      aria-label=${Ae}
1997      orientation=${l$1(De)}
1998    >
1999      <div class="vds-slider-track"></div>
2000      <div class="vds-slider-track-fill vds-slider-track"></div>
2001      <media-slider-preview class="vds-slider-preview" no-clamp>
2002        <media-slider-value class="vds-slider-value"></media-slider-value>
2003      </media-slider-preview>
2004      <div class="vds-slider-thumb"></div>
2005    </media-volume-slider>
2006  `}function DefaultTimeSlider(){const De=signal(void 0),_e=signal(0),{thumbnails:Ae,translations:ke,sliderChaptersMinWidth:Le,disableTimeSlider:Fe,seekStep:Ve,noScrubGesture:Ie}=useDefaultLayoutContext(),je=$i18n$1(ke,"Seek"),Ke=$signal(Fe),$e=$signal(()=>_e()<Le()),qe=$signal(Ae);return useResizeObserver(De,()=>{const ci=De();ci&&_e.set(ci.clientWidth)}),x$1`
2007    <media-time-slider
2008      class="vds-time-slider vds-slider"
2009      aria-label=${je}
2010      key-step=${$signal(Ve)}
2011      ?disabled=${Ke}
2012      ?no-swipe-gesture=${$signal(Ie)}
2013      ${n(De.set)}
2014    >
2015      <media-slider-chapters class="vds-slider-chapters" ?disabled=${$e}>
2016        <template>
2017          <div class="vds-slider-chapter">
2018            <div class="vds-slider-track"></div>
2019            <div class="vds-slider-track-fill vds-slider-track"></div>
2020            <div class="vds-slider-progress vds-slider-track"></div>
2021          </div>
2022        </template>
2023      </media-slider-chapters>
2024      <div class="vds-slider-thumb"></div>
2025      <media-slider-preview class="vds-slider-preview">
2026        <media-slider-thumbnail
2027          class="vds-slider-thumbnail vds-thumbnail"
2028          .src=${qe}
2029        ></media-slider-thumbnail>
2030        <div class="vds-slider-chapter-title" data-part="chapter-title"></div>
2031        <media-slider-value class="vds-slider-value"></media-slider-value>
2032      </media-slider-preview>
2033    </media-time-slider>
2034  `}function DefaultTimeGroup(){return x$1`
2035    <div class="vds-time-group">
2036      ${$signal(()=>{const{duration:De}=useMediaState();return De()?[x$1`<media-time class="vds-time" type="current"></media-time>`,x$1`<div class="vds-time-divider">/</div>`,x$1`<media-time class="vds-time" type="duration"></media-time>`]:null})}
2037    </div>
2038  `}function DefaultTimeInvert(){return $signal(()=>{const{live:De,duration:_e}=useMediaState();return De()?DefaultLiveButton():_e()?x$1`<media-time class="vds-time" type="current" toggle remainder></media-time>`:null})}function DefaultTimeInfo(){return $signal(()=>{const{live:De}=useMediaState();return De()?DefaultLiveButton():DefaultTimeGroup()})}function DefaultTitle(){return $signal(()=>{const{textTracks:De}=useMediaContext(),{title:_e,started:Ae}=useMediaState(),ke=signal(null);return watchActiveTextTrack(De,"chapters",ke.set),ke()&&(Ae()||!_e())?DefaultChapterTitle():x$1`<media-title class="vds-chapter-title"></media-title>`})}function DefaultChapterTitle(){return x$1`<media-chapter-title class="vds-chapter-title"></media-chapter-title>`}class DefaultLayoutIconsLoader extends LayoutIconsLoader{async loadIcons(){const _e=(await __vitePreload(()=>import("./vidstack-BTigPj2h-4bbca414.js"),[])).icons,Ae={};for(const ke of Object.keys(_e))Ae[ke]=Icon({name:ke,paths:_e[ke]});return Ae}}class LitElement extends HTMLElement{constructor(){super(...arguments);Mr(this,"rootPart",null)}connectedCallback(){this.rootPart=D(this.render(),this,{renderBefore:this.firstChild}),this.rootPart.setConnected(!0)}disconnectedCallback(){var Ae;(Ae=this.rootPart)==null||Ae.setConnected(!1),this.rootPart=null,D(null,this)}}var Cv;let DefaultAudioLayout$1=(Cv=class extends DefaultLayout{},Mr(Cv,"props",{...c3(Cv,Cv,"props"),when:({viewType:_e})=>_e==="audio",smallWhen:({width:_e})=>_e<576}
2038),Cv);function DefaultAudioLayout(){return[DefaultAnnouncer(),DefaultCaptions(),x$1`
2039      <media-controls class="vds-controls">
2040        <media-controls-group class="vds-controls-group">
2041          ${[DefaultSeekButton({backward:!0,tooltip:"top start"}),DefaultPlayButton({tooltip:"top"}),DefaultSeekButton({tooltip:"top"}),DefaultAudioTitle(),DefaultTimeSlider(),DefaultTimeInvert(),DefaultVolumePopup({orientation:"vertical",tooltip:"top"}),DefaultCaptionButton({tooltip:"top"}),DefaultDownloadButton(),DefaultAirPlayButton({tooltip:"top"}),DefaultAudioMenus()]}
2042        </media-controls-group>
2043      </media-controls>
2044    `]}function DefaultAudioTitle(){return $signal(()=>{let De=signal(void 0),_e=signal(!1),Ae=useMediaContext(),{title:ke,started:Le,currentTime:Fe,ended:Ve}=useMediaState(),{translations:Ie}=useDefaultLayoutContext(),je=useTransitionActive(De),Ke=()=>Le()||Fe()>0;const $e=()=>{const gi=Ve()?"Replay":Ke()?"Continue":"Play";return`${i18n$1(Ie,gi)}: ${ke()}`};effect(()=>{var gi;je()&&document.activeElement===document.body&&((gi=Ae.player.el)==null||gi.focus({preventScroll:!0}))});function qe(){const gi=De(),Ai=!!gi&&!je()&&gi.clientWidth<gi.children[0].clientWidth;gi&&toggleClass(gi,"vds-marquee",Ai),_e.set(Ai)}function ci(){return x$1`
2045        <span class="vds-title-text">
2046          ${$signal($e)}${$signal(()=>Ke()?DefaultChapterTitle():null)}
2047        </span>
2048      `}return useResizeObserver(De,qe),ke()?x$1`
2049          <span class="vds-title" title=${$signal($e)} ${n(De.set)}>
2050            ${[ci(),$signal(()=>_e()&&!je()?ci():null)]}
2051          </span>
2052        `:DefaultControlsSpacer()})}function DefaultAudioMenus(){const De="top end";return[DefaultChaptersMenu({tooltip:"top",placement:De,portal:!0}),DefaultSettingsMenu({tooltip:"top end",placement:De,portal:!0})]}var Fx,V_,B2,IL,N2,RL,V2,OL,H2,LL,U2,$L,G2,FL;class MediaAudioLayoutElement extends Host(LitElement,DefaultAudioLayout$1){constructor(){super(...arguments);Oi(this,B2);Oi(this,N2);Oi(this,V2);Oi(this,H2);Oi(this,U2);Oi(this,G2);Oi(this,Fx,void 0);Oi(this,V_,signal(!1))}onSetup(){this.forwardKeepAlive=!1,Qn(this,Fx,useMediaContext()),this.classList.add("vds-audio-layout"),Bi(this,V2,OL).call(this)}onConnect(){setLayoutName("audio",()=>this.isMatch),Bi(this,N2,RL).call(this)}render(){return $signal(Bi(this,B2,IL).bind(this))}}Fx=new WeakMap,V_=new WeakMap,B2=new WeakSet,IL=function(){return this.isMatch?DefaultAudioLayout():null},N2=new WeakSet,RL=function(){const{menuPortal:Ae}=useDefaultLayoutContext();effect(()=>{if(!this.isMatch)return;const ke=createMenuContainer(this,this.menuContainer,"vds-audio-layout",()=>this.isSmallLayout),Le=ke?[this,ke]:[this];return(this.$props.customIcons()?new SlotManager(Le):new DefaultLayoutIconsLoader(Le)).connect(),Ae.set(ke),()=>{ke.remove(),Ae.set(null)}})},V2=new WeakSet,OL=function(){const{pointer:Ae}=mi(this,Fx).$state;effect(()=>{Ae()==="coarse"&&effect(Bi(this,H2,LL).bind(this))})},H2=new WeakSet,LL=function(){if(!mi(this,V_).call(this)){listenEvent(this,"pointerdown",Bi(this,U2,$L).bind(this),{capture:!0});return}listenEvent(this,"pointerdown",Ae=>Ae.stopPropagation()),listenEvent(window,"pointerdown",Bi(this,G2,FL).bind(this))},U2=new WeakSet,$L=function(Ae){const{target:ke}=Ae;isHTMLElement(ke)&&ke.closest(".vds-time-slider")&&(Ae.stopImmediatePropagation(),this.setAttribute("data-scrubbing",""),mi(this,V_).set(!0))},G2=new WeakSet,FL=function(){mi(this,V_).set(!1),this.removeAttribute("data-scrubbing")},Mr(MediaAudioLayoutElement,"tagName","media-audio-layout"),Mr(MediaAudioLayoutElement,"attrs",{smallWhen:{converter(Ae){return Ae!=="never"&&!!Ae}}});/**
2053 * @license
2054 * Copyright 2021 Google LLC
2055 * SPDX-License-Identifier: BSD-3-Clause
2056 */const i=e$2(class extends i$1{constructor(){super(...arguments),this.key=A}render(De,_e){return this.key=De,_e}update(De,[_e,Ae]){return _e!==this.key&&(a(De),this.key=_e),Ae}}),xb=class xb extends DefaultLayout{};Mr(xb,"props",{...c3(xb,xb,"props"),when:({viewType:_e})=>_e==="video",smallWhen:({width:_e,height:Ae})=>_e<576||Ae<380});let DefaultVideoLayout=xb;function DefaultKeyboardDisplay(){return $signal(()=>
2056{const De=useMediaContext(),{noKeyboardAnimations:_e,userPrefersKeyboardAnimations:Ae}=useDefaultLayoutContext();if(computed(()=>_e()||!Ae())())return null;const Le=signal(!1),{lastKeyboardAction:Fe}=De.$state;effect(()=>{Le.set(!!Fe());const qe=setTimeout(()=>Le.set(!1),500);return()=>{Le.set(!1),window.clearTimeout(qe)}});const Ve=computed(()=>{var ci;const qe=(ci=Fe())==null?void 0:ci.action;return qe&&Le()?camelToKebabCase(qe):null}),Ie=computed(()=>`vds-kb-action${Le()?"":" hidden"}`),je=computed(getText),Ke=computed(()=>{const qe=getIconName();return qe?createSlot(qe):null});function $e(){const qe=Ke();return qe?x$1`
2057        <div class="vds-kb-bezel">
2058          <div class="vds-kb-icon">${qe}</div>
2059        </div>
2060      `:null}return x$1`
2061      <div class=${$signal(Ie)} data-action=${$signal(Ve)}>
2062        <div class="vds-kb-text-wrapper">
2063          <div class="vds-kb-text">${$signal(je)}</div>
2064        </div>
2065        ${$signal(()=>i(Fe(),$e()))}
2066      </div>
2067    `})}function getText(){var ke;const{$state:De}=useMediaContext(),_e=(ke=De.lastKeyboardAction())==null?void 0:ke.action,Ae=De.audioGain()??1;switch(_e){case"toggleMuted":return De.muted()?"0%":getVolumeText(De.volume(),Ae);case"volumeUp":case"volumeDown":return getVolumeText(De.volume(),Ae);default:return""}}function getVolumeText(De,_e){return`${Math.round(De*_e*100)}%`}function getIconName(){var Ae;const{$state:De}=useMediaContext();switch((Ae=De.lastKeyboardAction())==null?void 0:Ae.action){case"togglePaused":return De.paused()?"kb-pause-icon":"kb-play-icon";case"toggleMuted":return De.muted()||De.volume()===0?"kb-mute-icon":De.volume()>=.5?"kb-volume-up-icon":"kb-volume-down-icon";case"toggleFullscreen":return`kb-fs-${De.fullscreen()?"enter":"exit"}-icon`;case"togglePictureInPicture":return`kb-pip-${De.pictureInPicture()?"enter":"exit"}-icon`;case"toggleCaptions":return De.hasCaptions()?`kb-cc-${De.textTrack()?"on":"off"}-icon`:null;case"volumeUp":return"kb-volume-up-icon";case"volumeDown":return"kb-volume-down-icon";case"seekForward":return"kb-seek-forward-icon";case"seekBackward":return"kb-seek-backward-icon";default:return null}}function DefaultVideoLayoutLarge(){return[DefaultAnnouncer(),DefaultVideoGestures(),DefaultBufferingIndicator(),DefaultKeyboardDisplay(),DefaultCaptions(),x$1`<div class="vds-scrim"></div>`,x$1`
2068      <media-controls class="vds-controls">
2069        ${[DefaultControlsGroupTop(),DefaultControlsSpacer(),x$1`<media-controls-group class="vds-controls-group"></media-controls-group>`,DefaultControlsSpacer(),x$1`
2070            <media-controls-group class="vds-controls-group">
2071              ${DefaultTimeSlider()}
2072            </media-controls-group>
2073          `,x$1`
2074            <media-controls-group class="vds-controls-group">
2075              ${[DefaultPlayButton({tooltip:"top start"}),DefaultVolumePopup({orientation:"horizontal",tooltip:"top"}),DefaultTimeInfo(),DefaultTitle(),DefaultCaptionButton({tooltip:"top"}),DefaultBottomMenuGroup(),DefaultAirPlayButton({tooltip:"top"}),DefaultGoogleCastButton({tooltip:"top"}),DefaultDownloadButton(),DefaultPIPButton(),DefaultFullscreenButton({tooltip:"top end"})]}
2076            </media-controls-group>
2077          `]}
2078      </media-controls>
2079    `]}function DefaultBottomMenuGroup(){return $signal(()=>{const{menuGroup:De}=useDefaultLayoutContext();return De()==="bottom"?DefaultVideoMenus():null})}function DefaultControlsGroupTop(){return x$1`
2080    <media-controls-group class="vds-controls-group">
2081      ${$signal(()=>{const{menuGroup:De}=useDefaultLayoutContext();return De()==="top"?[DefaultControlsSpacer(),DefaultVideoMenus()]:null})}
2082    </media-controls-group>
2083  `}function DefaultVideoLayoutSmall(){return[DefaultAnnouncer(),DefaultVideoGestures(),DefaultBufferingIndicator(),DefaultCaptions(),DefaultKeyboardDisplay(),x$1`<div class="vds-scrim"></div>`,x$1`
2084      <media-controls class="vds-controls">
2085        <media-controls-group class="vds-controls-group">
2086          ${[DefaultAirPlayButton({tooltip:"top start"}),DefaultGoogleCastButton({tooltip:"bottom start"}),DefaultControlsSpacer(),DefaultCaptionButton({tooltip:"bottom"}),DefaultDownloadButton(),DefaultVideoMenus(),DefaultVolumePopup({orientation:"vertical",tooltip:"bottom end"})]}
2087        </media-controls-group>
2088
2089        ${DefaultControlsSpacer()}
2090
2091        <media-controls-group class="vds-controls-group" style="pointer-events: none;">
2092          ${[DefaultControlsSpacer(),DefaultPlayButton({tooltip:"top"}),DefaultControlsSpacer()]}
2093        </media-controls-group>
2094
2095        ${DefaultControlsSpacer()}
2096
2097        <media-controls-group class="vds-controls-group">
2098          ${[DefaultTimeInfo(),DefaultTitle(),DefaultFullscreenButton({tooltip:"top end"})]}
2099        </media-controls-group>
2100
2101        <media-controls-group class="vds-controls-group">
2102          ${DefaultTimeSlider()}
2103        </media-controls-group>
2104      </media-controls>
2105    `,StartDuration()]}function DefaultVideoLoadLayout(){return x$1`
2106    <div class="vds-load-container">
2107      ${[DefaultBufferingIndicator(),DefaultPlayButton({tooltip:"top"})]}
2108    </div>
2109  `}function StartDuration(){return $signal(()=>{const{duration:De}=useMediaState();return De()===0?null:x$1`
2110      <div class="vds-start-duration">
2111        <media-time class="vds-time" type="duration"></media-time>
2112      </div>
2113    `})}function DefaultBufferingIndicator(){return x$1`
2114    <div class="vds-buffering-indicator">
2115      <media-spinner class="vds-buffering-spinner"></media-spinner>
2116    </div>
2117  `}function DefaultVideoMenus(){const{menuGroup:De,smallWhen:_e}=useDefaultLayoutContext(),Ae=()=>De()==="top"||_e()?"bottom":"top",ke=computed(()=>`${Ae()} ${De()==="top"?"end":"center"}`),Le=computed(()=>`${Ae()} end`);return[DefaultChaptersMenu({tooltip:ke,placement:Le,portal:!0}),DefaultSettingsMenu({tooltip:ke,placement:Le,portal:!0})]}function DefaultVideoGestures(){return $signal(()=>{const{noGestures:De}=useDefaultLayoutContext();return De()?null:x$1`
2118      <div class="vds-gestures">
2119        <media-gesture class="vds-gesture" event="pointerup" action="toggle:paused"></media-gesture>
2120        <media-gesture
2121          class="vds-gesture"
2122          event="pointerup"
2123          action="toggle:controls"
2124        ></media-gesture>
2125        <media-gesture
2126          class="vds-gesture"
2127          event="dblpointerup"
2128          action="toggle:fullscreen"
2129        ></media-gesture>
2130        <media-gesture class="vds-gesture" event="dblpointerup" action="seek:-10"></media-gesture>
2131        <media-gesture class="vds-gesture" event="dblpointerup" action="seek:10"></media-gesture>
2132      </div>
2133    `})}var H_,j2,zL,W2,BL;class MediaVideoLayoutElement extends Host(LitElement,DefaultVideoLayout){constructor(){super(...arguments);Oi(this,j2);Oi(this,W2);Oi(this,H_,void 0)}onSetup(){this.forwardKeepAlive=!1,Qn(this,H_,useMediaContext()),this.classList.add("vds-video-layout")}onConnect(){setLayoutName("video",()=>this.isMatch),Bi(this,j2,zL).call(this)}render(){return $signal(Bi(this,W2,BL).bind(this))}}H_=new WeakMap,j2=new WeakSet,zL=function(){const{menuPortal:Ae}=useDefaultLayoutContext();effect(()=>{if(!this.isMatch)return;const ke=createMenuContainer(this,this.menuContainer,"vds-video-layout",()=>this.isSmallLayout),Le=ke?[this,ke]:[this];return(this.$props.customIcons()?new SlotManager(Le):new DefaultLayoutIconsLoader(Le)).connect(),Ae.set(ke),()=>{ke.remove(),Ae.set(null)}})},W2=new WeakSet,BL=function(){const{load:Ae}=mi(this,H_).$props,{canLoad:ke,streamType:Le,nativeControls:Fe}=mi(this,H_).$state;return!Fe()&&this.isMatch?Ae()==="play"&&!ke()?DefaultVideoLoadLayout():Le()==="unknown"?DefaultBufferingIndicator():this.isSmallLayout?DefaultVideoLayoutSmall():DefaultVideoLayoutLarge():null},Mr(MediaVideoLayoutElement,"tagName","media-video-layout"),Mr(MediaVideoLayoutElement,"attrs",{smallWhen:{converter(Ae){return Ae!=="never"&&!!Ae}}});const plyrLayoutContext=createContext();function usePlyrLayoutContext(){return useContext(plyrLayoutContext)}const plyrLayoutProps={clickToPlay:!0,clickToFullscreen:!0,controls:["play-large","play","progress","current-time","mute+volume","captions","settings","pip","airplay","fullscreen"],customIcons:!1,displayDuration:!1,download:null,markers:null,invertTime:!0,thumbnails:null,toggleTime:!0,translations:null,seekTime:10,speed:[.5,.75,1,1.25,1.5,1.75,2,4]};var q2;class PlyrLayout extends Component{constructor(){super(...arguments);Oi(this,q2,void 0)}onSetup(){Qn(this,q2,useMediaContext()),provideContext(plyrLayoutContext,{...this.$props,previewTime:signal(0)})}}q2=new WeakMap,Mr(PlyrLayout,"props",plyrLayoutProps);function usePlyrLayoutClasses(De,_e){const{canAirPlay:Ae,canFullscreen:ke,canPictureInPicture:Le,controlsHidden:Fe,currentTime:Ve,fullscreen:Ie,hasCaptions:je,isAirPlayConnected:Ke,paused:$e,pictureInPicture:qe,playing:ci,pointer:gi,poster:Ai,textTrack:oi,viewType:ii,waiting:hi}=_e.$state;De.classList.add("plyr"),De.classList.add("plyr--full-ui");const Ei={"plyr--airplay-active":Ke,"plyr--airplay-supported":Ae,"plyr--fullscreen-active":Ie,"plyr--fullscreen-enabled":ke,"plyr--hide-controls":Fe,"plyr--is-touch":()=>gi()==="coarse","plyr--loading":hi,"plyr--paused":$e,"plyr--pip-active":qe,"plyr--pip-enabled":Le,"plyr--playing":ci,"plyr__poster-enabled":Ai,"plyr--stopped":()=>$e()&&Ve()===0,"plyr--captions-active":oi,"plyr--captions-enabled":je},Li=createDisposalBin();for(const Di of Object.keys(Ei))Li.add(effect(()=>void De.classList.toggle(Di,!!Ei[Di]())));return Li.add(effect(()=>{const Di=`plyr--${ii()}`;return De.classList.add(Di),()=>De.classList.remove(Di)}),effect(()=>{var Je;const{$provider:Di}=_e,zi=(Je=Di())==null?void 0:Je.type,an=`plyr--${isHTMLProvider(zi)?"html5":zi}`;return De.classList.toggle(an,!!zi),()=>De.classList.remove(an)})),()=>Li.empty()}function isHTMLProvider(De){return De==="audio"||De==="video"}class PlyrLayoutIconsLoader extends LayoutIconsLoader{async loadIcons(){const _e=(await __vitePreload(()=>import("./vidstack-DXxIKXmd-7eec5324.js"),[])).icons,Ae={};for(const ke of Object.keys(_e))Ae[ke]=Icon({name:ke,paths:_e[ke],viewBox:"0 0 18 18"});return Ae}}function i18n(De,_e){var Ae;return((Ae=De())==null?void 0:Ae[_e])??_e}
2133function PlyrAudioLayout(){return AudioControls()}function PlyrVideoLayout(){const De=useMediaContext(),{load:_e}=De.$props,{canLoad:Ae}=De.$state;return computed(()=>_e()==="play"&&!Ae())()?[PlayLargeButton(),Poster$1()]:[OptionalPlayLarge(),PreviewScrubbing(),Poster$1(),VideoControls(),Gestures(),Captions$1()]}function PlayLargeButton(){const De=useMediaContext(),{translations:_e}=usePlyrLayoutContext(),{title:Ae}=De.$state,ke=$signal(()=>`${i18n(_e,"Play")}, ${Ae()}`);return x$1`
2134    <media-play-button
2135      class="plyr__control plyr__control--overlaid"
2136      aria-label=${ke}
2137      data-plyr="play"
2138    >
2139      <slot name="play-icon"></slot>
2140    </button>
2141  `}function OptionalPlayLarge(){const{controls:De}=usePlyrLayoutContext();return $signal(()=>De().includes("play-large")?PlayLargeButton():null)}function PreviewScrubbing(){const{thumbnails:De,previewTime:_e}=usePlyrLayoutContext();return x$1`
2142    <media-thumbnail
2143      .src=${$signal(De)}
2144      class="plyr__preview-scrubbing"
2145      time=${$signal(()=>_e())}
2146    >
2146</media-thumbnail>
2147  `}function Poster$1(){const De=useMediaContext(),{poster:_e}=De.$state,Ae=$signal(()=>`background-image: url("${_e()}");`);return x$1`<div class="plyr__poster" style=${Ae}></div>`}function AudioControls(){const De=new Set(["captions","pip","airplay","fullscreen"]),{controls:_e}=usePlyrLayoutContext(),Ae=$signal(()=>_e().filter(ke=>!De.has(ke)).map(Control));return x$1`<div class="plyr__controls">${Ae}</div>`}function VideoControls(){const{controls:De}=usePlyrLayoutContext(),_e=$signal(()=>De().map(Control));return x$1`<div class="plyr__controls">${_e}</div>`}function Control(De){switch(De){case"airplay":return AirPlayButton$1();case"captions":return CaptionsButton();case"current-time":return CurrentTime();case"download":return DownloadButton();case"duration":return Duration();case"fast-forward":return FastForwardButton();case"fullscreen":return FullscreenButton$1();case"mute":case"volume":case"mute+volume":return Volume(De);case"pip":return PIPButton$1();case"play":return PlayButton$1();case"progress":return TimeSlider$1();case"restart":return RestartButton();case"rewind":return RewindButton();case"settings":return Settings();default:return null}}function AirPlayButton$1(){const{translations:De}=usePlyrLayoutContext();return x$1`
2148    <media-airplay-button class="plyr__controls__item plyr__control" data-plyr="airplay">
2149      <slot name="airplay-icon"></slot>
2150      <span class="plyr__tooltip">${$i18n(De,"AirPlay")}</span>
2151    </media-airplay-button>
2152  `}function CaptionsButton(){const{translations:De}=usePlyrLayoutContext(),_e=$i18n(De,"Disable captions"),Ae=$i18n(De,"Enable captions");return x$1`
2153    <media-caption-button
2154      class="plyr__controls__item plyr__control"
2155      data-no-label
2156      data-plyr="captions"
2157    >
2158      <slot name="captions-on-icon" data-class="icon--pressed"></slot>
2159      <slot name="captions-off-icon" data-class="icon--not-pressed"></slot>
2160      <span class="label--pressed plyr__tooltip">${_e}</span>
2161      <span class="label--not-pressed plyr__tooltip">${Ae}</span>
2162    </media-caption-button>
2163  `}function FullscreenButton$1(){const{translations:De}=usePlyrLayoutContext(),_e=$i18n(De,"Enter Fullscreen"),Ae=$i18n(De,"Exit Fullscreen");return x$1`
2164    <media-fullscreen-button
2165      class="plyr__controls__item plyr__control"
2166      data-no-label
2167      data-plyr="fullscreen"
2168    >
2169      <slot name="enter-fullscreen-icon" data-class="icon--pressed"></slot>
2170      <slot name="exit-fullscreen-icon" data-class="icon--not-pressed"></slot>
2171      <span class="label--pressed plyr__tooltip">${Ae}</span>
2172      <span class="label--not-pressed plyr__tooltip">${_e}</span>
2173    </media-fullscreen-button>
2174  `}function MuteButton$1(){const{translations:De}=usePlyrLayoutContext(),_e=$i18n(De,"Mute"),Ae=$i18n(De,"Unmute");return x$1`
2175    <media-mute-button class="plyr__control" data-no-label data-plyr="mute">
2176      <slot name="muted-icon" data-class="icon--pressed"></slot>
2177      <slot name="volume-icon" data-class="icon--not-pressed"></slot>
2178      <span class="label--pressed plyr__tooltip">${Ae}</span>
2179      <span class="label--not-pressed plyr__tooltip">${_e}</span>
2180    </media-mute-button>
2181  `}function PIPButton$1(){const{translations:De}=usePlyrLayoutContext(),_e=$i18n(De,"Enter PiP"),Ae=$i18n(De,"Exit PiP");return x$1`
2182    <media-pip-button class="plyr__controls__item plyr__control" data-no-label data-plyr="pip">
2183      <slot name="pip-icon"></slot>
2184      <slot name="enter-pip-icon" data-class="icon--pressed"></slot>
2185      <slot name="exit-pip-icon" data-class="icon--not-pressed"></slot>
2186      <span class="label--pressed plyr__tooltip">${Ae}</span>
2187      <span class="label--not-pressed plyr__tooltip">${_e}</span>
2188    </media-pip-button>
2189  `}function PlayButton$1(){const{translations:De}=usePlyrLayoutContext(),_e=$i18n(De,"Play"),Ae=$i18n(De,"Pause");return x$1`
2190    <media-play-button class="plyr__controls__item plyr__control" data-no-label data-plyr="play">
2191      <slot name="pause-icon" data-class="icon--pressed"></slot>
2192      <slot name="play-icon" data-class="icon--not-pressed"></slot>
2193      <span class="label--pressed plyr__tooltip">${Ae}</span>
2194      <span class="label--not-pressed plyr__tooltip">${_e}</span>
2195    </media-play-button>
2196  `}function RestartButton(){const{translations:De}=usePlyrLayoutContext(),{remote:_e}=useMediaContext(),Ae=$i18n(De,"Restart");function ke(Le){isKeyboardEvent(Le)&&!isKeyboardClick(Le)||_e.seek(0,Le)}return x$1`
2197    <button
2198      type="button"
2199      class="plyr__control"
2200      data-plyr="restart"
2201      @pointerup=${ke}
2202      @keydown=${ke}
2203    >
2204      <slot name="restart-icon"></slot>
2205      <span class="plyr__tooltip">${Ae}</span>
2206    </button>
2207  `}function RewindButton(){const{translations:De,seekTime:_e}=usePlyrLayoutContext(),Ae=$signal(()=>`${i18n(De,"Rewind")} ${_e()}s`),ke=$signal(()=>-1*_e());return x$1`
2208    <media-seek-button
2209      class="plyr__controls__item plyr__control"
2210      seconds=${ke}
2211      data-no-label
2212      data-plyr="rewind"
2213    >
2214      <slot name="rewind-icon"></slot>
2215      <span class="plyr__tooltip">${Ae}</span>
2216    </media-seek-button>
2217  `}function FastForwardButton(){const{translations:De,seekTime:_e}=usePlyrLayoutContext(),Ae=$signal(()=>`${i18n(De,"Forward")} ${_e()}s`),ke=$signal(_e);return x$1`
2218    <media-seek-button
2219      class="plyr__controls__item plyr__control"
2220      seconds=${ke}
2221      data-no-label
2222      data-plyr="fast-forward"
2223    >
2224      <slot name="fast-forward-icon"></slot>
2225      <span class="plyr__tooltip">${Ae}</span>
2226    </media-seek-button>
2227  `}function TimeSlider$1(){let De=useMediaContext(),{duration:_e,viewType:Ae}=De.$state,{translations:ke,markers:Le,thumbnails:Fe,seekTime:Ve,previewTime:Ie}=usePlyrLayoutContext(),je=$i18n(ke,"Seek"),Ke=signal(null),$e=$signal(()=>{const ii=Ke();return ii?x$1`<span class="plyr__progress__marker-label">${o$2(ii.label)}<br /></span>`:null});function qe(ii){Ie.set(ii.detail)}function ci(){Ke.set(this)}function gi(){Ke.set(null)}function Ai(){const ii=Fe(),hi=$signal(()=>Ae()==="audio");return ii?x$1`
2228          <media-slider-preview class="plyr__slider__preview" ?no-clamp=${hi}>
2229            <media-slider-thumbnail .src=${ii} class="plyr__slider__preview__thumbnail">
2230              <span class="plyr__slider__preview__time-container">
2231                ${$e}
2232                <media-slider-value class="plyr__slider__preview__time"></media-slider-value>
2233              </span>
2234            </media-slider-thumbnail>
2235          </media-slider-preview>
2236        `:x$1`
2237          <span class="plyr__tooltip">
2238            ${$e}
2239            <media-slider-value></media-slider-value>
2240          </span>
2241        `}function oi(){var hi;const ii=_e();return Number.isFinite(ii)?(hi=Le())==null?void 0:hi.map(Ei=>x$1`
2242        <span
2243          class="plyr__progress__marker"
2244          @mouseenter=${ci.bind(Ei)}
2245          @mouseleave=${gi}
2246          style=${`left: ${Ei.time/ii*100}%;`}
2247        ></span>
2248      `):null}return x$1`
2249    <div class="plyr__controls__item plyr__progress__container">
2250      <div class="plyr__progress">
2251        <media-time-slider
2252          class="plyr__slider"
2253          data-plyr="seek"
2254          pause-while-dragging
2255          key-step=${$signal(Ve)}
2256          aria-label=${je}
2257          @media-seeking-request=${qe}
2258        >
2259          <div class="plyr__slider__track"></div>
2260          <div class="plyr__slider__thumb"></div>
2261          <div class="plyr__slider__buffer"></div>
2262          ${$signal(Ai)}${$signal(oi)}
2263        </media-time-slider>
2264      </div>
2265    </div>
2266  `}function Volume(De){return $signal(()=>{const _e=De==="mute"||De==="mute+volume",Ae=De==="volume"||De==="mute+volume";return x$1`
2267      <div class="plyr__controls__item plyr__volume">
2268        ${[_e?MuteButton$1():null,Ae?VolumeSlider$1():null]}
2269      </div>
2270    `})}function VolumeSlider$1(){const{translations:De}=usePlyrLayoutContext(),_e=$i18n(De,"Volume");return x$1`
2271    <media-volume-slider class="plyr__slider" data-plyr="volume" aria-label=${_e}>
2272      <div class="plyr__slider__track"></div>
2273      <div class="plyr__slider__thumb"></div>
2274    </media-volume-slider>
2275  `}function CurrentTime(){const De=useMediaContext(),{translations:_e,invertTime:Ae,toggleTime:ke,displayDuration:Le}=usePlyrLayoutContext(),Fe=signal(peek(Ae));function Ve(je){!ke()||Le()||isKeyboardEvent(je)&&!isKeyboardClick(je)||Fe.set(Ke=>!Ke)}function Ie(){return $signal(()=>Le()?Duration():null)}return $signal(()=>{const{streamType:je}=De.$state,Ke=$i18n(_e,"LIVE"),$e=$i18n(_e,"Current time"),qe=$signal(()=>!Le()&&Fe());return je()==="live"||je()==="ll-live"?x$1`
2276          <media-live-button
2277            class="plyr__controls__item plyr__control plyr__live-button"
2278            data-plyr="live"
2279          >
2280            <span class="plyr__live-button__text">${Ke}</span>
2281          </media-live-button>
2282        `:x$1`
2283          <media-time
2284            type="current"
2285            class="plyr__controls__item plyr__time plyr__time--current"
2286            tabindex="0"
2287            role="timer"
2288            aria-label=${$e}
2289            ?remainder=${qe}
2290            @pointerup=${Ve}
2291            @keydown=${Ve}
2292          ></media-time>
2293          ${Ie()}
2294        `})}function Duration(){const{translations:De}=usePlyrLayoutContext(),_e=$i18n(De,"Duration");return x$1`
2295    <media-time
2296      type="duration"
2297      class="plyr__controls__item plyr__time plyr__time--duration"
2298      role="timer"
2299      tabindex="0"
2300      aria-label=${_e}
2301    ></media-time>
2302  `}function DownloadButton(){return $signal(()=>{const De=useMediaContext(),{translations:_e,download:Ae}=usePlyrLayoutContext(),{title:ke,source:Le}=De.$state,Fe=Le(),Ve=Ae(),Ie=getDownloadFile({title:ke(),src:Fe,download:Ve}),je=$i18n(_e,"Download");return isString(Ie==null?void 0:Ie.url)?x$1`
2303          <a
2304            class="plyr__controls__item plyr__control"
2305            href=${appendParamsToURL(Ie.url,{download:Ie.name})}
2306            download=${Ie.name}
2307            target="_blank"
2308          >
2309            <slot name="download-icon" />
2310            <span class="plyr__tooltip">${je}</span>
2311          </a>
2312        `:null})}function Gestures(){return $signal(()=>{const{clickToPlay:De,clickToFullscreen:_e}=usePlyrLayoutContext();return[De()?x$1`
2313            <media-gesture
2314              class="plyr__gesture"
2315              event="pointerup"
2316              action="toggle:paused"
2317            ></media-gesture>
2318          `:null,_e()?x$1`
2319            <media-gesture
2320              class="plyr__gesture"
2321              event="dblpointerup"
2322              action="toggle:fullscreen"
2323            ></media-gesture>
2324          `:null]})}function Captions$1(){const De=useMediaContext(),_e=signal(void 0),Ae=$signal(()=>{var ke;return o$2((ke=_e())==null?void 0:ke.text)});return effect(()=>{const ke=De.$state.textTrack();if(!ke)return;function Le(){_e.set(ke==null?void 0:ke.activeCues[0])}return Le(),listenEvent(ke,"cue-change",Le)}),x$1`
2325    <div class="plyr__captions" dir="auto">
2326      <span class="plyr__caption">${Ae}</span>
2327    </div>
2328  `}function Settings(){const{translations:De}=usePlyrLayoutContext(),_e=$i18n(De,"Settings");return x$1`
2329    <div class="plyr__controls__item plyr__menu">
2330      <media-menu>
2331        <media-menu-button class="plyr__control" data-plyr="settings">
2332          <slot name="settings-icon" />
2333          <span class="plyr__tooltip">${_e}</span>
2334        </media-menu-button>
2335        <media-menu-items class="plyr__menu__container" placement="top end">
2336          <div><div>${[AudioMenu(),CaptionsMenu(),QualityMenu(),SpeedMenu()]}</div></div>
2337        </media-menu-items>
2338      </media-menu>
2339    </div>
2340  `}function Menu$1({label:De,children:_e}){const Ae=signal(!1);return x$1`
2341    <media-menu @open=${()=>Ae.set(!0)} @close=${()=>Ae.set(!1)}>
2342      ${MenuButton$1({label:De,open:Ae})}
2343      <media-menu-items>${_e}</media-menu-items>
2344    </media-menu>
2345  `}function MenuButton$1({open:De,label:_e}){const{translations:Ae}=usePlyrLayoutContext(),ke=$signal(()=>`plyr__control plyr__control--${De()?"back":"forward"}`);function Le(){const Fe=$i18n(Ae,"Go back to previous menu");return $signal(()=>De()?x$1`<span class="plyr__sr-only">${Fe}</span>`:null)}return x$1`
2346    <media-menu-button class=${ke} data-plyr="settings">
2347      <span class="plyr__menu__label" aria-hidden=${$aria(De)}>
2348        ${$i18n(Ae,_e)}
2349      </span>
2350      <span class="plyr__menu__value" data-part="hint"></span>
2351      ${Le()}
2352    </media-menu-button>
2353  `}function AudioMenu(){return Menu$1({label:"Audio",children:AudioRadioGroup$1()})}function AudioRadioGroup$1(){const{translations:De}=usePlyrLayoutContext();return x$1`
2354    <media-audio-radio-group empty-label=${$i18n(De,"Default")}>
2355      <template>
2356        <media-radio class="plyr__control" data-plyr="audio">
2357          <span data-part="label"></span>
2358        </media-radio>
2359      </template>
2360    </media-audio-radio-group>
2361  `}
2361function SpeedMenu(){return Menu$1({label:"Speed",children:SpeedRadioGroup$1()})}function SpeedRadioGroup$1(){const{translations:De,speed:_e}=usePlyrLayoutContext();return x$1`
2362    <media-speed-radio-group .rates=${_e} normal-label=${$i18n(De,"Normal")}>
2363      <template>
2364        <media-radio class="plyr__control" data-plyr="speed">
2365          <span data-part="label"></span>
2366        </media-radio>
2367      </template>
2368    </media-speed-radio-group>
2369  `}function CaptionsMenu(){return Menu$1({label:"Captions",children:CaptionsRadioGroup$1()})}function CaptionsRadioGroup$1(){const{translations:De}=usePlyrLayoutContext();return x$1`
2370    <media-captions-radio-group off-label=${$i18n(De,"Disabled")}>
2371      <template>
2372        <media-radio class="plyr__control" data-plyr="captions">
2373          <span data-part="label"></span>
2374        </media-radio>
2375      </template>
2376    </media-captions-radio-group>
2377  `}function QualityMenu(){return Menu$1({label:"Quality",children:QualityRadioGroup$1()})}function QualityRadioGroup$1(){const{translations:De}=usePlyrLayoutContext();return x$1`
2378    <media-quality-radio-group auto-label=${$i18n(De,"Auto")}>
2379      <template>
2380        <media-radio class="plyr__control" data-plyr="quality">
2381          <span data-part="label"></span>
2382        </media-radio>
2383      </template>
2384    </media-quality-radio-group>
2385  `}function $aria(De){return $signal(()=>De()?"true":"false")}function $i18n(De,_e){return $signal(()=>i18n(De,_e))}var M0,X2,NL;class MediaPlyrLayoutElement extends Host(LitElement,PlyrLayout){constructor(){super(...arguments);Oi(this,X2);Oi(this,M0,void 0)}onSetup(){this.forwardKeepAlive=!1,Qn(this,M0,useMediaContext())}onConnect(){var Ae;(Ae=mi(this,M0).player.el)==null||Ae.setAttribute("data-layout","plyr"),onDispose(()=>{var ke;return(ke=mi(this,M0).player.el)==null?void 0:ke.removeAttribute("data-layout")}),usePlyrLayoutClasses(this,mi(this,M0)),effect(()=>{this.$props.customIcons()?new SlotManager([this]).connect():new PlyrLayoutIconsLoader([this]).connect()})}render(){return $signal(Bi(this,X2,NL).bind(this))}}M0=new WeakMap,X2=new WeakSet,NL=function(){const{viewType:Ae}=mi(this,M0).$state;return Ae()==="audio"?PlyrAudioLayout():Ae()==="video"?PlyrVideoLayout():null},Mr(MediaPlyrLayoutElement,"tagName","media-plyr-layout");defineCustomElement(MediaAudioLayoutElement);defineCustomElement(MediaVideoLayoutElement);defineCustomElement(MediaPlyrLayoutElement);var tv;class ARIAKeyShortcuts extends ViewController{constructor(Ae){super();Oi(this,tv,void 0);Qn(this,tv,Ae)}onAttach(Ae){const{$props:ke,ariaKeys:Le}=useMediaContext(),Fe=Ae.getAttribute("aria-keyshortcuts");if(Fe){Le[mi(this,tv)]=Fe,onDispose(()=>{delete Le[mi(this,tv)]});return}const Ve=ke.keyShortcuts()[mi(this,tv)];if(Ve){const Ie=isArray(Ve)?Ve.join(" "):isString(Ve)?Ve:Ve==null?void 0:Ve.keys;Ae.setAttribute("aria-keyshortcuts",isArray(Ie)?Ie.join(" "):Ie)}}}tv=new WeakMap;function padNumberWithZeroes(De,_e){const Ae=String(De),ke=Ae.length;if(ke<_e){const Fe=_e-ke;return`${"0".repeat(Fe)}${De}`}return Ae}function parseTime(De){const _e=Math.trunc(De/3600),Ae=Math.trunc(De%3600/60),ke=Math.trunc(De%60),Le=Number((De-Math.trunc(De)).toPrecision(3));return{hours:_e,minutes:Ae,seconds:ke,fraction:Le}}function formatTime(De,{padHrs:_e=null,padMins:Ae=null,showHrs:ke=!1,showMs:Le=!1}={}){const{hours:Fe,minutes:Ve,seconds:Ie,fraction:je}=parseTime(De),Ke=_e?padNumberWithZeroes(Fe,2):Fe,$e=Ae||isNull(Ae)&&De>=3600?padNumberWithZeroes(Ve,2):Ve,qe=padNumberWithZeroes(Ie,2),ci=Le&&je>0?`.${String(je).replace(/^0?\./,"")}`:"",gi=`${$e}:${qe}${ci}`;return Fe>0||ke?`${Ke}:${gi}`:gi}function formatSpokenTime(De){const _e=[],{hours:Ae,minutes:ke,seconds:Le}=parseTime(De);return Ae>0&&_e.push(`${Ae} hour`),ke>0&&_e.push(`${ke} min`),(Le>0||_e.length===0)&&_e.push(`${Le} sec`),_e.join(" ")}var Jf,Z2,VL,iv,nv,Om,U_,vT;class Popper extends ViewController{constructor(Ae){super();Oi(this,Z2);Oi(this,U_);Oi(this,Jf,void 0);Oi(this,iv,-1);Oi(this,nv,-1);Oi(this,Om,null);Qn(this,Jf,Ae),effect(Bi(this,Z2,VL).bind(this))}onDestroy(){var Ae;(Ae=mi(this,Om))==null||Ae.call(this),Qn(this,Om,null)}show(Ae){var ke,Le,Fe;Bi(this,U_,vT).call(this),window.cancelAnimationFrame(mi(this,nv)),Qn(this,nv,-1),(ke=mi(this,Om))==null||ke.call(this),Qn(this,Om,null),Qn(this,iv,window.setTimeout(()=>{Qn(this,iv,-1);const Ve=mi(this,Jf).content();Ve&&Ve.style.removeProperty("display"),peek(()=>mi(this,Jf).onChange(!0,Ae))},((Fe=(Le=mi(this,Jf)).showDelay)==null?void 0:Fe.call(Le))??0))}hide(Ae){Bi(this,U_,vT).call(this),peek(()=>mi(this,Jf).onChange(!1,Ae)),Qn(this,nv,requestAnimationFrame(()=>{var Le;Bi(this,U_,vT).call(this),Qn(this,nv,-1);const ke=mi(this,Jf).content();if(ke){const Fe=()=>{ke.style.display="none",Qn(this,Om,null)};if(hasAnimation(ke)){(Le=mi(this,Om))==null||Le.call(this);const Ie=listenEvent(ke,"animationend",Fe,{once:!0});Qn(this,Om,Ie)}else Fe()}}))}}Jf=new WeakMap,Z2=new WeakSet,VL=function(){const Ae=mi(this,Jf).trigger();if(!Ae){this.hide();return}const ke=this.show.bind(this),Le=this.hide.bind(this);mi(this,Jf).listen(Ae,ke,Le)},iv=new WeakMap,nv=new WeakMap,Om=new WeakMap,U_=new WeakSet,vT=function(){window.clearTimeout(mi(this,iv)),Qn(this,iv,-1)};var wg,Y2,HL,K2,UL,J2,GL,Q2,jL;class ToggleButtonController extends ViewController{constructor(Ae){super();Oi(this,Y2);Oi(this,K2);Oi(this,J2);Oi(this,Q2);Oi(this,wg,void 0);Qn(this,wg,Ae),new FocusVisibleController,Ae.keyShortcut&&new ARIAKeyShortcuts(Ae.keyShortcut)}onSetup(){const{disabled:Ae}=this.$props;this.setAttributes({"data-pressed":mi(this,wg).isPresssed,"aria-pressed":Bi(this,Y2,HL).bind(this),"aria-disabled":()=>Ae()?"true":null})}onAttach(Ae){setAttributeIfEmpty(Ae,"tabindex","0"),setAttributeIfEmpty(Ae,"role","button"),setAttributeIfEmpty(Ae,"type","button")}onConnect(Ae){const ke=onPress(Ae,Bi(this,J2,GL).bind(this));for(const Le of["click","touchstart"])ke.add(Le,Bi(this,Q2,jL).bind(this),{passive:!0})}}wg=new WeakMap,Y2=new WeakSet,HL=function(){return ariaBool$1(mi(this,wg).isPresssed())},K2=new WeakSet,UL=function(Ae){isWriteSignal(mi(this,wg).isPresssed)&&mi(this,wg).isPresssed.set(ke=>!ke)},J2=new WeakSet,GL=function(Ae){if(this.$props.disabled()||this.el.hasAttribute("data-disabled")){Ae.preventDefault(),Ae.stopImmediatePropagation();return}Ae.preventDefault(),(mi(this,wg).onPress??Bi(this,K2,UL)).call(this,Ae)},Q2=new WeakSet,jL=function(Ae){this.$props.disabled()&&(Ae.preventDefault(),Ae.stopImmediatePropagation())},Mr(ToggleButtonController,"props",{disabled:!1});var Sg,eC,WL,tC,qL,iC,XL,nC,ZL;class AirPlayButton extends Component{constructor(){super();Oi(this,eC);Oi(this,tC);Oi(this,iC);Oi(this,nC);Oi(this,Sg,void 0);new ToggleButtonController({isPresssed:Bi(this,tC,qL).bind(this),onPress:Bi(this,eC,WL).bind(this)})}onSetup(){Qn(this,Sg,useMediaContext());const{canAirPlay:Ae,isAirPlayConnected:ke}=mi(this,Sg).$state;this.setAttributes({"data-active":ke,"data-supported":Ae,"data-state":Bi(this,iC,XL).bind(this),"aria-hidden":$ariaBool(()=>!Ae())})}onAttach(Ae){Ae.setAttribute("data-media-tooltip","airplay"),setARIALabel(Ae,Bi(this,nC,ZL).bind(this))}}Sg=new WeakMap,eC=new WeakSet,WL=function(Ae){mi(this,Sg).remote.requestAirPlay(Ae)},tC=new WeakSet,qL=function(){const{remotePlaybackType:Ae,remotePlaybackState:ke}=mi(this,Sg).$state;return Ae()==="airplay"&&ke()!=="disconnected"},iC=new WeakSet,XL=function(){const{remotePlaybackType:Ae,remotePlaybackState:ke}=mi(this,Sg).$state;return Ae()==="airplay"&&ke()},nC=new WeakSet,ZL=function(){const{remotePlaybackState:Ae}=mi(this,Sg).$state;return`AirPlay ${Ae()}`},Mr(AirPlayButton,"props",ToggleButtonController.props);var rv,rC,YL,zx,rI;class PlayButton extends Component{constructor(){super();Oi(this,rC);Oi(this,zx);Oi(this,rv,void 0);new ToggleButtonController({isPresssed:Bi(this,zx,rI).bind(this),keyShortcut:"togglePaused",onPress:Bi(this,rC,YL).bind(this)})}onSetup(){Qn(this,rv,useMediaContext());const{paused:Ae,ended:ke}=mi(this,rv).$state;this.setAttributes({"data-paused":Ae,"data-ended":ke})}onAttach(Ae){Ae.setAttribute("data-media-tooltip","play"),setARIALabel(Ae,"Play")}}rv=new WeakMap,rC=new WeakSet,YL=function(Ae){const ke=mi(this,rv).remote;Bi(this,zx,rI).call(this)?ke.pause(Ae):ke.play(Ae)},zx=new WeakSet,rI=function(){const{paused:Ae}=mi(this,rv).$state;return!Ae()},Mr(PlayButton,"props",ToggleButtonController.props);var sv,sC,KL,Bx,sI,Nx,oI;class CaptionButton extends Component{constructor(){super();Oi(this,sC);Oi(this,Bx);Oi(this,Nx);Oi(this,sv,void 0);new ToggleButtonController({isPresssed:Bi(this,Bx,sI).bind(this),keyShortcut:"toggleCaptions",onPress:Bi(this,sC,KL).bind(this)})}onSetup(){Qn(this,sv,useMediaContext()),this.setAttributes({"data-active":Bi(this,Bx,sI).bind(this),"data-supported":()=>!Bi(this,Nx,oI).call(this),"aria-hidden":$ariaBool(Bi(this,Nx,oI).bind(this))})}onAttach(Ae){Ae.setAttribute("data-media-tooltip","caption"),setARIALabel(Ae,"Captions")}}sv=new WeakMap,sC=new WeakSet,KL=function(Ae){mi(this,sv).remote.toggleCaptions(Ae)},Bx=new WeakSet,sI=function(){const{textTrack:Ae}=mi(this,sv).$state,ke=Ae();return!!ke&&isTrackCaptionKind(ke)},Nx=new WeakSet,oI=function(){const{hasCaptions:Ae}=mi(this,sv).$state;return!Ae()},Mr(CaptionButton,"props",ToggleButtonController.props);var k0,oC,JL,Vx,aI,aC,QL;class FullscreenButton extends Component{constructor(){super();Oi(this,oC);Oi(this,Vx);Oi(this,aC);Oi(this,k0,void 0);new ToggleButtonController({isPresssed:Bi(this,Vx,aI).bind(this),keyShortcut:"toggleFullscreen",onPress:Bi(this,oC,JL).bind(this)})}onSetup(){Qn(this,k0,useMediaContext());const{fullscreen:Ae}=mi(this,k0).$state,ke=Bi(this,aC,QL).bind(this);this.setAttributes({"data-active":Ae,"data-supported":ke,"aria-hidden":$ariaBool(()=>!ke())})}onAttach(Ae){Ae.setAttribute("data-media-tooltip","fullscreen"),setARIALabel(Ae,"Fullscreen")}}k0=new WeakMap,oC=new WeakSet,JL=function(Ae){const ke=mi(this,k0).remote,Le=this.$props.target();Bi(this,Vx,aI).call(this)?ke.exitFullscreen(Le,Ae):ke.enterFullscreen(Le,Ae)},Vx=new WeakSet,aI=function(){const{fullscreen:Ae}=mi(this,k0).$state;return Ae()},aC=new WeakSet,QL=function(){const{canFullscreen:Ae}=mi(this,k0).$state;return Ae()},Mr(FullscreenButton,"props",{...ToggleButtonController.props,target:"prefer-media"});var ov,lC,e6,G_,_T,cC,t6;class MuteButton extends Component{constructor(){super();Oi(this,lC);Oi(this,G_);Oi(this,cC);Oi(this,ov,void 0);new ToggleButtonController({isPresssed:Bi(this,G_,_T).bind(this),keyShortcut:"toggleMuted",onPress:Bi(this,lC,e6).bind(this)})}onSetup(){Qn(this,ov,useMediaContext()),this.setAttributes({"data-muted":Bi(this,G_,_T).bind(this),"data-state":Bi(this,cC,t6).bind(this)})}onAttach(Ae){Ae.setAttribute("data-media-mute-button",""),Ae.setAttribute("data-media-tooltip","mute"),setARIALabel(Ae,"Mute")}}ov=new WeakMap,lC=new WeakSet,e6=function(Ae){const ke=mi(this,ov).remote;Bi(this,G_,_T).call(this)?ke.unmute(Ae):ke.mute(Ae)},G_=new WeakSet,_T=function(){const{muted:Ae,volume:ke}=mi(this,ov).$state;return Ae()||ke()===0},cC=new WeakSet,t6=function(){const{muted:Ae,volume:ke}=mi(this,ov).$state,Le=ke();if(Ae()||Le===0)return"muted";if(Le>=.5)return"high";if(Le<.5)return"low"},Mr(MuteButton,"props",ToggleButtonController.props);var P0,uC,i6,Hx,lI,dC,n6;class PIPButton extends Component{constructor(){super();Oi(this,uC);Oi(this,Hx);Oi(this,dC);Oi(this,P0,void 0);new ToggleButtonController({isPresssed:Bi(this,Hx,lI).bind(this),keyShortcut:"togglePictureInPicture",onPress:Bi(this,uC,i6).bind(this)})}onSetup(){Qn(this,P0,useMediaContext());const{pictureInPicture:Ae}=mi(this,P0).$state,ke=Bi(this,dC,n6).bind(this);this.setAttributes({"data-active":Ae,"data-supported":ke,"aria-hidden":$ariaBool(()=>!ke())})}onAttach(Ae){Ae.setAttribute("data-media-tooltip","pip"),setARIALabel(Ae,"P
2385iP")}}P0=new WeakMap,uC=new WeakSet,i6=function(Ae){const ke=mi(this,P0).remote;Bi(this,Hx,lI).call(this)?ke.exitPictureInPicture(Ae):ke.enterPictureInPicture(Ae)},Hx=new WeakSet,lI=function(){const{pictureInPicture:Ae}=mi(this,P0).$state;return Ae()},dC=new WeakSet,n6=function(){const{canPictureInPicture:Ae}=mi(this,P0).$state;return Ae()},Mr(PIPButton,"props",ToggleButtonController.props);var I0,hC,r6,pC,s6,fC,o6;class SeekButton extends Component{constructor(){super();Oi(this,hC);Oi(this,pC);Oi(this,fC);Oi(this,I0,void 0);new FocusVisibleController}onSetup(){Qn(this,I0,useMediaContext());const{seeking:Ae}=mi(this,I0).$state,{seconds:ke}=this.$props,Le=Bi(this,hC,r6).bind(this);this.setAttributes({seconds:ke,"data-seeking":Ae,"data-supported":Le,"aria-hidden":$ariaBool(()=>!Le())})}onAttach(Ae){setAttributeIfEmpty(Ae,"tabindex","0"),setAttributeIfEmpty(Ae,"role","button"),setAttributeIfEmpty(Ae,"type","button"),Ae.setAttribute("data-media-tooltip","seek"),setARIALabel(Ae,Bi(this,pC,s6).bind(this))}onConnect(Ae){onPress(Ae,Bi(this,fC,o6).bind(this))}}I0=new WeakMap,hC=new WeakSet,r6=function(){const{canSeek:Ae}=mi(this,I0).$state;return Ae()},pC=new WeakSet,s6=function(){const{seconds:Ae}=this.$props;return`Seek ${Ae()>0?"forward":"backward"} ${Ae()} seconds`},fC=new WeakSet,o6=function(Ae){const{seconds:ke,disabled:Le}=this.$props;if(Le())return;const{currentTime:Fe}=mi(this,I0).$state,Ve=Fe()+ke();mi(this,I0).remote.seek(Ve,Ae)},Mr(SeekButton,"props",{disabled:!1,seconds:30});var av,mC,a6;class LiveButton extends Component{constructor(){super();Oi(this,mC);Oi(this,av,void 0);new FocusVisibleController}onSetup(){Qn(this,av,useMediaContext());const{disabled:Ae}=this.$props,{live:ke,liveEdge:Le}=mi(this,av).$state,Fe=()=>!ke();this.setAttributes({"data-edge":Le,"data-hidden":Fe,"aria-disabled":$ariaBool(()=>Ae()||Le()),"aria-hidden":$ariaBool(Fe)})}onAttach(Ae){setAttributeIfEmpty(Ae,"tabindex","0"),setAttributeIfEmpty(Ae,"role","button"),setAttributeIfEmpty(Ae,"type","button"),Ae.setAttribute("data-media-tooltip","live")}onConnect(Ae){onPress(Ae,Bi(this,mC,a6).bind(this))}}av=new WeakMap,mC=new WeakSet,a6=function(Ae){const{disabled:ke}=this.$props,{liveEdge:Le}=mi(this,av).$state;ke()||Le()||mi(this,av).remote.seekToLiveEdge(Ae)},Mr(LiveButton,"props",{disabled:!1});const sliderState=new State({min:0,max:100,value:0,step:1,pointerValue:0,focused:!1,dragging:!1,pointing:!1,hidden:!1,get active(){return this.dragging||this.focused||this.pointing},get fillRate(){return calcRate(this.min,this.max,this.value)},get fillPercent(){return this.fillRate*100},get pointerRate(){return calcRate(this.min,this.max,this.pointerValue)},get pointerPercent(){return this.pointerRate*100}});function calcRate(De,_e,Ae){const ke=_e-De,Le=Ae-De;return ke>0?Le/ke:0}var j_,R0,gC,l6;class IntersectionObserverController extends ViewController{constructor(Ae){super();Oi(this,gC);Oi(this,j_,void 0);Oi(this,R0,void 0);Qn(this,j_,Ae)}onConnect(Ae){Qn(this,R0,new IntersectionObserver(ke=>{var Le,Fe;(Fe=(Le=mi(this,j_)).callback)==null||Fe.call(Le,ke,mi(this,R0))},mi(this,j_))),mi(this,R0).observe(Ae),onDispose(Bi(this,gC,l6).bind(this))}}j_=new WeakMap,R0=new WeakMap,gC=new WeakSet,l6=function(){var Ae;(Ae=mi(this,R0))==null||Ae.disconnect(),Qn(this,R0,void 0)};const sliderContext=createContext(),sliderObserverContext=createContext();function getClampedValue(De,_e,Ae,ke){return clampNumber(De,round(Ae,getNumberOfDecimalPlaces(ke)),_e)}function getValueFromRate(De,_e,Ae,ke){const Le=clampNumber(0,Ae,1),Fe=_e-De,Ve=Fe*Le,Ie=Ve/ke,je=ke*Math.round(Ie);return De+je}const SliderKeyDirection={Left:-1,ArrowLeft:-1,Up:1,ArrowUp:1,Right:1,ArrowRight:1,Down:-1,ArrowDown:-1};var Pd,O0,W_,yC,c6,L0,Qf,Tg,vC,u6,_C,d6,bC,h6,xC,p6,wC,f6,q_,bT,Lm,m0,lv,_b,SC,m6,TC,g6,EC,y6,CC,v6,X_,xT,Ux,cI,Z_,Eg,AC,_6,DC,b6,Gx,uI,jx,dI,MC,x6,kC,w6,PC;class SliderEventsController extends ViewController{constructor(Ae,ke){super();Oi(this,yC);Oi(this,vC);Oi(this,_C);Oi(this,bC);Oi(this,xC);Oi(this,wC);Oi(this,q_);Oi(this,Lm);Oi(this,lv);Oi(this,SC);Oi(this,TC);Oi(this,EC);Oi(this,CC);Oi(this,X_);Oi(this,Ux);Oi(this,AC);Oi(this,DC);Oi(this,Gx);Oi(this,jx);Oi(this,MC);Oi(this,kC);Oi(this,Pd,void 0);Oi(this,O0,void 0);Oi(this,W_,void 0);Oi(this,L0,null);Oi(this,Qf,null);Oi(this,Tg,null);Oi(this,Z_,void 0);Oi(this,Eg,!1);Oi(this,PC,functionThrottle(Ae=>
2385{Bi(this,Lm,m0).call(this,Bi(this,lv,_b).call(this,Ae),Ae)},20,{leading:!0}));Qn(this,Pd,Ae),Qn(this,O0,ke)}onSetup(){hasProvidedContext(sliderObserverContext)&&Qn(this,W_,useContext(sliderObserverContext))}onConnect(Ae){effect(Bi(this,bC,h6).bind(this,Ae)),effect(Bi(this,xC,p6).bind(this,Ae)),mi(this,Pd).swipeGesture&&effect(Bi(this,yC,c6).bind(this))}}Pd=new WeakMap,O0=new WeakMap,W_=new WeakMap,yC=new WeakSet,c6=function(){var ke;const{pointer:Ae}=mi(this,O0).$state;if(Ae()!=="coarse"||!mi(this,Pd).swipeGesture()){Qn(this,L0,null);return}Qn(this,L0,(ke=mi(this,O0).player.el)==null?void 0:ke.querySelector("media-provider,[data-media-provider]")),mi(this,L0)&&new EventsController(mi(this,L0)).add("touchstart",Bi(this,vC,u6).bind(this),{passive:!0}).add("touchmove",Bi(this,_C,d6).bind(this),{passive:!1})},L0=new WeakMap,Qf=new WeakMap,Tg=new WeakMap,vC=new WeakSet,u6=function(Ae){Qn(this,Qf,Ae.touches[0])},_C=new WeakSet,d6=function(Ae){if(isNull(mi(this,Qf))||isTouchPinchEvent(Ae))return;const ke=Ae.touches[0],Le=ke.clientX-mi(this,Qf).clientX,Fe=ke.clientY-mi(this,Qf).clientY,Ve=this.$state.dragging();!Ve&&Math.abs(Fe)>5||Ve||(Ae.preventDefault(),Math.abs(Le)>20&&(Qn(this,Qf,ke),Qn(this,Tg,this.$state.value()),Bi(this,X_,xT).call(this,mi(this,Tg),Ae)))},bC=new WeakSet,h6=function(Ae){const{hidden:ke}=this.$props;listenEvent(Ae,"focus",Bi(this,wC,f6).bind(this)),!(ke()||mi(this,Pd).isDisabled())&&new EventsController(Ae).add("keyup",Bi(this,DC,b6).bind(this)).add("keydown",Bi(this,AC,_6).bind(this)).add("pointerenter",Bi(this,SC,m6).bind(this)).add("pointermove",Bi(this,TC,g6).bind(this)).add("pointerleave",Bi(this,EC,y6).bind(this)).add("pointerdown",Bi(this,CC,v6).bind(this))},xC=new WeakSet,p6=function(Ae){mi(this,Pd).isDisabled()||!this.$state.dragging()||new EventsController(document).add("pointerup",Bi(this,MC,x6).bind(this),{capture:!0}).add("pointermove",mi(this,PC).bind(this)).add("touchmove",Bi(this,kC,w6).bind(this),{passive:!1})}
2385,wC=new WeakSet,f6=function(){Bi(this,Lm,m0).call(this,this.$state.value())},q_=new WeakSet,bT=function(Ae,ke){var $e,qe,ci,gi;const{value:Le,min:Fe,max:Ve,dragging:Ie}=this.$state,je=Math.max(Fe(),Math.min(Ae,Ve()));Le.set(je);const Ke=this.createEvent("value-change",{detail:je,trigger:ke});if(this.dispatch(Ke),(qe=($e=mi(this,Pd)).onValueChange)==null||qe.call($e,Ke),Ie()){const Ai=this.createEvent("drag-value-change",{detail:je,trigger:ke});this.dispatch(Ai),(gi=(ci=mi(this,Pd)).onDragValueChange)==null||gi.call(ci,Ai)}},Lm=new WeakSet,m0=function(Ae,ke){const{pointerValue:Le,dragging:Fe}=this.$state;Le.set(Ae),this.dispatch("pointer-value-change",{detail:Ae,trigger:ke}),Fe()&&Bi(this,q_,bT).call(this,Ae,ke)},lv=new WeakSet,_b=function(Ae){let ke,Le=this.el.getBoundingClientRect(),{min:Fe,max:Ve}=this.$state;if(this.$props.orientation()==="vertical"){const{bottom:Ie,height:je}=Le;ke=(Ie-Ae.clientY)/je}else if(mi(this,Qf)&&isNumber(mi(this,Tg))){const{width:Ie}=mi(this,L0).getBoundingClientRect(),je=(Ae.clientX-mi(this,Qf).clientX)/Ie,Ke=Ve()-Fe(),$e=Ke*Math.abs(je);ke=(je<0?mi(this,Tg)-$e:mi(this,Tg)+$e)/Ke}else{const{left:Ie,width:je}=Le;ke=(Ae.clientX-Ie)/je}return Math.max(Fe(),Math.min(Ve(),mi(this,Pd).roundValue(getValueFromRate(Fe(),Ve(),ke,mi(this,Pd).getStep()))))},SC=new WeakSet,m6=function(Ae){this.$state.pointing.set(!0)},TC=new WeakSet,g6=function(Ae){const{dragging:ke}=this.$state;
2385ke()||Bi(this,Lm,m0).call(this,Bi(this,lv,_b).call(this,Ae),Ae)},EC=new WeakSet,y6=function(Ae){this.$state.pointing.set(!1)},CC=new WeakSet,v6=function(Ae){if(Ae.button!==0)return;const ke=Bi(this,lv,_b).call(this,Ae);Bi(this,X_,xT).call(this,ke,Ae),Bi(this,Lm,m0).call(this,ke,Ae)},X_=new WeakSet,xT=function(Ae,ke){var Ve,Ie,je,Ke;const{dragging:Le}=this.$state;if(Le())return;Le.set(!0),mi(this,O0).remote.pauseControls(ke);const Fe=this.createEvent("drag-start",{detail:Ae,trigger:ke});this.dispatch(Fe),(Ie=(Ve=mi(this,Pd)).onDragStart)==null||Ie.call(Ve,Fe),(Ke=(je=mi(this,W_))==null?void 0:je.onDragStart)==null||Ke.call(je)},Ux=new WeakSet,cI=function(Ae,ke){var Ve,Ie,je,Ke;const{dragging:Le}=this.$state;if(!Le())return;Le.set(!1),mi(this,O0).remote.resumeControls(ke);const Fe=this.createEvent("drag-end",{detail:Ae,trigger:ke});this.dispatch(Fe),(Ie=(Ve=mi(this,Pd)).onDragEnd)==null||Ie.call(Ve,Fe),Qn(this,Qf,null),Qn(this,Tg,null),(Ke=(je=mi(this,W_))==null?void 0:je.onDragEnd)==null||Ke.call(je)},Z_=new WeakMap,Eg=new WeakMap,AC=new WeakSet,_6=function(Ae){if(!Object.keys(SliderKeyDirection).includes(Ae.key))return;const{key:Le}=Ae,Fe=Bi(this,Gx,uI).call(this,Ae);
2385if(!isNull(Fe)){Bi(this,Lm,m0).call(this,Fe,Ae),Bi(this,q_,bT).call(this,Fe,Ae);return}const Ve=Bi(this,jx,dI).call(this,Ae);mi(this,Eg)||(Qn(this,Eg,Le===mi(this,Z_)),!this.$state.dragging()&&mi(this,Eg)&&Bi(this,X_,xT).call(this,Ve,Ae)),Bi(this,Lm,m0).call(this,Ve,Ae),Qn(this,Z_,Le)},DC=new WeakSet,b6=function(Ae){if(!Object.keys(SliderKeyDirection).includes(Ae.key)||!isNull(Bi(this,Gx,uI).call(this,Ae)))return;const Le=mi(this,Eg)?this.$state.pointerValue():Bi(this,jx,dI).call(this,Ae);Bi(this,q_,bT).call(this,Le,Ae),Bi(this,Ux,cI).call(this,Le,Ae),Qn(this,Z_,""),Qn(this,Eg,!1)},Gx=new WeakSet,uI=function(Ae){let ke=Ae.key,{min:Le,max:Fe}=this.$state;return ke==="Home"||ke==="PageUp"?Le():ke==="End"||ke==="PageDown"?Fe():!Ae.metaKey&&/^[0-9]$/.test(ke)?(Fe()-Le())/10*Number(ke):null},jx=new WeakSet,dI=function(Ae){var hi,Ei;const{key:ke,shiftKey:Le}=Ae;Ae.preventDefault(),Ae.stopPropagation();const{shiftKeyMultiplier:Fe}=this.$props,{min:Ve,max:Ie,value:je,pointerValue:Ke}=this.$state,$e=mi(this,Pd).getStep(),qe=mi(this,Pd).getKeyStep(),ci=Le?qe*Fe():qe,gi=Number(SliderKeyDirection[ke]),Ai=ci*gi,oi=mi(this,Eg)?Ke():((Ei=(hi=mi(this,Pd)).getValue)==null?void 0:Ei.call(hi))??je(),ii=(oi+Ai)/$e;return Math.max(Ve(),Math.min(Ie(),Number(($e*ii).toFixed(3))))},MC=new WeakSet,x6=function(Ae){if(Ae.button!==0)return;Ae.preventDefault(),Ae.stopImmediatePropagation();const ke=Bi(this,lv,_b).call(this,Ae);
2385Bi(this,Lm,m0).call(this,ke,Ae),Bi(this,Ux,cI).call(this,ke,Ae)},kC=new WeakSet,w6=function(Ae){Ae.preventDefault()},PC=new WeakMap;const sliderValueFormatContext=createContext(()=>({}));var Wx,sp,qx,Xx,IC,S6,RC,T6,OC,E6,LC,C6,$C,A6,FC,D6,zC,M6,BC,k6,NC;class SliderController extends ViewController{constructor(Ae){super();Oi(this,IC);Oi(this,RC);Oi(this,OC);Oi(this,LC);Oi(this,$C);Oi(this,FC);Oi(this,zC);Oi(this,BC);Oi(this,Wx,void 0);Oi(this,sp,void 0);Oi(this,qx,signal(!0));Oi(this,Xx,signal(!0));Oi(this,NC,animationFrameThrottle((Ae,ke)=>{var Le,Fe;(Le=this.el)==null||Le.style.setProperty("--slider-fill",Ae+"%"),(Fe=this.el)==null||Fe.style.setProperty("--slider-pointer",ke+"%")}));Qn(this,sp,Ae)}onSetup(){Qn(this,Wx,useMediaContext());const Ae=new FocusVisibleController;Ae.attach(this),this.$state.focused=Ae.focused.bind(Ae),hasProvidedContext(sliderValueFormatContext)||provideContext(sliderValueFormatContext,{default:"value"}),provideContext(sliderContext,{orientation:this.$props.orientation,disabled:mi(this,sp).isDisabled,preview:signal(null)}),effect(Bi(this,OC,E6).bind(this)),effect(Bi(this,LC,C6).bind(this)),effect(Bi(this,$C,A6).bind(this)),Bi(this,zC,M6).call(this),new SliderEventsController(mi(this,sp),mi(this,Wx)).attach(this),new IntersectionObserverController({callback:Bi(this,IC,S6).bind(this)}).attach(this)}onAttach(Ae){setAttributeIfEmpty(Ae,"role","slider"),setAttributeIfEmpty(Ae,"tabindex","0"),setAttributeIfEmpty(Ae,"autocomplete","off"),effect(Bi(this,BC,k6).bind(this))}onConnect(Ae){onDispose(observeVisibility(Ae,mi(this,qx).set)),effect(Bi(this,RC,T6).bind(this))}}Wx=new WeakMap,sp=new WeakMap,qx=new WeakMap,Xx=new WeakMap,IC=new WeakSet,S6=function(Ae){mi(this,Xx).set(Ae[0].isIntersecting)},RC=new WeakSet,T6=function(){const{hidden:Ae}=this.$props;this.$state.hidden.set(Ae()||!mi(this,qx).call(this)||!mi(this,Xx).bind(this))},OC=new WeakSet,E6=function(){const{dragging:Ae,value:ke,min:Le,max:Fe}=this.$state;peek(Ae)||ke.set(getClampedValue(Le(),Fe(),ke(),mi(this,sp).getStep()))},LC=new WeakSet,C6=function(){this.$state.step.set(mi(this,sp).getStep())},$C=new WeakSet,A6=function(){if(!mi(this,sp).isDisabled())return;const{dragging:Ae,pointing:ke}=this.$state;Ae.set(!1),ke.set(!1)},FC=new WeakSet,D6=function(){return ariaBool$1(mi(this,sp).isDisabled())},zC=new WeakSet,M6=function(){const{orientation:Ae}=this.$props,{dragging:ke,active:Le,pointing:Fe}=this.$state;this.setAttributes({"data-dragging":ke,"data-pointing":Fe,"data-active":Le,"aria-disabled":Bi(this,FC,D6).bind(this),"aria-valuemin":mi(this,sp).aria.valueMin??this.$state.min,"aria-valuemax":mi(this,sp).aria.valueMax??this.$state.max,"aria-valuenow":mi(this,sp).aria.valueNow,"aria-valuetext":mi(this,sp).aria.valueText,"aria-orientation":Ae})},BC=new WeakSet,k6=function(){const{fillPercent:Ae,pointerPercent:ke}=this.$state;mi(this,NC).call(this,round(Ae(),3),round(ke(),3))},NC=new WeakMap,Mr(SliderController,"props",{hidden:!1,disabled:!1,step:1,keyStep:1,orientation:"horizontal",shiftKeyMultiplier:5});var VC,P6,HC,I6,UC,R6,GC,O6;class Slider extends Component{constructor(){super();Oi(this,VC);Oi(this,HC);Oi(this,UC);Oi(this,GC);new SliderController({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:this.$props.disabled,aria:{valueNow:Bi(this,VC,P6).bind(this),valueText:Bi(this,HC,I6).bind(this)}})}onSetup(){effect(Bi(this,UC,R6).bind(this)),effect(Bi(this,GC,O6).bind(this))}}VC=new WeakSet,P6=function(){const{value:Ae}=this.$state;return Math.round(Ae())},HC=new WeakSet,I6=function(){const{value:Ae,max:ke}=this.$state;return round(Ae()/ke()*100,2)+"%"},UC=new WeakSet,R6=function(){const{value:Ae}=this.$props;this.$state.value.set(Ae())},GC=new WeakSet,O6=function(){const{min:Ae,max:ke}=this.$props;this.$state.min.set(Ae()),this.$state.max.set(ke())},Mr(Slider,"props",{...SliderController.props,min:0,max:100,value:0}),Mr(Slider,"state",sliderState);const cache=new Map,pending=new Map;var Zx,Y_,Yx,jC,L6,WC,$6,Kx,hI,Jx,pI,Qx,fI,ew,mI,qC,F6,K_,wT;const lR=class lR{constructor(_e,Ae,ke){Oi(this,jC);Oi(this,WC);
2385Oi(this,Kx);Oi(this,Jx);Oi(this,Qx);Oi(this,ew);Oi(this,qC);Oi(this,K_);Oi(this,Zx,void 0);Oi(this,Y_,void 0);Oi(this,Yx,void 0);Mr(this,"$images",signal([]));Qn(this,Y_,_e),Qn(this,Yx,Ae),Qn(this,Zx,ke),effect(Bi(this,jC,L6).bind(this))}static create(_e,Ae){const ke=useMediaContext();return new lR(_e,Ae,ke)}};Zx=new WeakMap,Y_=new WeakMap,Yx=new WeakMap,jC=new WeakSet,L6=function(){var ke;const{canLoad:_e}=mi(this,Zx).$state;if(!_e())return;const Ae=mi(this,Y_).call(this);if(Ae){if(isString(Ae)&&cache.has(Ae)){const Le=cache.get(Ae);if(cache.delete(Ae),cache.set(Ae,Le),cache.size>99){const Fe=cache.keys().next().value;cache.delete(Fe)}this.$images.set(cache.get(Ae))}else if(isString(Ae)){const Le=mi(this,Yx).call(this),Fe=Ae+"::"+Le;if(!pending.has(Fe)){const Ve=new Promise(async(Ie,je)=>{try{const Ke=await fetch(Ae,{credentials:getRequestCredentials(Le)});if(Ke.headers.get("content-type")==="application/json"){const qe=await Ke.json();if(isArray(qe))if(qe[0]&&"text"in qe[0])Ie(Bi(this,Jx,pI).call(this,qe));else{for(let ci=0;ci<qe.length;ci++){const gi=qe[ci];assert(isObject(gi),!1),assert("url"in gi&&isString(gi.url),!1),assert("startTime"in gi&&isNumber(gi.startTime),!1)}Ie(qe)}else Ie(Bi(this,Kx,hI).call(this,qe));return}__vitePreload(()=>import("./prod-ff22be83.js").then(qe=>qe.d),[]).then(async({parseResponse:qe})=>{try{const{cues:ci}=await qe(Ke);Ie(Bi(this,Jx,pI).call(this,ci))}catch(ci){je(ci)}})}catch(Ke){je(Ke)}}).then(Ie=>(cache.set(Fe,Ie),Ie)).catch(Ie=>{Bi(this,K_,wT).call(this,Ae,Ie)}).finally(()=>{isString(Fe)&&pending.delete(Fe)});pending.set(Fe,Ve)}(ke=pending.get(Fe))==null||ke.then(Ve=>{this.$images.set(Ve||[])})}else if(isArray(Ae))try{this.$images.set(Bi(this,WC,$6).call(this,Ae))}catch(Le){Bi(this,K_,wT).call(this,Ae,Le)}else try{this.$images.set(Bi(this,Kx,hI).call(this,Ae))}catch(Le){Bi(this,K_,wT).call(this,Ae,Le)}return()=>{this.$images.set([])}}},WC=new WeakSet,$6=function(_e){const Ae=Bi(this,Qx,fI).call(this);return _e.map((ke,Le)=>(assert(ke.url&&isString(ke.url)),assert("startTime"in ke&&isNumber(ke.startTime)),{...ke,url:isString(ke.url)?Bi(this,ew,mI).call(this,ke.url,Ae):ke.url}))},Kx=new WeakSet,hI=function(_e){var Ve;assert(isString(_e.url)),assert(isArray(_e.tiles)&&((Ve=_e.tiles)==null?void 0:Ve.length));const Ae=new URL(_e.url),ke=[],Le="tile_width"in _e?_e.tile_width:_e.tileWidth,Fe="tile_height"in _e?_e.tile_height:_e.tileHeight;for(const Ie of _e.tiles)ke.push({url:Ae,startTime:"start"in Ie?Ie.start:Ie.startTime,width:Le,height:Fe,coords:{x:Ie.x,y:Ie.y}});return ke},Jx=new WeakSet,pI=function(_e){for(let Le=0;Le<_e.length;Le++){const Fe=_e[Le];assert("startTime"in Fe&&isNumber(Fe.startTime)),assert("text"in Fe&&isString(Fe.text))}const Ae=[],ke=Bi(this,Qx,fI).call(this);for(const Le of _e){const[Fe,Ve]=Le.text.split("#"),Ie=Bi(this,qC,F6).call(this,Ve);Ae.push({url:Bi(this,ew,mI).call(this,Fe,ke),startTime:Le.startTime,endTime:Le.endTime,width:Ie==null?void 0:Ie.w,height:Ie==null?void 0:Ie.h,coords:Ie&&isNumber(Ie.x)&&isNumber(Ie.y)?{x:Ie.x,y:Ie.y}:void 0})}return Ae},Qx=new WeakSet,fI=function(){let _e=peek(mi(this,Y_));return!isString(_e)||!/^https?:/.test(_e)?location.href:_e},ew=new WeakSet,mI=function(_e,Ae){return/^https?:/.test(_e)?new URL(_e):new URL(_e,Ae)},qC=new WeakSet,F6=function(_e){if(!_e)return{};const[Ae,ke]=_e.split("="),Le=ke==null?void 0:ke.split(","),Fe={};if(!Ae||!Le)return null;for(let Ve=0;Ve<Ae.length;Ve++){const Ie=+Le[Ve];isNaN(Ie)||(Fe[Ae[Ve]]=Ie)}return Fe},K_=new WeakSet,wT=function(_e,Ae){};let ThumbnailsLoader=lR;var J_,Q_,XC,z6,tw,gI,ZC,B6,YC,N6,KC,V6,JC,H6,iw,yI,QC,U6,eA,G6,nw,vI,$m,g0,tA,j6;class Thumbnail extends Component{constructor(){super(...arguments);Oi(this,XC);Oi(this,tw);Oi(this,ZC);Oi(this,YC);Oi(this,KC);Oi(this,JC);Oi(this,iw);Oi(this,QC);Oi(this,eA);Oi(this,nw);Oi(this,$m);Oi(this,tA);Mr(this,"media");Oi(this,J_,void 0);Oi(this,Q_,[])}onSetup(){this.media=useMediaContext(),Qn(this,J_,ThumbnailsLoader.create(this.$props.src,this.$state.crossOrigin)),Bi(this,tw,gI).call(this),this.setAttributes({"data-loading":Bi(this,JC,H6).bind(this),"data-error":Bi(this,iw,yI).bind(this),"data-hidden":this.$state.hidden,"aria-hidden":$ariaBool(this.$state.hidden)})}onConnect(Ae){effect(Bi(this,XC,z6).bind(this)),effect(Bi(this,QC,U6).bind(this)),effect(Bi(this,tw,gI).bind(this)),effect(Bi(this,ZC,B6).bind(this)),effect(Bi(this,eA,G6).bind(this)),effect(Bi(this,nw,vI).bind(this))}getTime(){return this.$props.time()}}J_=new WeakMap,Q_=new WeakMap,XC=new WeakSet,z6=function(){const Ae=this.$state.img();Ae&&new EventsController(Ae).add("load",Bi(this,YC,N6).bind(this)).add("error",Bi(this,KC,V6).bind(this))},tw=new WeakSet,gI=function(){const{crossOrigin:Ae}=this.$props,{crossOrigin:ke}=this.$state,{crossOrigin:Le}=this.media.$state,Fe=Ae()!==null?Ae():Le();ke.set(Fe===!0?"anonymous":Fe)},ZC=new WeakSet,B6=function(){const{src:Ae,loading:ke,error:Le}=this.$state;return Ae()&&(ke.set(!0),Le.set(null)),()=>{Bi(this,tA,j6).call(this),ke.set(!1),Le.set(null)}},YC=new WeakSet,N6=function(){const{loading:Ae,error:ke}=this.$state;Bi(this,nw,vI).call(this),Ae.set(!1),ke.set(null)},KC=new WeakSet,V6=function(Ae){const{loading:ke,error:Le}=this.$state;ke.set(!1),Le.set(Ae)},JC=new WeakSet,H6=function(){const{loading:Ae,hidden:ke}=this.$state;return!ke()&&Ae()},iw=new WeakSet,yI=function(){const{error:Ae}=this.$state;return!isNull(Ae())},QC=new WeakSet,U6=function(){const{hidden:Ae}=this.$state,{duration:ke}=this.media.$state,Le=mi(this,J_).$images();
2385Ae.set(Bi(this,iw,yI).call(this)||!Number.isFinite(ke())||Le.length===0)},eA=new WeakSet,G6=function(){let Ae=mi(this,J_).$images();if(!Ae.length)return;let ke=this.getTime(),{src:Le,activeThumbnail:Fe}=this.$state,Ve=-1,Ie=null;for(let je=Ae.length-1;je>=0;je--){const Ke=Ae[je];if(ke>=Ke.startTime&&(!Ke.endTime||ke<Ke.endTime)){Ve=je;break}}Ae[Ve]&&(Ie=Ae[Ve]),Fe.set(Ie),Le.set((Ie==null?void 0:Ie.url.href)||"")},nw=new WeakSet,vI=function(){if(!this.scope||this.$state.hidden())return;const Ae=this.el,ke=this.$state.img(),Le=this.$state.activeThumbnail();if(!ke||!Le||!Ae)return;let Fe=Le.width??ke.naturalWidth,Ve=(Le==null?void 0:Le.height)??ke.naturalHeight,{maxWidth:Ie,maxHeight:je,minWidth:Ke,minHeight:$e,width:qe,height:ci}=getComputedStyle(this.el);Ke==="100%"&&(Ke=parseFloat(qe)+""),$e==="100%"&&($e=parseFloat(ci)+"");let gi=Math.max(parseInt(Ke)/Fe,parseInt($e)/Ve),Ai=Math.min(Math.max(parseInt(Ke),parseInt(Ie))/Fe,Math.max(parseInt($e),parseInt(je))/Ve),oi=!isNaN(Ai)&&Ai<1?Ai:gi>1?gi:1;Bi(this,$m,g0).call(this,Ae,"--thumbnail-width",`${Fe*oi}px`),Bi(this,$m,g0).call(this,Ae,"--thumbnail-height",`${Ve*oi}px`),Bi(this,$m,g0).call(this,Ae,"--thumbnail-aspect-ratio",String(round(Fe/Ve,5))),Bi(this,$m,g0).call(this,ke,"width",`${ke.naturalWidth*oi}px`),Bi(this,$m,g0).call(this,ke,"height",`${ke.naturalHeight*oi}px`),Bi(this,$m,g0).call(this,ke,"transform",Le.coords?`translate(-${Le.coords.x*oi}px, -${Le.coords.y*oi}px)`:""),Bi(this,$m,g0).call(this,ke,"max-width","none")},$m=new WeakSet,g0=function(Ae,ke,Le){Ae.style.setProperty(ke,Le),mi(this,Q_).push(()=>Ae.style.removeProperty(ke))},tA=new WeakSet,j6=function(){for(const Ae of mi(this,Q_))Ae();Qn(this,Q_,[])},Mr(Thumbnail,"props",{src:null,time:0,crossOrigin:null}),Mr(Thumbnail,"state",new State({src:"",img:null,thumbnails:[],activeThumbnail:null,crossOrigin:null,loading:!1,error:null,hidden:!1}));var $0,iA,rw;class SliderValue extends Component{constructor(){super(...arguments);Oi(this,$0,void 0);Oi(this,iA,void 0);Oi(this,rw,void 0)}onSetup(){Qn(this,rw,useState(Slider.state)),Qn(this,$0,useContext(sliderValueFormatContext)),Qn(this,iA,computed(this.getValueText.bind(this)))}getValueText(){var oi,ii;const{type:Ae,format:ke,decimalPlaces:Le,padHours:Fe,padMinutes:Ve,showHours:Ie,showMs:je}=this.$props,{value:Ke,pointerValue:$e,min:qe,max:ci}=mi(this,rw),gi=(ke==null?void 0:ke())??mi(this,$0).default,Ai=Ae()==="current"?Ke():$e();if(gi==="percent"){const hi=ci()-qe(),Ei=Ai/hi*100;return(mi(this,$0).percent??round)(Ei,Le())+"%"}else return gi==="time"?(mi(this,$0).time??formatTime)(Ai,{padHrs:Fe(),padMins:Ve(),showHrs:Ie(),showMs:je()}):(((ii=(oi=mi(this,$0)).value)==null?void 0:ii.call(oi,Ai))??Ai.toFixed(2))+""}}$0=new WeakMap,iA=new WeakMap,rw=new WeakMap,Mr(SliderValue,"props",{type:"pointer",format:null,showHours:!1,showMs:!1,padHours:null,padMinutes:null,decimalPlaces:2});const slidervalue__proto=SliderValue.prototype;method(slidervalue__proto,"getValueText");var e1,sw;class SliderPreview extends Component{constructor(){super(...arguments);Oi(this,e1,void 0);Oi(this,sw,animationFrameThrottle(()=>{const{disabled:Ae,orientation:ke}=mi(this,e1);if(Ae())return;const Le=this.el,{offset:Fe,noClamp:Ve}=this.$props;Le&&updateSliderPreviewPlacement(Le,{clamp:!Ve(),offset:Fe(),orientation:ke()})}))}onSetup(){Qn(this,e1,useContext(sliderContext));const{active:Ae}=useState(Slider.state);this.setAttributes({"data-visible":Ae})}onAttach(Ae){Object.assign(Ae.style,{position:"absolute",top:0,left:0,width:"max-content"})}onConnect(Ae){const{preview:ke}=mi(this,e1);ke.set(Ae),onDispose(()=>ke.set(null)),effect(mi(this,sw).bind(this));const Le=new ResizeObserver(mi(this,sw).bind(this));Le.observe(Ae),onDispose(()=>Le.disconnect())}}e1=new WeakMap,sw=new WeakMap,Mr(SliderPreview,"props",{offset:0,noClamp:!1});function updateSliderPreviewPlacement(De,{clamp:_e,offset:Ae,orientation:ke}){const Le=getComputedStyle(De),Fe=parseFloat(Le.width),Ve=parseFloat(Le.height),Ie={top:null,right:null,bottom:null,left:null};if(Ie[ke==="horizontal"?"bottom":"left"]=`calc(100% + var(--media-slider-preview-offset, ${Ae}px))`,ke==="horizontal"){const je=Fe/2;if(!_e)Ie.left=`calc(var(--slider-pointer) - ${je}px)`;else{const Ke=`max(0px, calc(var(--slider-pointer) - ${je}px))`,$e=`calc(100% - ${Fe}px)`;Ie.left=`min(${Ke}, ${$e})`}}else{const je=Ve/2;if(!_e)Ie.bottom=`calc(var(--slider-pointer) - ${je}px)`;else{const Ke=`max(${je}px, calc(var(--slider-pointer) - ${je}px))`,$e=`calc(100% - ${Ve}px)`;Ie.bottom=`min(${Ke}, ${$e})`}}Object.assign(De.style,Ie)}var xf,nA,W6,rA,q6,sA,X6,oA,Z6,aA,Y6,ow,lA,K6,cA,J6,uA,Q6;class VolumeSlider extends Component{constructor(){super(...arguments);Oi(this,nA);Oi(this,rA);Oi(this,sA);Oi(this,oA);Oi(this,aA);Oi(this,lA);Oi(this,cA);Oi(this,uA);Oi(this,xf,void 0);Oi(this,ow,functionThrottle(Bi(this,lA,K6).bind(this),25))}onSetup(){Qn(this,xf,useMediaContext());const{audioGain:Ae}=mi(this,xf).$state;provideContext(sliderValueFormatContext,{default:"percent",value(ke){return(ke*(Ae()??
23851)).toFixed(2)},percent(ke){return Math.round(ke*(Ae()??1))}}),new SliderController({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:Bi(this,oA,Z6).bind(this),aria:{valueMax:Bi(this,sA,X6).bind(this),valueNow:Bi(this,nA,W6).bind(this),valueText:Bi(this,rA,q6).bind(this)},onDragValueChange:Bi(this,uA,Q6).bind(this),onValueChange:Bi(this,cA,J6).bind(this)}).attach(this),effect(Bi(this,aA,Y6).bind(this))}onAttach(Ae){Ae.setAttribute("data-media-volume-slider",""),setAttributeIfEmpty(Ae,"aria-label","Volume");const{canSetVolume:ke}=mi(this,xf).$state;this.setAttributes({"data-supported":ke,"aria-hidden":$ariaBool(()=>!ke())})}}xf=new WeakMap,nA=new WeakSet,W6=function(){const{value:Ae}=this.$state,{audioGain:ke}=mi(this,xf).$state;return Math.round(Ae()*(ke()??1))},rA=new WeakSet,q6=function(){const{value:Ae,max:ke}=this.$state,{audioGain:Le}=mi(this,xf).$state;return round(Ae()/ke()*(Le()??1)*100,2)+"%"},sA=new WeakSet,X6=function(){const{audioGain:Ae}=mi(this,xf).$state;return this.$state.max()*(Ae()??1)},oA=new WeakSet,Z6=function(){const{disabled:Ae}=this.$props,{canSetVolume:ke}=mi(this,xf).$state;return Ae()||!ke()},aA=new WeakSet,Y6=function(){const{muted:Ae,volume:ke}=mi(this,xf).$state,Le=Ae()?0:ke()*100;this.$state.value.set(Le),this.dispatch("value-change",{detail:Le})},ow=new WeakMap,lA=new WeakSet,K6=function(Ae){if(!Ae.trigger)return;const ke=round(Ae.detail/100,3);mi(this,xf).remote.changeVolume(ke,Ae)},cA=new WeakSet,J6=function(Ae){mi(this,ow).call(this,Ae)},uA=new WeakSet,Q6=function(Ae){mi(this,ow).call(this,Ae)},Mr(VolumeSlider,"props",{...SliderController.props,keyStep:5,shiftKeyMultiplier:2}),Mr(VolumeSlider,"state",sliderState);var vc,t1,aw,dA,e$,hA,t$,pA,i$,fA,n$,mA,r$,lw,_I,gA,s$,i1,yA,o$,vA,a$,cw,bI,_A,l$,uw,xI,bA,c$,xA,u$,wA,d$,SA,h$,TA,p$,EA,f$,Cg,Py,CA,m$,AA,g$,DA,y$;class TimeSlider extends Component{constructor(){super();Oi(this,dA);Oi(this,hA);Oi(this,pA);Oi(this,fA);Oi(this,mA);Oi(this,lw);Oi(this,gA);Oi(this,yA);Oi(this,vA);Oi(this,cw);Oi(this,_A);Oi(this,uw);Oi(this,bA);Oi(this,xA);Oi(this,wA);Oi(this,SA);Oi(this,TA);Oi(this,EA);Oi(this,Cg);Oi(this,CA);Oi(this,AA);Oi(this,DA);Oi(this,vc,void 0);Oi(this,t1,void 0);Oi(this,aw,signal(null));Oi(this,i1,!1);const{noSwipeGesture:Ae}=this.$props;new SliderController({swipeGesture:()=>!Ae(),getValue:Bi(this,uw,xI).bind(this),getStep:Bi(this,bA,c$).bind(this),getKeyStep:Bi(this,xA,u$).bind(this),roundValue:Bi(this,wA,d$),isDisabled:Bi(this,SA,h$).bind(this),aria:{valueNow:Bi(this,TA,p$).bind(this),valueText:Bi(this,EA,f$).bind(this)},onDragStart:Bi(this,yA,o$).bind(this),onDragValueChange:Bi(this,vA,a$).bind(this),onDragEnd:Bi(this,cw,bI).bind(this),onValueChange:Bi(this,_A,l$).bind(this)})}onSetup(){Qn(this,vc,useMediaContext()),provideContext(sliderValueFormatContext,{default:"time",value:Bi(this,AA,g$).bind(this),time:Bi(this,DA,y$).bind(this)}),this.setAttributes({"data-chapters":Bi(this,hA,t$).bind(this)}),this.setStyles({"--slider-progress":Bi(this,dA,e$).bind(this)}),effect(Bi(this,fA,n$).bind(this)),effect(Bi(this,pA,i$).bind(this))}onAttach(Ae){Ae.setAttribute("data-media-time-slider",""),setAttributeIfEmpty(Ae,"aria-label","Seek")}onConnect(Ae){effect(Bi(this,mA,r$).bind(this)),watchActiveTextTrack(mi(this,vc).textTracks,"chapters",mi(this,aw).set)}}vc=new WeakMap,t1=new WeakMap,aw=new WeakMap,dA=new WeakSet,e$=function(){const{bufferedEnd:Ae,duration:ke}=mi(this,vc).$state;return round(Math.min(Ae()/Math.max(ke(),1),1)*100,3)+"%"},hA=new WeakSet,t$=function(){var ke;const{duration:Ae}=mi(this,vc).$state;return((ke=mi(this,aw).call(this))==null?void 0:ke.cues.length)&&Number.isFinite(Ae())&&Ae()>0},pA=new WeakSet,i$=function(){Qn(this,t1,functionThrottle(Bi(this,lw,_I).bind(this),this.$props.seekingRequestThrottle()))},fA=new WeakSet,n$=function(){if(this.$state.hidden())return;const{value:Ae,dragging:ke}=this.$state,Le=Bi(this,uw,xI).call(this);peek(ke)||(Ae.set(Le),this.dispatch("value-change",{detail:Le}))},mA=new WeakSet,r$=function(){const Ae=mi(this,vc).player.el,{preview:ke}=useContext(sliderContext);
2385Ae&&ke()&&setAttribute(Ae,"data-preview",this.$state.active())},lw=new WeakSet,_I=function(Ae,ke){mi(this,vc).remote.seeking(Ae,ke)},gA=new WeakSet,s$=function(Ae,ke,Le){mi(this,t1).cancel();const{live:Fe}=mi(this,vc).$state;if(Fe()&&ke>=99){mi(this,vc).remote.seekToLiveEdge(Le);return}mi(this,vc).remote.seek(Ae,Le)},i1=new WeakMap,yA=new WeakSet,o$=function(Ae){const{pauseWhileDragging:ke}=this.$props;if(ke()){const{paused:Le}=mi(this,vc).$state;Qn(this,i1,!Le()),mi(this,vc).remote.pause(Ae)}},vA=new WeakSet,a$=function(Ae){mi(this,t1).call(this,Bi(this,Cg,Py).call(this,Ae.detail),Ae)},cw=new WeakSet,bI=function(Ae){const{seeking:ke}=mi(this,vc).$state;peek(ke)||Bi(this,lw,_I).call(this,Bi(this,Cg,Py).call(this,Ae.detail),Ae);const Le=Ae.detail;Bi(this,gA,s$).call(this,Bi(this,Cg,Py).call(this,Le),Le,Ae);const{pauseWhileDragging:Fe}=this.$props;Fe()&&mi(this,i1)&&(mi(this,vc).remote.play(Ae),Qn(this,i1,!1))},_A=new WeakSet,l$=function(Ae){const{dragging:ke}=this.$state;ke()||!Ae.trigger||Bi(this,cw,bI).call(this,Ae)},uw=new WeakSet,xI=function(){const{currentTime:Ae}=mi(this,vc).$state;
2385return Bi(this,CA,m$).call(this,Ae())},bA=new WeakSet,c$=function(){const Ae=this.$props.step()/mi(this,vc).$state.duration()*100;return Number.isFinite(Ae)?Ae:1},xA=new WeakSet,u$=function(){const Ae=this.$props.keyStep()/mi(this,vc).$state.duration()*100;return Number.isFinite(Ae)?Ae:1},wA=new WeakSet,d$=function(Ae){return round(Ae,3)},SA=new WeakSet,h$=function(){const{disabled:Ae}=this.$props,{canSeek:ke}=mi(this,vc).$state;return Ae()||!ke()},TA=new WeakSet,p$=function(){const{value:Ae}=this.$state;return Math.round(Ae())},EA=new WeakSet,f$=function(){const Ae=Bi(this,Cg,Py).call(this,this.$state.value()),{duration:ke}=mi(this,vc).$state;return Number.isFinite(Ae)?`${formatSpokenTime(Ae)} out of ${formatSpokenTime(ke())}`:"live"},Cg=new WeakSet,Py=function(Ae){const{duration:ke}=mi(this,vc).$state;return round(Ae/100*ke(),5)},CA=new WeakSet,m$=function(Ae){const{liveEdge:ke,duration:Le}=mi(this,vc).$state,Fe=Math.max(0,Math.min(1,ke()?1:Math.min(Ae,Le())/Le()));return Number.isNaN(Fe)?0:Number.isFinite(Fe)?Fe*100:100},AA=new WeakSet,g$=function(Ae){const ke=Bi(this,Cg,Py).call(this,Ae),{live:Le,duration:Fe}=mi(this,vc).$state;return Number.isFinite(ke)?(Le()?ke-Fe():ke).toFixed(0):"LIVE"},DA=new WeakSet,y$=function(Ae,ke){const Le=Bi(this,Cg,Py).call(this,Ae),{live:Fe,duration:Ve}=mi(this,vc).$state,Ie=Fe()?Le-Ve():Le;return Number.isFinite(Le)?`${Ie<0?"-":""}${formatTime(Math.abs(Ie),ke)}`:"LIVE"},Mr(TimeSlider,"props",{...SliderController.props,step:.1,keyStep:5,shiftKeyMultiplier:2,pauseWhileDragging:!1,noSwipeGesture:!1,seekingRequestThrottle:100}),Mr(TimeSlider,"state",sliderState);const menuContext=createContext();function scrollIntoView(De,_e){const Ae=r$2(De,_e);for(const{el:ke,top:Le,left:Fe}of Ae)ke.scroll({top:Le,left:Fe,behavior:_e.behavior})}function scrollIntoCenter(De,_e={}){scrollIntoView(De,{scrollMode:"if-needed",block:"center",inline:"center",..._e})}const FOCUSABLE_ELEMENTS_SELECTOR=["a[href]","[tabindex]","input","select","button"].map(De=>`${De}:not([aria-hidden='true'])`).join(","),VALID_KEYS=new Set(["Escape","Tab","ArrowUp","ArrowDown","Home","PageUp","End","PageDown","Enter"," "]);var F0,em,op,dw,Ag,Iy,hw,wI,MA,v$,pw,SI,kA,_$,PA,b$,n1,ST,IA,x$;class MenuFocusController{constructor(_e){Oi(this,Ag);Oi(this,hw);Oi(this,MA);Oi(this,pw);Oi(this,kA);Oi(this,PA);Oi(this,n1);Oi(this,IA);Oi(this,F0,-1);Oi(this,em,null);Oi(this,op,[]);Oi(this,dw,void 0);Qn(this,dw,_e)}get items(){return mi(this,op)}attachMenu(_e){listenEvent(_e,"focus",Bi(this,MA,v$).bind(this)),Qn(this,em,_e),onDispose(()=>{Qn(this,em,null)})}listen(){mi(this,em)&&(this.update(),new EventsController(mi(this,em)).add("keyup",Bi(this,kA,_$).bind(this)).add("keydown",Bi(this,PA,b$).bind(this)),onDispose(()=>{Qn(this,F0,-1),Qn(this,op,[])}))}update(){Qn(this,F0,0),Qn(this,op,Bi(this,IA,x$).call(this))}scroll(_e=Bi(this,hw,wI).call(this)){const Ae=mi(this,op)[_e];Ae&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{scrollIntoCenter(Ae,{behavior:"smooth",boundary:ke=>!ke.hasAttribute("data-root")})})})}focusActive(_e=!0){const Ae=Bi(this,hw,wI).call(this);Bi(this,Ag,Iy).call(this,Ae>=0?Ae:0,_e)}}F0=new WeakMap,em=new WeakMap,op=new WeakMap,dw=new WeakMap,Ag=new WeakSet,Iy=function(_e,Ae=!0){var ke;Qn(this,F0,_e),mi(this,op)[_e]?(mi(this,op)[_e].focus({preventScroll:!0}),Ae&&this.scroll(_e)):(ke=mi(this,em))==null||ke.focus({preventScroll:!0})},hw=new WeakSet,wI=function(){return mi(this,op).findIndex(_e=>document.activeElement===_e||_e.getAttribute("role")==="menuitemradio"&&_e.getAttribute("aria-checked")==="true")},MA=new WeakSet,v$=function(){mi(this,F0)>=0||(this.update(),this.focusActive())},pw=new WeakSet,SI=function(_e){const Ae=_e.target;if(wasEnterKeyPressed(_e)&&Ae instanceof Element){const ke=Ae.getAttribute("role");return!/a|input|select|button/.test(Ae.localName)&&!ke}return VALID_KEYS.has(_e.key)},kA=new WeakSet,_$=function(_e){Bi(this,pw,SI).call(this,_e)&&(_e.stopPropagation(),_e.preventDefault())},PA=new WeakSet,b$=function(_e){if(Bi(this,pw,SI).call(this,_e))switch(_e.stopPropagation(),_e.preventDefault(),_e.key){case"Escape":mi(this,dw).closeMenu(_e);break;case"Tab":Bi(this,Ag,Iy).call(this,Bi(this,n1,ST).call(this,_e.shiftKey?-1:1));break;case"ArrowUp":Bi(this,Ag,Iy).call(this,Bi(this,n1,ST).call(this,-1));break;case"ArrowDown":Bi(this,Ag,Iy).call(this,Bi(this,n1,ST).call(this,1));break;case"Home":case"PageUp":Bi(this,Ag,Iy).call(this,0);break;case"End":case"PageDown":Bi(this,Ag,Iy).call(this,mi(this,op).length-1);break}},n1=new WeakSet,ST=function(_e){var ke;let Ae=mi(this,F0);do Ae=(Ae+_e+mi(this,op).length)%mi(this,op).length;while(((ke=mi(this,op)[Ae])==null?void 0:ke.offsetParent)===null);return Ae}
2385,IA=new WeakSet,x$=function(){if(!mi(this,em))return[];const _e=mi(this,em).querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR),Ae=[],ke=Le=>Le.getAttribute("role")==="menu";for(const Le of _e)isHTMLElement(Le)&&Le.offsetParent!==null&&isElementParent(mi(this,em),Le,ke)&&Ae.push(Le);return Ae};var __defProp$1=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__decorateClass$1=(De,_e,Ae,ke)=>{for(var Le=__getOwnPropDesc$1(_e,Ae),Fe=De.length-1,Ve;Fe>=0;Fe--)(Ve=De[Fe])&&(Le=Ve(_e,Ae,Le)||Le);return Le&&__defProp$1(_e,Ae,Le),Le};let idCount=0;var tm,r1,s1,Dh,fw,Fm,ad,z0,B0,cv,uv,Dg,dv,mw,hv,RA,w$,OA,S$,LA,T$,$A,E$,FA,C$,gw,TI,zA,A$,o1,BA,D$,yw,EI,NA,M$,pv,bb,VA,k$,HA,P$,GA,I$,jA,R$,WA,O$,qA,L$,XA,ZA,$$,a1,YA,KA,F$,JA,QA,z$,l1,c1,eD,B$;class Menu extends Component{constructor(){super();Oi(this,RA);Oi(this,OA);Oi(this,LA);Oi(this,$A);Oi(this,FA);Oi(this,gw);Oi(this,zA);Oi(this,BA);Oi(this,yw);Oi(this,NA);Oi(this,pv);Oi(this,VA);Oi(this,HA);Oi(this,GA);Oi(this,jA);Oi(this,WA);Oi(this,qA);Oi(this,ZA);Oi(this,KA);Oi(this,QA);Oi(this,eD);Oi(this,tm,void 0);Oi(this,r1,void 0);Oi(this,s1,void 0);Oi(this,Dh,signal(!1));Oi(this,fw,signal(!1));Oi(this,Fm,signal(null));Oi(this,ad,signal(null));Oi(this,z0,void 0);Oi(this,B0,new Set);Oi(this,cv,null);Oi(this,uv,void 0);Oi(this,Dg,void 0);Oi(this,dv,!1);Oi(this,mw,signal(!1));Oi(this,hv,new Set);Oi(this,o1,!1);Oi(this,XA,Bi(this,ZA,$$).bind(this));Oi(this,a1,!1);Oi(this,YA,Bi(this,KA,F$).bind(this));Oi(this,JA,Bi(this,QA,z$).bind(this));Oi(this,l1,animationFrameThrottle(()=>{const Ae=peek(mi(this,ad));if(!Ae)return;let ke=0,Le=getComputedStyle(Ae),Fe=[...Ae.children];for(const Ve of["paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"])ke+=parseFloat(Le[Ve])||0;for(const Ve of Fe)if(isHTMLElement(Ve)&&Ve.style.display==="contents")Fe.push(...Ve.children);else if(Ve.nodeType===3)ke+=parseFloat(getComputedStyle(Ve).fontSize);else if(isHTMLElement(Ve)){if(!isElementVisible(Ve))continue;const Ie=getComputedStyle(Ve);ke+=Ve.offsetHeight+(parseFloat(Ie.marginTop)||0)+(parseFloat(Ie.marginBottom)||0)}setStyle(Ae,"--menu-height",ke+"px")}));Oi(this,c1,!1);const{showDelay:Ae}=this.$props;Qn(this,uv,new Popper({trigger:mi(this,Fm),content:mi(this,ad),showDelay:Ae,listen:(ke,Le,Fe)=>{onPress(ke,Ie=>{mi(this,Dh).call(this)?Fe(Ie):Le(Ie)});const Ve=Bi(this,jA,R$).call(this);Ve&&onPress(Ve,Ie=>{Ie.stopPropagation(),Fe(Ie)})},onChange:Bi(this,BA,D$).bind(this)}))}get triggerElement(){return mi(this,Fm).call(this)}get contentElement(){return mi(this,ad).call(this)}get isSubmenu(){return!!mi(this,z0)}onSetup(){Qn(this,tm,useMediaContext());const Ae=++idCount;Qn(this,r1,`media-menu-${Ae}`),Qn(this,s1,`media-menu-button-${Ae}`),Qn(this,Dg,new MenuFocusController({closeMenu:this.close.bind(this)})),hasProvidedContext(menuContext)&&Qn(this,z0,useContext(menuContext)),Bi(this,RA,w$).call(this),this.setAttributes({"data-open":mi(this,Dh),"data-root":!this.isSubmenu,"data-submenu":this.isSubmenu,"data-disabled":Bi(this,pv,bb).bind(this)}),provideContext(menuContext,{button:mi(this,Fm),content:mi(this,ad),expanded:mi(this,Dh),hint:signal(""),submenu:!!mi(this,z0),disable:Bi(this,VA,k$).bind(this),attachMenuButton:Bi(this,LA,T$).bind(this),attachMenuItems:Bi(this,$A,E$).bind(this),attachObserver:Bi(this,FA,C$).bind(this),disableMenuButton:Bi(this,zA,A$).bind(this),addSubmenu:Bi(this,qA,L$).bind(this),onTransitionEvent:ke=>{mi(this,hv).add(ke),onDispose(()=>{mi(this,hv).delete(ke)})}})}onAttach(Ae){Ae.style.setProperty("display","contents")}onConnect(Ae){var ke;effect(Bi(this,OA,S$).bind(this)),this.isSubmenu&&((ke=mi(this,z0))==null||ke.addSubmenu(this))}onDestroy(){mi(this,Fm).set(null),mi(this,ad).set(null),Qn(this,cv,null),mi(this,hv).clear()}open(Ae){peek(mi(this,Dh))||(mi(this,uv).show(Ae),tick())}close(Ae){peek(mi(this,Dh))&&(mi(this,uv).hide(Ae),tick())}}tm=new WeakMap,r1=new WeakMap,s1=new WeakMap,Dh=new WeakMap,fw=new WeakMap,Fm=new WeakMap,ad=new WeakMap,z0=new WeakMap,B0=new WeakMap,cv=new WeakMap,uv=new WeakMap,Dg=new WeakMap,dv=new WeakMap,mw=new WeakMap,hv=new WeakMap,RA=new WeakSet,w$=function(){let Ae=-1,ke=hasProvidedContext(sliderObserverContext)?useContext(sliderObserverContext):null;provideContext(sliderObserverContext,{onDragStart:()=>{var Le;(Le=ke==null?void 0:ke.onDragStart)==null||Le.call(ke),window.clearTimeout(Ae),Ae=-1,Qn(this,dv,!0)},onDragEnd:()=>{var Le;(Le=ke==null?void 0:ke.onDragEnd)==null||Le.call(ke),Ae=window.setTimeout(()=>{Qn(this,dv,!1),Ae=-1},300)}})},OA=new WeakSet,S$=function(){const Ae=Bi(this,NA,M$).call(this);this.isSubmenu||mi(this,l1).call(this),Bi(this,gw,TI).call(this,Ae),Ae&&(effect(()=>{const{height:ke}=mi(this,tm).$state,Le=mi(this,ad).call(this);Le&&setStyle(Le,"--player-height",ke()+"px")}),mi(this,Dg).listen(),this.listen("pointerup",Bi(this,HA,P$).bind(this)),listenEvent(window,"pointerup",Bi(this,GA,I$).bind(this)))},LA=new WeakSet,T$=function(Ae){const ke=Ae.el,Le=this.isSubmenu,Fe=$ariaBool(Bi(this,pv,bb).bind(this));setAttributeIfEmpty(ke,"tabindex",Le?"-1":"0"),setAttributeIfEmpty(ke,"role",Le?"menuitem":"button"),setAttribute(ke,"id",mi(this,s1)),setAttribute(ke,"aria-haspopup","menu"),setAttribute(ke,"aria-expanded","fal
2385se"),setAttribute(ke,"data-root",!this.isSubmenu),setAttribute(ke,"data-submenu",this.isSubmenu),effect(()=>{setAttribute(ke,"data-open",mi(this,Dh).call(this)),setAttribute(ke,"aria-disabled",Fe())}),mi(this,Fm).set(ke),onDispose(()=>{mi(this,Fm).set(null)})},$A=new WeakSet,E$=function(Ae){var Ve;const ke=Ae.el;ke.style.setProperty("display","none"),setAttribute(ke,"id",mi(this,r1)),setAttributeIfEmpty(ke,"role","menu"),setAttributeIfEmpty(ke,"tabindex","-1"),setAttribute(ke,"data-root",!this.isSubmenu),setAttribute(ke,"data-submenu",this.isSubmenu),mi(this,ad).set(ke),onDispose(()=>mi(this,ad).set(null)),effect(()=>setAttribute(ke,"data-open",mi(this,Dh).call(this))),mi(this,Dg).attachMenu(ke),Bi(this,gw,TI).call(this,!1);const Fe=Bi(this,eD,B$).bind(this);this.isSubmenu?(Ve=mi(this,z0))==null||Ve.onTransitionEvent(Fe):(Ae.listen("transitionstart",Fe),Ae.listen("transitionend",Fe),Ae.listen("animationend",mi(this,l1)),Ae.listen("vds-menu-resize",mi(this,l1)))},FA=new WeakSet,C$=function(Ae){Qn(this,cv,Ae)},gw=new WeakSet,TI=function(Ae){const ke=peek(mi(this,ad));ke&&setAttribute(ke,"aria-hidden",ariaBool$1(!Ae))},zA=new WeakSet,A$=function(Ae){mi(this,mw).set(Ae)},o1=new WeakMap,BA=new WeakSet,D$=function(Ae,ke){var Ve,Ie,je,Ke,$e,qe;if(Qn(this,o1,isKeyboardEvent(ke)),ke==null||ke.stopPropagation(),mi(this,Dh).call(this)===Ae)return;if(Bi(this,pv,bb).call(this)){Ae&&mi(this,uv).hide(ke);return}(Ve=this.el)==null||Ve.dispatchEvent(new Event("vds-menu-resize",{bubbles:!0,composed:!0}));const Le=mi(this,Fm).call(this),Fe=mi(this,ad).call(this);if(Le&&(setAttribute(Le,"aria-controls",Ae&&mi(this,r1)),setAttribute(Le,"aria-expanded",ariaBool$1(Ae))),Fe&&setAttribute(Fe,"aria-labelledby",Ae&&mi(this,s1)),mi(this,Dh).set(Ae),Bi(this,WA,O$).call(this,ke),tick(),mi(this,o1)){Ae?Fe==null||Fe.focus():Le==null||Le.focus();for(const ci of[this.el,Fe])ci&&ci.setAttribute("data-keyboard","")}else for(const ci of[this.el,Fe])ci&&ci.removeAttribute("data-keyboard");if(this.dispatch(Ae?"open":"close",{trigger:ke}),Ae)!this.isSubmenu&&mi(this,tm).activeMenu!==this&&((Ie=mi(this,tm).activeMenu)==null||Ie.close(ke),mi(this,tm).activeMenu=this),(Ke=(je=mi(this,cv))==null?void 0:je.onOpen)==null||Ke.call(je,ke);else{if(this.isSubmenu)for(const ci of mi(this,B0))ci.close(ke);else mi(this,tm).activeMenu=null;(qe=($e=mi(this,cv))==null?void 0:$e.onClose)==null||qe.call($e,ke)}Ae&&requestAnimationFrame(Bi(this,yw,EI).bind(this))},yw=new WeakSet,EI=function(){mi(this,c1)||mi(this,a1)||(mi(this,Dg).update(),requestAnimationFrame(()=>{mi(this,o1)?mi(this,Dg).focusActive():mi(this,Dg).scroll()}))},NA=new WeakSet,M$=function(){return!Bi(this,pv,bb).call(this)&&mi(this,Dh).call(this)},pv=new WeakSet,bb=function(){return mi(this,fw).call(this)||mi(this,mw).call(this)},VA=new WeakSet,k$=function(Ae){mi(this,fw).set(Ae)},HA=new WeakSet,P$=function(Ae){const ke=mi(this,ad).call(this);mi(this,dv)||ke&&isEventInside(ke,Ae)||Ae.stopPropagation()},GA=new WeakSet,I$=function(Ae){const ke=mi(this,ad).call(this);mi(this,dv)||ke&&isEventInside(ke,Ae)||this.close(Ae)},jA=new WeakSet,R$=function(){var ke;const Ae=(ke=this.el)==null?void 0:ke.querySelector('[data-part="close-target"]');return this.el&&Ae&&isElementParent(this.el,Ae,Le=>Le.getAttribute("role")==="menu")?Ae:null},WA=new WeakSet,O$=function(Ae){this.isSubmenu||(mi(this,Dh).call(this)?mi(this,tm).remote.pauseControls(Ae):mi(this,tm).remote.resumeControls(Ae))},qA=new WeakSet,L$=function(Ae){mi(this,B0).add(Ae),new EventsController(Ae).add("open",mi(this,YA)).add("close",mi(this,JA)),onDispose(mi(this,XA))},XA=new WeakMap,ZA=new WeakSet,$$=function(Ae){mi(this,B0).delete(Ae)},a1=new WeakMap,YA=new WeakMap,KA=new WeakSet,F$=function(Ae){var Le;Qn(this,a1,!0);const ke=mi(this,ad).call(this);this.isSubmenu&&((Le=this.triggerElement)==null||Le.setAttribute("aria-hidden","true"));for(const Fe of mi(this,B0))if(Fe!==Ae.target)for(const Ve of[Fe.el,Fe.triggerElement])Ve==null||Ve.setAttribute("aria-hidden","true");if(ke){const Fe=Ae.target.el;for(const Ve of ke.children)Ve.contains(Fe)?Ve.setAttribute("data-open",""):Ve!==Fe&&Ve.setAttribute("data-hidden","")}},JA=new WeakMap,QA=new WeakSet,z$=function(Ae){var Le;Qn(this,a1,!1);const ke=mi(this,ad).call(this);this.isSubmenu&&((Le=this.triggerElement)==null||Le.setAttribute("aria-hidden","false"));for(const Fe of mi(this,B0))for(const Ve of[Fe.el,Fe.triggerElement])Ve==null||Ve.setAttribute("aria-hidden","false");if(ke)for(const Fe of ke.children)Fe.removeAttribute("data-open"),Fe.removeAttribute("data-hidden")},l1=new WeakMap,c1=new WeakMap,eD=new WeakSet,B$=function(Ae){const ke=mi(this,ad).call(this);ke&&Ae.propertyName==="height"&&(Qn(this,c1,Ae.type==="transitionstart"),setAttribute(ke,"data-transition",mi(this,c1)?"height":null),mi(this,Dh).call(this)&&Bi(this,yw,EI).c
2385all(this));for(const Le of mi(this,hv))Le(Ae)},Mr(Menu,"props",{showDelay:0});__decorateClass$1([prop],Menu.prototype,"triggerElement");__decorateClass$1([prop],Menu.prototype,"contentElement");__decorateClass$1([prop],Menu.prototype,"isSubmenu");__decorateClass$1([method],Menu.prototype,"open");__decorateClass$1([method],Menu.prototype,"close");var N0,vw,tD,N$,iD,V$,_w,CI;class MenuButton extends Component{constructor(){super();Oi(this,tD);Oi(this,iD);Oi(this,_w);Oi(this,N0,void 0);Oi(this,vw,signal(null));new FocusVisibleController}get expanded(){var Ae;return((Ae=mi(this,N0))==null?void 0:Ae.expanded())??!1}onSetup(){Qn(this,N0,useContext(menuContext))}onAttach(Ae){mi(this,N0).attachMenuButton(this),effect(Bi(this,tD,N$).bind(this)),setAttributeIfEmpty(Ae,"type","button")}onConnect(Ae){effect(Bi(this,iD,V$).bind(this)),Bi(this,_w,CI).call(this);const ke=new MutationObserver(Bi(this,_w,CI).bind(this));ke.observe(Ae,{attributeFilter:["data-part"],childList:!0,subtree:!0}),onDispose(()=>ke.disconnect()),onPress(Ae,Le=>{this.dispatch("select",{trigger:Le})})}}N0=new WeakMap,vw=new WeakMap,tD=new WeakSet,N$=function(){mi(this,N0).disableMenuButton(this.$props.disabled())},iD=new WeakSet,V$=function(){const Ae=mi(this,vw).call(this);Ae&&effect(()=>{const ke=mi(this,N0).hint();ke&&(Ae.textContent=ke)})},_w=new WeakSet,CI=function(){var ke;const Ae=(ke=this.el)==null?void 0:ke.querySelector('[data-part="hint"]');mi(this,vw).set(Ae??null)},Mr(MenuButton,"props",{disabled:!1});const menubutton__proto=MenuButton.prototype;prop(menubutton__proto,"expanded");class MenuItem extends MenuButton{}var ap,bw,nD,H$,rD,U$,xw,AI,sD,G$;class MenuPortal extends Component{constructor(){super(...arguments);Oi(this,nD);Oi(this,rD);Oi(this,xw);Oi(this,sD);Oi(this,ap,null);Oi(this,bw,void 0)}onSetup(){Qn(this,bw,useMediaContext()),provideContext(menuPortalContext,{attach:Bi(this,nD,H$).bind(this)})}onAttach(Ae){Ae.style.setProperty("display","contents")}onConnect(Ae){}onDestroy(){var Ae;(Ae=mi(this,ap))==null||Ae.remove(),Qn(this,ap,null)}}ap=new WeakMap,bw=new WeakMap,nD=new WeakSet,H$=function(Ae){Bi(this,xw,AI).call(this,!1),Qn(this,ap,Ae),requestScopedAnimationFrame(()=>{requestScopedAnimationFrame(()=>{this.connectScope&&effect(Bi(this,rD,U$).bind(this))})})},rD=new WeakSet,U$=function(){const{fullscreen:Ae}=mi(this,bw).$state,{disabled:ke}=this.$props;Bi(this,xw,AI).call(this,ke()==="fullscreen"?!Ae():!ke())},xw=new WeakSet,AI=function(Ae){var Fe;if(!mi(this,ap))return;let ke=Bi(this,sD,G$).call(this,this.$props.container());if(!ke)return;const Le=mi(this,ap).parentElement===ke;setAttribute(mi(this,ap),"data-portal",Ae),Ae?Le||(mi(this,ap).remove(),ke.append(mi(this,ap))):Le&&mi(this,ap).parentElement===ke&&(mi(this,ap).remove(),(Fe=this.el)==null||Fe.append(mi(this,ap)))},sD=new WeakSet,G$=function(Ae){return isHTMLElement(Ae)?Ae:Ae?document.querySelector(Ae):document.body},Mr(MenuPortal,"props",{container:null,disabled:!1});const menuPortalContext=createContext();var fv,oD,j$,aD,W$,lD,q$;class MenuItems extends Component{constructor(){super();Oi(this,oD);Oi(this,aD);Oi(this,lD);Oi(this,fv,void 0);new FocusVisibleController;const{placement:Ae}=this.$props;this.setAttributes({"data-placement":Ae})}onAttach(Ae){if(Qn(this,fv,useContext(menuContext)),mi(this,fv).attachMenuItems(this),hasProvidedContext(menuPortalContext)){const ke=useContext(menuPortalContext);ke&&(provideContext(menuPortalContext,null),ke.attach(Ae),onDispose(()=>ke.attach(null)))}}onConnect(Ae){effect(Bi(this,oD,j$).bind(this))}}fv=new WeakMap,oD=new WeakSet,j$=function(){const{expanded:Ae}=mi(this,fv);if(!this.el||!Ae())return;const ke=this.$props.placement();if(!ke)return;Object.assign(this.el.style,{position:"absolute",top:0,left:0,width:"max-content"});const{offset:Le,alignOffset:Fe}=this.$props;onDispose(autoPlacement(this.el,Bi(this,lD,q$).call(this),ke,{offsetVarName:"media-menu",xOffset:Fe(),yOffset:Le()})),onDispose(Bi(this,aD,W$).bind(this))},aD=new WeakSet,W$=function(){this.el&&(this.el.removeAttribute("style"),this.el.style.display="none")},lD=new WeakSet,q$=function(){return mi(this,fv).button()},Mr(MenuItems,"props",{placement:null,offset:0,alignOffset:0});const radioControllerContext=createContext();var Mg,V0,aR,cD,X$,uD,Z$,dD,ww,DI,Sw,MI;class RadioGroupController extends ViewController{constructor(){super(...arguments);Oi(this,cD);Oi(this,uD);Oi(this,ww);Oi(this,Sw);Oi(this,Mg,new Set);Oi(this,V0,signal(""));Oi(this,aR,null);Mr(this,"onValueChange");Oi(this,dD,Bi(this,ww,DI).bind(this))}get values(){return Array.from(mi(this,Mg)).map(Ae=>Ae.value())}get value(){return mi(this,V0).call(this)}set value(Ae){Bi(this,ww,DI).call(this,Ae)}onSetup(){provideContext(radioControllerContext,{add:Bi(this,cD,X$).bind(this),remove:Bi(this,uD,Z$).bind(this)})}onAttach(Ae){hasProvidedContext(menuContext)||setAttributeIfEmpty(Ae,"role","radiogroup"),this.setAttributes({value:mi(this,V0)})}onDestroy(){mi(this,Mg).clear()}}Mg=new WeakMap,V0=new WeakMap,aR=new WeakMap,cD=new WeakSet,X$=function(Ae){mi(this,Mg).has(Ae)||(mi(this,Mg).add(Ae),Ae.onCheck=mi(this,dD),Ae.check(Ae.value()===mi(this,V0).call(this)))},uD=new WeakSet,Z$=function(Ae){Ae.onCheck=null,mi(this,Mg).delete(Ae)},dD=new WeakMap,ww=new WeakSet,DI=function(Ae,ke){var Ie;const Le=peek(mi(this,V0));if(!Ae||Ae===Le)return;const Fe=Bi(this,Sw,MI).call(this,Le),Ve=Bi(this,Sw,MI).call(this,Ae);
2385Fe==null||Fe.check(!1,ke),Ve==null||Ve.check(!0,ke),mi(this,V0).set(Ae),(Ie=this.onValueChange)==null||Ie.call(this,Ae,ke)},Sw=new WeakSet,MI=function(Ae){for(const ke of mi(this,Mg))if(Ae===peek(ke.value))return ke;return null};var zm,mv,hD,Y$,pD,K$,fD,J$,mD,Q$,gD,e5,Tw,kI,yD,t5;class Radio extends Component{constructor(){super();Oi(this,hD);Oi(this,pD);Oi(this,fD);Oi(this,mD);Oi(this,gD);Oi(this,Tw);Oi(this,yD);Oi(this,zm,signal(!1));Oi(this,mv,{value:this.$props.value,check:Bi(this,gD,e5).bind(this),onCheck:null});new FocusVisibleController}get checked(){return mi(this,zm).call(this)}onSetup(){this.setAttributes({value:this.$props.value,"data-checked":mi(this,zm),"aria-checked":$ariaBool(mi(this,zm))})}onAttach(Ae){const ke=hasProvidedContext(menuContext);setAttributeIfEmpty(Ae,"tabindex",ke?"-1":"0"),setAttributeIfEmpty(Ae,"role",ke?"menuitemradio":"radio"),effect(Bi(this,fD,J$).bind(this))}onConnect(Ae){Bi(this,pD,K$).call(this),onPress(Ae,Bi(this,mD,Q$).bind(this)),onDispose(Bi(this,hD,Y$).bind(this))}}zm=new WeakMap,mv=new WeakMap,hD=new WeakSet,Y$=function(){scoped(()=>{useContext(radioControllerContext).remove(mi(this,mv))},this.connectScope)},pD=new WeakSet,K$=function(){useContext(radioControllerContext).add(mi(this,mv))},fD=new WeakSet,J$=function(){var Le,Fe;const{value:Ae}=this.$props,ke=Ae();peek(mi(this,zm))&&((Fe=(Le=mi(this,mv)).onCheck)==null||Fe.call(Le,ke))},mD=new WeakSet,Q$=function(Ae){var ke,Le;peek(mi(this,zm))||(Bi(this,Tw,kI).call(this,!0,Ae),Bi(this,yD,t5).call(this,Ae),(Le=(ke=mi(this,mv)).onCheck)==null||Le.call(ke,peek(this.$props.value),Ae))},gD=new WeakSet,e5=function(Ae,ke){peek(mi(this,zm))!==Ae&&Bi(this,Tw,kI).call(this,Ae,ke)},Tw=new WeakSet,kI=function(Ae,ke){mi(this,zm).set(Ae),this.dispatch("change",{detail:Ae,trigger:ke})},yD=new WeakSet,t5=function(Ae){this.dispatch("select",{trigger:Ae})},Mr(Radio,"props",{value:""});const radio__proto=Radio.prototype;prop(radio__proto,"checked");var u1,im,gv,vD,i5,_D,n5,bD,r5,xD,s5,wD,o5;class AudioRadioGroup extends Component{constructor(){super();Oi(this,vD);Oi(this,_D);Oi(this,bD);Oi(this,xD);Oi(this,wD);Oi(this,u1,void 0);Oi(this,im,void 0);Oi(this,gv,void 0);Qn(this,gv,new RadioGroupController),mi(this,gv).onValueChange=Bi(this,wD,o5).bind(this)}get value(){return mi(this,gv).value}get disabled(){const{audioTracks:Ae}=mi(this,im).$state;return Ae().length<=1}onSetup(){Qn(this,im,useMediaContext()),hasProvidedContext(menuContext)&&Qn(this,u1,useContext(menuContext))}onConnect(Ae){effect(Bi(this,vD,i5).bind(this)),effect(Bi(this,bD,r5).bind(this)),effect(Bi(this,_D,n5).bind(this))}getOptions(){const{audioTracks:Ae}=mi(this,im).$state;return Ae().map(ke=>({track:ke,label:ke.label,value:ke.label.toLowerCase()}))}}u1=new WeakMap,im=new WeakMap,gv=new WeakMap,vD=new WeakSet,i5=function(){mi(this,gv).value=Bi(this,xD,s5).call(this)},_D=new WeakSet,n5=function(){var Fe;const{emptyLabel:Ae}=this.$props,{audioTrack:ke}=mi(this,im).$state,Le=ke();(Fe=mi(this,u1))==null||Fe.hint.set((Le==null?void 0:Le.label)??Ae())},bD=new WeakSet,r5=function(){var Ae;(Ae=mi(this,u1))==null||Ae.disable(this.disabled)},xD=new WeakSet,s5=function(){const{audioTrack:Ae}=mi(this,im).$state,ke=Ae();return ke?ke.label.toLowerCase():""},wD=new WeakSet,o5=function(Ae,ke){if(this.disabled)return;const Le=mi(this,im).audioTracks.toArray().findIndex(Fe=>Fe.label.toLowerCase()===Ae);if(Le>=0){const Fe=mi(this,im).audioTracks[Le];mi(this,im).remote.changeAudioTrack(Le,ke),this.dispatch("change",{detail:Fe,trigger:ke})}},Mr(AudioRadioGroup,"props",{emptyLabel:"Default"});const audioradiogroup__proto=AudioRadioGroup.prototype;prop(audioradiogroup__proto,"value");prop(audioradiogroup__proto,"disabled");method(audioradiogroup__proto,"getOptions");var lp,d1,yv,SD,a5,TD,l5,ED,c5,CD,u5,AD,d5,h1,TT;class CaptionsRadioGroup extends Component{constructor(){super();Oi(this,SD);Oi(this,TD);Oi(this,ED);Oi(this,CD);Oi(this,AD);Oi(this,h1);Oi(this,lp,void 0);Oi(this,d1,void 0);Oi(this,yv,void 0);Qn(this,yv,new RadioGroupController),mi(this,yv).onValueChange=Bi(this,AD,d5).bind(this)}get value(){return mi(this,yv).value}get disabled(){const{hasCaptions:Ae}=mi(this,lp).$state;return!Ae()}onSetup(){Qn(this,lp,useMediaContext()),hasProvidedContext(menuContext)&&Qn(this,d1,useContext(menuContext))}onConnect(Ae){var ke;(ke=super.onConnect)==null||ke.call(this,Ae),effect(Bi(this,SD,a5).bind(this)),effect(Bi(this,ED,c5).bind(this)),effect(Bi(this,TD,l5).bind(this))}getOptions(){const{offLabel:Ae}=this.$props,{textTracks:ke}=mi(this,lp).$state;return[{value:"off",label:Ae},...ke().filter(isTrackCaptionKind).map(Le=>
2385({track:Le,label:Le.label,value:Bi(this,h1,TT).call(this,Le)}))]}}lp=new WeakMap,d1=new WeakMap,yv=new WeakMap,SD=new WeakSet,a5=function(){mi(this,yv).value=Bi(this,CD,u5).call(this)},TD=new WeakSet,l5=function(){var Fe;const{offLabel:Ae}=this.$props,{textTrack:ke}=mi(this,lp).$state,Le=ke();(Fe=mi(this,d1))==null||Fe.hint.set(Le&&isTrackCaptionKind(Le)&&Le.mode==="showing"?Le.label:Ae())},ED=new WeakSet,c5=function(){var Ae;(Ae=mi(this,d1))==null||Ae.disable(this.disabled)},CD=new WeakSet,u5=function(){const{textTrack:Ae}=mi(this,lp).$state,ke=Ae();return ke&&isTrackCaptionKind(ke)&&ke.mode==="showing"?Bi(this,h1,TT).call(this,ke):"off"},AD=new WeakSet,d5=function(Ae,ke){if(this.disabled)return;if(Ae==="off"){const Fe=mi(this,lp).textTracks.selected;if(Fe){const Ve=mi(this,lp).textTracks.indexOf(Fe);mi(this,lp).remote.changeTextTrackMode(Ve,"disabled",ke),this.dispatch("change",{detail:null,trigger:ke})}return}const Le=mi(this,lp).textTracks.toArray().findIndex(Fe=>Bi(this,h1,TT).call(this,Fe)===Ae);if(Le>=0){const Fe=mi(this,lp).textTracks[Le];mi(this,lp).remote.changeTextTrackMode(Le,"showing",ke),this.dispatch("change",{detail:Fe,trigger:ke})}},h1=new WeakSet,TT=function(Ae){return Ae.id+":"+Ae.kind+"-"+Ae.label.toLowerCase()},Mr(CaptionsRadioGroup,"props",{offLabel:"Off"});const captionsradiogroup__proto=CaptionsRadioGroup.prototype;prop(captionsradiogroup__proto,"value");prop(captionsradiogroup__proto,"disabled");method(captionsradiogroup__proto,"getOptions");const DEFAULT_PLAYBACK_RATES=[.25,.5,.75,1,1.25,1.5,1.75,2];var H0,p1,vv,DD,h5,MD,p5,kD,f5,PD,m5,ID,g5;class SpeedRadioGroup extends Component{constructor(){super();Oi(this,DD);Oi(this,MD);Oi(this,kD);Oi(this,PD);Oi(this,ID);Oi(this,H0,void 0);Oi(this,p1,void 0);Oi(this,vv,void 0);Qn(this,vv,new RadioGroupController),mi(this,vv).onValueChange=Bi(this,ID,g5).bind(this)}get value(){return mi(this,vv).value}get disabled(){const{rates:Ae}=this.$props,{canSetPlaybackRate:ke}=mi(this,H0).$state;return!ke()||Ae().length===0}onSetup(){Qn(this,H0,useMediaContext()),hasProvidedContext(menuContext)&&Qn(this,p1,useContext(menuContext))}onConnect(Ae){effect(Bi(this,DD,h5).bind(this)),effect(Bi(this,MD,p5).bind(this)),effect(Bi(this,kD,f5).bind(this))}getOptions(){const{rates:Ae,normalLabel:ke}=this.$props;return Ae().map(Le=>({label:Le===1?ke:Le+"×",value:Le.toString()}))}}H0=new WeakMap,p1=new WeakMap,vv=new WeakMap,DD=new WeakSet,h5=function(){mi(this,vv).value=Bi(this,PD,m5).call(this)},MD=new WeakSet,p5=function(){var Fe;const{normalLabel:Ae}=this.$props,{playbackRate:ke}=mi(this,H0).$state,Le=ke();(Fe=mi(this,p1))==null||Fe.hint.set(Le===1?Ae():Le+"×")},kD=new WeakSet,f5=function(){var Ae;(Ae=mi(this,p1))==null||Ae.disable(this.disabled)},PD=new WeakSet,m5=function(){const{playbackRate:Ae}=mi(this,H0).$state;return Ae().toString()},ID=new WeakSet,g5=function(Ae,ke){if(this.disabled)return;const Le=+Ae;mi(this,H0).remote.changePlaybackRate(Le,ke),this.dispatch("change",{detail:Le,trigger:ke})},Mr(SpeedRadioGroup,"props",{normalLabel:"Normal",rates:DEFAULT_PLAYBACK_RATES});const speedradiogroup__proto=SpeedRadioGroup.prototype;prop(speedradiogroup__proto,"value");prop(speedradiogroup__proto,"disabled");method(speedradiogroup__proto,"getOptions");var nm,f1,_v,RD,OD,y5,LD,v5,$D,_5,FD,b5,zD,x5,m1,ET;class QualityRadioGroup extends Component{constructor(){super();Oi(this,OD);Oi(this,LD);Oi(this,$D);Oi(this,FD);Oi(this,zD);Oi(this,m1);Oi(this,nm,void 0);Oi(this,f1,void 0);Oi(this,_v,void 0);Oi(this,RD,computed(()=>{const{sort:Ae}=this.$props,{qualities:ke}=mi(this,nm).$state;return sortVideoQualities(ke(),Ae()==="descending")}));Qn(this,_v,new RadioGroupController),mi(this,_v).onValueChange=Bi(this,FD,b5).bind(this)}get value(){return mi(this,_v).value}get disabled(){const{canSetQuality:Ae,qualities:ke}=mi(this,nm).$state;return!Ae()||ke().length<=1}onSetup(){Qn(this,nm,useMediaContext()),hasProvidedContext(menuContext)&&Qn(this,f1,useContext(menuContext))}onConnect(Ae){effect(Bi(this,OD,y5).bind(this)),effect(Bi(this,$D,_5).bind(this)),effect(Bi(this,LD,v5).bind(this))}getOptions(){const{autoLabel:Ae,hideBitrate:ke}=this.$props;return[{value:"auto",label:Ae},...mi(this,RD).call(this).map(Le=>{const Fe=Le.bitrate&&Le.bitrate>=0?`${round(Le.bitrate/1e6,2)} Mbps`:null;
2385return{quality:Le,label:Le.height+"p",value:Bi(this,m1,ET).call(this,Le),bitrate:()=>ke()?null:Fe}})]}}nm=new WeakMap,f1=new WeakMap,_v=new WeakMap,RD=new WeakMap,OD=new WeakSet,y5=function(){mi(this,_v).value=Bi(this,zD,x5).call(this)},LD=new WeakSet,v5=function(){var Ve;const{autoLabel:Ae}=this.$props,{autoQuality:ke,quality:Le}=mi(this,nm).$state,Fe=Le()?Le().height+"p":"";(Ve=mi(this,f1))==null||Ve.hint.set(ke()?Ae()+(Fe?` (${Fe})`:""):Fe)},$D=new WeakSet,_5=function(){var Ae;(Ae=mi(this,f1))==null||Ae.disable(this.disabled)},FD=new WeakSet,b5=function(Ae,ke){if(this.disabled)return;if(Ae==="auto"){mi(this,nm).remote.changeQuality(-1,ke),this.dispatch("change",{detail:"auto",trigger:ke});return}const{qualities:Le}=mi(this,nm).$state,Fe=peek(Le).findIndex(Ve=>Bi(this,m1,ET).call(this,Ve)===Ae);if(Fe>=0){const Ve=peek(Le)[Fe];mi(this,nm).remote.changeQuality(Fe,ke),this.dispatch("change",{detail:Ve,trigger:ke})}},zD=new WeakSet,x5=function(){const{quality:Ae,autoQuality:ke}=mi(this,nm).$state;if(ke())return"auto";const Le=Ae();return Le?Bi(this,m1,ET).call(this,Le):"auto"},m1=new WeakSet,ET=function(Ae){return Ae.height+"_"+Ae.bitrate},Mr(QualityRadioGroup,"props",{autoLabel:"Auto",hideBitrate:!1,sort:"descending"});const qualityradiogroup__proto=QualityRadioGroup.prototype;prop(qualityradiogroup__proto,"value");prop(qualityradiogroup__proto,"disabled");method(qualityradiogroup__proto,"getOptions");var g1,U0,Ew,Cw,BD,w5,ND,S5,VD,T5,Aw,PI,HD,E5,UD,C5,Dw,II,GD,A5;class Time extends Component{constructor(){super(...arguments);Oi(this,BD);Oi(this,ND);Oi(this,VD);Oi(this,Aw);Oi(this,HD);Oi(this,UD);Oi(this,Dw);Oi(this,GD);Oi(this,g1,void 0);Oi(this,U0,signal(null));Oi(this,Ew,signal(!0));Oi(this,Cw,signal(!0))}onSetup(){Qn(this,g1,useMediaContext()),Bi(this,Aw,PI).call(this);const{type:Ae}=this.$props;this.setAttributes({"data-type":Ae,"data-remainder":Bi(this,Dw,II).bind(this)}),new IntersectionObserverController({callback:Bi(this,BD,w5).bind(this)}).attach(this)}onAttach(Ae){Ae.hasAttribute("role")||effect(Bi(this,HD,E5).bind(this)),effect(Bi(this,Aw,PI).bind(this))}onConnect(Ae){onDispose(observeVisibility(Ae,mi(this,Ew).set)),effect(Bi(this,ND,S5).bind(this)),effect(Bi(this,VD,T5).bind(this))}}g1=new WeakMap,U0=new WeakMap,Ew=new WeakMap,Cw=new WeakMap,BD=new WeakSet,w5=function(Ae){mi(this,Cw).set(Ae[0].isIntersecting)},ND=new WeakSet,S5=function(){const{hidden:Ae}=this.$props;this.$state.hidden.set(Ae()||!mi(this,Ew).call(this)||!mi(this,Cw).call(this))},VD=new WeakSet,T5=function(){if(!this.$props.toggle()){mi(this,U0).set(null);return}this.el&&onPress(this.el,Bi(this,GD,A5).bind(this))},Aw=new WeakSet,PI=function(){const{hidden:Ae,timeText:ke}=this.$state,{duration:Le}=mi(this,g1).$state;if(Ae())return;const{type:Fe,padHours:Ve,padMinutes:Ie,showHours:je}=this.$props,Ke=Bi(this,UD,C5).call(this,Fe()),$e=Le(),qe=Bi(this,Dw,II).call(this);if(!Number.isFinite(Ke+$e)){ke.set("LIVE");return}const ci=qe?Math.max(0,$e-Ke):Ke,gi=formatTime(ci,{padHrs:Ve(),padMins:Ie(),showHrs:je()});ke.set((qe?"-":"")+gi)},HD=new WeakSet,E5=function(){if(!this.el)return;const{toggle:Ae}=this.$props;setAttribute(this.el,"role",Ae()?"timer":null),setAttribute(this.el,"tabindex",Ae()?0:null)},UD=new WeakSet,C5=function(Ae){const{bufferedEnd:ke,duration:Le,currentTime:Fe}=mi(this,g1).$state;switch(Ae){case"buffered":return ke();case"duration":return Le();default:return Fe()}},Dw=new WeakSet,II=function(){return this.$props.remainder()&&mi(this,U0).call(this)!==!1},GD=new WeakSet,A5=function(Ae){if(Ae.preventDefault(),mi(this,U0).call(this)===null){mi(this,U0).set(!this.$props.remainder());return}mi(this,U0).set(ke=>!ke)},Mr(Time,"props",{type:"current",showHours:!1,padHours:null,padMinutes:null,remainder:!1,toggle:!1,hidden:!1}),Mr(Time,"state",new State({timeText:"",hidden:!1}));var Bm,y1,jD,D5,WD,M5,qD,k5,XD,P5,ZD,I5,G0,v1,YD,R5,_1,CT,KD,O5,kg,Ry;class MediaAnnouncer extends Component{constructor(){super(...arguments);Oi(this,jD);Oi(this,WD);Oi(this,qD);Oi(this,XD);Oi(this,ZD);Oi(this,YD);Oi(this,_1);Oi(this,KD);Oi(this,kg);Oi(this,Bm,void 0);Oi(this,y1,!1);Oi(this,G0,-1);Oi(this,v1,-1)}onSetup(){Qn(this,Bm,useMediaContext())}onAttach(Ae){Ae.style.display="contents"}onConnect(Ae){Ae.setAttribute("data-media-announcer",""),setAttributeIfEmpty(Ae,"role","status"),setAttributeIfEmpty(Ae,"aria-live","polite");const{busy:ke}=this.$state;this.setAttributes({"aria-busy":()=>ke()?"true":null}),Qn(this,y1,!0),effect(Bi(this,jD,D5).bind(this)),effect(Bi(this,ZD,I5).bind(this)),effect(Bi(this,XD,P5).bind(this)),effect(Bi(this,WD,M5).bind(this)),effect(Bi(this,qD,k5).bind(this)),effect(Bi(this,YD,R5).bind(this)),effect(Bi(this,KD,O5).bind(this)),tick(),Qn(this,y1,!1)}}Bm=new WeakMap,y1=new WeakMap,jD=new WeakSet,D5=function(){const{paused:Ae}=mi(this,Bm).$state;Bi(this,kg,Ry).call(this,Ae()?"Pause":"Play")},WD=new WeakSet,M5=function(){const{fullscreen:Ae}=mi(this,Bm).$state;Bi(this,kg,Ry).call(this,Ae()?"Enter Fullscreen":"Exit Fullscreen")},qD=new WeakSet,k5=function(){const{pictureInPicture:Ae}=mi(this,Bm).$state;Bi(this,kg,Ry).call(this,Ae()?"Enter PiP":"Exit PiP")},XD=new WeakSet,P5=function(){const{textTrack:Ae}=mi(this,Bm).$state;Bi(this,kg,Ry).call(this,Ae()?"Closed-Captions On":"Closed-Captions Off")},ZD=new WeakSet,I5=function(){const{muted:Ae,volume:ke,audioGain:Le}=mi(this,Bm).$state;Bi(this,kg,Ry).call(this,Ae()||ke()===0?"Mute":`${Math.round(ke()*(Le()??1)*100)}
2385% ${Bi(this,_1,CT).call(this,"Volume")}`)},G0=new WeakMap,v1=new WeakMap,YD=new WeakSet,R5=function(){const{seeking:Ae,currentTime:ke}=mi(this,Bm).$state,Le=Ae();mi(this,G0)>0?(window.clearTimeout(mi(this,v1)),Qn(this,v1,window.setTimeout(()=>{if(!this.scope)return;const Fe=peek(ke),Ve=Math.abs(Fe-mi(this,G0));if(Ve>=1){const Ie=Fe>=mi(this,G0),je=formatSpokenTime(Ve);Bi(this,kg,Ry).call(this,`${Bi(this,_1,CT).call(this,Ie?"Seek Forward":"Seek Backward")} ${je}`)}Qn(this,G0,-1),Qn(this,v1,-1)},300))):Le&&Qn(this,G0,peek(ke))},_1=new WeakSet,CT=function(Ae){var Le;const{translations:ke}=this.$props;return((Le=ke==null?void 0:ke())==null?void 0:Le[Ae||""])??Ae},KD=new WeakSet,O5=function(){const{label:Ae,busy:ke}=this.$state,Le=Bi(this,_1,CT).call(this,Ae());if(mi(this,y1))return;ke.set(!0);const Fe=window.setTimeout(()=>void ke.set(!1),150);return this.el&&setAttribute(this.el,"aria-label",Le),isString(Le)&&this.dispatch("change",{detail:Le}),()=>window.clearTimeout(Fe)},kg=new WeakSet,Ry=function(Ae){const{label:ke}=this.$state;ke.set(Ae)},Mr(MediaAnnouncer,"props",{translations:null}),Mr(MediaAnnouncer,"state",new State({label:null,busy:!1}));var Pg,JD,L5,QD,$5,Mw,RI;class Controls extends Component{constructor(){super(...arguments);Oi(this,JD);Oi(this,QD);Oi(this,Mw);Oi(this,Pg,void 0)}onSetup(){Qn(this,Pg,useMediaContext()),effect(Bi(this,QD,$5).bind(this))}onAttach(Ae){const{pictureInPicture:ke,fullscreen:Le}=mi(this,Pg).$state;setStyle(Ae,"pointer-events","none"),setAttributeIfEmpty(Ae,"role","group"),this.setAttributes({"data-visible":Bi(this,Mw,RI).bind(this),"data-fullscreen":Le,"data-pip":ke}),effect(()=>{this.dispatch("change",{detail:Bi(this,Mw,RI).call(this)})}),effect(Bi(this,JD,L5).bind(this)),effect(()=>{const Fe=Le();for(const Ve of["top","right","bottom","left"])setStyle(Ae,`padding-${Ve}`,Fe&&`env(safe-area-inset-${Ve})`)})}}Pg=new WeakMap,JD=new WeakSet,L5=function(){if(!this.el)return;const{nativeControls:Ae}=mi(this,Pg).$state,ke=Ae();setAttribute(this.el,"aria-hidden",ke?"true":null),setStyle(this.el,"display",ke?"none":null)},QD=new WeakSet,$5=function(){const{controls:Ae}=mi(this,Pg).player,{hideDelay:ke,hideOnMouseLeave:Le}=this.$props;Ae.defaultDelay=ke()===2e3?mi(this,Pg).$props.controlsDelay():ke(),Ae.hideOnMouseLeave=Le()},Mw=new WeakSet,RI=function(){const{controlsVisible:Ae}=mi(this,Pg).$state;return Ae()},Mr(Controls,"props",{hideDelay:2e3,hideOnMouseLeave:!1});class ControlsGroup extends Component{onAttach(_e){_e.style.pointerEvents||setStyle(_e,"pointer-events","auto")}}const tooltipContext=createContext();let id=0;var b1,j0,W0,kw,eM,F5,tM,z5,iM,B5,nM,N5,rM,V5;class Tooltip extends Component{constructor(){super();Oi(this,eM);Oi(this,tM);Oi(this,iM);Oi(this,nM);Oi(this,rM);Oi(this,b1,`media-tooltip-${++id}`);Oi(this,j0,signal(null));Oi(this,W0,signal(null));Oi(this,kw,signal(!1));new FocusVisibleController;const{showDelay:Ae}=this.$props;new Popper({trigger:mi(this,j0),content:mi(this,W0),showDelay:Ae,listen(ke,Le,Fe){effect(()=>{$keyboard()&&listenEvent(ke,"focus",Le),listenEvent(ke,"blur",Fe)}),new EventsController(ke).add("touchstart",Ve=>Ve.preventDefault(),{passive:!1}).add("mouseenter",Le).add("mouseleave",Fe)},onChange:Bi(this,rM,V5).bind(this)})}onAttach(Ae){Ae.style.setProperty("display","contents")}onSetup(){provideContext(tooltipContext,{trigger:mi(this,j0),content:mi(this,W0),showing:mi(this,kw),attachTrigger:Bi(this,eM,F5).bind(this),detachTrigger:Bi(this,tM,z5).bind(this),attachContent:Bi(this,iM,B5).bind(this),detachContent:Bi(this,nM,N5).bind(this)})}}b1=new WeakMap,j0=new WeakMap,W0=new WeakMap,kw=new WeakMap,eM=new WeakSet,F5=function(Ae){var Le;mi(this,j0).set(Ae);let ke=Ae.getAttribute("data-media-tooltip");ke&&((Le=this.el)==null||Le.setAttribute(`data-media-${ke}-tooltip`,"")),setAttribute(Ae,"data-describedby",mi(this,b1))},tM=new WeakSet,z5=function(Ae){Ae.removeAttribute("data-describedby"),Ae.removeAttribute("aria-describedby"),mi(this,j0).set(null)},iM=new WeakSet,B5=function(Ae){Ae.setAttribute("id",mi(this,b1)),Ae.style.display="none",setAttributeIfEmpty(Ae,"role","tooltip"),mi(this,W0).set(Ae)},nM=new WeakSet,N5=function(Ae){Ae.removeAttribute("id"),Ae.removeAttribute("role"),mi(this,W0).set(null)},rM=new WeakSet,V5=function(Ae){const ke=mi(this,j0).call(this),Le=mi(this,W0).call(this);ke&&setAttribute(ke,"aria-describedby",Ae?mi(this,b1):null);for(const Fe of[this.el,ke,Le])Fe&&setAttribute(Fe,"data-visible",Ae);mi(this,kw).set(Ae)},Mr(Tooltip,"props",{showDelay:700});var sM,H5,Pw,OI;class TooltipTrigger extends Component{constructor(){super();Oi(this,sM);Oi(this,Pw);new FocusVisibleController}onConnect(Ae){onDispose(requestScopedAnimationFrame(()=>{if(!this.connectScope)return;Bi(this,sM,H5).call(this);const ke=useContext(tooltipContext);onDispose(()=>{const Le=Bi(this,Pw,OI).call(this);Le&&ke.detachTrigger(Le)})}))}}sM=new WeakSet,H5=function(){const Ae=Bi(this,Pw,OI).call(this),ke=useContext(tooltipContext);Ae&&ke.attachTrigger(Ae)},Pw=new WeakSet,OI=function(){const Ae=this.el.firstElementChild;return(Ae==null?void 0:Ae.localName)==="button"||(Ae==null?void 0:Ae.getAttribute("role"))==="button"?Ae:this.el};var Iw,LI,oM,U5,aM,G5;class TooltipContent extends Component{constructor(){super();Oi(this,Iw);Oi(this,oM);Oi(this,aM);new FocusVisibleController;const{placement:Ae}=this.$props;this.setAttributes({"data-placement":Ae})}
2385onAttach(Ae){Bi(this,Iw,LI).call(this,Ae),Object.assign(Ae.style,{position:"absolute",top:0,left:0,width:"max-content"})}onConnect(Ae){Bi(this,Iw,LI).call(this,Ae);const ke=useContext(tooltipContext);onDispose(()=>ke.detachContent(Ae)),onDispose(requestScopedAnimationFrame(()=>{this.connectScope&&effect(Bi(this,oM,U5).bind(this))}))}}Iw=new WeakSet,LI=function(Ae){useContext(tooltipContext).attachContent(Ae)},oM=new WeakSet,U5=function(){const{showing:Ae}=useContext(tooltipContext);if(!Ae())return;const{placement:ke,offset:Le,alignOffset:Fe}=this.$props;return autoPlacement(this.el,Bi(this,aM,G5).call(this),ke(),{offsetVarName:"media-tooltip",xOffset:Fe(),yOffset:Le()})},aM=new WeakSet,G5=function(){return useContext(tooltipContext).trigger()},Mr(TooltipContent,"props",{placement:"top center",offset:0,alignOffset:0});var Rw;class ToggleButton extends Component{constructor(){super();Oi(this,Rw,signal(!1));new ToggleButtonController({isPresssed:mi(this,Rw)})}get pressed(){return mi(this,Rw).call(this)}}Rw=new WeakMap,Mr(ToggleButton,"props",{disabled:!1,defaultPressed:!1});const togglebutton__proto=ToggleButton.prototype;prop(togglebutton__proto,"pressed");var Ig,lM,j5,cM,W5,uM,q5,dM,X5;class GoogleCastButton extends Component{constructor(){super();Oi(this,lM);Oi(this,cM);Oi(this,uM);Oi(this,dM);Oi(this,Ig,void 0);new ToggleButtonController({isPresssed:Bi(this,cM,W5).bind(this),onPress:Bi(this,lM,j5).bind(this)})}onSetup(){Qn(this,Ig,useMediaContext());const{canGoogleCast:Ae,isGoogleCastConnected:ke}=mi(this,Ig).$state;this.setAttributes({"data-active":ke,"data-supported":Ae,"data-state":Bi(this,uM,q5).bind(this),"aria-hidden":$ariaBool(()=>!Ae())})}onAttach(Ae){Ae.setAttribute("data-media-tooltip","google-cast"),setARIALabel(Ae,Bi(this,dM,X5).bind(this))}}Ig=new WeakMap,lM=new WeakSet,j5=function(Ae){mi(this,Ig).remote.requestGoogleCast(Ae)},cM=new WeakSet,W5=function(){const{remotePlaybackType:Ae,remotePlaybackState:ke}=mi(this,Ig).$state;return Ae()==="google-cast"&&ke()!=="disconnected"},uM=new WeakSet,q5=function(){const{remotePlaybackType:Ae,remotePlaybackState:ke}=mi(this,Ig).$state;return Ae()==="google-cast"&&ke()},dM=new WeakSet,X5=function(){const{remotePlaybackState:Ae}=mi(this,Ig).$state;return`Google Cast ${Ae()}`},Mr(GoogleCastButton,"props",ToggleButtonController.props);var q0,Ow,hM,Z5,pM,Y5,Lw,$I,fM,K5,$w,FI,mM,J5,gM,Q5,Fw,zI,yM,eF,vM,tF;class SliderVideo extends Component{constructor(){super(...arguments);Oi(this,hM);Oi(this,pM);Oi(this,Lw);Oi(this,fM);Oi(this,$w);Oi(this,mM);Oi(this,gM);Oi(this,Fw);Oi(this,yM);Oi(this,vM);Oi(this,q0,void 0);Oi(this,Ow,void 0)}get video(){return this.$state.video()}onSetup(){Qn(this,q0,useMediaContext()),Qn(this,Ow,useState(Slider.state)),Bi(this,Lw,$I).call(this),this.setAttributes({"data-loading":Bi(this,fM,K5).bind(this),"data-hidden":this.$state.hidden,"data-error":Bi(this,$w,FI).bind(this),"aria-hidden":$ariaBool(this.$state.hidden)})}onAttach(Ae){effect(Bi(this,hM,Z5).bind(this)),effect(Bi(this,pM,Y5).bind(this)),effect(Bi(this,Lw,$I).bind(this)),effect(Bi(this,mM,J5).bind(this)),effect(Bi(this,gM,Q5).bind(this)),effect(Bi(this,vM,tF).bind(this))}}q0=new WeakMap,Ow=new WeakMap,hM=new WeakSet,Z5=function(){const Ae=this.$state.video();Ae&&(Ae.readyState>=2&&Bi(this,Fw,zI).call(this),new EventsController(Ae).add("canplay",Bi(this,Fw,zI).bind(this)).add("error",Bi(this,yM,eF).bind(this)))},pM=new WeakSet,Y5=function(){const{src:Ae}=this.$state,{canLoad:ke}=mi(this,q0).$state;Ae.set(ke()?this.$props.src():null)},Lw=new WeakSet,$I=function(){const{crossOrigin:Ae}=this.$props,{crossOrigin:ke}=this.$state,{crossOrigin:Le}=mi(this,q0).$state,Fe=Ae()!==null?Ae():Le();ke.set(Fe===!0?"anonymous":Fe)},fM=new WeakSet,K5=function(){const{canPlay:Ae,hidden:ke}=this.$state;return!Ae()&&!ke()},$w=new WeakSet,FI=function(){const{error:Ae}=this.$state;return!isNull(Ae)},mM=new WeakSet,J5=function(){const{src:Ae,hidden:ke}=this.$state,{canLoad:Le,duration:Fe}=mi(this,q0).$state;ke.set(Le()&&(!Ae()||Bi(this,$w,FI).call(this)||!Number.isFinite(Fe())))},gM=new WeakSet,Q5=function(){const{src:Ae,canPlay:ke,error:Le}=this.$state;Ae(),ke.set(!1),Le.set(null)},Fw=new WeakSet,zI=function(Ae){const{canPlay:ke,error:Le}=this.$state;ke.set(!0),Le.set(null),this.dispatch("can-play",{trigger:Ae})},yM=new WeakSet,eF=function(Ae){const{canPlay:ke,error:Le}=this.$state;ke.set(!1),Le.set(Ae),this.dispatch("error",{trigger:Ae})},vM=new WeakSet,tF=function(){const{video:Ae,canPlay:ke}=this.$state,{duration:Le}=mi(this,q0).$state,{pointerRate:Fe}=mi(this,Ow),Ve=Ae();ke()&&Ve&&Number.isFinite(Le())&&Number.isFinite(Fe())&&(Ve.currentTime=Fe()*Le())},Mr(SliderVideo,"props",{src:null,crossOrigin:null}),Mr(SliderVideo,"state",new State({video:null,src:null,crossOrigin:null,canPlay:!1,error:null,hidden:!1}));const slidervideo__proto=SliderVideo.prototype;prop(slidervideo__proto,"video");var X0,_M,iF,bM,nF,xM,rF,wM,sF,SM,oF,zw,BI,TM,aF,EM,lF;class AudioGainSlider extends Component{constructor(){super(...arguments);Oi(this,_M);Oi(this,bM);Oi(this,xM);Oi(this,wM);Oi(this,SM);Oi(this,zw);Oi(this,TM);Oi(this,EM);Oi(this,X0,void 0)}onSetup(){Qn(this,X0,useMediaContext()),provideContext(sliderValueFormatContext,{default:"percent",percent:(Ae,ke)=>round(this.$state.value(),ke)+"%"}),new SliderController({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:Bi(this,SM,oF).bind(this),aria:{valueNow:Bi(this,_M,iF).bind(this),valueText:Bi(this,bM,nF).bind(this)},onDragValueChange:Bi(this,EM,lF).bind(this),onValueChange:Bi(this,TM,aF).bind(this)}).attach(this),effect(Bi(this,xM,rF).bind(this)),effect(Bi(this,wM,sF).bind(this))}onAttach(Ae){Ae.setAttribute("data-media-audio-gain-slider",""),setAttributeIfEmpty(Ae,"aria-label","Audio Boost");const{canSetAudioGain:ke}=mi(this,X0).$state;this.setAttributes({"data-supported":ke,"aria-hidden":$ariaBool(()=>!ke())})}}X0=new WeakMap,_M=new WeakSet,iF=function(){const{value:Ae}=this.$state;return Math.round(Ae())},bM=new WeakSet,nF=function(){const{value:Ae}=this.$state;return Ae()+"%"},xM=new WeakSet,rF=function(){const{min:Ae,max:ke}=this.$props;this.$state.min.set(Ae()),this.$state.max.set(ke())},wM=new WeakSet,sF=function(){const{audioGain:Ae}
2385=mi(this,X0).$state,ke=((Ae()??1)-1)*100;this.$state.value.set(ke),this.dispatch("value-change",{detail:ke})},SM=new WeakSet,oF=function(){const{disabled:Ae}=this.$props,{canSetAudioGain:ke}=mi(this,X0).$state;return Ae()||!ke()},zw=new WeakSet,BI=function(Ae){if(!Ae.trigger)return;const ke=round(1+Ae.detail/100,2);mi(this,X0).remote.changeAudioGain(ke,Ae)},TM=new WeakSet,aF=function(Ae){Bi(this,zw,BI).call(this,Ae)},EM=new WeakSet,lF=function(Ae){Bi(this,zw,BI).call(this,Ae)},Mr(AudioGainSlider,"props",{...SliderController.props,step:25,keyStep:25,shiftKeyMultiplier:2,min:0,max:300}),Mr(AudioGainSlider,"state",sliderState);var Z0,CM,cF,AM,uF,DM,dF,MM,hF,kM,pF,PM,fF,Bw,IM,mF,RM,gF,OM,yF;class SpeedSlider extends Component{constructor(){super(...arguments);Oi(this,CM);Oi(this,AM);Oi(this,DM);Oi(this,MM);Oi(this,kM);Oi(this,PM);Oi(this,IM);Oi(this,RM);Oi(this,OM);Oi(this,Z0,void 0);Oi(this,Bw,functionThrottle(Bi(this,IM,mF).bind(this),25))}onSetup(){Qn(this,Z0,useMediaContext()),new SliderController({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Bi(this,kM,pF),isDisabled:Bi(this,PM,fF).bind(this),aria:{valueNow:Bi(this,CM,cF).bind(this),valueText:Bi(this,AM,uF).bind(this)},onDragValueChange:Bi(this,OM,yF).bind(this),onValueChange:Bi(this,RM,gF).bind(this)}).attach(this),effect(Bi(this,DM,dF).bind(this)),effect(Bi(this,MM,hF).bind(this))}onAttach(Ae){Ae.setAttribute("data-media-speed-slider",""),setAttributeIfEmpty(Ae,"aria-label","Speed");const{canSetPlaybackRate:ke}=mi(this,Z0).$state;this.setAttributes({"data-supported":ke,"aria-hidden":$ariaBool(()=>!ke())})}}Z0=new WeakMap,CM=new WeakSet,cF=function(){const{value:Ae}=this.$state;return Ae()},AM=new WeakSet,uF=function(){const{value:Ae}=this.$state;return Ae()+"x"},DM=new WeakSet,dF=function(){const{min:Ae,max:ke}=this.$props;this.$state.min.set(Ae()),this.$state.max.set(ke())},MM=new WeakSet,hF=function(){const{playbackRate:Ae}=mi(this,Z0).$state,ke=Ae();this.$state.value.set(ke),this.dispatch("value-change",{detail:ke})},kM=new WeakSet,pF=function(Ae){return round(Ae,2)},PM=new WeakSet,fF=function(){const{disabled:Ae}=this.$props,{canSetPlaybackRate:ke}=mi(this,Z0).$state;return Ae()||!ke()},Bw=new WeakMap,IM=new WeakSet,mF=function(Ae){if(!Ae.trigger)return;const ke=Ae.detail;mi(this,Z0).remote.changePlaybackRate(ke,Ae)},RM=new WeakSet,gF=function(Ae){mi(this,Bw).call(this,Ae)},OM=new WeakSet,yF=function(Ae){mi(this,Bw).call(this,Ae)},Mr(SpeedSlider,"props",{...SliderController.props,step:.25,keyStep:.25,shiftKeyMultiplier:2,min:0,max:2}),Mr(SpeedSlider,"state",sliderState);var rm,x1,LM,vF,$M,_F,FM,bF,zM,xF,BM,wF,Nw,NM,SF,VM,TF,HM,EF;class QualitySlider extends Component{constructor(){super(...arguments);Oi(this,LM);Oi(this,$M);Oi(this,FM);Oi(this,zM);Oi(this,BM);Oi(this,NM);Oi(this,VM);Oi(this,HM);Oi(this,rm,void 0);Oi(this,x1,computed(()=>{const{qualities:Ae}=mi(this,rm).$state;return sortVideoQualities(Ae())}));Oi(this,Nw,functionThrottle(Bi(this,NM,SF).bind(this),25))}onSetup(){Qn(this,rm,useMediaContext()),new SliderController({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:Bi(this,BM,wF).bind(this),aria:{valueNow:Bi(this,LM,vF).bind(this),valueText:Bi(this,$M,_F).bind(this)},onDragValueChange:Bi(this,HM,EF).bind(this),onValueChange:Bi(this,VM,TF).bind(this)}).attach(this),effect(Bi(this,FM,bF).bind(this)),effect(Bi(this,zM,xF).bind(this))}onAttach(Ae){Ae.setAttribute("data-media-quality-slider",""),setAttributeIfEmpty(Ae,"aria-label","Video Quality");const{qualities:ke,canSetQuality:Le}=mi(this,rm).$state,Fe=computed(()=>Le()&&ke().length>0);this.setAttributes({"data-supported":Fe,"aria-hidden":$ariaBool(()=>!Fe())})}}rm=new WeakMap,x1=new WeakMap,LM=new WeakSet,vF=function(){const{value:Ae}=this.$state;return Ae()},$M=new WeakSet,_F=function(){const{quality:Ae}=mi(this,rm).$state;if(!Ae())return"";const{height:ke,bitrate:Le}=Ae(),Fe=Le&&Le>0?`${(Le/1e6).toFixed(2)} Mbps`:null;return ke?`${ke}p${Fe?` (${Fe})`:""}`:"Auto"},FM=new WeakSet,bF=function(){const Ae=mi(this,x1).call(this);this.$state.max.set(Math.max(0,Ae.length-1))},zM=new WeakSet,xF=function(){let{quality:Ae}=mi(this,rm).$state,ke=mi(this,x1).call(this),Le=Math.max(0,ke.indexOf(Ae()));this.$state.value.set(Le),this.dispatch("value-change",{detail:Le})},BM=new WeakSet,wF=function(){const{disabled:Ae}=this.$props,{canSetQuality:ke,qualities:Le}=mi(this,rm).$state;return Ae()||Le().length<=1||!ke()},Nw=new WeakMap,NM=new WeakSet,SF=function(Ae){if(!Ae.trigger)return;const{qualities:ke}=mi(this,rm),Le=peek(mi(this,x1))[Ae.detail];mi(this,rm).remote.changeQuality(ke.indexOf(Le),Ae)},VM=new WeakSet,TF=function(Ae){mi(this,Nw).call(this,Ae)},HM=new WeakSet,EF=function(Ae){mi(this,Nw).call(this,Ae)},Mr(QualitySlider,"props",{...SliderController.props,step:1,keyStep:1,shiftKeyMultiplier:1}),Mr(QualitySlider,"state",sliderState);var cp,bv,w1,Nm,Mh,xv,kh,Rg,wv,Y0,Vw,NI,Hw,VI,UM,CF,GM,AF,jM,DF,WM,MF,qM,kF,S1,AT,Uw,HI,Gw,UI,XM,PF,ZM,YM,KM,IF,T1,DT,E1,MT,JM,RF,QM,OF,ek,LF,tk,$F,jw,ik,FF,nk,zF,rk,BF;class SliderChapters extends Component{constructor(){super(...arguments);Oi(this,Vw);Oi(this,Hw);Oi(this,UM);Oi(this,GM);Oi(this,jM);Oi(this,WM);Oi(this,qM);Oi(this,S1);Oi(this,Uw);Oi(this,Gw);Oi(this,XM);Oi(this,KM);Oi(this,T1);Oi(this,E1);Oi(this,JM);Oi(this,QM);Oi(this,ek);Oi(this,tk);Oi(this,ik);Oi(this,nk);Oi(this,rk);Oi(this,cp,void 0);Oi(this,bv,void 0);Oi(this,w1,void 0);Oi(this,Nm,null);Oi(this,Mh,[]);Oi(this,xv,signal(null));Oi(this,kh,signal([]));
2385Oi(this,Rg,signal(-1));Oi(this,wv,signal(-1));Oi(this,Y0,0);Oi(this,ZM,animationFrameThrottle(Ae=>{var je;let ke,Le=mi(this,kh).call(this),{seekableStart:Fe}=mi(this,cp).$state,Ve=Fe(),Ie=Bi(this,T1,DT).call(this,Le);for(let Ke=mi(this,Y0);Ke<mi(this,Mh).length;Ke++)if(ke=Bi(this,E1,MT).call(this,Le[Ke],Ae,Ve,Ie),(je=mi(this,Mh)[Ke])==null||je.style.setProperty("--chapter-progress",ke+"%"),ke<100){Qn(this,Y0,Ke);break}}));Oi(this,YM,computed(Bi(this,KM,IF).bind(this)));Oi(this,jw,functionDebounce(()=>{const Ae=peek(mi(this,xv));!this.scope||!Ae||!Ae.cues.length||(mi(this,kh).set(Bi(this,JM,RF).call(this,Ae.cues)),mi(this,Rg).set(0),Qn(this,Y0,0))},150,!0))}get cues(){return mi(this,kh).call(this)}get activeCue(){return mi(this,kh).call(this)[mi(this,Rg).call(this)]||null}get activePointerCue(){return mi(this,kh).call(this)[mi(this,wv).call(this)]||null}onSetup(){Qn(this,cp,useMediaContext()),Qn(this,bv,useState(TimeSlider.state))}onAttach(Ae){watchActiveTextTrack(mi(this,cp).textTracks,"chapters",Bi(this,Vw,NI).bind(this)),effect(Bi(this,QM,OF).bind(this))}onConnect(){onDispose(()=>Bi(this,Hw,VI).bind(this))}onDestroy(){Bi(this,Vw,NI).call(this,null)}setRefs(Ae){var ke;if(Qn(this,Mh,Ae),(ke=mi(this,w1))==null||ke.dispose(),mi(this,Mh).length===1){const Le=mi(this,Mh)[0];Le.style.width="100%",Le.style.setProperty("--chapter-fill","var(--slider-fill)"),Le.style.setProperty("--chapter-progress","var(--slider-progress)")}else mi(this,Mh).length>0&&scoped(()=>Bi(this,UM,CF).call(this),Qn(this,w1,createScope()))}}cp=new WeakMap,bv=new WeakMap,w1=new WeakMap,Nm=new WeakMap,Mh=new WeakMap,xv=new WeakMap,kh=new WeakMap,Rg=new WeakMap,wv=new WeakMap,Y0=new WeakMap,Vw=new WeakSet,NI=function(Ae){peek(mi(this,xv))!==Ae&&(Bi(this,Hw,VI).call(this),mi(this,xv).set(Ae))},Hw=new WeakSet,VI=function(){var Ae;Qn(this,Mh,[]),mi(this,kh).set([]),mi(this,Rg).set(-1),mi(this,wv).set(-1),Qn(this,Y0,0),(Ae=mi(this,w1))==null||Ae.dispose()},UM=new WeakSet,CF=function(){mi(this,Mh).length&&effect(Bi(this,GM,AF).bind(this))},GM=new WeakSet,AF=function(){const{hidden:Ae}=mi(this,bv);Ae()||(effect(Bi(this,jM,DF).bind(this)),effect(Bi(this,WM,MF).bind(this)),effect(Bi(this,qM,kF).bind(this)),effect(Bi(this,XM,PF).bind(this)))},jM=new WeakSet,DF=function(){const Ae=mi(this,kh).call(this);if(!Ae.length)return;let ke,{seekableStart:Le,seekableEnd:Fe}=mi(this,cp).$state,Ve=Le(),Ie=Fe()||Ae[Ae.length-1].endTime,je=Ie-Ve,Ke=100;for(let $e=0;$e<Ae.length;$e++)if(ke=Ae[$e],mi(this,Mh)[$e]){const qe=$e===Ae.length-1?Ke:round((ke.endTime-Math.max(Ve,ke.startTime))/je*100,3);mi(this,Mh)[$e].style.width=qe+"%",Ke-=qe}},WM=new WeakSet,MF=function(){let{liveEdge:Ae,seekableStart:ke,seekableEnd:Le}=mi(this,cp).$state,{fillPercent:Fe,value:Ve}=mi(this,bv),Ie=mi(this,kh).call(this),je=Ae(),Ke=peek(mi(this,Rg)),$e=Ie[Ke],qe=je?mi(this,kh).length-1:Bi(this,Gw,UI).call(this,$e&&$e.startTime/Le()*100<=peek(Ve)?Ke:0,Fe());je||!$e?Bi(this,S1,AT).call(this,0,Ie.length,100):qe>Ke?Bi(this,S1,AT).call(this,Ke,qe,100):qe<Ke&&Bi(this,S1,AT).call(this,qe+1,Ke+1,0);const ci=je?100:Bi(this,E1,MT).call(this,Ie[qe],Fe(),ke(),Bi(this,T1,DT).call(this,Ie));Bi(this,Uw,HI).call(this,mi(this,Mh)[qe],ci),mi(this,Rg).set(qe)},qM=new WeakSet,kF=function(){let{hidden:Ae,pointerPercent:ke}=mi(this,bv);if(Ae()){mi(this,wv).set(-1);return}const Le=Bi(this,Gw,UI).call(this,0,ke());mi(this,wv).set(Le)},S1=new WeakSet,AT=function(Ae,ke,Le){for(let Fe=Ae;Fe<ke;Fe++)Bi(this,Uw,HI).call(this,mi(this,Mh)[Fe],Le)},Uw=new WeakSet,HI=function(Ae,ke){Ae&&(Ae.style.setProperty("--chapter-fill",ke+"%"),setAttribute(Ae,"data-active",ke>0&&ke<100),setAttribute(Ae,"data-ended",ke===100))},Gw=new WeakSet,UI=function(Ae,ke){let Le=0,Fe=mi(this,kh).call(this);if(ke===0)return 0;if(ke===100)return Fe.length-1;let{seekableStart:Ve}=mi(this,cp).$state,Ie=Ve(),je=Bi(this,T1,DT).call(this,Fe);for(let Ke=Ae;Ke<Fe.length;Ke++)if(Le=Bi(this,E1,MT).call(this,Fe[Ke],ke,Ie,je),Le>=0&&Le<100)return Ke;return 0},XM=new WeakSet,PF=function(){mi(this,ZM).call(this,mi(this,YM).call(this))},ZM=new WeakMap,YM=new WeakMap,KM=new WeakSet,IF=function(){const{bufferedEnd:Ae,duration:ke}=mi(this,cp).$state;return round(Math.min(Ae()/Math.max(ke(),1),1),3)*100},T1=new WeakSet,DT=function(Ae){var Fe;const{seekableEnd:ke}=mi(this,cp).$state,Le=ke();return Number.isFinite(Le)?Le:((Fe=Ae[Ae.length-1])==null?void 0:Fe.endTime)||0},E1=new WeakSet,MT=function(Ae,ke,Le,Fe){if(!Ae||mi(this,kh).call(this).length===0)return 0;const Ie=Fe-Le,je=Math.max(0,Ae.startTime-Le),Ke=Math.min(Fe,Ae.endTime)-Le,$e=je/Ie,qe=$e*100,ci=Math.min(1,$e+(Ke-je)/Ie)*100;return Math.max(0,round(ke>=ci?100:(ke-qe)/(ci-qe)*100,3))},JM=new WeakSet,RF=function(Ae){let ke=[],{seekableStart:Le,seekableEnd:Fe,duration:Ve}=mi(this,cp).$state,Ie=Le(),je=Fe();Ae=Ae.filter(qe=>qe.startTime<=je&&qe.endTime>=Ie);const Ke=Ae[0];Ke&&Ke.startTime>Ie&&ke.push(new window.VTTCue(Ie,Ke.startTime,""));for(let qe=0;qe<Ae.length-1;qe++){const ci=Ae[qe],gi=Ae[qe+1];if(ke.push(ci),gi){const Ai=gi.startTime-ci.endTime;Ai>0&&ke.push(new window.VTTCue(ci.endTime,ci.endTime+Ai,""))}}const $e=Ae[Ae.length-1];if($e){ke.push($e);const qe=Ve();qe>=0&&qe-$e.endTime>1&&ke.push(new window.VTTCue($e.endTime,Ve(),""))}return ke},QM=new WeakSet,OF=function(){const{source:Ae}=mi(this,cp).$state;Ae(),Bi(this,ek,LF).call(this)},ek=new WeakSet,LF=function(){if(!this.scope)return;const{disabled:Ae}=this.$props;if(Ae()){mi(this,kh).set([]),mi(this,Rg).set(0),Qn(this,Y0,0);return}const ke=mi(this,xv).call(this);if(ke){const Le=mi(this,jw).bind(this);Le(),new EventsController(ke).add("add-cue",Le).add("remove-cue",Le),effect(Bi(this,tk,$F).bind(this))}return Qn(this,Nm,Bi(this,rk,BF).call(this)),mi(this,Nm)&&effect(Bi(this,ik,FF).bind(this)),()=>{mi(this,Nm)&&(mi(this,Nm).textContent="",Qn(this,Nm,null))}},tk=new WeakSet,$F=function(){mi(this,cp).$state.duration(),mi(this,jw).call(this)},jw=new WeakMap,ik=new WeakSet,FF=function(){const Ae=this.activePointerCue||this.activeCue;mi(this,Nm)&&(mi(this,Nm).textContent=(Ae==null?void 0:Ae.text)||"")},nk=new WeakSet,zF=function(){let Ae=this.el;
2385for(;Ae&&Ae.getAttribute("role")!=="slider";)Ae=Ae.parentElement;return Ae},rk=new WeakSet,BF=function(){const Ae=Bi(this,nk,zF).call(this);return Ae?Ae.querySelector('[data-part="chapter-title"]'):null},Mr(SliderChapters,"props",{disabled:!1});const sliderchapters__proto=SliderChapters.prototype;prop(sliderchapters__proto,"cues");prop(sliderchapters__proto,"activeCue");prop(sliderchapters__proto,"activePointerCue");method(sliderchapters__proto,"setRefs");var Og,sk,NF,ok,VF;class RadioGroup extends Component{constructor(){super();Oi(this,sk);Oi(this,ok);Oi(this,Og,void 0);Qn(this,Og,new RadioGroupController),mi(this,Og).onValueChange=Bi(this,ok,VF).bind(this)}get values(){return mi(this,Og).values}get value(){return mi(this,Og).value}set value(Ae){mi(this,Og).value=Ae}onSetup(){effect(Bi(this,sk,NF).bind(this))}}Og=new WeakMap,sk=new WeakSet,NF=function(){mi(this,Og).value=this.$props.value()},ok=new WeakSet,VF=function(Ae,ke){const Le=this.createEvent("change",{detail:Ae,trigger:ke});this.dispatch(Le)},Mr(RadioGroup,"props",{value:""});const radiogroup__proto=RadioGroup.prototype;prop(radiogroup__proto,"values");prop(radiogroup__proto,"value");var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=(De,_e,Ae,ke)=>{for(var Le=__getOwnPropDesc(_e,Ae),Fe=De.length-1,Ve;Fe>=0;Fe--)(Ve=De[Fe])&&(Le=Ve(_e,Ae,Le)||Le);return Le&&__defProp(_e,Ae,Le),Le},Vm,Sv,Lg,C1,Hm,ak,HF,lk,UF,ck,GF,Ww,GI,uk,jF,dk,WF;class ChaptersRadioGroup extends Component{constructor(){super();Oi(this,ak);Oi(this,lk);Oi(this,ck);Oi(this,Ww);Oi(this,uk);Oi(this,dk);Oi(this,Vm,void 0);Oi(this,Sv,void 0);Oi(this,Lg,void 0);Oi(this,C1,signal(null));Oi(this,Hm,signal([]));Qn(this,Lg,new RadioGroupController),mi(this,Lg).onValueChange=Bi(this,dk,WF).bind(this)}get value(){return mi(this,Lg).value}get disabled(){var Ae;return!((Ae=mi(this,Hm).call(this))!=null&&Ae.length)}onSetup(){Qn(this,Vm,useMediaContext()),hasProvidedContext(menuContext)&&Qn(this,Sv,useContext(menuContext));const{thumbnails:Ae}=this.$props;this.setAttributes({"data-thumbnails":()=>!!Ae()})}onAttach(Ae){var ke;(ke=mi(this,Sv))==null||ke.attachObserver({onOpen:Bi(this,ak,HF).bind(this)})}getOptions(){const{seekableStart:Ae,seekableEnd:ke}=mi(this,Vm).$state,Le=Ae(),Fe=ke();return mi(this,Hm).call(this).map((Ve,Ie)=>({cue:Ve,value:Ie.toString(),label:Ve.text,startTime:formatTime(Math.max(0,Ve.startTime-Le)),duration:formatSpokenTime(Math.min(Fe,Ve.endTime)-Math.max(Le,Ve.startTime))}))}onConnect(Ae){effect(Bi(this,Ww,GI).bind(this)),effect(Bi(this,uk,jF).bind(this)),effect(Bi(this,lk,UF).bind(this)),watchActiveTextTrack(mi(this,Vm).textTracks,"chapters",mi(this,C1).set)}}Vm=new WeakMap,Sv=new WeakMap,Lg=new WeakMap,C1=new WeakMap,Hm=new WeakMap,ak=new WeakSet,HF=function(){peek(()=>Bi(this,Ww,GI).call(this))},lk=new WeakSet,UF=function(){const Ae=mi(this,C1).call(this);if(!Ae)return;const ke=Bi(this,ck,GF).bind(this,Ae);return ke(),new EventsController(Ae).add("add-cue",ke).add("remove-cue",ke),()=>{mi(this,Hm).set([])}},ck=new WeakSet,GF=function(Ae){const{seekableStart:ke,seekableEnd:Le}=mi(this,Vm).$state,Fe=ke(),Ve=Le();mi(this,Hm).set([...Ae.cues].filter(Ie=>Ie.startTime<=Ve&&Ie.endTime>=Fe))},Ww=new WeakSet,GI=function(){var $e;if(!(($e=mi(this,Sv))!=null&&$e.expanded()))return;if(!mi(this,C1).call(this)){mi(this,Lg).value="-1";return}const{realCurrentTime:ke,seekableStart:Le,seekableEnd:Fe}=mi(this,Vm).$state,Ve=Le(),Ie=Fe(),je=ke(),Ke=mi(this,Hm).call(this).findIndex(qe=>isCueActive(qe,je));mi(this,Lg).value=Ke.toString(),Ke>=0&&requestScopedAnimationFrame(()=>{if(!this.connectScope)return;const qe=mi(this,Hm).call(this)[Ke],ci=this.el.querySelector("[aria-checked='true']"),gi=Math.max(Ve,qe.startTime),Ai=Math.min(Ie,qe.endTime)-gi,oi=Math.max(0,je-gi)/Ai*100;ci&&setStyle(ci,"--progress",round(oi,3)+"%")})},uk=new WeakSet,jF=function(){var Ae;(Ae=mi(this,Sv))==null||Ae.disable(this.disabled)},dk=new WeakSet,WF=function(Ae,ke){if(this.disabled||!ke)return;const Le=+Ae,Fe=mi(this,Hm).call(this),{clipStartTime:Ve}=mi(this,Vm).$state;isNumber(Le)&&(Fe!=null&&Fe[Le])&&(mi(this,Lg).value=Le.toString(),mi(this,Vm).remote.seek(Fe[Le].startTime-Ve(),ke),this.dispatch("change",{detail:Fe[Le],trigger:ke}))}
2385,Mr(ChaptersRadioGroup,"props",{thumbnails:null});__decorateClass([prop],ChaptersRadioGroup.prototype,"value");__decorateClass([prop],ChaptersRadioGroup.prototype,"disabled");__decorateClass([method],ChaptersRadioGroup.prototype,"getOptions");const DEFAULT_AUDIO_GAINS=[1,1.25,1.5,1.75,2,2.5,3,4];var K0,A1,Tv,hk,qF,pk,XF,fk,ZF,mk,YF,gk,KF;class AudioGainRadioGroup extends Component{constructor(){super();Oi(this,hk);Oi(this,pk);Oi(this,fk);Oi(this,mk);Oi(this,gk);Oi(this,K0,void 0);Oi(this,A1,void 0);Oi(this,Tv,void 0);Qn(this,Tv,new RadioGroupController),mi(this,Tv).onValueChange=Bi(this,gk,KF).bind(this)}get value(){return mi(this,Tv).value}get disabled(){const{gains:Ae}=this.$props,{canSetAudioGain:ke}=mi(this,K0).$state;return!ke()||Ae().length===0}onSetup(){Qn(this,K0,useMediaContext()),hasProvidedContext(menuContext)&&Qn(this,A1,useContext(menuContext))}onConnect(Ae){effect(Bi(this,hk,qF).bind(this)),effect(Bi(this,pk,XF).bind(this)),effect(Bi(this,fk,ZF).bind(this))}getOptions(){const{gains:Ae,normalLabel:ke}=this.$props;return Ae().map(Le=>({label:Le===1||Le===null?ke:String(Le*100)+"%",value:Le.toString()}))}}K0=new WeakMap,A1=new WeakMap,Tv=new WeakMap,hk=new WeakSet,qF=function(){mi(this,Tv).value=Bi(this,mk,YF).call(this)},pk=new WeakSet,XF=function(){var Fe;const{normalLabel:Ae}=this.$props,{audioGain:ke}=mi(this,K0).$state,Le=ke();(Fe=mi(this,A1))==null||Fe.hint.set(Le===1||Le==null?Ae():String(Le*100)+"%")},fk=new WeakSet,ZF=function(){var Ae;(Ae=mi(this,A1))==null||Ae.disable(this.disabled)},mk=new WeakSet,YF=function(){var ke;const{audioGain:Ae}=mi(this,K0).$state;return((ke=Ae())==null?void 0:ke.toString())??"1"},gk=new WeakSet,KF=function(Ae,ke){if(this.disabled)return;const Le=+Ae;mi(this,K0).remote.changeAudioGain(Le,ke),this.dispatch("change",{detail:Le,trigger:ke})},Mr(AudioGainRadioGroup,"props",{normalLabel:"Disabled",gains:DEFAULT_AUDIO_GAINS});const audiogainradiogroup__proto=AudioGainRadioGroup.prototype;prop(audiogainradiogroup__proto,"value");prop(audiogainradiogroup__proto,"disabled");method(audiogainradiogroup__proto,"getOptions");var jp,D1,yk,JF,Um,qw,vk,QF,Xw,jI,_k,ez,bk,tz,xk,iz;class Gesture extends Component{constructor(){super(...arguments);Oi(this,yk);Oi(this,vk);Oi(this,Xw);Oi(this,_k);Oi(this,bk);Oi(this,xk);Oi(this,jp,void 0);Oi(this,D1,null);Oi(this,Um,0);Oi(this,qw,-1)}onSetup(){Qn(this,jp,useMediaContext());const{event:Ae,action:ke}=this.$props;this.setAttributes({event:Ae,action:ke})}onAttach(Ae){Ae.setAttribute("data-media-gesture",""),Ae.style.setProperty("pointer-events","none")}onConnect(Ae){var ke;Qn(this,D1,(ke=mi(this,jp).player.el)==null?void 0:ke.querySelector("[data-media-provider]")),effect(Bi(this,yk,JF).bind(this))}}jp=new WeakMap,D1=new WeakMap,yk=new WeakSet,JF=function(){let Ae=this.$props.event(),ke=this.$props.disabled();!mi(this,D1)||!Ae||ke||(/^dbl/.test(Ae)&&(Ae=Ae.split(/^dbl/)[1]),(Ae==="pointerup"||Ae==="pointerdown")&&mi(this,jp).$state.pointer()==="coarse"&&(Ae=Ae==="pointerup"?"touchend":"touchstart"),listenEvent(mi(this,D1),Ae,Bi(this,vk,QF).bind(this),{passive:!1}))},Um=new WeakMap,qw=new WeakMap,vk=new WeakSet,QF=function(Ae){if(this.$props.disabled()||isPointerEvent(Ae)&&(Ae.button!==0||mi(this,jp).activeMenu)||isTouchEvent(Ae)&&mi(this,jp).activeMenu||isTouchPinchEvent(Ae)||!Bi(this,_k,ez).call(this,Ae))return;Ae.MEDIA_GESTURE=!0,Ae.preventDefault();const ke=peek(this.$props.event);if(!(ke==null?void 0:ke.startsWith("dbl")))mi(this,Um)===0&&setTimeout(()=>{mi(this,Um)===1&&Bi(this,Xw,jI).call(this,Ae)},250);else if(mi(this,Um)===1){queueMicrotask(()=>Bi(this,Xw,jI).call(this,Ae)),clearTimeout(mi(this,qw)),Qn(this,Um,0);return}mi(this,Um)===0&&Qn(this,qw,window.setTimeout(()=>{Qn(this,Um,0)},275)),DR(this,Um)._++},Xw=new WeakSet,jI=function(Ae){this.el.setAttribute("data-triggered",""),requestAnimationFrame(()=>{Bi(this,bk,tz).call(this)&&Bi(this,xk,iz).call(this,peek(this.$props.action),Ae),requestAnimationFrame(()=>{this.el.removeAttribute("data-triggered")})})},_k=new WeakSet,ez=function(Ae){if(!this.el)return!1;if(isPointerEvent(Ae)||isMouseEvent(Ae)||isTouchEvent(Ae)){const ke=isTouchEvent(Ae)?Ae.changedTouches[0]??Ae.touches[0]:void 0,Le=(ke==null?void 0:ke.clientX)??Ae.clientX,Fe=(ke==null?void 0:ke.clientY)??Ae.clientY,Ve=this.el.getBoundingClientRect(),Ie=Fe>=Ve.top&&Fe<=Ve.bottom&&Le>=Ve.left&&Le<=Ve.right;return Ae.type.includes("leave")?!Ie:Ie}return!0},bk=new WeakSet,tz=function(){const Ae=mi(this,jp).player.el.querySelectorAll("[data-media-gesture][data-triggered]");return Array.from(Ae).sort((ke,Le)=>+getComputedStyle(Le).zIndex-+getComputedStyle(ke).zIndex)[0]===this.el},xk=new WeakSet,iz=function(Ae,ke){if(!Ae)return;const Le=new DOMEvent("will-trigger",{detail:Ae,cancelable:!0,trigger:ke});if(this.dispatchEvent(Le),Le.defaultPrevented)return;const[Fe,Ve]=Ae.replace(/:([a-z])/,"-$1").split(":");Ae.includes(":fullscreen")?mi(this,jp).remote.toggleFullscreen("prefer-media",ke):Ae.includes("seek:")?mi(this,jp).remote.seek(peek(mi(this,jp).$state.currentTime)+(+Ve||0),ke):mi(this,jp).remote[kebabToCamelCase(Fe)](ke),this.dispatch("trigger",{detail:Ae,trigger:ke})},Mr(Gesture,"props",{disabled:!1,event:void 0,action:void 0});var M1,$g,Fg,Zw,WI;class CaptionsTextRenderer{constructor(_e){Oi(this,Zw);Mr(this,"priority",10);Oi(this,M1,null);Oi(this,$g,void 0);Oi(this,Fg,void 0);Qn(this,$g,_e)}attach(){}canRender(){return!0}detach(){var _e;(_e=mi(this,Fg))==null||_e.abort(),Qn(this,Fg,void 0),mi(this,$g).reset(),Qn(this,M1,null)}changeTrack(_e){var Ae;!_e||mi(this,M1)===_e||((Ae=mi(this,Fg))==null||Ae.abort(),Qn(this,Fg,new EventsController(_e)),_e.readyState<2?(mi(this,$g).reset(),mi(this,Fg).add("load",()=>Bi(this,Zw,WI).call(this,_e),{once:!0})):Bi(this,Zw,WI).call(this,_e),mi(this,Fg).add("add-cue",ke=>{mi(this,$g).addCue(ke.detail)}).add("remove-cue",ke=>{mi(this,$g).removeCue(ke.detail)}),Qn(this,M1,_e))}}M1=new WeakMap,$g=new WeakMap,Fg=new WeakMap,Zw=new WeakSet,WI=function(_e){mi(this,$g).changeTrack({cues:[..._e.cues],regions:[..._e.regions]})};var up,k1,kT,wk,nz,Sk,rz,Tk,sz,Yw,qI,Ek,oz,Ck,az,Ak,lz,Dk,cz,Kw,XI,Mk,uz,kk,dz,zg,Jw,ZI,P1,PT,Qw,YI,eS,KI;const Dm=class Dm extends Component{constructor(){super(...arguments);Oi(this,k1);Oi(this,wk);Oi(this,Sk);Oi(this,Tk);Oi(this,Yw);Oi(this,Ek);Oi(this,Ck);Oi(this,Ak);Oi(this,Dk);Oi(this,Kw);Oi(this,Mk);Oi(this,kk);Oi(this,Jw);Oi(this,P1);Oi(this,Qw);Oi(this,eS);Oi(this,up,void 0);Oi(this,zg,-1)}onSetup(){Qn(this,up,useMediaContext()),this.setAttributes({"aria-hidden":$ariaBool(Bi(this,k1,kT).bind(this))})}onAttach(Ae){Ae.style.setProperty("pointer-events","none")}onConnect(Ae){Dm.lib()||__vitePreload(()=>import("./prod-ff22be83.js").then(ke=>ke.d),[]).then(ke=>Dm.lib.set(ke)),effect(Bi(this,wk,nz).bind(this))}};up=new WeakMap,k1=new WeakSet,kT=function(){const{textTrack:Ae,remotePlaybackState:ke,iOSControl
2385s:Le}=mi(this,up).$state,Fe=Ae();return Le()||ke()==="connected"||!Fe||!isTrackCaptionKind(Fe)},wk=new WeakSet,nz=function(){if(!Dm.lib())return;const{viewType:Ae}=mi(this,up).$state;return Ae()==="audio"?Bi(this,Sk,rz).call(this):Bi(this,Ck,az).call(this)},Sk=new WeakSet,rz=function(){return effect(Bi(this,Tk,sz).bind(this)),Bi(this,Kw,XI).call(this,null),()=>{this.el.textContent=""}},Tk=new WeakSet,sz=function(){if(Bi(this,k1,kT).call(this))return;Bi(this,Yw,qI).call(this);const{textTrack:Ae}=mi(this,up).$state;listenEvent(Ae(),"cue-change",Bi(this,Yw,qI).bind(this)),effect(Bi(this,Ek,oz).bind(this))},Yw=new WeakSet,qI=function(){this.el.textContent="",mi(this,zg)>=0&&Bi(this,P1,PT).call(this);const{realCurrentTime:Ae,textTrack:ke}=mi(this,up).$state,{renderVTTCueString:Le}=Dm.lib(),Fe=peek(Ae),Ve=peek(ke).activeCues;for(const Ie of Ve){const je=Bi(this,Qw,YI).call(this),Ke=Bi(this,eS,KI).call(this);Ke.innerHTML=Le(Ie,Fe),je.append(Ke),this.el.append(Ke)}},Ek=new WeakSet,oz=function(){const{realCurrentTime:Ae}=mi(this,up).$state,{updateTimedVTTCueNodes:ke}=Dm.lib();ke(this.el,Ae())},Ck=new WeakSet,az=function(){const{CaptionsRenderer:Ae}=Dm.lib(),ke=new Ae(this.el),Le=new CaptionsTextRenderer(ke);return mi(this,up).textRenderers.add(Le),effect(Bi(this,Ak,lz).bind(this,ke)),effect(Bi(this,Dk,cz).bind(this,ke)),Bi(this,Kw,XI).call(this,ke),()=>{this.el.textContent="",mi(this,up).textRenderers.remove(Le),ke.destroy()}},Ak=new WeakSet,lz=function(Ae){Ae.dir=this.$props.textDir()},Dk=new WeakSet,cz=function(Ae){var Fe;if(Bi(this,k1,kT).call(this))return;const{realCurrentTime:ke,textTrack:Le}=mi(this,up).$state;Ae.currentTime=ke(),mi(this,zg)>=0&&((Fe=Le())!=null&&Fe.activeCues[0])&&Bi(this,P1,PT).call(this)},Kw=new WeakSet,XI=function(Ae){const ke=mi(this,up).player;if(!ke)return;const Le=Bi(this,Mk,uz).bind(this,Ae);listenEvent(ke,"vds-font-change",Le)},Mk=new WeakSet,uz=function(Ae){var Le;if(mi(this,zg)>=0){Bi(this,Jw,ZI).call(this);return}const{textTrack:ke}=mi(this,up).$state;(Le=ke())!=null&&Le.activeCues[0]?Ae==null||Ae.update(!0):Bi(this,kk,dz).call(this)},kk=new WeakSet,dz=function(){var Le,Fe;const Ae=Bi(this,Qw,YI).call(this);setAttribute(Ae,"data-example","");const ke=Bi(this,eS,KI).call(this);setAttribute(ke,"data-example",""),ke.textContent=this.$props.exampleText(),Ae==null||Ae.append(ke),(Le=this.el)==null||Le.append(Ae),(Fe=this.el)==null||Fe.setAttribute("data-example",""),Bi(this,Jw,ZI).call(this)},zg=new WeakMap,Jw=new WeakSet,ZI=function(){window.clearTimeout(mi(this,zg)),Qn(this,zg,window.setTimeout(Bi(this,P1,PT).bind(this),2500))},P1=new WeakSet,PT=function(){var Ae,ke;(Ae=this.el)==null||Ae.removeAttribute("data-example"),(ke=this.el)!=null&&ke.querySelector("[data-example]")&&(this.el.textContent=""),Qn(this,zg,-1)},Qw=new WeakSet,YI=function(){const Ae=document.createElement("div");return setAttribute(Ae,"data-part","cue-display"),Ae},eS=new WeakSet,KI=function(){const Ae=document.createElement("div");return setAttribute(Ae,"data-part","cue"),Ae},Mr(Dm,"props",{textDir:"ltr",exampleText:"Captions look like this."}),Mr(Dm,"lib",signal(null));let Captions=Dm;const imgTemplate=createTemplate('<img loading="eager" decoding="async" aria-hidden="true">');var Pk,J0,Ik,hz;class MediaThumbnailElement extends Host(HTMLElement,Thumbnail){constructor(){super(...arguments);Oi(this,Ik);Oi(this,Pk,void 0);Oi(this,J0,Bi(this,Ik,hz).call(this))}onSetup(){Qn(this,Pk,useMediaContext()),this.$state.img.set(mi(this,J0))}onConnect(){const{src:Ae,crossOrigin:ke}=this.$state;mi(this,J0).parentNode!==this&&this.prepend(mi(this,J0)),effect(()=>{setAttribute(mi(this,J0),"src",Ae()),setAttribute(mi(this,J0),"crossorigin",ke())})}}Pk=new WeakMap,J0=new WeakMap,Ik=new WeakSet,hz=function(){return cloneTemplateContent(imgTemplate)},Mr(MediaThumbnailElement,"tagName","media-thumbnail"),Mr(MediaThumbnailElement,"attrs",{crossOrigin:"crossorigin"});class MediaTimeElement extends Host(HTMLElement,Time){onConnect(){effect(()=>{this.textContent=this.$state.timeText()})}}Mr(MediaTimeElement,"tagName","media-time");class MediaAirPlayButtonElement extends Host(HTMLElement,AirPlayButton){}Mr(MediaAirPlayButtonElement,"tagName","media-airplay-button");class MediaCaptionButtonElement extends Host(HTMLElement,CaptionButton){}Mr(MediaCaptionButtonElement,"tagName","media-caption-button");class MediaFullscreenButtonElement extends Host(HTMLElement,FullscreenButton){}Mr(MediaFullscreenButtonElement,"tagName","media-fullscreen-button");class MediaLiveButtonElement extends Host(HTMLElement,LiveButton){}Mr(MediaLiveButtonElement,"tagName","media-live-button");class MediaMuteButtonElement extends Host(HTMLElement,MuteButton){}Mr(MediaMuteButtonElement,"tagName","media-mute-button");class MediaPIPButtonElement extends Host(HTMLElement,PIPButton){}Mr(MediaPIPButtonElement,"tagName","media-pip-button");class MediaPlayButtonElement extends Host(HTMLElement,PlayButton){}Mr(MediaPlayButtonElement,"tagName","media-play-button");class MediaSeekButtonElement extends Host(HTMLElement,SeekButton){}Mr(MediaSeekButtonElement,"tagName","media-seek-button");function renderMenuItemsTemplate(De,_e){requestScopedAnimationFrame(()=>{if(!De.connectScope)return;const Ae=De.querySelector("template");Ae&&effect(()=>{const ke=De.getOptions();cloneTemplate(Ae,ke.length,(Le,Fe)=>{const{label:Ve,value:Ie}=ke[Fe],je=Le.querySelector('[data-part="label"]');Le.setAttribute("value",Ie),je&&(isString(Ve)?je.textContent=Ve:effect(()=>{je.textContent=Ve()})),_e==null||_e(Le,ke[Fe],Fe)})})})}class MediaAudioRadioGroupElement extends Host(HTMLElement,AudioRadioGroup){onConnect(){renderMenuItemsTemplate(this)}}Mr(MediaAudioRadioGroupElement,"tagName","media-audio-radio-group");class MediaCaptionsRadioGroupElement extends Host(HTMLElement,CaptionsRadioGroup){onConnect(){renderMenuItemsTemplate(this)}}Mr(MediaCaptionsRadioGroupElement,"tagName","media-captions-radio-group");class MediaMenuElement extends Host(HTMLElement,Menu){}Mr(MediaMenuElement,"tagName","media-menu");class MediaMenuButtonElement extends Host(HTMLElement,MenuButton){}Mr(MediaMenuButtonElement,"tagName","media-menu-button");class MediaMenuItemElement extends Host(HTMLElement,MenuItem){}Mr(MediaMenuItemElement,"tagName","media-menu-item");class MediaMenuItemsElement extends Host(HTMLElement,MenuItems){}Mr(MediaMenuItemsElement,"tagName","media-menu-items");class MediaSpeedRadioGroupElement extends Host(HTMLElement,SpeedRadioGroup){onConnect(){renderMenuItemsTemplate(this)}}Mr(MediaSpeedRadioGroupElement,"tagName","media-speed-radio-group");class MediaQualityRadioGroupElement extends Host(HTMLElement,QualityRadioGroup){onConnect(){renderMenuItemsTemplate(this,(_e,Ae)=>{const ke=Ae.bitrate,Le=_e.querySelector('[data-part="bitrate"]');ke&&Le&&effect(()=>{Le.textContent=ke()||""})})}}Mr(MediaQualityRadioGroupElement,"tagName","media-quality-radio-group");class MediaRadioElement extends Host(HTMLElement,Radio){}Mr(MediaRadioElement,"tagName","media-radio");var tS,iS,Rk,pz;class MediaSliderThumbnailElement extends MediaThumbnailElement{constructor(){super(...arguments);Oi(this,Rk);Oi(this,tS,void 0);Oi(this,iS,void 0)}onSetup(){super.onSetup(),Qn(this,tS,useMediaContext()),Qn(this,iS,useState(Slider.state))}onConnect(){super.onConnect(),effect(Bi(this,Rk,pz).bind(this))}}tS=new WeakMap,iS=new WeakMap,Rk=new WeakSet,pz=function(){const{duration:Ae,clipStartTime:ke}=mi(this,tS).$state;this.time=ke()+mi(this,iS).pointerRate()*Ae()},Mr(MediaSliderThumbnailElement,"tagName","media-slider-thumbnail");class MediaSliderValueElement extends Host(HTMLElement,SliderValue){onConnect(){effect(()=>{this.textContent=this.getValueText()})}}Mr(MediaSliderValueElement,"tagName","media-slider-value"),Mr(MediaSliderValueElement,"attrs",{padMinutes:{converter:BOOLEAN}});class MediaTimeSliderElement extends Host(HTMLElement,TimeSlider){}Mr(MediaTimeSliderElement,"tagName","media-time-slider");class MediaSliderPreviewElement extends Host(HTMLElement,SliderPreview){}Mr(MediaSliderPreviewElement,"tagName","media-slider-preview");class MediaVolumeSliderElement extends Host(HTMLElement,VolumeSlider){}Mr(MediaVolumeSliderElement,"tagName","media-volume-slider");class MediaCaptionsElement extends Host(HTMLElement,Captions){}Mr(MediaCaptionsElement,"tagName","media-captions");class MediaGestureElement extends Host(HTMLElement,Gesture){}Mr(MediaGestureElement,"tagName","media-gesture");class MediaAnnouncerElement extends Host(HTMLElement,MediaAnnouncer){}Mr(MediaAnnouncerElement,"tagName","media-announcer");
2385class MediaControlsElement extends Host(HTMLElement,Controls){}Mr(MediaControlsElement,"tagName","media-controls");class MediaControlsGroupElement extends Host(HTMLElement,ControlsGroup){}Mr(MediaControlsGroupElement,"tagName","media-controls-group");class Title extends Component{}var nS,Ok,fz;class MediaTitleElement extends Host(HTMLElement,Title){constructor(){super(...arguments);Oi(this,Ok);Oi(this,nS,void 0)}onSetup(){Qn(this,nS,useMediaContext())}onConnect(){effect(Bi(this,Ok,fz).bind(this))}}nS=new WeakMap,Ok=new WeakSet,fz=function(){const{title:Ae}=mi(this,nS).$state;this.textContent=Ae()},Mr(MediaTitleElement,"tagName","media-title");class ChapterTitle extends Component{}Mr(ChapterTitle,"props",{defaultText:""});var rS,I1,Lk,mz;class MediaChapterTitleElement extends Host(HTMLElement,ChapterTitle){constructor(){super(...arguments);Oi(this,Lk);Oi(this,rS,void 0);Oi(this,I1,void 0)}onSetup(){Qn(this,rS,useMediaContext()),Qn(this,I1,signal(""))}onConnect(){const Ae=mi(this,rS).textTracks;watchCueTextChange(Ae,"chapters",mi(this,I1).set),effect(Bi(this,Lk,mz).bind(this))}}rS=new WeakMap,I1=new WeakMap,Lk=new WeakSet,mz=function(){const{defaultText:Ae}=this.$props;this.textContent=mi(this,I1).call(this)||Ae()},Mr(MediaChapterTitleElement,"tagName","media-chapter-title");var $k,gz;class Spinner extends Component{constructor(){super(...arguments);Oi(this,$k)}onConnect(Ae){requestScopedAnimationFrame(()=>{if(!this.connectScope)return;const ke=Ae.querySelector("svg"),Le=ke.firstElementChild,Fe=Le.nextElementSibling;effect(Bi(this,$k,gz).bind(this,ke,Le,Fe))})}}$k=new WeakSet,gz=function(Ae,ke,Le){const{size:Fe,trackWidth:Ve,fillPercent:Ie}=this.$props;setAttribute(Ae,"width",Fe()),setAttribute(Ae,"height",Fe()),setAttribute(ke,"stroke-width",Ve()),setAttribute(Le,"stroke-width",Ve()),setAttribute(Le,"stroke-dashoffset",100-Ie())},Mr(Spinner,"props",{size:96,trackWidth:8,fillPercent:50});class MediaSpinnerElement extends Host(LitElement,Spinner){render(){return x$1`
2386      <svg fill="none" viewBox="0 0 120 120" aria-hidden="true" data-part="root">
2387        <circle cx="60" cy="60" r="54" stroke="currentColor" data-part="track"></circle>
2388        <circle
2389          cx="60"
2390          cy="60"
2391          r="54"
2392          stroke="currentColor"
2393          pathLength="100"
2394          stroke-dasharray="100"
2395          data-part="track-fill"
2396        ></circle>
2397      </svg>
2398    `}}Mr(MediaSpinnerElement,"tagName","media-spinner");class MediaLayout extends Component{}Mr(MediaLayout,"props",{when:!1});var sS,Fk,yz;class MediaLayoutElement extends Host(HTMLElement,MediaLayout){constructor(){super(...arguments);Oi(this,Fk);Oi(this,sS,void 0)}onSetup(){Qn(this,sS,useMediaContext())}onConnect(){effect(Bi(this,Fk,yz).bind(this))}}sS=new WeakMap,Fk=new WeakSet,yz=function(){const Ae=this.firstElementChild,ke=(Ae==null?void 0:Ae.localName)==="template",Le=this.$props.when();if(!(isBoolean(Le)?Le:computed(()=>Le(mi(this,sS).player.state))())){ke?(this.textContent="",this.appendChild(Ae)):isHTMLElement(Ae)&&(Ae.style.display="none");return}ke?this.append(Ae.content.cloneNode(!0)):isHTMLElement(Ae)&&(Ae.style.display="")},Mr(MediaLayoutElement,"tagName","media-layout");class MediaGoogleCastButtonElement extends Host(HTMLElement,GoogleCastButton){}Mr(MediaGoogleCastButtonElement,"tagName","media-google-cast-button");class MediaToggleButtonElement extends Host(HTMLElement,ToggleButton){}Mr(MediaToggleButtonElement,"tagName","media-toggle-button");class MediaTooltipElement extends Host(HTMLElement,Tooltip){}Mr(MediaTooltipElement,"tagName","media-tooltip");class MediaTooltipTriggerElement extends Host(HTMLElement,TooltipTrigger){onConnect(){this.style.display="contents"}}Mr(MediaTooltipTriggerElement,"tagName","media-tooltip-trigger");class MediaTooltipContentElement extends Host(HTMLElement,TooltipContent){}Mr(MediaTooltipContentElement,"tagName","media-tooltip-content");class MediaMenuPortalElement extends Host(HTMLElement,MenuPortal){}Mr(MediaMenuPortalElement,"tagName","media-menu-portal"),Mr(MediaMenuPortalElement,"attrs",{disabled:{converter(_e){return isString(_e)?_e:_e!==null}}});
2398class MediaChaptersRadioGroupElement extends Host(HTMLElement,ChaptersRadioGroup){onConnect(){renderMenuItemsTemplate(this,(_e,Ae)=>{const{cue:ke,startTime:Le,duration:Fe}=Ae,Ve=_e.querySelector(".vds-thumbnail,media-thumbnail"),Ie=_e.querySelector('[data-part="start-time"]'),je=_e.querySelector('[data-part="duration"]');Ie&&(Ie.textContent=Le),je&&(je.textContent=Fe),Ve&&(Ve.setAttribute("time",ke.startTime+""),effect(()=>{const Ke=this.$props.thumbnails();"src"in Ve?Ve.src=Ke:isString(Ke)&&Ve.setAttribute("src",Ke)}))})}}Mr(MediaChaptersRadioGroupElement,"tagName","media-chapters-radio-group");class MediaAudioGainRadioGroupElement extends Host(HTMLElement,AudioGainRadioGroup){onConnect(){renderMenuItemsTemplate(this)}}Mr(MediaAudioGainRadioGroupElement,"tagName","media-audio-gain-radio-group");class MediaRadioGroupElement extends Host(HTMLElement,RadioGroup){}Mr(MediaRadioGroupElement,"tagName","media-radio-group");class MediaSliderElement extends Host(HTMLElement,Slider){}Mr(MediaSliderElement,"tagName","media-slider");const videoTemplate=createTemplate('<video muted playsinline preload="none" style="max-width: unset;"></video>');var oS,Bg,zk,vz;class MediaSliderVideoElement extends Host(HTMLElement,SliderVideo){constructor(){super(...arguments);Oi(this,zk);Oi(this,oS,void 0);Oi(this,Bg,Bi(this,zk,vz).call(this))}onSetup(){Qn(this,oS,useMediaContext()),this.$state.video.set(mi(this,Bg))}onConnect(){const{canLoad:Ae}=mi(this,oS).$state,{src:ke,crossOrigin:Le}=this.$state;mi(this,Bg).parentNode!==this&&this.prepend(mi(this,Bg)),effect(()=>{setAttribute(mi(this,Bg),"crossorigin",Le()),setAttribute(mi(this,Bg),"preload",Ae()?"auto":"none"),setAttribute(mi(this,Bg),"src",ke())})}}oS=new WeakMap,Bg=new WeakMap,zk=new WeakSet,vz=function(){return cloneTemplateContent(videoTemplate)},Mr(MediaSliderVideoElement,"tagName","media-slider-video");class MediaAudioGainSliderElement extends Host(HTMLElement,AudioGainSlider){}Mr(MediaAudioGainSliderElement,"tagName","media-audio-gain-slider");class MediaSpeedSliderElement extends Host(HTMLElement,SpeedSlider){}Mr(MediaSpeedSliderElement,"tagName","media-speed-slider");class MediaQualitySliderElement extends Host(HTMLElement,QualitySlider){}Mr(MediaQualitySliderElement,"tagName","media-quality-slider");var R1,Bk,_z;class MediaSliderChaptersElement extends Host(HTMLElement,SliderChapters){constructor(){super(...arguments);Oi(this,Bk);Oi(this,R1,null)}onConnect(){requestScopedAnimationFrame(()=>{if(!this.connectScope)return;const Ae=this.querySelector("template");Ae&&(Qn(this,R1,Ae),effect(Bi(this,Bk,_z).bind(this)))})}}R1=new WeakMap,Bk=new WeakSet,_z=function(){if(!mi(this,R1))return;const Ae=cloneTemplate(mi(this,R1),this.cues.length||1);this.setRefs(Ae)},Mr(MediaSliderChaptersElement,"tagName","media-slider-chapters");class SliderSteps extends Component{}var Ev,Nk,bz;class MediaSliderStepsElement extends Host(HTMLElement,SliderSteps){constructor(){super(...arguments);Oi(this,Nk);Oi(this,Ev,null)}onConnect(Ae){requestScopedAnimationFrame(()=>{this.connectScope&&(Qn(this,Ev,Ae.querySelector("template")),mi(this,Ev)&&effect(Bi(this,Nk,bz).bind(this)))})}}Ev=new WeakMap,Nk=new WeakSet,bz=function(){if(!mi(this,Ev))return;const{min:Ae,max:ke,step:Le}=useState(sliderState),Fe=(ke()-Ae())/Le();cloneTemplate(mi(this,Ev),Math.floor(Fe)+1)},Mr(MediaSliderStepsElement,"tagName","media-slider-steps");var wf,aS,JI,Vk,xz,lS,QI,Hk,wz,Uk,Sz,cS,uS,eR,dS,tR,hS,iR,Gk,Tz,pS,nR,jk,Ez;class Poster extends Component{constructor(){super(...arguments);Oi(this,aS);Oi(this,Vk);Oi(this,lS);Oi(this,Hk);Oi(this,Uk);Oi(this,uS);Oi(this,dS);Oi(this,hS);Oi(this,Gk);Oi(this,pS);Oi(this,jk);Oi(this,wf,void 0);Oi(this,cS,"")}onSetup(){Qn(this,wf,useMediaContext()),Bi(this,uS,eR).call(this),Bi(this,dS,tR).call(this),Bi(this,hS,iR).call(this),Bi(this,lS,QI).call(this)}onAttach(Ae){Ae.style.setProperty("pointer-events","none"),effect(Bi(this,Uk,Sz).bind(this)),effect(Bi(this,uS,eR).bind(this)),effect(Bi(this,dS,tR).bind(this)),effect(Bi(this,hS,iR).bind(this)),effect(Bi(this,lS,QI).bind(this));const{started:ke}=mi(this,wf).$state;this.setAttributes({"data-visible":()=>!ke()&&!this.$state.hidden(),"data-loading":Bi(this,Hk,wz).bind(this),"data-error":Bi(this,aS,JI).bind(this),"data-hidden":this.$state.hidden})}onConnect(Ae){effect(Bi(this,Vk,xz).bind(this)),effect(Bi(this,Gk,Tz).bind(this))}}wf=new WeakMap,aS=new WeakSet,JI=function(){const{error:Ae}=this.$state;return!isNull(Ae())},Vk=new WeakSet,xz=function(){const{canLoadPoster:Ae,poster:ke}=mi(this,wf).$state;!Ae()&&ke()&&preconnect(ke(),"preconnect")},lS=new WeakSet,QI=function(){const{src:Ae}=this.$props,{poster:ke,nativeControls:Le}=mi(this,wf).$state;this.el&&setAttribute(this.el,"display",Le()?"none":null),this.$state.hidden.set(Bi(this,aS,JI).call(this)||!(Ae()||ke())||Le())},Hk=new WeakSet,wz=function(){const{loading:Ae,hidden:ke}=this.$state;return!ke()&&Ae()},Uk=new WeakSet,Sz=function(){const Ae=this.$state.img();Ae&&(new EventsController(Ae).add("load",Bi(this,pS,nR).bind(this)).add("error",Bi(this,jk,Ez).bind(this)),Ae.complete&&Bi(this,pS,nR).call(this))},cS=new WeakMap,uS=new WeakSet,eR=function(){const{poster:Ae}=mi(this,wf).$props,{canLoadPoster:ke,providedPoster:Le,inferredPoster:Fe}=mi(this,wf).$state,Ve=this.$props.src()||"",Ie=Ve||Ae()||Fe();mi(this,cS)===Le()&&Le.set(Ve),this.$state.src.set(ke()&&Ie.length?Ie:null),Qn(this,cS,Ve)},dS=new WeakSet,tR=function(){const{src:Ae}=this.$props,{alt:ke}=this.$state,{poster:Le}=mi(this,wf).$state;ke.set(Ae()||Le()?this.$props.alt():null)},hS=new WeakSet,iR=function(){const{crossOrigin:Ae}=this.$props,{crossOrigin:ke}=this.$state,{crossOrigin:Le,poster:Fe}=mi(this,wf).$state,Ve=Ae()!==null?Ae():Le();ke.set(/ytimg\.com|vimeo/.test(Fe()||"")?null:Ve===!0?"anonymous":Ve)},Gk=new WeakSet,Tz=function(){const{loading:Ae,error:ke}
2398=this.$state,{canLoadPoster:Le,poster:Fe}=mi(this,wf).$state;Ae.set(Le()&&!!Fe()),ke.set(null)},pS=new WeakSet,nR=function(){const{loading:Ae,error:ke}=this.$state;Ae.set(!1),ke.set(null)},jk=new WeakSet,Ez=function(Ae){const{loading:ke,error:Le}=this.$state;ke.set(!1),Le.set(Ae)},Mr(Poster,"props",{src:null,alt:null,crossOrigin:null}),Mr(Poster,"state",new State({img:null,src:null,alt:null,crossOrigin:null,loading:!0,error:null,hidden:!1}));var Gm;class MediaPosterElement extends Host(HTMLElement,Poster){constructor(){super(...arguments);Oi(this,Gm,document.createElement("img"))}onSetup(){this.$state.img.set(mi(this,Gm))}onConnect(){const{src:Ae,alt:ke,crossOrigin:Le}=this.$state;effect(()=>{const{loading:Fe,hidden:Ve}=this.$state;mi(this,Gm).style.display=Fe()||Ve()?"none":""}),effect(()=>{setAttribute(mi(this,Gm),"alt",ke()),setAttribute(mi(this,Gm),"crossorigin",Le()),setAttribute(mi(this,Gm),"src",Ae())}),mi(this,Gm).parentNode!==this&&this.prepend(mi(this,Gm))}}Gm=new WeakMap,Mr(MediaPosterElement,"tagName","media-poster"),Mr(MediaPosterElement,"attrs",{crossOrigin:"crossorigin"});defineCustomElement(MediaLayoutElement);defineCustomElement(MediaControlsElement);defineCustomElement(MediaControlsGroupElement);defineCustomElement(MediaPosterElement);defineCustomElement(MediaAnnouncerElement);defineCustomElement(MediaTooltipElement);defineCustomElement(MediaTooltipTriggerElement);defineCustomElement(MediaTooltipContentElement);defineCustomElement(MediaPlayButtonElement);defineCustomElement(MediaMuteButtonElement);defineCustomElement(MediaCaptionButtonElement);defineCustomElement(MediaFullscreenButtonElement);defineCustomElement(MediaPIPButtonElement);defineCustomElement(MediaSeekButtonElement);defineCustomElement(MediaAirPlayButtonElement);defineCustomElement(MediaGoogleCastButtonElement);defineCustomElement(MediaToggleButtonElement);defineCustomElement(MediaSliderElement);defineCustomElement(MediaAudioGainSliderElement);defineCustomElement(MediaVolumeSliderElement);defineCustomElement(MediaTimeSliderElement);defineCustomElement(MediaSpeedSliderElement);defineCustomElement(MediaQualitySliderElement);defineCustomElement(MediaSliderChaptersElement);defineCustomElement(MediaSliderStepsElement);defineCustomElement(MediaSliderPreviewElement);defineCustomElement(MediaSliderValueElement);defineCustomElement(MediaSliderThumbnailElement);defineCustomElement(MediaSliderVideoElement);defineCustomElement(MediaMenuElement);defineCustomElement(MediaMenuButtonElement);defineCustomElement(MediaMenuPortalElement);defineCustomElement(MediaMenuItemsElement);defineCustomElement(MediaMenuItemElement);defineCustomElement(MediaAudioRadioGroupElement);defineCustomElement(MediaCaptionsRadioGroupElement);defineCustomElement(MediaSpeedRadioGroupElement);defineCustomElement(MediaAudioGainRadioGroupElement);defineCustomElement(MediaQualityRadioGroupElement);defineCustomElement(MediaChaptersRadioGroupElement);defineCustomElement(MediaRadioGroupElement);defineCustomElement(MediaRadioElement);defineCustomElement(MediaGestureElement);defineCustomElement(MediaThumbnailElement);defineCustomElement(MediaCaptionsElement);defineCustomElement(MediaLiveButtonElement);defineCustomElement(MediaTimeElement);defineCustomElement(MediaTitleElement);defineCustomElement(MediaChapterTitleElement);defineCustomElement(MediaSpinnerElement);function video(De={}){return{currentMedia:{},player:null,init:function(){this.player=this.$el.querySelector("media-player"),this.setMedia(De),this.player.addEventListener("pause",(function(){this.currentMedia.playing=!1}).bind(this)),this.player.addEventListener("play",(function(){this.currentMedia.playing=!0}).bind(this))},setAndPlayMedia:function(_e){_e.src!=this.currentMedia.src&&(this.setMedia(_e),this.player.addEventListener("can-play",(function(){this.player.play()}).bind(this)))},setMedia:function(_e){this.currentMedia=_e,this.player=_$3.merge(this.player,_e)}}}module_default$2.data("accordion",accordion);module_default$2.data("calendar",calendar);module_default$2.data("carousel",carousel);module_default$2.data("hero",hero);module_default$2.data("lightbox",lightbox);module_default$2.data("map",map);module_default$2.data("popover",popover);module_default$2.data("video",video);module_default$2.plugin([module_default$1,module_default]);module_default$2.start();
2398export{Icon$105 as $,isMediaStream as A,IS_SAFARI as B,IS_IOS as C,DOMEvent as D,EventsController as E,isHLSSrc as F,isNil as G,getNumberOfDecimalPlaces as H,Icon$24 as I,signal as J,TimeRange as K,ListSymbol as L,deferredPromise as M,isArray as N,isObject as O,isBoolean as P,QualitySymbol as Q,appendParamsToURL as R,canGoogleCastSrc as S,TextTrack as T,Icon$5 as U,Icon$31 as V,Icon$62 as W,Icon$59 as X,Icon$74 as Y,Icon$54 as Z,__vitePreload as _,createTemplate as a,Icon$104 as a0,Icon$26 as a1,Icon$27 as a2,Icon$61 as a3,Icon$60 as a4,Icon$40 as a5,Icon$39 as a6,Icon$81 as a7,Icon$77 as a8,Icon$16 as a9,Icon$88 as aa,Icon$11 as ab,Icon$22 as ac,Icon$0 as ad,Icon$53 as ae,Icon$63 as af,Icon$35 as ag,Icon$34 as ah,Icon$13 as ai,Icon$8 as aj,Icon$19 as ak,Icon$33 as al,Icon$56 as am,keysOf as an,untrack as ao,isString as b,cloneTemplateContent as c,peek as d,effect as e,TextTrackSymbol as f,IS_CHROME as g,isUndefined as h,isHLSSupported as i,coerceToError as j,loadScript as k,listenEvent as l,isFunction as m,camelToKebabCase as n,isDASHSupported as o,preconnect as p,canPlayVideoType as q,canPlayAudioType as r,scoped as s,isNumber as t,canUseVideoPresentation as u,canUsePictureInPicture as v,canPlayHLSNatively as w,onDispose as x,createScope as y,setAttribute as z};

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.