PageSourceSearch

https://www.artisansdelafiction.com/wp-content/themes/les-artisans/library/js/scripts.js

js artisansdelafiction.com collected 2026-10-02 12:32:55 UTC 899,609 bytes, 1 lines download raw bytes

vendor: 5,758 bytes, line 1
1!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(S,t){var e=[],T=S.document,c=e.slice,m=e.concat,s=e.push,n=e.indexOf,i={},r=i.toString,f=i.hasOwnProperty,y={},o="2.2.4",k=function(t,e){return new k.fn.init(t,e)},a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,l=/^-ms-/,u=/-([\da-z])/gi,p=function(t,e){return e.toUpperCase()};function h(t){var e=!!t&&"length"in t&&t.length,i=k.type(t);return"function"!==i&&!k.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}k.fn=k.prototype={jquery:o,constructor:k,selector:"",length:0,toArray:function(){return c.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:c.call(this)},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return k.each(this,t)},map:function(i){return this.pushStack(k.map(this,function(t,e){return i.call(t,e,t)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(0<=i&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:e.sort,splice:e.splice},k.extend=k.fn.extend=function(){var t,e,i,r,n,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||k.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=a[e],a!==(r=t[e])&&(u&&r&&(k.isPlainObject(r)||(n=k.isArray(r)))?(o=n?(n=!1,i&&k.isArray(i)?i:[]):i&&k.isPlainObject(i)?i:{},a[e]=k.extend(u,o,r)):void 0!==r&&(a[e]=r));return a},k.extend({expando:"jQuery"+(o+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===k.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!k.isArray(t)&&0<=e-parseFloat(e)+1},isPlainObject:function(t){var e;if("object"!==k.type(t)||t.nodeType||k.isWindow(t))return!1;if(t.constructor&&!f.call(t,"constructor")&&!f.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||f.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?i[r.call(t)]||"object":typeof t},globalEval:function(t){var e,i=eval;(t=k.trim(t))&&(1===t.indexOf("use strict")?((e=T.createElement("script")).text=t,T.head.appendChild(e).parentNode.removeChild(e)):i(t))},camelCase:function(t){return t.replace(l,"ms-").replace(u,p)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,r=0;if(h(t))for(i=t.length;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(a,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(h(Object(t))?k.merge(i,"string"==typeof t?[t]:t):s.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:n.call(e,t,i)},merge:function(t,e){for(var i=+e.length,r=0,n=t.length;r<i;r++)t[n++]=e[r];return t.length=n,t},grep:function(t,e,i){for(var r=[],n=0,o=t.length,a=!i;n<o;n++)!e(t[n],n)!==a&&r.push(t[n]);return r},map:function(t,e,i){var r,n,o=0,a=[];if(h(t))for(r=t.length;o<r;o++)null!=(n=e(t[o],o,i))&&a.push(n);else for(o in t)null!=(n=e(t[o],o,i))&&a.push(n);return m.apply([],a)},guid:1,proxy:function(t,e){var i,r,n;return"string"==typeof e&&(i=t[e],e=t,t=i),k.isFunction(t)?(r=c.call(arguments,2),(n=function(){return t.apply(e||this,r.concat(c.call(arguments)))}).guid=t.guid=t.guid||k.guid++,n):void 0},now:Date.now,support:y}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=e[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){i["[object "+e+"]"]=e.toLowerCase()});var d=function(i){var t,f,x,o,n,m,p,y,b,l,u,w,S,a,T,v,s,c,g,k="sizzle"+1*new Date,_=i.document,E=0,r=0,h=nt(),d=nt(),C=nt(),A=function(t,e){return t===e&&(u=!0),0},I={}.hasOwnProperty,e=[],z=e.pop,P=e.push,M=e.push,L=e.slice,D=function(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",O="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",F="\\["+B+"*("+O+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+B+"*\\]",U=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",N=new RegExp(B+"+","g"),j=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),V=new RegExp("^"+B+"*,"+B+"*"),q=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),Z=new RegExp("="+B+"*([^\\]'\"]*?)"+B+"*\\]","g"),$=new RegExp(U),H=new RegExp("^"+O+"$"),G={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Q=/'|\\/g,tt=new RegExp("\\\\([\\da-f]{1,6}
1"+B+"?|("+B+")|.)","ig"),et=function(t,e,i){var r="0x"+e-65536;return r!=r||i?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},it=function(){w()};try{M.apply(e=L.call(_.childNodes),_.childNodes),e[_.childNodes.length].nodeType}catch(t){M={apply:e.length?function(t,e){P.apply(t,L.call(e))}:function(t,e){for(var i=t.length,r=0;t[i++]=e[r++];);t.length=i-1}}}function rt(t,e,i,r){var n,o,a,s,l,u,c,p,h=e&&e.ownerDocument,d=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return i;if(!r&&((e?e.ownerDocument||e:_)!==S&&w(e),e=e||S,T)){if(11!==d&&(u=Y.exec(t)))if(n=u[1]){if(9===d){if(!(a=e.getElementById(n)))return i;if(a.id===n)return i.push(a),i}else if(h&&(a=h.getElementById(n))&&g(e,a)&&a.id===n)return i.push(a),i}else{if(u[2])return M.apply(i,e.getElementsByTagName(t)),i;if((n=u[3])&&f.getElementsByClassName&&e.getElementsByClassName)return M.apply(i,e.getElementsByClassName(n)),i}if(f.qsa&&!C[t+" "]&&(!v||!v.test(t))){if(1!==d)h=e,p=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(Q,"\\$&"):e.setAttribute("id",s=k),o=(c=m(t)).length,l=H.test(s)?"#"+s:"[id='"+s+"']";o--;)c[o]=l+" "+ft(c[o]);p=c.join(","),h=J.test(t)&&ht(e.parentNode)||e}if(p)try{return M.apply(i,h.querySelectorAll(p)),i}catch(t){}finally{s===k&&e.removeAttribute("id")}}}return y(t.replace(j,"$1"),e,i,r)}function nt(){var r=[];return function t(e,i){return r.push(e+" ")>x.cacheLength&&delete t[r.shift()],t[e+" "]=i}}function ot(t){return t[k]=!0,t}function at(t){var e=S.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function st(t,e){for(var i=t.split("|"),r=i.length;r--;)x.attrHandle[i[r]]=e}function lt(t,e){var i=e&&t,r=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(r)return r;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ut(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ct(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}function pt(a){return ot(function(o){return o=+o,ot(function(t,e){for(var i,r=a([],t.length,o),n=r.length;n--;)t[i=r[n]]&&(t[i]=!(e[i]=t[i]))})})}function ht(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=rt.support={},n=rt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},w=rt.setDocument=function(t){var e,i,r=t?t.ownerDocument||t:_;return r!==S&&9===r.nodeType&&r.documentElement&&(a=(S=r).documentElement,T=!n(S),(i=S.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",it,!1):i.attachEvent&&i.attachEvent("onunload",it)),f.attributes=at(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=at(function(t){return t.appendChild(S.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=K.test(S.getElementsByClassName),f.getById=at(function(t){return a.appendChild(t).id=k,!S.getElementsByName||!S.getElementsByName(k).length}),f.getById?(x.find.ID=function(t,e){if(void 0!==e.getElementById&&T){var i=e.getElementById(t);return i?[i]:[]}},x.filter.ID=function(t){var e=t.replace(tt,et);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var i=t.replace(tt,et);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===i}}),x.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,r=[],n=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;i=o[n++];)1===i.nodeType&&r.push(i);return r},x.find.CLASS=f.getElementsByClassName&&function(t,e){return void 0!==e.getElementsByClassName&&T?e.getElementsByClassName(t):void 0},s=[],v=[],(f.qsa=K.test(S.querySelectorAll))&&(at(function(t){a.appendChild(t).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+B+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+B+"*(?:value|"+R+")"),t.querySelectorAll("[id~="+k+"-]").length||v.push("~="),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),at(function(t){var e=S.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+B+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")})),(f.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&at(function(t){f.disconnectedMatch=c.call(t,"div"),c.call(t,"[s!='']:x"),s.push("!=",U)}
vendor: 4,860 bytes, line 1
1),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),e=K.test(a.compareDocumentPosition),g=e||K.test(a.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(i.contains?i.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},A=e?function(t,e){if(t===e)return u=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===i?t===S||t.ownerDocument===_&&g(_,t)?-1:e===S||e.ownerDocument===_&&g(_,e)?1:l?D(l,t)-D(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return u=!0,0;var i,r=0,n=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!n||!o)return t===S?-1:e===S?1:n?-1:o?1:l?D(l,t)-D(l,e):0;if(n===o)return lt(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)s.unshift(i);for(;a[r]===s[r];)r++;return r?lt(a[r],s[r]):a[r]===_?-1:s[r]===_?1:0}),S},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==S&&w(t),e=e.replace(Z,"='$1']"),f.matchesSelector&&T&&!C[e+" "]&&(!s||!s.test(e))&&(!v||!v.test(e)))try{var i=c.call(t,e);if(i||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return 0<rt(e,S,null,[t]).length},rt.contains=function(t,e){return(t.ownerDocument||t)!==S&&w(t),g(t,e)},rt.attr=function(t,e){(t.ownerDocument||t)!==S&&w(t);var i=x.attrHandle[e.toLowerCase()],r=i&&I.call(x.attrHandle,e.toLowerCase())?i(t,e,!T):void 0;return void 0!==r?r:f.attributes||!T?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},rt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},rt.uniqueSort=function(t){var e,i=[],r=0,n=0;if(u=!f.detectDuplicates,l=!f.sortStable&&t.slice(0),t.sort(A),u){for(;e=t[n++];)e===t[n]&&(r=i.push(n));for(;r--;)t.splice(i[r],1)}return l=null,t},o=rt.getText=function(t){var e,i="",r=0,n=t.nodeType;if(n){if(1===n||9===n||11===n){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=o(t)}else if(3===n||4===n)return t.nodeValue}else for(;e=t[r++];)i+=o(e);return i},(x=rt.selectors={cacheLength:50,createPseudo:ot,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(tt,et),t[3]=(t[3]||t[4]||t[5]||"").replace(tt,et),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||rt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&rt.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&$.test(i)&&(e=m(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(tt,et).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=h[t+" "];return e||(e=new RegExp("(^|"+B+")"+t+"("+B+"|$)"))&&h(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(i,r,n){return function(t){var e=rt.attr(t,i);return null==e?"!="===r:!r||(e+="","="===r?e===n:"!="===r?e!==n:"^="===r?n&&0===e.indexOf(n):"*="===r?n&&-1<e.indexOf(n):"$="===r?n&&e.slice(-n.length)===n:"~="===r?-1<(" "+e.replace(N," ")+" ").indexOf(n):"|="===r&&(e===n||e.slice(0,n.length+1)===n+"-"))}},CHILD:function(f,t,e,m,y){var v="nth"!==f.slice(0,3),g="last"!==f.slice(-4),_="of-type"===t;return 1===m&&0===y?function(t){return!!t.parentNode}:function(t,e,i){var r,n,o,a,s,l,u=v!==g?"nextSibling":"previousSibling",c=t.parentNode,p=_&&t.nodeName.toLowerCase(),h=!i&&!_,d=!1;if(c){if(v){for(;u;){for(a=t;a=a[u];)if(_?a.nodeName.toLowerCase()===p:1===a.nodeType)return!1;l=u="only"===f&&!l&&"nextSibling"}return!0}if(l=[g?c.firstChild:c.lastChild],g&&h){for(d=(s=(r=(n=(o=(a=c)[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===E&&r[1])&&r[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(d=s=0)||l.pop();)if(1===a.nodeType&&++d&&a===t){n[f]=[E,s,d];break}}else if(h&&(d=s=(r=(n=(o=(a=t)[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===E&&r[1]),!1===d)for(;(a=++s&&a&&a[u]||(d=s=0)||l.pop())&&((_?a.nodeName.toLowerCase()!==p:1!==a.nodeType)||!++d||(h&&((n=(o=a[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[E,d]),a!==t)););return(d-=y)===m||d%m==0&&0<=d/m}}},PSEUDO:function(t,o){var e,a=x.pseudos[t]||x.setFilters[t.toLowerCase()]||rt.error("unsupported pseudo: "+t);
vendor: 64,566 bytes, line 1
1return a[k]?a(o):1<a.length?(e=[t,t,"",o],x.setFilters.hasOwnProperty(t.toLowerCase())?ot(function(t,e){for(var i,r=a(t,o),n=r.length;n--;)t[i=D(t,r[n])]=!(e[i]=r[n])}):function(t){return a(t,0,e)}):a}},pseudos:{not:ot(function(t){var r=[],n=[],s=p(t.replace(j,"$1"));return s[k]?ot(function(t,e,i,r){for(var n,o=s(t,null,r,[]),a=t.length;a--;)(n=o[a])&&(t[a]=!(e[a]=n))}):function(t,e,i){return r[0]=t,s(r,null,i,n),r[0]=null,!n.pop()}}),has:ot(function(e){return function(t){return 0<rt(e,t).length}}),contains:ot(function(e){return e=e.replace(tt,et),function(t){return-1<(t.textContent||t.innerText||o(t)).indexOf(e)}}),lang:ot(function(i){return H.test(i||"")||rt.error("unsupported lang: "+i),i=i.replace(tt,et).toLowerCase(),function(t){var e;do{if(e=T?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===i||0===e.indexOf(i+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===a},focus:function(t){return t===S.activeElement&&(!S.hasFocus||S.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return X.test(t.nodeName)},input:function(t){return W.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:pt(function(){return[0]}),last:pt(function(t,e){return[e-1]}),eq:pt(function(t,e,i){return[i<0?i+e:i]}),even:pt(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:pt(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:pt(function(t,e,i){for(var r=i<0?i+e:i;0<=--r;)t.push(r);return t}),gt:pt(function(t,e,i){for(var r=i<0?i+e:i;++r<e;)t.push(r);return t})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[t]=ut(t);for(t in{submit:!0,reset:!0})x.pseudos[t]=ct(t);function dt(){}function ft(t){for(var e=0,i=t.length,r="";e<i;e++)r+=t[e].value;return r}function mt(s,t,e){var l=t.dir,u=e&&"parentNode"===l,c=r++;return t.first?function(t,e,i){for(;t=t[l];)if(1===t.nodeType||u)return s(t,e,i)}:function(t,e,i){var r,n,o,a=[E,c];if(i){for(;t=t[l];)if((1===t.nodeType||u)&&s(t,e,i))return!0}else for(;t=t[l];)if(1===t.nodeType||u){if((r=(n=(o=t[k]||(t[k]={}))[t.uniqueID]||(o[t.uniqueID]={}))[l])&&r[0]===E&&r[1]===c)return a[2]=r[2];if((n[l]=a)[2]=s(t,e,i))return!0}}}function yt(n){return 1<n.length?function(t,e,i){for(var r=n.length;r--;)if(!n[r](t,e,i))return!1;return!0}:n[0]}function vt(t,e,i,r,n){for(var o,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(o=t[s])&&(i&&!i(o,r,n)||(a.push(o),u&&e.push(s)));return a}function gt(d,f,m,y,v,t){return y&&!y[k]&&(y=gt(y)),v&&!v[k]&&(v=gt(v,t)),ot(function(t,e,i,r){var n,o,a,s=[],l=[],u=e.length,c=t||function(t,e,i){for(var r=0,n=e.length;r<n;r++)rt(t,e[r],i);return i}(f||"*",i.nodeType?[i]:i,[]),p=!d||!t&&f?c:vt(c,s,d,i,r),h=m?v||(t?d:u||y)?[]:e:p;if(m&&m(p,h,i,r),y)for(n=vt(h,l),y(n,[],i,r),o=n.length;o--;)(a=n[o])&&(h[l[o]]=!(p[l[o]]=a));if(t){if(v||d){if(v){for(n=[],o=h.length;o--;)(a=h[o])&&n.push(p[o]=a);v(null,h=[],n,r)}for(o=h.length;o--;)(a=h[o])&&-1<(n=v?D(t,a):s[o])&&(t[n]=!(e[n]=a))}}else h=vt(h===e?h.splice(u,h.length):h),v?v(null,e,h,r):M.apply(e,h)})}function _t(t){for(var n,e,i,r=t.length,o=x.relative[t[0].type],a=o||x.relative[" "],s=o?1:0,l=mt(function(t){return t===n},a,!0),u=mt(function(t){return-1<D(n,t)},a,!0),c=[function(t,e,i){var r=!o&&(i||e!==b)||((n=e).nodeType?l(t,e,i):u(t,e,i));return n=null,r}];s<r;s++)if(e=x.relative[t[s].type])c=[mt(yt(c),e)];else{if((e=x.filter[t[s].type].apply(null,t[s].matches))[k]){for(i=++s;i<r&&!x.relative[t[i].type];i++);return gt(1<s&&yt(c),1<s&&ft(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(j,"$1"),e,s<i&&_t(t.slice(s,i)),i<r&&_t(t=t.slice(i)),i<r&&ft(t))}c.push(e)}return yt(c)}return dt.prototype=x.filters=x.pseudos,x.setFilters=new dt,m=rt.tokenize=function(t,e){var i,r,n,o,a,s,l,u=d[t+" "];if(u)return e?0:u.slice(0);for(a=t,s=[],l=x.preFilter;a;){for(o in i&&!(r=V.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(n=[])),i=!1,(r=q.exec(a))&&(i=r.shift(),n.push({value:i,type:r[0].replace(j," ")}),a=a.slice(i.length)),x.filter)!(r=G[o].exec(a))||l[o]&&!(r=l[o](r))||(i=r.shift(),n.push({value:i,type:o,matches:r}),a=a.slice(i.length));if(!i)break}return e?a.length:a?rt.error(t):d(t,s).slice(0)},p=rt.compile=function(t,e){var i,y,v,g,_,r,n=[],o=[],a=C[t+" "];if(!a){for(e||(e=m(t)),i=e.length;i--;)(a=_t(e[i]))[k]?n.push(a):o.push(a);(a=C(t,(y=o,g=0<(v=n).length,_=0<y.length,r=function(t,e,i,r,n){var o,a,s,l=0,u="0",c=t&&[],p=[],h=b,d=t||_&&x.find.TAG("*",n),f=E+=null==h?1:Math.random()||.1,m=d.length;for(n&&(b=e===S||e||n);u!==m&&null!=(o=d[u]);u++){if(_&&o){for(a=0,e||o.ownerDocument===S||(w(o),i=!T);s=y[a++];)if(s(o,e||S,i)){r.push(o);break}n&&(E=f)}g&&((o=!s&&o)&&l--,t&&c.push(o))}if(l+=u,g&&u!==l){for(a=0;s=v[a++];)s(c,p,e,i);if(t){if(0<l)for(;u--;)c[u]||p[u]||(p[u]=z.call(r));p=vt(p)}M.apply(r,p),n&&!t&&0<p.length&&1<l+v.length&&rt.uniqueSort(r)}return n&&(E=f,b=h),c},g?ot(r):r))).selector=t}return a},y=rt.select=function(t,e,i,r){var n,o,a,s,l,u="function"==typeof t&&t,c=!r&&m(t=u.selector||t);if(i=i||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&f.getById&&9===e.nodeType&&T&&x.relative[o[1].type]){if(!(e=(x.find.ID(a.matches[0].replace(tt,et),e)||[])[0]))return i;u&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(n=G.needsContext.test(t)?0:o.length;n--&&(a=o[n],!x.relative[s=a.type]);)if((l=x.find[s])&&(r=l(a.matches[0].replace(tt,et),J.test(o[0].type)&&ht(e.parentNode)||e))){if(o.splice(n,1),!(t=r.length&&ft(o)))return M.apply(i,r),i;break}}return(u||p(t,c))(r,e,!T,i,!e||J.test(t)&&ht(e.parentNode)||e),i},f.sortStable=k.split("").sort(A).join("")===k,f.detectDuplicates=!!u,w(),f.sortDetached=at(function(t){return 1&t.compareDocumentPosition(S.createElement("div"))}),at(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||st("type|href|height|width",function(t,e,i){return i?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),f.attributes&&at(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||st("value",function(t,e,i){return i||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),at(function(t){return null==t.getAttribute("disabled")})||st(R,function(t,e,i){var r;return i?void 0:!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),rt}(S);k.find=d,k.expr=d.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=d.uniqueSort,k.text=d.getText,k.isXMLDoc=d.isXML,k.contains=d.contains;var v=function(t,e,i){for(var r=[],n=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(n&&k(t).is(i))break;r.push(t)}return r},g=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},_=k.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,b=/^.[^:#\[\.,]*$/;function w(t,i,r){if(k.isFunction(i))return k.grep(t,function(t,e){return!!i.call(t,e,t)!==r});if(i.nodeType)return k.grep(t,function(t){return t===i!==r});if("string"==typeof i){if(b.test(i))return k.filter(i,t,r);i=k.filter(i,t)}return k.grep(t,function(t){return-1<n.call(i,t)!==r})}k.filter=function(t,e,i){var r=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?k.find.matchesSelector(r,t)?[r]:[]:k.find.matches(t,k.grep(e,function(t){return 1===t.nodeType}))},k.fn.extend({find:function(t){var e,i=this.length,r=[],n=this;if("string"!=typeof t)return this.pushStack(k(t).filter(function(){for(e=0;e<i;e++)if(k.contains(n[e],this))return!0}));for(e=0;e<i;e++)k.find(t,n[e],r);return(r=this.pushStack(1<i?k.unique(r):r)).selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(w(this,t||[],!1))},not:function(t){return this.pushStack(w(this,t||[],!0))},is:function(t){return!!w(this,"string"==typeof t&&_.test(t)?k(t):t||[],!1).length}});var E,C=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(k.fn.init=function(t,e,i){var r,n;if(!t)return this;if(i=i||E,"string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):k.isFunction(t)?void 0!==i.ready?i.ready(t):t(k):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),k.makeArray(t,this));if(!(r="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:C.exec(t))||!r[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:T,!0)),x.test(r[1])&&k.isPlainObject(e))for(r in e)k.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(n=T.getElementById(r[2]))&&n.parentNode&&(this.length=1,this[0]=n),this.context=T,this.selector=t,this}).prototype=k.fn,E=k(T);var A=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function z(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e=k(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(k.contains(this,e[t]))return!0})},closest:function(t,e){for(var i,r=0,n=this.length,o=[],a=_.test(t)||"string"!=typeof t?k(t,e||this.context):0;r<n;r++)for(i=this[r];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(a?-1<a.index(i):1===i.nodeType&&k.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(1<o.length?k.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?n.call(k(t),this[0]):n.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return v(t,"parentNode")},parentsUntil:function(t,e,i){return v(t,"parentNode",i)},next:function(t){return z(t,"nextSibling")},prev:function(t){return z(t,"previousSibling")},nextAll:function(t){return v(t,"nextSibling")},prevAll:function(t){return v(t,"previousSibling")},nextUntil:function(t,e,i){return v(t,"nextSibling",i)},prevUntil:function(t,e,i){return v(t,"previousSibling",i)},siblings:function(t){return g((t.parentNode||{}).firstChild,t)},children:function(t){return g(t.firstChild)},contents:function(t){return t.contentDocument||k.merge([],t.childNodes)}},function(r,n){k.fn[r]=function(t,e){var i=k.map(this,n,t);return"Until"!==r.slice(-5)&&(e=t),e&&"string"==typeof e&&(i=k.filter(e,i)),1<this.length&&(I[r]||k.uniqueSort(i),A.test(r)&&i.reverse()),this.pushStack(i)}});var P,M=/\S+/g;function L(){T.removeEventListener("DOMContentLoaded",L),S.removeEventListener("load",L),k.ready()}k.Callbacks=function(r){var t,i;r="string"==typeof r?(t=r,i={},k.each(t.match(M)||[],function(t,e){i[e]=!0}),i):k.extend({},r);var n,e,o,a,s=[],l=[],u=-1,c=function(){for(a=r.once,o=n=!0;l.length;u=-1)for(e=l.shift();++u<s.length;)!1===s[u].apply(e[0],e[1])&&r.stopOnFalse&&(u=s.length,e=!1);r.memory||(e=!1),n=!1,a&&(s=e?[]:"")},p={add:function(){return s&&(e&&!n&&(u=s.length-1,l.push(e)),function i(t){k.each(t,function(t,e){k.isFunction(e)?r.unique&&p.has(e)||s.push(e):e&&e.length&&"string"!==k.type(e)&&i(e)})}(arguments),e&&!n&&c()),this},remove:function(){return k.each(arguments,function(t,e){for(var i;-1<(i=k.inArray(e,s,i));)s.splice(i,1),i<=u&&u--}),this},has:function(t){return t?-1<k.inArray(t,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=l=[],s=e="",this},disabled:function(){return!s},lock:function(){return a=l=[],e||(s=e=""),this},locked:function(){return!!a},fireWith:function(t,e){return a||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),n||c()),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!o}};return p},k.extend({Deferred:function(t){var o=[["resolve","done",k.Callbacks("once memory"),"resolved"],["reject","fail",k.Callbacks("once memory"),"rejected"],["notify","progress",k.Callbacks("memory")]],n="pending",a={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var n=arguments;return k.Deferred(function(r){k.each(o,function(t,e){var i=k.isFunction(n[t])&&n[t];s[e[1]](function(){var t=i&&i.apply(this,arguments);t&&k.isFunction(t.promise)?t.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[e[0]+"With"](this===a?r.promise():this,i?[t]:arguments)})}),n=null}).promise()},promise:function(t){return null!=t?k.extend(t,a):a}},s={};return a.pipe=a.then,k.each(o,function(t,e){var i=e[2],r=e[3];a[e[1]]=i.add,r&&i.add(function(){n=r},o[1^t][2].disable,o[2][2].lock),s[e[0]]=function(){return s[e[0]+"With"](this===s?a:this,arguments),this},s[e[0]+"With"]=i.fireWith}),a.promise(s),t&&t.call(s,s),s},when:function(t){var n,e,i,r=0,o=c.call(arguments),a=o.length,s=1!==a||t&&k.isFunction(t.promise)?a:0,l=1===s?t:k.Deferred(),u=function(e,i,r){return function(t){i[e]=this,r[e]=1<arguments.length?c.call(arguments):t,r===n?l.notifyWith(i,r):--s||l.resolveWith(i,r)}};if(1<a)for(n=new Array(a),e=new Array(a),i=new Array(a);r<a;r++)o[r]&&k.isFunction(o[r].promise)?o[r].promise().progress(u(r,e,n)).done(u(r,i,o)).fail(l.reject):--s;return s||l.resolveWith(i,o),l.promise()}}),k.fn.ready=function(t){return k.ready.promise().done(t),this},k.extend({isReady:!1,readyWait:1,holdReady:function(t){t?k.readyWait++:k.ready(!0)},ready:function(t){(!0===t?--k.readyWait:k.isReady)||((k.isReady=!0)!==t&&0<--k.readyWait||(P.resolveWith(T,[k]),k.fn.triggerHandler&&(k(T).triggerHandler("ready"),k(T).off("ready"))))}}),k.ready.promise=function(t){return P||(P=k.Deferred(),"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?S.setTimeout(k.ready):(T.addEventListener("DOMContentLoaded",L),S.addEventListener("load",L))),P.promise(t)},k.ready.promise();var D=function(t,e,i,r,n,o,a){var s=0,l=t.length,u=null==i;if("object"===k.type(i))for(s in n=!0,i)D(t,e,s,i[s],!0,o,a);else if(void 0!==r&&(n=!0,k.isFunction(r)||(a=!0),u&&(e=a?(e.call(t,r),null):(u=e,function(t,e,i){return u.call(k(t),i)})),e))for(;s<l;s++)e(t[s],i,a?r:r.call(t[s],s,e(t[s],i)));return n?t:u?e.call(t):l?e(t[0],i):o},R=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function B(){this.expando=k.expando+B.uid++}B.uid=1,B.prototype={register:function(t,e){var i=e||{};return t.nodeType?t[this.expando]=i:Object.defineProperty(t,this.expando,{value:i,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!R(t))return{};var e=t[this.expando];return e||(e={},R(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var r,n=this.cache(t);if("string"==typeof e)n[e]=i;else for(r in e)n[r]=e[r];return n},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,i){var r;return void 0===e||e&&"string"==typeof e&&void 0===i?void 0!==(r=this.get(t,e))?r:this.get(t,k.camelCase(e)):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,r,n,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{i=(r=k.isArray(e)?e.concat(e.map(k.camelCase)):(n=k.camelCase(e),e in o?[e,n]:(r=n)in o?[r]:r.match(M)||[])).length;for(;i--;)delete o[r[i]]}(void 0===e||k.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!k.isEmptyObject(e)}};var O=new B,F=new B,U=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/[A-Z]/g;function j(t,e,i){var r;if(void 0===i&&1===t.nodeType)if(r="data-"+e.replace(N,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(r))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:U.test(i)?k.parseJSON(i):i)}catch(t){}F.set(t,e,i)}else i=void 0;return i}k.extend({hasData:function(t){return F.hasData(t)||O.hasData(t)},data:function(t,e,i){return F.access(t,e,i)},removeData:function(t,e){F.remove(t,e)},_data:function(t,e,i){return O.access(t,e,i)},_removeData:function(t,e){O.remove(t,e)}}),k.fn.extend({data:function(r,t){var e,i,n,o=this[0],a=o&&o.attributes;if(void 0!==r)return"object"==typeof r?this.each(function(){F.set(this,r)}):D(this,function(e){var t,i;if(o&&void 0===e){if(void 0!==(t=F.get(o,r)||F.get(o,r.replace(N,"-$&").toLowerCase())))return t;if(i=k.camelCase(r),void 0!==(t=F.get(o,i)))return t;if(void 0!==(t=j(o,i,void 0)))return t}else i=k.camelCase(r),this.each(function(){var t=F.get(this,i);F.set(this,i,e),-1<r.indexOf("-")&&void 0!==t&&F.set(this,r,e)})},null,t,1<arguments.length,null,!0);if(this.length&&(n=F.get(o),1===o.nodeType&&!O.get(o,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&(0===(i=a[e].name).indexOf("data-")&&(i=k.camelCase(i.slice(5)),j(o,i,n[i])));O.set(o,"hasDataAttrs",!0)}return n},removeData:function(t){return this.each(function(){F.remove(this,t)})}}),k.extend({queue:function(t,e,i){var r;return t?(e=(e||"fx")+"queue",r=O.get(t,e),i&&(!r||k.isArray(i)?r=O.access(t,e,k.makeArray(i)):r.push(i)),r||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=k.queue(t,e),r=i.length,n=i.shift(),o=k._queueHooks(t,e);"inprogress"===n&&(n=i.shift(),r--),n&&("fx"===e&&i.unshift("inprogress"),delete o.stop,n.call(t,function(){k.dequeue(t,e)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return O.get(t,i)||O.access(t,i,{empty:k.Callbacks("once memory").add(function(){O.remove(t,[e+"queue",i])})})}}),k.fn.extend({queue:function(e,i){var t=2;return"string"!=typeof e&&(i=e,e="fx",t--),arguments.length<t?k.queue(this[0],e):void 0===i?this:this.each(function(){var t=k.queue(this,e,i);k._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&k.dequeue(this,e)})},dequeue:function(t){return this.each(function(){k.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,r=1,n=k.Deferred(),o=this,a=this.length,s=function(){--r||n.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=O.get(o[a],t+"queueHooks"))&&i.empty&&(r++,i.empty.add(s));return s(),n.promise(e)}});var V=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,q=new RegExp("^(?:([+-])=|)("+V+")([a-z%]*)$","i"),Z=["Top","Right","Bottom","Left"],$=function(t,e){return t=e||t,"none"===k.css(t,"display")||!k.contains(t.ownerDocument,t)};function H(t,e,i,r){var n,o=1,a=20,s=r?function(){return r.cur()}:function(){return k.css(t,e,"")},l=s(),u=i&&i[3]||(k.cssNumber[e]?"":"px"),c=(k.cssNumber[e]||"px"!==u&&+l)&&q.exec(k.css(t,e));if(c&&c[3]!==u)for(u=u||c[3],i=i||[],c=+l||1;c/=o=o||".5",k.style(t,e,c+u),o!==(o=s()/l)&&1!==o&&--a;);return i&&(c=+c||+l||0,n=i[1]?c+(i[1]+1)*i[2]:+i[2],r&&(r.unit=u,r.start=c,r.end=n)),n}var G=/^(?:checkbox|radio)$/i,W=/<([\w:-]+)/,X=/^$|\/(?:java|ecma)script/i,K={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Y(t,e){var i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&k.nodeName(t,e)?k.merge([t],i):i}function J(t,e){for(var i=0,r=t.length;i<r;i++)O.set(t[i],"globalEval",!e||O.get(e[i],"globalEval"))}K.optgroup=K.option,K.tbody=K.tfoot=K.colgroup=K.caption=K.thead,K.th=K.td;var Q,tt,et=/<|&#?\w+;/;function it(t,e,i,r,n){for(var o,a,s,l,u,c,p=e.createDocumentFragment(),h=[],d=0,f=t.length;d<f;d++)if((o=t[d])||0===o)if("object"===k.type(o))k.merge(h,o.nodeType?[o]:o);else if(et.test(o)){for(a=a||p.appendChild(e.createElement("div")),s=(W.exec(o)||["",""])[1].toLowerCase(),l=K[s]||K._default,a.innerHTML=l[1]+k.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;k.merge(h,a.childNodes),(a=p.firstChild).textContent=""}else h.push(e.createTextNode(o));for(p.textContent="",d=0;o=h[d++];)if(r&&-1<k.inArray(o,r))n&&n.push(o);else if(u=k.contains(o.ownerDocument,o),a=Y(p.appendChild(o),"script"),u&&J(a),i)for(c=0;o=a[c++];)X.test(o.type||"")&&i.push(o);return p}Q=T.createDocumentFragment().appendChild(T.createElement("div")),(tt=T.createElement("input")).setAttribute("type","radio"),tt.setAttribute("checked","checked"),tt.setAttribute("name","t"),Q.appendChild(tt),y.checkClone=Q.cloneNode(!0).cloneNode(!0).lastChild.checked,Q.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!Q.cloneNode(!0).lastChild.defaultValue;var rt=/^key/,nt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ot=/^([^.]*)(?:\.(.+)|)/;function at(){return!0}function st(){return!1}function lt(){try{return T.activeElement}catch(t){}}function ut(t,e,i,r,n,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof i&&(r=r||i,i=void 0),e)ut(t,s,i,r,e[s],o);return t}if(null==r&&null==n?(n=i,r=i=void 0):null==n&&("string"==typeof i?(n=r,r=void 0):(n=r,r=i,i=void 0)),!1===n)n=st;else if(!n)return t;return 1===o&&(a=n,(n=function(t){return k().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),t.each(function(){k.event.add(this,e,n,r,i)})}k.event={global:{},add:function(e,t,i,r,n){var o,a,s,l,u,c,p,h,d,f,m,y=O.get(e);if(y)for(i.handler&&(i=(o=i).handler,n=o.selector),i.guid||(i.guid=k.guid++),(l=y.events)||(l=y.events={}),(a=y.handle)||(a=y.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(M)||[""]).length;u--;)d=m=(s=ot.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),d&&(p=k.event.special[d]||{},d=(n?p.delegateType:p.bindType)||d,p=k.event.special[d]||{},c=k.extend({type:d,origType:m,data:r,handler:i,guid:i.guid,selector:n,needsContext:n&&k.expr.match.needsContext.test(n),namespace:f.join(".")},o),(h=l[d])||((h=l[d]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,r,f,a)||e.addEventListener&&e.addEventListener(d,a)),p.add&&(p.add.call(e,c),c.handler.guid||(c.handler.guid=i.guid)),n?h.splice(h.delegateCount++,0,c):h.push(c),k.event.global[d]=!0)},remove:function(t,e,i,r,n){var o,a,s,l,u,c,p,h,d,f,m,y=O.hasData(t)&&O.get(t);if(y&&(l=y.events)){for(u=(e=(e||"").match(M)||[""]).length;u--;)if(d=m=(s=ot.exec(e[u])||[])[1],f=(s[2]||"").split(".").sort(),d){for(p=k.event.special[d]||{},h=l[d=(r?p.delegateType:p.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!n&&m!==c.origType||i&&i.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,p.remove&&p.remove.call(t,c));a&&!h.length&&(p.teardown&&!1!==p.teardown.call(t,f,y.handle)||k.removeEvent(t,d,y.handle),delete l[d])}else for(d in l)k.event.remove(t,d+e[u],i,r,!0);k.isEmptyObject(l)&&O.remove(t,"handle events")}},dispatch:function(t){t=k.event.fix(t);var e,i,r,n,o,a=[],s=c.call(arguments),l=(O.get(this,"events")||{})[t.type]||[],u=k.event.special[t.type]||{};if((s[0]=t).delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,t)){for(a=k.event.handlers.call(this,t,l),e=0;(n=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=n.elem,i=0;(o=n.handlers[i++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(r=((k.event.special[o.origType]||{}).handle||o.handler).apply(n.elem,s))&&!1===(t.result=r)&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,r,n,o,a=[],s=e.delegateCount,l=t.target;if(s&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(r=[],i=0;i<s;i++)void 0===r[n=(o=e[i]).selector+" "]&&(r[n]=o.needsContext?-1<k(n,this).index(l):k.find(n,this,null,[l]).length),r[n]&&r.push(o);r.length&&a.push({elem:l,handlers:r})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,r,n,o=e.button;return null==t.pageX&&null!=e.clientX&&(r=(i=t.target.ownerDocument||T).documentElement,n=i.body,t.pageX=e.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[k.expando])return t;var e,i,r,n=t.type,o=t,a=this.fixHooks[n];for(a||(this.fixHooks[n]=a=nt.test(n)?this.mouseHooks:rt.test(n)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new k.Event(o),e=r.length;e--;)t[i=r[e]]=o[i];return t.target||(t.target=T),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==lt()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===lt()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&k.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return k.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},k.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},k.Event=function(t,e){return this instanceof k.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?at:st):this.type=t,e&&k.extend(this,e),this.timeStamp=t&&t.timeStamp||k.now(),void(this[k.expando]=!0)):new k.Event(t,e)},k.Event.prototype={constructor:k.Event,isDefaultPrevented:st,isPropagationStopped:st,isImmediatePropagationStopped:st,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=at,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=at,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=at,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,n){k.event.special[t]={delegateType:n,bindType:n,handle:function(t){var e,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||k.contains(this,i))||(t.type=r.origType,e=r.handler.apply(this,arguments),t.type=n),e}}}),k.fn.extend({on:function(t,e,i,r){return ut(this,t,e,i,r)},one:function(t,e,i,r){return ut(this,t,e,i,r,1)},off:function(t,e,i){var r,n;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,k(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=st),this.each(function(){k.event.remove(this,t,i,e)});for(n in t)this.off(n,e,t[n]);return this}});var ct=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,pt=/<script|<style|<link/i,ht=/checked\s*(?:[^=]|=\s*.checked.)/i,dt=/^true\/(.*)/,ft=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function mt(t,e){return k.nodeName(t,"table")&&k.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function yt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function vt(t){var e=dt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function gt(t,e){var i,r,n,o,a,s,l,u;if(1===e.nodeType){if(O.hasData(t)&&(o=O.access(t),a=O.set(e,o),u=o.events))for(n in delete a.handle,a.events={},u)for(i=0,r=u[n].length;i<r;i++)k.event.add(e,n,u[n][i]);F.hasData(t)&&(s=F.access(t),l=k.extend({},s),F.set(e,l))}}function _t(i,r,n,o){r=m.apply([],r);var t,e,a,s,l,u,c=0,p=i.length,h=p-1,d=r[0],f=k.isFunction(d);if(f||1<p&&"string"==typeof d&&!y.checkClone&&ht.test(d))return i.each(function(t){var e=i.eq(t);f&&(r[0]=d.call(this,t,e.html())),_t(e,r,n,o)});if(p&&(e=(t=it(r,i[0].ownerDocument,!1,i,o)).firstChild,1===t.childNodes.length&&(t=e),e||o)){for(s=(a=k.map(Y(t,"script"),yt)).length;c<p;c++)l=t,c!==h&&(l=k.clone(l,!0,!0),s&&k.merge(a,Y(l,"script"))),n.call(i[c],l,c);if(s)for(u=a[a.length-1].ownerDocument,k.map(a,vt),c=0;c<s;c++)l=a[c],X.test(l.type||"")&&!O.access(l,"globalEval")&&k.contains(u,l)&&(l.src?k._evalUrl&&k._evalUrl(l.src):k.globalEval(l.textContent.replace(ft,"")))}return i}function xt(t,e,i){for(var r,n=e?k.filter(e,t):t,o=0;null!=(r=n[o]);o++)i||1!==r.nodeType||k.cleanData(Y(r)),r.parentNode&&(i&&k.contains(r.ownerDocument,r)&&J(Y(r,"script")),r.parentNode.removeChild(r));return t}k.extend({htmlPrefilter:function(t){return t.replace(ct,"<$1></$2>")},clone:function(t,e,i){var r,n,o,a,s,l,u,c=t.cloneNode(!0),p=k.contains(t.ownerDocument,t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||k.isXMLDoc(t)))for(a=Y(c),r=0,n=(o=Y(t)).length;r<n;r++)s=o[r],l=a[r],void 0,"input"===(u=l.nodeName.toLowerCase())&&G.test(s.type)?l.checked=s.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=s.defaultValue);if(e)if(i)for(o=o||Y(t),a=a||Y(c),r=0,n=o.length;r<n;r++)gt(o[r],a[r]);else gt(t,c);return 0<(a=Y(c,"script")).length&&J(a,!p&&Y(t,"script")),c},cleanData:function(t){for(var e,i,r,n=k.event.special,o=0;void 0!==(i=t[o]);o++)if(R(i)){if(e=i[O.expando]){if(e.events)for(r in e.events)n[r]?k.event.remove(i,r):k.removeEvent(i,r,e.handle);i[O.expando]=void 0}i[F.expando]&&(i[F.expando]=void 0)}}}),k.fn.extend({domManip:_t,detach:function(t){return xt(this,t,!0)},remove:function(t){return xt(this,t)},text:function(t){return D(this,function(t){return void 0===t?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return _t(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||mt(this,t).appendChild(t)})},prepend:function(){return _t(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=mt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return _t(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return _t(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(Y(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return k.clone(this,t,e)})},html:function(t){return D(this,function(t){var e=this[0]||{},i=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!pt.test(t)&&!K[(W.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;i<r;i++)1===(e=this[i]||{}).nodeType&&(k.cleanData(Y(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var i=[];return _t(this,arguments,function(t){var e=this.parentNode;k.inArray(this,i)<0&&(k.cleanData(Y(this)),e&&e.replaceChild(t,this))},i)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){k.fn[t]=function(t){for(var e,i=[],r=k(t),n=r.length-1,o=0;o<=n;o++)e=o===n?this:this.clone(!0),k(r[o])[a](e),s.apply(i,e.get());return this.pushStack(i)}});var bt,wt={HTML:"block",BODY:"block"};function St(t,e){var i=k(e.createElement(t)).appendTo(e.body),r=k.css(i[0],"display");return i.detach(),r}function Tt(t){var e=T,i=wt[t];return i||("none"!==(i=St(t,e))&&i||((e=(bt=(bt||k("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),i=St(t,e),bt.detach()),wt[t]=i),i}var kt=/^margin/,Et=new RegExp("^("+V+")(?!px)[a-z%]+$","i"),Ct=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=S),e.getComputedStyle(t)},At=function(t,e,i,r){var n,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in n=i.apply(t,r||[]),e)t.style[o]=a[o];return n},It=T.documentElement;function zt(t,e,i){var r,n,o,a,s=t.style;return""!==(a=(i=i||Ct(t))?i.getPropertyValue(e)||i[e]:void 0)&&void 0!==a||k.contains(t.ownerDocument,t)||(a=k.style(t,e)),i&&!y.pixelMarginRight()&&Et.test(a)&&kt.test(e)&&(r=s.width,n=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=i.width,s.width=r,s.minWidth=n,s.maxWidth=o),void 0!==a?a+"":a}function Pt(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}!function(){var e,i,r,n,o=T.createElement("div"),a=T.createElement("div");if(a.style){function t(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",It.appendChild(o);var t=S.getComputedStyle(a);e="1%"!==t.top,n="2px"===t.marginLeft,i="4px"===t.width,a.style.marginRight="50%",r="4px"===t.marginRight,It.removeChild(o)}a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),k.extend(y,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==i&&t(),i},pixelMarginRight:function(){return null==i&&t(),r},reliableMarginLeft:function(){return null==i&&t(),n},reliableMarginRight:function(){var t,e=a.appendChild(T.createElement("div"));return e.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",a.style.width="1px",It.appendChild(o),t=!parseFloat(S.getComputedStyle(e).marginRight),It.removeChild(o),a.removeChild(e),t}})}}();var Mt=/^(none|table(?!-c[ea]).+)/,Lt={position:"absolute",visibility:"hidden",display:"block"},Dt={letterSpacing:"0",fontWeight:"400"},Rt=["Webkit","O","Moz","ms"],Bt=T.createElement("div").style;function Ot(t){if(t in Bt)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=Rt.length;i--;)if((t=Rt[i]+e)in Bt)return t}function Ft(t,e,i){var r=q.exec(e);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):e}function Ut(t,e,i,r,n){for(var o=i===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===i&&(a+=k.css(t,i+Z[o],!0,n)),r?("content"===i&&(a-=k.css(t,"padding"+Z[o],!0,n)),"margin"!==i&&(a-=k.css(t,"border"+Z[o]+"Width",!0,n))):(a+=k.css(t,"padding"+Z[o],!0,n),"padding"!==i&&(a+=k.css(t,"border"+Z[o]+"Width",!0,n)));return a}function Nt(t,e,i){var r=!0,n="width"===e?t.offsetWidth:t.offsetHeight,o=Ct(t),a="border-box"===k.css(t,"boxSizing",!1,o);if(n<=0||null==n){if(((n=zt(t,e,o))<0||null==n)&&(n=t.style[e]),Et.test(n))return n;r=a&&(y.boxSizingReliable()||n===t.style[e]),n=parseFloat(n)||0}return n+Ut(t,e,i||(a?"border":"content"),r,o)+"px"}function jt(t,e){for(var i,r,n,o=[],a=0,s=t.length;a<s;a++)(r=t[a]).style&&(o[a]=O.get(r,"olddisplay"),i=r.style.display,e?(o[a]||"none"!==i||(r.style.display=""),""===r.style.display&&$(r)&&(o[a]=O.access(r,"olddisplay",Tt(r.nodeName)))):(n=$(r),"none"===i&&n||O.set(r,"olddisplay",n?i:k.css(r,"display"))));for(a=0;a<s;a++)(r=t[a]).style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function Vt(t,e,i,r,n){return new Vt.prototype.init(t,e,i,r,n)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=zt(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,i,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var n,o,a,s=k.camelCase(e),l=t.style;return e=k.cssProps[s]||(k.cssProps[s]=Ot(s)||s),a=k.cssHooks[e]||k.cssHooks[s],void 0===i?a&&"get"in a&&void 0!==(n=a.get(t,!1,r))?n:l[e]:("string"===(o=typeof i)&&(n=q.exec(i))&&n[1]&&(i=H(t,e,n),o="number"),void(null!=i&&i==i&&("number"===o&&(i+=n&&n[3]||(k.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(i=a.set(t,i,r))||(l[e]=i))))}},css:function(t,e,i,r){var n,o,a,s=k.camelCase(e);return e=k.cssProps[s]||(k.cssProps[s]=Ot(s)||s),(a=k.cssHooks[e]||k.cssHooks[s])&&"get"in a&&(n=a.get(t,!0,i)),void 0===n&&(n=zt(t,e,r)),"normal"===n&&e in Dt&&(n=Dt[e]),""===i||i?(o=parseFloat(n),!0===i||isFinite(o)?o||0:n):n}}),k.each(["height","width"],function(t,a){k.cssHooks[a]={get:function(t,e,i){return e?Mt.test(k.css(t,"display"))&&0===t.offsetWidth?At(t,Lt,function(){return Nt(t,a,i)}):Nt(t,a,i):void 0},set:function(t,e,i){var r,n=i&&Ct(t),o=i&&Ut(t,a,i,"border-box"===k.css(t,"boxSizing",!1,n),n);return o&&(r=q.exec(e))&&"px"!==(r[3]||"px")&&(t.style[a]=e,e=k.css(t,a)),Ft(0,e,o)}}}),k.cssHooks.marginLeft=Pt(y.reliableMarginLeft,function(t,e){return e?(parseFloat(zt(t,"marginLeft"))||t.getBoundingClientRect().left-At(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px":void 0}),k.cssHooks.marginRight=Pt(y.reliableMarginRight,function(t,e){return e?At(t,{display:"inline-block"},zt,[t,"marginRight"]):void 0}),k.each({margin:"",padding:"",border:"Width"},function(n,o){k.cssHooks[n+o]={expand:function(t){for(var e=0,i={},r="string"==typeof t?t.split(" "):[t];e<4;e++)i[n+Z[e]+o]=r[e]||r[e-2]||r[0];return i}},kt.test(n)||(k.cssHooks[n+o].set=Ft)}),k.fn.extend({css:function(t,e){return D(this,function(t,e,i){var r,n,o={},a=0;if(k.isArray(e)){for(r=Ct(t),n=e.length;a<n;a++)o[e[a]]=k.css(t,e[a],!1,r);return o}return void 0!==i?k.style(t,e,i):k.css(t,e)},t,e,1<arguments.length)},show:function(){return jt(this,!0)},hide:function(){return jt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){$(this)?k(this).show():k(this).hide()})}}),((k.Tween=Vt).prototype={constructor:Vt,init:function(t,e,i,r,n,o){this.elem=t,this.prop=i,this.easing=n||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[i]?"":"px")},cur:function(){var t=Vt.propHooks[this.prop];return t&&t.get?t.get(this):Vt.propHooks._default.get(this)},run:function(t){var e,i=Vt.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Vt.propHooks._default.set(this),this}}).init.prototype=Vt.prototype,(Vt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=k.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[k.cssProps[t.prop]]&&!k.cssHooks[t.prop]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=Vt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=Vt.prototype.init,k.fx.step={};var qt,Zt,$t,Ht,Gt,Wt=/^(?:toggle|show|hide)$/,Xt=/queueHooks$/;function Kt(){return S.setTimeout(function(){qt=void 0}),qt=k.now()}function Yt(t,e){var i,r=0,n={height:t};for(e=e?1:0;r<4;r+=2-e)n["margin"+(i=Z[r])]=n["padding"+i]=t;return e&&(n.opacity=n.width=t),n}function Jt(t,e,i){for(var r,n=(Qt.tweeners[e]||[]).concat(Qt.tweeners["*"]),o=0,a=n.length;o<a;o++)if(r=n[o].call(i,e,t))return r}function Qt(o,t,e){var i,a,r=0,n=Qt.prefilters.length,s=k.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var t=qt||Kt(),e=Math.max(0,u.startTime+u.duration-t),i=1-(e/u.duration||0),r=0,n=u.tweens.length;r<n;r++)u.tweens[r].run(i);return s.notifyWith(o,[u,i,e]),i<1&&n?e:(s.resolveWith(o,[u]),!1)},u=s.promise({elem:o,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},e),originalProperties:t,originalOptions:e,startTime:qt||Kt(),duration:e.duration,tweens:[],createTween:function(t,e){var i=k.Tween(o,u.opts,t,e,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var e=0,i=t?u.tweens.length:0;if(a)return this;for(a=!0;e<i;e++)u.tweens[e].run(1);return t?(s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u,t])):s.rejectWith(o,[u,t]),this}}),c=u.props;for(function(t,e){var i,r,n,o,a;for(i in t)if(n=e[r=k.camelCase(i)],o=t[i],k.isArray(o)&&(n=o[1],o=t[i]=o[0]),i!==r&&(t[r]=o,delete t[i]),(a=k.cssHooks[r])&&"expand"in a)for(i in o=a.expand(o),delete t[r],o)i in t||(t[i]=o[i],e[i]=n);else e[r]=n}(c,u.opts.specialEasing);r<n;r++)if(i=Qt.prefilters[r].call(u,o,c,u.opts))return k.isFunction(i.stop)&&(k._queueHooks(u.elem,u.opts.queue).stop=k.proxy(i.stop,i)),i;return k.map(c,Jt,u),k.isFunction(u.opts.start)&&u.opts.start.call(o,u),k.fx.timer(k.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}k.Animation=k.extend(Qt,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return H(i.elem,t,q.exec(e),i),i}]},tweener:function(t,e){for(var i,r=0,n=(t=k.isFunction(t)?(e=t,["*"]):t.match(M)).length;r<n;r++)i=t[r],Qt.tweeners[i]=Qt.tweeners[i]||[],Qt.tweeners[i].unshift(e)},prefilters:[function(e,t,i){var r,n,o,a,s,l,u,c=this,p={},h=e.style,d=e.nodeType&&$(e),f=O.get(e,"fxshow");for(r in i.queue||(null==(s=k._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,k.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(u=k.css(e,"display"))?O.get(e,"olddisplay")||Tt(e.nodeName):u)&&"none"===k.css(e,"float")&&(h.display="inline-block")),i.overflow&&(h.overflow="hidden",c.always(function(){h.overflow=i.overflow[0],h.overflowX=i.overflow[1],h.overflowY=i.overflow[2]})),t)if(n=t[r],Wt.exec(n)){if(delete t[r],o=o||"toggle"===n,n===(d?"hide":"show")){if("show"!==n||!f||void 0===f[r])continue;d=!0}p[r]=f&&f[r]||k.style(e,r)}else u=void 0;if(k.isEmptyObject(p))"inline"===("none"===u?Tt(e.nodeName):u)&&(h.display=u);else for(r in f?"hidden"in f&&(d=f.hidden):f=O.access(e,"fxshow",{}),o&&(f.hidden=!d),d?k(e).show():c.done(function(){k(e).hide()}),c.done(function(){var t;for(t in O.remove(e,"fxshow"),p)k.style(e,t,p[t])}),p)a=Jt(d?f[r]:0,r,c),r in f||(f[r]=a.start,d&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],prefilter:function(t,e){e?Qt.prefilters.unshift(t):Qt.prefilters.push(t)}}),k.speed=function(t,e,i){var r=t&&"object"==typeof t?k.extend({},t):{complete:i||!i&&e||k.isFunction(t)&&t,duration:t,easing:i&&e||e&&!k.isFunction(e)&&e};return r.duration=k.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in k.fx.speeds?k.fx.speeds[r.duration]:k.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){k.isFunction(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(t,e,i,r){return this.filter($).css("opacity",0).show().end().animate({opacity:e},t,i,r)},animate:function(e,t,i,r){var n=k.isEmptyObject(e),o=k.speed(t,i,r),a=function(){var t=Qt(this,k.extend({},e),o);(n||O.get(this,"finish"))&&t.stop(!0)};return a.finish=a,n||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(n,t,o){var a=function(t){var e=t.stop;delete t.stop,e(o)};return"string"!=typeof n&&(o=t,t=n,n=void 0),t&&!1!==n&&this.queue(n||"fx",[]),this.each(function(){var t=!0,e=null!=n&&n+"queueHooks",i=k.timers,r=O.get(this);if(e)r[e]&&r[e].stop&&a(r[e]);else for(e in r)r[e]&&r[e].stop&&Xt.test(e)&&a(r[e]);for(e=i.length;e--;)i[e].elem!==this||null!=n&&i[e].queue!==n||(i[e].anim.stop(o),t=!1,i.splice(e,1));!t&&o||k.dequeue(this,n)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=O.get(this),i=e[a+"queue"],r=e[a+"queueHooks"],n=k.timers,o=i?i.length:0;for(e.finish=!0,k.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),t=n.length;t--;)n[t].elem===this&&n[t].queue===a&&(n[t].anim.stop(!0),n.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete e.finish})}}),k.each(["toggle","show","hide"],function(t,r){var n=k.fn[r];k.fn[r]=function(t,e,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(Yt(r,!0),t,e,i)}}),k.each({slideDown:Yt("show"),slideUp:Yt("hide"),slideToggle:Yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,r){k.fn[t]=function(t,e,i){return this.animate(r,t,e,i)}}),k.timers=[],k.fx.tick=function(){var t,e=0,i=k.timers;for(qt=k.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||k.fx.stop(),qt=void 0},k.fx.timer=function(t){k.timers.push(t),t()?k.fx.start():k.timers.pop()},k.fx.interval=13,k.fx.start=function(){Zt||(Zt=S.setInterval(k.fx.tick,k.fx.interval))},k.fx.stop=function(){S.clearInterval(Zt),Zt=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(r,t){return r=k.fx&&k.fx.speeds[r]||r,t=t||"fx",this.queue(t,function(t,e){var i=S.setTimeout(t,r);e.stop=function(){S.clearTimeout(i)}})},$t=T.createElement("input"),Ht=T.createElement("select"),Gt=Ht.appendChild(T.createElement("option")),$t.type="checkbox",y.checkOn=""!==$t.value,y.optSelected=Gt.selected,Ht.disabled=!0,y.optDisabled=!Gt.disabled,($t=T.createElement("input")).value="t",$t.type="radio",y.radioValue="t"===$t.value;var te,ee=k.expr.attrHandle;k.fn.extend({attr:function(t,e){return D(this,k.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){k.removeAttr(this,t)})}}),k.extend({attr:function(t,e,i){var r,n,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?k.prop(t,e,i):(1===o&&k.isXMLDoc(t)||(e=e.toLowerCase(),n=k.attrHooks[e]||(k.expr.match.bool.test(e)?te:void 0)),void 0!==i?null===i?void k.removeAttr(t,e):n&&"set"in n&&void 0!==(r=n.set(t,i,e))?r:(t.setAttribute(e,i+""),i):n&&"get"in n&&null!==(r=n.get(t,e))?r:null==(r=k.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!y.radioValue&&"radio"===e&&k.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,r,n=0,o=e&&e.match(M);if(o&&1===t.nodeType)for(;i=o[n++];)r=k.propFix[i]||i,k.expr.match.bool.test(i)&&(t[r]=!1),t.removeAttribute(i)}}),te={set:function(t,e,i){return!1===e?k.removeAttr(t,i):t.setAttribute(i,i),i}},k.each(k.expr.match.bool.source.match(/\w+/g),function(t,e){var o=ee[e]||k.find.attr;ee[e]=function(t,e,i){var r,n;return i||(n=ee[e],ee[e]=r,r=null!=o(t,e,i)?e.toLowerCase():null,ee[e]=n),r}});var ie=/^(?:input|select|textarea|button)$/i,re=/^(?:a|area)$/i;k.fn.extend({prop:function(t,e){return D(this,k.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[k.propFix[t]||t]})}}),k.extend({prop:function(t,e,i){var r,n,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(t)||(e=k.propFix[e]||e,n=k.propHooks[e]),void 0!==i?n&&"set"in n&&void 0!==(r=n.set(t,i,e))?r:t[e]=i:n&&"get"in n&&null!==(r=n.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):ie.test(t.nodeName)||re.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(k.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this});var ne=/[\t\r\n\f]/g;function oe(t){return t.getAttribute&&t.getAttribute("class")||""}k.fn.extend({addClass:function(e){var t,i,r,n,o,a,s,l=0;if(k.isFunction(e))return this.each(function(t){k(this).addClass(e.call(this,t,oe(this)))});if("string"==typeof e&&e)for(t=e.match(M)||[];i=this[l++];)if(n=oe(i),r=1===i.nodeType&&(" "+n+" ").replace(ne," ")){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");n!==(s=k.trim(r))&&i.setAttribute("class",s)}return this},removeClass:function(e){var t,i,r,n,o,a,s,l=0;if(k.isFunction(e))return this.each(function(t){k(this).removeClass(e.call(this,t,oe(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(M)||[];i=this[l++];)if(n=oe(i),r=1===i.nodeType&&(" "+n+" ").replace(ne," ")){for(a=0;o=t[a++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");n!==(s=k.trim(r))&&i.setAttribute("class",s)}return this},toggleClass:function(n,e){var o=typeof n;return"boolean"==typeof e&&"string"===o?e?this.addClass(n):this.removeClass(n):k.isFunction(n)?this.each(function(t){k(this).toggleClass(n.call(this,t,oe(this),e),e)}):this.each(function(){var t,e,i,r;if("string"===o)for(e=0,i=k(this),r=n.match(M)||[];t=r[e++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==n&&"boolean"!==o||((t=oe(this))&&O.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===n?"":O.get(this,"__className__")||""))})},hasClass:function(t){var e,i,r=0;for(e=" "+t+" ";i=this[r++];)if(1===i.nodeType&&-1<(" "+oe(i)+" ").replace(ne," ").indexOf(e))return!0;return!1}});var ae=/\r/g,se=/[\x20\t\r\n\f]+/g;k.fn.extend({val:function(i){var r,t,n,e=this[0];return arguments.length?(n=k.isFunction(i),this.each(function(t){var e;1===this.nodeType&&(null==(e=n?i.call(this,t,k(this).val()):i)?e="":"number"==typeof e?e+="":k.isArray(e)&&(e=k.map(e,function(t){return null==t?"":t+""})),(r=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,e,"value")||(this.value=e))})):e?(r=k.valHooks[e.type]||k.valHooks[e.nodeName.toLowerCase()])&&"get"in r&&void 0!==(t=r.get(e,"value"))?t:"string"==typeof(t=e.value)?t.replace(ae,""):null==t?"":t:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:k.trim(k.text(t)).replace(se," ")}},select:{get:function(t){for(var e,i,r=t.options,n=t.selectedIndex,o="select-one"===t.type||n<0,a=o?null:[],s=o?n+1:r.length,l=n<0?s:o?n:0;l<s;l++)if(((i=r[l]).selected||l===n)&&(y.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!k.nodeName(i.parentNode,"optgroup"))){if(e=k(i).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var i,r,n=t.options,o=k.makeArray(e),a=n.length;a--;)((r=n[a]).selected=-1<k.inArray(k.valHooks.option.get(r),o))&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(t,e){return k.isArray(e)?t.checked=-1<k.inArray(k(t).val(),e):void 0}},y.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var le=/^(?:focusinfocus|focusoutblur)$/;k.extend(k.event,{trigger:function(t,e,i,r){var n,o,a,s,l,u,c,p=[i||T],h=f.call(t,"type")?t.type:t,d=f.call(t,"namespace")?t.namespace.split("."):[];if(o=a=i=i||T,3!==i.nodeType&&8!==i.nodeType&&!le.test(h+k.event.triggered)&&(-1<h.indexOf(".")&&(h=(d=h.split(".")).shift(),d.sort()),l=h.indexOf(":")<0&&"on"+h,(t=t[k.expando]?t:new k.Event(h,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=d.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:k.makeArray(e,[t]),c=k.event.special[h]||{},r||!c.trigger||!1!==c.trigger.apply(i,e))){if(!r&&!c.noBubble&&!k.isWindow(i)){for(s=c.delegateType||h,le.test(s+h)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(i.ownerDocument||T)&&p.push(a.defaultView||a.parentWindow||S)}for(n=0;(o=p[n++])&&!t.isPropagationStopped();)t.type=1<n?s:c.bindType||h,(u=(O.get(o,"events")||{})[t.type]&&O.get(o,"handle"))&&u.apply(o,e),(u=l&&o[l])&&u.apply&&R(o)&&(t.result=u.apply(o,e),!1===t.result&&t.preventDefault());return t.type=h,r||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),e)||!R(i)||l&&k.isFunction(i[h])&&!k.isWindow(i)&&((a=i[l])&&(i[l]=null),i[k.event.triggered=h](),k.event.triggered=void 0,a&&(i[l]=a)),t.result}},simulate:function(t,e,i){var r=k.extend(new k.Event,i,{type:t,isSimulated:!0});k.event.trigger(r,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each(function(){k.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];return i?k.event.trigger(t,e,i,!0):void 0}}),k.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,i){k.fn[i]=function(t,e){return 0<arguments.length?this.on(i,null,t,e):this.trigger(i)}}),k.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),y.focusin="onfocusin"in S,y.focusin||k.each({focus:"focusin",blur:"focusout"},function(i,r){var n=function(t){k.event.simulate(r,t.target,k.event.fix(t))};k.event.special[r]={setup:function(){var t=this.ownerDocument||this,e=O.access(t,r);e||t.addEventListener(i,n,!0),O.access(t,r,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=O.access(t,r)-1;e?O.access(t,r,e):(t.removeEventListener(i,n,!0),O.remove(t,r))}}});var ue=S.location,ce=k.now(),pe=/\?/;k.parseJSON=function(t){return JSON.parse(t+"")},k.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new S.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+t),e};var he=/#.*$/,de=/([?&])_=[^&]*/,fe=/^(.*?):[ \t]*([^\r\n]*)$/gm,me=/^(?:GET|HEAD)$/,ye=/^\/\//,ve={},ge={},_e="*/".concat("*"),xe=T.createElement("a");function be(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,r=0,n=t.toLowerCase().match(M)||[];if(k.isFunction(e))for(;i=n[r++];)"+"===i[0]?(i=i.slice(1)||"*",(o[i]=o[i]||[]).unshift(e)):(o[i]=o[i]||[]).push(e)}}function we(e,n,o,a){var s={},l=e===ge;function u(t){var r;return s[t]=!0,k.each(e[t]||[],function(t,e){var i=e(n,o,a);return"string"!=typeof i||l||s[i]?l?!(r=i):void 0:(n.dataTypes.unshift(i),u(i),!1)}),r}return u(n.dataTypes[0])||!s["*"]&&u("*")}function Se(t,e){var i,r,n=k.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((n[i]?t:r||(r={}))[i]=e[i]);return r&&k.extend(!0,t,r),t}xe.href=ue.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ue.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ue.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":_e,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":k.parseJSON,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Se(Se(t,k.ajaxSettings),e):Se(k.ajaxSettings,t)},ajaxPrefilter:be(ve),ajaxTransport:be(ge),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var c,p,h,i,d,r,f,n,m=k.ajaxSetup({},e),y=m.context||m,v=m.context&&(y.nodeType||y.jquery)?k(y):k.event,g=k.Deferred(),_=k.Callbacks("once memory"),x=m.statusCode||{},o={},a={},b=0,s="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!i)for(i={};e=fe.exec(h);)i[e[1].toLowerCase()]=e[2];e=i[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?h:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return b||(t=a[i]=a[i]||t,o[t]=e),this},overrideMimeType:function(t){return b||(m.mimeType=t),this},statusCode:function(t){var e;if(t)if(b<2)for(e in t)x[e]=[x[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||s;return c&&c.abort(e),l(0,e),this}};if(g.promise(w).complete=_.add,w.success=w.done,w.error=w.fail,m.url=((t||m.url||ue.href)+"").replace(he,"").replace(ye,ue.protocol+"//"),m.type=e.method||e.type||m.method||m.type,m.dataTypes=k.trim(m.dataType||"*").toLowerCase().match(M)||[""],null==m.crossDomain){r=T.createElement("a");try{r.href=m.url,r.href=r.href,m.crossDomain=xe.protocol+"//"+xe.host!=r.protocol+"//"+r.host}catch(t){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=k.param(m.data,m.traditional)),we(ve,m,e,w),2===b)return w;for(n in(f=k.event&&m.global)&&0==k.active++&&k.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!me.test(m.type),p=m.url,m.hasContent||(m.data&&(p=m.url+=(pe.test(p)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=de.test(p)?p.replace(de,"$1_="+ce++):p+(pe.test(p)?"&":"?")+"_="+ce++)),m.ifModified&&(k.lastModified[p]&&w.setRequestHeader("If-Modified-Since",k.lastModified[p]),k.etag[p]&&w.setRequestHeader("If-None-Match",k.etag[p])),(m.data&&m.hasContent&&!1!==m.contentType||e.contentType)&&w.setRequestHeader("Content-Type",m.contentType),w.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+_e+"; q=0.01":""):m.accepts["*"]),m.headers)w.setRequestHeader(n,m.headers[n]);if(m.beforeSend&&(!1===m.beforeSend.call(y,w,m)||2===b))return w.abort();for(n in s="abort",{success:1,error:1,complete:1})w[n](m[n]);if(c=we(ge,m,e,w)){if(w.readyState=1,f&&v.trigger("ajaxSend",[w,m]),2===b)return w;m.async&&0<m.timeout&&(d=S.setTimeout(function(){w.abort("timeout")},m.timeout));try{b=1,c.send(o,l)}catch(t){if(!(b<2))throw t;l(-1,t)}}else l(-1,"No Transport");function l(t,e,i,r){var n,o,a,s,l,u=e;2!==b&&(b=2,d&&S.clearTimeout(d),c=void 0,h=r||"",w.readyState=0<t?4:0,n=200<=t&&t<300||304===t,i&&(s=function(t,e,i){for(var r,n,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(n in s)if(s[n]&&s[n].test(r)){l.unshift(n);break}if(l[0]in i)o=l[0];else{for(n in i){if(!l[0]||t.converters[n+" "+l[0]]){o=n;break}a||(a=n)}o=o||a}return o?(o!==l[0]&&l.unshift(o),i[o]):void 0}(m,w,i)),s=function(t,e,i,r){var n,o,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(n in u)if((s=n.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[n]:!0!==u[n]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(m,s,w,n),n?(m.ifModified&&((l=w.getResponseHeader("Last-Modified"))&&(k.lastModified[p]=l),(l=w.getResponseHeader("etag"))&&(k.etag[p]=l)),204===t||"HEAD"===m.type?u="nocontent":304===t?u="notmodified":(u=s.state,o=s.data,n=!(a=s.error))):(a=u,!t&&u||(u="error",t<0&&(t=0))),w.status=t,w.statusText=(e||u)+"",n?g.resolveWith(y,[o,u,w]):g.rejectWith(y,[w,u,a]),w.statusCode(x),x=void 0,f&&v.trigger(n?"ajaxSuccess":"ajaxError",[w,m,n?o:a]),_.fireWith(y,[w,u]),f&&(v.trigger("ajaxComplete",[w,m]),--k.active||k.event.trigger("ajaxStop")))}return w},getJSON:function(t,e,i){return k.get(t,e,i,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],function(t,n){k[n]=function(t,e,i,r){return k.isFunction(e)&&(r=r||i,i=e,e=void 0),k.ajax(k.extend({url:t,type:n,dataType:r,data:e,success:i},k.isPlainObject(t)&&t))}}),k._evalUrl=function(t){return k.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},k.fn.extend({wrapAll:function(e){var t;return k.isFunction(e)?this.each(function(t){k(this).wrapAll(e.call(this,t))}):(this[0]&&(t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(i){return k.isFunction(i)?this.each(function(t){k(this).wrapInner(i.call(this,t))}):this.each(function(){var t=k(this),e=t.contents();e.length?e.wrapAll(i):t.append(i)})},wrap:function(e){var i=k.isFunction(e);return this.each(function(t){k(this).wrapAll(i?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){k.nodeName(this,"body")||k(this).replaceWith(this.childNodes)}).end()}}),k.expr.filters.hidden=function(t){return!k.expr.filters.visible(t)},k.expr.filters.visible=function(t){return 0<t.offsetWidth||0<t.offsetHeight||0<t.getClientRects().length};var Te=/%20/g,ke=/\[\]$/,Ee=/\r?\n/g,Ce=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;function Ie(i,t,r,n){var e;if(k.isArray(t))k.each(t,function(t,e){r||ke.test(i)?n(i,e):Ie(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,r,n)});else if(r||"object"!==k.type(t))n(i,t);else for(e in t)Ie(i+"["+e+"]",t[e],r,n)}k.param=function(t,e){var i,r=[],n=function(t,e){e=k.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=k.ajaxSettings&&k.ajaxSettings.traditional),k.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,function(){n(this.name,this.value)});else for(i in t)Ie(i,t[i],e,n);return r.join("&").replace(Te,"+")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&Ae.test(this.nodeName)&&!Ce.test(t)&&(this.checked||!G.test(t))}).map(function(t,e){var i=k(this).val();return null==i?null:k.isArray(i)?k.map(i,function(t){return{name:e.name,value:t.replace(Ee,"\r\n")}}):{name:e.name,value:i.replace(Ee,"\r\n")}}).get()}}),k.ajaxSettings.xhr=function(){try{return new S.XMLHttpRequest}catch(t){}};var ze={0:200,1223:204},Pe=k.ajaxSettings.xhr();y.cors=!!Pe&&"withCredentials"in Pe,y.ajax=Pe=!!Pe,k.ajaxTransport(function(n){var o,a;return y.cors||Pe&&!n.crossDomain?{send:function(t,e){var i,r=n.xhr();if(r.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(i in n.xhrFields)r[i]=n.xhrFields[i];for(i in n.mimeType&&r.overrideMimeType&&r.overrideMimeType(n.mimeType),n.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)r.setRequestHeader(i,t[i]);o=function(t){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.onreadystatechange=null,"abort"===t?r.abort():"error"===t?"number"!=typeof r.status?e(0,"error"):e(r.status,r.statusText):e(ze[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&S.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(n.hasContent&&n.data||null)}catch(t){if(o)throw t}},abort:function(){o&&o()}}:void 0}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),k.ajaxTransport("script",function(i){var r,n;if(i.crossDomain)return{send:function(t,e){r=k("<script>
1").prop({charset:i.scriptCharset,src:i.url}).on("load error",n=function(t){r.remove(),n=null,t&&e("error"===t.type?404:200,t.type)}),T.head.appendChild(r[0])},abort:function(){n&&n()}}});var Me=[],Le=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Me.pop()||k.expando+"_"+ce++;return this[t]=!0,t}}),k.ajaxPrefilter("json jsonp",function(t,e,i){var r,n,o,a=!1!==t.jsonp&&(Le.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Le.test(t.data)&&"data");return a||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=k.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Le,"$1"+r):!1!==t.jsonp&&(t.url+=(pe.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},t.dataTypes[0]="json",n=S[r],S[r]=function(){o=arguments},i.always(function(){void 0===n?k(S).removeProp(r):S[r]=n,t[r]&&(t.jsonpCallback=e.jsonpCallback,Me.push(r)),o&&k.isFunction(n)&&n(o[0]),o=n=void 0}),"script"):void 0}),k.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||T;var r=x.exec(t),n=!i&&[];return r?[e.createElement(r[1])]:(r=it([t],e,n),n&&n.length&&k(n).remove(),k.merge([],r.childNodes))};var De=k.fn.load;function Re(t){return k.isWindow(t)?t:9===t.nodeType&&t.defaultView}k.fn.load=function(t,e,i){if("string"!=typeof t&&De)return De.apply(this,arguments);var r,n,o,a=this,s=t.indexOf(" ");return-1<s&&(r=k.trim(t.slice(s)),t=t.slice(0,s)),k.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(n="POST"),0<a.length&&k.ajax({url:t,type:n||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?k("<div>").append(k.parseHTML(t)).find(r):t)}).always(i&&function(t,e){a.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){k.fn[e]=function(t){return this.on(e,t)}}),k.expr.filters.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(t,e,i){var r,n,o,a,s,l,u=k.css(t,"position"),c=k(t),p={};"static"===u&&(t.style.position="relative"),s=c.offset(),o=k.css(t,"top"),l=k.css(t,"left"),n=("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(a=(r=c.position()).top,r.left):(a=parseFloat(o)||0,parseFloat(l)||0),k.isFunction(e)&&(e=e.call(t,i,k.extend({},s))),null!=e.top&&(p.top=e.top-s.top+a),null!=e.left&&(p.left=e.left-s.left+n),"using"in e?e.using.call(t,p):c.css(p)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)});var t,i,r=this[0],n={top:0,left:0},o=r&&r.ownerDocument;return o?(t=o.documentElement,k.contains(t,r)?(n=r.getBoundingClientRect(),i=Re(o),{top:n.top+i.pageYOffset-t.clientTop,left:n.left+i.pageXOffset-t.clientLeft}):n):void 0},position:function(){if(this[0]){var t,e,i=this[0],r={top:0,left:0};return"fixed"===k.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),k.nodeName(t[0],"html")||(r=t.offset()),r.top+=k.css(t[0],"borderTopWidth",!0),r.left+=k.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-k.css(i,"marginTop",!0),left:e.left-r.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===k.css(t,"position");)t=t.offsetParent;return t||It})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var o="pageYOffset"===n;k.fn[e]=function(t){return D(this,function(t,e,i){var r=Re(t);return void 0===i?r?r[n]:t[e]:void(r?r.scrollTo(o?r.pageXOffset:i,o?i:r.pageYOffset):t[e]=i)},e,t,arguments.length)}}),k.each(["top","left"],function(t,i){k.cssHooks[i]=Pt(y.pixelPosition,function(t,e){return e?(e=zt(t,i),Et.test(e)?k(t).position()[i]+"px":e):void 0})}),k.each({Height:"height",Width:"width"},function(o,a){k.each({padding:"inner"+o,content:a,"":"outer"+o},function(r,t){k.fn[t]=function(t,e){var i=arguments.length&&(r||"boolean"!=typeof t),n=r||(!0===t||!0===e?"margin":"border");
1return D(this,function(t,e,i){var r;return k.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+o],r["scroll"+o],t.body["offset"+o],r["offset"+o],r["client"+o])):void 0===i?k.css(t,e,n):k.style(t,e,i,n)},a,i?t:void 0,i,null)}})}),k.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,r){return this.on(e,t,i,r)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},size:function(){return this.length}}),k.fn.andSelf=k.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var Be=S.jQuery,Oe=S.$;return k.noConflict=function(t){return S.$===k&&(S.$=Oe),t&&S.jQuery===k&&(S.jQuery=Be),k},t||(S.jQuery=S.$=k),k}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).LazyLoad=e()}(this,function(){"use strict";function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var l="undefined"!=typeof window,u=l&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),c=l&&"IntersectionObserver"in window,i=l&&"classList"in document.createElement("p"),k=l&&1<window.devicePixelRatio,r={elements_selector:".lazy",container:u||l?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1},p=function(t){return e({},r,t)},n=function(t,e){var i,r="LazyLoad::Initialized",n=new t(e);try{i=new CustomEvent(r,{detail:{instance:n}})}catch(t){(i=document.createEvent("CustomEvent")).initCustomEvent(r,!1,!1,{instance:n})}window.dispatchEvent(i)},b="loading",E="applied",h="error",C=function(t,e){return t.getAttribute("data-"+e)},w=function(t){return C(t,"ll-status")},A=function(t,e){return i=t,n="data-ll-status",void(null!==(r=e)?i.setAttribute(n,r):i.removeAttribute(n));var i,r,n},S=function(t){return A(t,null)},T=function(t){return null===w(t)},d=function(t){return"native"===w(t)},I=[b,"loaded",E,h],z=function(t,e,i,r){t&&(void 0===r?void 0===i?t(e):t(e,i):t(e,i,r))},P=function(t,e){i?t.classList.add(e):t.className+=(t.className?" ":"")+e},M=function(t,e){i?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},L=function(t){return t.llTempImage},D=function(t,e){if(e){var i=e._observer;i&&i.unobserve(t)}},R=function(t,e){t&&(t.loadingCount+=e)},f=function(t,e){t&&(t.toLoadCount=e)},o=function(t){for(var e,i=[],r=0;e=t.children[r];r+=1)"SOURCE"===e.tagName&&i.push(e);return i},a=function(t,e,i){i&&t.setAttribute(e,i)},s=function(t,e){t.removeAttribute(e)},m=function(t){return!!t.llOriginalAttrs},y=function(t){if(!m(t)){var e={};e.src=t.getAttribute("src"),e.srcset=t.getAttribute("srcset"),e.sizes=t.getAttribute("sizes"),t.llOriginalAttrs=e}},B=function(t){if(m(t)){var e=t.llOriginalAttrs;a(t,"src",e.src),a(t,"srcset",e.srcset),a(t,"sizes",e.sizes)}},v=function(t,e){a(t,"sizes",C(t,e.data_sizes)),a(t,"srcset",C(t,e.data_srcset)),a(t,"src",C(t,e.data_src))},O=function(t){s(t,"src"),s(t,"srcset"),s(t,"sizes")},F=function(t,e){var i=t.parentNode;
1i&&"PICTURE"===i.tagName&&o(i).forEach(e)},g={IMG:function(t,e){F(t,function(t){y(t),v(t,e)}),y(t),v(t,e)},IFRAME:function(t,e){a(t,"src",C(t,e.data_src))},VIDEO:function(t,e){o(t).forEach(function(t){a(t,"src",C(t,e.data_src))}),a(t,"poster",C(t,e.data_poster)),a(t,"src",C(t,e.data_src)),t.load()}},U=function(t,e){var i=g[t.tagName];i&&i(t,e)},N=function(t,e,i){R(i,1),P(t,e.class_loading),A(t,b),z(e.callback_loading,t,i)},j=["IMG","IFRAME","VIDEO"],_=function(t,e){!e||0<e.loadingCount||0<e.toLoadCount||z(t.callback_finish,e)},x=function(t,e,i){t.addEventListener(e,i),t.llEvLisnrs[e]=i},V=function(t){return!!t.llEvLisnrs},q=function(t){if(V(t)){var e=t.llEvLisnrs;for(var i in e){var r=e[i];n=i,o=r,t.removeEventListener(n,o)}delete t.llEvLisnrs}var n,o},Z=function(t,e,i){delete t.llTempImage,R(i,-1),i&&(i.toLoadCount-=1),M(t,e.class_loading),e.unobserve_completed&&D(t,i)},$=function(o,a,s){var l=L(o)||o;V(l)||function(t,e,i){V(t)||(t.llEvLisnrs={});var r="VIDEO"===t.tagName?"loadeddata":"load";x(t,r,function(t){e=o,i=a,r=s,n=d(e),Z(e,i,r),P(e,i.class_loaded),A(e,"loaded"),z(i.callback_loaded,e,r),n||_(i,r),q(l);var e,i,r,n}),x(t,"error",function(t){e=o,i=a,r=s,n=d(e),Z(e,i,r),P(e,i.class_error),A(e,h),z(i.callback_error,e,r),n||_(i,r),q(l);var e,i,r,n})}(l)},H=function(t,e,i){var r,n,o,a,s,l,u,c,p,h,d,f,m,y,v,g,_,x,b,w,S,T;T=t,-1<j.indexOf(T.tagName)?($(r=t,n=e,o=i),U(r,n),N(r,n,o)):(s=e,l=i,(a=t).llTempImage=document.createElement("IMG"),$(a,s,l),x=l,b=C(g=a,(_=s).data_bg),w=C(g,_.data_bg_hidpi),(S=k&&w?w:b)&&(g.style.backgroundImage='url("'.concat(S,'")'),L(g).setAttribute("src",S),N(g,_,x)),p=l,m=C(u=a,(c=s).data_bg_multi),y=C(u,c.data_bg_multi_hidpi),(v=k&&y?y:m)&&(u.style.backgroundImage=v,f=p,P(h=u,(d=c).class_applied),A(h,E),d.unobserve_completed&&D(h,d),z(d.callback_applied,h,f)))},G=["IMG","IFRAME"],W=function(t){return t.use_native&&"loading"in HTMLImageElement.prototype},X=function(t){return Array.prototype.slice.call(t)},K=function(t){return t.container.querySelectorAll(t.elements_selector)},Y=function(t){return w(t)===h},J=function(t,e){return i=t||K(e),X(i).filter(T);var i},t=function(t,e){var r,n,i,o,a,s=p(t);this._settings=s,this.loadingCount=0,i=s,o=this,c&&!W(i)&&(o._observer=new IntersectionObserver(function(t){var _,x;_=i,x=o,t.forEach(function(t){return(g=t).isIntersecting||0<g.intersectionRatio?(p=t.target,h=t,d=_,f=x,A(p,"entered"),P(p,d.class_entered),M(p,d.class_exited),y=p,v=f,d.unobserve_entered&&D(y,v),z(d.callback_enter,p,h,f),m=p,void(0<=I.indexOf(w(m))||H(p,d,f))):(e=t.target,i=t,r=_,n=x,void(T(e)||(P(e,r.class_exited),o=e,a=i,l=n,(s=r).cancel_on_exit&&w(o)===b&&"IMG"===o.tagName&&(q(o),F(c=o,function(t){O(t)}),O(c),F(u=o,function(t){B(t)}),B(u),M(o,s.class_loading),R(l,-1),S(o),z(s.callback_cancel,o,a,l)),z(r.callback_exit,e,i,n))));var e,i,r,n,o,a,s,l,u,c,p,h,d,f,m,y,v,g})},{root:(a=i).container===document?null:a.container,rootMargin:a.thresholds||a.threshold+"px"})),r=s,n=this,l&&window.addEventListener("online",function(){var e,t,i;t=n,(i=K(e=r),X(i).filter(Y)).forEach(function(t){M(t,e.class_error),S(t)}),t.update()}),this.update(e)};return t.prototype={update:function(t){var e,i,r,n,o,a=this._settings,s=J(t,a);f(this,s.length),!u&&c?W(a)?(n=a,o=this,s.forEach(function(t){var e,i;-1!==G.indexOf(t.tagName)&&(t.setAttribute("loading","lazy"),$(e=t,i=n,o),U(e,i),A(e,"native"))}),f(o,0)):(i=s,(e=this._observer).disconnect(),r=e,i.forEach(function(t){r.observe(t)})):this.loadAll(s)},destroy:function(){this._observer&&this._observer.disconnect(),K(this._settings).forEach(function(t){delete t.llOriginalAttrs}),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(t){var e=this,i=this._settings;J(t,i).forEach(function(t){D(t,e),H(t,i,e)})}},t.load=function(t,e){var i=p(e);H(t,i)},t.resetStatus=function(t){S(t)},l&&function(t,e){if(e)if(e.length)for(var i,r=0;i=e[r];r+=1)n(t,i);else n(t,e)}(t,window.lazyLoadOptions),t}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exp
1orts.AOS=e():t.AOS=e()}(this,function(){return function(i){function r(t){if(n[t])return n[t].exports;var e=n[t]={exports:{},id:t,loaded:!1};return i[t].call(e.exports,e,e.exports,r),e.loaded=!0,e.exports}var n={};return r.m=i,r.c=n,r.p="dist/",r(0)}([function(t,e,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},o=r((r(i(1)),i(6))),a=r(i(7)),s=r(i(8)),l=r(i(9)),u=r(i(10)),c=r(i(11)),p=r(i(14)),h=[],d=!1,f=document.all&&!window.atob,m={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},y=function(){if(0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&(d=!0),d)return h=(0,c.default)(h,m),(0,u.default)(h,m.once),h},v=function(){h=(0,p.default)(),y()};t.exports={init:function(t){return m=n(m,t),h=(0,p.default)(),!0===(e=m.disable)||"mobile"===e&&l.default.mobile()||"phone"===e&&l.default.phone()||"tablet"===e&&l.default.tablet()||"function"==typeof e&&!0===e()||f?void h.forEach(function(t,e){t.node.removeAttribute("data-aos"),t.node.removeAttribute("data-aos-easing"),t.node.removeAttribute("data-aos-duration"),t.node.removeAttribute("data-aos-delay")}):(document.querySelector("body").setAttribute("data-aos-easing",m.easing),document.querySelector("body").setAttribute("data-aos-duration",m.duration),document.querySelector("body").setAttribute("data-aos-delay",m.delay),"DOMContentLoaded"===m.startEvent&&-1<["complete","interactive"].indexOf(document.readyState)?y(!0):"load"===m.startEvent?window.addEventListener(m.startEvent,function(){y(!0)}):document.addEventListener(m.startEvent,function(){y(!0)}),window.addEventListener("resize",(0,a.default)(y,m.debounceDelay,!0)),window.addEventListener("orientationchange",(0,a.default)(y,m.debounceDelay,!0)),window.addEventListener("scroll",(0,o.default)(function(){(0,u.default)(h,m.once)},m.throttleDelay)),m.disableMutationObserver||(0,s.default)("[data-aos]",v),h);var e},refresh:y,refreshHard:v}},function(t,e){},,,,,function(m,t){(function(t){"use strict";function o(r,n,t){function o(t){var e=u,i=c;return u=c=void 0,m=t,h=r.apply(i,e)}function a(t){var e=t-f;return void 0===f||n<=e||e<0||v&&p<=t-m}function s(){var t,e,i=S();return a(i)?l(i):void(d=setTimeout(s,(e=n-((t=i)-f),v?w(e,p-(t-m)):e)))}function l(t){return d=void 0,i&&u?o(t):(u=c=void 0,h)}function e(){var t,e=S(),i=a(e);if(u=arguments,c=this,f=e,i){if(void 0===d)return m=t=f,d=setTimeout(s,n),y?o(t):h;if(v)return d=setTimeout(s,n),o(f)}return void 0===d&&(d=setTimeout(s,n)),h}var u,c,p,h,d,f,m=0,y=!1,v=!1,i=!0;if("function"!=typeof r)throw new TypeError(x);return n=_(n)||0,g(t)&&(y=!!t.leading,p=(v="maxWait"in t)?b(_(t.maxWait)||0,n):p,i="trailing"in t?!!t.trailing:i),e.cancel=function(){void 0!==d&&clearTimeout(d),u=f=c=d=void(m=0)},e.flush=function(){return void 0===d?h:l(S())},e}function g(t){var e=void 0===t?"undefined":i(t);return!!t&&("object"==e||"function"==e)}function r(t){return"symbol"==(void 0===t?"undefined":i(t))||!!(e=t)&&"object"==(void 0===e?"undefined":i(e))&&f.call(t)==a;var e}function _(t){if("number"==typeof t)return t;if(r(t))return n;if(g(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=g(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var i=u.test(t);return i||c.test(t)?p(t.slice(2),i?2:8):l.test(t)?n:+t}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x="Expected a function",n=NaN,a="[object Symbol]",s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt,e="object"==(void 0===t?"undefined":i(t))&&t&&t.Object===Object&&t,h="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,d=e||h||Function("return this")(),f=Object.prototype.toString,b=Math.max,w=Math.min,S=function(){return d.Date.now()};
1m.exports=function(t,e,i){var r=!0,n=!0;if("function"!=typeof t)throw new TypeError(x);return g(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),o(t,e,{leading:r,maxWait:e,trailing:n})}}).call(t,function(){return this}())},function(f,t){(function(t){"use strict";function g(t){var e=void 0===t?"undefined":i(t);return!!t&&("object"==e||"function"==e)}function r(t){return"symbol"==(void 0===t?"undefined":i(t))||!!(e=t)&&"object"==(void 0===e?"undefined":i(e))&&d.call(t)==o;var e}function _(t){if("number"==typeof t)return t;if(r(t))return n;if(g(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=g(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var i=l.test(t);return i||u.test(t)?c(t.slice(2),i?2:8):s.test(t)?n:+t}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=NaN,o="[object Symbol]",a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,e="object"==(void 0===t?"undefined":i(t))&&t&&t.Object===Object&&t,p="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,h=e||p||Function("return this")(),d=Object.prototype.toString,x=Math.max,b=Math.min,w=function(){return h.Date.now()};f.exports=function(r,n,t){function o(t){var e=u,i=c;return u=c=void 0,m=t,h=r.apply(i,e)}function a(t){var e=t-f;return void 0===f||n<=e||e<0||v&&p<=t-m}function s(){var t,e,i=w();return a(i)?l(i):void(d=setTimeout(s,(e=n-((t=i)-f),v?b(e,p-(t-m)):e)))}function l(t){return d=void 0,i&&u?o(t):(u=c=void 0,h)}function e(){var t,e=w(),i=a(e);if(u=arguments,c=this,f=e,i){if(void 0===d)return m=t=f,d=setTimeout(s,n),y?o(t):h;if(v)return d=setTimeout(s,n),o(f)}return void 0===d&&(d=setTimeout(s,n)),h}var u,c,p,h,d,f,m=0,y=!1,v=!1,i=!0;if("function"!=typeof r)throw new TypeError("Expected a function");return n=_(n)||0,g(t)&&(y=!!t.leading,p=(v="maxWait"in t)?x(_(t.maxWait)||0,n):p,i="trailing"in t?!!t.trailing:i),e.cancel=function(){void 0!==d&&clearTimeout(d),u=f=c=d=void(m=0)},e.flush=function(){return void 0===d?h:l(w())},e}}).call(t,function(){return this}())},function(t,e){"use strict";function r(t){t&&t.forEach(function(t){var e=Array.prototype.slice.call(t.addedNodes),i=Array.prototype.slice.call(t.removedNodes);e.concat(i).filter(function(t){return t.hasAttribute&&t.hasAttribute("data-aos")}).length&&a()})}Object.defineProperty(e,"__esModule",{value:!0});var n=window.document,o=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,a=function(){};e.default=function(t,e){var i=new o(r);a=e,i.observe(n.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}},function(t,e){"use strict";function i(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function r(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,e,i){return e&&r(t.prototype,e),i&&r(t,i),t}}(),n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,o=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,a=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,s=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,[{key:"phone",value:function(){var t=i();return!(!n.test(t)&&!o.test(t.substr(0,4)))}},{key:"mobile",value:function(){var t=i();return!(!a.test(t)&&!s.test(t.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),t}();e.default=new l},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,a){var s=window.pageYOffset,l=window.innerHeight;t.forEach(function(t,e){var i,r,n,o;r=l+s,n=a,o=(i=t).node.getAttribute("data-aos-once"),r>i.position?i.node.classList.add("aos-animate"):void 0!==o&&("false"===o||!n&&"true"!==o)&&i.node.classList.remove("aos-animate")})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=i(12),o=(r=n)&&r.__esModule?r:{default:r};e.default=function(t,i){return t.forEach(function(t,e){t.node.classList.add("aos-init"),t.position=(0,o.default)(t.node,i.offset)}),t}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=i(13),a=(r=n)&&r.__esModule?r:{default:r};e.default=function(t,e){var i=0,r=0,n=window.innerHeight,o={offset:t.getAttribute("data-aos-offset"),anchor:t.getAttribute("data-aos-anchor"),anchorPlacement:t.getAttribute("data-aos-anchor-placement")};switch(o.offset&&!isNaN(o.offset)&&(r=parseInt(o.offset)),o.anchor&&document.querySelectorAll(o.anchor)&&(t=document.querySelectorAll(o.anchor)[0]),i=(0,a.default)(t).top,o.anchorPlacement){case"top-bottom":break;case"center-bottom":i+=t.offsetHeight/2;break;case"bottom-bottom":i+=t.offsetHeight;break;case"top-center":i+=n/2;break;case"bottom-center":i+=n/2+t.offsetHeight;break;case"center-center":i+=n/2+t.offsetHeight/2;break;case"top-top":i+=n;break;case"bottom-top":i+=t.offsetHeight+n;break;case"center-top":i+=t.offsetHeight/2+n}return o.anchorPlacement||o.offset||isNaN(e)||(r=e),i+r}},function(t,e){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){for(var e=0,i=0;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)e+=t.offsetLeft-("BODY"!=t.tagName?t.scrollLeft:0),i+=t.offsetTop-("BODY"!=t.tagName?t.scrollTop:0),t=t.offsetParent;return{top:i,left:e}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return t=t||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(t,function(t){return{node:t}})}}])}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(u){"use strict";var n,a=window.Slick||{};n=0,(a=function(t,e){var i,r=this;r.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:u(t),appendDots:u(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return u('<button type="button" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},r.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},u.extend(r,r.initials),r.activeBreakpoint=null,r.animType=null,r.animProp=null,r.breakpoints=[],r.breakpointSettings=[],r.cssTransitions=!1,r.focussed=!1,r.interrupted=!1,r.hidden="hidden",r.paused=!0,r.positionProp=null,r.respondTo=null,r.rowCount=1,r.shouldClick=!0,r.$slider=u(t),r.$slidesCache=null,r.transformType=null,r.transitionType=null,r.visibilityChange="visibilitychange",r.windowWidth=0,r.windowTimer=null,i=u(t).data("slick")||{},r.options=u.extend({},r.defaults,e,i),r.currentSlide=r.options.initialSlide,r.originalSettings=r.options,void 0!==document.mozHidden?(r.hidden="mozHidden",r.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(r.hidden="webkitHidden",r.visibilityChange="webkitvisibilitychange"),r.autoPlay=u.proxy(r.autoPlay,r),r.autoPlayClear=u.proxy(r.autoPlayClear,r),r.autoPlayIterator=u.proxy(r.autoPlayIterator,r),r.changeSlide=u.proxy(r.changeSlide,r),r.clickHandler=u.proxy(r.clickHandler,r),r.selectHandler=u.proxy(r.selectHandler,r),r.setPosition=u.proxy(r.setPosition,r),r.swipeHandler=u.proxy(r.swipeHandler,r),r.dragHandler=u.proxy(r.dragHandler,r),r.keyHandler=u.proxy(r.keyHandler,r),r.instanceUid=n++,r.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,r.registerBreakpoints(),r.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},a.prototype.addSlide=a.prototype.slickAdd=function(t,e,i){var r=this;if("boolean"==typeof e)i=e,e=null;else if(e<0||e>=r.slideCount)return!1;r.unload(),"number"==typeof e?0===e&&0===r.$slides.length?u(t).appendTo(r.$slideTrack):i?u(t).insertBefore(r.$slides.eq(e)):u(t).insertAfter(r.$slides.eq(e)):!0===i?u(t).prependTo(r.$slideTrack):u(t).appendTo(r.$slideTrack),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slides.each(function(t,e){u(e).attr("data-slick-index",t)}),r.$slidesCache=r.$slides,r.reinit()},a.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},a.prototype.animateSlide=function(t,e){var i={},r=this;r.animateHeight(),!0===r.options.rtl&&!1===r.options.vertical&&(t=-t),!1===r.transformsEnabled?!1===r.options.vertical?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,e):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,e):!1===r.cssTransitions?(!0===r.options.rtl&&(r.currentLeft=-r.currentLeft),u({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(t){t=Math.ceil(t),!1===r.options.vertical?i[r.animType]="translate("+t+"px, 0px)":i[r.animType]="translate(0px,"+t+"px)",r.$slideTrack.css(i)},complete:function(){e&&e.call()}})):(r.applyTransition(),t=Math.ceil(t),!1===r.options.vertical?i[r.animType]="translate3d("+t+"px, 0px, 0px)":i[r.animType]="translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(i),e&&setTimeout(function(){r.disableTransition(),e.call()},r.options.speed))},a.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=u(t).not(this.$slider)),t},a.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=u(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},a.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},a.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},a.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},a.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;
vendor: 9,263 bytes, line 1
1t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},a.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=u(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=u(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},a.prototype.buildDots=function(){var t,e,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),e=u("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)e.append(u("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=e.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},a.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){u(e).attr("data-slick-index",t).data("originalStyling",u(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?u('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),u("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},a.prototype.buildRows=function(){var t,e,i,r,n,o,a,s=this;if(r=document.createDocumentFragment(),o=s.$slider.children(),0<s.options.rows){for(a=s.options.slidesPerRow*s.options.rows,n=Math.ceil(o.length/a),t=0;t<n;t++){var l=document.createElement("div");for(e=0;e<s.options.rows;e++){var u=document.createElement("div");for(i=0;i<s.options.slidesPerRow;i++){var c=t*a+(e*s.options.slidesPerRow+i);o.get(c)&&u.appendChild(o.get(c))}l.appendChild(u)}r.appendChild(l)}s.$slider.empty().append(r),s.$slider.children().children().children().css({width:100/s.options.slidesPerRow+"%",display:"inline-block"})}},a.prototype.checkResponsive=function(t,e){var i,r,n,o=this,a=!1,s=o.$slider.width(),l=window.innerWidth||u(window).width();if("window"===o.respondTo?n=l:"slider"===o.respondTo?n=s:"min"===o.respondTo&&(n=Math.min(l,s)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(i in r=null,o.breakpoints)o.breakpoints.hasOwnProperty(i)&&(!1===o.originalSettings.mobileFirst?n<o.breakpoints[i]&&(r=o.breakpoints[i]):n>o.breakpoints[i]&&(r=o.breakpoints[i]));null!==r?null!==o.activeBreakpoint?(r!==o.activeBreakpoint||e)&&(o.activeBreakpoint=r,"unslick"===o.breakpointSettings[r]?o.unslick(r):(o.options=u.extend({},o.originalSettings,o.breakpointSettings[r]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),a=r):(o.activeBreakpoint=r,"unslick"===o.breakpointSettings[r]?o.unslick(r):(o.options=u.extend({},o.originalSettings,o.breakpointSettings[r]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),a=r):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t),a=r),t||!1===a||o.$slider.trigger("breakpoint",[o,a])}},a.prototype.changeSlide=function(t,e){var i,r,n=this,o=u(t.currentTarget);switch(o.is("a")&&t.preventDefault(),o.is("li")||(o=o.closest("li")),i=n.slideCount%n.options.slidesToScroll!=0?0:(n.slideCount-n.currentSlide)%n.options.slidesToScroll,t.data.message){case"previous":r=0===i?n.options.slidesToScroll:n.options.slidesToShow-i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide-r,!1,e);break;case"next":r=0===i?n.options.slidesToScroll:i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide+r,!1,e);break;case"index":var a=0===t.data.index?0:t.data.index||o.index()*n.options.slidesToScroll;n.slideHandler(n.checkNavigable(a),!1,e),o.children().trigger("focus");break;default:return}},a.prototype.checkNavigable=function(t){var e,i;if(i=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var r in e){if(t<e[r]){t=i;break}i=e[r]}return t},a.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(u("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",u.proxy(t.interrupt,t,!0)).off("mouseleave.slick",u.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),u(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&u(t.$slideTrack).children().off("click.slick",t.selectHandler),u(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),u(window).off("resize.slick.slick-"+t.instanceUid,t.resize),u("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),u(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},a.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",u.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",u.proxy(t.interrupt,t,!1))},a.prototype.cleanUpRows=function(){var t;0<this.options.rows&&((t=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(t))},a.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},a.prototype.destroy=function(t){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),u(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove()),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove()),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){u(this).attr("style",u(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,t||e.$slider.trigger("destroy",[e])},a.prototype.disableTransition=function(t){var e={};e[this.transitionType]="",!1===this.options.fade?this.$slideTrack.css(e):this.$slides.eq(t).css(e)},a.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},a.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},a.prototype.filterSlides=a.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},a.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var e=u(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=e.is(":focus"),i.autoPlay())}
1,0)})},a.prototype.getCurrent=a.prototype.slickCurrentSlide=function(){return this.currentSlide},a.prototype.getDotCount=function(){var t=this,e=0,i=0,r=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++r;else for(;e<t.slideCount;)++r,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)r=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++r,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else r=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return r-1},a.prototype.getLeft=function(t){var e,i,r,n,o=this,a=0;return o.slideOffset=0,i=o.$slides.first().outerHeight(!0),!0===o.options.infinite?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,n=-1,!0===o.options.vertical&&!0===o.options.centerMode&&(2===o.options.slidesToShow?n=-1.5:1===o.options.slidesToShow&&(n=-2)),a=i*o.options.slidesToShow*n),o.slideCount%o.options.slidesToScroll!=0&&t+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(a=t>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(t-o.slideCount))*o.slideWidth*-1,(o.options.slidesToShow-(t-o.slideCount))*i*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,o.slideCount%o.options.slidesToScroll*i*-1))):t+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(t+o.options.slidesToShow-o.slideCount)*o.slideWidth,a=(t+o.options.slidesToShow-o.slideCount)*i),o.slideCount<=o.options.slidesToShow&&(a=o.slideOffset=0),!0===o.options.centerMode&&o.slideCount<=o.options.slidesToShow?o.slideOffset=o.slideWidth*Math.floor(o.options.slidesToShow)/2-o.slideWidth*o.slideCount/2:!0===o.options.centerMode&&!0===o.options.infinite?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:!0===o.options.centerMode&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),e=!1===o.options.vertical?t*o.slideWidth*-1+o.slideOffset:t*i*-1+a,!0===o.options.variableWidth&&(r=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow),e=!0===o.options.rtl?r[0]?-1*(o.$slideTrack.width()-r[0].offsetLeft-r.width()):0:r[0]?-1*r[0].offsetLeft:0,!0===o.options.centerMode&&(r=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow+1),e=!0===o.options.rtl?r[0]?-1*(o.$slideTrack.width()-r[0].offsetLeft-r.width()):0:r[0]?-1*r[0].offsetLeft:0,e+=(o.$list.width()-r.outerWidth())/2)),e},a.prototype.getOption=a.prototype.slickGetOption=function(t){return this.options[t]},a.prototype.getNavigableIndexes=function(){var t,e=this,i=0,r=0,n=[];for(t=!1===e.options.infinite?e.slideCount:(i=-1*e.options.slidesToScroll,r=-1*e.options.slidesToScroll,2*e.slideCount);i<t;)n.push(i),i=r+e.options.slidesToScroll,r+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return n},a.prototype.getSlick=function(){return this},a.prototype.getSlideCount=function(){var i,r,n=this;return r=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each(function(t,e){if(e.offsetLeft-r+u(e).outerWidth()/2>-1*n.swipeLeft)return i=e,!1}),Math.abs(u(i).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},a.prototype.goTo=a.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},a.prototype.init=function(t){var e=this;u(e.$slider).hasClass("slick-initialized")||(u(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),t&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},a.prototype.initADA=function(){var r=this,i=Math.ceil(r.slideCount/r.options.slidesToShow),n=r.getNavigableIndexes().filter(function(t){return 0<=t&&t<r.slideCount});r.$slides.add(r.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==r.$dots&&(r.$slides.not(r.$slideTrack.find(".slick-cloned")).each(function(t){var e=n.indexOf(t);if(u(this).attr({role:"tabpanel",id:"slick-slide"+r.instanceUid+t,tabindex:-1}),-1!==e){var i="slick-slide-control"+r.instanceUid+e;u("#"+i).length&&u(this).attr({"aria-describedby":i})}}),r.$dots.attr("role","tablist").find("li").each(function(t){var e=n[t];u(this).attr({role:"presentation"}),u(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+r.instanceUid+t,"aria-controls":"slick-slide"+r.instanceUid+e,"aria-label":t+1+" of "+i,"aria-selected":null,tabindex:"-1"})}).eq(r.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var t=r.currentSlide,e=t+r.options.slidesToShow;t<e;t++)r.options.focusOnChange?r.$slides.eq(t).attr({tabindex:"0"}):r.$slides.eq(t).removeAttr("tabindex");r.activateADA()},a.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},a.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(u("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&u("li",t.$dots).on("mouseenter.slick",u.proxy(t.
1interrupt,t,!0)).on("mouseleave.slick",u.proxy(t.interrupt,t,!1))},a.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",u.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",u.proxy(t.interrupt,t,!1)))},a.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),u(document).on(t.visibilityChange,u.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&u(t.$slideTrack).children().on("click.slick",t.selectHandler),u(window).on("orientationchange.slick.slick-"+t.instanceUid,u.proxy(t.orientationChange,t)),u(window).on("resize.slick.slick-"+t.instanceUid,u.proxy(t.resize,t)),u("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),u(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),u(t.setPosition)},a.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},a.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},a.prototype.lazyLoad=function(){var t,e,i,o=this;function r(t){u("img[data-lazy]",t).each(function(){var t=u(this),e=u(this).attr("data-lazy"),i=u(this).attr("data-srcset"),r=u(this).attr("data-sizes")||o.$slider.attr("data-sizes"),n=document.createElement("img");n.onload=function(){t.animate({opacity:0}
vendor: 7,038 bytes, line 1
1,100,function(){i&&(t.attr("srcset",i),r&&t.attr("sizes",r)),t.attr("src",e).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),o.$slider.trigger("lazyLoaded",[o,t,e])})},n.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,t,e])},n.src=e})}if(!0===o.options.centerMode?i=!0===o.options.infinite?(e=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(e=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),o.options.slidesToShow/2+1+2+o.currentSlide):(e=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,i=Math.ceil(e+o.options.slidesToShow),!0===o.options.fade&&(0<e&&e--,i<=o.slideCount&&i++)),t=o.$slider.find(".slick-slide").slice(e,i),"anticipated"===o.options.lazyLoad)for(var n=e-1,a=i,s=o.$slider.find(".slick-slide"),l=0;l<o.options.slidesToScroll;l++)n<0&&(n=o.slideCount-1),t=(t=t.add(s.eq(n))).add(s.eq(a)),n--,a++;r(t),o.slideCount<=o.options.slidesToShow?r(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?r(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&r(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},a.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},a.prototype.next=a.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},a.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},a.prototype.pause=a.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},a.prototype.play=a.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},a.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.slideCount>e.options.slidesToShow&&e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&(e.initADA(),e.options.focusOnChange&&u(e.$slides.get(e.currentSlide)).attr("tabindex",0).focus()))},a.prototype.prev=a.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},a.prototype.preventDefault=function(t){t.preventDefault()},a.prototype.progressiveLazyLoad=function(t){t=t||1;var e,i,r,n,o,a=this,s=u("img[data-lazy]",a.$slider);s.length?(e=s.first(),i=e.attr("data-lazy"),r=e.attr("data-srcset"),n=e.attr("data-sizes")||a.$slider.attr("data-sizes"),(o=document.createElement("img")).onload=function(){r&&(e.attr("srcset",r),n&&e.attr("sizes",n)),e.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,e,i]),a.progressiveLazyLoad()},o.onerror=function(){t<3?setTimeout(function(){a.progressiveLazyLoad(t+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,e,i]),a.progressiveLazyLoad())},o.src=i):a.$slider.trigger("allImagesLoaded",[a])},a.prototype.refresh=function(t){var e,i,r=this;i=r.slideCount-r.options.slidesToShow,!r.options.infinite&&r.currentSlide>i&&(r.currentSlide=i),r.slideCount<=r.options.slidesToShow&&(r.currentSlide=0),e=r.currentSlide,r.destroy(!0),u.extend(r,r.initials,{currentSlide:e}),r.init(),t||r.changeSlide({data:{message:"index",index:e}},!1)},a.prototype.registerBreakpoints=function(){var t,e,i,r=this,n=r.options.responsive||null;if("array"===u.type(n)&&n.length){for(t in r.respondTo=r.options.respondTo||"window",n)if(i=r.breakpoints.length-1,n.hasOwnProperty(t)){for(e=n[t].breakpoint;0<=i;)r.breakpoints[i]&&r.breakpoints[i]===e&&r.breakpoints.splice(i,1),i--;r.breakpoints.push(e),r.breakpointSettings[e]=n[t].settings}r.breakpoints.sort(function(t,e){return r.options.mobileFirst?t-e:e-t})}},a.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&u(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},a.prototype.resize=function(){var t=this;u(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=u(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},a.prototype.removeSlide=a.prototype.slickRemove=function(t,e,i){var r=this;if(t="boolean"==typeof t?!0===(e=t)?0:r.slideCount-1:!0===e?--t:t,r.slideCount<1||t<0||t>r.slideCount-1)return!1;r.unload(),!0===i?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(t).remove(),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slidesCache=r.$slides,r.reinit()},a.prototype.setCSS=function(t){var e,i,r=this,n={};!0===r.options.rtl&&(t=-t),e="left"==r.positionProp?Math.ceil(t)+"px":"0px",i="top"==r.positionProp?Math.ceil(t)+"px":"0px",n[r.positionProp]=t,!1===r.transformsEnabled||(!(n={})===r.cssTransitions?n[r.animType]="translate("+e+", "+i+")":n[r.animType]="translate3d("+e+", "+i+", 0px)"),r.$slideTrack.css(n)},a.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},a.prototype.setFade=function(){var i,r=this;r.$slides.each(function(t,e){i=r.slideWidth*t*-1,!0===r.options.rtl?u(e).css({position:"relative",right:i,top:0,zIndex:r.options.zIndex-2,opacity:0}
1):u(e).css({position:"relative",left:i,top:0,zIndex:r.options.zIndex-2,opacity:0})}),r.$slides.eq(r.currentSlide).css({zIndex:r.options.zIndex-1,opacity:1})},a.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},a.prototype.setOption=a.prototype.slickSetOption=function(){var t,e,i,r,n,o=this,a=!1;if("object"===u.type(arguments[0])?(i=arguments[0],a=arguments[1],n="multiple"):"string"===u.type(arguments[0])&&(i=arguments[0],r=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===u.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)o.options[i]=r;else if("multiple"===n)u.each(i,function(t,e){o.options[t]=e});else if("responsive"===n)for(e in r)if("array"!==u.type(o.options.responsive))o.options.responsive=[r[e]];else{for(t=o.options.responsive.length-1;0<=t;)o.options.responsive[t].breakpoint===r[e].breakpoint&&o.options.responsive.splice(t,1),t--;o.options.responsive.push(r[e])}a&&(o.unload(),o.reinit())},a.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},a.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},a.prototype.setSlideClasses=function(t){var e,i,r,n,o=this;if(i=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(t).addClass("slick-current"),!0===o.options.centerMode){var a=o.options.slidesToShow%2==0?1:0;e=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(e<=t&&t<=o.slideCount-1-e?o.$slides.slice(t-e+a,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(r=o.options.slidesToShow+t,i.slice(r-e+1+a,r+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&i.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")}else 0<=t&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=o.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(n=o.slideCount%o.options.slidesToShow,r=!0===o.options.infinite?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?i.slice(r-(o.options.slidesToShow-n),r+n).addClass("slick-active").attr("aria-hidden","false"):i.slice(r,r+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==o.options.lazyLoad&&"anticipated"!==o.options.lazyLoad||o.lazyLoad()},a.prototype.setupInfinite=function(){var t,e,i,r=this;if(!0===r.options.fade&&(r.options.centerMode=!1),!0===r.options.infinite&&!1===r.options.fade&&(e=null,r.slideCount>r.options.slidesToShow)){for(i=!0===r.options.centerMode?r.options.slidesToShow+1:r.options.slidesToShow,t=r.slideCount;t>r.slideCount-i;t-=1)e=t-1,u(r.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(t=0;t<i+r.slideCount;t+=1)e=t,u(r.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each(function(){u(this).attr("id","")})}},a.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},a.prototype.selectHandler=function(t){var e=u(t.target).is(".slick-slide")?u(t.target):u(t.target).parents(".slick-slide"),i=parseInt(e.attr("data-slick-index"));i||(i=0),this.slideCount<=this.options.slidesToShow?this.slideHandler(i,!1,!0):this.slideHandler(i)}
vendor: 6,042 bytes, line 1
1,a.prototype.slideHandler=function(t,e,i){var r,n,o,a,s,l,u=this;if(e=e||!1,!(!0===u.animating&&!0===u.options.waitForAnimate||!0===u.options.fade&&u.currentSlide===t))if(!1===e&&u.asNavFor(t),r=t,s=u.getLeft(r),a=u.getLeft(u.currentSlide),u.currentLeft=null===u.swipeLeft?a:u.swipeLeft,!1===u.options.infinite&&!1===u.options.centerMode&&(t<0||t>u.getDotCount()*u.options.slidesToScroll))!1===u.options.fade&&(r=u.currentSlide,!0!==i&&u.slideCount>u.options.slidesToShow?u.animateSlide(a,function(){u.postSlide(r)}):u.postSlide(r));else if(!1===u.options.infinite&&!0===u.options.centerMode&&(t<0||t>u.slideCount-u.options.slidesToScroll))!1===u.options.fade&&(r=u.currentSlide,!0!==i&&u.slideCount>u.options.slidesToShow?u.animateSlide(a,function(){u.postSlide(r)}):u.postSlide(r));else{if(u.options.autoplay&&clearInterval(u.autoPlayTimer),n=r<0?u.slideCount%u.options.slidesToScroll!=0?u.slideCount-u.slideCount%u.options.slidesToScroll:u.slideCount+r:r>=u.slideCount?u.slideCount%u.options.slidesToScroll!=0?0:r-u.slideCount:r,u.animating=!0,u.$slider.trigger("beforeChange",[u,u.currentSlide,n]),o=u.currentSlide,u.currentSlide=n,u.setSlideClasses(u.currentSlide),u.options.asNavFor&&(l=(l=u.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(u.currentSlide),u.updateDots(),u.updateArrows(),!0===u.options.fade)return!0!==i?(u.fadeSlideOut(o),u.fadeSlide(n,function(){u.postSlide(n)})):u.postSlide(n),void u.animateHeight();!0!==i&&u.slideCount>u.options.slidesToShow?u.animateSlide(s,function(){u.postSlide(n)}):u.postSlide(n)}},a.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},a.prototype.swipeDirection=function(){var t,e,i,r,n=this;return t=n.touchObject.startX-n.touchObject.curX,e=n.touchObject.startY-n.touchObject.curY,i=Math.atan2(e,t),(r=Math.round(180*i/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&0<=r?!1===n.options.rtl?"left":"right":r<=360&&315<=r?!1===n.options.rtl?"left":"right":135<=r&&r<=225?!1===n.options.rtl?"right":"left":!0===n.options.verticalSwiping?35<=r&&r<=135?"down":"up":"vertical"},a.prototype.swipeEnd=function(t){var e,i,r=this;if(r.dragging=!1,r.swiping=!1,r.scrolling)return r.scrolling=!1;if(r.interrupted=!1,r.shouldClick=!(10<r.touchObject.swipeLength),void 0===r.touchObject.curX)return!1;if(!0===r.touchObject.edgeHit&&r.$slider.trigger("edge",[r,r.swipeDirection()]),r.touchObject.swipeLength>=r.touchObject.minSwipe){switch(i=r.swipeDirection()){case"left":case"down":e=r.options.swipeToSlide?r.checkNavigable(r.currentSlide+r.getSlideCount()):r.currentSlide+r.getSlideCount(),r.currentDirection=0;break;case"right":case"up":e=r.options.swipeToSlide?r.checkNavigable(r.currentSlide-r.getSlideCount()):r.currentSlide-r.getSlideCount(),r.currentDirection=1}"vertical"!=i&&(r.slideHandler(e),r.touchObject={},r.$slider.trigger("swipe",[r,i]))}else r.touchObject.startX!==r.touchObject.curX&&(r.slideHandler(r.currentSlide),r.touchObject={})},a.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},a.prototype.swipeMove=function(t){var e,i,r,n,o,a,s=this;return o=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!s.dragging||s.scrolling||o&&1!==o.length)&&(e=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,s.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),a=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2))),!s.options.verticalSwiping&&!s.swiping&&4<a?!(s.scrolling=!0):(!0===s.options.verticalSwiping&&(s.touchObject.swipeLength=a),i=s.swipeDirection(),void 0!==t.originalEvent&&4<s.touchObject.swipeLength&&(s.swiping=!0,t.preventDefault()),n=(!1===s.options.rtl?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),!0===s.options.verticalSwiping&&(n=s.touchObject.curY>s.touchObject.startY?1:-1),r=s.touchObject.swipeLength,(s.touchObject.edgeHit=!1)===s.options.infinite&&(0===s.currentSlide&&"right"===i||s.currentSlide>=s.getDotCount()&&"left"===i)&&(r=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),!1===s.options.vertical?s.swipeLeft=e+r*n:s.swipeLeft=e+r*(s.$list.height()/s.listWidth)*n,!0===s.options.verticalSwiping&&(s.swipeLeft=e+r*n),!0!==s.options.fade&&!1!==s.options.touchMove&&(!0===s.animating?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))))},a.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return!(i.touchObject={});void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},a.prototype.unfilterSlides=a.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},a.prototype.unload=function(){var t=this;u(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
1,a.prototype.unslick=function(t){this.$slider.trigger("unslick",[this,t]),this.destroy()},a.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode?(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},a.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},a.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},u.fn.slick=function(){var t,e,i=this,r=arguments[0],n=Array.prototype.slice.call(arguments,1),o=i.length;for(t=0;t<o;t++)if("object"==typeof r||void 0===r?i[t].slick=new a(i[t],r):e=i[t].slick[r].apply(i[t].slick,n),void 0!==e)return e;return i}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).mapboxgl=e()}(this,function(){var n,o,a;function t(t,e){if(n)if(o){var i="var sharedChunk = {}; ("+n+")(sharedChunk); ("+o+")(sharedChunk);",r={};n(r),(a=e(r)).workerUrl=window.URL.createObjectURL(new Blob([i],{type:"text/javascript"}))}else o=e;else n=e}return t(0,function(t){"use strict";function e(t,e){return t(e={exports:{}},e.exports),e.exports}var a=i;function i(t,e,i,r){this.cx=3*t,this.bx=3*(i-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(r-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=r,this.p2x=i,this.p2y=r}i.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},i.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},i.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},i.prototype.solveCurveX=function(t,e){var i,r,n,o,a;for(void 0===e&&(e=1e-6),n=t,a=0;a<8;a++){if(o=this.sampleCurveX(n)-t,Math.abs(o)<e)return n;var s=this.sampleCurveDerivativeX(n);if(Math.abs(s)<1e-6)break;n-=o/s}if((n=t)<(i=0))return i;if(n>(r=1))return r;for(;i<r;){if(o=this.sampleCurveX(n),Math.abs(o-t)<e)return n;o<t?i=n:r=n,n=.5*(r-i)+i}return n},i.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var ct=r;function r(t,e){this.x=t,this.y=e}function n(t,e,i,r){var n=new a(t,e,i,r);return function(t){return n.solve(t)}}r.prototype={clone:function(){return new r(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},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(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,i=t.y-this.y;return e*e+i*i},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,i=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=i,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),i=Math.sin(t),r=e*this.x-i*this.y,n=i*this.x+e*this.y;return this.x=r,this.y=n,this}
vendor: 4,012 bytes, line 1
1,_rotateAround:function(t,e){var i=Math.cos(t),r=Math.sin(t),n=e.x+i*(this.x-e.x)-r*(this.y-e.y),o=e.y+r*(this.x-e.x)+i*(this.y-e.y);return this.x=n,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},r.convert=function(t){return t instanceof r?t:Array.isArray(t)?new r(t[0],t[1]):t};var o=n(.25,.1,.25,1);function l(t,e,i){return Math.min(i,Math.max(e,t))}function s(t,e,i){var r=i-e,n=((t-e)%r+r)%r+e;return n===e?i:n}function f(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];for(var r=0,n=e;r<n.length;r+=1){var o=n[r];for(var a in o)t[a]=o[a]}return t}var u=1;function c(){return u++}function p(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function h(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function d(t,e){t.forEach(function(t){e[t]&&(e[t]=e[t].bind(e))})}function m(t,e){return-1!==t.indexOf(e,t.length-e.length)}function y(t,e,i){var r={};for(var n in t)r[n]=e.call(i||this,t[n],n,t);return r}function v(t,e,i){var r={};for(var n in t)e.call(i||this,t[n],n,t)&&(r[n]=t[n]);return r}function g(t){return Array.isArray(t)?t.map(g):"object"==typeof t&&t?y(t,g):t}var _={};function pt(t){_[t]||("undefined"!=typeof console&&console.warn(t),_[t]=!0)}function x(t,e,i){return(i.y-t.y)*(e.x-t.x)>(e.y-t.y)*(i.x-t.x)}function b(t){for(var e=0,i=0,r=t.length,n=r-1,o=void 0,a=void 0;i<r;n=i++)o=t[i],e+=((a=t[n]).x-o.x)*(o.y+a.y);return e}function w(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function S(t){var o={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(t,e,i,r){var n=i||r;return o[e]=!n||n.toLowerCase(),""}),o["max-age"]){var e=parseInt(o["max-age"],10);isNaN(e)?delete o["max-age"]:o["max-age"]=e}return o}var T=null;function k(t){if(null==T){var e=t.navigator?t.navigator.userAgent:null;T=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return T}function E(t){try{var e=self[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}var C,A,I,z,P=self.performance&&self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),M=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,L=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,D={now:P,frame:function(t){var e=M(t);return{cancel:function(){return L(e)}}},getImageData:function(t,e){void 0===e&&(e=0);var i=self.document.createElement("canvas"),r=i.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return i.width=t.width,i.height=t.height,r.drawImage(t,0,0,t.width,t.height),r.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return C||(C=self.document.createElement("a")),C.href=t,C.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&&(null==A&&(A=self.matchMedia("(prefers-reduced-motion: reduce)")),A.matches)}},R={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},B={supported:!1,testSupport:function(t){!O&&z&&(F?U(t):I=t)}},O=!1,F=!1;function U(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,z),t.isContextLost())return;B.supported=!0}
1catch(t){}t.deleteTexture(e),O=!0}self.document&&((z=self.document.createElement("img")).onload=function(){I&&U(I),F=!(I=null)},z.onerror=function(){O=!0,I=null},z.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var N="01",j=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function V(t){return 0===t.indexOf("mapbox:")}j.prototype._createSkuToken=function(){var t=function(){for(var t="",e=0;e<10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",N,t].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},j.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},j.prototype.transformRequest=function(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}},j.prototype.normalizeStyleURL=function(t,e){if(!V(t))return t;var i=H(t);return i.path="/styles/v1"+i.path,this._makeAPIURL(i,this._customAccessToken||e)},j.prototype.normalizeGlyphsURL=function(t,e){if(!V(t))return t;var i=H(t);return i.path="/fonts/v1"+i.path,this._makeAPIURL(i,this._customAccessToken||e)},j.prototype.normalizeSourceURL=function(t,e){if(!V(t))return t;var i=H(t);return i.path="/v4/"+i.authority+".json",i.params.push("secure"),this._makeAPIURL(i,this._customAccessToken||e)},j.prototype.normalizeSpriteURL=function(t,e,i,r){var n=H(t);return V(t)?(n.path="/styles/v1"+n.path+"/sprite"+e+i,this._makeAPIURL(n,this._customAccessToken||r)):(n.path+=""+e+i,G(n))},j.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!V(t))return t;var n=H(t),i=2<=D.devicePixelRatio||512===e?"@2x":"",r=B.supported?".webp":"$1";n.path=n.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+i+r),n.path=n.path.replace(/^.+\/v4\//,"/"),n.path="/v4"+n.path;var o=this._customAccessToken||function(t){for(var e=0,i=n.params;e<i.length;e+=1){var r=i[e].match(/^access_token=(.*)$/);if(r)return r[1]}return null}()||R.ACCESS_TOKEN;return R.REQUIRE_ACCESS_TOKEN&&o&&this._skuToken&&n.params.push("sku="+this._skuToken),this._makeAPIURL(n,o)},j.prototype.canonicalizeTileURL=function(t,e){var i=H(t);if(!i.path.match(/(^\/v4\/)/)||!i.path.match(/\.[\w]+$/))return t;var r="mapbox://tiles/";r+=i.path.replace("/v4/","");var n=i.params;return e&&(n=n.filter(function(t){return!t.match(/^access_token=/)})),n.length&&(r+="?"+n.join("&")),r},j.prototype.canonicalizeTileset=function(t,e){for(var i=!!e&&V(e),r=[],n=0,o=t.tiles||[];n<o.length;n+=1){var a=o[n];Z(a)?r.push(this.canonicalizeTileURL(a,i)):r.push(a)}return r},j.prototype._makeAPIURL=function(t,e){var i="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",r=H(R.API_URL);if(t.protocol=r.protocol,t.authority=r.authority,"/"!==r.path&&(t.path=""+r.path+t.path),!R.REQUIRE_ACCESS_TOKEN)return G(t);if(!(e=e||R.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+i);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+i);return t.params=t.params.filter(function(t){return-1===t.indexOf("access_token")}),t.params.push("access_token="+e),G(t)};var q=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Z(t){return q.test(t)}var $=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function H(t){var e=t.match($);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function G(t){var e=t.params.length?"?"+t.params.join("&"):"";return t.protocol+"://"+t.authority+t.path+e}function W(t){if(!t)return null;var e,i=t.split(".");if(!i||3!==i.length)return null;try{return JSON.parse((e=i[1],decodeURIComponent(self.atob(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(t){return null}}var X=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};X.prototype.getStorageKey=function(t){var e,i=W(R.ACCESS_TOKEN),r="";return r=i&&i.u?(e=i.u,self.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(t,e){return String.fromCharCode(Number("0x"+e))}))):R.ACCESS_TOKEN||"",t?"mapbox.eventData."+t+":"+r:"mapbox.eventData:"+r},X.prototype.fetchEventData=function(){var t=E("localStorage"),e=this.getStorageKey(),i=this.getStorageKey("uuid");if(t)try{var r=self.localStorage.getItem(e);r&&(this.eventData=JSON.parse(r));var n=self.localStorage.getItem(i);n&&(this.anonId=n)}catch(t){pt("Unable to read from LocalStorage")}},X.prototype.saveEventData=function(){var t=E("localStorage"),e=this.getStorageKey(),i=this.getStorageKey("uuid");if(t)try{self.localStorage.setItem(i,this.anonId),1<=Object.keys(this.eventData).length&&self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){pt("Unable to write to LocalStorage")}},X.prototype.processRequests=function(t){}
1,X.prototype.postEvent=function(t,e,i,r){var n=this;if(R.EVENTS_URL){var o=H(R.EVENTS_URL);o.params.push("access_token="+(r||R.ACCESS_TOKEN||""));var a={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.8.1",skuId:N,userId:this.anonId},s=e?f(a,e):a,l={url:G(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=wt(l,function(t){n.pendingRequest=null,i(t),n.saveEventData(),n.processRequests(r)})}},X.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var K,Y,J=function(t){function e(){t.call(this,"map.load"),this.success={},this.skuToken=""}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.postMapLoadEvent=function(t,e,i,r){this.skuToken=i,(R.EVENTS_URL&&r||R.ACCESS_TOKEN&&Array.isArray(t)&&t.some(function(t){return V(t)||Z(t)}))&&this.queueRequest({id:e,timestamp:Date.now()},r)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){var i=this.queue.shift(),r=i.id,n=i.timestamp;r&&this.success[r]||(this.anonId||this.fetchEventData(),h(this.anonId)||(this.anonId=p()),this.postEvent(n,{skuToken:this.skuToken},function(t){t||r&&(e.success[r]=!0)},t))}},e}(X),Q=new(function(e){function t(t){e.call(this,"appUserTurnstile"),this._customAccessToken=t}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.postTurnstileEvent=function(t,e){R.EVENTS_URL&&R.ACCESS_TOKEN&&Array.isArray(t)&&t.some(function(t){return V(t)||Z(t)})&&this.queueRequest(Date.now(),e)},t.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var i=W(R.ACCESS_TOKEN),r=i?i.u:R.ACCESS_TOKEN,n=r!==this.eventData.tokenU;h(this.anonId)||(this.anonId=p(),n=!0);var o=this.queue.shift();if(this.eventData.lastSuccess){var a=new Date(this.eventData.lastSuccess),s=new Date(o),l=(o-this.eventData.lastSuccess)/864e5;n=n||1<=l||l<-1||a.getDate()!==s.getDate()}else n=!0;if(!n)return this.processRequests();this.postEvent(o,{"enabled.telemetry":!1},function(t){t||(e.eventData.lastSuccess=o,e.eventData.tokenU=r)},t)}},t}(X)),tt=Q.postTurnstileEvent.bind(Q),et=new J,it=et.postMapLoadEvent.bind(et),rt="mapbox-tiles",nt=500,ot=50,at=42e4;function st(){self.caches&&!K&&(K=self.caches.open(rt))}function lt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var ut,ht=1/0;function dt(){return null==ut&&(ut=self.OffscreenCanvas&&new self.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof self.createImageBitmap),ut}var ft={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(ft);var mt=function(r){function t(t,e,i){401===e&&Z(i)&&(t+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),r.call(this,t),this.status=e,this.url=i,this.name=this.constructor.name,this.message=t}return r&&(t.__proto__=r),((t.prototype=Object.create(r&&r.prototype)).constructor=t).prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},t}(Error),yt=w()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===self.location.protocol?self.parent:self).location.href};function vt(n,o){var t,e=new self.AbortController,a=new self.Request(n.url,{method:n.method||"GET",body:n.body,credentials:n.credentials,headers:n.headers,referrer:yt(),signal:e.signal}),s=!1,l=!1,u=0<(t=a.url).indexOf("sku=")&&Z(t);"json"===n.type&&a.headers.set("Accept","application/json");var i=function(t,e,i){if(!l){if(t&&"SecurityError"!==t.message&&pt(t),e&&i)return c(e);var r=Date.now();self.fetch(a).then(function(t){if(t.ok){var e=u?t.clone():null;return c(t,e,r)}return o(new mt(t.statusText,t.status,n.url))}).catch(function(t){20!==t.code&&o(new Error(t.message))})}},c=function(e,i,r){("arrayBuffer"===n.type?e.arrayBuffer():"json"===n.type?e.json():e.text()).then(function(t){l||(i&&r&&function(i,t,e){if(st(),K){var r={status:t.status,statusText:t.statusText,headers:new self.Headers};
1t.headers.forEach(function(t,e){return r.headers.set(e,t)});var n=S(t.headers.get("Cache-Control")||"");n["no-store"]||(n["max-age"]&&r.headers.set("Expires",new Date(e+1e3*n["max-age"]).toUTCString()),new Date(r.headers.get("Expires")).getTime()-e<at||function(t,e){if(void 0===Y)try{new Response(new ReadableStream),Y=!0}catch(t){Y=!1}Y?e(t.body):t.blob().then(e)}(t,function(t){var e=new self.Response(t,r);st(),K&&K.then(function(t){return t.put(lt(i.url),e)}).catch(function(t){return pt(t.message)})}))}}(a,i,r),s=!0,o(null,t,e.headers.get("Cache-Control"),e.headers.get("Expires")))}).catch(function(t){l||o(new Error(t.message))})};return u?function(t,r){if(st(),!K)return r(null);var n=lt(t.url);K.then(function(i){i.match(n).then(function(t){var e=function(t){if(!t)return!1;var e=new Date(t.headers.get("Expires")||0),i=S(t.headers.get("Cache-Control")||"");return e>Date.now()&&!i["no-cache"]}(t);i.delete(n),e&&i.put(n,t.clone()),r(null,t,e)}).catch(r)}).catch(r)}(a,i):i(null,null),{cancel:function(){l=!0,s||e.abort()}}}var gt,_t,xt=function(t,e){if(i=t.url,!(/^file:/.test(i)||/^file:/.test(yt())&&!/^\w+:/.test(i))){if(self.fetch&&self.Request&&self.AbortController&&self.Request.prototype.hasOwnProperty("signal"))return vt(t,e);if(w()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var i;return function(e,i){var r=new self.XMLHttpRequest;for(var t in r.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(r.responseType="arraybuffer"),e.headers)r.setRequestHeader(t,e.headers[t]);return"json"===e.type&&(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials="include"===e.credentials,r.onerror=function(){i(new Error(r.statusText))},r.onload=function(){if((200<=r.status&&r.status<300||0===r.status)&&null!==r.response){var t=r.response;if("json"===e.type)try{t=JSON.parse(r.response)}catch(t){return i(t)}i(null,t,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else i(new mt(r.statusText,r.status,e.url))},r.send(e.body),{cancel:function(){return r.abort()}}}(t,e)},bt=function(t,e){return xt(f(t,{type:"arrayBuffer"}),e)},wt=function(t,e){return xt(f(t,{method:"POST"}),e)};gt=[],_t=0;var St=function(t,s){if(B.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),_t>=R.MAX_PARALLEL_IMAGE_REQUESTS){var e={requestParameters:t,callback:s,cancelled:!1,cancel:function(){this.cancelled=!0}};return gt.push(e),e}_t++;var r=!1,l=function(){if(!r)for(r=!0,_t--;gt.length&&_t<R.MAX_PARALLEL_IMAGE_REQUESTS;){var t=gt.shift(),e=t.requestParameters,i=t.callback;t.cancelled||(t.cancel=St(e,i).cancel)}},i=bt(t,function(t,e,i,r){var n,o,a;l(),t?s(t):e&&(dt()?(n=e,o=s,a=new self.Blob([new Uint8Array(n)],{type:"image/png"}),self.createImageBitmap(a).then(function(t){o(null,t)}).catch(function(t){o(new Error("Could not load image because of "+t.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})):function(t,e,i,r){var n=new self.Image,o=self.URL;n.onload=function(){e(null,n),o.revokeObjectURL(n.src)},n.onerror=function(){return e(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."))};var a=new self.Blob([new Uint8Array(t)],{type:"image/png"});n.cacheControl=i,n.expires=r,n.src=t.byteLength?o.createObjectURL(a):"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="}(e,s,i,r))});return{cancel:function(){i.cancel(),l()}}};function Tt(t,e,i){i[t]&&-1!==i[t].indexOf(e)||(i[t]=i[t]||[],i[t].push(e))}function kt(t,e,i){if(i&&i[t]){var r=i[t].indexOf(e);-1!==r&&i[t].splice(r,1)}}var Et=function(t,e){void 0===e&&(e={}),f(this,e),this.type=t},Ct=function(i){function t(t,e){void 0===e&&(e={}),i.call(this,"error",f({error:t},e))}return i&&(t.__proto__=i),(t.prototype=Object.create(i&&i.prototype)).constructor=t}(Et),At=function(){};At.prototype.on=function(t,e){return this._listeners=this._listeners||{},Tt(t,e,this._listeners),this},At.prototype.off=function(t,e){return kt(t,e,this._listeners),kt(t,e,this._oneTimeListeners),this},At.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},Tt(t,e,this._oneTimeListeners),this},At.prototype.fire=function(t,e){"string"==typeof t&&(t=new Et(t,e||{}));var i=t.type;if(this.listens(i)){for(var r=0,n=(t.target=this)._listeners&&this._listeners[i]?this._listeners[i].slice():[];r<n.length;r+=1)n[r].call(this,t);for(var o=0,a=this._oneTimeListeners&&this._oneTimeListeners[i]?this._oneTimeListeners[i].slice():[];o<a.length;o+=1){var s=a[o];kt(i,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&&(f(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof Ct&&console.error(t.error);return this},At.prototype.listens=function(t){return this._listeners&&this._listeners[t]&&0<this._listeners[t].length||this._oneTimeListeners&&this._oneTimeListeners[t]&&0<this._oneTimeListeners[t].length||this._eventedParent&&this._eventedParent.listens(t)};var It={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"}
vendor: 2,171 bytes, line 1
1,bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,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:!0,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"},"*":{type:"*"}},source_raster:{type:{required:!0,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"},"*":{type:"*"}},source_raster_dem:{type:{required:!0,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"},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!(At.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this})},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom
vendor: 9,180 bytes, line 1
1:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},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_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,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:!1,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"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,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:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,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:!0,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:!1,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:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,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:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,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:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,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:!0,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:!1,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:!1,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:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}
vendor: 9,442 bytes, line 1
1,"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,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:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,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_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},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:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Zoom"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}
vendor: 9,823 bytes, line 1
1,"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,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"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}}
vendor: 12,366 bytes, line 1
1,zt=function(t,e,i,r){this.message=(t?t+": ":"")+i,r&&(this.identifier=r),null!=e&&e.__line__&&(this.line=e.__line__)};function Pt(t){var e=t.key,i=t.value;return i?[new zt(e,i,"constants have been deprecated as of v8")]:[]}function Mt(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];for(var r=0,n=e;r<n.length;r+=1){var o=n[r];for(var a in o)t[a]=o[a]}return t}function Lt(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function Dt(t){if(Array.isArray(t))return t.map(Dt);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var i in t)e[i]=Dt(t[i]);return e}return Lt(t)}var Rt=function(i){function t(t,e){i.call(this,e),this.message=e,this.key=t}return i&&(t.__proto__=i),(t.prototype=Object.create(i&&i.prototype)).constructor=t}(Error),Bt=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var i=0,r=e;i<r.length;i+=1){var n=r[i],o=n[0],a=n[1];this.bindings[o]=a}};Bt.prototype.concat=function(t){return new Bt(this,t)},Bt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},Bt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var Ot={kind:"null"},Ft={kind:"number"},Ut={kind:"string"},Nt={kind:"boolean"},jt={kind:"color"},Vt={kind:"object"},qt={kind:"value"},Zt={kind:"collator"},$t={kind:"formatted"},Ht={kind:"resolvedImage"};function Gt(t,e){return{kind:"array",itemType:t,N:e}}function Wt(t){if("array"!==t.kind)return t.kind;var e=Wt(t.itemType);return"number"==typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}var Xt=[Ot,Ft,Ut,Nt,jt,$t,Vt,Gt(qt),Ht];function Kt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Kt(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var i=0,r=Xt;i<r.length;i+=1)if(!Kt(r[i],e))return null}return"Expected "+Wt(t)+" but found "+Wt(e)+" instead."}var Yt=e(function(t,e){var d={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 f(t){return(t=Math.round(t))<0?0:255<t?255:t}function i(t){return t<0?0:1<t?1:t}function m(t){return"%"===t[t.length-1]?f(parseFloat(t)/100*255):f(parseInt(t))}function y(t){return"%"===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function v(t,e,i){return i<0?i+=1:1<i&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}try{e.parseCSSColor=function(t){var e,i=t.replace(/ /g,"").toLowerCase();if(i in d)return d[i].slice();if("#"===i[0])return 4===i.length?0<=(e=parseInt(i.substr(1),16))&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===i.length&&0<=(e=parseInt(i.substr(1),16))&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var r=i.indexOf("("),n=i.indexOf(")");if(-1!==r&&n+1===i.length){var o=i.substr(0,r),a=i.substr(r+1,n-(r+1)).split(","),s=1;switch(o){case"rgba":if(4!==a.length)return null;s=y(a.pop());case"rgb":return 3!==a.length?null:[m(a[0]),m(a[1]),m(a[2]),s];case"hsla":if(4!==a.length)return null;s=y(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,u=y(a[1]),c=y(a[2]),p=c<=.5?c*(u+1):c+u-c*u,h=2*c-p;return[f(255*v(h,p,l+1/3)),f(255*v(h,p,l)),f(255*v(h,p,l-1/3)),s];default:return null}}return null}}catch(t){}}).parseCSSColor,Jt=function(t,e,i,r){void 0===r&&(r=1),this.r=t,this.g=e,this.b=i,this.a=r};Jt.parse=function(t){if(t){if(t instanceof Jt)return t;if("string"==typeof t){var e=Yt(t);if(e)return new Jt(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Jt.prototype.toString=function(){var t=this.toArray(),e=t[0],i=t[1],r=t[2],n=t[3];return"rgba("+Math.round(e)+","+Math.round(i)+","+Math.round(r)+","+n+")"},Jt.prototype.toArray=function(){var t=this.r,e=this.g,i=this.b,r=this.a;return 0===r?[0,0,0,0]:[255*t/r,255*e/r,255*i/r,r]},Jt.black=new Jt(0,0,0,1),Jt.white=new Jt(1,1,1,1),Jt.transparent=new Jt(0,0,0,0),Jt.red=new Jt(1,0,0,1);var Qt=function(t,e,i){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=i,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Qt.prototype.compare=function(t,e){return this.collator.compare(t,e)},Qt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var te=function(t,e,i,r,n){this.text=t,this.image=e,this.scale=i,this.fontStack=r,this.textColor=n},ee=function(t){this.sections=t};ee.fromString=function(t){return new ee([new te(t,null,null,null,null)])},ee.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some(function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length})},ee.factory=function(t){return t instanceof ee?t:ee.fromString(t)},ee.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map(function(t){return t.text}).join("")},ee.prototype.serialize=function(){for(var t=["format"],e=0,i=this.sections;e<i.length;e+=1){var r=i[e];if(r.image)t.push(["image",r.image.name]);else{t.push(r.text);var n={};r.fontStack&&(n["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(n["font-scale"]=r.scale),r.textColor&&(n["text-color"]=["rgba"].concat(r.textColor.toArray())),t.push(n)}}return t};var ie=function(t){this.name=t.name,this.available=t.available};function re(t,e,i,r){return"number"==typeof t&&0<=t&&t<=255&&"number"==typeof e&&0<=e&&e<=255&&"number"==typeof i&&0<=i&&i<=255?void 0===r||"number"==typeof r&&0<=r&&r<=1?null:"Invalid rgba value ["+[t,e,i,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[t,e,i,r]:[t,e,i]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function ne(t){if(null===t)return Ot;if("string"==typeof t)return Ut;if("boolean"==typeof t)return Nt;if("number"==typeof t)return Ft;if(t instanceof Jt)return jt;if(t instanceof Qt)return Zt;if(t instanceof ee)return $t;if(t instanceof ie)return Ht;if(Array.isArray(t)){for(var e,i=t.length,r=0,n=t;r<n.length;r+=1){var o=ne(n[r]);if(e){if(e===o)continue;e=qt;break}e=o}return Gt(e||qt,i)}return Vt}function oe(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof Jt||t instanceof ee||t instanceof ie?t.toString():JSON.stringify(t)}ie.prototype.toString=function(){return this.name},ie.fromString=function(t){return new ie({name:t,available:!1})},ie.prototype.serialize=function(){return["image",this.name]};var ae=function(t,e){this.type=t,this.value=e};ae.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!function t(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof Jt)return!0;if(e instanceof Qt)return!0;if(e instanceof ee)return!0;if(e instanceof ie)return!0;if(Array.isArray(e)){for(var i=0,r=e;i<r.length;i+=1)if(!t(r[i]))return!1;return!0}if("object"!=typeof e)return!1;for(var n in e)if(!t(e[n]))return!1;return!0}(t[1]))return e.error("invalid value");var i=t[1],r=ne(i),n=e.expectedType;return"array"!==r.kind||0!==r.N||!n||"array"!==n.kind||"number"==typeof n.N&&0!==n.N||(r=n),new ae(r,i)},ae.prototype.evaluate=function(){return this.value},ae.prototype.eachChild=function(){},ae.prototype.possibleOutputs=function(){return[this.value]},ae.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Jt?["rgba"].concat(this.value.toArray()):this.value instanceof ee?this.value.serialize():this.value};var se=function(t){this.name="ExpressionEvaluationError",this.message=t};se.prototype.toJSON=function(){return this.message};var le={string:Ut,number:Ft,boolean:Nt,object:Vt},ue=function(t,e){this.type=t,this.args=e};ue.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var i,r=1,n=t[0];if("array"===n){var o,a;if(2<t.length){var s=t[1];if("string"!=typeof s||!(s in le)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=le[s],r++}else o=qt;if(3<t.length){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],r++}i=Gt(o,a)}else i=le[n];for(var l=[];r<t.length;r++){var u=e.parse(t[r],r,qt);if(!u)return null;l.push(u)}return new ue(i,l)},ue.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var i=this.args[e].evaluate(t);
vendor: 39,416 bytes, line 1
1if(!Kt(this.type,ne(i)))return i;if(e===this.args.length-1)throw new se("Expected value to be of type "+Wt(this.type)+", but found "+Wt(ne(i))+" instead.")}return null},ue.prototype.eachChild=function(t){this.args.forEach(t)},ue.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}))},ue.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var i=t.itemType;if("string"===i.kind||"number"===i.kind||"boolean"===i.kind){e.push(i.kind);var r=t.N;("number"==typeof r||1<this.args.length)&&e.push(r)}}return e.concat(this.args.map(function(t){return t.serialize()}))};var ce=function(t){this.type=$t,this.sections=t};ce.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var i=t[1];if(!Array.isArray(i)&&"object"==typeof i)return e.error("First argument must be an image or text section.");for(var r=[],n=!1,o=1;o<=t.length-1;++o){var a=t[o];if(n&&"object"==typeof a&&!Array.isArray(a)){n=!1;var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,Ft)))return null;var l=null;if(a["text-font"]&&!(l=e.parse(a["text-font"],1,Gt(Ut))))return null;var u=null;if(a["text-color"]&&!(u=e.parse(a["text-color"],1,jt)))return null;var c=r[r.length-1];c.scale=s,c.font=l,c.textColor=u}else{var p=e.parse(t[o],1,qt);if(!p)return null;var h=p.type.kind;if("string"!==h&&"value"!==h&&"null"!==h&&"resolvedImage"!==h)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");n=!0,r.push({content:p,scale:null,font:null,textColor:null})}}return new ce(r)},ce.prototype.evaluate=function(i){return new ee(this.sections.map(function(t){var e=t.content.evaluate(i);return ne(e)===Ht?new te("",e,null,null,null):new te(oe(e),null,t.scale?t.scale.evaluate(i):null,t.font?t.font.evaluate(i).join(","):null,t.textColor?t.textColor.evaluate(i):null)}))},ce.prototype.eachChild=function(t){for(var e=0,i=this.sections;e<i.length;e+=1){var r=i[e];t(r.content),r.scale&&t(r.scale),r.font&&t(r.font),r.textColor&&t(r.textColor)}},ce.prototype.possibleOutputs=function(){return[void 0]},ce.prototype.serialize=function(){for(var t=["format"],e=0,i=this.sections;e<i.length;e+=1){var r=i[e];t.push(r.content.serialize());var n={};r.scale&&(n["font-scale"]=r.scale.serialize()),r.font&&(n["text-font"]=r.font.serialize()),r.textColor&&(n["text-color"]=r.textColor.serialize()),t.push(n)}return t};var pe=function(t){this.type=Ht,this.input=t};pe.parse=function(t,e){if(2!==t.length)return e.error("Expected two arguments.");var i=e.parse(t[1],1,Ut);return i?new pe(i):e.error("No image name provided.")},pe.prototype.evaluate=function(t){var e=this.input.evaluate(t),i=!1;return t.availableImages&&-1<t.availableImages.indexOf(e)&&(i=!0),new ie({name:e,available:i})},pe.prototype.eachChild=function(t){t(this.input)},pe.prototype.possibleOutputs=function(){return[void 0]},pe.prototype.serialize=function(){return["image",this.input.serialize()]};var he={"to-boolean":Nt,"to-color":jt,"to-number":Ft,"to-string":Ut},de=function(t,e){this.type=t,this.args=e};de.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var i=t[0];if(("to-boolean"===i||"to-string"===i)&&2!==t.length)return e.error("Expected one argument.");for(var r=he[i],n=[],o=1;o<t.length;o++){var a=e.parse(t[o],o,qt);if(!a)return null;n.push(a)}return new de(r,n)},de.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,i,r=0,n=this.args;r<n.length;r+=1){if(i=null,(e=n[r].evaluate(t))instanceof Jt)return e;if("string"==typeof e){var o=t.parseColor(e);if(o)return o}else if(Array.isArray(e)&&!(i=e.length<3||4<e.length?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":re(e[0],e[1],e[2],e[3])))return new Jt(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new se(i||"Could not parse color from value '"+("string"==typeof e?e:String(JSON.stringify(e)))+"'")}if("number"!==this.type.kind)return"formatted"===this.type.kind?ee.fromString(oe(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?ie.fromString(oe(this.args[0].evaluate(t))):oe(this.args[0].evaluate(t));for(var a=null,s=0,l=this.args;s<l.length;s+=1){if(null===(a=l[s].evaluate(t)))return 0;var u=Number(a);if(!isNaN(u))return u}throw new se("Could not convert "+JSON.stringify(a)+" to number.")},de.prototype.eachChild=function(t){this.args.forEach(t)},de.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}))},de.prototype.serialize=function(){if("formatted"===this.type.kind)return new ce([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new pe(this.args[0]).serialize();var e=["to-"+this.type.kind];return this.eachChild(function(t){e.push(t.serialize())}),e};var fe=["Unknown","Point","LineString","Polygon"],me=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null};me.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},me.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?fe[this.feature.type]:this.feature.type:null},me.prototype.properties=function(){return this.feature&&this.feature.properties||{}},me.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Jt.parse(t)),e};var ye=function(t,e,i,r){this.name=t,this.type=e,this._evaluate=i,this.args=r};ye.prototype.evaluate=function(t){return this._evaluate(t,this.args)},ye.prototype.eachChild=function(t){this.args.forEach(t)},ye.prototype.possibleOutputs=function(){return[void 0]},ye.prototype.serialize=function(){return[this.name].concat(this.args.map(function(t){return t.serialize()}))},ye.parse=function(i,t){var e,r=i[0],n=ye.definitions[r];if(!n)return t.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(n)?n[0]:n.type,a=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,s=a.filter(function(t){var e=t[0];return!Array.isArray(e)||e.length===i.length-1}),l=null,u=0,c=s;u<c.length;u+=1){var p=c[u],h=p[0],d=p[1];l=new we(t.registry,t.path,null,t.scope);for(var f=[],m=!1,y=1;y<i.length;y++){var v=i[y],g=Array.isArray(h)?h[y-1]:h.type,_=l.parse(v,1+f.length,g);if(!_){m=!0;break}f.push(_)}if(!m)if(Array.isArray(h)&&h.length!==f.length)l.error("Expected "+h.length+" arguments, but found "+f.length+" instead.");else{for(var x=0;x<f.length;x++){var b=Array.isArray(h)?h[x]:h.type,w=f[x];l.concat(x+1).checkSubtype(b,w.type)}if(0===l.errors.length)return new ye(r,o,d,f)}}if(1===s.length)(e=t.errors).push.apply(e,l.errors);else{for(var S=(s.length?s:a).map(function(t){var e;return e=t[0],Array.isArray(e)?"("+e.map(Wt).join(", ")+")":"("+Wt(e.type)+"...)"}).join(" | "),T=[],k=1;k<i.length;k++){var E=t.parse(i[k],1+T.length);if(!E)return null;T.push(Wt(E.type))}t.error("Expected arguments of type "+S+", but found ("+T.join(", ")+") instead.")}return null},ye.register=function(t,e){for(var i in ye.definitions=e)t[i]=ye};var ve=function(t,e,i){this.type=Zt,this.locale=i,this.caseSensitive=t,this.diacriticSensitive=e};function ge(t){if(t instanceof ye){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}var e=!0;return t.eachChild(function(t){e&&!ge(t)&&(e=!1)}),e}function _e(t){if(t instanceof ye&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild(function(t){e&&!_e(t)&&(e=!1)}),e}function xe(t,e){if(t instanceof ye&&0<=e.indexOf(t.name))return!1;var i=!0;return t.eachChild(function(t){i&&!xe(t,e)&&(i=!1)}),i}ve.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var i=t[1];if("object"!=typeof i||Array.isArray(i))return e.error("Collator options argument must be an object.");var r=e.parse(void 0!==i["case-sensitive"]&&i["case-sensitive"],1,Nt);if(!r)return null;var n=e.parse(void 0!==i["diacritic-sensitive"]&&i["diacritic-sensitive"],1,Nt);if(!n)return null;var o=null;return i.locale&&!(o=e.parse(i.locale,1,Ut))?null:new ve(r,n,o)},ve.prototype.evaluate=function(t){return new Qt(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},ve.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},ve.prototype.possibleOutputs=function(){return[void 0]},ve.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]};var be=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};be.parse=function(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var i=t[1];return e.scope.has(i)?new be(i,e.scope.get(i)):e.error('Unknown variable "'+i+'". Make sure "'+i+'" has been bound in an enclosing "let" expression before using it.',1)},be.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},be.prototype.eachChild=function(){},be.prototype.possibleOutputs=function(){return[void 0]},be.prototype.serialize=function(){return["var",this.name]};var we=function(t,e,i,r,n){void 0===e&&(e=[]),void 0===r&&(r=new Bt),void 0===n&&(n=[]),this.registry=t,this.path=e,this.key=e.map(function(t){return"["+t+"]"}).join(""),this.scope=r,this.errors=n,this.expectedType=i};function Se(t,e){for(var i,r,n=t.length-1,o=0,a=n,s=0;o<=a;)if(i=t[s=Math.floor((o+a)/2)],r=t[s+1],i<=e){if(s===n||e<r)return s;o=s+1}else{if(!(e<i))throw new se("Input is not a number.");a=s-1}return 0}we.prototype.parse=function(t,e,i,r,n){return void 0===n&&(n={}),e?this.concat(e,i,r)._parse(t,n):this._parse(t,n)},we.prototype._parse=function(t,e){function i(t,e,i){return"assert"===i?new ue(e,[t]):"coerce"===i?new de(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var r=t[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+typeof r+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var n=this.registry[r];if(n){var o=n.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=i(o,a,e.typeAnnotation||"coerce");else o=i(o,a,e.typeAnnotation||"assert")}if(!(o instanceof ae)&&"resolvedImage"!==o.type.kind&&function e(t){if(t instanceof be)return e(t.boundExpression);if(t instanceof ye&&"error"===t.name)return!1;if(t instanceof ve)return!1;var i=t instanceof de||t instanceof ue,r=!0;return t.eachChild(function(t){r=i?r&&e(t):r&&t instanceof ae}),!!r&&(ge(t)&&xe(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]))}(o)){var l=new me;try{o=new ae(o.type,o.evaluate(l))}catch(t){return this.error(t.message),null}}return o}return this.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===t?this.error("'undefined' value invalid. Use null instead."):"object"==typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof t+" instead.")},we.prototype.concat=function(t,e,i){var r="number"==typeof t?this.path.concat(t):this.path,n=i?this.scope.concat(i):this.scope;return new we(this.registry,r,e||null,n,this.errors)},we.prototype.error=function(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];var r=""+this.key+e.map(function(t){return"["+t+"]"}).join("");this.errors.push(new Rt(r,t))},we.prototype.checkSubtype=function(t,e){var i=Kt(t,e);return i&&this.error(i),i};var Te=function(t,e,i){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var r=0,n=i;r<n.length;r+=1){var o=n[r],a=o[0],s=o[1];this.labels.push(a),this.outputs.push(s)}};function ke(t,e,i){return t*(1-i)+e*i}Te.parse=function(t,e){if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");var i=e.parse(t[1],1,Ft);if(!i)return null;var r=[],n=null;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var o=1;o<t.length;o+=2){var a=1===o?-1/0:t[o],s=t[o+1],l=o,u=o+1;if("number"!=typeof a)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(r.length&&r[r.length-1][0]>=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var c=e.parse(s,u,n);if(!c)return null;n=n||c.type,r.push([a,c])}return new Te(n,i,r)},Te.prototype.evaluate=function(t){var e=this.labels,i=this.outputs;if(1===e.length)return i[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return i[0].evaluate(t);var n=e.length;return r>=e[n-1]?i[n-1].evaluate(t):i[Se(e,r)].evaluate(t)},Te.prototype.eachChild=function(t){t(this.input);for(var e=0,i=this.outputs;e<i.length;e+=1)t(i[e])},Te.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()}))},Te.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e<this.labels.length;e++)0<e&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ee=Object.freeze({__proto__:null,number:ke,color:function(t,e,i){return new Jt(ke(t.r,e.r,i),ke(t.g,e.g,i),ke(t.b,e.b,i),ke(t.a,e.a,i))},array:function(t,i,r){return t.map(function(t,e){return ke(t,i[e],r)})}}),Ce=4/29,Ae=6/29,Ie=3*Ae*Ae,ze=Ae*Ae*Ae,Pe=Math.PI/180,Me=180/Math.PI;function Le(t){return ze<t?Math.pow(t,1/3):t/Ie+Ce}function De(t){return Ae<t?t*t*t:Ie*(t-Ce)}function Re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Be(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Oe(t){var e=Be(t.r),i=Be(t.g),r=Be(t.b),n=Le((.4124564*e+.3575761*i+.1804375*r)/.95047),o=Le((.2126729*e+.7151522*i+.072175*r)/1);return{l:116*o-16,a:500*(n-o),b:200*(o-Le((.0193339*e+.119192*i+.9503041*r)/1.08883)),alpha:t.a}}function Fe(t){var e=(t.l+16)/116,i=isNaN(t.a)?e:e+t.a/500,r=isNaN(t.b)?e:e-t.b/200;return e=1*De(e),i=.95047*De(i),r=1.08883*De(r),new Jt(Re(3.2404542*i-1.5371385*e-.4985314*r),Re(-.969266*i+1.8760108*e+.041556*r),Re(.0556434*i-.2040259*e+1.0572252*r),t.alpha)}var Ue={forward:Oe,reverse:Fe,interpolate:function(t,e,i){return{l:ke(t.l,e.l,i),a:ke(t.a,e.a,i),b:ke(t.b,e.b,i),alpha:ke(t.alpha,e.alpha,i)}}},Ne={forward:function(t){var e=Oe(t),i=e.l,r=e.a,n=e.b,o=Math.atan2(n,r)*Me;return{h:o<0?o+360:o,c:Math.sqrt(r*r+n*n),l:i,alpha:t.a}},reverse:function(t){var e=t.h*Pe,i=t.c;return Fe({l:t.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:t.alpha})},interpolate:function(t,e,i){return{h:(r=t.h,n=e.h,o=i,a=n-r,r+o*(180<a||a<-180?a-360*Math.round(a/360):a)),c:ke(t.c,e.c,i),l:ke(t.l,e.l,i),alpha:ke(t.alpha,e.alpha,i)};var r,n,o,a}},je=Object.freeze({__proto__:null,lab:Ue,hcl:Ne}),Ve=function(t,e,i,r,n){this.type=t,this.operator=e,this.interpolation=i,this.input=r,this.labels=[],this.outputs=[];for(var o=0,a=n;o<a.length;o+=1){var s=a[o],l=s[0],u=s[1];this.labels.push(l),this.outputs.push(u)}};function qe(t,e,i,r){var n=r-i,o=t-i;return 0===n?0:1===e?o/n:(Math.pow(e,o)-1)/(Math.pow(e,n)-1)}Ve.interpolationFactor=function(t,e,i,r){var n=0;if("exponential"===t.name)n=qe(e,t.base,i,r);else if("linear"===t.name)n=qe(e,1,i,r);else if("cubic-bezier"===t.name){var o=t.controlPoints;n=new a(o[0],o[1],o[2],o[3]).solve(qe(e,1,i,r))}return n},Ve.parse=function(t,e){var i=t[0],r=t[1],n=t[2],o=t.slice(3);if(!Array.isArray(r)||0===r.length)return e.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){var a=r[1];if("number"!=typeof a)return e.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:a}}else{if("cubic-bezier"!==r[0])return e.error("Unknown interpolation type "+String(r[0]),1,0);var s=r.slice(1);if(4!==s.length||s.some(function(t){return"number"!=typeof t||t<0||1<t}))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(n=e.parse(n,2,Ft)))return null;var l=[],u=null;"interpolate-hcl"===i||"interpolate-lab"===i?u=jt:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var c=0;c<o.length;c+=2){var p=o[c],h=o[c+1],d=c+3,f=c+4;if("number"!=typeof p)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',d);if(l.length&&l[l.length-1][0]>=p)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);var m=e.parse(h,f,u);if(!m)return null;u=u||m.type,l.push([p,m])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new Ve(u,i,r,n,l):e.error("Type "+Wt(u)+" is not interpolatable.")},Ve.prototype.evaluate=function(t){var e=this.labels,i=this.outputs;if(1===e.length)return i[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return i[0].evaluate(t);var n=e.length;if(r>=e[n-1])return i[n-1].evaluate(t);var o=Se(e,r),a=e[o],s=e[o+1],l=Ve.interpolationFactor(this.interpolation,r,a,s),u=i[o].evaluate(t),c=i[o+1].evaluate(t);return"interpolate"===this.operator?Ee[this.type.kind.toLowerCase()](u,c,l):"interpolate-hcl"===this.operator?Ne.reverse(Ne.interpolate(Ne.forward(u),Ne.forward(c),l)):Ue.reverse(Ue.interpolate(Ue.forward(u),Ue.forward(c),l))},Ve.prototype.eachChild=function(t){t(this.input);for(var e=0,i=this.outputs;e<i.length;e+=1)t(i[e])},Ve.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()}))},Ve.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],i=0;i<this.labels.length;i++)e.push(this.labels[i],this.outputs[i].serialize());return e};var Ze=function(t,e){this.type=t,this.args=e};Ze.parse=function(t,e){if(t.length<2)return e.error("Expectected at least one argument.");var i=null,r=e.expectedType;r&&"value"!==r.kind&&(i=r);for(var n=[],o=0,a=t.slice(1);o<a.length;o+=1){var s=a[o],l=e.parse(s,1+n.length,i,void 0,{typeAnnotation:"omit"});if(!l)return null;i=i||l.type,n.push(l)}var u=r&&n.some(function(t){return Kt(r,t.type)});return new Ze(u?qt:i,n)},Ze.prototype.evaluate=function(t){for(var e,i=null,r=0,n=0,o=this.args;n<o.length&&(r++,(i=o[n].evaluate(t))&&i instanceof ie&&!i.available&&(e||(e=i.name),i=null,r===this.args.length&&(i=e)),null===i);n+=1);return i},Ze.prototype.eachChild=function(t){this.args.forEach(t)},Ze.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}))},Ze.prototype.serialize=function(){var e=["coalesce"];return this.eachChild(function(t){e.push(t.serialize())}),e};var $e=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};$e.prototype.evaluate=function(t){return this.result.evaluate(t)},$e.prototype.eachChild=function(t){for(var e=0,i=this.bindings;e<i.length;e+=1)t(i[e][1]);t(this.result)},$e.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var i=[],r=1;r<t.length-1;r+=2){var n=t[r];if("string"!=typeof n)return e.error("Expected string, but found "+typeof n+" instead.",r);if(/[^a-zA-Z0-9_]/.test(n))return e.error("Variable names must contain only alphanumeric characters or '_'.",r);var o=e.parse(t[r+1],r+1);if(!o)return null;i.push([n,o])}var a=e.parse(t[t.length-1],t.length-1,e.expectedType,i);return a?new $e(i,a):null},$e.prototype.possibleOutputs=function(){return this.result.possibleOutputs()},$e.prototype.serialize=function(){for(var t=["let"],e=0,i=this.bindings;e<i.length;e+=1){var r=i[e],n=r[0],o=r[1];t.push(n,o.serialize())}return t.push(this.result.serialize()),t};var He=function(t,e,i){this.type=t,this.index=e,this.input=i};He.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var i=e.parse(t[1],1,Ft),r=e.parse(t[2],2,Gt(e.expectedType||qt));if(!i||!r)return null;var n=r.type;return new He(n.itemType,i,r)},He.prototype.evaluate=function(t){var e=this.index.evaluate(t),i=this.input.evaluate(t);if(e<0)throw new se("Array index out of bounds: "+e+" < 0.");if(e>=i.length)throw new se("Array index out of bounds: "+e+" > "+(i.length-1)+".");if(e!==Math.floor(e))throw new se("Array index must be an integer, but found "+e+" instead.");return i[e]},He.prototype.eachChild=function(t){t(this.index),t(this.input)},He.prototype.possibleOutputs=function(){return[void 0]},He.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Ge=function(t,e){this.type=Nt,this.needle=t,this.haystack=e};Ge.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var i,r=e.parse(t[1],1,qt),n=e.parse(t[2],2,qt);return r&&n?"boolean"!==(i=r.type).kind&&"string"!==i.kind&&"number"!==i.kind&&"null"!==i.kind&&"value"!==i.kind?e.error("Expected first argument to be of type boolean, string, number or null, but found "+Wt(r.type)+" instead"):new Ge(r,n):null},Ge.prototype.evaluate=function(t){var e,i=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!i||!r)return!1;if("boolean"!=typeof i&&"string"!=typeof i&&"number"!=typeof i)throw new se("Expected first argument to be of type boolean, string or number, but found "+Wt(ne(i))+" instead.");if(e=r,!Array.isArray(e)&&"string"!=typeof e)throw new se("Expected second argument to be of type array or string, but found "+Wt(ne(r))+" instead.");return 0<=r.indexOf(i)},Ge.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},Ge.prototype.possibleOutputs=function(){return[!0,!1]},Ge.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var We=function(t,e,i,r,n,o){this.inputType=t,this.type=e,this.input=i,this.cases=r,this.outputs=n,this.otherwise=o};We.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var i,r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var n={},o=[],a=2;a<t.length-1;a+=2){var s=t[a],l=t[a+1];Array.isArray(s)||(s=[s]);var u=e.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var c=0,p=s;c<p.length;c+=1){var h=p[c];if("number"!=typeof h&&"string"!=typeof h)return u.error("Branch labels must be numbers or strings.");if("number"==typeof h&&Math.abs(h)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof h&&Math.floor(h)!==h)return u.error("Numeric branch labels must be integer values.");if(i){if(u.checkSubtype(i,ne(h)))return null}else i=ne(h);if(void 0!==n[String(h)])return u.error("Branch labels must be unique.");n[String(h)]=o.length}var d=e.parse(l,a,r);if(!d)return null;r=r||d.type,o.push(d)}var f=e.parse(t[1],1,qt);if(!f)return null;var m=e.parse(t[t.length-1],t.length-1,r);return m?"value"!==f.type.kind&&e.concat(1).checkSubtype(i,f.type)?null:new We(i,r,f,n,o,m):null},We.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(ne(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},We.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},We.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()})).concat(this.otherwise.possibleOutputs())},We.prototype.serialize=function(){for(var e=this,t=["match",this.input.serialize()],i=[],r={},n=0,o=Object.keys(this.cases).sort();n<o.length;n+=1){var a=o[n];void 0===(p=r[this.cases[a]])?(r[this.cases[a]]=i.length,i.push([this.cases[a],[a]])):i[p][1].push(a)}for(var s=function(t){return"number"===e.inputType.kind?Number(t):t},l=0,u=i;l<u.length;l+=1){var c=u[l],p=c[0],h=c[1];1===h.length?t.push(s(h[0])):t.push(h.map(s)),t.push(this.outputs[outputIndex$1].serialize())}return t.push(this.otherwise.serialize()),t};var Xe=function(t,e,i){this.type=t,this.branches=e,this.otherwise=i};function Ke(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function Ye(t,e,i,r){return 0===r.compare(e,i)}function Je(s,l,u){var c="=="!==s&&"!="!==s;return function(){function a(t,e,i){this.type=Nt,this.lhs=t,this.rhs=e,this.collator=i,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return a.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var i=t[0],r=e.parse(t[1],1,qt);if(!r)return null;if(!Ke(i,r.type))return e.concat(1).error('"'+i+"\" comparisons are not supported for type '"+Wt(r.type)+"'.");var n=e.parse(t[2],2,qt);if(!n)return null;if(!Ke(i,n.type))return e.concat(2).error('"'+i+"\" comparisons are not supported for type '"+Wt(n.type)+"'.");if(r.type.kind!==n.type.kind&&"value"!==r.type.kind&&"value"!==n.type.kind)return e.error("Cannot compare types '"+Wt(r.type)+"' and '"+Wt(n.type)+"'.");c&&("value"===r.type.kind&&"value"!==n.type.kind?r=new ue(n.type,[r]):"value"!==r.type.kind&&"value"===n.type.kind&&(n=new ue(r.type,[n])));var o=null;if(4===t.length){if("string"!==r.type.kind&&"string"!==n.type.kind&&"value"!==r.type.kind&&"value"!==n.type.kind)return e.error("Cannot use collator to compare non-string types.");if(!(o=e.parse(t[3],3,Zt)))return null}return new a(r,n,o)},a.prototype.evaluate=function(t){var e=this.lhs.evaluate(t),i=this.rhs.evaluate(t);if(c&&this.hasUntypedArgument){var r=ne(e),n=ne(i);if(r.kind!==n.kind||"string"!==r.kind&&"number"!==r.kind)throw new se('Expected arguments for "'+s+'" to be (string, string) or (number, number), but found ('+r.kind+", "+n.kind+") instead.")}if(this.collator&&!c&&this.hasUntypedArgument){var o=ne(e),a=ne(i);if("string"!==o.kind||"string"!==a.kind)return l(t,e,i)}return this.collator?u(t,e,i,this.collator.evaluate(t)):l(t,e,i)},a.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},a.prototype.possibleOutputs=function(){return[!0,!1]},a.prototype.serialize=function(){var e=[s];return this.eachChild(function(t){e.push(t.serialize())}),e},a}()}Xe.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!=0)return e.error("Expected an odd number of arguments.");var i;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(var r=[],n=1;n<t.length-1;n+=2){var o=e.parse(t[n],n,Nt);if(!o)return null;var a=e.parse(t[n+1],n+1,i);if(!a)return null;r.push([o,a]),i=i||a.type}var s=e.parse(t[t.length-1],t.length-1,i);return s?new Xe(i,r,s):null},Xe.prototype.evaluate=function(t){for(var e=0,i=this.branches;e<i.length;e+=1){var r=i[e],n=r[0],o=r[1];if(n.evaluate(t))return o.evaluate(t)}return this.otherwise.evaluate(t)},Xe.prototype.eachChild=function(t){for(var e=0,i=this.branches;e<i.length;e+=1){var r=i[e],n=r[0],o=r[1];t(n),t(o)}t(this.otherwise)},Xe.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.branches.map(function(t){return t[0],t[1].possibleOutputs()})).concat(this.otherwise.possibleOutputs())},Xe.prototype.serialize=function(){var e=["case"];return this.eachChild(function(t){e.push(t.serialize())}),e};var Qe=Je("==",function(t,e,i){return e===i},Ye),ti=Je("!=",function(t,e,i){return e!==i},function(t,e,i,r){return!Ye(0,e,i,r)}),ei=Je("<",function(t,e,i){return e<i},function(t,e,i,r){return r.compare(e,i)<0}),ii=Je(">",function(t,e,i){return i<e},function(t,e,i,r){return 0<r.compare(e,i)}),ri=Je("<=",function(t,e,i){return e<=i},function(t,e,i,r){return r.compare(e,i)<=0}),ni=Je(">=",function(t,e,i){return i<=e},function(t,e,i,r){return 0<=r.compare(e,i)}),oi=function(t,e,i,r,n){this.type=Ut,this.number=t,this.locale=e,this.currency=i,this.minFractionDigits=r,this.maxFractionDigits=n};oi.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var i=e.parse(t[1],1,Ft);if(!i)return null;var r=t[2];if("object"!=typeof r||Array.isArray(r))return e.error("NumberFormat options argument must be an object.");var n=null;if(r.locale&&!(n=e.parse(r.locale,1,Ut)))return null;var o=null;if(r.currency&&!(o=e.parse(r.currency,1,Ut)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=e.parse(r["min-fraction-digits"],1,Ft)))return null;var s=null;return r["max-fraction-digits"]&&!(s=e.parse(r["max-fraction-digits"],1,Ft))?null:new oi(i,n,o,a,s)},oi.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},oi.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},oi.prototype.possibleOutputs=function(){return[void 0]},oi.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var ai=function(t){this.type=Ft,this.input=t};ai.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var i=e.parse(t[1],1);return i?"array"!==i.type.kind&&"string"!==i.type.kind&&"value"!==i.type.kind?e.error("Expected argument of type string or array, but found "+Wt(i.type)+" instead."):new ai(i):null},ai.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new se("Expected value to be of type string or array, but found "+Wt(ne(e))+" instead.")},ai.prototype.eachChild=function(t){t(this.input)},ai.prototype.possibleOutputs=function(){return[void 0]},ai.prototype.serialize=function(){var e=["length"];return this.eachChild(function(t){e.push(t.serialize())}),e};var si={"==":Qe,"!=":ti,">":ii,"<":ei,">=":ni,"<=":ri,array:ue,at:He,boolean:ue,case:Xe,coalesce:Ze,collator:ve,format:ce,image:pe,in:Ge,interpolate:Ve,"interpolate-hcl":Ve,"interpolate-lab":Ve,length:ai,let:$e,literal:ae,match:We,number:ue,"number-format":oi,object:ue,step:Te,string:ue,"to-boolean":de,"to-color":de,"to-number":de,"to-string":de,var:be};function li(t,e){var i=e[0],r=e[1],n=e[2],o=e[3];i=i.evaluate(t),r=r.evaluate(t),n=n.evaluate(t);var a=o?o.evaluate(t):1,s=re(i,r,n,a);if(s)throw new se(s);return new Jt(i/255*a,r/255*a,n/255*a,a)}function ui(t,e){return t in e}function ci(t,e){var i=e[t];return void 0===i?null:i}function pi(t){return{type:t}}function hi(t){return{result:"success",value:t}}function di(t){return{result:"error",value:t}}function fi(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function mi(t){return!!t.expression&&-1<t.expression.parameters.indexOf("zoom")}function yi(t){return!!t.expression&&t.expression.interpolated}function vi(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function gi(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function _i(t){return t}function xi(t,e,i){return void 0!==t?t:void 0!==e?e:void 0!==i?i:void 0}function bi(t,e,i,r,n){return xi(typeof i===n?r[i]:void 0,t.default,e.default)}function wi(t,e,i){if("number"!==vi(i))return xi(t.default,e.default);var r=t.stops.length;if(1===r)return t.stops[0][1];if(i<=t.stops[0][0])return t.stops[0][1];if(i>=t.stops[r-1][0])return t.stops[r-1][1];var n=Se(t.stops.map(function(t){return t[0]}),i);return t.stops[n][1]}function Si(t,e,i){var r=void 0!==t.base?t.base:1;if("number"!==vi(i))return xi(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(i<=t.stops[0][0])return t.stops[0][1];if(i>=t.stops[n-1][0])return t.stops[n-1][1];var o,a,s,l,u,c=Se(t.stops.map(function(t){return t[0]}),i),p=(o=i,a=r,s=t.stops[c][0],l=t.stops[c+1][0]-s,u=o-s,0===l?0:1===a?u/l:(Math.pow(a,u)-1)/(Math.pow(a,l)-1)),h=t.stops[c][1],d=t.stops[c+1][1],f=Ee[e.type]||_i;if(t.colorSpace&&"rgb"!==t.colorSpace){var m=je[t.colorSpace];f=function(t,e){return m.reverse(m.interpolate(m.forward(t),m.forward(e),p))}}return"function"==typeof h.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i=h.evaluate.apply(void 0,t),r=d.evaluate.apply(void 0,t);if(void 0!==i&&void 0!==r)return f(i,r,p)}}:f(h,d,p)}function Ti(t,e,i){return"color"===e.type?i=Jt.parse(i):"formatted"===e.type?i=ee.fromString(i.toString()):"resolvedImage"===e.type?i=ie.fromString(i.toString()):vi(i)===e.type||"enum"===e.type&&e.values[i]||(i=void 0),xi(i,t.default,e.default)}ye.register(si,{error:[{kind:"error"},[Ut],function(t,e){var i=e[0];throw new se(i.evaluate(t))}],typeof:[Ut,[qt],function(t,e){return Wt(ne(e[0].evaluate(t)))}],"to-rgba":[Gt(Ft,4),[jt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[jt,[Ft,Ft,Ft],li],rgba:[jt,[Ft,Ft,Ft,Ft],li],has:{type:Nt,overloads:[[[Ut],function(t,e){return ui(e[0].evaluate(t),t.properties())}],[[Ut,Vt],function(t,e){var i=e[0],r=e[1];return ui(i.evaluate(t),r.evaluate(t))}]]},get:{type:qt,overloads:[[[Ut],function(t,e){return ci(e[0].evaluate(t),t.properties())}],[[Ut,Vt],function(t,e){var i=e[0],r=e[1];return ci(i.evaluate(t),r.evaluate(t))}]]},"feature-state":[qt,[Ut],function(t,e){return ci(e[0].evaluate(t),t.featureState||{})}],properties:[Vt,[],function(t){return t.properties()}],"geometry-type":[Ut,[],function(t){return t.geometryType()}],id:[qt,[],function(t){return t.id()}],zoom:[Ft,[],function(t){return t.globals.zoom}],"heatmap-density":[Ft,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Ft,[],function(t){return t.globals.lineProgress||0}],accumulated:[qt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Ft,pi(Ft),function(t,e){for(var i=0,r=0,n=e;r<n.length;r+=1)i+=n[r].evaluate(t);return i}],"*":[Ft,pi(Ft),function(t,e){for(var i=1,r=0,n=e;r<n.length;r+=1)i*=n[r].evaluate(t);return i}],"-":{type:Ft,overloads:[[[Ft,Ft],function(t,e){var i=e[0],r=e[1];return i.evaluate(t)-r.evaluate(t)}],[[Ft],function(t,e){return-e[0].evaluate(t)}]]},"/":[Ft,[Ft,Ft],function(t,e){var i=e[0],r=e[1];return i.evaluate(t)/r.evaluate(t)}],"%":[Ft,[Ft,Ft],function(t,e){var i=e[0],r=e[1];return i.evaluate(t)%r.evaluate(t)}],ln2:[Ft,[],function(){return Math.LN2}],pi:[Ft,[],function(){return Math.PI}],e:[Ft,[],function(){return Math.E}],"^":[Ft,[Ft,Ft],function(t,e){var i=e[0],r=e[1];return Math.pow(i.evaluate(t),r.evaluate(t))}],sqrt:[Ft,[Ft],function(t,e){var i=e[0];return Math.sqrt(i.evaluate(t))}],log10:[Ft,[Ft],function(t,e){var i=e[0];return Math.log(i.evaluate(t))/Math.LN10}],ln:[Ft,[Ft],function(t,e){var i=e[0];return Math.log(i.evaluate(t))}],log2:[Ft,[Ft],function(t,e){var i=e[0];return Math.log(i.evaluate(t))/Math.LN2}],sin:[Ft,[Ft],function(t,e){var i=e[0];return Math.sin(i.evaluate(t))}],cos:[Ft,[Ft],function(t,e){var i=e[0];return Math.cos(i.evaluate(t))}],tan:[Ft,[Ft],function(t,e){var i=e[0];return Math.tan(i.evaluate(t))}],asin:[Ft,[Ft],function(t,e){var i=e[0];return Math.asin(i.evaluate(t))}],acos:[Ft,[Ft],function(t,e){var i=e[0];return Math.acos(i.evaluate(t))}],atan:[Ft,[Ft],function(t,e){var i=e[0];return Math.atan(i.evaluate(t))}],min:[Ft,pi(Ft),function(e,t){return Math.min.apply(Math,t.map(function(t){return t.evaluate(e)}))}],max:[Ft,pi(Ft),function(e,t){return Math.max.apply(Math,t.map(function(t){return t.evaluate(e)}))}],abs:[Ft,[Ft],function(t,e){var i=e[0];return Math.abs(i.evaluate(t))}],round:[Ft,[Ft],function(t,e){var i=e[0].evaluate(t);return i<0?-Math.round(-i):Math.round(i)}],floor:[Ft,[Ft],function(t,e){var i=e[0];return Math.floor(i.evaluate(t))}],ceil:[Ft,[Ft],function(t,e){var i=e[0];return Math.ceil(i.evaluate(t))}],"filter-==":[Nt,[Ut,qt],function(t,e){var i=e[0],r=e[1];return t.properties()[i.value]===r.value}],"filter-id-==":[Nt,[qt],function(t,e){var i=e[0];return t.id()===i.value}],"filter-type-==":[Nt,[Ut],function(t,e){var i=e[0];return t.geometryType()===i.value}],"filter-<":[Nt,[Ut,qt],function(t,e){var i=e[0],r=e[1],n=t.properties()[i.value],o=r.value;return typeof n==typeof o&&n<o}],"filter-id-<":[Nt,[qt],function(t,e){var i=e[0],r=t.id(),n=i.value;return typeof r==typeof n&&r<n}],"filter->":[Nt,[Ut,qt],function(t,e){var i=e[0],r=e[1],n=t.properties()[i.value],o=r.value;return typeof n==typeof o&&o<n}],"filter-id->":[Nt,[qt],function(t,e){var i=e[0],r=t.id(),n=i.value;return typeof r==typeof n&&n<r}],"filter-<=":[Nt,[Ut,qt],function(t,e){var i=e[0],r=e[1],n=t.properties()[i.value],o=r.value;return typeof n==typeof o&&n<=o}],"filter-id-<=":[Nt,[qt],function(t,e){var i=e[0],r=t.id(),n=i.value;return typeof r==typeof n&&r<=n}],"filter->=":[Nt,[Ut,qt],function(t,e){var i=e[0],r=e[1],n=t.properties()[i.value],o=r.value;return typeof n==typeof o&&o<=n}],"filter-id->=":[Nt,[qt],function(t,e){var i=e[0],r=t.id(),n=i.value;return typeof r==typeof n&&n<=r}],"filter-has":[Nt,[qt],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[Nt,[],function(t){return null!==t.id()}],"filter-type-in":[Nt,[Gt(Ut)],function(t,e){return 0<=e[0].value.indexOf(t.geometryType())}],"filter-id-in":[Nt,[Gt(qt)],function(t,e){return 0<=e[0].value.indexOf(t.id())}],"filter-in-small":[Nt,[Ut,Gt(qt)],function(t,e){var i=e[0];return 0<=e[1].value.indexOf(t.properties()[i.value])}],"filter-in-large":[Nt,[Ut,Gt(qt)],function(t,e){var i=e[0],r=e[1];
1return function(t,e,i,r){for(;i<=r;){var n=i+r>>1;if(e[n]===t)return!0;e[n]>t?r=n-1:i=n+1}return!1}(t.properties()[i.value],r.value,0,r.value.length-1)}],all:{type:Nt,overloads:[[[Nt,Nt],function(t,e){var i=e[0],r=e[1];return i.evaluate(t)&&r.evaluate(t)}],[pi(Nt),function(t,e){for(var i=0,r=e;i<r.length;i+=1)if(!r[i].evaluate(t))return!1;return!0}]]},any:{type:Nt,overloads:[[[Nt,Nt],function(t,e){var i=e[0],r=e[1];return i.evaluate(t)||r.evaluate(t)}],[pi(Nt),function(t,e){for(var i=0,r=e;i<r.length;i+=1)if(r[i].evaluate(t))return!0;return!1}]]},"!":[Nt,[Nt],function(t,e){return!e[0].evaluate(t)}],"is-supported-script":[Nt,[Ut],function(t,e){var i=e[0],r=t.globals&&t.globals.isSupportedScript;return!r||r(i.evaluate(t))}],upcase:[Ut,[Ut],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Ut,[Ut],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Ut,pi(qt),function(e,t){return t.map(function(t){return oe(t.evaluate(e))}).join("")}],"resolved-locale":[Ut,[Zt],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var ki=function(t,e){var i;this.expression=t,this._warningHistory={},this._evaluator=new me,this._defaultValue=e?"color"===(i=e).type&&gi(i.default)?new Jt(0,0,0,0):"color"===i.type?Jt.parse(i.default)||null:void 0===i.default?null:i.default:null,this._enumValues=e&&"enum"===e.type?e.values:null};function Ei(t){return Array.isArray(t)&&0<t.length&&"string"==typeof t[0]&&t[0]in si}function Ci(t,e){var i,r,n=new we(si,[],e?(r={color:jt,string:Ut,number:Ft,enum:Ut,boolean:Nt,formatted:$t,resolvedImage:Ht},"array"===(i=e).type?Gt(r[i.value]||qt,i.length):r[i.type]):void 0),o=n.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return o?hi(new ki(o,e)):di(n.errors)}ki.prototype.evaluateWithoutErrorHandling=function(t,e,i,r,n){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=i,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=n,this.expression.evaluate(this._evaluator)},ki.prototype.evaluate=function(t,e,i,r,n){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=i||null,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=n||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||"number"==typeof o&&o!=o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new se("Expected value to be one of "+Object.keys(this._enumValues).map(function(t){return JSON.stringify(t)}).join(", ")+", but found "+JSON.stringify(o)+" instead.");return o}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var Ai=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!_e(e.expression)};Ai.prototype.evaluateWithoutErrorHandling=function(t,e,i,r,n){return this._styleExpression.evaluateWithoutErrorHandling(t,e,i,r,n)},Ai.prototype.evaluate=function(t,e,i,r,n){return this._styleExpression.evaluate(t,e,i,r,n)};var Ii=function(t,e,i,r){this.kind=t,this.zoomStops=i,this._styleExpression=e,this.isStateDependent="camera"!==t&&!_e(e.expression),this.interpolationType=r};function zi(t,e){if("error"===(t=Ci(t,e)).result)return t;var i=t.value.expression,r=ge(i);if(!r&&!fi(e))return di([new Rt("","data expressions not supported")]);var n=xe(i,["zoom"]);if(!n&&!mi(e))return di([new Rt("","zoom expressions not supported")]);var o=function i(t){var r=null;if(t instanceof $e)r=i(t.result);else if(t instanceof Ze)for(var e=0,n=t.args;e<n.length;e+=1){var o=n[e];if(r=i(o))break}else(t instanceof Te||t instanceof Ve)&&t.input instanceof ye&&"zoom"===t.input.name&&(r=t);return r instanceof Rt||t.eachChild(function(t){var e=i(t);e instanceof Rt?r=e:!r&&e?r=new Rt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):r&&e&&r!==e&&(r=new Rt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),r}(i);if(!o&&!n)return di([new Rt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof Rt)return di([o]);if(o instanceof Ve&&!yi(e))return di([new Rt("",'"interpolate" expressions cannot be used with this property')]);if(!o)return hi(new Ai(r?"constant":"source",t.value));var a=o instanceof Ve?o.interpolation:void 0;return hi(new Ii(r?"camera":"composite",t.value,o.labels,a))}
vendor: 11,986 bytes, line 1
1Ii.prototype.evaluateWithoutErrorHandling=function(t,e,i,r,n){return this._styleExpression.evaluateWithoutErrorHandling(t,e,i,r,n)},Ii.prototype.evaluate=function(t,e,i,r,n){return this._styleExpression.evaluate(t,e,i,r,n)},Ii.prototype.interpolationFactor=function(t,e,i){return this.interpolationType?Ve.interpolationFactor(this.interpolationType,t,e,i):0};var Pi=function(t,e){this._parameters=t,this._specification=e,Mt(this,function t(r,n){var o,a,s,e="color"===n.type,i=r.stops&&"object"==typeof r.stops[0][0],l=i||void 0!==r.property,u=i||!l,c=r.type||(yi(n)?"exponential":"interval");if(e&&((r=Mt({},r)).stops&&(r.stops=r.stops.map(function(t){return[t[0],Jt.parse(t[1])]})),r.default?r.default=Jt.parse(r.default):r.default=Jt.parse(n.default)),r.colorSpace&&"rgb"!==r.colorSpace&&!je[r.colorSpace])throw new Error("Unknown color space: "+r.colorSpace);if("exponential"===c)o=Si;else if("interval"===c)o=wi;else if("categorical"===c){o=bi,a=Object.create(null);for(var p=0,h=r.stops;p<h.length;p+=1){var d=h[p];a[d[0]]=d[1]}s=typeof r.stops[0][0]}else{if("identity"!==c)throw new Error('Unknown function type "'+c+'"');o=Ti}if(i){for(var f={},m=[],y=0;y<r.stops.length;y++){var v=r.stops[y],g=v[0].zoom;void 0===f[g]&&(f[g]={zoom:g,type:r.type,property:r.property,default:r.default,stops:[]},m.push(g)),f[g].stops.push([v[0].value,v[1]])}for(var _=[],x=0,b=m;x<b.length;x+=1){var w=b[x];_.push([f[w].zoom,t(f[w],n)])}var S={name:"linear"};return{kind:"composite",interpolationType:S,interpolationFactor:Ve.interpolationFactor.bind(void 0,S),zoomStops:_.map(function(t){return t[0]}),evaluate:function(t,e){var i=t.zoom;return Si({stops:_,base:r.base},n,i).evaluate(i,e)}}}if(u){var T="exponential"===c?{name:"exponential",base:void 0!==r.base?r.base:1}:null;return{kind:"camera",interpolationType:T,interpolationFactor:Ve.interpolationFactor.bind(void 0,T),zoomStops:r.stops.map(function(t){return t[0]}),evaluate:function(t){var e=t.zoom;return o(r,n,e,a,s)}}}return{kind:"source",evaluate:function(t,e){var i=e&&e.properties?e.properties[r.property]:void 0;return void 0===i?xi(r.default,n.default):o(r,n,i,a,s)}}}(this._parameters,this._specification))};function Mi(t){var e=t.key,i=t.value,r=t.valueSpec||{},n=t.objectElementValidators||{},o=t.style,a=t.styleSpec,s=[],l=vi(i);if("object"!==l)return[new zt(e,i,"object expected, "+l+" found")];for(var u in i){var c=u.split(".")[0],p=r[c]||r["*"],h=void 0;if(n[c])h=n[c];else if(r[c])h=rr;else if(n["*"])h=n["*"];else{if(!r["*"]){s.push(new zt(e,i[u],'unknown property "'+u+'"'));continue}h=rr}s=s.concat(h({key:(e?e+".":e)+u,value:i[u],valueSpec:p,style:o,styleSpec:a,object:i,objectKey:u},i))}for(var d in r)n[d]||r[d].required&&void 0===r[d].default&&void 0===i[d]&&s.push(new zt(e,i,'missing required property "'+d+'"'));return s}function Li(t){var e=t.value,i=t.valueSpec,r=t.style,n=t.styleSpec,o=t.key,a=t.arrayElementValidator||rr;if("array"!==vi(e))return[new zt(o,e,"array expected, "+vi(e)+" found")];if(i.length&&e.length!==i.length)return[new zt(o,e,"array length "+i.length+" expected, length "+e.length+" found")];if(i["min-length"]&&e.length<i["min-length"])return[new zt(o,e,"array length at least "+i["min-length"]+" expected, length "+e.length+" found")];var s={type:i.value,values:i.values};n.$version<7&&(s.function=i.function),"object"===vi(i.value)&&(s=i.value);for(var l=[],u=0;u<e.length;u++)l=l.concat(a({array:e,arrayIndex:u,value:e[u],valueSpec:s,style:r,styleSpec:n,key:o+"["+u+"]"}));return l}function Di(t){var e=t.key,i=t.value,r=t.valueSpec,n=vi(i);return"number"===n&&i!=i&&(n="NaN"),"number"!==n?[new zt(e,i,"number expected, "+n+" found")]:"minimum"in r&&i<r.minimum?[new zt(e,i,i+" is less than the minimum value "+r.minimum)]:"maximum"in r&&i>r.maximum?[new zt(e,i,i+" is greater than the maximum value "+r.maximum)]:[]}function Ri(t){var a,s,n,l=t.valueSpec,u=Lt(t.value.type),c={},e="categorical"!==u&&void 0===t.value.property,i=!e,o="array"===vi(t.value.stops)&&"array"===vi(t.value.stops[0])&&"object"===vi(t.value.stops[0][0]),r=Mi({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===u)return[new zt(t.key,t.value,'identity function may not have a "stops" property')];var e=[],i=t.value;return e=e.concat(Li({key:t.key,value:i,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:p})),"array"===vi(i)&&0===i.length&&e.push(new zt(t.key,i,"array must have at least one stop")),e},default:function(t){return rr({key:t.key,value:t.value,valueSpec:l,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===u&&e&&r.push(new zt(t.key,t.value,'missing required property "property"')),"identity"===u||t.value.stops||r.push(new zt(t.key,t.value,'missing required property "stops"')),"exponential"===u&&t.valueSpec.expression&&!yi(t.valueSpec)&&r.push(new zt(t.key,t.value,"exponential functions not supported")),8<=t.styleSpec.$version&&(i&&!fi(t.valueSpec)?r.push(new zt(t.key,t.value,"property functions not supported")):e&&!mi(t.valueSpec)&&r.push(new zt(t.key,t.value,"zoom functions not supported"))),"categorical"!==u&&!o||void 0!==t.value.property||r.push(new zt(t.key,t.value,'"property" property is required')),r;function p(t){var e=[],i=t.value,r=t.key;if("array"!==vi(i))return[new zt(r,i,"array expected, "+vi(i)+" found")];if(2!==i.length)return[new zt(r,i,"array length 2 expected, length "+i.length+" found")];if(o){if("object"!==vi(i[0]))return[new zt(r,i,"object expected, "+vi(i[0])+" found")];if(void 0===i[0].zoom)return[new zt(r,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new zt(r,i,"object stop key must have value")];if(n&&n>Lt(i[0].zoom))return[new zt(r,i[0].zoom,"stop zoom values must appear in ascending order")];Lt(i[0].zoom)!==n&&(n=Lt(i[0].zoom),s=void 0,c={}),e=e.concat(Mi({key:r+"[0]",value:i[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Di,value:h}}))}else e=e.concat(h({key:r+"[0]",value:i[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},i));return Ei(Dt(i[1]))?e.concat([new zt(r+"[1]",i[1],"expressions are not allowed in function stops.")]):e.concat(rr({key:r+"[1]",value:i[1],valueSpec:l,style:t.style,styleSpec:t.styleSpec}))}function h(t,e){var i=vi(t.value),r=Lt(t.value),n=null!==t.value?t.value:e;if(a){if(i!==a)return[new zt(t.key,n,i+" stop domain type must match previous stop domain type "+a)]}else a=i;if("number"!==i&&"string"!==i&&"boolean"!==i)return[new zt(t.key,n,"stop domain value must be a number, string, or boolean")];if("number"===i||"categorical"===u)return"categorical"!==u||"number"!==i||isFinite(r)&&Math.floor(r)===r?"categorical"!==u&&"number"===i&&void 0!==s&&r<s?[new zt(t.key,n,"stop domain values must appear in ascending order")]:(s=r,"categorical"===u&&r in c?[new zt(t.key,n,"stop domain values must be unique")]:(c[r]=!0,[])):[new zt(t.key,n,"integer expected, found "+r)];var o="number expected, "+i+" found";return fi(l)&&void 0===u&&(o+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new zt(t.key,n,o)]}}function Bi(e){var t=("property"===e.expressionContext?zi:Ci)(Dt(e.value),e.valueSpec);if("error"===t.result)return t.value.map(function(t){return new zt(""+e.key+t.key,e.value,t.message)});var i=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&-1!==i.possibleOutputs().indexOf(void 0))return[new zt(e.key,e.value,'Invalid data expression for "'+e.propertyKey+'". Output values must be contained as literals within the expression.')];if("property"===e.expressionContext&&"layout"===e.propertyType&&!_e(i))return[new zt(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!_e(i))return[new zt(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!xe(i,["zoom","feature-state"]))return[new zt(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!ge(i))return[new zt(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Oi(t){var e=t.key,i=t.value,r=t.valueSpec,n=[];return Array.isArray(r.values)?-1===r.values.indexOf(Lt(i))&&n.push(new zt(e,i,"expected one of ["+r.values.join(", ")+"], "+JSON.stringify(i)+" found")):-1===Object.keys(r.values).indexOf(Lt(i))&&n.push(new zt(e,i,"expected one of ["+Object.keys(r.values).join(", ")+"], "+JSON.stringify(i)+" found")),n}function Fi(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return 2<=t.length&&"$id"!==t[1]&&"$type"!==t[1];case"in":return 3<=t.length&&Array.isArray(t[2]);case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,i=t.slice(1);e<i.length;e+=1){var r=i[e];if(!Fi(r)&&"boolean"!=typeof r)return!1}return!0;default:return!0}}Pi.deserialize=function(t){return new Pi(t._parameters,t._specification)};var Ui={type:"boolean",default:!(Pi.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}}),transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Ni(t){if(null==t)return function(){return!0};Fi(t)||(t=Vi(t));var i=Ci(t,Ui);if("error"===i.result)throw new Error(i.value.map(function(t){return t.key+": "+t.message}).join(", "));return function(t,e){return i.value.evaluate(t,e)}}function ji(t,e){return t<e?-1:e<t?1:0}function Vi(t){if(!t)return!0;var e,i=t[0];return t.length<=1?"any"!==i:"=="===i?qi(t[1],t[2],"=="):"!="===i?Hi(qi(t[1],t[2],"==")):"<"===i||">"===i||"<="===i||">="===i?qi(t[1],t[2],i):"any"===i?(e=t.slice(1),["any"].concat(e.map(Vi))):"all"===i?["all"].concat(t.slice(1).map(Vi)):"none"===i?["all"].concat(t.slice(1).map(Vi).map(Hi)):"in"===i?Zi(t[1],t.slice(2)):"!in"===i?Hi(Zi(t[1],t.slice(2))):"has"===i?$i(t[1]):"!has"!==i||Hi($i(t[1]))}function qi(t,e,i){switch(t){case"$type":return["filter-type-"+i,e];case"$id":return["filter-id-"+i,e];default:return["filter-"+i,t,e]}}function Zi(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return 200<e.length&&!e.some(function(t){return typeof t!=typeof e[0]})?["filter-in-large",t,["literal",e.sort(ji)]]:["filter-in-small",t,["literal",e]]}}function $i(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Hi(t){return["!",t]}function Gi(t){return Fi(Dt(t.value))?Bi(Mt({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(e){var i=e.value,r=e.key;if("array"!==vi(i))return[new zt(r,i,"array expected, "+vi(i)+" found")];var n,o=e.styleSpec,a=[];if(i.length<1)return[new zt(r,i,"filter array must have at least 1 element")];switch(a=a.concat(Oi({key:r+"[0]",value:i[0],valueSpec:o.filter_operator,style:e.style,styleSpec:e.styleSpec})),Lt(i[0])){case"<":case"<=":case">":case">=":2<=i.length&&"$type"===Lt(i[1])&&a.push(new zt(r,i,'"$type" cannot be use with operator "'+i[0]+'"'));case"==":case"!=":3!==i.length&&a.push(new zt(r,i,'filter array for operator "'+i[0]+'" must have 3 elements'));case"in":case"!in":2<=i.length&&"string"!==(n=vi(i[1]))&&a.push(new zt(r+"[1]",i[1],"string expected, "+n+" found"));for(var s=2;s<i.length;s++)n=vi(i[s]),"$type"===Lt(i[1])?a=a.concat(Oi({key:r+"["+s+"]",value:i[s],valueSpec:o.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==n&&"number"!==n&&"boolean"!==n&&a.push(new zt(r+"["+s+"]",i[s],"string, number, or boolean expected, "+n+" found"));break;case"any":case"all":case"none":for(var l=1;l<i.length;
vendor: 4,833 bytes, line 1
1l++)a=a.concat(t({key:r+"["+l+"]",value:i[l],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":n=vi(i[1]),2!==i.length?a.push(new zt(r,i,'filter array for "'+i[0]+'" operator must have 2 elements')):"string"!==n&&a.push(new zt(r+"[1]",i[1],"string expected, "+n+" found"))}return a}(t)}function Wi(t,e){var i=t.key,r=t.style,n=t.styleSpec,o=t.value,a=t.objectKey,s=n[e+"_"+t.layerType];if(!s)return[];var l=a.match(/^(.*)-transition$/);if("paint"===e&&l&&s[l[1]]&&s[l[1]].transition)return rr({key:i,value:o,valueSpec:n.transition,style:r,styleSpec:n});var u,c=t.valueSpec||s[a];if(!c)return[new zt(i,o,'unknown property "'+a+'"')];if("string"===vi(o)&&fi(c)&&!c.tokens&&(u=/^{([^}]+)}$/.exec(o)))return[new zt(i,o,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(u[1])+" }`.")];var p=[];return"symbol"===t.layerType&&("text-field"===a&&r&&!r.glyphs&&p.push(new zt(i,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&gi(Dt(o))&&"identity"===Lt(o.type)&&p.push(new zt(i,o,'"text-font" does not support identity functions'))),p.concat(rr({key:t.key,value:o,valueSpec:c,style:r,styleSpec:n,expressionContext:"property",propertyType:e,propertyKey:a}))}function Xi(t){return Wi(t,"paint")}function Ki(t){return Wi(t,"layout")}function Yi(t){var e=[],i=t.value,r=t.key,n=t.style,o=t.styleSpec;i.type||i.ref||e.push(new zt(r,i,'either "type" or "ref" is required'));var a,s=Lt(i.type),l=Lt(i.ref);if(i.id)for(var u=Lt(i.id),c=0;c<t.arrayIndex;c++){var p=n.layers[c];Lt(p.id)===u&&e.push(new zt(r,i.id,'duplicate layer id "'+i.id+'", previously used at line '+p.id.__line__))}if("ref"in i)["type","source","source-layer","filter","layout"].forEach(function(t){t in i&&e.push(new zt(r,i[t],'"'+t+'" is prohibited for ref layers'))}),n.layers.forEach(function(t){Lt(t.id)===l&&(a=t)}),a?a.ref?e.push(new zt(r,i.ref,"ref cannot reference another ref layer")):s=Lt(a.type):e.push(new zt(r,i.ref,'ref layer "'+l+'" not found'));else if("background"!==s)if(i.source){var h=n.sources&&n.sources[i.source],d=h&&Lt(h.type);h?"vector"===d&&"raster"===s?e.push(new zt(r,i.source,'layer "'+i.id+'" requires a raster source')):"raster"===d&&"raster"!==s?e.push(new zt(r,i.source,'layer "'+i.id+'" requires a vector source')):"vector"!==d||i["source-layer"]?"raster-dem"===d&&"hillshade"!==s?e.push(new zt(r,i.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!i.paint||!i.paint["line-gradient"]||"geojson"===d&&h.lineMetrics||e.push(new zt(r,i,'layer "'+i.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new zt(r,i,'layer "'+i.id+'" must specify a "source-layer"')):e.push(new zt(r,i.source,'source "'+i.source+'" not found'))}else e.push(new zt(r,i,'missing required property "source"'));return e=e.concat(Mi({key:r,value:i,valueSpec:o.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return rr({key:r+".type",value:i.type,valueSpec:o.layer.type,style:t.style,styleSpec:t.styleSpec,object:i,objectKey:"type"})},filter:Gi,layout:function(t){return Mi({layer:i,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return Ki(Mt({layerType:s},t))}}})},paint:function(t){return Mi({layer:i,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return Xi(Mt({layerType:s},t))}}})}}}))}function Ji(t){var e=t.value,i=t.key,r=vi(e);return"string"!==r?[new zt(i,e,"string expected, "+r+" found")]:[]}var Qi={promoteId:function(t){var e=t.key,i=t.value;if("string"===vi(i))return Ji({key:e,value:i});var r=[];for(var n in i)r.push.apply(r,Ji({key:e+"."+n,value:i[n]}));return r}};function tr(t){var e=t.value,i=t.key,r=t.styleSpec,n=t.style;if(!e.type)return[new zt(i,e,'"type" is required')];var o,a=Lt(e.type);switch(a){case"vector":case"raster":case"raster-dem":return Mi({key:i,value:e,valueSpec:r["source_"+a.replace("-","_")],style:t.style,styleSpec:r,objectElementValidators:Qi});case"geojson":if(o=Mi({key:i,value:e,valueSpec:r.source_geojson,style:n,styleSpec:r,objectElementValidators:Qi}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],u=l[0],c=l[1],p="string"==typeof u?[u,["accumulated"],["get",s]]:u;o.push.apply(o,Bi({key:i+"."+s+".map",value:c,expressionContext:"cluster-map"})),o.push.apply(o,Bi({key:i+"."+s+".reduce",value:p,expressionContext:"cluster-reduce"}))}return o;case"video":return Mi({key:i,value:e,valueSpec:r.source_video,style:n,styleSpec:r});case"image":return Mi({key:i,value:e,valueSpec:r.source_image,style:n,styleSpec:r});case"canvas":return[new zt(i,null,"Please use runtime APIs to add canvas sources, rather than 
1including them in stylesheets.","source.canvas")];default:return Oi({key:i+".type",value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,styleSpec:r})}}function er(t){var e=t.value,i=t.styleSpec,r=i.light,n=t.style,o=[],a=vi(e);if(void 0===e)return o;if("object"!==a)return o.concat([new zt("light",e,"object expected, "+a+" found")]);for(var s in e){var l=s.match(/^(.*)-transition$/);o=l&&r[l[1]]&&r[l[1]].transition?o.concat(rr({key:s,value:e[s],valueSpec:i.transition,style:n,styleSpec:i})):r[s]?o.concat(rr({key:s,value:e[s],valueSpec:r[s],style:n,styleSpec:i})):o.concat([new zt(s,e[s],'unknown property "'+s+'"')])}return o}var ir={"*":function(){return[]},array:Li,boolean:function(t){var e=t.value,i=t.key,r=vi(e);return"boolean"!==r?[new zt(i,e,"boolean expected, "+r+" found")]:[]},number:Di,color:function(t){var e=t.key,i=t.value,r=vi(i);return"string"!==r?[new zt(e,i,"color expected, "+r+" found")]:null===Yt(i)?[new zt(e,i,'color expected, "'+i+'" found')]:[]},constants:Pt,enum:Oi,filter:Gi,function:Ri,layer:Yi,object:Mi,source:tr,light:er,string:Ji,formatted:function(t){return 0===Ji(t).length?[]:Bi(t)},resolvedImage:function(t){return 0===Ji(t).length?[]:Bi(t)}};function rr(t){var e=t.value,i=t.valueSpec,r=t.styleSpec;return i.expression&&gi(Lt(e))?Ri(t):i.expression&&Ei(Dt(e))?Bi(t):i.type&&ir[i.type]?ir[i.type](t):Mi(Mt({},t,{valueSpec:i.type?r[i.type]:i}))}function nr(t){var e=t.value,i=t.key,r=Ji(t);return r.length||(-1===e.indexOf("{fontstack}")&&r.push(new zt(i,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&r.push(new zt(i,e,'"glyphs" url must include a "{range}" token'))),r}function or(t,e){void 0===e&&(e=It);var i=[];return i=i.concat(rr({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:nr,"*":function(){return[]}}})),t.constants&&(i=i.concat(Pt({key:"constants",value:t.constants,style:t,styleSpec:e}))),ar(i)}function ar(t){return[].concat(t).sort(function(t,e){return t.line-e.line})}function sr(i){return function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return ar(i.apply(this,t))}}or.source=sr(tr),or.light=sr(er),or.layer=sr(Yi),or.filter=sr(Gi),or.paintProperty=sr(Xi),or.layoutProperty=sr(Ki);var lr=or,ur=lr.light,cr=lr.paintProperty,pr=lr.layoutProperty;function hr(t,e){var i=!1;if(e&&e.length)for(var r=0,n=e;r<n.length;r+=1){var o=n[r];t.fire(new Ct(new Error(o.message))),i=!0}return i}var dr=mr,fr=3;function mr(t,e,i){var r=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var n=new Int32Array(this.arrayBuffer);t=n[0],e=n[1],i=n[2],this.d=e+2*i;for(var o=0;o<this.d*this.d;o++){var a=n[fr+o],s=n[fr+o+1];r.push(a===s?null:n.subarray(a,s))}var l=n[fr+r.length],u=n[fr+r.length+1];this.keys=n.subarray(l,u),this.bboxes=n.subarray(u),this.insert=this._insertReadonly}else{this.d=e+2*i;for(var c=0;c<this.d*this.d;c++)r.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=i,this.scale=e/t,this.uid=0;var p=i/e*t;this.min=-p,this.max=t+p}mr.prototype.insert=function(t,e,i,r,n){this._forEachCell(e,i,r,n,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(i),this.bboxes.push(r),this.bboxes.push(n)},mr.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},mr.prototype._insertCell=function(t,e,i,r,n,o){this.cells[n].push(o)},mr.prototype.query=function(t,e,i,r,n){var o=this.min,a=this.max;if(t<=o&&e<=o&&a<=i&&a<=r&&!n)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,i,r,this._queryCell,s,{},n),s},mr.prototype._queryCell=function(t,e,i,r,n,o,a,s){var l=this.cells[n];if(null!==l)for(var u=this.keys,c=this.bboxes,p=0;p<l.length;p++){var h=l[p];if(void 0===a[h]){var d=4*h;(s?s(c[d+0],c[d+1],c[d+2],c[d+3]):t<=c[d+2]&&e<=c[d+3]&&i>=c[d+0]&&r>=c[d+1])?(a[h]=!0,o.push(u[h])):a[h]=!1}}},mr.prototype._forEachCell=function(t,e,i,r,n,o,a,s){for(var l=this._convertToCellCoord(t),u=this._convertToCellCoord(e),c=this._convertToCellCoord(i),p=this._convertToCellCoord(r),h=l;h<=c;h++)for(var d=u;d<=p;d++){var f=this.d*d+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(d),this._convertFromCellCoord(h+1),this._convertFromCellCoord(d+1)))&&n.call(this,t,e,i,r,f,o,a,s))return}},mr.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},mr.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},mr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=fr+this.cells.length+1+1,i=0,r=0;r<this.cells.length;r++)i+=this.cells[r].length;var n=new Int32Array(e+i+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;
1for(var o=e,a=0;a<t.length;a++){var s=t[a];n[fr+a]=o,n.set(s,o),o+=s.length}return n[fr+t.length]=o,n.set(this.keys,o),o+=this.keys.length,n[fr+t.length+1]=o,n.set(this.bboxes,o),o+=this.bboxes.length,n.buffer};var yr=self.ImageData,vr=self.ImageBitmap,gr={};function _r(t,e,i){void 0===i&&(i={}),Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),gr[t]={klass:e,omit:i.omit||[],shallow:i.shallow||[]}}for(var xr in _r("Object",Object),dr.serialize=function(t,e){var i=t.toArrayBuffer();return e&&e.push(i),{buffer:i}},dr.deserialize=function(t){return new dr(t.buffer)},_r("Grid",dr),_r("Color",Jt),_r("Error",Error),_r("ResolvedImage",ie),_r("StylePropertyFunction",Pi),_r("StyleExpression",ki,{omit:["_evaluator"]}),_r("ZoomDependentExpression",Ii),_r("ZoomConstantExpression",Ai),_r("CompoundExpression",ye,{omit:["_evaluate"]}),si)si[xr]._classRegistryKey||_r("Expression_"+xr,si[xr]);function br(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function wr(t){return vr&&t instanceof vr}function Sr(t,e){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(br(t)||wr(t))return e&&e.push(t),t;if(ArrayBuffer.isView(t)){var i=t;return e&&e.push(i.buffer),i}if(t instanceof yr)return e&&e.push(t.data.buffer),t;if(Array.isArray(t)){for(var r=[],n=0,o=t;n<o.length;n+=1){var a=o[n];r.push(Sr(a,e))}return r}if("object"!=typeof t)throw new Error("can't serialize object of type "+typeof t);var s=t.constructor,l=s._classRegistryKey;if(!l)throw new Error("can't serialize object of unregistered class");var u=s.serialize?s.serialize(t,e):{};if(!s.serialize){for(var c in t)if(t.hasOwnProperty(c)&&!(0<=gr[l].omit.indexOf(c))){var p=t[c];u[c]=0<=gr[l].shallow.indexOf(c)?p:Sr(p,e)}t instanceof Error&&(u.message=t.message)}if(u.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==l&&(u.$name=l),u}function Tr(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||br(t)||wr(t)||ArrayBuffer.isView(t)||t instanceof yr)return t;if(Array.isArray(t))return t.map(Tr);if("object"!=typeof t)throw new Error("can't deserialize object of type "+typeof t);var e=t.$name||"Object",i=gr[e].klass;if(!i)throw new Error("can't deserialize unregistered class "+e);if(i.deserialize)return i.deserialize(t);for(var r=Object.create(i.prototype),n=0,o=Object.keys(t);n<o.length;n+=1){var a=o[n];if("$name"!==a){var s=t[a];r[a]=0<=gr[e].shallow.indexOf(a)?s:Tr(s)}}return r}var kr=function(){this.first=!0};kr.prototype.update=function(t,e){var i=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=i,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=i,!0):(this.lastFloorZoom>i?(this.lastIntegerZoom=i+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<i&&(this.lastIntegerZoom=i,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=i,!0))};var Er={"Latin-1 Supplement":function(t){return 128<=t&&t<=255},Arabic:function(t){return 1536<=t&&t<=1791},"Arabic Supplement":function(t){return 1872<=t&&t<=1919},"Arabic Extended-A":function(t){return 2208<=t&&t<=2303},"Hangul Jamo":function(t){return 4352<=t&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return 5120<=t&&t<=5759},Khmer:function(t){return 6016<=t&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return 6320<=t&&t<=6399},"General Punctuation":function(t){return 8192<=t&&t<=8303},"Letterlike Symbols":function(t){return 8448<=t&&t<=8527},"Number Forms":function(t){return 8528<=t&&t<=8591},"Miscellaneous Technical":function(t){return 8960<=t&&t<=9215},"Control Pictures":function(t){return 9216<=t&&t<=9279},"Optical Character Recognition":function(t){return 9280<=t&&t<=9311},"Enclosed Alphanumerics":function(t){return 9312<=t&&t<=9471},"Geometric Shapes":function(t){return 9632<=t&&t<=9727},"Miscellaneous Symbols":function(t){return 9728<=t&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return 11008<=t&&t<=11263},"CJK Radicals Supplement":function(t){return 11904<=t&&t<=12031},"Kangxi Radicals":function(t){return 12032<=t&&t<=12255},"Ideographic Description Characters":function(t){return 12272<=t&&t<=12287}
1,"CJK Symbols and Punctuation":function(t){return 12288<=t&&t<=12351},Hiragana:function(t){return 12352<=t&&t<=12447},Katakana:function(t){return 12448<=t&&t<=12543},Bopomofo:function(t){return 12544<=t&&t<=12591},"Hangul Compatibility Jamo":function(t){return 12592<=t&&t<=12687},Kanbun:function(t){return 12688<=t&&t<=12703},"Bopomofo Extended":function(t){return 12704<=t&&t<=12735},"CJK Strokes":function(t){return 12736<=t&&t<=12783},"Katakana Phonetic Extensions":function(t){return 12784<=t&&t<=12799},"Enclosed CJK Letters and Months":function(t){return 12800<=t&&t<=13055},"CJK Compatibility":function(t){return 13056<=t&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return 13312<=t&&t<=19903},"Yijing Hexagram Symbols":function(t){return 19904<=t&&t<=19967},"CJK Unified Ideographs":function(t){return 19968<=t&&t<=40959},"Yi Syllables":function(t){return 40960<=t&&t<=42127},"Yi Radicals":function(t){return 42128<=t&&t<=42191},"Hangul Jamo Extended-A":function(t){return 43360<=t&&t<=43391},"Hangul Syllables":function(t){return 44032<=t&&t<=55215},"Hangul Jamo Extended-B":function(t){return 55216<=t&&t<=55295},"Private Use Area":function(t){return 57344<=t&&t<=63743},"CJK Compatibility Ideographs":function(t){return 63744<=t&&t<=64255},"Arabic Presentation Forms-A":function(t){return 64336<=t&&t<=65023},"Vertical Forms":function(t){return 65040<=t&&t<=65055},"CJK Compatibility Forms":function(t){return 65072<=t&&t<=65103},"Small Form Variants":function(t){return 65104<=t&&t<=65135},"Arabic Presentation Forms-B":function(t){return 65136<=t&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return 65280<=t&&t<=65519}};function Cr(t){for(var e=0,i=t;e<i.length;e+=1)if(Ar(i[e].charCodeAt(0)))return!0;return!1}function Ar(t){return!!(746===t||747===t||!(t<4352)&&(Er["Bopomofo Extended"](t)||Er.Bopomofo(t)||Er["CJK Compatibility Forms"](t)&&!(65097<=t&&t<=65103)||Er["CJK Compatibility Ideographs"](t)||Er["CJK Compatibility"](t)||Er["CJK Radicals Supplement"](t)||Er["CJK Strokes"](t)||!(!Er["CJK Symbols and Punctuation"](t)||12296<=t&&t<=12305||12308<=t&&t<=12319||12336===t)||Er["CJK Unified Ideographs Extension A"](t)||Er["CJK Unified Ideographs"](t)||Er["Enclosed CJK Letters and Months"](t)||Er["Hangul Compatibility Jamo"](t)||Er["Hangul Jamo Extended-A"](t)||Er["Hangul Jamo Extended-B"](t)||Er["Hangul Jamo"](t)||Er["Hangul Syllables"](t)||Er.Hiragana(t)||Er["Ideographic Description Characters"](t)||Er.Kanbun(t)||Er["Kangxi Radicals"](t)||Er["Katakana Phonetic Extensions"](t)||Er.Katakana(t)&&12540!==t||!(!Er["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||65306<=t&&t<=65310||65339===t||65341===t||65343===t||65371<=t&&t<=65503||65507===t||65512<=t&&t<=65519)||!(!Er["Small Form Variants"](t)||65112<=t&&t<=65118||65123<=t&&t<=65126)||Er["Unified Canadian Aboriginal Syllabics"](t)||Er["Unified Canadian Aboriginal Syllabics Extended"](t)||Er["Vertical Forms"](t)||Er["Yijing Hexagram Symbols"](t)||Er["Yi Syllables"](t)||Er["Yi Radicals"](t)))}function Ir(t){return!(Ar(t)||(e=t,Er["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||Er["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||Er["Letterlike Symbols"](e)||Er["Number Forms"](e)||Er["Miscellaneous Technical"](e)&&(8960<=e&&e<=8967||8972<=e&&e<=8991||8996<=e&&e<=9e3||9003===e||9085<=e&&e<=9114||9150<=e&&e<=9165||9167===e||9169<=e&&e<=9179||9186<=e&&e<=9215)||Er["Control Pictures"](e)&&9251!==e||Er["Optical Character Recognition"](e)||Er["Enclosed Alphanumerics"](e)||Er["Geometric Shapes"](e)||Er["Miscellaneous Symbols"](e)&&!(9754<=e&&e<=9759)||Er["Miscellaneous Symbols and Arrows"](e)&&(11026<=e&&e<=11055||11088<=e&&e<=11097||11192<=e&&e<=11243)||Er["CJK Symbols and Punctuation"](e)||Er.Katakana(e)||Er["Private Use Area"](e)||Er["CJK Compatibility Forms"](e)||Er["Small Form Variants"](e)||Er["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||9984<=e&&e<=10087||10102<=e&&e<=10131||65532===e||65533===e));var e}function zr(t){return 1424<=t&&t<=2303||Er["Arabic Presentation Forms-A"](t)||Er["Arabic Presentation Forms-B"](t)}function Pr(t){for(var e=0,i=t;e<i.length;e+=1)if(zr(i[e].charCodeAt(0)))return!0;return!1}var Mr="deferred",Lr="loading",Dr="loaded",Rr=null,Br="unavailable",Or=null,Fr=function(t){Rr&&Rr(t)};function Ur(){Nr.fire(new Et("pluginStateChange",{pluginStatus:Br,pluginURL:Or}))}var Nr=new At,jr=function(){return Br},Vr=function(){if(Br!==Mr||!Or)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Br=Lr,Ur(),Or&&bt({url:Or},function(t){t?Fr(t):(Br=Dr,Ur())})},qr={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Br===Dr||null!=qr.applyArabicShaping},isLoading:function(){return Br===Lr},setState:function(t){Br=t.pluginStatus,Or=t.pluginURL},isParsed:function(){return null!=qr.applyArabicShaping&&null!=qr.processBidirectionalText&&null!=qr.processStyledBidirectionalText},getPluginURL:function(){return Or}},Zr=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new kr,this.transition={})};Zr.prototype.isSupportedScript=function(t){return function(t,e){for(var i=0,r=t;i<r.length;
vendor: 11,149 bytes, line 1
1i+=1)if(n=r[i].charCodeAt(0),!e&&zr(n)||2304<=n&&n<=3583||3840<=n&&n<=4255||Er.Khmer(n))return!1;var n;return!0}(t,qr.isLoaded())},Zr.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Zr.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),i=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*i}:{fromScale:.5,toScale:1,t:1-(1-i)*e}};var $r=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(gi(t))return new Pi(t,e);if(Ei(t)){var i=zi(t,e);if("error"===i.result)throw new Error(i.value.map(function(t){return t.key+": "+t.message}).join(", "));return i.value}var r=t;return"string"==typeof t&&"color"===e.type&&(r=Jt.parse(t)),{kind:"constant",evaluate:function(){return r}}}(void 0===e?t.specification.default:e,t.specification)};$r.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},$r.prototype.possiblyEvaluate=function(t,e){return this.property.possiblyEvaluate(this,t,e)};var Hr=function(t){this.property=t,this.value=new $r(t,void 0)};Hr.prototype.transitioned=function(t,e){return new Wr(this.property,this.value,e,f({},t.transition,this.transition),t.now)},Hr.prototype.untransitioned=function(){return new Wr(this.property,this.value,null,{},0)};var Gr=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};Gr.prototype.getValue=function(t){return g(this._values[t].value.value)},Gr.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Hr(this._values[t].property)),this._values[t].value=new $r(this._values[t].property,null===e?void 0:g(e))},Gr.prototype.getTransition=function(t){return g(this._values[t].transition)},Gr.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Hr(this._values[t].property)),this._values[t].transition=g(e)||void 0},Gr.prototype.serialize=function(){for(var t={},e=0,i=Object.keys(this._values);e<i.length;e+=1){var r=i[e],n=this.getValue(r);void 0!==n&&(t[r]=n);var o=this.getTransition(r);void 0!==o&&(t[r+"-transition"]=o)}return t},Gr.prototype.transitioned=function(t,e){for(var i=new Xr(this._properties),r=0,n=Object.keys(this._values);r<n.length;r+=1){var o=n[r];i._values[o]=this._values[o].transitioned(t,e._values[o])}return i},Gr.prototype.untransitioned=function(){for(var t=new Xr(this._properties),e=0,i=Object.keys(this._values);e<i.length;e+=1){var r=i[e];t._values[r]=this._values[r].untransitioned()}return t};var Wr=function(t,e,i,r,n){this.property=t,this.value=e,this.begin=n+r.delay||0,this.end=this.begin+r.duration||0,t.specification.transition&&(r.delay||r.duration)&&(this.prior=i)};Wr.prototype.possiblyEvaluate=function(t,e){var i=t.now||0,r=this.value.possiblyEvaluate(t,e),n=this.prior;if(n){if(i>this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(i<this.begin)return n.possiblyEvaluate(t,e);var o=(i-this.begin)/(this.end-this.begin);return this.property.interpolate(n.possiblyEvaluate(t,e),r,function(t){if(o<=0)return 0;if(1<=o)return 1;var e=o*o,i=e*o;return 4*(o<.5?i:3*(o-e)+i-.75)}())}return r};var Xr=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};Xr.prototype.possiblyEvaluate=function(t,e){for(var i=new Jr(this._properties),r=0,n=Object.keys(this._values);r<n.length;r+=1){var o=n[r];i._values[o]=this._values[o].possiblyEvaluate(t,e)}return i},Xr.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t<e.length;t+=1){var i=e[t];if(this._values[i].prior)return!0}return!1};var Kr=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};Kr.prototype.getValue=function(t){return g(this._values[t].value)},Kr.prototype.setValue=function(t,e){this._values[t]=new $r(this._values[t].property,null===e?void 0:g(e))},Kr.prototype.serialize=function(){for(var t={},e=0,i=Object.keys(this._values);e<i.length;e+=1){var r=i[e],n=this.getValue(r);void 0!==n&&(t[r]=n)}return t},Kr.prototype.possiblyEvaluate=function(t,e){for(var i=new Jr(this._properties),r=0,n=Object.keys(this._values);r<n.length;r+=1){var o=n[r];i._values[o]=this._values[o].possiblyEvaluate(t,e)}return i};var Yr=function(t,e,i){this.property=t,this.value=e,this.parameters=i};Yr.prototype.isConstant=function(){return"constant"===this.value.kind},Yr.prototype.constantOr=function(t){return"constant"===this.value.kind?this.value.value:t},Yr.prototype.evaluate=function(t,e,i){return this.property.evaluate(this.value,this.parameters,t,e,i)};var Jr=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};Jr.prototype.get=function(t){return this._values[t]};var Qr=function(t){this.specification=t};Qr.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},Qr.prototype.interpolate=function(t,e,i){var r=Ee[this.specification.type];return r?r(t,e,i):t};var tn=function(t,e){this.specification=t,this.overrides=e};tn.prototype.possiblyEvaluate=function(t,e,i){return"constant"===t.expression.kind||"camera"===t.expression.kind?new Yr(this,{kind:"constant",value:t.expression.evaluate(e,null,{},i)},e):new Yr(this,t.expression,e)},tn.prototype.interpolate=function(t,e,i){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new Yr(this,{kind:"constant",value:void 0},t.parameters);var r=Ee[this.specification.type];return r?new Yr(this,{kind:"constant",value:r(t.value.value,e.value.value,i)},t.parameters):t},tn.prototype.evaluate=function(t,e,i,r,n){return"constant"===t.kind?t.value:t.evaluate(e,i,r,n)};var en=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.possiblyEvaluate=function(t,e,i){if(void 0===t.value)return new Yr(this,{kind:"constant",value:void 0},e);if("constant"===t.expression.kind){var r=t.expression.evaluate(e,null,{},i),n="resolvedImage"===t.property.specification.type&&"string"!=typeof r?r.name:r,o=this._calculate(n,n,n,e);return new Yr(this,{kind:"constant",value:o},e)}if("camera"!==t.expression.kind)return new Yr(this,t.expression,e);var a=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new Yr(this,{kind:"constant",value:a},e)},e.prototype.evaluate=function(t,e,i,r,n){if("source"!==t.kind)return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},i,r),t.evaluate({zoom:Math.floor(e.zoom)},i,r),t.evaluate({zoom:Math.floor(e.zoom)+1},i,r),e):t.value;var o=t.evaluate(e,i,r,n);return this._calculate(o,o,o,e)},e.prototype._calculate=function(t,e,i,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:i,to:e}},e.prototype.interpolate=function(t){return t},e}(tn),rn=function(t){this.specification=t};rn.prototype.possiblyEvaluate=function(t,e,i){if(void 0!==t.value){if("constant"!==t.expression.kind)return this._calculate(t.expression.evaluate(new Zr(Math.floor(e.zoom-1),e)),t.expression.evaluate(new Zr(Math.floor(e.zoom),e)),t.expression.evaluate(new Zr(Math.floor(e.zoom+1),e)),e);var r=t.expression.evaluate(e,null,{},i);return this._calculate(r,r,r,e)}},rn.prototype._calculate=function(t,e,i,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:i,to:e}},rn.prototype.interpolate=function(t){return t};var nn=function(t){this.specification=t};nn.prototype.possiblyEvaluate=function(t,e,i){return!!t.expression.evaluate(e,null,{},i)},nn.prototype.interpolate=function(){return!1};var on=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var i=t[e];i.specification.overridable&&this.overridableProperties.push(e);var r=this.defaultPropertyValues[e]=new $r(i,void 0),n=this.defaultTransitionablePropertyValues[e]=new Hr(i);this.defaultTransitioningPropertyValues[e]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=r.possiblyEvaluate({})}};_r("DataDrivenProperty",tn),_r("DataConstantProperty",Qr),_r("CrossFadedDataDrivenProperty",en),_r("CrossFadedProperty",rn),_r("ColorRampProperty",nn);var an=function(n){function t(t,e){if(n.call(this),this.id=t.id,this.type=t.type,this._featureFilter=function(){return!0},"custom"!==t.type&&(t=t,this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),e.layout&&(this._unevaluatedLayout=new Kr(e.layout)),e.paint)){for(var i in this._transitionablePaint=new Gr(e.paint),t.paint)this.setPaintProperty(i,t.paint[i],{validate:!1});for(var r in t.layout)this.setLayoutProperty(r,t.layout[r],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned()}}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},t.prototype.getLayoutProperty=function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)},t.prototype.setLayoutProperty=function(t,e,i){if(void 0===i&&(i={}),null!=e){var r="layers."+this.id+".layout."+t;if(this._validate(pr,r,t,e,i))return}"visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e},t.prototype.getPaintProperty=function(t){return m(t,"-transition")?this._transitionablePaint.getTransition(t.slice(0,-"-transition".length)):this._transitionablePaint.getValue(t)},t.prototype.setPaintProperty=function(t,e,i){if(void 0===i&&(i={}),null!=e){var r="layers."+this.id+".paint."+t;if(this._validate(cr,r,t,e,i))return!1}if(m(t,"-transition"))return this._transitionablePaint.setTransition(t.slice(0,-"-transition".length),e||void 0),!1;var n=this._transitionablePaint._values[t],o="cross-faded-data-driven"===n.property.specification["property-type"],a=n.value.isDataDriven(),s=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var l=this._transitionablePaint._values[t].value;return l.isDataDriven()||a||o||this._handleOverridablePaintPropertyUpdate(t,s,l)},t.prototype._handleSpecialPaintPropertyUpdate=function(t){},t.prototype._handleOverridablePaintPropertyUpdate=function(t,e,i){return!1},t.prototype.isHidden=function(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility},t.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},t.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},t.prototype.recalculate=function(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,e)}
vendor: 4,176 bytes, line 1
1,t.prototype.serialize=function(){var t={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&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),v(t,function(t,e){return!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)})},t.prototype._validate=function(t,e,i,r,n){return void 0===n&&(n={}),(!n||!1!==n.validate)&&hr(this,t.call(lr,{key:e,layerType:this.type,objectKey:i,value:r,styleSpec:It,style:{glyphs:!0,sprite:!0}}))},t.prototype.is3D=function(){return!1},t.prototype.isTileClipped=function(){return!1},t.prototype.hasOffscreenPass=function(){return!1},t.prototype.resize=function(){},t.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof Yr&&fi(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1},t}(At),sn={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},ln=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},un=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function cn(t,o){void 0===o&&(o=1);var a=0,s=0;return{members:t.map(function(t){var e,i=(e=t.type,sn[e].BYTES_PER_ELEMENT),r=a=pn(a,Math.max(o,i)),n=t.components||1;return s=Math.max(s,i),a+=i*n,{name:t.name,type:t.type,components:n,offset:r}}),size:pn(a,Math.max(s,o)),alignment:o}}function pn(t,e){return Math.ceil(t/e)*e}un.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},un.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},un.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},un.prototype.clear=function(){this.length=0},un.prototype.resize=function(t){this.reserve(t),this.length=t},un.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},un.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var hn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var i=this.length;return this.resize(i+1),this.emplace(i,t,e)},e.prototype.emplace=function(t,e,i){var r=2*t;return this.int16[r+0]=e,this.int16[r+1]=i,t},e}(un);hn.prototype.bytesPerElement=4,_r("StructArrayLayout2i4",hn);var dn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,i,r)},e.prototype.emplace=function(t,e,i,r,n){var o=4*t;return this.int16[o+0]=e,this.int16[o+1]=i,this.int16[o+2]=r,this.int16[o+3]=n,t},e}(un);dn.prototype.bytesPerElement=8,_r("StructArrayLayout4i8",dn);var fn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}
1,e.prototype.emplaceBack=function(t,e,i,r,n,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,i,r,n,o)},e.prototype.emplace=function(t,e,i,r,n,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=i,this.int16[s+2]=r,this.int16[s+3]=n,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(un);fn.prototype.bytesPerElement=12,_r("StructArrayLayout2i4i12",fn);var mn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,i,r,n,o)},e.prototype.emplace=function(t,e,i,r,n,o,a){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=i,this.uint8[l+4]=r,this.uint8[l+5]=n,this.uint8[l+6]=o,this.uint8[l+7]=a,t},e}(un);mn.prototype.bytesPerElement=8,_r("StructArrayLayout2i4ub8",mn);var yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o,a,s){var l=this.length;return this.resize(l+1),this.emplace(l,t,e,i,r,n,o,a,s)},e.prototype.emplace=function(t,e,i,r,n,o,a,s,l){var u=8*t;return this.uint16[u+0]=e,this.uint16[u+1]=i,this.uint16[u+2]=r,this.uint16[u+3]=n,this.uint16[u+4]=o,this.uint16[u+5]=a,this.uint16[u+6]=s,this.uint16[u+7]=l,t},e}(un);yn.prototype.bytesPerElement=16,_r("StructArrayLayout8ui16",yn);var vn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o,a,s,l,u,c,p){var h=this.length;return this.resize(h+1),this.emplace(h,t,e,i,r,n,o,a,s,l,u,c,p)},e.prototype.emplace=function(t,e,i,r,n,o,a,s,l,u,c,p,h){var d=12*t;return this.int16[d+0]=e,this.int16[d+1]=i,this.int16[d+2]=r,this.int16[d+3]=n,this.uint16[d+4]=o,this.uint16[d+5]=a,this.uint16[d+6]=s,this.uint16[d+7]=l,this.int16[d+8]=u,this.int16[d+9]=c,this.int16[d+10]=p,this.int16[d+11]=h,t},e}(un);vn.prototype.bytesPerElement=24,_r("StructArrayLayout4i4ui4i24",vn);var gn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,i)},e.prototype.emplace=function(t,e,i,r){var n=3*t;return this.float32[n+0]=e,this.float32[n+1]=i,this.float32[n+2]=r,t},e}(un);gn.prototype.bytesPerElement=12,_r("StructArrayLayout3f12",gn);var _n=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var i=1*t;return this.uint32[i+0]=e,t},e}(un);_n.prototype.bytesPerElement=4,_r("StructArrayLayout1ul4",_n);var xn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o,a,s,l,u,c){var p=this.length;return this.resize(p+1),this.emplace(p,t,e,i,r,n,o,a,s,l,u,c)}
1,e.prototype.emplace=function(t,e,i,r,n,o,a,s,l,u,c,p){var h=12*t,d=6*t;return this.int16[h+0]=e,this.int16[h+1]=i,this.int16[h+2]=r,this.int16[h+3]=n,this.int16[h+4]=o,this.int16[h+5]=a,this.uint32[d+3]=s,this.uint16[h+8]=l,this.uint16[h+9]=u,this.int16[h+10]=c,this.int16[h+11]=p,t},e}(un);xn.prototype.bytesPerElement=24,_r("StructArrayLayout6i1ul2ui2i24",xn);var bn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,i,r,n,o)},e.prototype.emplace=function(t,e,i,r,n,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=i,this.int16[s+2]=r,this.int16[s+3]=n,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(un);bn.prototype.bytesPerElement=12,_r("StructArrayLayout2i2i2i12",bn);var wn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,i,r)},e.prototype.emplace=function(t,e,i,r,n){var o=12*t,a=3*t;return this.uint8[o+0]=e,this.uint8[o+1]=i,this.float32[a+1]=r,this.float32[a+2]=n,t},e}(un);wn.prototype.bytesPerElement=12,_r("StructArrayLayout2ub2f12",wn);var Sn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o,a,s,l,u,c,p,h,d,f,m,y){var v=this.length;return this.resize(v+1),this.emplace(v,t,e,i,r,n,o,a,s,l,u,c,p,h,d,f,m,y)},e.prototype.emplace=function(t,e,i,r,n,o,a,s,l,u,c,p,h,d,f,m,y,v){var g=24*t,_=12*t,x=48*t;return this.int16[g+0]=e,this.int16[g+1]=i,this.uint16[g+2]=r,this.uint16[g+3]=n,this.uint32[_+2]=o,this.uint32[_+3]=a,this.uint32[_+4]=s,this.uint16[g+10]=l,this.uint16[g+11]=u,this.uint16[g+12]=c,this.float32[_+7]=p,this.float32[_+8]=h,this.uint8[x+36]=d,this.uint8[x+37]=f,this.uint8[x+38]=m,this.uint32[_+10]=y,this.int16[g+22]=v,t},e}(un);Sn.prototype.bytesPerElement=48,_r("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Sn);var Tn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o,a,s,l,u,c,p,h,d,f,m,y,v,g,_,x,b,w,S,T,k){var E=this.length;return this.resize(E+1),this.emplace(E,t,e,i,r,n,o,a,s,l,u,c,p,h,d,f,m,y,v,g,_,x,b,w,S,T,k)},e.prototype.emplace=function(t,e,i,r,n,o,a,s,l,u,c,p,h,d,f,m,y,v,g,_,x,b,w,S,T,k,E){var C=30*t,A=15*t;return this.int16[C+0]=e,this.int16[C+1]=i,this.int16[C+2]=r,this.int16[C+3]=n,this.int16[C+4]=o,this.int16[C+5]=a,this.int16[C+6]=s,this.int16[C+7]=l,this.uint16[C+8]=u,this.uint16[C+9]=c,this.uint16[C+10]=p,this.uint16[C+11]=h,this.uint16[C+12]=d,this.uint16[C+13]=f,this.uint16[C+14]=m,this.uint16[C+15]=y,this.uint16[C+16]=v,this.uint16[C+17]=g,this.uint16[C+18]=_,this.uint16[C+19]=x,this.uint16[C+20]=b,this.uint16[C+21]=w,this.uint32[A+11]=S,this.float32[A+12]=T,this.float32[A+13]=k,this.float32[A+14]=E,t},e}(un);Tn.prototype.bytesPerElement=60,_r("StructArrayLayout8i14ui1ul3f60",Tn);var kn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var i=1*t;return this.float32[i+0]=e,t},e}(un);kn.prototype.bytesPerElement=4,_r("StructArrayLayout1f4",kn);var En=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}
vendor: 5,297 bytes, line 1
1,e.prototype.emplaceBack=function(t,e,i){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,i)},e.prototype.emplace=function(t,e,i,r){var n=3*t;return this.int16[n+0]=e,this.int16[n+1]=i,this.int16[n+2]=r,t},e}(un);En.prototype.bytesPerElement=6,_r("StructArrayLayout3i6",En);var Cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,i)},e.prototype.emplace=function(t,e,i,r){var n=2*t,o=4*t;return this.uint32[n+0]=e,this.uint16[o+2]=i,this.uint16[o+3]=r,t},e}(un);Cn.prototype.bytesPerElement=8,_r("StructArrayLayout1ul2ui8",Cn);var An=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,i)},e.prototype.emplace=function(t,e,i,r){var n=3*t;return this.uint16[n+0]=e,this.uint16[n+1]=i,this.uint16[n+2]=r,t},e}(un);An.prototype.bytesPerElement=6,_r("StructArrayLayout3ui6",An);var In=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var i=this.length;return this.resize(i+1),this.emplace(i,t,e)},e.prototype.emplace=function(t,e,i){var r=2*t;return this.uint16[r+0]=e,this.uint16[r+1]=i,t},e}(un);In.prototype.bytesPerElement=4,_r("StructArrayLayout2ui4",In);var zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var i=1*t;return this.uint16[i+0]=e,t},e}(un);zn.prototype.bytesPerElement=2,_r("StructArrayLayout1ui2",zn);var Pn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var i=this.length;return this.resize(i+1),this.emplace(i,t,e)},e.prototype.emplace=function(t,e,i){var r=2*t;return this.float32[r+0]=e,this.float32[r+1]=i,t},e}(un);Pn.prototype.bytesPerElement=8,_r("StructArrayLayout2f8",Pn);var Mn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,i,r)},e.prototype.emplace=function(t,e,i,r,n){var o=4*t;return this.float32[o+0]=e,this.float32[o+1]=i,this.float32[o+2]=r,this.float32[o+3]=n,t},e}(un);Mn.prototype.bytesPerElement=16,_r("StructArrayLayout4f16",Mn);var Ln=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var i={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},radius:{configurable:!0},signedDistanceFromAnchor:{configurable:!0},anchorPoint:{configurable:!0}};return i.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},i.anchorPointX.set=function(t){this._structArray.int16[this._pos2+0]=t},i.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},i.anchorPointY.set=function(t){this._structArray.int16[this._pos2+1]=t},i.x1.get=function(){return this._structArray.int16[this._pos2+2]},i.x1.set=function(t){this._structArray.int16[this._pos2+2]=t},i.y1.get=function(){return this._structArray.int16[this._pos2+3]},i.y1.set=function(t){this._structArray.int16[this._pos2+3]=t},i.x2.get=function(){return this._structArray.int16[this._pos2+4]},i.x2.set=function(t){this._structArray.int16[this._pos2+4]=t},i.y2.get=function(){return this._structArray.int16[this._pos2+5]},i.y2.set=function(t){this._structArray.int16[this._pos2+5]=t},i.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},i.featureIndex.set=function(t){this._structArray.uint32[this._pos4+3]=t},i.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},i.sourceLayerIndex.set=function(t){this._structArray.uint16[this._pos2+8]=t},i.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]}
1,i.bucketIndex.set=function(t){this._structArray.uint16[this._pos2+9]=t},i.radius.get=function(){return this._structArray.int16[this._pos2+10]},i.radius.set=function(t){this._structArray.int16[this._pos2+10]=t},i.signedDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+11]},i.signedDistanceFromAnchor.set=function(t){this._structArray.int16[this._pos2+11]=t},i.anchorPoint.get=function(){return new ct(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,i),e}(ln);Ln.prototype.size=24;var Dn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.get=function(t){return new Ln(this,t)},e}(xn);_r("CollisionBoxArray",Dn);var Rn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var i={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return i.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},i.anchorX.set=function(t){this._structArray.int16[this._pos2+0]=t},i.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},i.anchorY.set=function(t){this._structArray.int16[this._pos2+1]=t},i.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},i.glyphStartIndex.set=function(t){this._structArray.uint16[this._pos2+2]=t},i.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},i.numGlyphs.set=function(t){this._structArray.uint16[this._pos2+3]=t},i.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},i.vertexStartIndex.set=function(t){this._structArray.uint32[this._pos4+2]=t},i.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},i.lineStartIndex.set=function(t){this._structArray.uint32[this._pos4+3]=t},i.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},i.lineLength.set=function(t){this._structArray.uint32[this._pos4+4]=t},i.segment.get=function(){return this._structArray.uint16[this._pos2+10]},i.segment.set=function(t){this._structArray.uint16[this._pos2+10]=t},i.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},i.lowerSize.set=function(t){this._structArray.uint16[this._pos2+11]=t},i.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},i.upperSize.set=function(t){this._structArray.uint16[this._pos2+12]=t},i.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},i.lineOffsetX.set=function(t){this._structArray.float32[this._pos4+7]=t},i.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},i.lineOffsetY.set=function(t){this._structArray.float32[this._pos4+8]=t},i.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},i.writingMode.set=function(t){this._structArray.uint8[this._pos1+36]=t},i.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},i.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},i.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},i.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},i.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},i.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},i.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},i.associatedIconIndex.set=function(t){this._structArray.int16[this._pos2+22]=t},Object.defineProperties(e.prototype,i),e}(ln);Rn.prototype.size=48;var Bn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.get=function(t){return new Rn(this,t)},e}(Sn);_r("PlacedSymbolArray",Bn);var On=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var i={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0}
1,numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0}};return i.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},i.anchorX.set=function(t){this._structArray.int16[this._pos2+0]=t},i.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},i.anchorY.set=function(t){this._structArray.int16[this._pos2+1]=t},i.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},i.rightJustifiedTextSymbolIndex.set=function(t){this._structArray.int16[this._pos2+2]=t},i.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},i.centerJustifiedTextSymbolIndex.set=function(t){this._structArray.int16[this._pos2+3]=t},i.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},i.leftJustifiedTextSymbolIndex.set=function(t){this._structArray.int16[this._pos2+4]=t},i.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},i.verticalPlacedTextSymbolIndex.set=function(t){this._structArray.int16[this._pos2+5]=t},i.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},i.placedIconSymbolIndex.set=function(t){this._structArray.int16[this._pos2+6]=t},i.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},i.verticalPlacedIconSymbolIndex.set=function(t){this._structArray.int16[this._pos2+7]=t},i.key.get=function(){return this._structArray.uint16[this._pos2+8]},i.key.set=function(t){this._structArray.uint16[this._pos2+8]=t},i.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},i.textBoxStartIndex.set=function(t){this._structArray.uint16[this._pos2+9]=t},i.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},i.textBoxEndIndex.set=function(t){this._structArray.uint16[this._pos2+10]=t},i.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},i.verticalTextBoxStartIndex.set=function(t){this._structArray.uint16[this._pos2+11]=t},i.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},i.verticalTextBoxEndIndex.set=function(t){this._structArray.uint16[this._pos2+12]=t},i.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},i.iconBoxStartIndex.set=function(t){this._structArray.uint16[this._pos2+13]=t},i.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},i.iconBoxEndIndex.set=function(t){this._structArray.uint16[this._pos2+14]=t},i.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},i.verticalIconBoxStartIndex.set=function(t){this._structArray.uint16[this._pos2+15]=t},i.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},i.verticalIconBoxEndIndex.set=function(t){this._structArray.uint16[this._pos2+16]=t},i.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},i.featureIndex.set=function(t){this._structArray.uint16[this._pos2+17]=t},i.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},i.numHorizontalGlyphVertices.set=function(t){this._structArray.uint16[this._pos2+18]=t},i.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},i.numVerticalGlyphVertices.set=function(t){this._structArray.uint16[this._pos2+19]=t},i.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},i.numIconVertices.set=function(t){this._structArray.uint16[this._pos2+20]=t},i.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},i.numVerticalIconVertices.set=function(t){this._structArray.uint16[this._pos2+21]=t},i.crossTileID.get=function(){return this._structArray.uint32[this._pos4+11]},i.crossTileID.set=function(t){this._structArray.uint32[this._pos4+11]=t},i.textBoxScale.get=function(){return this._structArray.float32[this._pos4+12]},i.textBoxScale.set=function(t){this._structArray.float32[this._pos4+12]=t},i.textOffset0.get=function(){return this._structArray.float32[this._pos4+13]},i.textOffset0.set=function(t){this._structArray.float32[this._pos4+13]=t},i.textOffset1.get=function(){return this._structArray.float32[this._pos4+14]},i.textOffset1.set=function(t){this._structArray.float32[this._pos4+14]=t}
vendor: 4,376 bytes, line 1
1,Object.defineProperties(e.prototype,i),e}(ln);On.prototype.size=60;var Fn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.get=function(t){return new On(this,t)},e}(Tn);_r("SymbolInstanceArray",Fn);var Un=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var i={offsetX:{configurable:!0}};return i.offsetX.get=function(){return this._structArray.float32[this._pos4+0]},i.offsetX.set=function(t){this._structArray.float32[this._pos4+0]=t},Object.defineProperties(e.prototype,i),e}(ln);Un.prototype.size=4;var Nn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getoffsetX=function(t){return this.float32[1*t+0]},e.prototype.get=function(t){return new Un(this,t)},e}(kn);_r("GlyphOffsetArray",Nn);var jn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var i={x:{configurable:!0},y:{configurable:!0},tileUnitDistanceFromAnchor:{configurable:!0}};return i.x.get=function(){return this._structArray.int16[this._pos2+0]},i.x.set=function(t){this._structArray.int16[this._pos2+0]=t},i.y.get=function(){return this._structArray.int16[this._pos2+1]},i.y.set=function(t){this._structArray.int16[this._pos2+1]=t},i.tileUnitDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+2]},i.tileUnitDistanceFromAnchor.set=function(t){this._structArray.int16[this._pos2+2]=t},Object.defineProperties(e.prototype,i),e}(ln);jn.prototype.size=6;var Vn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e.prototype.get=function(t){return new jn(this,t)},e}(En);_r("SymbolLineVertexArray",Vn);var qn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var i={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return i.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},i.featureIndex.set=function(t){this._structArray.uint32[this._pos4+0]=t},i.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},i.sourceLayerIndex.set=function(t){this._structArray.uint16[this._pos2+2]=t},i.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},i.bucketIndex.set=function(t){this._structArray.uint16[this._pos2+3]=t},Object.defineProperties(e.prototype,i),e}(ln);qn.prototype.size=8;var Zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.get=function(t){return new qn(this,t)},e}(Cn);_r("FeatureIndexArray",Zn);var $n=cn([{name:"a_pos",components:2,type:"Int16"}],4).members,Hn=function(t){void 0===t&&(t=[]),this.segments=t};function Gn(t,e){return 256*(t=l(Math.floor(t),0,255))+l(Math.floor(e),0,255)}Hn.prototype.prepareSegment=function(t,e,i,r){var n=this.segments[this.segments.length-1];return Hn.MAX_VERTEX_ARRAY_LENGTH<t&&pt("Max vertices per segment is "+Hn.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!n||n.vertexLength+t>Hn.MAX_VERTEX_ARRAY_LENGTH||n.sortKey!==r)&&(n={vertexOffset:e.length,primitiveOffset:i.length,vertexLength:0,primitiveLength:0},void 0!==r&&(n.sortKey=r),this.segments.push(n)),n},Hn.prototype.get=function(){return this.segments},Hn.prototype.destroy=function(){for(var t=0,e=this.segments;t<e.length;t+=1){var i=e[t];for(var r in i.vaos)i.vaos[r].destroy()}},Hn.simpleSegment=function(t,e,i,r){return new Hn([{vertexOffset:t,primitiveOffset:e,vertexLength:i,primitiveLength:r,vaos:{},sortKey:0}])},Hn.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,_r("SegmentVector",Hn);var Wn=e(function(t){t.exports=function(t,e){var i,r,n,o,a,s,l,u;for(i=3&t.length,r=t.length-i,n=e,a=3432918353,s=461845907,u=0;u<r;)l=255&t.charCodeAt(u)|(255&t.charCodeAt(++u))<<8|(255&t.charCodeAt(++u))<<16|(255&t.charCodeAt(++u))<<24,++u,n=27492+(65535&(o=5*(65535&(n=(n^=l=(6
vendor: 4,749 bytes, line 1
15535&(l=(l=(65535&l)*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|n>>>19))+((5*(n>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,i){case 3:l^=(255&t.charCodeAt(u+2))<<16;case 2:l^=(255&t.charCodeAt(u+1))<<8;case 1:n^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(u)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return n^=t.length,n=2246822507*(65535&(n^=n>>>16))+((2246822507*(n>>>16)&65535)<<16)&4294967295,n=3266489909*(65535&(n^=n>>>13))+((3266489909*(n>>>16)&65535)<<16)&4294967295,(n^=n>>>16)>>>0}}),Xn=e(function(t){t.exports=function(t,e){for(var i,r=t.length,n=e^r,o=0;4<=r;)i=1540483477*(65535&(i=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+((1540483477*(i>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:n^=(255&t.charCodeAt(o+2))<<16;case 2:n^=(255&t.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(o)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),(n^=n>>>15)>>>0}}),Kn=Wn,Yn=Wn,Jn=Xn;Kn.murmur3=Yn,Kn.murmur2=Jn;var Qn=function(){this.ids=[],this.positions=[],this.indexed=!1};Qn.prototype.add=function(t,e,i,r){this.ids.push(eo(t)),this.positions.push(e,i,r)},Qn.prototype.getPositions=function(t){for(var e=eo(t),i=0,r=this.ids.length-1;i<r;){var n=i+r>>1;this.ids[n]>=e?r=n:i=n+1}for(var o=[];this.ids[i]===e;){var a=this.positions[3*i],s=this.positions[3*i+1],l=this.positions[3*i+2];o.push({index:a,start:s,end:l}),i++}return o},Qn.serialize=function(t,e){var i=new Float64Array(t.ids),r=new Uint32Array(t.positions);return function t(e,i,r,n){if(!(n<=r)){for(var o=e[r+n>>1],a=r-1,s=n+1;;){for(;e[++a]<o;);for(;e[--s]>o;);if(s<=a)break;io(e,a,s),io(i,3*a,3*s),io(i,3*a+1,3*s+1),io(i,3*a+2,3*s+2)}t(e,i,r,s),t(e,i,s+1,n)}}(i,r,0,i.length-1),e&&e.push(i.buffer,r.buffer),{ids:i,positions:r}},Qn.deserialize=function(t){var e=new Qn;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var to=Math.pow(2,53)-1;function eo(t){var e=+t;return!isNaN(e)&&e<=to?e:Kn(String(t))}function io(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}_r("FeaturePositionMap",Qn);var ro=function(t,e){this.gl=t.gl,this.location=e},no=function(i){function t(t,e){i.call(this,t,e),this.current=0}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t))},t}(ro),oo=function(i){function t(t,e){i.call(this,t,e),this.current=0}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t))},t}(ro),ao=function(i){function t(t,e){i.call(this,t,e),this.current=[0,0]}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},t}(ro),so=function(i){function t(t,e){i.call(this,t,e),this.current=[0,0,0]}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},t}(ro),lo=function(i){function t(t,e){i.call(this,t,e),this.current=[0,0,0,0]}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]&&t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},t}(ro),uo=function(i){function t(t,e){i.call(this,t,e),this.current=Jt.transparent}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.set=function(t){t.r===this.current.r&&t.g===this.current.g&&t.b===this.current.b&&t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},t}(ro),co=new Float32Array(16),po=function(i){function t(t,e){i.call(this,t,e),this.current=co}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e<16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},t}(ro);function ho(t){return[Gn(255*t.r,255*t.g),Gn(255*t.b,255*t.a)]}
1var fo=function(t,e,i){this.value=t,this.uniformNames=e.map(function(t){return"u_"+t}),this.type=i};fo.prototype.setUniform=function(t,e,i){t.set(i.constantOr(this.value))},fo.prototype.getBinding=function(t,e){return"color"===this.type?new uo(t,e):new oo(t,e)};var mo=function(t,e){this.uniformNames=e.map(function(t){return"u_"+t}),this.patternFrom=null,this.patternTo=null};mo.prototype.setConstantPatternPositions=function(t,e){this.patternTo=t.tlbr,this.patternFrom=e.tlbr},mo.prototype.setUniform=function(t,e,i,r){var n="u_pattern_to"===r?this.patternTo:"u_pattern_from"===r?this.patternFrom:null;n&&t.set(n)},mo.prototype.getBinding=function(t,e){return new lo(t,e)};var yo=function(t,e,i,r){this.expression=t,this.type=i,this.maxValue=0,this.paintVertexAttributes=e.map(function(t){return{name:"a_"+t,type:"Float32",components:"color"===i?2:1,offset:0}}),this.paintVertexArray=new r};yo.prototype.populatePaintArray=function(t,e,i,r){var n=this.paintVertexArray.length,o=this.expression.evaluate(new Zr(0),e,{},[],r);this.paintVertexArray.resize(t),this._setPaintValue(n,t,o)},yo.prototype.updatePaintArray=function(t,e,i,r){var n=this.expression.evaluate({zoom:0},i,r);this._setPaintValue(t,e,n)},yo.prototype._setPaintValue=function(t,e,i){if("color"===this.type)for(var r=ho(i),n=t;n<e;n++)this.paintVertexArray.emplace(n,r[0],r[1]);else{for(var o=t;o<e;o++)this.paintVertexArray.emplace(o,i);this.maxValue=Math.max(this.maxValue,Math.abs(i))}},yo.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},yo.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()};var vo=function(t,e,i,r,n,o){this.expression=t,this.uniformNames=e.map(function(t){return"u_"+t+"_t"}),this.type=i,this.useIntegerZoom=r,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=e.map(function(t){return{name:"a_"+t,type:"Float32",components:"color"===i?4:2,offset:0}}),this.paintVertexArray=new o};vo.prototype.populatePaintArray=function(t,e,i,r){var n=this.expression.evaluate(new Zr(this.zoom),e,{},[],r),o=this.expression.evaluate(new Zr(this.zoom+1),e,{},[],r),a=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(a,t,n,o)},vo.prototype.updatePaintArray=function(t,e,i,r){var n=this.expression.evaluate({zoom:this.zoom},i,r),o=this.expression.evaluate({zoom:this.zoom+1},i,r);this._setPaintValue(t,e,n,o)},vo.prototype._setPaintValue=function(t,e,i,r){if("color"===this.type)for(var n=ho(i),o=ho(r),a=t;a<e;a++)this.paintVertexArray.emplace(a,n[0],n[1],o[0],o[1]);else{for(var s=t;s<e;s++)this.paintVertexArray.emplace(s,i,r);this.maxValue=Math.max(this.maxValue,Math.abs(i),Math.abs(r))}},vo.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},vo.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},vo.prototype.setUniform=function(t,e){var i=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,r=l(this.expression.interpolationFactor(i,this.zoom,this.zoom+1),0,1);t.set(r)},vo.prototype.getBinding=function(t,e){return new oo(t,e)};var go=function(t,e,i,r,n,o,a){this.expression=t,this.type=i,this.useIntegerZoom=r,this.zoom=n,this.layerId=a,this.paintVertexAttributes=e.map(function(t){return{name:"a_"+t,type:"Uint16",components:4,offset:0}}),this.zoomInPaintVertexArray=new o,this.zoomOutPaintVertexArray=new o};go.prototype.populatePaintArray=function(t,e,i){var r=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(r,t,e.patterns&&e.patterns[this.layerId],i)}
vendor: 4,603 bytes, line 1
1,go.prototype.updatePaintArray=function(t,e,i,r,n){this._setPaintValues(t,e,i.patterns&&i.patterns[this.layerId],n)},go.prototype._setPaintValues=function(t,e,i,r){if(r&&i){var n=i.min,o=i.mid,a=i.max,s=r[n],l=r[o],u=r[a];if(s&&l&&u)for(var c=t;c<e;c++)this.zoomInPaintVertexArray.emplace(c,l.tl[0],l.tl[1],l.br[0],l.br[1],s.tl[0],s.tl[1],s.br[0],s.br[1]),this.zoomOutPaintVertexArray.emplace(c,l.tl[0],l.tl[1],l.br[0],l.br[1],u.tl[0],u.tl[1],u.br[0],u.br[1])}},go.prototype.upload=function(t){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},go.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()};var _o=function(t,e,i,r){this.binders={},this.layoutAttributes=r,this._buffers=[];var n,o,a=[];for(var s in t.paint._values)if(i(s)){var l=t.paint.get(s);if(l instanceof Yr&&fi(l.property.specification)){var u=(n=s,o=t.type,{"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":["gapwidth"],"line-pattern":["pattern_to","pattern_from"],"fill-pattern":["pattern_to","pattern_from"],"fill-extrusion-pattern":["pattern_to","pattern_from"]}[n]||[n.replace(o+"-","").replace(/-/g,"_")]),c=l.value,p=l.property.specification.type,h=l.property.useIntegerZoom,d=l.property.specification["property-type"],f="cross-faded"===d||"cross-faded-data-driven"===d;if("constant"===c.kind)this.binders[s]=f?new mo(c.value,u):new fo(c.value,u,p),a.push("/u_"+s);else if("source"===c.kind||f){var m=bo(s,p,"source");this.binders[s]=f?new go(c,u,p,h,e,m,t.id):new yo(c,u,p,m),a.push("/a_"+s)}else{var y=bo(s,p,"composite");this.binders[s]=new vo(c,u,p,h,e,y),a.push("/z_"+s)}}}this.cacheKey=a.sort().join("")};_o.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof yo||e instanceof vo?e.maxValue:0},_o.prototype.populatePaintArrays=function(t,e,i,r){for(var n in this.binders){var o=this.binders[n];(o instanceof yo||o instanceof vo||o instanceof go)&&o.populatePaintArray(t,e,i,r)}},_o.prototype.setConstantPatternPositions=function(t,e){for(var i in this.binders){var r=this.binders[i];r instanceof mo&&r.setConstantPatternPositions(t,e)}},_o.prototype.updatePaintArrays=function(t,e,i,r,n){var o=!1;for(var a in t)for(var s=0,l=e.getPositions(a);s<l.length;s+=1){var u=l[s],c=i.feature(u.index);for(var p in this.binders){var h=this.binders[p];if((h instanceof yo||h instanceof vo||h instanceof go)&&!0===h.expression.isStateDependent){var d=r.paint.get(p);h.expression=d.value,h.updatePaintArray(u.start,u.end,c,t[a],n),o=!0}}}return o},_o.prototype.defines=function(){var t=[];for(var e in this.binders){var i=this.binders[e];(i instanceof fo||i instanceof mo)&&t.push.apply(t,i.uniformNames.map(function(t){return"#define HAS_UNIFORM_"+t}))}return t},_o.prototype.getPaintVertexBuffers=function(){return this._buffers},_o.prototype.getUniforms=function(t,e){var i=[];for(var r in this.binders){var n=this.binders[r];if(n instanceof fo||n instanceof mo||n instanceof vo)for(var o=0,a=n.uniformNames;o<a.length;o+=1){var s=a[o];if(e[s]){var l=n.getBinding(t,e[s]);i.push({name:s,property:r,binding:l})}}}return i},_o.prototype.setUniforms=function(t,e,i,r){for(var n=0,o=e;n<o.length;n+=1){var a=o[n],s=a.name,l=a.property,u=a.binding;this.binders[l].setUniform(u,r,i.get(l),s)}},_o.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var i=this.binders[e];if(t&&i instanceof go){var r=2===t.fromScale?i.zoomInPaintVertexBuffer:i.zoomOutPaintVertexBuffer;r&&this._buffers.push(r)}else(i instanceof yo||i instanceof vo)&&i.paintVertexBuffer&&this._buffers.push(i.paintVertexBuffer)}},_o.prototype.upload=function(t){for(var e in this.binders){var i=this.binders[e];(i instanceof yo||i instanceof vo||i instanceof go)&&i.upload(t)}this.updatePaintBuffers()},_o.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof yo||e instanceof vo||e instanceof go)&&e.destroy()}};
1var xo=function(t,e,i,r){void 0===r&&(r=function(){return!0}),this.programConfigurations={};for(var n=0,o=e;n<o.length;n+=1){var a=o[n];this.programConfigurations[a.id]=new _o(a,i,r,t)}this.needsUpload=!1,this._featureMap=new Qn,this._bufferOffset=0};function bo(t,e,i){var r={color:{source:Pn,composite:Mn},number:{source:kn,composite:Pn}},n={"line-pattern":{source:yn,composite:yn},"fill-pattern":{source:yn,composite:yn},"fill-extrusion-pattern":{source:yn,composite:yn}}[t];return n&&n[i]||r[e][i]}xo.prototype.populatePaintArrays=function(t,e,i,r,n){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(t,e,r,n);void 0!==e.id&&this._featureMap.add(e.id,i,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},xo.prototype.updatePaintArrays=function(t,e,i,r){for(var n=0,o=i;n<o.length;n+=1){var a=o[n];this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(t,this._featureMap,e,a,r)||this.needsUpload}},xo.prototype.get=function(t){return this.programConfigurations[t]},xo.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},xo.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},_r("ConstantBinder",fo),_r("CrossFadedConstantBinder",mo),_r("SourceExpressionBinder",yo),_r("CrossFadedCompositeBinder",go),_r("CompositeExpressionBinder",vo),_r("ProgramConfiguration",_o,{omit:["_buffers"]}),_r("ProgramConfigurationSet",xo);var wo=8192,So=(15,{min:-1*Math.pow(2,14),max:Math.pow(2,14)-1});function To(t){for(var e=wo/t.extent,i=t.loadGeometry(),r=0;r<i.length;r++)for(var n=i[r],o=0;o<n.length;o++){var a=n[o];a.x=Math.round(a.x*e),a.y=Math.round(a.y*e),(a.x<So.min||a.x>So.max||a.y<So.min||a.y>So.max)&&(pt("Geometry exceeds allowed extent, reduce your vector tile buffer size"),a.x=l(a.x,So.min,So.max),a.y=l(a.y,So.min,So.max))}return i}function ko(t,e,i,r,n){t.emplaceBack(2*e+(r+1)/2,2*i+(n+1)/2)}var Eo=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new hn,this.indexArray=new An,this.segments=new Hn,this.programConfigurations=new xo($n,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(function(t){return t.isStateDependent()}).map(function(t){return t.id})};function Co(t,e){for(var i=0;i<t.length;i++)if(Do(e,t[i]))return!0;for(var r=0;r<e.length;r++)if(Do(t,e[r]))return!0;return!!zo(t,e)}function Ao(t,e){if(1===t.length)return Lo(e,t[0]);for(var i=0;i<e.length;i++)for(var r=e[i],n=0;n<r.length;n++)if(Do(t,r[n]))return!0;for(var o=0;o<t.length;o++)if(Lo(e,t[o]))return!0;for(var a=0;a<e.length;a++)if(zo(t,e[a]))return!0;return!1}function Io(t,e,i){if(1<t.length){if(zo(t,e))return!0;for(var r=0;r<e.length;r++)if(Po(e[r],t,i))return!0}for(var n=0;n<t.length;n++)if(Po(t[n],e,i))return!0;return!1}function zo(t,e){if(0===t.length||0===e.length)return!1;for(var i=0;i<t.length-1;i++)for(var r=t[i],n=t[i+1],o=0;o<e.length-1;o++)if(a=r,s=n,l=e[o],u=e[o+1],x(a,l,u)!==x(s,l,u)&&x(a,s,l)!==x(a,s,u))return!0;var a,s,l,u;return!1}function Po(t,e,i){var r=i*i;if(1===e.length)return t.distSqr(e[0])<r;for(var n=1;n<e.length;n++)if(Mo(t,e[n-1],e[n])<r)return!0;return!1}function Mo(t,e,i){var r=e.distSqr(i);if(0===r)return t.distSqr(e);var n=((t.x-e.x)*(i.x-e.x)+(t.y-e.y)*(i.y-e.y))/r;return n<0?t.distSqr(e):1<n?t.distSqr(i):t.distSqr(i.sub(e)._mult(n)._add(e))}function Lo(t,e){for(var i,r,n,o=!1,a=0;a<t.length;a++)for(var s=0,l=(i=t[a]).length-1;s<i.length;l=s++)r=i[s],n=i[l],r.y>e.y!=n.y>e.y&&e.x<(n.x-r.x)*(e.y-r.y)/(n.y-r.y)+r.x&&(o=!o);return o}function Do(t,e){for(var i=!1,r=0,n=t.length-1;r<t.length;n=r++){var o=t[r],a=t[n];o.y>e.y!=a.y>e.y&&e.x<(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&&(i=!i)}return i}function Ro(t,e,i){var r=i[0],n=i[2];if(t.x<r.x&&e.x<r.x||t.x>n.x&&e.x>n.x||t.y<r.y&&e.y<r.y||t.y>n.y&&e.y>n.y)return!1;var o=x(t,e,i[0]);return o!==x(t,e,i[1])||o!==x(t,e,i[2])||o!==x(t,e,i[3])}function Bo(t,e,i){var r=e.paint.get(t).value;return"constant"===r.kind?r.value:i.programConfigurations.get(e.id).getMaxValue(t)}function Oo(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Fo(t,e,i,r,n){if(!e[0]&&!e[1])return t;var o=ct.convert(e)._mult(n);"viewport"===i&&o._rotate(-r);for(var a=[],s=0;s<t.length;s++){var l=t[s];
1a.push(l.sub(o))}return a}Eo.prototype.populate=function(t,e){var i=this.layers[0],r=[],n=null;"circle"===i.type&&(n=i.layout.get("circle-sort-key"));for(var o=0,a=t;o<a.length;o+=1){var s=a[o],l=s.feature,u=s.id,c=s.index,p=s.sourceLayerIndex;if(this.layers[0]._featureFilter(new Zr(this.zoom),l)){var h=To(l),d=n?n.evaluate(l,{}):void 0,f={id:u,properties:l.properties,type:l.type,sourceLayerIndex:p,index:c,geometry:h,patterns:{},sortKey:d};r.push(f)}}n&&r.sort(function(t,e){return t.sortKey-e.sortKey});for(var m=0,y=r;m<y.length;m+=1){var v=y[m],g=v,_=g.geometry,x=g.index,b=g.sourceLayerIndex,w=t[x].feature;this.addFeature(v,_,x),e.featureIndex.insert(w,_,x,b,this.index)}},Eo.prototype.update=function(t,e,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,i)},Eo.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Eo.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Eo.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,$n),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Eo.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Eo.prototype.addFeature=function(t,e,i){for(var r=0,n=e;r<n.length;r+=1)for(var o=0,a=n[r];o<a.length;o+=1){var s=a[o],l=s.x,u=s.y;if(!(l<0||wo<=l||u<0||wo<=u)){var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),p=c.vertexLength;ko(this.layoutVertexArray,l,u,-1,-1),ko(this.layoutVertexArray,l,u,1,-1),ko(this.layoutVertexArray,l,u,1,1),ko(this.layoutVertexArray,l,u,-1,1),this.indexArray.emplaceBack(p,p+1,p+2),this.indexArray.emplaceBack(p,p+3,p+2),c.vertexLength+=4,c.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,i,{})},_r("CircleBucket",Eo,{omit:["layers"]});var Uo=new on({"circle-sort-key":new tn(It.layout_circle["circle-sort-key"])}),No={paint:new on({"circle-radius":new tn(It.paint_circle["circle-radius"]),"circle-color":new tn(It.paint_circle["circle-color"]),"circle-blur":new tn(It.paint_circle["circle-blur"]),"circle-opacity":new tn(It.paint_circle["circle-opacity"]),"circle-translate":new Qr(It.paint_circle["circle-translate"]),"circle-translate-anchor":new Qr(It.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Qr(It.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Qr(It.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new tn(It.paint_circle["circle-stroke-width"]),"circle-stroke-color":new tn(It.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new tn(It.paint_circle["circle-stroke-opacity"])}),layout:Uo},jo="undefined"!=typeof Float32Array?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,i=arguments.length;i--;)e+=t[i]*t[i];return Math.sqrt(e)});var Vo,qo;function Zo(t,e,i){var r=e[0],n=e[1],o=e[2],a=e[3];return t[0]=i[0]*r+i[4]*n+i[8]*o+i[12]*a,t[1]=i[1]*r+i[5]*n+i[9]*o+i[13]*a,t[2]=i[2]*r+i[6]*n+i[10]*o+i[14]*a,t[3]=i[3]*r+i[7]*n+i[11]*o+i[15]*a,t}Vo=new jo(3),jo!=Float32Array&&(Vo[0]=0,Vo[1]=0,Vo[2]=0),qo=new jo(4),jo!=Float32Array&&(qo[0]=0,qo[1]=0,qo[2]=0,qo[3]=0);var $o,Ho=($o=new jo(2),jo!=Float32Array&&($o[0]=0,$o[1]=0),function(e){function t(t){e.call(this,t,No)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.createBucket=function(t){return new Eo(t)},t.prototype.queryRadius=function(t){var e=t;return Bo("circle-radius",this,e)+Bo("circle-stroke-width",this,e)+Oo(this.paint.get("circle-translate"))},t.prototype.queryIntersectsFeature=function(t,e,i,r,n,o,a,s){for(var l=Fo(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),u=this.paint.get("circle-radius").evaluate(e,i)+this.paint.get("circle-stroke-width").evaluate(e,i),c="map"===this.paint.get("circle-pitch-alignment"),p=c?l:function(t,e){return l.map(function(t){return Go(t,e)})}(0,s),h=c?u*a:u,d=0,f=r;d<f.length;d+=1)for(var m=0,y=f[d];m<y.length;m+=1){var v=y[m],g=c?v:Go(v,s),_=h,x=Zo([],[v.x,v.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?_*=x[3]/o.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(_*=o.cameraToCenterDistance/x[3]),S=_,Do(b=p,w=g)||Po(w,b,S))return!0}var b,w,S;return!1},t}(an));function Go(t,e){var i=Zo([],[t.x,t.y,0,1],e);return new ct(i[0]/i[3],i[1]/i[3])}var Wo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e}(Eo);function Xo(t,e,i,r){var n=e.width,o=e.height;if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==n*o*i)throw new RangeError("mismatched image size")}else r=new Uint8Array(n*o*i);return t.width=n,t.height=o,t.data=r,t}
vendor: 4,250 bytes, line 1
1function Ko(t,e,i){var r=e.width,n=e.height;if(r!==t.width||n!==t.height){var o=Xo({},{width:r,height:n},i);Yo(t,o,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,r),height:Math.min(t.height,n)},i),t.width=r,t.height=n,t.data=o.data}}function Yo(t,e,i,r,n,o){if(0===n.width||0===n.height)return e;if(n.width>t.width||n.height>t.height||i.x>t.width-n.width||i.y>t.height-n.height)throw new RangeError("out of range source coordinates for image copy");if(n.width>e.width||n.height>e.height||r.x>e.width-n.width||r.y>e.height-n.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=t.data,s=e.data,l=0;l<n.height;l++)for(var u=((i.y+l)*t.width+i.x)*o,c=((r.y+l)*e.width+r.x)*o,p=0;p<n.width*o;p++)s[c+p]=a[u+p];return e}_r("HeatmapBucket",Wo,{omit:["layers"]});var Jo=function(t,e){Xo(this,t,1,e)};Jo.prototype.resize=function(t){Ko(this,t,1)},Jo.prototype.clone=function(){return new Jo({width:this.width,height:this.height},new Uint8Array(this.data))},Jo.copy=function(t,e,i,r,n){Yo(t,e,i,r,n,1)};var Qo=function(t,e){Xo(this,t,4,e)};Qo.prototype.resize=function(t){Ko(this,t,4)},Qo.prototype.replace=function(t,e){e?this.data.set(t):t instanceof Uint8ClampedArray?this.data=new Uint8Array(t.buffer):this.data=t},Qo.prototype.clone=function(){return new Qo({width:this.width,height:this.height},new Uint8Array(this.data))},Qo.copy=function(t,e,i,r,n){Yo(t,e,i,r,n,4)},_r("AlphaImage",Jo),_r("RGBAImage",Qo);var ta={paint:new on({"heatmap-radius":new tn(It.paint_heatmap["heatmap-radius"]),"heatmap-weight":new tn(It.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Qr(It.paint_heatmap["heatmap-intensity"]),"heatmap-color":new nn(It.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Qr(It.paint_heatmap["heatmap-opacity"])})};function ea(t,e){for(var i=new Uint8Array(1024),r={},n=0,o=0;n<256;n++,o+=4){r[e]=n/255;var a=t.evaluate(r);i[o+0]=Math.floor(255*a.r/a.a),i[o+1]=Math.floor(255*a.g/a.a),i[o+2]=Math.floor(255*a.b/a.a),i[o+3]=Math.floor(255*a.a)}return new Qo({width:256,height:1},i)}var ia=function(e){function t(t){e.call(this,t,ta),this._updateColorRamp()}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.createBucket=function(t){return new Wo(t)},t.prototype._handleSpecialPaintPropertyUpdate=function(t){"heatmap-color"===t&&this._updateColorRamp()},t.prototype._updateColorRamp=function(){var t=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=ea(t,"heatmapDensity"),this.colorRampTexture=null},t.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},t.prototype.queryRadius=function(){return 0},t.prototype.queryIntersectsFeature=function(){return!1},t.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility},t}(an),ra={paint:new on({"hillshade-illumination-direction":new Qr(It.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new Qr(It.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new Qr(It.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new Qr(It.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new Qr(It.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new Qr(It.paint_hillshade["hillshade-accent-color"])})},na=function(e){function t(t){e.call(this,t,ra)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility},t}(an),oa=cn([{name:"a_pos",components:2,type:"Int16"}],4).members,aa=la,sa=la;function la(t,e,i){i=i||2;var r,n,o,a,s,l,u,c=e&&e.length,p=c?e[0]*i:t.length,h=ua(t,0,p,i,!0),d=[];if(!h||h.next===h.prev)return d;if(c&&(h=function(t,e,i,r){var n,o,a,s=[];for(n=0,o=e.length;n<o;n++)(a=ua(t,e[n]*r,n<o-1?e[n+1]*r:t.length,r,!1))===a.next&&(a.steiner=!0),s.push(_a(a));for(s.sort(ya),n=0;n<s.length;n++)va(s[n],i),i=ca(i,i.next);return i}(t,e,h,i)),t.length>80*i){r=o=t[0],n=a=t[1];for(var f=i;f<p;f+=i)(s=t[f])<r&&(r=s),(l=t[f+1])<n&&(n=l),o<s&&(o=s),a<l&&(a=l);u=0!==(u=Math.max(o-r,a-n))?1/u:0}return pa(h,d,i,r,n,u),d}
1function ua(t,e,i,r,n){var o,a;if(n===0<Pa(t,e,i,r))for(o=e;o<i;o+=r)a=Aa(o,t[o],t[o+1],a);else for(o=i-r;e<=o;o-=r)a=Aa(o,t[o],t[o+1],a);return a&&wa(a,a.next)&&(Ia(a),a=a.next),a}function ca(t,e){if(!t)return t;e||(e=t);var i,r=t;do{if(i=!1,r.steiner||!wa(r,r.next)&&0!==ba(r.prev,r,r.next))r=r.next;else{if(Ia(r),(r=e=r.prev)===r.next)break;i=!0}}while(i||r!==e);return e}function pa(t,e,i,r,n,o,a){if(t){!a&&o&&function(t,e,i,r){for(var n=t;null===n.z&&(n.z=ga(n.x,n.y,e,i,r)),n.prevZ=n.prev,n.nextZ=n.next,(n=n.next)!==t;);n.prevZ.nextZ=null,n.prevZ=null,function(t){var e,i,r,n,o,a,s,l,u=1;do{for(i=t,o=t=null,a=0;i;){for(a++,r=i,e=s=0;e<u&&(s++,r=r.nextZ);e++);for(l=u;0<s||0<l&&r;)0!==s&&(0===l||!r||i.z<=r.z)?(i=(n=i).nextZ,s--):(r=(n=r).nextZ,l--),o?o.nextZ=n:t=n,n.prevZ=o,o=n;i=r}o.nextZ=null,u*=2}while(1<a)}(n)}(t,r,n,o);for(var s,l,u=t;t.prev!==t.next;)if(s=t.prev,l=t.next,o?da(t,r,n,o):ha(t))e.push(s.i/i),e.push(t.i/i),e.push(l.i/i),Ia(t),t=l.next,u=l.next;else if((t=l)===u){a?1===a?pa(t=fa(ca(t),e,i),e,i,r,n,o,2):2===a&&ma(t,e,i,r,n,o):pa(ca(t),e,i,r,n,o,1);break}}}function ha(t){var e=t.prev,i=t,r=t.next;if(0<=ba(e,i,r))return!1;for(var n=t.next.next;n!==t.prev;){if(xa(e.x,e.y,i.x,i.y,r.x,r.y,n.x,n.y)&&0<=ba(n.prev,n,n.next))return!1;n=n.next}return!0}function da(t,e,i,r){var n=t.prev,o=t,a=t.next;if(0<=ba(n,o,a))return!1;for(var s=n.x<o.x?n.x<a.x?n.x:a.x:o.x<a.x?o.x:a.x,l=n.y<o.y?n.y<a.y?n.y:a.y:o.y<a.y?o.y:a.y,u=n.x>o.x?n.x>a.x?n.x:a.x:o.x>a.x?o.x:a.x,c=n.y>o.y?n.y>a.y?n.y:a.y:o.y>a.y?o.y:a.y,p=ga(s,l,e,i,r),h=ga(u,c,e,i,r),d=t.prevZ,f=t.nextZ;d&&d.z>=p&&f&&f.z<=h;){if(d!==t.prev&&d!==t.next&&xa(n.x,n.y,o.x,o.y,a.x,a.y,d.x,d.y)&&0<=ba(d.prev,d,d.next))return!1;if(d=d.prevZ,f!==t.prev&&f!==t.next&&xa(n.x,n.y,o.x,o.y,a.x,a.y,f.x,f.y)&&0<=ba(f.prev,f,f.next))return!1;f=f.nextZ}for(;d&&d.z>=p;){if(d!==t.prev&&d!==t.next&&xa(n.x,n.y,o.x,o.y,a.x,a.y,d.x,d.y)&&0<=ba(d.prev,d,d.next))return!1;d=d.prevZ}for(;f&&f.z<=h;){if(f!==t.prev&&f!==t.next&&xa(n.x,n.y,o.x,o.y,a.x,a.y,f.x,f.y)&&0<=ba(f.prev,f,f.next))return!1;f=f.nextZ}return!0}function fa(t,e,i){var r=t;do{var n=r.prev,o=r.next.next;!wa(n,o)&&Sa(n,r,r.next,o)&&Ea(n,o)&&Ea(o,n)&&(e.push(n.i/i),e.push(r.i/i),e.push(o.i/i),Ia(r),Ia(r.next),r=t=o),r=r.next}while(r!==t);return ca(r)}function ma(t,e,i,r,n,o){var a,s,l=t;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&(s=u,(a=l).next.i!==s.i&&a.prev.i!==s.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&Sa(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(a,s)&&(Ea(a,s)&&Ea(s,a)&&function(t,e){for(var i=t,r=!1,n=(t.x+e.x)/2,o=(t.y+e.y)/2;i.y>o!=i.next.y>o&&i.next.y!==i.y&&n<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(r=!r),(i=i.next)!==t;);return r}(a,s)&&(ba(a.prev,a,s.prev)||ba(a,s.prev,s))||wa(a,s)&&0<ba(a.prev,a,a.next)&&0<ba(s.prev,s,s.next)))){var c=Ca(l,u);return l=ca(l,l.next),c=ca(c,c.next),pa(l,e,i,r,n,o),void pa(c,e,i,r,n,o)}u=u.next}l=l.next}while(l!==t)}function ya(t,e){return t.x-e.x}function va(t,e){if(e=function(t,e){var i,r=e,n=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y
1);if(s<=n&&a<s){if((a=s)===n){if(o===r.y)return r;if(o===r.next.y)return r.next}i=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!i)return null;if(n===a)return i;var l,u,c,p=i,h=i.x,d=i.y,f=1/0;for(r=i;n>=r.x&&r.x>=h&&n!==r.x&&xa(o<d?n:a,o,h,d,o<d?a:n,o,r.x,r.y)&&(l=Math.abs(o-r.y)/(n-r.x),Ea(r,t)&&(l<f||l===f&&(r.x>i.x||r.x===i.x&&(c=r,ba((u=i).prev,u,c.prev)<0&&ba(c.next,u,u.next)<0)))&&(i=r,f=l)),(r=r.next)!==p;);return i}(t,e)){var i=Ca(e,t);ca(e,e.next),ca(i,i.next)}}function ga(t,e,i,r,n){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*n)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*n)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function _a(t){for(var e=t,i=t;(e.x<i.x||e.x===i.x&&e.y<i.y)&&(i=e),(e=e.next)!==t;);return i}function xa(t,e,i,r,n,o,a,s){return 0<=(n-a)*(e-s)-(t-a)*(o-s)&&0<=(t-a)*(r-s)-(i-a)*(e-s)&&0<=(i-a)*(o-s)-(n-a)*(r-s)}function ba(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function wa(t,e){return t.x===e.x&&t.y===e.y}function Sa(t,e,i,r){var n=ka(ba(t,e,i)),o=ka(ba(t,e,r)),a=ka(ba(i,r,t)),s=ka(ba(i,r,e));return n!==o&&a!==s||!(0!==n||!Ta(t,i,e))||!(0!==o||!Ta(t,r,e))||!(0!==a||!Ta(i,t,r))||!(0!==s||!Ta(i,e,r))}
1function Ta(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function ka(t){return 0<t?1:t<0?-1:0}function Ea(t,e){return ba(t.prev,t,t.next)<0?0<=ba(t,e,t.next)&&0<=ba(t,t.prev,e):ba(t,e,t.prev)<0||ba(t,t.next,e)<0}function Ca(t,e){var i=new za(t.i,t.x,t.y),r=new za(e.i,e.x,e.y),n=t.next,o=e.prev;return(t.next=e).prev=t,(i.next=n).prev=i,(r.next=i).prev=r,(o.next=r).prev=o,r}function Aa(t,e,i,r){var n=new za(t,e,i);return r?(n.next=r.next,(n.prev=r).next.prev=n,r.next=n):(n.prev=n).next=n,n}function Ia(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function za(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Pa(t,e,i,r){for(var n=0,o=e,a=i-r;o<i;o+=r)n+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return n}function Ma(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function La(t,e){return t<e?-1:e<t?1:0}function Da(t,e){var i,r,n,o,a,s=t.length;if(s<=1)return[t];for(var l,u,c=[],p=0;p<s;p++){var h=b(t[p]);0!==h&&(t[p].area=Math.abs(h),void 0===u&&(u=h<0),u===h<0?(l&&c.push(l),l=[t[p]]):l.push(t[p]))}if(l&&c.push(l),1<e)for(var d=0;d<c.length;d++)c[d].length<=e||(i=c[d],r=e,n=1,o=c[d].length-1,a=Ra,function t(e,i,r,n,o){for(;r<n;){if(600<n-r){var a=n-r+1,s=i-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);t(e,i,Math.max(r,Math.floor(i-s*u/a+c)),Math.min(n,Math.floor(i+(a-s)*u/a+c)),o)}var p=e[i],h=r,d=n;for(Ma(e,r,i),0<o(e[n],p)&&Ma(e,r,n);h<d;){for(Ma(e,h,d),h++,d--;o(e[h],p)<0;)h++;for(;0<o(e[d],p);)d--}0===o(e[r],p)?Ma(e,r,d):Ma(e,++d,n),d<=i&&(r=d+1),i<=d&&(n=d-1)}}(i,r,n||0,o||i.length-1,a||La),c[d]=c[d].slice(0,e));return c}function Ra(t,e){return e.area-t.area}function Ba(t,e,i){for(var r=i.patternDependencies,n=!1,o=0,a=e;o<a.length;o+=1){var s=a[o].paint.get(t+"-pattern");s.isConstant()||(n=!0);var l=s.constantOr(null);l&&(n=!0,r[l.to]=!0,r[l.from]=!0)}return n}function Oa(t,e,i,r,n){for(var o=n.patternDependencies,a=0,s=e;a<s.length;a+=1){var l=s[a],u=l.paint.get(t+"-pattern").value;if("constant"!==u.kind){var c=u.evaluate({zoom:r-1},i,{},n.availableImages),p=u.evaluate({zoom:r},i,{},n.availableImages),h=u.evaluate({zoom:r+1},i,{},n.availableImages);c=c&&c.name?c.name:c,p=p&&p.name?p.name:p,h=h&&h.name?h.name:h,o[c]=!0,o[p]=!0,o[h]=!0,i.patterns[l.id]={min:c,mid:p,max:h}}}return i}la.deviation=function(t,e,i,r){var n=e&&e.length,o=n?e[0]*i:t.length,a=Math.abs(Pa(t,0,o,i));if(n)for(var s=0,l=e.length;s<l;s++){var u=e[s]*i,c=s<l-1?e[s+1]*i:t.length;a-=Math.abs(Pa(t,u,c,i))}var p=0;for(s=0;s<r.length;s+=3){var h=r[s]*i,d=r[s+1]*i,f=r[s+2]*i;p+=Math.abs((t[h]-t[f])*(t[d+1]-t[h+1])-(t[h]-t[d])*(t[f+1]-t[h+1]))}return 0===a&&0===p?0:Math.abs((p-a)/a)},la.flatten=function(t){for(var e=t[0][0].length,i={vertices:[],holes:[],dimensions:e},r=0,n=0;n<t.length;n++){for(var o=0;o<t[n].length;o++)for(var a=0;a<e;a++)i.vertices.push(t[n][o][a]);0<n&&(r+=t[n-1].length,i.holes.push(r))}return i},aa.default=sa;var Fa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new hn,this.indexArray=new An,this.indexArray2=new In,this.programConfigurations=new xo(oa,t.layers,t.zoom),this.segments=new Hn,this.segments2=new Hn,this.stateDependentLayerIds=this.layers.filter(function(t){return t.isStateDependent()}).map(function(t){return t.id})};Fa.prototype.populate=function(t,e){this.hasPattern=Ba("fill",this.layers,e);for(var i=this.layers[0].layout.get("fill-sort-key"),r=[],n=0,o=t;n<o.length;n+=1){var a=o[n],s=a.feature,l=a.id,u=a.index,c=a.sourceLayerIndex;if(this.layers[0]._featureFilter(new Zr(this.zoom),s)){var p=To(s),h=i?i.evaluate(s,{},e.availableImages):void 0,d={id:l,properties:s.properties,type:s.type,sourceLayerIndex:c,index:u,geometry:p,patterns:{},sortKey:h};r.push(d)}}i&&r.sort(function(t,e){return t.sortKey-e.sortKey});for(var f=0,m=r;f<m.length;f+=1){var y=m[f],v=y,g=v.geometry,_=v.index,x=v.sourceLayerIndex;if(this.hasPattern){var b=Oa("fill",this.layers,y,this.zoom,e);this.patternFeatures.push(b)}else this.addFeature(y,g,_,{});var w=t[_].feature;e.featureIndex.insert(w,g,_,x,this.index)}}
vendor: 4,684 bytes, line 1
1,Fa.prototype.update=function(t,e,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,i)},Fa.prototype.addFeatures=function(t,e){for(var i=0,r=this.patternFeatures;i<r.length;i+=1){var n=r[i];this.addFeature(n,n.geometry,n.index,e)}},Fa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Fa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Fa.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,oa),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},Fa.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},Fa.prototype.addFeature=function(t,e,i,r){for(var n=0,o=Da(e,500);n<o.length;n+=1){for(var a=o[n],s=0,l=0,u=a;l<u.length;l+=1)s+=u[l].length;for(var c=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray),p=c.vertexLength,h=[],d=[],f=0,m=a;f<m.length;f+=1){var y=m[f];if(0!==y.length){y!==a[0]&&d.push(h.length/2);var v=this.segments2.prepareSegment(y.length,this.layoutVertexArray,this.indexArray2),g=v.vertexLength;this.layoutVertexArray.emplaceBack(y[0].x,y[0].y),this.indexArray2.emplaceBack(g+y.length-1,g),h.push(y[0].x),h.push(y[0].y);for(var _=1;_<y.length;_++)this.layoutVertexArray.emplaceBack(y[_].x,y[_].y),this.indexArray2.emplaceBack(g+_-1,g+_),h.push(y[_].x),h.push(y[_].y);v.vertexLength+=y.length,v.primitiveLength+=y.length}}for(var x=aa(h,d),b=0;b<x.length;b+=3)this.indexArray.emplaceBack(p+x[b],p+x[b+1],p+x[b+2]);c.vertexLength+=s,c.primitiveLength+=x.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,i,r)},_r("FillBucket",Fa,{omit:["layers","patternFeatures"]});var Ua=new on({"fill-sort-key":new tn(It.layout_fill["fill-sort-key"])}),Na={paint:new on({"fill-antialias":new Qr(It.paint_fill["fill-antialias"]),"fill-opacity":new tn(It.paint_fill["fill-opacity"]),"fill-color":new tn(It.paint_fill["fill-color"]),"fill-outline-color":new tn(It.paint_fill["fill-outline-color"]),"fill-translate":new Qr(It.paint_fill["fill-translate"]),"fill-translate-anchor":new Qr(It.paint_fill["fill-translate-anchor"]),"fill-pattern":new en(It.paint_fill["fill-pattern"])}),layout:Ua},ja=function(r){function t(t){r.call(this,t,Na)}return r&&(t.__proto__=r),((t.prototype=Object.create(r&&r.prototype)).constructor=t).prototype.recalculate=function(t,e){r.prototype.recalculate.call(this,t,e);var i=this.paint._values["fill-outline-color"];"constant"===i.value.kind&&void 0===i.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])},t.prototype.createBucket=function(t){return new Fa(t)},t.prototype.queryRadius=function(){return Oo(this.paint.get("fill-translate"))},t.prototype.queryIntersectsFeature=function(t,e,i,r,n,o,a){return Ao(Fo(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,a),r)},t.prototype.isTileClipped=function(){return!0},t}(an),Va=cn([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4).members,qa=Za;function Za(t,e,i,r,n){this.properties={},this.extent=i,this.type=0,this._pbf=t,this._geometry=-1,this._keys=r,this._values=n,t.readFields($a,this,e)}function $a(t,e,i){1==t?e.id=i.readVarint():2==t?function(t,e){for(var i=t.readVarint()+t.pos;t.pos<i;){var r=e._keys[t.readVarint()],n=e._values[t.readVarint()];e.properties[r]=n}}(i,e):3==t?e.type=i.readVarint():4==t&&(e._geometry=i.pos)}function Ha(t){for(var e,i,r=0,n=0,o=t.length,a=o-1;n<o;a=n++)e=t[n],r+=((i=t[a]).x-e.x)*(e.y+i.y);return r}Za.types=["Unknown","Point","LineString","Polygon"],Za.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,i=t.readVarint()+t.pos,r=1,n=0,o=0,a=0,s=[];t.pos<i;){if(n<=0){var l=t.readVarint();r=7&l,n=l>>3}if(n--,1===r||2===r)o+=t.readSVarint(),a+=t.readSVarint(),1===r&&(e&&s.push(e),e=[]),e.push(new ct(o,a));else{if(7!==r)throw new Error("unknown command "+r);e&&e.push(e[0].clone())}}return e&&s.push(e),s},Za.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,i=1,r=0,n=0,o=0,a=1/0,s=-1/0,l=1/0,u=-1/0;t.pos<e;){if(r<=0){var c=t.readVarint();i=7&c,r=c>>3}if(r--,1===i||2===i)(n+=t.readSVarint())<a&&(a=n),s<n&&(s=n),(o+=t.readSVarint())<l&&(l=o),u<o&&(u=o);else if(7!==i)throw new Error("unknown command "+i)}return[a,l,s,u]}
vendor: 4,183 bytes, line 1
1,Za.prototype.toGeoJSON=function(t,e,i){var r,n,o=this.extent*Math.pow(2,i),a=this.extent*t,s=this.extent*e,l=this.loadGeometry(),u=Za.types[this.type];function c(t){for(var e=0;e<t.length;e++){var i=t[e],r=180-360*(i.y+s)/o;t[e]=[360*(i.x+a)/o-180,360/Math.PI*Math.atan(Math.exp(r*Math.PI/180))-90]}}switch(this.type){case 1:var p=[];for(r=0;r<l.length;r++)p[r]=l[r][0];c(l=p);break;case 2:for(r=0;r<l.length;r++)c(l[r]);break;case 3:for(l=function(t){var e=t.length;if(e<=1)return[t];for(var i,r,n=[],o=0;o<e;o++){var a=Ha(t[o]);0!==a&&(void 0===r&&(r=a<0),r===a<0?(i&&n.push(i),i=[t[o]]):i.push(t[o]))}return i&&n.push(i),n}(l),r=0;r<l.length;r++)for(n=0;n<l[r].length;n++)c(l[r][n])}1===l.length?l=l[0]:u="Multi"+u;var h={type:"Feature",geometry:{type:u,coordinates:l},properties:this.properties};return"id"in this&&(h.id=this.id),h};var Ga=Wa;function Wa(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(Xa,this,e),this.length=this._features.length}function Xa(t,e,i){15===t?e.version=i.readVarint():1===t?e.name=i.readString():5===t?e.extent=i.readVarint():2===t?e._features.push(i.pos):3===t?e._keys.push(i.readString()):4===t&&e._values.push(function(t){for(var e=null,i=t.readVarint()+t.pos;t.pos<i;){var r=t.readVarint()>>3;e=1===r?t.readString():2===r?t.readFloat():3===r?t.readDouble():4===r?t.readVarint64():5===r?t.readVarint():6===r?t.readSVarint():7===r?t.readBoolean():null}return e}(i))}function Ka(t,e,i){if(3===t){var r=new Ga(i,i.readVarint()+i.pos);r.length&&(e[r.name]=r)}}Wa.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new qa(this._pbf,e,this.extent,this._keys,this._values)};var Ya={VectorTile:function(t,e){this.layers=t.readFields(Ka,{},e)},VectorTileFeature:qa,VectorTileLayer:Ga},Ja=Ya.VectorTileFeature.types,Qa=Math.pow(2,13);function ts(t,e,i,r,n,o,a,s){t.emplaceBack(e,i,2*Math.floor(r*Qa)+a,n*Qa*2,o*Qa*2,Math.round(s))}var es=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new fn,this.indexArray=new An,this.programConfigurations=new xo(Va,t.layers,t.zoom),this.segments=new Hn,this.stateDependentLayerIds=this.layers.filter(function(t){return t.isStateDependent()}).map(function(t){return t.id})};es.prototype.populate=function(t,e){this.features=[],this.hasPattern=Ba("fill-extrusion",this.layers,e);for(var i=0,r=t;i<r.length;i+=1){var n=r[i],o=n.feature,a=n.id,s=n.index,l=n.sourceLayerIndex;if(this.layers[0]._featureFilter(new Zr(this.zoom),o)){var u=To(o),c={id:a,sourceLayerIndex:l,index:s,geometry:u,properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&&(c.id=o.id),this.hasPattern?this.features.push(Oa("fill-extrusion",this.layers,c,this.zoom,e)):this.addFeature(c,u,s,{}),e.featureIndex.insert(o,u,s,l,this.index,!0)}}},es.prototype.addFeatures=function(t,e){for(var i=0,r=this.features;i<r.length;i+=1){var n=r[i],o=n.geometry;this.addFeature(n,o,n.index,e)}},es.prototype.update=function(t,e,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,i)},es.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},es.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},es.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Va),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},es.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},es.prototype.addFeature=function(t,e,i,r){for(var n=0,o=Da(e,500);n<o.length;n+=1){for(var a=o[n],s=0,l=0,u=a;l<u.length;l+=1)s+=u[l].length;for(var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),p=0,h=a;p<h.length;
1p+=1){var d=h[p];if(0!==d.length&&!((L=d).every(function(t){return t.x<0})||L.every(function(t){return t.x>wo})||L.every(function(t){return t.y<0})||L.every(function(t){return t.y>wo})))for(var f=0,m=0;m<d.length;m++){var y=d[m];if(1<=m){var v=d[m-1];if(M=v,!((P=y).x===M.x&&(P.x<0||P.x>wo)||P.y===M.y&&(P.y<0||P.y>wo))){c.vertexLength+4>Hn.MAX_VERTEX_ARRAY_LENGTH&&(c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var g=y.sub(v)._perp()._unit(),_=v.dist(y);32768<f+_&&(f=0),ts(this.layoutVertexArray,y.x,y.y,g.x,g.y,0,0,f),ts(this.layoutVertexArray,y.x,y.y,g.x,g.y,0,1,f),f+=_,ts(this.layoutVertexArray,v.x,v.y,g.x,g.y,0,0,f),ts(this.layoutVertexArray,v.x,v.y,g.x,g.y,0,1,f);var x=c.vertexLength;this.indexArray.emplaceBack(x,x+2,x+1),this.indexArray.emplaceBack(x+1,x+2,x+3),c.vertexLength+=4,c.primitiveLength+=2}}}}if(c.vertexLength+s>Hn.MAX_VERTEX_ARRAY_LENGTH&&(c=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray)),"Polygon"===Ja[t.type]){for(var b=[],w=[],S=c.vertexLength,T=0,k=a;T<k.length;T+=1){var E=k[T];if(0!==E.length){E!==a[0]&&w.push(b.length/2);for(var C=0;C<E.length;C++){var A=E[C];ts(this.layoutVertexArray,A.x,A.y,0,0,1,1,0),b.push(A.x),b.push(A.y)}}}for(var I=aa(b,w),z=0;z<I.length;z+=3)this.indexArray.emplaceBack(S+I[z],S+I[z+2],S+I[z+1]);c.primitiveLength+=I.length/3,c.vertexLength+=s}}var P,M,L;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,i,r)},_r("FillExtrusionBucket",es,{omit:["layers","features"]});var is={paint:new on({"fill-extrusion-opacity":new Qr(It["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new tn(It["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Qr(It["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Qr(It["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new en(It["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new tn(It["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new tn(It["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Qr(It["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},rs=function(e){function t(t){e.call(this,t,is)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.createBucket=function(t){return new es(t)},t.prototype.queryRadius=function(){return Oo(this.paint.get("fill-extrusion-translate"))},t.prototype.is3D=function(){return!0},t.prototype.queryIntersectsFeature=function(t,e,i,r,n,o,a,s){var u=Fo(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,a),l=this.paint.get("fill-extrusion-height").evaluate(e,i),c=this.paint.get("fill-extrusion-base").evaluate(e,i),p=function(t,e,i,r){for(var n=[],o=0,a=u;o<a.length;o+=1){var s=a[o],l=[s.x,s.y,0,1];Zo(l,l,e),n.push(new ct(l[0]/l[3],l[1]/l[3]))}return n}(0,s),h=function(t,e,i,r){for(var n=[],o=[],a=r[8]*e,s=r[9]*e,l=r[10]*e,u=r[11]*e,c=r[8]*i,p=r[9]*i,h=r[10]*i,d=r[11]*i,f=0,m=t;f<m.length;f+=1){for(var y=[],v=[],g=0,_=m[f];g<_.length;g+=1){var x=_[g],b=x.x,w=x.y,S=r[0]*b+r[4]*w+r[12],T=r[1]*b+r[5]*w+r[13],k=r[2]*b+r[6]*w+r[14],E=r[3]*b+r[7]*w+r[15],C=k+l,A=E+u,I=S+c,z=T+p,P=k+h,M=E+d,L=new ct((S+a)/A,(T+s)/A);L.z=C/A,y.push(L);var D=new ct(I/M,z/M);D.z=P/M,v.push(D)}n.push(y),o.push(v)}return[n,o]}(r,c,l,s);return function(t,e,i){var r=1/0;Ao(i,e)&&(r=os(i,e[0]));for(var n=0;n<e.length;n++)for(var o=e[n],a=t[n],s=0;s<o.length-1;s++){var l=o[s],u=o[s+1],c=a[s],p=[l,u,a[s+1],c,l];Co(i,p)&&(r=Math.min(r,os(i,p)))}return r!==1/0&&r}(h[0],h[1],p)},t}(an);function ns(t,e){return t.x*e.x+t.y*e.y}function os(t,e){if(1===t.length){for(var i,r,n=0,o=e[n++];!i||o.equals(i);)if(!(i=e[n++]))return 1/0;for(;!r||o.equals(r)||i.equals(r);)if(!(r=e[n++]))return 1/0;var a=t[0],s=i.sub(o),l=r.sub(o),u=a.sub(o),c=ns(s,s),p=ns(s,l),h=ns(l,l),d=ns(u,s),f=ns(u,l),m=c*h-p*p,y=(h*d-p*f)/m,v=(c*f-p*d)/m,g=1-y-v;return o.z*g+i.z*y+r.z*v}for(var _=1/0,x=0,b=e;x<b.length;x+=1){var w=b[x];_=Math.min(_,w.z)}return _}var as=cn([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,ss=Ya.VectorTileFeature.types,ls=Math.cos(Math.PI/180*37.5),us=Math.pow(2,14)/.5,cs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new mn,this.indexArray=new An,this.programConfigurations=new xo(as,t.layers,t.zoom),this.segments=new Hn,this.stateDependentLayerIds=this.layers.filter(function(t){return t.isStateDependent()}).map(function(t){return t.id})};cs.prototype.populate=function(t,e){this.hasPattern=Ba("line",this.layers,e);for(var i=this.layers[0].layout.get("line-sort-key"),r=[],n=0,o=t;n<o.length;n+=1){var a=o[n],s=a.feature,l=a.id,u=a.index,c=a.sourceLayerIndex;if(this.layers[0]._featureFilter(new Zr(this.zoom),s)){var p=To(s),h=i?i.evaluate(s,{}):void 0,d={id:l,properties:s.properties,type:s.type,sourceLayerIndex:c,index:u,geometry:p,patterns:{},sortKey:h};r.push(d)}}i&&r.sort(function(t,e){return t.sortKey-e.sortKey});for(var f=0,m=r;f<m.length;f+=1){var y=m[f],v=y,g=v.geometry,_=v.index,x=v.sourceLayerIndex;if(this.hasPattern){var b=Oa("line",this.layers,y,this.zoom,e);this.patternFeatures.push(b)}else this.addFeature(y,g,_,{});var w=t[_].feature;e.featureIndex.insert(w,g,_,x,this.index)}}
vendor: 5,492 bytes, line 1
1,cs.prototype.update=function(t,e,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,i)},cs.prototype.addFeatures=function(t,e){for(var i=0,r=this.patternFeatures;i<r.length;i+=1){var n=r[i];this.addFeature(n,n.geometry,n.index,e)}},cs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},cs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},cs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,as),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},cs.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},cs.prototype.addFeature=function(t,e,i,r){for(var n=this.layers[0].layout,o=n.get("line-join").evaluate(t,{}),a=n.get("line-cap"),s=n.get("line-miter-limit"),l=n.get("line-round-limit"),u=0,c=e;u<c.length;u+=1){var p=c[u];this.addLine(p,t,o,a,s,l,i,r)}},cs.prototype.addLine=function(t,e,i,r,n,o,a,s){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end")){this.clipStart=+e.properties.mapbox_clip_start,this.clipEnd=+e.properties.mapbox_clip_end;for(var l=0;l<t.length-1;l++)this.totalDistance+=t[l].dist(t[l+1]);this.updateScaledDistance()}for(var u="Polygon"===ss[e.type],c=t.length;2<=c&&t[c-1].equals(t[c-2]);)c--;for(var p=0;p<c-1&&t[p].equals(t[p+1]);)p++;if(!(c<(u?3:2))){"bevel"===i&&(n=1.05);var h,d=this.overscaling<=16?15*wo/(512*this.overscaling):0,f=this.segments.prepareSegment(10*c,this.layoutVertexArray,this.indexArray),m=void 0,y=void 0,v=void 0,g=void 0;this.e1=this.e2=-1,u&&(h=t[c-2],g=t[p].sub(h)._unit()._perp());for(var _=p;_<c;_++)if(!(y=_===c-1?u?t[p+1]:void 0:t[_+1])||!t[_].equals(y)){g&&(v=g),h&&(m=h),h=t[_],g=y?y.sub(h)._unit()._perp():v;var x=(v=v||g).add(g);0===x.x&&0===x.y||x._unit();var b=v.x*g.x+v.y*g.y,w=x.x*g.x+x.y*g.y,S=0!==w?1/w:1/0,T=2*Math.sqrt(2-2*w),k=w<ls&&m&&y,E=0<v.x*g.y-v.y*g.x;if(k&&p<_){var C=h.dist(m);if(2*d<C){var A=h.sub(h.sub(m)._mult(d/C)._round());this.updateDistance(m,A),this.addCurrentVertex(A,v,0,0,f),m=A}}var I=m&&y,z=I?i:u?"butt":r;if(I&&"round"===z&&(S<o?z="miter":S<=2&&(z="fakeround")),"miter"===z&&n<S&&(z="bevel"),"bevel"===z&&(2<S&&(z="flipbevel"),S<n&&(z="miter")),m&&this.updateDistance(m,h),"miter"===z)x._mult(S),this.addCurrentVertex(h,x,0,0,f);else if("flipbevel"===z){if(100<S)x=g.mult(-1);else{var P=S*v.add(g).mag()/v.sub(g).mag();x._perp()._mult(P*(E?-1:1))}this.addCurrentVertex(h,x,0,0,f),this.addCurrentVertex(h,x.mult(-1),0,0,f)}else if("bevel"===z||"fakeround"===z){var M=-Math.sqrt(S*S-1),L=E?M:0,D=E?0:M;if(m&&this.addCurrentVertex(h,v,L,D,f),"fakeround"===z)for(var R=Math.round(180*T/Math.PI/20),B=1;B<R;B++){var O=B/R;if(.5!==O){var F=O-.5;O+=O*F*(O-1)*((1.0904+b*(b*(3.55645-1.43519*b)-3.2452))*F*F+(.848013+b*(.215638*b-1.06021)))}var U=g.sub(v)._mult(O)._add(v)._unit()._mult(E?-1:1);this.addHalfVertex(h,U.x,U.y,!1,E,0,f)}y&&this.addCurrentVertex(h,g,-L,-D,f)}else if("butt"===z)this.addCurrentVertex(h,x,0,0,f);else if("square"===z){var N=m?1:-1;this.addCurrentVertex(h,x,N,N,f)}else"round"===z&&(m&&(this.addCurrentVertex(h,v,0,0,f),this.addCurrentVertex(h,v,1,1,f,!0)),y&&(this.addCurrentVertex(h,g,-1,-1,f,!0),this.addCurrentVertex(h,g,0,0,f)));if(k&&_<c-1){var j=h.dist(y);if(2*d<j){var V=h.add(y.sub(h)._mult(d/j)._round());this.updateDistance(h,V),this.addCurrentVertex(V,g,0,0,f),h=V}}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,a,s)}},cs.prototype.addCurrentVertex=function(t,e,i,r,n,o){void 0===o&&(o=!1);var a=e.x+e.y*i,s=e.y-e.x*i,l=-e.x+e.y*r,u=-e.y-e.x*r;this.addHalfVertex(t,a,s,o,!1,i,n),this.addHalfVertex(t,l,u,o,!0,-r,n),this.distance>us/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(t,e,i,r,n,o))},cs.prototype.addHalfVertex=function(t,e,i,r,n,o,a){var s=t.x,l=t.y,u=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((s<<1)+(r?1:0),(l<<1)+(n?1:0),Math.round(63*e)+128,Math.round(63*i)+128,1+(0===o?0:o<0?-1:1)|(63&u)<<2,u>>6);var c=a.vertexLength++;0<=this.e1&&0<=this.e2&&(this.indexArray.emplaceBack(this.e1,this.e2,c),a.primitiveLength++),n?this.e2=c:this.e1=c},cs.prototype.updateScaledDistance=function(){this.scaledDistance=0<this.totalDistance?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(us-1):this.distance},cs.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},_r("LineBucket",cs,{omit:["layers","patternFeatures"]});var ps=new on({"line-cap":new Qr(It.layout_line["line-cap"]),"line-join":new tn(It.layout_line["line-join"]),"line-miter-limit":new Qr(It.layout_line["line-miter-limit"]),"line-round-limit":new Qr(It.layout_line["line-round-limit"]),"line-sort-key":new tn(It.layout_line["line-sort-key"])}),hs={paint:new on({"line-opacity":new tn(It.paint_line["line-opacity"]),"line-color":new tn(It.paint_line["line-color"]),"line-translate":new Qr(It.paint_line["line-translate"]),"line-translate-anchor":new Qr(It.paint_line["line-translate-anchor"]),"line-width":new tn(It.paint_line["line-width"]),"line-gap-width":new tn(It.paint_line["line-gap-width"]),"line-offset":new tn(It.paint_line["line-offset"]),"line-blur"
1:new tn(It.paint_line["line-blur"]),"line-dasharray":new rn(It.paint_line["line-dasharray"]),"line-pattern":new en(It.paint_line["line-pattern"]),"line-gradient":new nn(It.paint_line["line-gradient"])}),layout:ps},ds=new(function(n){function t(){n.apply(this,arguments)}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.possiblyEvaluate=function(t,e){return e=new Zr(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,zoomHistory:e.zoomHistory,transition:e.transition}),n.prototype.possiblyEvaluate.call(this,t,e)},t.prototype.evaluate=function(t,e,i,r){return e=f({},e,{zoom:Math.floor(e.zoom)}),n.prototype.evaluate.call(this,t,e,i,r)},t}(tn))(hs.paint.properties["line-width"].specification);ds.useIntegerZoom=!0;var fs=function(i){function t(t){i.call(this,t,hs)}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype._handleSpecialPaintPropertyUpdate=function(t){"line-gradient"===t&&this._updateGradient()},t.prototype._updateGradient=function(){var t=this._transitionablePaint._values["line-gradient"].value.expression;this.gradient=ea(t,"lineProgress"),this.gradientTexture=null},t.prototype.recalculate=function(t,e){i.prototype.recalculate.call(this,t,e),this.paint._values["line-floorwidth"]=ds.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)},t.prototype.createBucket=function(t){return new cs(t)},t.prototype.queryRadius=function(t){var e=t,i=ms(Bo("line-width",this,e),Bo("line-gap-width",this,e)),r=Bo("line-offset",this,e);return i/2+Math.abs(r)+Oo(this.paint.get("line-translate"))},t.prototype.queryIntersectsFeature=function(t,e,i,r,n,o,a){var s=Fo(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,a),l=a/2*ms(this.paint.get("line-width").evaluate(e,i),this.paint.get("line-gap-width").evaluate(e,i)),u=this.paint.get("line-offset").evaluate(e,i);return u&&(r=function(t,e){for(var i=[],r=new ct(0,0),n=0;n<t.length;n++){for(var o=t[n],a=[],s=0;s<o.length;s++){var l=o[s-1],u=o[s],c=o[s+1],p=0===s?r:u.sub(l)._unit()._perp(),h=s===o.length-1?r:c.sub(u)._unit()._perp(),d=p._add(h)._unit(),f=d.x*h.x+d.y*h.y;d._mult(1/f),a.push(d._mult(e)._add(u))}i.push(a)}return i}(r,u*a)),function(t,e,i){for(var r=0;r<e.length;r++){var n=e[r];if(3<=t.length)for(var o=0;o<n.length;o++)if(Do(t,n[o]))return!0;if(Io(t,n,i))return!0}return!1}(s,r,l)},t.prototype.isTileClipped=function(){return!0},t}(an);function ms(t,e){return 0<e?e+2*t:t}var ys=cn([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),vs=cn([{name:"a_projected_pos",components:3,type:"Float32"}],4),gs=(cn([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),cn([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),_s=(cn([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"},{type:"Int16",name:"radius"},{type:"Int16",name:"signedDistanceFromAnchor"}]),cn([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),xs=cn([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4);function bs(t,n,o){return t.sections.forEach(function(t){var e,i,r;t.text=(e=t.text,i=o,"uppercase"===(r=n.layout.get("text-transform").evaluate(i,{}))?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),qr.applyArabicShaping&&(e=qr.applyArabicShaping(e)),e)}),t}cn([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{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"}]),cn([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{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:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"}]),cn([{type:"Float32",name:"offsetX"}]),cn([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var ws={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"}
1,Ss=24,Ts=function(t,e,i,r,n){var o,a,s=8*n-r-1,l=(1<<s)-1,u=l>>1,c=-7,p=i?n-1:0,h=i?-1:1,d=t[e+p];for(p+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;0<c;o=256*o+t[e+p],p+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;0<c;a=256*a+t[e+p],p+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},ks=function(t,e,i,r,n,o){var a,s,l,u=8*o-n-1,c=(1<<u)-1,p=c>>1,h=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,f=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(e+=1<=a+p?h/l:h*Math.pow(2,1-p))*l&&(a++,l/=2),c<=a+p?(s=0,a=c):1<=a+p?(s=(e*l-1)*Math.pow(2,n),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,n),a=0));8<=n;t[i+d]=255&s,d+=f,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;t[i+d]=255&a,d+=f,a/=256,u-=8);t[i+d-f]|=128*m},Es=Cs;function Cs(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Cs.Varint=0,Cs.Fixed64=1,Cs.Bytes=2,Cs.Fixed32=5;var As="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Is(t){return t.type===Cs.Bytes?t.readVarint()+t.pos:t.pos+1}function zs(t,e,i){return i?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function Ps(t,e,i){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));i.realloc(r);for(var n=i.pos-1;t<=n;n--)i.buf[n+r]=i.buf[n]}function Ms(t,e){for(var i=0;i<t.length;i++)e.writeVarint(t[i])}function Ls(t,e){for(var i=0;i<t.length;i++)e.writeSVarint(t[i])}function Ds(t,e){for(var i=0;i<t.length;i++)e.writeFloat(t[i])}function Rs(t,e){for(var i=0;i<t.length;i++)e.writeDouble(t[i])}function Bs(t,e){for(var i=0;i<t.length;i++)e.writeBoolean(t[i])}function Os(t,e){for(var i=0;i<t.length;i++)e.writeFixed32(t[i])}function Fs(t,e){for(var i=0;i<t.length;i++)e.writeSFixed32(t[i])}function Us(t,e){for(var i=0;i<t.length;i++)e.writeFixed64(t[i])}function Ns(t,e){for(var i=0;i<t.length;i++)e.writeSFixed64(t[i])}function js(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function Vs(t,e,i){t[i]=e,t[i+1]=e>>>8,t[i+2]=e>>>16,t[i+3]=e>>>24}function qs(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}Cs.prototype={destroy:function(){this.buf=null},readFields:function(t,e,i){for(i=i||this.length;this.pos<i;){var r=this.readVarint(),n=r>>3,o=this.pos;this.type=7&r,t(n,e,this),this.pos===o&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=js(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=qs(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=js(this.buf,this.pos)+4294967296*js(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=js(this.buf,this.pos)+4294967296*qs(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Ts(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Ts(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,i,r=this.buf;return e=127&(i=r[this.pos++]),i<128?e:(e|=(127&(i=r[this.pos++]))<<7,i<128?e:(e|=(127&(i=r[this.pos++]))<<14,i<128?e:(e|=(127&(i=r[this.pos++]))<<21,i<128?e:function(t,e,i){var r,n,o=i.buf;if(r=(112&(n=o[i.pos++]))>>4,n<128)return zs(t,r,e);if(r|=(127&(n=o[i.pos++]))<<3,n<128)return zs(t,r,e);if(r|=(127&(n=o[i.pos++]))<<10,n<128)return zs(t,r,e);if(r|=(127&(n=o[i.pos++]))<<17,n<128)return zs(t,r,e);if(r|=(127&(n=o[i.pos++]))<<24,n<128)return zs(t,r,e);if(r|=(1&(n=o[i.pos++]))<<31,n<128)return zs(t,r,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(i=r[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t,e,i,r=this.readVarint()+this.pos,p=this.pos;return 12<=(this.pos=r)-p&&As?(t=this.buf,e=p,i=r,As.decode(t.subarray(e,i))):function(t,e,i){for(var r="",n=p;n<i;){var o,a,s,l=t[n],u=null,c=239<l?4:223<l?3:191<l?2:1;if(i<n+c)break;
11===c?l<128&&(u=l):2===c?128==(192&(o=t[n+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===c?(o=t[n+1],a=t[n+2],128==(192&o)&&128==(192&a)&&((u=(15&l)<<12|(63&o)<<6|63&a)<=2047||55296<=u&&u<=57343)&&(u=null)):4===c&&(o=t[n+1],a=t[n+2],s=t[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||1114112<=u)&&(u=null)),null===u?(u=65533,c=1):65535<u&&(u-=65536,r+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),r+=String.fromCharCode(u),n+=c}return r}(this.buf,0,r)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Cs.Bytes)return t.push(this.readVarint(e));var i=Is(this);for(t=t||[];this.pos<i;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Cs.Bytes)return t.push(this.readSVarint());var e=Is(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Cs.Bytes)return t.push(this.readBoolean());var e=Is(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Cs.Bytes)return t.push(this.readFloat());var e=Is(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Cs.Bytes)return t.push(this.readDouble());var e=Is(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Cs.Bytes)return t.push(this.readFixed32());var e=Is(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Cs.Bytes)return t.push(this.readSFixed32());var e=Is(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Cs.Bytes)return t.push(this.readFixed64());var e=Is(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Cs.Bytes)return t.push(this.readSFixed64());var e=Is(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===Cs.Varint)for(;127<this.buf[this.pos++];);else if(e===Cs.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Cs.Fixed32)this.pos+=4;else{if(e!==Cs.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var i=new Uint8Array(e);i.set(this.buf),this.buf=i,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),Vs(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),Vs(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),Vs(this.buf,-1&t,this.pos),Vs(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),Vs(this.buf,-1&t,this.pos),Vs(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(u){268435455<(u=+u||0)||u<0?function(t,e){var i,r,n,o,a,s,l;if(0<=u?(i=u%4294967296|0,r=u/4294967296|0):(r=~(-u/4294967296),4294967295^(i=~(-u%4294967296))?i=i+1|0:r=r+1|(i=0)),0x10000000000000000<=u||u<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),s=i,(l=e).buf[l.pos++]=127&s|128,s>>>=7,l.buf[l.pos++]=127&s|128,s>>>=7,l.buf[l.pos++]=127&s|128,s>>>=7,l.buf[l.pos++]=127&s|128,s>>>=7,l.buf[l.pos]=127&s,a=(7&(n=r))<<4,(o=e).buf[o.pos++]|=a|((n>>>=3)?128:0),n&&(o.buf[o.pos++]=127&n|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=127&n|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=127&n|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=127&n|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=127&n)))))}(0,this):(this.realloc(4),this.buf[this.pos++]=127&u|(127<u?128:0),u<=127||(this.buf[this.pos++]=127&(u>>>=7)|(127<u?128:0),u<=127||(this.buf[this.pos++]=127&(u>>>=7)|(127<u?128:0),u<=127||(this.buf[this.pos++]=u>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;
1this.pos=function(t,e,i){for(var r,n,o=0;o<e.length;o++){if(55295<(r=e.charCodeAt(o))&&r<57344){if(!n){56319<r||o+1===e.length?(t[i++]=239,t[i++]=191,t[i++]=189):n=r;continue}if(r<56320){t[i++]=239,t[i++]=191,t[i++]=189,n=r;continue}r=n-55296<<10|r-56320|65536,n=null}else n&&(t[i++]=239,t[i++]=191,t[i++]=189,n=null);r<128?t[i++]=r:(r<2048?t[i++]=r>>6|192:(r<65536?t[i++]=r>>12|224:(t[i++]=r>>18|240,t[i++]=r>>12&63|128),t[i++]=r>>6&63|128),t[i++]=63&r|128)}return i}(this.buf,t,this.pos);var i=this.pos-e;128<=i&&Ps(e,i,this),this.pos=e-1,this.writeVarint(i),this.pos+=i},writeFloat:function(t){this.realloc(4),ks(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),ks(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var i=0;i<e;i++)this.buf[this.pos++]=t[i]},writeRawMessage:function(t,e){this.pos++;var i=this.pos;t(e,this);var r=this.pos-i;128<=r&&Ps(i,r,this),this.pos=i-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,i){this.writeTag(t,Cs.Bytes),this.writeRawMessage(e,i)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,Ms,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,Ls,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,Bs,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,Ds,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,Rs,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,Os,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,Fs,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,Us,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,Ns,e)},writeBytesField:function(t,e){this.writeTag(t,Cs.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Cs.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Cs.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Cs.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Cs.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Cs.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Cs.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Cs.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Cs.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Cs.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var Zs=3;function $s(t,e,i){1===t&&i.readMessage(Hs,e)}function Hs(t,e,i){if(3===t){var r=i.readMessage(Gs,{}),n=r.id,o=r.bitmap,a=r.width,s=r.height,l=r.left,u=r.top,c=r.advance;e.push({id:n,bitmap:new Jo({width:a+2*Zs,height:s+2*Zs},o),metrics:{width:a,height:s,left:l,top:u,advance:c}})}}function Gs(t,e,i){1===t?e.id=i.readVarint():2===t?e.bitmap=i.readBytes():3===t?e.width=i.readVarint():4===t?e.height=i.readVarint():5===t?e.left=i.readSVarint():6===t?e.top=i.readSVarint():7===t&&(e.advance=i.readVarint())}var Ws=Zs;function Xs(t){for(var e=0,i=0,r=0,n=t;r<n.length;r+=1){var o=n[r];e+=o.w*o.h,i=Math.max(i,o.w)}t.sort(function(t,e){return e.h-t.h});for(var a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),i),h:1/0}],s=0,l=0,u=0,c=t;u<c.length;u+=1)for(var p=c[u],h=a.length-1;0<=h;h--){var d=a[h];if(!(p.w>d.w||p.h>d.h)){if(p.x=d.x,p.y=d.y,l=Math.max(l,p.y+p.h),s=Math.max(s,p.x+p.w),p.w===d.w&&p.h===d.h){var f=a.pop();h<a.length&&(a[h]=f)}else p.h===d.h?(d.x+=p.w,d.w-=p.w):(p.w===d.w||a.push({x:d.x+p.w,y:d.y,w:d.w-p.w,h:p.h}),d.y+=p.h,d.h-=p.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}var Ks=1,Ys=function(t,e){var i=e.pixelRatio,r=e.version,n=e.stretchX,o=e.stretchY,a=e.content;this.paddedRect=t,this.pixelRatio=i,this.stretchX=n,this.stretchY=o,this.content=a,this.version=r},Js={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};Js.tl.get=function(){return[this.paddedRect.x+Ks,this.paddedRect.y+Ks]},Js.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-Ks,this.paddedRect.y+this.paddedRect.h-Ks]},Js.tlbr.get=function(){return this.tl.concat(this.br)},Js.displaySize.get=function(){return[(this.paddedRect.w-2*Ks)/this.pixelRatio,(this.paddedRect.h-2*Ks)/this.pixelRatio]},Object.defineProperties(Ys.prototype,Js);var Qs=function(t,e){var i={},r={};this.haveRenderCallbacks=[];var n=[];this.addImages(t,i,n),this.addImages(e,r,n);var o=Xs(n),a=o.w,s=o.h,l=new Qo({width:a||1,height:s||1});for(var u in t){var c=t[u],p=i[u].paddedRect;Qo.copy(c.data,l,{x:0,y:0},{x:p.x+Ks,y:p.y+Ks},c.data)}for(var h in e){var d=e[h],f=r[h].paddedRect,m=f.x+Ks,y=f.y+Ks,v=d.data.width,g=d.data.height;Qo.copy(d.data,l,{x:0,y:0},{x:m,y:y},d.data),Qo.copy(d.data,l,{x:0,y:g-1},{x:m,y:y-1},{width:v,height:1}),Qo.copy(d.data,l,{x:0,y:0},{x:m,y:y+g},{width:v,height:1}),Qo.copy(d.data,l,{x:v-1,y:0},{x:m-1,y:y},{width:1,height:g}),Qo.copy(d.data,l,{x:0,y:0},{x:m+v,y:y},{width:1,height:g})}this.image=l,this.iconPositions=i,this.patternPositions=r};
1Qs.prototype.addImages=function(t,e,i){for(var r in t){var n=t[r],o={x:0,y:0,w:n.data.width+2*Ks,h:n.data.height+2*Ks};i.push(o),e[r]=new Ys(o,n),n.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},Qs.prototype.patchUpdatedImages=function(t,e){for(var i in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[i],t.getImage(i),e),this.patchUpdatedImage(this.patternPositions[i],t.getImage(i),e)},Qs.prototype.patchUpdatedImage=function(t,e,i){if(t&&e&&t.version!==e.version){t.version=e.version;var r=t.tl,n=r[0],o=r[1];i.update(e.data,void 0,{x:n,y:o})}},_r("ImagePosition",Ys),_r("ImageAtlas",Qs);var tl={horizontal:1,vertical:2,horizontalOnly:3},el=-17,il=function(){this.scale=1,this.fontStack="",this.imageName=null};il.forText=function(t,e){var i=new il;return i.scale=t||1,i.fontStack=e,i},il.forImage=function(t){var e=new il;return e.imageName=t,e};var rl=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function nl(t,e,i,r,n,o,a,s,K,l,u,c,p,h,d,f){var m,y=rl.fromFeature(t,n);c===tl.vertical&&y.verticalizePunctuation();var v=qr.processBidirectionalText,g=qr.processStyledBidirectionalText;if(v&&1===y.sections.length){m=[];for(var _=0,x=v(y.toString(),cl(y,l,o,e,r,h,d));_<x.length;_+=1){var b=x[_],w=new rl;w.text=b,w.sections=y.sections;for(var S=0;S<b.length;S++)w.sectionIndex.push(0);m.push(w)}}else if(g){m=[];for(var T=0,k=g(y.text,y.sectionIndex,cl(y,l,o,e,r,h,d));T<k.length;T+=1){var E=k[T],C=new rl;C.text=E[0],C.sectionIndex=E[1],C.sections=y.sections,m.push(C)}}else m=function(t,e){for(var i=[],r=t.text,n=0,o=0,a=e;o<a.length;o+=1){var s=a[o];i.push(t.substring(n,s)),n=s}return n<r.length&&i.push(t.substring(n,r.length)),i}(y,cl(y,l,o,e,r,h,d));var A=[],I={positionedLines:A,text:y.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:c,iconsInText:!1,verticalizable:!1};return function(t,e,i,r,n,o,a,s,l,u,c,p){for(var h=0,d=el,f=0,m=0,y="right"===K?1:"left"===K?0:.5,v=0,g=0,_=n;g<_.length;g+=1){var x=_[g];x.trim();var b=x.getMaxScale(),w=(b-1)*Ss,S={positionedGlyphs:[],lineOffset:0},T=(t.positionedLines[v]=S).positionedGlyphs,k=0;if(x.length()){for(var E=0;E<x.length();E++){var C=x.getSection(E),A=x.getSectionIndex(E),I=x.getCharCode(E),z=0,P=null,M=null,L=null,D=Ss,R=!(l===tl.horizontal||!c&&!Ar(I)||c&&(ol[I]||($=I,Er.Arabic($)||Er["Arabic Supplement"]($)||Er["Arabic Extended-A"]($)||Er["Arabic Presentation Forms-A"]($)||Er["Arabic Presentation Forms-B"]($))));if(C.imageName){var B=r[C.imageName];if(!B)continue;L=C.imageName,t.iconsInText=t.iconsInText||!0,M=B.paddedRect;var O=B.displaySize;C.scale=C.scale*Ss/p,P={width:O[0],height:O[1],left:Ks,top:-Ws,advance:R?O[1]:O[0]},z=w+(Ss-O[1]*C.scale),D=P.advance;var F=R?O[0]*C.scale-Ss*b:O[1]*C.scale-Ss*b;0<F&&k<F&&(k=F)}else{var U=i[C.fontStack],N=U&&U[I];if(N&&N.rect)M=N.rect,P=N.metrics;else{var j=e[C.fontStack],V=j&&j[I];if(!V)continue;P=V.metrics}z=(b-C.scale)*Ss}R?(t.verticalizable=!0,T.push({glyph:I,imageName:L,x:h,y:d+z,vertical:R,scale:C.scale,fontStack:C.fontStack,sectionIndex:A,metrics:P,rect:M}),h+=D*C.scale+u):(T.push({glyph:I,imageName:L,x:h,y:d+z,vertical:R,scale:C.scale,fontStack:C.fontStack,sectionIndex:A,metrics:P,rect:M}),h+=P.advance*C.scale+u)}if(0!==T.length){var q=h-u;f=Math.max(q,f),hl(T,0,T.length-1,y,k)}h=0;var Z=o*b+k;S.lineOffset=Math.max(k,w),d+=Z,m=Math.max(Z,m),++v}else d+=o,++v}var $,H=d-el,G=pl(a),W=G.horizontalAlign,X=G.verticalAlign;(function(t,e,i,r,n,o,a,s,l){var u,c=(e-i)*n;u=o!==a?-s*r-el:(-r*l+.5)*a;for(var p=0,h=t;p<h.length;p+=1)for(var d=0,f=h[p].positionedGlyphs;d<f.length;d+=1){var m=f[d];m.x+=c,m.y+=u}})(t.positionedLines,y,W,X,f,m,o,H,n.length),t.top+=-X*H,t.bottom=t.top+H,t.left+=-W*f,t.right=t.left+f}(I,e,i,r,m,a,s,0,c,l,p,f),!function(t){for(var e=0,i=A;e<i.length;e+=1)if(0!==i[e].positionedGlyphs.length)return!1;return!0}()&&I}rl.fromFeature=function(t,e){for(var i=new rl,r=0;r<t.sections.length;r++){var n=t.sections[r];n.image?i.addImageSection(n):i.addTextSection(n,e)}return i},rl.prototype.length=function(){return this.text.length},rl.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},rl.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},rl.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},rl.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e="",i=0;i<t.length;i++){var r=t.charCodeAt(i+1)||null,n=t.charCodeAt(i-1)||null;
1r&&Ir(r)&&!ws[t[i+1]]||n&&Ir(n)&&!ws[t[i-1]]||!ws[t[i]]?e+=t[i]:e+=ws[t[i]]}return e}(this.text)},rl.prototype.trim=function(){for(var t=0,e=0;e<this.text.length&&ol[this.text.charCodeAt(e)];e++)t++;for(var i=this.text.length,r=this.text.length-1;0<=r&&t<=r&&ol[this.text.charCodeAt(r)];r--)i--;this.text=this.text.substring(t,i),this.sectionIndex=this.sectionIndex.slice(t,i)},rl.prototype.substring=function(t,e){var i=new rl;return i.text=this.text.substring(t,e),i.sectionIndex=this.sectionIndex.slice(t,e),i.sections=this.sections,i},rl.prototype.toString=function(){return this.text},rl.prototype.getMaxScale=function(){var i=this;return this.sectionIndex.reduce(function(t,e){return Math.max(t,i.sections[e].scale)},0)},rl.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(il.forText(t.scale,t.fontStack||e));for(var i=this.sections.length-1,r=0;r<t.text.length;++r)this.sectionIndex.push(i)},rl.prototype.addImageSection=function(t){var e=t.image?t.image.name:"";if(0!==e.length){var i=this.getNextImageSectionCharCode();i?(this.text+=String.fromCharCode(i),this.sections.push(il.forImage(e)),this.sectionIndex.push(this.sections.length-1)):pt("Reached maximum number of images 6401")}else pt("Can't add FormattedSection with an empty image.")},rl.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?63743<=this.imageSectionID?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var ol={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},al={};function sl(t,e,i,r,n,o){if(e.imageName){var a=r[e.imageName];return a?a.displaySize[0]*e.scale*Ss/o+n:0}var s=i[e.fontStack],l=s&&s[t];return l?l.metrics.advance*e.scale+n:0}function ll(t,e,i,r){var n=Math.pow(t-e,2);return r?t<e?n/2:2*n:n+Math.abs(i)*i}function ul(t,e,i,r,n,o){for(var a=null,s=ll(e,i,n,o),l=0,u=r;l<u.length;l+=1){var c=u[l],p=ll(e-c.x,i,n,o)+c.badness;p<=s&&(a=c,s=p)}return{index:t,x:e,priorBreak:a,badness:s}}function cl(t,e,i,r,n,o,a){if("point"!==o)return[];if(!t)return[];for(var s,l=[],u=function(t,e,i,r,n,o){for(var a=0,s=0;s<t.length();s++){var l=t.getSection(s);a+=sl(t.getCharCode(s),l,r,n,e,o)}return a/Math.max(1,Math.ceil(a/i))}(t,e,i,r,n,a),c=0<=t.text.indexOf("​"),p=0,h=0;h<t.length();h++){var d=t.getSection(h),f=t.getCharCode(h);if(ol[f]||(p+=sl(f,d,r,n,e,a)),h<t.length()-1){var m=!((s=f)<11904||!(Er["Bopomofo Extended"](s)||Er.Bopomofo(s)||Er["CJK Compatibility Forms"](s)||Er["CJK Compatibility Ideographs"](s)||Er["CJK Compatibility"](s)||Er["CJK Radicals Supplement"](s)||Er["CJK Strokes"](s)||Er["CJK Symbols and Punctuation"](s)||Er["CJK Unified Ideographs Extension A"](s)||Er["CJK Unified Ideographs"](s)||Er["Enclosed CJK Letters and Months"](s)||Er["Halfwidth and Fullwidth Forms"](s)||Er.Hiragana(s)||Er["Ideographic Description Characters"](s)||Er["Kangxi Radicals"](s)||Er["Katakana Phonetic Extensions"](s)||Er.Katakana(s)||Er["Vertical Forms"](s)||Er["Yi Radicals"](s)||Er["Yi Syllables"](s)));(al[f]||m||d.imageName)&&l.push(ul(h+1,p,u,l,(y=f,v=t.getCharCode(h+1),g=void 0,g=0,10===y&&(g-=1e4),m&&c&&(g+=150),40!==y&&65288!==y||(g+=50),41!==v&&65289!==v||(g+=50),g),!1))}}var y,v,g;return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(ul(t.length(),p,u,l,0,!0))}function pl(t){var e=.5,i=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":i=1;break;case"top":case"top-right":case"top-left":i=0}return{horizontalAlign:e,verticalAlign:i}}function hl(t,e,i,r,n){if(r||n)for(var o=t[i],a=o.metrics.advance*o.scale,s=(t[i].x+a)*r,l=e;l<=i;l++)t[l].x-=s,t[l].y+=n}function dl(t,e,i,r,n,o){var a,s=t.image;if(s.content){var l=s.content,u=s.pixelRatio||1;a=[l[0]/u,l[1]/u,s.displaySize[0]-l[2]/u,s.displaySize[1]-l[3]/u]}var c,p,h,d,f=e.left*o,m=e.right*o;p="width"===i||"both"===i?(d=n[0]+f-r[3],n[0]+m+r[1]):(d=n[0]+(f+m-s.displaySize[0])/2)+s.displaySize[0];var y=e.top*o,v=e.bottom*o;return h="height"===i||"both"===i?(c=n[1]+y-r[0],n[1]+v+r[2]):(c=n[1]+(y+v-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:c,right:p,bottom:h,left:d,collisionPadding:a}}al[10]=!0,al[32]=!0,al[38]=!0,al[40]=!0,al[41]=!0,al[43]=!0,al[45]=!0,al[47]=!0,al[173]=!0,al[183]=!0,al[8203]=!0,al[8208]=!0,al[8211]=!0,al[8231]=!0;var fl=function(n){function t(t,e,i,r){n.call(this,t,e),this.angle=i,void 0!==r&&(this.segment=r)}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.clone=function(){return new t(this.x,this.y,this.angle,this.segment)},t}(ct);_r("Anchor",fl);var ml=128;function yl(t,e){var i=e.expression;if("constant"===i.kind)return{kind:"constant",layoutSize:i.evaluate(new Zr(t+1))};if("source"===i.kind)return{kind:"source"};for(var r=i.zoomStops,n=i.interpolationType,o=0;o<r.length&&r[o]<=t;)o++;for(var a=o=Math.max(0,o-1);a<r.length&&r[a]<t+1;)a++;a=Math.min(r.length-1,a);var s=r[o],l=r[a];return"composite"===i.kind?{kind:"composite",minZoom:s,maxZoom:l,interpolationType:n}:{kind:"camera",minZoom:s,maxZoom:l,minSize:i.evaluate(new Zr(s)),maxSize:i.evaluate(new Zr(l)),interpolationType:n}}function vl(t,e,i){var r=e.uSize,n=e.uSizeT,o=i.lowerSize,a=i.upperSize;return"source"===t.kind?o/ml:"composite"===t.kind?ke(o/ml,a/ml,n):r}function gl(t,e){var i=0,r=0;if("constant"===t.kind)r=t.layoutSize;else if("source"!==t.kind){var n=t.interpolationType,o=t.minZoom,a=t.maxZoom,s=n?l
vendor: 6,471 bytes, line 1
1(Ve.interpolationFactor(n,e,o,a),0,1):0;"camera"===t.kind?r=ke(t.minSize,t.maxSize,s):i=s}return{uSizeT:i,uSize:r}}var _l=Object.freeze({__proto__:null,getSizeData:yl,evaluateSizeForFeature:vl,evaluateSizeForZoom:gl,SIZE_PACK_FACTOR:ml});function xl(t,e,i,r,n){if(void 0===e.segment)return!0;for(var o=e,a=e.segment+1,s=0;-i/2<s;){if(--a<0)return!1;s-=t[a].dist(o),o=t[a]}s+=t[a].dist(t[a+1]),a++;for(var l=[],u=0;s<i/2;){var c=t[a-1],p=t[a],h=t[a+1];if(!h)return!1;var d=c.angleTo(p)-p.angleTo(h);for(d=Math.abs((d+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:d}),u+=d;s-l[0].distance>r;)u-=l.shift().angleDelta;if(n<u)return!1;a++,s+=p.dist(h)}return!0}function bl(t){for(var e=0,i=0;i<t.length-1;i++)e+=t[i].dist(t[i+1]);return e}function wl(t,e,i){return t?.6*e*i:0}function Sl(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Tl(t,e,i,r,n,o){for(var a=wl(i,n,o),s=Sl(i,r)*o,l=0,u=bl(t)/2,c=0;c<t.length-1;c++){var p=t[c],h=t[c+1],d=p.dist(h);if(u<l+d){var f=(u-l)/d,m=ke(p.x,h.x,f),y=ke(p.y,h.y,f),v=new fl(m,y,h.angleTo(p),c);return v._round(),!a||xl(t,v,s,a,e)?v:void 0}l+=d}}var kl=Ks;function El(E,C,A,t){var e=[],I=E.image,z=I.pixelRatio,i=I.paddedRect.w-2*kl,r=I.paddedRect.h-2*kl,P=E.right-E.left,M=E.bottom-E.top,n=I.stretchX||[[0,i]],o=I.stretchY||[[0,r]],a=function(t,e){return t+e[1]-e[0]},L=n.reduce(a,0),D=o.reduce(a,0),s=i-L,l=r-D,R=0,B=L,O=0,F=D,U=0,N=s,j=0,V=l;if(I.content&&t){var u=I.content;R=Cl(n,0,u[0]),O=Cl(o,0,u[1]),B=Cl(n,u[0],u[2]),F=Cl(o,u[1],u[3]),U=u[0]-R,j=u[1]-O,N=u[2]-u[0]-B,V=u[3]-u[1]-F}var c=function(t,e,i,r){var n=Il(t.stretch-R,B,P,E.left),o=zl(t.fixed-U,N,t.stretch,L),a=Il(e.stretch-O,F,M,E.top),s=zl(e.fixed-j,V,e.stretch,D),l=Il(i.stretch-R,B,P,E.left),u=zl(i.fixed-U,N,i.stretch,L),c=Il(r.stretch-O,F,M,E.top),p=zl(r.fixed-j,V,r.stretch,D),h=new ct(n,a),d=new ct(l,a),f=new ct(l,c),m=new ct(n,c),y=new ct(o/z,s/z),v=new ct(u/z,p/z),g=C*Math.PI/180;if(g){var _=Math.sin(g),x=Math.cos(g),b=[x,-_,_,x];h._matMult(b),d._matMult(b),m._matMult(b),f._matMult(b)}var w=t.stretch+t.fixed,S=i.stretch+i.fixed,T=e.stretch+e.fixed,k=r.stretch+r.fixed;return{tl:h,tr:d,bl:m,br:f,tex:{x:I.paddedRect.x+kl+w,y:I.paddedRect.y+kl+T,w:S-w,h:k-T},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:y,pixelOffsetBR:v,minFontScaleX:N/z/P,minFontScaleY:V/z/M,isSDF:A}};if(t&&(I.stretchX||I.stretchY))for(var p=Al(n,s,L),h=Al(o,l,D),d=0;d<p.length-1;d++)for(var f=p[d],m=p[d+1],y=0;y<h.length-1;y++){var v=h[y],g=h[y+1];e.push(c(f,v,m,g))}else e.push(c({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:i+1},{fixed:0,stretch:r+1}));return e}function Cl(t,e,i){for(var r=0,n=0,o=t;n<o.length;n+=1){var a=o[n];r+=Math.max(e,Math.min(i,a[1]))-Math.max(e,Math.min(i,a[0]))}return r}function Al(t,e,i){for(var r=[{fixed:-kl,stretch:0}],n=0,o=t;n<o.length;n+=1){var a=o[n],s=a[0],l=a[1],u=r[r.length-1];r.push({fixed:s-u.stretch,stretch:u.stretch}),r.push({fixed:s-u.stretch,stretch:u.stretch+(l-s)})}return r.push({fixed:e+kl,stretch:i}),r}function Il(t,e,i,r){return t/e*i+r}function zl(t,e,i,r){return t-e*i/r}var Pl=function(t,e,i,r,n,o,a,s,l,u,c,p){var h=a.top*s-l,d=a.bottom*s+l,f=a.left*s-l,m=a.right*s+l,y=a.collisionPadding;if(y&&(f-=y[0]*s,h-=y[1]*s,m+=y[2]*s,d+=y[3]*s),this.boxStartIndex=t.length,u){var v=d-h,g=m-f;0<v&&(v=Math.max(10*s,v),this._addLineCollisionCircles(t,e,i,i.segment,g,v,r,n,o,c))}else{if(p){var _=new ct(f,h),x=new ct(m,h),b=new ct(f,d),w=new ct(m,d),S=p*Math.PI/180;_._rotate(S),x._rotate(S),b._rotate(S),w._rotate(S),f=Math.min(_.x,x.x,b.x,w.x),m=Math.max(_.x,x.x,b.x,w.x),h=Math.min(_.y,x.y,b.y,w.y),d=Math.max(_.y,x.y,b.y,w.y)}t.emplaceBack(i.x,i.y,f,h,m,d,r,n,o,0,0)}this.boxEndIndex=t.length};Pl.prototype._addLineCollisionCircles=function(t,e,i,r,n,o,a,s,l,u){var c=o/2,p=Math.floor(n/c)||1,h=1+.4*Math.log(u)/Math.LN2,d=Math.floor(p*h/2),f=-o/2,m=i,y=r+1,v=f,g=-n/2,_=g-n/4;do{if(--y<0){if(g<v)return;y=0;break}v-=e[y].dist(m),m=e[y]}while(_<v);for(var x=e[y].dist(e[y+1]),b=-d;b<p+d;b++){var w=b*c,S=g+w;if(w<0&&(S+=w),n<w&&(S+=w-n),!(S<v)){for(;v+x<S;){if(v+=x,++y+1>=e.length)return;x=e[y].dist(e[y+1])}var T=S-v,k=e[y],E=e[y+1].sub(k)._unit()._mult(T)._add(k)._round(),C=Math.abs(S-f)<c?0:.8*(S-f);t.emplaceBack(E.x,E.y,-o/2,-o/2,o/2,o/2,a,s,l,o/2,C)}}};var Ml=function(t,e){if(void 0===t&&(t=[]),void 0===e&&(e=Ll),this.data=t,this.length=this.data.length,this.compare=e,0<this.length)for(var i=(this.length>>1)-1;0<=i;i--)this._down(i)};function Ll(t,e){return t<e?-1:e<t?1:0}function Dl(t,e,i){void 0===e&&(e=1),void 0===i&&(i=!1);for(var r=1/0,n=1/0,o=-1/0,a=-1/0,s=t[0],l=0;l<s.length;l++){var u=s[l];(!l||u.x<r)&&(r=u.x),(!l||u.y<n)&&(n=u.y),(!l||u.x>o)&&(o=u.x),(!l||u.y>a)&&(a=u.y)}var c=o-r,p=a-n,h=Math.min(c,p),d=h/2,f=new Ml([],Rl);if(0===h)return new ct(r,n);for(var m=r;m<o;m+=h)for(var y=n;y<a;y+=h)f.push(new Bl(m+d,y+d,d,t));for(var v=function(t){for(var e=0,i=0,r=0,n=t[0],o=0,a=n.length,s=a-1;o<a;s=o++){var l=n[o],u=n[s],c=l.x*u.y-u.x*l.y;i+=(l.x+u.x)*c,r+=(l.y+u.y)*c,e+=3*c}return new Bl(i/e,r/e,0,t)}(t),g=f.length;f.length;){var _=f.pop();(_.d>v.d||!v.d)&&(v=_,i&&console.log("found best %d after %d probes",Math.round(1e4*_.d)/1e4,g)),_.max-v.d<=e||(d=_.h/2,f.push(new Bl(_.p.x-d,_.p.y-d,d,t)),f.push(new Bl(_.p.x+d,_.p.y-d,d,t)),f.push(new Bl(_.p.x-d,_.p.y+d,d,t)),f.push(new Bl(_.p.x+d,_.p.y+d,d,t)),g+=4)}return i&&(console.log("num probes: "+g),console.log("best distance: "+v.d)),v.p}function Rl(t,e){return e.max-t.max}function Bl(t,e,i,r){this.p=new ct(t,e),this.h=i,this.d=function(t,e){for(var i=!1,r=1/0,n=0;n<e.length;n++)for(var o=e[n],a=0,s=o.length,l=s-1;a<s;l=a++){var u=o[a],c=o[l];u.y>t.y!=c.y>t.y&&t.x<(c.x-u.x)*(t.y-u.y)/(c.y-u.y)+u.x&&(i=!i),r=Math.min(r,Mo(t,u,c))}return(i?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}Ml.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Ml.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,0<this.length&&(this.data[0]=e,this._down(0)),t}},Ml.prototype.peek=function(){return this.data[0]},Ml.prototype._up=function(t){for(var e=this.data,i=this.compare,r=e[t];0<t;){var n=t-1>>1,o=e[n];if(0<=i(r,o))break;e[t]=o,t=n}e[t]=r},Ml.prototype._down=function(t){for(var e=this.data,i=this.compare,r=this.length>>1,n=e[t];t<r;){var o=1+(t<<1),a=e[o],s=o+1;if(s<this.length&&i(e[s],a)<0&&(a=e[o=s]),0<=i(a,n))break;e[t]=a,t=o}e[t]=n};var Ol=Number.POSITIVE_INFINITY;
1function Fl(t,e){return e[1]!==Ol?function(t,e,i){var r=0,n=0;switch(e=Math.abs(e),i=Math.abs(i),t){case"top-right":case"top-left":case"top":n=i-7;break;case"bottom-right":case"bottom-left":case"bottom":n=7-i}switch(t){case"top-right":case"bottom-right":case"right":r=-e;break;case"top-left":case"bottom-left":case"left":r=e}return[r,n]}(t,e[0],e[1]):function(t,e){var i=0,r=0;e<0&&(e=0);var n=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":r=n-7;break;case"bottom-right":case"bottom-left":r=7-n;break;case"bottom":r=7-e;break;case"top":r=e-7}switch(t){case"top-right":case"bottom-right":i=-n;break;case"top-left":case"bottom-left":i=n;break;case"left":i=e;break;case"right":i=-e}return[i,r]}(t,e[0])}function Ul(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var Nl=255,jl=Nl*ml;function Vl(t,e,i,r,n,o,a,s,l,u,c,p,h,d){var f=function(t,e,i,r,n,o,a,s){for(var l=r.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,u=[],c=0,p=e.positionedLines;c<p.length;c+=1)for(var h=p[c],d=0,f=h.positionedGlyphs;d<f.length;d+=1){var m=f[d];if(m.rect){var y=m.rect||{},v=Ws+1,g=!0,_=1,x=0,b=(n||s)&&m.vertical,w=m.metrics.advance*m.scale/2;if(s&&e.verticalizable){var S=(m.scale-1)*Ss,T=(Ss-m.metrics.width*m.scale)/2;x=h.lineOffset/2-(m.imageName?-T:S)}if(m.imageName){var k=a[m.imageName];g=k.sdf,_=k.pixelRatio,v=Ks/_}var E=n?[m.x+w,m.y]:[0,0],C=n?[0,0]:[m.x+w+i[0],m.y+i[1]-x],A=[0,0];b&&(A=C,C=[0,0]);var I=(m.metrics.left-v)*m.scale-w+C[0],z=(-m.metrics.top-v)*m.scale+C[1],P=I+y.w*m.scale/_,M=z+y.h*m.scale/_,L=new ct(I,z),D=new ct(P,z),R=new ct(I,M),B=new ct(P,M);if(b){var O=new ct(-w,w-el),F=-Math.PI/2,U=Ss/2-w,N=m.imageName?U:0,j=new ct(5-el-U,-N),V=new(Function.prototype.bind.apply(ct,[null].concat(A)));L._rotateAround(F,O)._add(j)._add(V),D._rotateAround(F,O)._add(j)._add(V),R._rotateAround(F,O)._add(j)._add(V),B._rotateAround(F,O)._add(j)._add(V)}if(l){var q=Math.sin(l),Z=Math.cos(l),$=[Z,-q,q,Z];L._matMult($),D._matMult($),R._matMult($),B._matMult($)}var H=new ct(0,0),G=new ct(0,0);u.push({tl:L,tr:D,bl:R,br:B,tex:y,writingMode:e.writingMode,glyphOffset:E,sectionIndex:m.sectionIndex,isSDF:g,pixelOffsetTL:H,pixelOffsetBR:G,minFontScaleX:0,minFontScaleY:0})}}return u}(0,i,s,n,o,a,r,t.allowVerticalPlacement),m=t.textSizeData,y=null;"source"===m.kind?(y=[ml*n.layout.get("text-size").evaluate(a,{})])[0]>jl&&pt(t.layerIds[0]+': Value for "text-size" is >= '+Nl+'. Reduce your "text-size".'):"composite"===m.kind&&((y=[ml*d.compositeTextSizes[0].evaluate(a,{}),ml*d.compositeTextSizes[1].evaluate(a,{})])[0]>jl||y[1]>jl)&&pt(t.layerIds[0]+': Value for "text-size" is >= '+Nl+'. Reduce your "text-size".'),t.addSymbols(t.text,f,y,s,o,a,u,e,l.lineStartIndex,l.lineLength,h);for(var v=0,g=c;v<g.length;v+=1)p[g[v]]=t.text.placedSymbolArray.length-1;return 4*f.length}function ql(t){for(var e in t)return t[e];return null}function Zl(t,e,i,r){var n=t.compareText;if(e in n){for(var o=n[e],a=o.length-1;0<=a;a--)if(r.dist(o[a])<i)return!0}else n[e]=[];return n[e].push(r),!1}var $l=Ya.VectorTileFeature.types,Hl=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Gl(t,e,i,r,n,o,a,s,l,u,c,p,h){var d=s?Math.min(jl,Math.round(s[0])):0,f=s?Math.min(jl,Math.round(s[1])):0;t.emplaceBack(e,i,Math.round(32*r),Math.round(32*n),o,a,(d<<1)+(l?1:0),f,16*u,16*c,256*p,256*h)}function Wl(t,e,i){t.emplaceBack(e.x,e.y,i),t.emplaceBack(e.x,e.y,i),t.emplaceBack(e.x,e.y,i),t.emplaceBack(e.x,e.y,i)}function Xl(t){for(var e=0,i=t.sections;e<i.length;e+=1)if(Pr(i[e].text))return!0;return!1}var Kl=function(t){this.layoutVertexArray=new vn,this.indexArray=new An,this.programConfigurations=t,this.segments=new Hn,this.dynamicLayoutVertexArray=new gn,this.opacityVertexArray=new _n,this.placedSymbolArray=new Bn};Kl.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length},Kl.prototype.upload=function(t,e,i,r){this.isEmpty()||(i&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ys.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,vs.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,Hl,!0),this.opacityVertexBuffer.itemSize=1),(i||r)&&this.programConfigurations.upload(t))},Kl.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},_r("SymbolBuffers",Kl);
vendor: 4,738 bytes, line 1
1var Yl=function(t,e,i){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new i,this.segments=new Hn,this.collisionVertexArray=new wn};Yl.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,gs.members,!0)},Yl.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},_r("CollisionBuffers",Yl);var Jl=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[];var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=yl(this.zoom,e["text-size"]),this.iconSizeData=yl(this.zoom,e["icon-size"]);var i=this.layers[0].layout,r=i.get("symbol-sort-key"),n=i.get("symbol-z-order");this.sortFeaturesByKey="viewport-y"!==n&&void 0!==r.constantOr(1);var o="viewport-y"===n||"auto"===n&&!this.sortFeaturesByKey;this.sortFeaturesByY=o&&(i.get("text-allow-overlap")||i.get("icon-allow-overlap")||i.get("text-ignore-placement")||i.get("icon-ignore-placement")),"point"===i.get("symbol-placement")&&(this.writingModes=i.get("text-writing-mode").map(function(t){return tl[t]})),this.stateDependentLayerIds=this.layers.filter(function(t){return t.isStateDependent()}).map(function(t){return t.id}),this.sourceID=t.sourceID};Jl.prototype.createArrays=function(){this.text=new Kl(new xo(ys.members,this.layers,this.zoom,function(t){return/^text/.test(t)})),this.icon=new Kl(new xo(ys.members,this.layers,this.zoom,function(t){return/^icon/.test(t)})),this.glyphOffsetArray=new Nn,this.lineVertexArray=new Vn,this.symbolInstances=new Fn},Jl.prototype.calculateGlyphDependencies=function(t,e,i,r,n){for(var o=0;o<t.length;o++)if(e[t.charCodeAt(o)]=!0,(i||r)&&n){var a=ws[t.charAt(o)];a&&(e[a.charCodeAt(0)]=!0)}},Jl.prototype.populate=function(t,e){var i=this.layers[0],r=i.layout,n=r.get("text-font"),o=r.get("text-field"),a=r.get("icon-image"),s=("constant"!==o.value.kind||o.value.value instanceof ee&&!o.value.value.isEmpty()||0<o.value.value.toString().length)&&("constant"!==n.value.kind||0<n.value.value.length),l=("constant"!==a.value.kind||!!a.value.value)&&0<Object.keys(a.parameters).length,u=r.get("symbol-sort-key");if(this.features=[],s||l){for(var c=e.iconDependencies,p=e.glyphDependencies,h=e.availableImages,d=new Zr(this.zoom),f=0,m=t;f<m.length;f+=1){var y=m[f],v=y.feature,g=y.id,_=y.index,x=y.sourceLayerIndex;if(i._featureFilter(d,v)){var b=void 0;if(s){var w=i.getValueAndResolveTokens("text-field",v,h),S=ee.factory(w);Xl(S)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===jr()||this.hasRTLText&&qr.isParsed())&&(b=bs(S,i,v))}var T=void 0;if(l){var k=i.getValueAndResolveTokens("icon-image",v,h);T=k instanceof ie?k:ie.fromString(k)}if(b||T){var E=this.sortFeaturesByKey?u.evaluate(v,{}):void 0,C={id:g,text:b,icon:T,index:_,sourceLayerIndex:x,geometry:To(v),properties:v.properties,type:$l[v.type],sortKey:E};if(this.features.push(C),T&&(c[T.name]=!0),b){var A=n.evaluate(v,{}).join(","),I="map"===r.get("text-rotation-alignment")&&"point"!==r.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&0<=this.writingModes.indexOf(tl.vertical);for(var z=0,P=b.sections;z<P.length;z+=1){var M=P[z];if(M.image)c[M.image.name]=!0;else{var L=Cr(b.toString()),D=M.fontStack||A,R=p[D]=p[D]||{};this.calculateGlyphDependencies(M.text,R,I,this.allowVerticalPlacement,L)}}}}}}"line"===r.get("symbol-placement")&&(this.features=function(e){var n={},o={},a=[],i=0;function t(t){a.push(e[t]),i++}function r(t,e,i){var r=o[t];return delete o[t],o[e]=r,a[r].geometry[0].pop(),a[r].geometry[0]=a[r].geometry[0].concat(i[0]),r}function s(t,e,i){var r=n[e];return delete n[e],n[t]=r,a[r].geometry[0].shift(),a[r].geometry[0]=i[0].concat(a[r].geometry[0]),r}function l(t,e,i){var r=i?e[0][e[0].length-1]:e[0][0];return t+":"+r.x+":"+r.y}for(var u=0;u<e.length;u++){var c=e[u],p=c.geometry,h=c.text?c.text.toString():null;if(h){var d=l(h,p),f=l(h,p,!0);if(d in o&&f in n&&o[d]!==n[f]){var m=s(d,f,p),y=r(d,f,a[m].geometry);delete n[d],delete o[f],o[l(h,a[y].geometry,!0)]=y,a[m].geometry=null}else d in o?r(d,f,p):f in n?s(d,f,p):(t(u),n[d]=i-1,o[f]=i-1)}else t(u)}return a.filter(function(t){return t.geometry})}(this.features)),this.sortFeaturesByKey&&this.features.sort(function(t,e){return t.sortKey-e.sortKey})}}
1,Jl.prototype.update=function(t,e,i){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,i),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,i))},Jl.prototype.isEmpty=function(){return 0===this.symbolInstances.length&&!this.hasRTLText},Jl.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},Jl.prototype.upload=function(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t),this.textCollisionCircle.upload(t),this.iconCollisionCircle.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},Jl.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy(),this.textCollisionCircle.destroy(),this.iconCollisionCircle.destroy()},Jl.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},Jl.prototype.addToLineVertexArray=function(t,e){var i=this.lineVertexArray.length;if(void 0!==t.segment){for(var r=t.dist(e[t.segment+1]),n=t.dist(e[t.segment]),o={},a=t.segment+1;a<e.length;a++)o[a]={x:e[a].x,y:e[a].y,tileUnitDistanceFromAnchor:r},a<e.length-1&&(r+=e[a+1].dist(e[a]));for(var s=t.segment||0;0<=s;s--)o[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:n},0<s&&(n+=e[s-1].dist(e[s]));for(var l=0;l<e.length;l++){var u=o[l];this.lineVertexArray.emplaceBack(u.x,u.y,u.tileUnitDistanceFromAnchor)}}return{lineStartIndex:i,lineLength:this.lineVertexArray.length-i}},Jl.prototype.addSymbols=function(t,e,i,r,n,o,a,s,l,u,c){for(var p=t.indexArray,h=t.layoutVertexArray,d=t.segments.prepareSegment(4*e.length,h,p,o.sortKey),f=this.glyphOffsetArray.length,m=d.vertexLength,y=this.allowVerticalPlacement&&a===tl.vertical?Math.PI/2:0,v=o.text&&o.text.sections,g=0;g<e.length;g++){var _=e[g],x=_.tl,b=_.tr,w=_.bl,S=_.br,T=_.tex,k=_.pixelOffsetTL,E=_.pixelOffsetBR,C=_.minFontScaleX,A=_.minFontScaleY,I=_.glyphOffset,z=_.isSDF,P=_.sectionIndex,M=d.vertexLength,L=I[1];Gl(h,s.x,s.y,x.x,L+x.y,T.x,T.y,i,z,k.x,k.y,C,A),Gl(h,s.x,s.y,b.x,L+b.y,T.x+T.w,T.y,i,z,E.x,k.y,C,A),Gl(h,s.x,s.y,w.x,L+w.y,T.x,T.y+T.h,i,z,k.x,E.y,C,A),Gl(h,s.x,s.y,S.x,L+S.y,T.x+T.w,T.y+T.h,i,z,E.x,E.y,C,A),Wl(t.dynamicLayoutVertexArray,s,y),p.emplaceBack(M,M+1,M+2),p.emplaceBack(M+1,M+2,M+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(I[0]),g!==e.length-1&&P===e[g+1].sectionIndex||t.programConfigurations.populatePaintArrays(h.length,o,o.index,{},v&&v[P])}t.placedSymbolArray.emplaceBack(s.x,s.y,f,this.glyphOffsetArray.length-f,m,l,u,s.segment,i?i[0]:0,i?i[1]:0,r[0],r[1],a,0,!1,0,c)},Jl.prototype._addCollisionDebugVertex=function(t,e,i,r,n,o){return e.emplaceBack(0,0),t.emplaceBack(i.x,i.y,r,n,Math.round(o.x),Math.round(o.y))},Jl.prototype.addCollisionDebugVertices=function(t,e,i,r,n,o,a,s){var l=n.segments.prepareSegment(4,n.layoutVertexArray,n.indexArray),u=l.vertexLength,c=n.layoutVertexArray,p=n.collisionVertexArray,h=a.anchorX,d=a.anchorY;if(this._addCollisionDebugVertex(c,p,o,h,d,new ct(t,e)),this._addCollisionDebugVertex(c,p,o,h,d,new ct(i,e)),this._addCollisionDebugVertex(c,p,o,h,d,new ct(i,r)),this._addCollisionDebugVertex(c,p,o,h,d,new ct(t,r)),l.vertexLength+=4,s){var f=n.indexArray;f.emplaceBack(u,u+1,u+2),f.emplaceBack(u,u+2,u+3),l.primitiveLength+=2}else{var m=n.indexArray;m.emplaceBack(u,u+1),m.emplaceBack(u+1,u+2),m.emplaceBack(u+2,u+3),m.emplaceBack(u+3,u),l.primitiveLength+=4}},Jl.prototype.addDebugCollisionBoxes=function(t,e,i,r){for(var n=t;n<e;n++){var o=this.collisionBoxArray.get(n),a=o.x1,s=o.y1,l=o.x2,u=o.y2,c=0<o.radius;this.addCollisionDebugVertices(a,s,l,u,c?r?this.textCollisionCircle:this.iconCollisionCircle:r?this.textCollisionBox:this.iconCollisionBox,o.anchorPoint,i,c)}},Jl.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Yl(bn,_s.members,In),this.iconCollisionBox=new Yl(bn,_s.members,In),this.textCollisionCircle=new Yl(bn,xs.members,An),this.iconCollisionCircle=new Yl(bn,xs.members,An);for(var t=0;t<this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}}
1,Jl.prototype._deserializeCollisionBoxesForSymbol=function(t,e,i,r,n,o,a,s,l){for(var u={},c=e;c<i;c++){var p=t.get(c);if(0===p.radius){u.textBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},u.textFeatureIndex=p.featureIndex;break}u.textCircles||(u.textCircles=[],u.textFeatureIndex=p.featureIndex),u.textCircles.push(p.anchorPointX,p.anchorPointY,p.radius,p.signedDistanceFromAnchor,1)}for(var h=r;h<n;h++){var d=t.get(h);if(0===d.radius){u.verticalTextBox={x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,anchorPointX:d.anchorPointX,anchorPointY:d.anchorPointY},u.verticalTextFeatureIndex=d.featureIndex;break}}for(var f=o;f<a;f++){var m=t.get(f);if(0===m.radius){u.iconBox={x1:m.x1,y1:m.y1,x2:m.x2,y2:m.y2,anchorPointX:m.anchorPointX,anchorPointY:m.anchorPointY},u.iconFeatureIndex=m.featureIndex;break}}for(var y=s;y<l;y++){var v=t.get(y);if(0===v.radius){u.verticalIconBox={x1:v.x1,y1:v.y1,x2:v.x2,y2:v.y2,anchorPointX:v.anchorPointX,anchorPointY:v.anchorPointY},u.verticalIconFeatureIndex=v.featureIndex;break}}return u},Jl.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e<this.symbolInstances.length;e++){var i=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,i.textBoxStartIndex,i.textBoxEndIndex,i.verticalTextBoxStartIndex,i.verticalTextBoxEndIndex,i.iconBoxStartIndex,i.iconBoxEndIndex,i.verticalIconBoxStartIndex,i.verticalIconBoxEndIndex))}},Jl.prototype.hasTextData=function(){return 0<this.text.segments.get().length},Jl.prototype.hasIconData=function(){return 0<this.icon.segments.get().length},Jl.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox&&this.textCollisionCircle&&this.iconCollisionCircle},Jl.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&0<this.textCollisionBox.segments.get().length},Jl.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&0<this.iconCollisionBox.segments.get().length},Jl.prototype.hasTextCollisionCircleData=function(){return this.hasDebugData()&&0<this.textCollisionCircle.segments.get().length},Jl.prototype.hasIconCollisionCircleData=function(){return this.hasDebugData()&&0<this.iconCollisionCircle.segments.get().length},Jl.prototype.addIndicesForPlacedSymbol=function(t,e){for(var i=t.placedSymbolArray.get(e),r=i.vertexStartIndex+4*i.numGlyphs,n=i.vertexStartIndex;n<r;n+=4)t.indexArray.emplaceBack(n,n+1,n+2),t.indexArray.emplaceBack(n+1,n+2,n+3)},Jl.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),i=Math.cos(t),r=[],n=[],o=[],a=0;a<this.symbolInstances.length;++a){o.push(a);var s=this.symbolInstances.get(a);r.push(0|Math.round(e*s.anchorX+i*s.anchorY)),n.push(s.featureIndex)}return o.sort(function(t,e){return r[t]-r[e]||n[e]-n[t]}),o},Jl.prototype.addToSortKeyRanges=function(t,e){var i=this.sortKeyRanges[this.sortKeyRanges.length-1];i&&i.sortKey===e?i.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},Jl.prototype.sortFeatures=function(t){var r=this;if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(1<this.text.segments.get().length||1<this.icon.segments.get().length)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var e=0,i=this.symbolInstanceIndexes;e<i.length;e+=1){var n=i[e],o=this.symbolInstances.get(n);this.featureSortOrder.push(o.featureIndex),[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex].forEach(function(t,e,i){0<=t&&i.indexOf(t)===e&&r.addIndicesForPlacedSymbol(r.text,t)}),0<=o.verticalPlacedTextSymbolIndex&&this.addIndicesForPlacedSymbol(this.text,o.verticalPlacedTextSymbolIndex),0<=o.placedIconSymbolIndex&&this.addIndicesForPlacedSymbol(this.icon,o.placedIconSymbolIndex),0<=o.verticalPlacedIconSymbolIndex&&this.addIndicesForPlacedSymbol(this.icon,o.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},_r("SymbolBucket",Jl,{omit:["layers","collisionBoxArray","features","compareText"]}),Jl.MAX_GLYPHS=65535,Jl.addDynamicAttributes=Wl;var Ql=new on({"symbol-placement":new Qr(It.layout_symbol["symbol-placement"]),"symbol-spacing":new Qr(It.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Qr(It.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new tn(It.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Qr(It.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Qr(It.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Qr(It.layout_symbol["icon-ignore-placement"]),"icon-optional":new Qr(It.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Qr(It.layout_symbol["icon-rotation-alignment"]),"icon-size":new tn(It.layout_symbol["icon-size"]),"icon-text-fit":new Qr(It.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Qr(It.layout_symbol["icon-text-fit-padding"]),"icon-image":new tn(It.layout_symbol["icon-image"]),"icon-rotate":new tn(It.layout_symbol["icon-rotate"]),"icon-padding":new Qr(It.layout_symbol["icon-padding"]),"icon-keep-upright":new Qr(It.layout_symbol["icon-keep-upright"]),"icon-offset":new tn(It.layout_symbol["icon-offset"]),"icon-anchor":new tn(It.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Qr(It.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Qr(It.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Qr(It.layout_symbol["text-rotation-alignment"]),"text-field":new tn(It.layout_symbol["text-field"]),"text-font":new tn(It.layout_symbol["text-font"]),"text-size":new tn(It.layout_symbol["text-size"]),"text-max-width":new tn(It.layout_symbol["text-max-width"]),"text-line-height":new Qr(It.layout_symbol["text-line-height"]),"text-letter-spacing":new tn(It.layout_symbol["text-letter-spacing"]),"text-justify":new tn(It.layout_symbol["text-justify"]),"text-radial-offset":new tn(It.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Qr(It.layout_symbol["text-variable-anchor"]),"text-anchor":new tn(It.layout_symbol["text-anchor"]),"text-max-angle":new Qr(It.layout_symbol["text-max-angle"]),"text-writing-mode":new Qr(It.layout_symbol["text-writing-mode"]),"text-rotate":new tn(It.layout_symbol["text-rotate"]),"text-padding":new Qr(It.layout_symbol["text-padding"]),"text-keep-upright":new Qr(It.layout_symbol["text-keep-upright"]),"text-transform":new tn(It.layout_symbol["text-transform"]),"text-offset":new tn(It.layout_symbol["text-offset"]),"text-allow-overlap":new Qr(It.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Qr(It.layout_symbol["text-ignore-placement"]),"text-optional":new Qr(It.layout_symbol["text-optional"])}),tu={paint:new on({"icon-opacity":new tn(It.paint_symbol["icon-opacity"]),"icon-color":new tn(It.paint_symbol["icon-color"]),"icon-halo-color":new tn(It.paint_symbol["icon-halo-color"]),"icon-halo-width":new tn(It.paint_symbol["icon-halo-width"]),"icon-halo-blur":new tn(It.paint_symbol["icon-halo-blur"]),"icon-translate":new Qr(It.paint_symbol["icon-translate"]),"icon-translate-anchor":new Qr(It.paint_symbol["icon-translate-anchor"]),"text-opacity":new tn(It.paint_symbol["text-opacity"]),"text-color":new tn(It.paint_symbol["text-color"],{runtimeType:jt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new tn(It.paint_symbol["text-halo-color"]),"text-halo-width":new tn(It.paint_symbol["text-halo-width"]),"text-halo-blur":new tn(It.paint_symbol["text-halo-blur"]),"text-translate":new Qr(It.paint_symbol["text-translate"]),"text-translate-anchor":new Qr(It.paint_symbol["text-translate-anchor"])}),layout:Ql},eu=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Ot,this.defaultValue=t};eu.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},eu.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},eu.prototype.possibleOutputs=function(){return[void 0]},eu.prototype.serialize=function(){return null},_r("FormatSectionOverride",eu,{omit:["defaultValue"]});var iu=function(s){function l(t){s.call(this,t,tu)}return s&&(l.__proto__=s),((l.prototype=Object.create(s&&s.prototype)).constructor=l).prototype.recalculate=function(t,e){if(s.prototype.recalculate.call(this,t,e),"auto"===this.layout.get("icon-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var i=this.layout.get("text-writing-mode");if(i){for(var r=[],n=0,o=i;n<o.length;n+=1){var a=o[n];r.indexOf(a)<0&&r.push(a)}this.layout._values["text-writing-mode"]=r}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}
1,l.prototype.getValueAndResolveTokens=function(t,e,i){var r,n=this.layout.get(t).evaluate(e,{},i),o=this._unevaluatedLayout._values[t];return o.isDataDriven()||Ei(o.value)||!n?n:(r=e.properties,n.replace(/{([^{}]+)}/g,function(t,e){return e in r?String(r[e]):""}))},l.prototype.createBucket=function(t){return new Jl(t)},l.prototype.queryRadius=function(){return 0},l.prototype.queryIntersectsFeature=function(){return!1},l.prototype._setPaintOverrides=function(){for(var t=0,e=tu.paint.overridableProperties;t<e.length;t+=1){var i=e[t];if(l.hasPaintOverride(this.layout,i)){var r,n=this.paint.get(i),o=new eu(n),a=new ki(o,n.property.specification);r="constant"===n.value.kind||"source"===n.value.kind?new Ai("source",a):new Ii("composite",a,n.value.zoomStops,n.value._interpolationType),this.paint._values[i]=new Yr(n.property,r,n.parameters)}}},l.prototype._handleOverridablePaintPropertyUpdate=function(t,e,i){return!(!this.layout||e.isDataDriven()||i.isDataDriven())&&l.hasPaintOverride(this.layout,t)},l.hasPaintOverride=function(t,e){var i=t.get("text-field"),n=tu.paint.properties[e],o=!1,r=function(t){for(var e=0,i=t;e<i.length;e+=1){var r=i[e];if(n.overrides&&n.overrides.hasOverride(r))return void(o=!0)}};if("constant"===i.value.kind&&i.value.value instanceof ee)r(i.value.value.sections);else if("source"===i.value.kind){var a=function(t){if(!o)if(t instanceof ae&&ne(t.value)===$t){var e=t.value;r(e.sections)}else t instanceof ce?r(t.sections):t.eachChild(a)},s=i.value;s._styleExpression&&a(s._styleExpression.expression)}return o},l}(an),ru={paint:new on({"background-color":new Qr(It.paint_background["background-color"]),"background-pattern":new rn(It.paint_background["background-pattern"]),"background-opacity":new Qr(It.paint_background["background-opacity"])})},nu=function(e){function t(t){e.call(this,t,ru)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(an),ou={paint:new on({"raster-opacity":new Qr(It.paint_raster["raster-opacity"]),"raster-hue-rotate":new Qr(It.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Qr(It.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Qr(It.paint_raster["raster-brightness-max"]),"raster-saturation":new Qr(It.paint_raster["raster-saturation"]),"raster-contrast":new Qr(It.paint_raster["raster-contrast"]),"raster-resampling":new Qr(It.paint_raster["raster-resampling"]),"raster-fade-duration":new Qr(It.paint_raster["raster-fade-duration"])})},au=function(e){function t(t){e.call(this,t,ou)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(an),su=function(e){function t(t){e.call(this,t,{}),this.implementation=t}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.is3D=function(){return"3d"===this.implementation.renderingMode},t.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},t.prototype.recalculate=function(){},t.prototype.updateTransitions=function(){},t.prototype.hasTransition=function(){},t.prototype.serialize=function(){},t.prototype.onAdd=function(t){this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)},t.prototype.onRemove=function(t){this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl)},t}(an),lu={circle:Ho,heatmap:ia,hillshade:na,fill:ja,"fill-extrusion":rs,line:fs,symbol:iu,background:nu,raster:au},uu=self.HTMLImageElement,cu=self.HTMLCanvasElement,pu=self.HTMLVideoElement,hu=self.ImageData,du=self.ImageBitmap,fu=function(t,e,i,r){this.context=t,this.format=i,this.texture=t.gl.createTexture(),this.update(e,r)};fu.prototype.update=function(t,e,i){var r=t.width,n=t.height,o=!(this.size&&this.size[0]===r&&this.size[1]===n||i),a=this.context,s=a.gl;if(this.useMipmap=Boolean(e&&e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),a.pixelStoreUnpackFlipY.set(!1),a.pixelStoreUnpack.set(1),a.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&&(!e||!1!==e.premultiply)),o)this.size=[r,n],t instanceof uu||t instanceof cu||t instanceof pu||t instanceof hu||du&&t instanceof du?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,r,n,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=i||{x:0,y:0},u=l.x,c=l.y;t instanceof uu||t instanceof cu||t instanceof pu||t instanceof hu||du&&t instanceof du?s.texSubImage2D(s.TEXTURE_2D,0,u,c,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,u,c,r,n,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&s.generateMipmap(s.TEXTURE_2D)}
vendor: 9,833 bytes, line 1
1,fu.prototype.bind=function(t,e,i){var r=this.context.gl;r.bindTexture(r.TEXTURE_2D,this.texture),i!==r.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(i=r.LINEAR),t!==this.filter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,i||t),this.filter=t),e!==this.wrap&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,e),this.wrap=e)},fu.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},fu.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var mu=function(t){var e=this;this._callback=t,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};mu.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(function(){t._triggered=!1,t._callback()},0))},mu.prototype.remove=function(){delete this._channel,this._callback=function(){}};var yu=function(t,e,i){this.target=t,this.parent=e,this.mapId=i,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},d(["receive","process"],this),this.invoker=new mu(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=w()?t:self};function vu(t,e,i){var r=2*Math.PI*6378137/256/Math.pow(2,i);return[t*r-2*Math.PI*6378137/2,e*r-2*Math.PI*6378137/2]}yu.prototype.send=function(t,e,i,r,n){var o=this;void 0===n&&(n=!1);var a=Math.round(1e18*Math.random()).toString(36).substring(0,10);i&&(this.callbacks[a]=i);var s=k(this.globalScope)?void 0:[];return this.target.postMessage({id:a,type:t,hasCallback:!!i,targetMapId:r,mustQueue:n,sourceMapId:this.mapId,data:Sr(e,s)},s),{cancel:function(){i&&delete o.callbacks[a],o.target.postMessage({id:a,type:"<cancel>",targetMapId:r,sourceMapId:o.mapId})}}},yu.prototype.receive=function(t){var e=t.data,i=e.id;if(i&&(!e.targetMapId||this.mapId===e.targetMapId))if("<cancel>"===e.type){delete this.tasks[i];var r=this.cancelCallbacks[i];delete this.cancelCallbacks[i],r&&r()}else w()||e.mustQueue?(this.tasks[i]=e,this.taskQueue.push(i),this.invoker.trigger()):this.processTask(i,e)},yu.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),e&&this.processTask(t,e)}},yu.prototype.processTask=function(i,t){var r=this;if("<response>"===t.type){var e=this.callbacks[i];delete this.callbacks[i],e&&(t.error?e(Tr(t.error)):e(null,Tr(t.data)))}else{var n=!1,o=k(this.globalScope)?void 0:[],a=t.hasCallback?function(t,e){n=!0,delete r.cancelCallbacks[i],r.target.postMessage({id:i,type:"<response>",sourceMapId:r.mapId,error:t?Sr(t):null,data:Sr(e,o)},o)}:function(t){n=!0},s=null,l=Tr(t.data);if(this.parent[t.type])s=this.parent[t.type](t.sourceMapId,l,a);else if(this.parent.getWorkerSource){var u=t.type.split(".");s=this.parent.getWorkerSource(t.sourceMapId,u[0],l.source)[u[1]](l,a)}else a(new Error("Could not find function "+t.type));!n&&s&&s.cancel&&(this.cancelCallbacks[i]=s.cancel)}},yu.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var gu=function(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};gu.prototype.setNorthEast=function(t){return this._ne=t instanceof _u?new _u(t.lng,t.lat):_u.convert(t),this},gu.prototype.setSouthWest=function(t){return this._sw=t instanceof _u?new _u(t.lng,t.lat):_u.convert(t),this},gu.prototype.extend=function(t){var e,i,r=this._sw,n=this._ne;if(t instanceof _u)i=e=t;else{if(!(t instanceof gu))return Array.isArray(t)?t.every(Array.isArray)?this.extend(gu.convert(t)):this.extend(_u.convert(t)):this;if(e=t._sw,i=t._ne,!e||!i)return this}return r||n?(r.lng=Math.min(e.lng,r.lng),r.lat=Math.min(e.lat,r.lat),n.lng=Math.max(i.lng,n.lng),n.lat=Math.max(i.lat,n.lat)):(this._sw=new _u(e.lng,e.lat),this._ne=new _u(i.lng,i.lat)),this},gu.prototype.getCenter=function(){return new _u((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},gu.prototype.getSouthWest=function(){return this._sw},gu.prototype.getNorthEast=function(){return this._ne},gu.prototype.getNorthWest=function(){return new _u(this.getWest(),this.getNorth())},gu.prototype.getSouthEast=function(){return new _u(this.getEast(),this.getSouth())},gu.prototype.getWest=function(){return this._sw.lng},gu.prototype.getSouth=function(){return this._sw.lat},gu.prototype.getEast=function(){return this._ne.lng},gu.prototype.getNorth=function(){return this._ne.lat},gu.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},gu.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},gu.prototype.isEmpty=function(){return!(this._sw&&this._ne)},gu.prototype.contains=function(t){var e=_u.convert(t),i=e.lng,r=e.lat,n=this._sw.lat<=r&&r<=this._ne.lat,o=this._sw.lng<=i&&i<=this._ne.lng;return this._sw.lng>this._ne.lng&&(o=this._sw.lng>=i&&i>=this._ne.lng),n&&o},gu.convert=function(t){return!t||t instanceof gu?t:new gu(t)};var _u=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid LngLat object: ("+t+", "+e+")");if(this.lng=+t,this.lat=+e,90<this.lat||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};_u.prototype.wrap=function(){return new _u(s(this.lng,-180,180),this.lat)},_u.prototype.toArray=function(){return[this.lng,this.lat]},_u.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},_u.prototype.distanceTo=function(t){var e=Math.PI/180,i=this.lat*e,r=t.lat*e,n=Math.sin(i)*Math.sin(r)+Math.cos(i)*Math.cos(r)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(n,1))},_u.prototype.toBounds=function(t){void 0===t&&(t=0);var e=360*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return new gu(new _u(this.lng-i,this.lat-e),new _u(this.lng+i,this.lat+e))},_u.convert=function(t){if(t instanceof _u)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new _u(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new _u(Number("lng"in t?t.lng:t.lon),Number(t.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 xu=2*Math.PI*6371008.8;function bu(t){return xu*Math.cos(t*Math.PI/180)}function wu(t){return(180+t)/360}function Su(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Tu(t,e){return t/bu(e)}function ku(t){var e=180-360*t;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}var Eu=function(t,e,i){void 0===i&&(i=0),this.x=+t,this.y=+e,this.z=+i};Eu.fromLngLat=function(t,e){void 0===e&&(e=0);var i=_u.convert(t);return new Eu(wu(i.lng),Su(i.lat),Tu(e,i.lat))},Eu.prototype.toLngLat=function(){return new _u(360*this.x-180,ku(this.y))},Eu.prototype.toAltitude=function(){return this.z*bu(ku(this.y))},Eu.prototype.meterInMercatorCoordinateUnits=function(){return 1/xu*(t=ku(this.y),1/Math.cos(t*Math.PI/180));var t};var Cu=function(t,e,i){this.z=t,this.x=e,this.y=i,this.key=zu(0,t,t,e,i)};Cu.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Cu.prototype.url=function(t,e){var i,r,n,o,a,s=(i=this.x,r=this.y,n=this.z,o=vu(256*i,256*(r=Math.pow(2,n)-r-1),n),a=vu(256*(i+1),256*(r+1),n),o[0]+","+o[1]+","+a[0]+","+a[1]),l=function(t,e,i){for(var r,n="",o=t;0<o;o--)n+=(e&(r=1<<o-1)?1:0)+(i&r?2:0);return n}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",l).replace("{bbox-epsg-3857}",s)},Cu.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new ct((t.x*e-this.x)*wo,(t.y*e-this.y)*wo)},Cu.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var Au=function(t,e){this.wrap=t,this.canonical=e,this.key=zu(t,e.z,e.z,e.x,e.y)},Iu=function(t,e,i,r,n){this.overscaledZ=t,this.wrap=e,this.canonical=new Cu(i,+r,+n),this.key=zu(e,t,i,r,n)};function zu(t,e,i,r,n){(t*=2)<0&&(t=-1*t-1);var o=1<<i;return(o*o*t+o*n+r).toString(36)+i.toString(36)+e.toString(36)}Iu.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)},Iu.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t>this.canonical.z?new Iu(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Iu(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},Iu.prototype.calculateScaledKey=function(t,e){var i=this.canonical.z-t;return t>this.canonical.z?zu(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):zu(this.wrap*+e,t,t,this.canonical.x>>i,this.canonical.y>>i)},Iu.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e},Iu.prototype.children=function(t){if(this.overscaledZ>=t)return[new Iu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,i=2*this.canonical.x,r=2*this.canonical.y;return[new Iu(e,this.wrap,e,i,r),new Iu(e,this.wrap,e,i+1,r),new Iu(e,this.wrap,e,i,r+1),new Iu(e,this.wrap,e,i+1,r+1)]},Iu.prototype.isLessThan=function(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>
vendor: 4,353 bytes, line 1
1t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))},Iu.prototype.wrapped=function(){return new Iu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Iu.prototype.unwrapTo=function(t){return new Iu(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},Iu.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Iu.prototype.toUnwrapped=function(){return new Au(this.wrap,this.canonical)},Iu.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},Iu.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Eu(t.x-this.wrap,t.y))},_r("CanonicalTileID",Cu),_r("OverscaledTileID",Iu,{omit:["posMatrix"]});var Pu=function(t,e,i){if(this.uid=t,e.height!==e.width)throw new RangeError("DEM tiles must be square");if(i&&"mapbox"!==i&&"terrarium"!==i)return pt('"'+i+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');this.stride=e.height;var r=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=i||"mapbox";for(var n=0;n<r;n++)this.data[this._idx(-1,n)]=this.data[this._idx(0,n)],this.data[this._idx(r,n)]=this.data[this._idx(r-1,n)],this.data[this._idx(n,-1)]=this.data[this._idx(n,0)],this.data[this._idx(n,r)]=this.data[this._idx(n,r-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(r,-1)]=this.data[this._idx(r-1,0)],this.data[this._idx(-1,r)]=this.data[this._idx(0,r-1)],this.data[this._idx(r,r)]=this.data[this._idx(r-1,r-1)]};Pu.prototype.get=function(t,e){var i=new Uint8Array(this.data.buffer),r=4*this._idx(t,e);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(i[r],i[r+1],i[r+2])},Pu.prototype.getUnpackVector=function(){return"terrarium"===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Pu.prototype._idx=function(t,e){if(t<-1||t>=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)},Pu.prototype._unpackMapbox=function(t,e,i){return(256*t*256+256*e+i)/10-1e4},Pu.prototype._unpackTerrarium=function(t,e,i){return 256*t+e+i/256-32768},Pu.prototype.getPixels=function(){return new Qo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Pu.prototype.backfillBorder=function(t,e,i){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var r=e*this.dim,n=e*this.dim+this.dim,o=i*this.dim,a=i*this.dim+this.dim;switch(e){case-1:r=n-1;break;case 1:n=r+1}switch(i){case-1:o=a-1;break;case 1:a=o+1}for(var s=-e*this.dim,l=-i*this.dim,u=o;u<a;u++)for(var c=r;c<n;c++)this.data[this._idx(c,u)]=t.data[this._idx(c+s,u+l)]},_r("DEMData",Pu);var Mu=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e<t.length;e++){var i=t[e];this._stringToNumber[i]=e,this._numberToString[e]=i}};Mu.prototype.encode=function(t){return this._stringToNumber[t]},Mu.prototype.decode=function(t){return this._numberToString[t]};var Lu=function(t,e,i,r,n){this.type="Feature",(this._vectorTileFeature=t)._z=e,t._x=i,t._y=r,this.properties=t.properties,this.id=n},Du={geometry:{configurable:!0}};Du.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Du.geometry.set=function(t){this._geometry=t},Lu.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)"_geometry"!==e&&"_vectorTileFeature"!==e&&(t[e]=this[e]);return t},Object.defineProperties(Lu.prototype,Du);var Ru=function(){this.state={},this.stateChanges={},this.deletedStates={}};Ru.prototype.updateState=function(t,e,i){var r=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][r]=this.stateChanges[t][r]||{},f(this.stateChanges[t][r],i),null===this.deletedStates[t])for(var n in this.deletedStates[t]={},this.state[t])n!==r&&(this.deletedStates[t][n]=null);else if(this.deletedStates[t]&&null===this.deletedStates[t][r])for(var o in this.deletedStates[t][r]={},this.state[t][r])i[o]||(this.deletedStates[t][r][o]=null);else for(var a in i)this.deletedStates[t]&&this.deletedStates[t][r]&&null===this.deletedStates[t][r][a]&&delete this.deletedStates[t][r][a]}
1,Ru.prototype.removeFeatureState=function(t,e,i){if(null!==this.deletedStates[t]){var r=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},i&&void 0!==e)null!==this.deletedStates[t][r]&&(this.deletedStates[t][r]=this.deletedStates[t][r]||{},this.deletedStates[t][r][i]=null);else if(void 0!==e)if(this.stateChanges[t]&&this.stateChanges[t][r])for(i in this.deletedStates[t][r]={},this.stateChanges[t][r])this.deletedStates[t][r][i]=null;else this.deletedStates[t][r]=null;else this.deletedStates[t]=null}},Ru.prototype.getState=function(t,e){var i=String(e),r=this.state[t]||{},n=this.stateChanges[t]||{},o=f({},r[i],n[i]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var a=this.deletedStates[t][e];if(null===a)return{};for(var s in a)delete o[s]}return o},Ru.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},Ru.prototype.coalesceChanges=function(t,e){var i={};for(var r in this.stateChanges){this.state[r]=this.state[r]||{};var n={};for(var o in this.stateChanges[r])this.state[r][o]||(this.state[r][o]={}),f(this.state[r][o],this.stateChanges[r][o]),n[o]=this.state[r][o];i[r]=n}for(var a in this.deletedStates){this.state[a]=this.state[a]||{};var s={};if(null===this.deletedStates[a])for(var l in this.state[a])s[l]={},this.state[a][l]={};else for(var u in this.deletedStates[a]){if(null===this.deletedStates[a][u])this.state[a][u]={};else for(var c=0,p=Object.keys(this.deletedStates[a][u]);c<p.length;c+=1){var h=p[c];delete this.state[a][u][h]}s[u]=this.state[a][u]}i[a]=i[a]||{},f(i[a],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(i).length)for(var d in t)t[d].setFeatureState(i,e)};var Bu=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new dr(wo,16,0),this.grid3D=new dr(wo,16,0),this.featureIndexArray=new Zn,this.promoteId=e};function Ou(t){for(var e=1/0,i=1/0,r=-1/0,n=-1/0,o=0,a=t;o<a.length;o+=1){var s=a[o];e=Math.min(e,s.x),i=Math.min(i,s.y),r=Math.max(r,s.x),n=Math.max(n,s.y)}return{minX:e,minY:i,maxX:r,maxY:n}}function Fu(t,e){return e-t}Bu.prototype.insert=function(t,e,i,r,n,o){var a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(i,r,n);for(var s=o?this.grid3D:this.grid,l=0;l<e.length;l++){for(var u=e[l],c=[1/0,1/0,-1/0,-1/0],p=0;p<u.length;p++){var h=u[p];c[0]=Math.min(c[0],h.x),c[1]=Math.min(c[1],h.y),c[2]=Math.max(c[2],h.x),c[3]=Math.max(c[3],h.y)}c[0]<wo&&c[1]<wo&&0<=c[2]&&0<=c[3]&&s.insert(a,c[0],c[1],c[2],c[3])}},Bu.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Ya.VectorTile(new Es(this.rawTileData)).layers,this.sourceLayerCoder=new Mu(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Bu.prototype.query=function(o,r,a){var s=this;this.loadVTLayers();for(var l=o.params||{},u=wo/o.tileSize/o.scale,c=Ni(l.filter),p=o.queryGeometry,n=o.queryPadding*u,t=Ou(p),h=this.grid.query(t.minX-n,t.minY-n,t.maxX+n,t.maxY+n),e=Ou(o.cameraQueryGeometry),i=0,d=this.grid3D.query(e.minX-n,e.minY-n,e.maxX+n,e.maxY+n,function(t,e,i,r){return function(t,e,i,r,n){for(var o=0,a=t;o<a.length;o+=1){var s=a[o];if(e<=s.x&&i<=s.y&&r>=s.x&&n>=s.y)return!0}var l=[new ct(e,i),new ct(e,n),new ct(r,n),new ct(r,i)];if(2<t.length)for(var u=0,c=l;u<c.length;u+=1)if(Do(t,c[u]))return!0;for(var p=0;p<t.length-1;p++)if(Ro(t[p],t[p+1],l))return!0;return!1}(o.cameraQueryGeometry,t-n,e-n,i+n,r+n)});i<d.length;i+=1){var f=d[i];h.push(f)}h.sort(Fu);for(var m,y={},v=function(t){var e=h[t];if(e!==m){m=e;var i=s.featureIndexArray.get(e),n=null;s.loadMatchingFeature(y,i.bucketIndex,i.sourceLayerIndex,i.featureIndex,c,l.layers,r,function(t,e,i){n||(n=To(t));var r={};return void 0!==i&&(r=a.getState(e.sourceLayer||"_geojsonTileLayer",i)),e.queryIntersectsFeature(p,t,r,n,s.z,o.transform,u,o.pixelPosMatrix)})}},g=0;g<h.length;g++)v(g);return y},Bu.prototype.loadMatchingFeature=function(t,e,i,r,n,o,a,s){var l=this.bucketLayerIDs[e];if(!o||function(t,e){for(var i=0;i<t.length;i++)if(0<=e.indexOf(t[i]))return!0;return!1}(o,l)){var u=this.sourceLayerCoder.decode(i),c=this.vtLayers[u].feature(r);
vendor: 4,375 bytes, line 1
1if(n(new Zr(this.tileID.overscaledZ),c))for(var p=this.getId(c,u),h=0;h<l.length;h++){var d=l[h];if(!(o&&o.indexOf(d)<0)){var f=a[d];if(f){var m=!s||s(c,f,p);if(m){var y=new Lu(c,this.z,this.x,this.y,p);y.layer=f.serialize();var v=t[d];void 0===v&&(v=t[d]=[]),v.push({featureIndex:r,feature:y,intersectionZ:m})}}}}}},Bu.prototype.lookupSymbolFeatures=function(t,e,i,r,n,o){var a={};this.loadVTLayers();for(var s=Ni(r),l=0,u=t;l<u.length;l+=1){var c=u[l];this.loadMatchingFeature(a,e,i,c,s,n,o)}return a},Bu.prototype.hasLayer=function(t){for(var e=0,i=this.bucketLayerIDs;e<i.length;e+=1)for(var r=0,n=i[e];r<n.length;r+=1)if(t===n[r])return!0;return!1},Bu.prototype.getId=function(t,e){var i=t.id;if(this.promoteId){var r="string"==typeof this.promoteId?this.promoteId:this.promoteId[e];"boolean"==typeof(i=t.properties[r])&&(i=Number(i))}return i},_r("FeatureIndex",Bu,{omit:["rawTileData","sourceLayerCoder"]});var Uu=function(t,e){this.tileID=t,this.uid=c(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state="loading"};Uu.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e<D.now()||this.fadeEndTime&&e<this.fadeEndTime||(this.fadeEndTime=e)},Uu.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},Uu.prototype.loadVectorData=function(t,e,i){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",t){for(var r in t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,o){var a={};if(!o)return a;for(var e=function(){var t=l[s],i=t.layerIds.map(function(t){return o.getLayer(t)}).filter(Boolean);if(0!==i.length){t.layers=i,t.stateDependentLayerIds&&(t.stateDependentLayers=t.stateDependentLayerIds.map(function(e){return i.filter(function(t){return t.id===e})[0]}));for(var e=0,r=i;e<r.length;e+=1){var n=r[e];a[n.id]=t}}},s=0,l=t;s<l.length;s+=1)e();return a}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var n=this.buckets[r];if(n instanceof Jl){if(this.hasSymbolBuckets=!0,!i)break;n.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var o in this.buckets){var a=this.buckets[o];if(a instanceof Jl&&a.hasRTLText){this.hasRTLText=!0,qr.isLoading()||qr.isLoaded()||"deferred"!==jr()||Vr();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new Dn},Uu.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"},Uu.prototype.getBucket=function(t){return this.buckets[t.id]},Uu.prototype.upload=function(t){for(var e in this.buckets){var i=this.buckets[e];i.uploadPending()&&i.upload(t)}var r=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new fu(t,this.imageAtlas.image,r.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new fu(t,this.glyphAtlasImage,r.ALPHA),this.glyphAtlasImage=null)},Uu.prototype.prepare=function(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},Uu.prototype.queryRenderedFeatures=function(t,e,i,r,n,o,a,s,l){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:i,cameraQueryGeometry:r,scale:n,tileSize:this.tileSize,pixelPosMatrix:l,transform:a,params:o,queryPadding:this.queryPadding*s},t,e):{}},Uu.prototype.querySourceFeatures=function(t,e){var i=this.latestFeatureIndex;if(i&&i.rawTileData){var r=i.loadVTLayers(),n=e?e.sourceLayer:"",o=r._geojsonTileLayer||r[n];if(o)for(var a=Ni(e&&e.filter),s=this.tileID.canonical,l=s.z,u=s.x,c=s.y,p={z:l,x:u,y:c},h=0;h<o.length;h++){var d=o.feature(h);
vendor: 4,091 bytes, line 1
1if(a(new Zr(this.tileID.overscaledZ),d)){var f=i.getId(d,n),m=new Lu(d,l,u,c,f);m.tile=p,t.push(m)}}}},Uu.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},Uu.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},Uu.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var i=S(t.cacheControl);i["max-age"]&&(this.expirationTime=Date.now()+1e3*i["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var r=Date.now(),n=!1;if(this.expirationTime>r)n=!1;else if(e)if(this.expirationTime<e)n=!0;else{var o=this.expirationTime-e;o?this.expirationTime=r+Math.max(o,3e4):n=!0}else n=!0;n?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},Uu.prototype.getExpiryTimeout=function(){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)},Uu.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&0!==Object.keys(t).length){var i=this.latestFeatureIndex.loadVTLayers();for(var r in this.buckets){var n=this.buckets[r],o=n.layers[0].sourceLayer||"_geojsonTileLayer",a=i[o],s=t[o];a&&s&&0!==Object.keys(s).length&&(n.update(s,a,this.imageAtlas&&this.imageAtlas.patternPositions||{}),e&&e.style&&(this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(r).queryRadius(n))))}}},Uu.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},Uu.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<D.now()},Uu.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},Uu.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=D.now()+t},Uu.prototype.setDependencies=function(t,e){for(var i={},r=0,n=e;r<n.length;r+=1)i[n[r]]=!0;this.dependencies[t]=i},Uu.prototype.hasDependency=function(t,e){for(var i=0,r=t;i<r.length;i+=1){var n=r[i],o=this.dependencies[n];if(o)for(var a=0,s=e;a<s.length;a+=1)if(o[s[a]])return!0}return!1};var Nu=self.performance,ju=function(t){this._marks={start:[t.url,"start"].join("#"),end:[t.url,"end"].join("#"),measure:t.url.toString()},Nu.mark(this._marks.start)};ju.prototype.finish=function(){Nu.mark(this._marks.end);var t=Nu.getEntriesByName(this._marks.measure);return 0===t.length&&(Nu.measure(this._marks.measure,this._marks.start,this._marks.end),t=Nu.getEntriesByName(this._marks.measure),Nu.clearMarks(this._marks.start),Nu.clearMarks(this._marks.end),Nu.clearMeasures(this._marks.measure)),t},t.Actor=yu,t.AlphaImage=Jo,t.CanonicalTileID=Cu,t.CollisionBoxArray=Dn,t.Color=Jt,t.DEMData=Pu,t.DataConstantProperty=Qr,t.DictionaryCoder=Mu,t.EXTENT=wo,t.ErrorEvent=Ct,t.EvaluationParameters=Zr,t.Event=Et,t.Evented=At,t.FeatureIndex=Bu,t.FillBucket=Fa,t.FillExtrusionBucket=es,t.ImageAtlas=Qs,t.ImagePosition=Ys,t.LineBucket=cs,t.LngLat=_u,t.LngLatBounds=gu,t.MercatorCoordinate=Eu,t.ONE_EM=Ss,t.OverscaledTileID=Iu,t.Point=ct,t.Point$1=ct,t.Properties=on,t.Protobuf=Es,t.RGBAImage=Qo,t.RequestManager=j,t.RequestPerformance=ju,t.ResourceType=ft,t.SegmentVector=Hn,t.SourceFeatureState=Ru,t.StructArrayLayout1ui2=zn,t.StructArrayLayout2i4=hn,t.StructArrayLayout2ui4=In,t.StructArrayLayout3ui6=An,t.StructArrayLayout4i8=dn,t.SymbolBucket=Jl,t.Texture=fu,t.Tile=Uu,t.Transitionable=Gr,t.Uniform1f=oo,t.Uniform1i=no,t.Uniform2f=ao,t.Uniform3f=so,t.Uniform4f=lo,t.UniformColor=uo,t.UniformMatrix4f=po,t.UnwrappedTileID=Au,t.ValidationError=zt,t.WritingMode=tl,t.ZoomHistory=kr,t.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t},t.addDynamicAttributes=Wl,t.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,o=new Array(t.length),a=null;t.forEach(function(t,i){e(t,function(t,e){t&&(a=t),o[i]=e,0==--n&&r(a,o)})})},t.bezier=n,t.bindAll=d,t.browser=D,t.cacheEntryPossiblyAdded=function(t){++ht>ot&&(t.getActor().send("enforceCacheSizeLimit",nt),ht=0)}
1,t.clamp=l,t.clearTileCache=function(t){var e=self.caches.delete(rt);t&&e.catch(t).then(function(){return t()})},t.clone=function(t){var e=new jo(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=g,t.clone$2=function(t){var e=new jo(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.config=R,t.create=function(){var t=new jo(16);return jo!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new jo(9);return jo!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new jo(4);return jo!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=Ci,t.createLayout=cn,t.createStyleLayer=function(t){return"custom"===t.type?new su(t):new lu[t.type](t)},t.cross=function(t,e,i){var r=e[0],n=e[1],o=e[2],a=i[0],s=i[1],l=i[2];return t[0]=n*l-o*s,t[1]=o*a-r*l,t[2]=r*s-n*a,t},t.deepEqual=function t(e,i){if(Array.isArray(e)){if(!Array.isArray(i)||e.length!==i.length)return!1;for(var r=0;r<e.length;r++)if(!t(e[r],i[r]))return!1;return!0}if("object"!=typeof e||null===e||null===i)return e===i;if("object"!=typeof i)return!1;if(Object.keys(e).length!==Object.keys(i).length)return!1;for(var n in e)if(!t(e[n],i[n]))return!1;return!0},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=o,t.emitValidationErrors=hr,t.endsWith=m,t.enforceCacheSizeLimit=function(r){st(),K&&K.then(function(i){i.keys().then(function(t){for(var e=0;e<t.length-r;e++)i.delete(t[e])})})},t.evaluateSizeForFeature=vl,t.evaluateSizeForZoom=gl,t.evaluateVariableOffset=Fl,t.evented=Nr,t.extend=f,t.featureFilter=Ni,t.filterObject=v,t.fromRotation=function(t,e){var i=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=i,t[2]=0,t[3]=-i,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=pl,t.getAnchorJustification=Ul,t.getArrayBuffer=bt,t.getImage=St,t.getJSON=function(t,e){return xt(f(t,{type:"json"}),e)},t.getRTLTextPluginStatus=jr,t.getReferrer=yt,t.getVideo=function(t,e){var i,r,n=self.document.createElement("video");n.muted=!0,n.onloadstart=function(){e(null,n)};for(var o=0;o<t.length;o++){var a=self.document.createElement("source");i=t[o],r=void 0,(r=self.document.createElement("a")).href=i,(r.protocol!==self.document.location.protocol||r.host!==self.document.location.host)&&(n.crossOrigin="Anonymous"),a.src=t[o],n.appendChild(a)}return{cancel:function(){}}},t.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},t.invert=function(t,e){var i=e[0],r=e[1],n=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],p=e[9],h=e[10],d=e[11],f=e[12],m=e[13],y=e[14],v=e[15],g=i*s-r*a,_=i*l-n*a,x=i*u-o*a,b=r*l-n*s,w=r*u-o*s,S=n*u-o*l,T=c*m-p*f,k=c*y-h*f,E=c*v-d*f,C=p*y-h*m,A=p*v-d*m,I=h*v-d*y,z=g*I-_*A+x*C+b*E-w*k+S*T;return z?(z=1/z,t[0]=(s*I-l*A+u*C)*z,t[1]=(n*A-r*I-o*C)*z,t[2]=(m*S-y*w+v*b)*z,t[3]=(h*w-p*S-d*b)*z,t[4]=(l*E-a*I-u*k)*z,t[5]=(i*I-n*E+o*k)*z,t[6]=(y*x-f*S-v*_)*z,t[7]=(c*S-h*x+d*_)*z,t[8]=(a*A-s*E+u*T)*z,t[9]=(r*E-i*A-o*T)*z,t[10]=(f*w-m*x+v*g)*z,t[11]=(p*x-c*w-d*g)*z,t[12]=(s*k-a*C-l*T)*z,t[13]=(i*C-r*k+n*T)*z,t[14]=(m*_-f*b-y*g)*z,t[15]=(c*b-p*_+h*g)*z,t):null},t.isChar=Er,t.isMapboxURL=V,t.keysDifference=function(t,e){var i=[];for(var r in t)r in e||i.push(r);return i},t.makeRequest=xt,t.mapObject=y,t.mercatorXfromLng=wu,t.mercatorYfromLat=Su,t.mercatorZfromAltitude=Tu,t.multiply=function(t,e,i){var r=e[0],n=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],p=e[8],h=e[9],d=e[10],f=e[11],m=e[12],y=e[13],v=e[14],g=e[15],_=i[0],x=i[1],b=i[2],w=i[3];return t[0]=_*r+x*s+b*p+w*m,t[1]=_*n+x*l+b*h+w*y,t[2]=_*o+x*u+b*d+w*v,t[3]=_*a+x*c+b*f+w*g,_=i[4],x=i[5],b=i[6],w=i[7],t[4]=_*r+x*s+b*p+w*m,t[5]=_*n+x*l+b*h+w*y,t[6]=_*o+x*u+b*d+w*v,t[7]=_*a+x*c+b*f+w*g,_=i[8],x=i[9],b=i[10],w=i[11],t[8]=_*r+x*s+b*p+w*m,t[9]=_*n+x*l+b*h+w*y,t[10]=_*o+x*u+b*d+w*v,t[11]=_*a+x*c+b*f+w*g,_=i[12],x=i[13],b=i[14],w=i[15],t[12]=_*r+x*s+b*p+w*m,t[13]=_*n+x*l+b*h+w*y,t[14]=_*o+x*u+b*d+w*v,t[15]=_*a+x*c+b*f+w*g,t},t.mvt=Ya,t.normalize=function(t,e){var i=e[0],r=e[1],n=e[2],o=i*i+r*r+n*n;return 0<o&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t},t.number=ke,t.offscreenCanvasSupported=dt,t.ortho=function(t,e,
1i,r,n,o,a){var s=1/(e-i),l=1/(r-n),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+i)*s,t[13]=(n+r)*l,t[14]=(a+o)*u,t[15]=1,t},t.parseGlyphPBF=function(t){return new Es(t).readFields($s,[])},t.pbf=Es,t.performSymbolLayout=function(F,U,N,j,V,t){F.createArrays();var e=512*F.overscaling;F.tilePixelRatio=wo/e,F.compareText={},F.iconsNeedLinear=!1;var q=F.layers[0].layout,i=F.layers[0]._unevaluatedLayout._values,Z={};if("composite"===F.textSizeData.kind){var r=F.textSizeData,n=r.minZoom,o=r.maxZoom;Z.compositeTextSizes=[i["text-size"].possiblyEvaluate(new Zr(n)),i["text-size"].possiblyEvaluate(new Zr(o))]}if("composite"===F.iconSizeData.kind){var a=F.iconSizeData,s=a.minZoom,l=a.maxZoom;Z.compositeIconSizes=[i["icon-size"].possiblyEvaluate(new Zr(s)),i["icon-size"].possiblyEvaluate(new Zr(l))]}Z.layoutTextSize=i["text-size"].possiblyEvaluate(new Zr(F.zoom+1)),Z.layoutIconSize=i["icon-size"].possiblyEvaluate(new Zr(F.zoom+1)),Z.textMaxSize=i["text-size"].possiblyEvaluate(new Zr(18));for(var $=q.get("text-line-height")*Ss,H="map"===q.get("text-rotation-alignment")&&"point"!==q.get("symbol-placement"),G=q.get("text-keep-upright"),W=q.get("text-size"),u=function(){var t=K[X],e=q.get("text-font").evaluate(t,{}).join(","),i=W.evaluate(t,{}),r=Z.layoutTextSize.evaluate(t,{}),n=Z.layoutIconSize.evaluate(t,{}),o={horizontal:{},vertical:void 0},a=t.text,s=[0,0];if(a){var l=a.toString(),u=q.get("text-letter-spacing").evaluate(t,{})*Ss,c=function(t){for(var e=0,i=l;e<i.length;e+=1)if(r=i[e].charCodeAt(0),Er.Arabic(r)||Er["Arabic Supplement"](r)||Er["Arabic Extended-A"](r)||Er["Arabic Presentation Forms-A"](r)||Er["Arabic Presentation Forms-B"](r))return!1;var r;return!0}()?u:0,p=q.get("text-anchor").evaluate(t,{}),h=q.get("text-variable-anchor");if(!h){var d=q.get("text-radial-offset").evaluate(t,{});s=d?Fl(p,[d*Ss,Ol]):q.get("text-offset").evaluate(t,{}).map(function(t){return t*Ss})}var f=H?"center":q.get("text-justify").evaluate(t,{}),m=q.get("symbol-placement"),y="point"===m?q.get("text-max-width").evaluate(t,{})*Ss:0,v=function(){F.allowVerticalPlacement&&Cr(l)&&(o.vertical=nl(a,U,N,V,e,y,$,p,"left",c,s,tl.vertical,!0,m,r,i))};if(!H&&h){for(var g="auto"===f?h.map(function(t){return Ul(t)}):[f],_=!1,x=0;x<g.length;x++){var b=g[x];if(!o.horizontal[b])if(_)o.horizontal[b]=o.horizontal[0];else{var w=nl(a,U,N,V,e,y,$,"center",b,c,s,tl.horizontal,!1,m,r,i);w&&(_=1===(o.horizontal[b]=w).positionedLines.length)}}v()}else{"auto"===f&&(f=Ul(p));var S=nl(a,U,N,V,e,y,$,p,f,c,s,tl.horizontal,!1,m,r,i);S&&(o.horizontal[f]=S),v(),Cr(l)&&H&&G&&(o.vertical=nl(a,U,N,V,e,y,$,p,f,c,s,tl.vertical,!1,m,r,i))}}var T,k,E,C,A,I,z,P,M,L,D=void 0,R=!1;if(t.icon&&t.icon.name){var B=j[t.icon.name];B&&(T=V[t.icon.name],k=q.get("icon-offset").evaluate(t,{}),E=pl(q.get("icon-anchor").evaluate(t,{})),C=E.horizontalAlign,A=E.verticalAlign,I=k[0],z=k[1],P=I-T.displaySize[0]*C,M=P+T.displaySize[0],L=z-T.displaySize[1]*A,D={image:T,top:L,bottom:L+T.displaySize[1],left:P,right:M},R=B.sdf,void 0===F.sdfIcons?F.sdfIcons=B.sdf:F.sdfIcons!==B.sdf&&pt("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),B.pixelRatio!==F.pixelRatio?F.iconsNeedLinear=!0:0!==q.get("icon-rotate").constantOr(1)&&(F.iconsNeedLinear=!0))}var O=ql(o.horizontal)||o.vertical;F.iconsInText=!!O&&O.iconsInText,(O||D)&&function(i,r,n,o,a,s,t,e,l,u){var c=s.textMaxSize.evaluate(r,{});void 0===c&&(c=t);var p,h=i.layers[0].layout,d=h.get("icon-offset").evaluate(r,{}),f=ql(n.horizontal),m=t/24,y=i.tilePixelRatio*m,v=i.tilePixelRatio*c/24,g=i.tilePixelRatio*e,_=i.tilePixelRatio*h.get("symbol-spacing"),x=h.get("text-padding")*i.tilePixelRatio,b=h.get("icon-padding")*i.tilePixelRatio,w=h.get("text-max-angle")/180*Math.PI,S="map"===h.get("text-rotation-alignment")&&"point"!==h.get("symbol-placement"),T="map"===h.get("icon-rotation-alignment")&&"point"!==h.get("symbol-placement"),k=h.get("symbol-placement"),E=_/2,C=h.get("icon-text-fit");o&&"none"!==C&&(i.allowVerticalPlacement&&n.vertical&&(p=dl(o,n.vertical,C,h.get("icon-text-fit-padding"),d,m)),f&&(o=dl(o,f,C,h.get("icon-text-fit-padding"),d,m)));var A,I,z,P,M,L,D,R,B,O,F,U,N,j=function(t,e){e.x<0||e.x>=wo||e.y<0||e.y>
1=wo||function(t,e,i,r,n,o,a,s,l,u,c,p,h,d,f,m,y,v,g,_,x,b,w){var S,T,k,E,C,A=t.addToLineVertexArray(e,i),I=0,z=0,P=0,M=0,L=-1,D=-1,R={},B=Kn(""),O=0,F=0;if(F=void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(O=(S=s.layout.get("text-offset").evaluate(x,{}).map(function(t){return t*Ss}))[0],S[1]):(O=s.layout.get("text-radial-offset").evaluate(x,{})*Ss,Ol),t.allowVerticalPlacement&&r.vertical){var U=s.layout.get("text-rotate").evaluate(x,{})+90,N=r.vertical;E=new Pl(l,i,e,u,c,p,N,h,d,f,t.overscaling,U),a&&(C=new Pl(l,i,e,u,c,p,a,y,v,f,t.overscaling,U))}if(n){var j=s.layout.get("icon-rotate").evaluate(x,{}),V="none"!==s.layout.get("icon-text-fit"),q=El(n,j,w,V),Z=a?El(a,j,w,V):void 0;k=new Pl(l,i,e,u,c,p,n,y,v,!1,t.overscaling,j),I=4*q.length;var $=t.iconSizeData,H=null;"source"===$.kind?(H=[ml*s.layout.get("icon-size").evaluate(x,{})])[0]>jl&&pt(t.layerIds[0]+': Value for "icon-size" is >= '+Nl+'. Reduce your "icon-size".'):"composite"===$.kind&&((H=[ml*b.compositeIconSizes[0].evaluate(x,{}),ml*b.compositeIconSizes[1].evaluate(x,{})])[0]>jl||H[1]>jl)&&pt(t.layerIds[0]+': Value for "icon-size" is >= '+Nl+'. Reduce your "icon-size".'),t.addSymbols(t.icon,q,H,_,g,x,!1,e,A.lineStartIndex,A.lineLength,-1),L=t.icon.placedSymbolArray.length-1,Z&&(z=4*Z.length,t.addSymbols(t.icon,Z,H,_,g,x,tl.vertical,e,A.lineStartIndex,A.lineLength,-1),D=t.icon.placedSymbolArray.length-1)}for(var G in r.horizontal){var W=r.horizontal[G];if(!T){B=Kn(W.text);var X=s.layout.get("text-rotate").evaluate(x,{});T=new Pl(l,i,e,u,c,p,W,h,d,f,t.overscaling,X)}var K=1===W.positionedLines.length;if(P+=Vl(t,e,W,o,s,f,x,m,A,r.vertical?tl.horizontal:tl.horizontalOnly,K?Object.keys(r.horizontal):[G],R,L,b),K)break}r.vertical&&(M+=Vl(t,e,r.vertical,o,s,f,x,m,A,tl.vertical,["vertical"],R,D,b));var Y=T?T.boxStartIndex:t.collisionBoxArray.length,J=T?T.boxEndIndex:t.collisionBoxArray.length,Q=E?E.boxStartIndex:t.collisionBoxArray.length,tt=E?E.boxEndIndex:t.collisionBoxArray.length,et=k?k.boxStartIndex:t.collisionBoxArray.length,it=k?k.boxEndIndex:t.collisionBoxArray.length,rt=C?C.boxStartIndex:t.collisionBoxArray.length,nt=C?C.boxEndIndex:t.collisionBoxArray.length;t.glyphOffsetArray.length>=Jl.MAX_GLYPHS&&pt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==x.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,x.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,0<=R.right?R.right:-1,0<=R.center?R.center:-1,0<=R.left?R.left:-1,R.vertical||-1,L,D,B,Y,J,Q,tt,et,it,rt,nt,u,P,M,I,z,0,h,O,F)}(i,e,t,n,o,a,p,i.layers[0],i.collisionBoxArray,r.index,r.sourceLayerIndex,i.index,y,x,S,l,g,b,T,d,r,s,u)};if("line"===k)for(var V=0,q=function(t,e,i,r,n){for(var o=[],a=0;a<t.length;a++)for(var s=t[a],l=void 0,u=0;u<s.length-1;u++){var c=s[u],p=s[u+1];c.x<0&&p.x<0||(c.x<0?c=new ct(0,c.y+(p.y-c.y)*((0-c.x)/(p.x-c.x)))._round():p.x<0&&(p=new ct(0,c.y+(p.y-c.y)*((0-c.x)/(p.x-c.x)))._round()),c.y<0&&p.y<0||(c.y<0?c=new ct(c.x+(p.x-c.x)*((0-c.y)/(p.y-c.y)),0)._round():p.y<0&&(p=new ct(c.x+(p.x-c.x)*((0-c.y)/(p.y-c.y)),0)._round()),c.x>=r&&p.x>=r||(c.x>=r?c=new ct(r,c.y+(p.y-c.y)*((r-c.x)/(p.x-c.x)))._round():p.x>=r&&(p=new ct(r,c.y+(p.y-c.y)*((r-c.x)/(p.x-c.x)))._round()),c.y>=n&&p.y>=n||(c.y>=n?c=new ct(c.x+(p.x-c.x)*((n-c.y)/(p.y-c.y)),n)._round():p.y>=n&&(p=new ct(c.x+(p.x-c.x)*((n-c.y)/(p.y-c.y)),n)._round()),l&&c.equals(l[l.length-1])||(l=[c],o.push(l)),l.push(p)))))}return o}(r.geometry,0,0,wo,wo);V<q.length;V+=1)for(var Z=q[V],$=0,H=(A=Z,I=_,z=w,P=n.vertical||f,M=o,L=24,D=v,R=i.overscaling,B=wo,void 0,O=wl(P,L,D),F=Sl(P,M),U=F*D,N=0===A[0].x||A[0].x===B||0===A[0].y||A[0].y===B,I-U<I/4&&(I=U+I/4),function t(e,i,r,n,o,a,s,l,u){for(var c=a/2,p=bl(e),h=0,d=i-r,f=[],m=0;m<e.length-1;m++){for(var y=e[m],v=e[m+1],g=y.dist(v),_=v.angleTo(y);d+r<h+g;){var x=((d+=r)-h)/g,b=ke(y.x,v.x,x),w=ke(y.y,v.y,x);if(0<=b&&b<u&&0<=w&&w<u&&0<=d-c&&d+c<=p){var S=new fl(b,w,_,m);S._round(),n&&!xl(e,S,a,n,o)||f.push(S)}}h+=g}return l||f.length||s||(f=t(e,h/2,r,n,o,a,s,!0,u)),f}(A,N?I/2*R%I:(F/2+2*L)*D*R%I,I,O,z,U,N,!1,B));$<H.length;$+=1){var G=H[$];f&&Zl(i,f.text,E,G)||j(Z,G)}else if("line-center"===k)for(var W=0,X=r.geometry;W<X.length;W+=1){var K=X[W];
vendor: 6,931 bytes, line 1
1if(1<K.length){var Y=Tl(K,w,n.vertical||f,o,24,v);Y&&j(K,Y)}}else if("Polygon"===r.type)for(var J=0,Q=Da(r.geometry,0);J<Q.length;J+=1){var tt=Q[J],et=Dl(tt,16);j(tt[0],new fl(et.x,et.y,0))}else if("LineString"===r.type)for(var it=0,rt=r.geometry;it<rt.length;it+=1){var nt=rt[it];j(nt,new fl(nt[0].x,nt[0].y,0))}else if("Point"===r.type)for(var ot=0,at=r.geometry;ot<at.length;ot+=1)for(var st=0,lt=at[ot];st<lt.length;st+=1){var ut=lt[st];j([ut],new fl(ut.x,ut.y,0))}}(F,t,o,D,j,Z,r,n,s,R)},X=0,K=F.features;X<K.length;X+=1)u();t&&F.generateCollisionDebugBuffers()},t.perspective=function(t,e,i,r,n){var o,a=1/Math.tan(e/2);return t[0]=a/i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=n&&n!==1/0?(o=1/(r-n),t[10]=(n+r)*o,t[14]=2*n*r*o):(t[10]=-1,t[14]=-2*r),t},t.pick=function(t,e){for(var i={},r=0;r<e.length;r++){var n=e[r];n in t&&(i[n]=t[n])}return i},t.plugin=qr,t.polygonIntersectsPolygon=Co,t.postMapLoadEvent=it,t.postTurnstileEvent=tt,t.potpack=Xs,t.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],t.register=_r,t.registerForPluginStateChange=function(t){return t({pluginStatus:Br,pluginURL:Or}),Nr.on("pluginStateChange",t),t},t.rotate=function(t,e,i){var r=e[0],n=e[1],o=e[2],a=e[3],s=Math.sin(i),l=Math.cos(i);return t[0]=r*l+o*s,t[1]=n*l+a*s,t[2]=r*-s+o*l,t[3]=n*-s+a*l,t},t.rotateX=function(t,e,i){var r=Math.sin(i),n=Math.cos(i),o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],c=e[9],p=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*n+u*r,t[5]=a*n+c*r,t[6]=s*n+p*r,t[7]=l*n+h*r,t[8]=u*n-o*r,t[9]=c*n-a*r,t[10]=p*n-s*r,t[11]=h*n-l*r,t},t.rotateZ=function(t,e,i){var r=Math.sin(i),n=Math.cos(i),o=e[0],a=e[1],s=e[2],l=e[3],u=e[4],c=e[5],p=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*n+u*r,t[1]=a*n+c*r,t[2]=s*n+p*r,t[3]=l*n+h*r,t[4]=u*n-o*r,t[5]=c*n-a*r,t[6]=p*n-s*r,t[7]=h*n-l*r,t},t.scale=function(t,e,i){var r=i[0],n=i[1],o=i[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t},t.scale$2=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t},t.setCacheLimits=function(t,e){nt=t,ot=e},t.setRTLTextPlugin=function(t,e,i){if(void 0===i&&(i=!1),Br===Mr||Br===Lr||Br===Dr)throw new Error("setRTLTextPlugin cannot be called multiple times.");Or=D.resolveURL(t),Br=Mr,Rr=e,Ur(),i||Vr()},t.sphericalToCartesian=function(t){var e=t[0],i=t[1],r=t[2];return i+=90,i*=Math.PI/180,r*=Math.PI/180,{x:e*Math.cos(i)*Math.sin(r),y:e*Math.sin(i)*Math.sin(r),z:e*Math.cos(r)}},t.sqrLen=function(t){var e=t[0],i=t[1];return e*e+i*i},t.styleSpec=It,t.sub=function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t},t.symbolSize=_l,t.transformMat3=function(t,e,i){var r=e[0],n=e[1],o=e[2];return t[0]=r*i[0]+n*i[3]+o*i[6],t[1]=r*i[1]+n*i[4]+o*i[7],t[2]=r*i[2]+n*i[5]+o*i[8],t},t.transformMat4=Zo,t.translate=function(t,e,i){var r,n,o,a,s,l,u,c,p,h,d,f,m=i[0],y=i[1],v=i[2];return e===t?(t[12]=e[0]*m+e[4]*y+e[8]*v+e[12],t[13]=e[1]*m+e[5]*y+e[9]*v+e[13],t[14]=e[2]*m+e[6]*y+e[10]*v+e[14],t[15]=e[3]*m+e[7]*y+e[11]*v+e[15]):(r=e[0],n=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],p=e[8],h=e[9],d=e[10],f=e[11],t[0]=r,t[1]=n,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=p,t[9]=h,t[10]=d,t[11]=f,t[12]=r*m+s*y+p*v+e[12],t[13]=n*m+l*y+h*v+e[13],t[14]=o*m+u*y+d*v+e[14],t[15]=a*m+c*y+f*v+e[15]),t},t.triggerPluginCompletionEvent=Fr,t.uniqueId=c,t.validateCustomStyleLayer=function(t){var e=[],i=t.id;return void 0===i&&e.push({message:"layers."+i+': missing required property "id"'}),void 0===t.render&&e.push({message:"layers."+i+': missing required method "render"'}),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&e.push({message:"layers."+i+': property "renderingMode" must be either "2d" or "3d"'}),e},t.validateLight=ur,t.validateStyle=lr,t.values=function(t){var e=[];for(var i in t)e.push(t[i]);return e},t.vectorTile=Ya,t.version="1.8.1",t.warnOnce=pt,t.webpSupported=B,t.window=self,t.wrap=s}),t(0,function(z){"use strict";function l(t){var e=typeof t;if("number"===e||"boolean"===e||"string"===e||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var i="[",r=0,n=t;r<n.length;r+=1)i+=l(n[r])+",";return i+"]"}for(var o=Object.keys(t).sort(),a="{",s=0;s<o.length;s++)a+=JSON.stringify(o[s])+":"+l(t[o[s]])+",";return a+"}"}function g(t){for(var e="",i=0,r=z.refProperties;i<r.length;i+=1)e+="/"+l(t[r[i]]);return e}var i=function(t){this.keyCache={},t&&this.replace(t)};i.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},i.prototype.update=function(t,e){for(var i=this,r=0,n=t;r<n.length;r+=1){var o=n[r];this._layerConfigs[o.id]=o;var a=this._layers[o.id]=z.createStyleLayer(o);a._featureFilter=z.featureFilter(a.filter),this.keyCache[o.id]&&delete this.keyCache[o.id]}for(var s=0,l=e;s<l.length;s+=1){var u=l[s];delete this.keyCache[u],delete this._layerConfigs[u],delete this._layers[u]}this.familiesBySource={};for(var c=0,p=function(t,e){for(var i={},r=0;r<t.length;r++){var n=e&&e[t[r].id]||g(t[r]);e&&(e[t[r].id]=n);var o=i[n];o||(o=i[n]=[]),o.push(t[r])}var a=[];for(var s in i)a.push(i[s]);return a}(z.values(this._layerConfigs),this.keyCache);c<p.length;c+=1){var h=p[c].map(function(t){return i._layers[t.id]}),d=h[0];if("none"!==d.visibility){var f=d.source||"",m=this.familiesBySource[f];m||(m=this.familiesBySource[f]={});var y=d.sourceLayer||"_geojsonTileLayer",v=m[y];v||(v=m[y]=[]),v.push(h)}}};var P=function(t){var e={},i=[];for(var r in t){var n=t[r],o=e[r]={};for(var a in n){var s=n[+a];if(s&&0!==s.bitmap.width&&0!==s.bitmap.height){var l={x:0,y:0,w:s.bitmap.width+2,h:s.bitmap.height+2};i.push(l),o[a]={rect:l,metrics:s.metrics}}}}var u=z.potpack(i),c=u.w,p=u.h,h=new z.AlphaImage({width:c||1,height:p||1});for(var d in t){var f=t[d];for(var m in f){var y=f[+m];if(y&&0!==y.bitmap.width&&0!==y.bitmap.height){var v=e[d][m].rect;z.AlphaImage.copy(y.bitmap,h,{x:0,y:0},{x:v.x+1,y:v.y+1},y.bitmap)}}}this.image=h,this.positions=e};z.register("GlyphAtlas",P);var e=function(t){this.tileID=new z.OverscaledTileID(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId};function M(t,e,i){for(var r=new z.EvaluationParameters(e),n=0,o=t;n<o.length;n+=1)o[n].recalculate(r,i)}
1function n(t,n){var e=z.getArrayBuffer(t.request,function(t,e,i,r){t?n(t):e&&n(null,{vectorTile:new z.vectorTile.VectorTile(new z.pbf(e)),rawData:e,cacheControl:i,expires:r})});return function(){e.cancel(),n()}}e.prototype.parse=function(t,e,n,i,o){var r=this;this.status="parsing",this.data=t,this.collisionBoxArray=new z.CollisionBoxArray;var a=new z.DictionaryCoder(Object.keys(t.layers).sort()),s=new z.FeatureIndex(this.tileID,this.promoteId);s.bucketLayerIDs=[];var l,u,c,p,h={},d={featureIndex:s,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:n},f=e.familiesBySource[this.source];for(var m in f){var y=t.layers[m];if(y){1===y.version&&z.warnOnce('Vector tile source "'+this.source+'" layer "'+m+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var v=a.encode(m),g=[],_=0;_<y.length;_++){var x=y.feature(_),b=s.getId(x,m);g.push({feature:x,id:b,index:_,sourceLayerIndex:v})}for(var w=0,S=f[m];w<S.length;w+=1){var T=S[w],k=T[0];k.minzoom&&this.zoom<Math.floor(k.minzoom)||k.maxzoom&&this.zoom>=k.maxzoom||"none"!==k.visibility&&(M(T,this.zoom,n),(h[k.id]=k.createBucket({index:s.bucketLayerIDs.length,layers:T,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:v,sourceID:this.source})).populate(g,d),s.bucketLayerIDs.push(T.map(function(t){return t.id})))}}}var E=z.mapObject(d.glyphDependencies,function(t){return Object.keys(t).map(Number)});Object.keys(E).length?i.send("getGlyphs",{uid:this.uid,stacks:E},function(t,e){l||(l=t,u=e,I.call(r))}):u={};var C=Object.keys(d.iconDependencies);C.length?i.send("getImages",{icons:C,source:this.source,tileID:this.tileID,type:"icons"},function(t,e){l||(l=t,c=e,I.call(r))}):c={};var A=Object.keys(d.patternDependencies);function I(){if(l)return o(l);if(u&&c&&p){var t=new P(u),e=new z.ImageAtlas(c,p);for(var i in h){var r=h[i];r instanceof z.SymbolBucket?(M(r.layers,this.zoom,n),z.performSymbolLayout(r,u,t.positions,c,e.iconPositions,this.showCollisionBoxes)):r.hasPattern&&(r instanceof z.LineBucket||r instanceof z.FillBucket||r instanceof z.FillExtrusionBucket)&&(M(r.layers,this.zoom,n),r.addFeatures(d,e.patternPositions))}this.status="done",o(null,{buckets:z.values(h).filter(function(t){return!t.isEmpty()}),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,imageAtlas:e,glyphMap:this.returnDependencies?u:null,iconMap:this.returnDependencies?c:null,glyphPositions:this.returnDependencies?t.positions:null})}}A.length?i.send("getImages",{icons:A,source:this.source,tileID:this.tileID,type:"patterns"},function(t,e){l||(l=t,p=e,I.call(r))}):p={},I.call(this)};var r=function(t,e,i,r){this.actor=t,this.layerIndex=e,this.availableImages=i,this.loadVectorData=r||n,this.loading={},this.loaded={}};r.prototype.loadTile=function(t,a){var s=this,l=t.uid;this.loading||(this.loading={});var u=!!(t&&t.request&&t.request.collectResourceTiming)&&new z.RequestPerformance(t.request),c=this.loading[l]=new e(t);c.abort=this.loadVectorData(t,function(t,e){if(delete s.loading[l],t||!e)return c.status="done",s.loaded[l]=c,a(t);var i=e.rawData,r={};e.expires&&(r.expires=e.expires),e.cacheControl&&(r.cacheControl=e.cacheControl);var n={};if(u){var o=u.finish();o&&(n.resourceTiming=JSON.parse(JSON.stringify(o)))}c.vectorTile=e.vectorTile,c.parse(e.vectorTile,s.layerIndex,s.availableImages,s.actor,function(t,e){if(t||!e)return a(t);a(null,z.extend({rawTileData:i.slice(0)},e,r,n))}),s.loaded=s.loaded||{},s.loaded[l]=c})},r.prototype.reloadTile=function(t,r){var n=this,e=this.loaded,i=t.uid,o=this;if(e&&e[i]){var a=e[i];a.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,e){var i=a.reloadCallback;i&&(delete a.reloadCallback,a.parse(a.vectorTile,o.layerIndex,n.availableImages,o.actor,i)),r(t,e)};"parsing"===a.status?a.reloadCallback=s:"done"===a.status&&(a.vectorTile?a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},r.prototype.abortTile=function(t,e){var i=this.loading,r=t.uid;i&&i[r]&&i[r].abort&&(i[r].abort(),delete i[r]),e()},r.prototype.removeTile=function(t,e){var i=this.loaded,r=t.uid;i&&i[r]&&delete i[r],e()};var s=z.window.ImageBitmap,o=function(){this.loaded={}};o.prototype.loadTile=function(t,e){var i=t.uid,r=t.encoding,n=t.rawImageData,o=s&&n instanceof s?this.getImageData(n):n,a=new z.DEMData(i,o,r);this.loaded=this.loaded||{},e(null,this.loaded[i]=a)},o.prototype.getImageData=function(t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(t.width,t.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=t.width,this.offscreenCanvas.height=t.height,this.offscreenCanvasContext.drawImage(t,0,0,t.width,t.height);var e=this.offscreenCanvasContext.getImageData(-1,-1,t.width+2,t.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new z.RGBAImage({width:e.width,height:e.height},e.data)},o.prototype.removeTile=function(t){var e=this.loaded,i=t.uid;e&&e[i]&&delete e[i]};var u={RADIUS:6378137,FLATTENING:1/298.257223563,POLAR_RADIUS:6356752.3142};function a(t){var e=0;if(t&&0<t.length){e+=Math.abs(c(t[0]));for(var i=1;i<t.length;i++)e-=Math.abs(c(t[i]))}return e}function c(t){var e,i,r,n,o,a,s=0,l=t.length;if(2<l){for(a=0;a<l;a++)o=a===l-2?(r=l-2,n=l-1,0):a===l-1?(r=l-1,n=0,1):(n=(r=a)+1,a+2),e=t[r],i=t[n],s+=(p(t[o][0])-p(e[0]))*Math.sin(p(i[1]));s=s*u.RADIUS*u.RADIUS/2}return s}function p(t){return t*Math.PI/180}var h={geometry:function t(e){var i,r=0;switch(e.type){case"Polygon":return a(e.coordinates);case"MultiPolygon":for(i=0;i<e.coordinates.length;i++)r+=a(e.coordinates[i]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(i=0;i<e.geometries.length;i++)r+=t(e.geometries[i]);return r}},ring:c};function d(e,i){return function(t){return e(t,i)}}function f(t,e){e=!!e,t[0]=m(t[0],e);for(var i=1;i<t.length;i++)t[i]=m(t[i],!e);return t}function m(t,e){return i=t,0<=h.ring(i)===e?t:t.reverse();var i}var y=z.vectorTile.VectorTileFeature.prototype.toGeoJSON,v=function(t){this._feature=t,this.extent=z.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=p
vendor: 8,643 bytes, line 1
1arseInt(t.id,10))};v.prototype.loadGeometry=function(){if(1===this._feature.type){for(var t=[],e=0,i=this._feature.geometry;e<i.length;e+=1){var r=i[e];t.push([new z.Point$1(r[0],r[1])])}return t}for(var n=[],o=0,a=this._feature.geometry;o<a.length;o+=1){for(var s=[],l=0,u=a[o];l<u.length;l+=1){var c=u[l];s.push(new z.Point$1(c[0],c[1]))}n.push(s)}return n},v.prototype.toGeoJSON=function(t,e,i){return y.call(this,t,e,i)};var _=function(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=z.EXTENT,this.length=t.length,this._features=t};_.prototype.feature=function(t){return new v(this._features[t])};var t=z.vectorTile.VectorTileFeature,x=b;function b(t,e){this.options=e||{},this.features=t,this.length=t.length}function w(t,e){this.id="number"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}b.prototype.feature=function(t){return new w(this.features[t],this.options.extent)},w.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var e=0;e<t.length;e++){for(var i=t[e],r=[],n=0;n<i.length;n++)r.push(new z.Point$1(i[n][0],i[n][1]));this.geometry.push(r)}return this.geometry},w.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,i=-1/0,r=1/0,n=-1/0,o=0;o<t.length;o++)for(var a=t[o],s=0;s<a.length;s++){var l=a[s];e=Math.min(e,l.x),i=Math.max(i,l.x),r=Math.min(r,l.y),n=Math.max(n,l.y)}return[e,r,i,n]},w.prototype.toGeoJSON=t.prototype.toGeoJSON;var S=E,T=E,k=x;function E(t){var e=new z.pbf;return function(t,e){for(var i in t.layers)e.writeMessage(3,C,t.layers[i])}(t,e),e.finish()}function C(t,e){var i;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(i=0;i<t.length;i++)r.feature=t.feature(i),e.writeMessage(2,A,r);var n=r.keys;for(i=0;i<n.length;i++)e.writeStringField(3,n[i]);var o=r.values;for(i=0;i<o.length;i++)e.writeMessage(4,B,o[i])}function A(t,e){var i=t.feature;void 0!==i.id&&e.writeVarintField(1,i.id),e.writeMessage(2,I,t),e.writeVarintField(3,i.type),e.writeMessage(4,R,i)}function I(t,e){var i=t.feature,r=t.keys,n=t.values,o=t.keycache,a=t.valuecache;for(var s in i.properties){var l=o[s];void 0===l&&(r.push(s),l=r.length-1,o[s]=l),e.writeVarint(l);var u=i.properties[s],c=typeof u;"string"!==c&&"boolean"!==c&&"number"!==c&&(u=JSON.stringify(u));var p=c+":"+u,h=a[p];void 0===h&&(n.push(u),h=n.length-1,a[p]=h),e.writeVarint(h)}}function L(t,e){return(e<<3)+(7&t)}function D(t){return t<<1^t>>31}function R(t,e){for(var i=t.loadGeometry(),r=t.type,n=0,o=0,a=i.length,s=0;s<a;s++){var l=i[s],u=1;1===r&&(u=l.length),e.writeVarint(L(1,u));for(var c=3===r?l.length-1:l.length,p=0;p<c;p++){1===p&&1!==r&&e.writeVarint(L(2,c-1));var h=l[p].x-n,d=l[p].y-o;e.writeVarint(D(h)),e.writeVarint(D(d)),n+=h,o+=d}3===r&&e.writeVarint(L(7,1))}}function B(t,e){var i=typeof t;"string"===i?e.writeStringField(1,t):"boolean"===i?e.writeBooleanField(7,t):"number"===i&&(t%1!=0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function O(t,e,i,r){F(t,i,r),F(e,2*i,2*r),F(e,2*i+1,2*r+1)}function F(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function U(t,e,i,r){var n=t-i,o=e-r;return n*n+o*o}S.fromVectorTileJs=T,S.fromGeojsonVt=function(t,e){e=e||{};var i={};for(var r in t)i[r]=new x(t[r].features,e),i[r].name=r,i[r].version=e.version,i[r].extent=e.extent;return E({layers:i})},S.GeoJSONWrapper=k;var N=function(t){return t[0]},j=function(t){return t[1]},V=function(t,e,i,r,n){void 0===e&&(e=N),void 0===i&&(i=j),void 0===r&&(r=64),void 0===n&&(n=Float64Array),this.nodeSize=r;for(var o=(this.points=t).length<65536?Uint16Array:Uint32Array,a=this.ids=new o(t.length),s=this.coords=new n(2*t.length),l=0;l<t.length;l++)s[2*(a[l]=l)]=e(t[l]),s[2*l+1]=i(t[l]);!function t(e,i,r,n,o,a){if(!(o-n<=r)){var s=n+o>>1;!function t(e,i,r,n,o,a){for(;n<o;){if(600<o-n){var s=o-n+1,l=r-n+1,u=Math.log(s),c=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);t(e,i,r,Math.max(n,Math.floor(r-l*c/s+p)),Math.min(o,Math.floor(r+(s-l)*c/s+p)),a)}var h=i[2*r+a],d=n,f=o;for(O(e,i,n,r),i[2*o+a]>h&&O(e,i,n,o);d<f;){for(O(e,i,d,f),d++,f--;i[2*d+a]<h;)d++;for(;i[2*f+a]>h;)f--}i[2*n+a]===h?O(e,i,n,f):O(e,i,++f,o),f<=r&&(n=f+1),r<=f&&(o=f-1)}}(e,i,s,n,o,a%2),t(e,i,r,n,s-1,a+1),t(e,i,r,s+1,o,a+1)}}(a,s,r,0,a.length-1,0)};V.prototype.range=function(t,e,i,r){return function(t,e,i,r,n,o,a){for(var s,l,u=[0,t.length-1,0],c=[];u.length;){var p=u.pop(),h=u.pop(),d=u.pop();if(h-d<=a)for(var f=d;f<=h;f++)s=e[2*f],l=e[2*f+1],i<=s&&s<=n&&r<=l&&l<=o&&c.push(t[f]);else{var m=Math.floor((d+h)/2);s=e[2*m],l=e[2*m+1],i<=s&&s<=n&&r<=l&&l<=o&&c.push(t[m]);var y=(p+1)%2;(0===p?i<=s:r<=l)&&(u.push(d),u.push(m-1),u.push(y)),(0===p?s<=n:l<=o)&&(u.push(m+1),u.push(h),u.push(y))}}return c}(this.ids,this.coords,t,e,i,r,this.nodeSize)};var q={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!(V.prototype.within=function(t,e,i){return function(t,e,i,r,n,o){for(var a=[0,t.length-1,0],s=[],l=n*n;a.length;){var u=a.pop(),c=a.pop(),p=a.pop();if(c-p<=o)for(var h=p;h<=c;h++)U(e[2*h],e[2*h+1],i,r)<=l&&s.push(t[h]);else{var d=Math.floor((p+c)/2),f=e[2*d],m=e[2*d+1];U(f,m,i,r)<=l&&s.push(t[d]);var y=(u+1)%2;(0===u?i-n<=f:r-n<=m)&&(a.push(p),a.push(d-1),a.push(y)),(0===u?f<=i+n:m<=r+n)&&(a.push(d+1),a.push(c),a.push(y))}}return s}(this.ids,this.coords,t,e,i,this.nodeSize)}),generateId:!1,reduce:null,map:function(t){return t}},Z=function(t){this.options=X(Object.create(q),t),this.trees=new Array(this.options.maxZoom+1)};function $(t){return{type:"Feature",id:t.id,properties:H(t),geometry:{type:"Point",coordinates:[(r=t.x,360*(r-.5)),(e=t.y,i=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(i))/Math.PI-90)]}};var e,i,r}function H(t){var e=t.numPoints,i=1e4<=e?Math.round(e/1e3)+"k":1e3<=e?Math.round(e/100)/10+"k":e;return X(X({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:i})}function G(t){return t/360+.5}function W(t){var e=Math.sin(t*Math.PI/180),i=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return i<0?0:1<i?1:i}function X(t,e){for(var i in e)t[i]=e[i];return t}function K(t){return t.x}function Y(t){return t.y}function J(t,e,i,r,n,o){var a=n-i,s=o-r;if(0!==a||0!==s){var l=((t-i)*a+(e-r)*s)/(a*a+s*s);1<l?(i=n,r=o):0<l&&(i+=a*l,r+=s*l)}return(a=t-i)*a+(s=e-r)*s}function Q(t,e,i,r){var n={id:void 0===t?null:t,type:e,geometry:i,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,i=t.type;if("Point"===i||"MultiPoint"===i||"LineString"===i)tt(t,e);else if("Polygon"===i||"MultiLineString"===i)for(var r=0;r<e.length;r++)tt(t,e[r]);else if("MultiPolygon"===i)for(r=0;r<e.length;r++)for(var n=0;n<e[r].length;n++)tt(t,e[r][n])}(n),n}function tt(t,e){for(var i=0;i<e.length;i+=3)t.minX=Math.min(t.minX,e[i]),t.minY=Math.min(t.minY,e[i+1]),t.maxX=Math.max(t.maxX,e[i]),t.maxY=Math.max(t.maxY,e[i+1])}function et(t,e,i,r){if(e.geometry){var n=e.geometry.coordinates,o=e.geometry.type,a=Math.pow(i.tolerance/((1<<i.maxZoom)*i.extent),2),s=[],l=e.id;if(i.promoteId?l=e.properties[i.promoteId]:i.generateId&&(l=r||0),"Point"===o)it(n,s);else if("MultiPoint"===o)for(var u=0;u<n.length;u++)it(n[u],s);else if("LineString"===o)rt(n,s,a,!1);else if("MultiLineString"===o){if(i.lineMetrics){for(u=0;u<n.length;u++)s=[],rt(n[u],s,a,!1),t.push(Q(l,"LineString",s,e.properties));return}nt(n,s,a,!1)}else if("Polygon"===o)nt(n,s,a,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"!==o)throw new Error("Input data is not a valid GeoJSON object.");for(u=0;u<e.geometry.geometries.length;u++)et(t,{id:l,geometry:e.geometry.geometries[u],properties:e.properties},i,r);return}for(u=0;u<n.length;u++){var c=[];nt(n[u],c,a,!0),s.push(c)}}t.push(Q(l,o,s,e.properties))}}function it(t,e){e.push(ot(t[0])),e.push(at(t[1])),e.push(0)}function rt(t,e,i,r){for(var n,o,a=0,s=0;s<t.length;s++){var l=ot(t[s][0]),u=at(t[s][1]);e.push(l),e.push(u),e.push(0),0<s&&(a+=r?(n*u-l*o)/2:Math.sqrt(Math.pow(l-n,2)+Math.pow(u-o,2))),n=l,o=u}var c=e.length-3;e[2]=1,function t(e,i,r,n){for(var o,a=n,s=r-i>>1,l=r-i,u=e[i],c=e[i+1],p=e[r],h=e[r+1],d=i+3;d<r;d+=3){var f=J(e[d],e[d+1],u,c,p,h);if(a<f)o=d,a=f;else if(f===a){var m=Math.abs(d-s);m<l&&(o=d,l=m)}}n<a&&(3<o-i&&t(e,i,o,n),e[o+2]=a,3<r-o&&t(e,o,r,n))}(e,0,c,i),e[c+2]=1,e.size=Math.abs(a),e.start=0,e.end=e.size}function nt(t,e,i,r){for(var n=0;n<t.length;n++){var o=[];rt(t[n],o,i,r),e.push(o)}}function ot(t){return t/360+.5}function at(t){var e=Math.sin(t*Math.PI/180),i=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return i<0?0:1<i?1:i}
vendor: 7,780 bytes, line 1
1function st(t,e,i,r,n,o,a,s){if(r/=e,o>=(i/=e)&&a<r)return t;if(a<i||r<=o)return null;for(var l=[],u=0;u<t.length;u++){var c=t[u],p=c.geometry,h=c.type,d=0===n?c.minX:c.minY,f=0===n?c.maxX:c.maxY;if(i<=d&&f<r)l.push(c);else if(!(f<i||r<=d)){var m=[];if("Point"===h||"MultiPoint"===h)lt(p,m,i,r,n);else if("LineString"===h)ut(p,m,i,r,n,!1,s.lineMetrics);else if("MultiLineString"===h)pt(p,m,i,r,n,!1);else if("Polygon"===h)pt(p,m,i,r,n,!0);else if("MultiPolygon"===h)for(var y=0;y<p.length;y++){var v=[];pt(p[y],v,i,r,n,!0),v.length&&m.push(v)}if(m.length){if(s.lineMetrics&&"LineString"===h){for(y=0;y<m.length;y++)l.push(Q(c.id,h,m[y],c.tags));continue}"LineString"!==h&&"MultiLineString"!==h||(1===m.length?(h="LineString",m=m[0]):h="MultiLineString"),"Point"!==h&&"MultiPoint"!==h||(h=3===m.length?"Point":"MultiPoint"),l.push(Q(c.id,h,m,c.tags))}}}return l.length?l:null}function lt(t,e,i,r,n){for(var o=0;o<t.length;o+=3){var a=t[o+n];i<=a&&a<=r&&(e.push(t[o]),e.push(t[o+1]),e.push(t[o+2]))}}function ut(t,e,i,r,n,o,a){for(var s,l,u=ct(t),c=0===n?dt:ft,p=t.start,h=0;h<t.length-3;h+=3){var d=t[h],f=t[h+1],m=t[h+2],y=t[h+3],v=t[h+4],g=0===n?d:f,_=0===n?y:v,x=!1;a&&(s=Math.sqrt(Math.pow(d-y,2)+Math.pow(f-v,2))),g<i?i<_&&(l=c(u,d,f,y,v,i),a&&(u.start=p+s*l)):r<g?_<r&&(l=c(u,d,f,y,v,r),a&&(u.start=p+s*l)):ht(u,d,f,m),_<i&&i<=g&&(l=c(u,d,f,y,v,i),x=!0),r<_&&g<=r&&(l=c(u,d,f,y,v,r),x=!0),!o&&x&&(a&&(u.end=p+s*l),e.push(u),u=ct(t)),a&&(p+=s)}var b=t.length-3;d=t[b],f=t[b+1],m=t[b+2],(g=0===n?d:f)>=i&&g<=r&&ht(u,d,f,m),b=u.length-3,o&&3<=b&&(u[b]!==u[0]||u[b+1]!==u[1])&&ht(u,u[0],u[1],u[2]),u.length&&e.push(u)}function ct(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function pt(t,e,i,r,n,o){for(var a=0;a<t.length;a++)ut(t[a],e,i,r,n,o,!1)}function ht(t,e,i,r){t.push(e),t.push(i),t.push(r)}function dt(t,e,i,r,n,o){var a=(o-e)/(r-e);return t.push(o),t.push(i+(n-i)*a),t.push(1),a}function ft(t,e,i,r,n,o){var a=(o-i)/(n-i);return t.push(e+(r-e)*a),t.push(o),t.push(1),a}function mt(t,e){for(var i=[],r=0;r<t.length;r++){var n,o=t[r],a=o.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)n=yt(o.geometry,e);else if("MultiLineString"===a||"Polygon"===a){n=[];for(var s=0;s<o.geometry.length;s++)n.push(yt(o.geometry[s],e))}else if("MultiPolygon"===a)for(n=[],s=0;s<o.geometry.length;s++){for(var l=[],u=0;u<o.geometry[s].length;u++)l.push(yt(o.geometry[s][u],e));n.push(l)}i.push(Q(o.id,a,n,o.tags))}return i}function yt(t,e){var i=[];i.size=t.size,void 0!==t.start&&(i.start=t.start,i.end=t.end);for(var r=0;r<t.length;r+=3)i.push(t[r]+e,t[r+1],t[r+2]);return i}function vt(t,e){if(t.transformed)return t;var i,r,n,o=1<<t.z,a=t.x,s=t.y;for(i=0;i<t.features.length;i++){var l=t.features[i],u=l.geometry,c=l.type;if(l.geometry=[],1===c)for(r=0;r<u.length;r+=2)l.geometry.push(gt(u[r],u[r+1],e,o,a,s));else for(r=0;r<u.length;r++){var p=[];for(n=0;n<u[r].length;n+=2)p.push(gt(u[r][n],u[r][n+1],e,o,a,s));l.geometry.push(p)}}return t.transformed=!0,t}function gt(t,e,i,r,n,o){return[Math.round(i*(t*r-n)),Math.round(i*(e*r-o))]}function _t(t,e,i,r,n){for(var o=e===n.maxZoom?0:n.tolerance/((1<<e)*n.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:i,y:r,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<t.length;s++){a.numFeatures++,xt(a,t[s],o,n);var l=t[s].minX,u=t[s].minY,c=t[s].maxX,p=t[s].maxY;l<a.minX&&(a.minX=l),u<a.minY&&(a.minY=u),c>a.maxX&&(a.maxX=c),p>a.maxY&&(a.maxY=p)}return a}function xt(t,e,i,r){var n=e.geometry,o=e.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s<n.length;s+=3)a.push(n[s]),a.push(n[s+1]),t.numPoints++,t.numSimplified++;else if("LineString"===o)bt(a,n,t,i,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(s=0;s<n.length;s++)bt(a,n[s],t,i,"Polygon"===o,0===s);else if("MultiPolygon"===o)for(var l=0;l<n.length;l++){var u=n[l];for(s=0;s<u.length;s++)bt(a,u[s],t,i,!0,0===s)}if(a.length){var c=e.tags||null;if("LineString"===o&&r.lineMetrics){for(var p in c={},e.tags)c[p]=e.tags[p];c.mapbox_clip_start=n.start/n.size,c.mapbox_clip_end=n.end/n.size}var h={geometry:a,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:c};null!==e.id&&(h.id=e.id),t.features.push(h)}}function bt(t,e,i,r,n,o){var a=r*r;if(0<r&&e.size<(n?a:r))i.numPoints+=e.length/3;else{for(var s=[],l=0;l<e.length;l+=3)(0===r||e[l+2]>a)&&(i.numSimplified++,s.push(e[l]),s.push(e[l+1])),i.numPoints++;n&&function(t,e){for(var i=0,r=0,n=t.length,o=n-2;r<n;o=r,r+=2)i+=(t[r]-t[o])*(t[r+1]+t[o+1]);if(0<i===e)for(r=0,n=t.length;r<n/2;r+=2){var a=t[r],s=t[r+1];t[r]=t[n-2-r],t[r+1]=t[n-1-r],t[n-2-r]=a,t[n-1-r]=s}}(s,o),t.push(s)}}function wt(t,e){var i=(e=this.options=function(t,e){for(var i in e)t[i]=e[i];return t}(Object.create(this.options),e)).debug;if(i&&console.time("preprocess data"),e.maxZoom<0||24<e.maxZoom)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var r,n,o,a,s,l,u=function(t,e){var i=[];if("FeatureCollection"===t.type)for(var r=0;r<t.features.length;r++)et(i,t.features[r],e,r);else"Feature"===t.type?et(i,t,e):et(i,{geometry:t},e);return i}(t,e);this.tiles={},this.tileCoords=[],i&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(r=u,n=e,o=n.buffer/n.extent,a=r,s=st(r,1,-1-o,o,0,-1,2,n),l=st(r,1,1-o,2+o,0,-1,2,n),(s||l)&&(a=st(r,1,-o,1+o,0,-1,2,n)||[],s&&(a=mt(s,1).concat(a)),l&&(a=a.concat(mt(l,-1)))),u=a).length&&this.splitTile(u,0,0,0),i&&(u.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 St(t,e,i){return 32*((1<<t)*i+e)+t}function Tt(t,e){var i=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var r=this._geoJSONIndex.getTile(i.z,i.x,i.y);if(!r)return e(null,null);var n=new _(r.features),o=S(n);0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),e(null,{vectorTile:n,rawData:o.buffer})}Z.prototype.load=function(t){var e=this.options,i=e.log,r=e.minZoom,n=e.maxZoom,o=e.nodeSize;i&&console.time("total time");var a,s,l,u,c,p="prepare "+t.length+" points";i&&console.time(p),this.points=t;for(var h=[],d=0;d<t.length;d++)t[d].geometry&&h.push((a=t[d],s=d,void 0,l=a.geometry.coordinates,u=l[0],c=l[1],{x:G(u),y:W(c),zoom:1/0,index:s,parentId:-1}));this.trees[n+1]=new V(h,K,Y,o,Float32Array),i&&console.timeEnd(p);for(var f=n;r<=f;f--){var m=+Date.now();h=this._cluster(h,f),this.trees[f]=new V(h,K,Y,o,Float32Array),i&&console.log("z%d: %d clusters in %dms",f,h.length,+Date.now()-m)}return i&&console.timeEnd("total time"),this},Z.prototype.getClusters=function(t,e){var i=((t[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,t[1])),n=180===t[2]?180:((t[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,t[3]));if(360<=t[2]-t[0])i=-180,n=180;else if(n<i){var a=this.getClusters([i,r,180,o],e),s=this.getClusters([-180,r,n,o],e);return a.concat(s)}for(var l=this.trees[this._limitZoom(e)],u=[],c=0,p=l.range(G(i),W(o),G(n),W(r));c<p.length;c+=1){var h=p[c],d=l.points[h];u.push(d.numPoints?$(d):this.points[d.index])}return u},Z.prototype.getChildren=function(t){var e=this._getOriginId(t),i=this._getOriginZoom(t),r="No cluster with the specified id.",n=this.trees[i];if(!n)throw new Error(r);var o=n.points[e];if(!o)throw new Error(r);for(var a=this.options.radius/(this.options.extent*Math.pow(2,i-1)),s=[],l=0,u=n.within(o.x,o.y,a);l<u.length;l+=1){var c=u[l],p=n.points[c];p.parentId===t&&s.push(p.numPoints?$(p):this.points[p.index])}if(0===s.length)throw new Error(r);return s}
1,Z.prototype.getLeaves=function(t,e,i){e=e||10,i=i||0;var r=[];return this._appendLeaves(r,t,e,i,0),r},Z.prototype.getTile=function(t,e,i){var r=this.trees[this._limitZoom(t)],n=Math.pow(2,t),o=this.options,a=o.extent,s=o.radius/a,l=(i-s)/n,u=(i+1+s)/n,c={features:[]};return this._addTileFeatures(r.range((e-s)/n,l,(e+1+s)/n,u),r.points,e,i,n,c),0===e&&this._addTileFeatures(r.range(1-s/n,l,1,u),r.points,n,i,n,c),e===n-1&&this._addTileFeatures(r.range(0,l,s/n,u),r.points,-1,i,n,c),c.features.length?c:null},Z.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e<=this.options.maxZoom;){var i=this.getChildren(t);if(e++,1!==i.length)break;t=i[0].properties.cluster_id}return e},Z.prototype._appendLeaves=function(t,e,i,r,n){for(var o=0,a=this.getChildren(e);o<a.length;o+=1){var s=a[o],l=s.properties;if(l&&l.cluster?n+l.point_count<=r?n+=l.point_count:n=this._appendLeaves(t,l.cluster_id,i,r,n):n<r?n++:t.push(s),t.length===i)break}return n},Z.prototype._addTileFeatures=function(t,e,i,r,n,o){for(var a=0,s=t;a<s.length;a+=1){var l=e[s[a]],u=l.numPoints,c={type:1,geometry:[[Math.round(this.options.extent*(l.x*n-i)),Math.round(this.options.extent*(l.y*n-r))]],tags:u?H(l):this.points[l.index].properties},p=void 0;u?p=l.id:this.options.generateId?p=l.index:this.points[l.index].id&&(p=this.points[l.index].id),void 0!==p&&(c.id=p),o.features.push(c)}},Z.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},Z.prototype._cluster=function(t,e){for(var i=[],r=this.options,n=r.radius,o=r.extent,a=r.reduce,s=n/(o*Math.pow(2,e)),l=0;l<t.length;l++){var u=t[l];if(!(u.zoom<=e)){u.zoom=e;for(var c=this.trees[e+1],p=c.within(u.x,u.y,s),h=u.numPoints||1,d=u.x*h,f=u.y*h,m=a&&1<h?this._map(u,!0):null,y=(l<<5)+(e+1)+this.points.length,v=0,g=p;v<g.length;v+=1){var _=g[v],x=c.points[_];if(!(x.zoom<=e)){x.zoom=e;var b=x.numPoints||1;d+=x.x*b,f+=x.y*b,h+=b,x.parentId=y,a&&(m||(m=this._map(u,!0)),a(m,this._map(x)))}}1===h?i.push(u):(u.parentId=y,i.push({x:d/h,y:f/h,zoom:1/0,id:y,parentId:-1,numPoints:h,properties:m}))}}return i},Z.prototype._getOriginId=function(t){return t-this.points.length>>5},Z.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},wt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!(Z.prototype._map=function(t,e){if(t.numPoints)return e?X({},t.properties):t.properties;var i=this.points[t.index].properties,r=this.options.map(i);return e&&r===i?X({},r):r}),promoteId:null,generateId:!1,debug:0},wt.prototype.splitTile=function(t,e,i,r,n,o,a){for(var s=[t,e,i,r],l=this.options,u=l.debug;s.length;){r=s.pop(),i=s.pop(),e=s.pop(),t=s.pop();var c=1<<e,p=St(e,i,r),h=this.tiles[p];if(!h&&(1<u&&console.time("creation"),h=this.tiles[p]=_t(t,e,i,r,l),this.tileCoords.push({z:e,x:i,y:r}),u)){1<u&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,i,r,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd("creation"));var d="z"+e;this.stats[d]=(this.stats[d]||0)+1,this.total++}if(h.source=t,n){if(e===l.maxZoom||e===n)continue;var f=1<<n-e;if(i!==Math.floor(o/f)||r!==Math.floor(a/f))continue}else if(e===l.indexMaxZoom||h.numPoints<=l.indexMaxPoints)continue;if(h.source=null,0!==t.length){1<u&&console.time("clipping");var m,y,v,g,_,x,b=.5*l.buffer/l.extent,w=.5-b,S=.5+b,T=1+b;m=y=v=g=null,_=st(t,c,i-b,i+S,0,h.minX,h.maxX,l),x=st(t,c,i+w,i+T,0,h.minX,h.maxX,l),t=null,_&&(m=st(_,c,r-b,r+S,1,h.minY,h.maxY,l),y=st(_,c,r+w,r+T,1,h.minY,h.maxY,l),_=null),x&&(v=st(x,c,r-b,r+S,1,h.minY,h.maxY,l),g=st(x,c,r+w,r+T,1,h.minY,h.maxY,l),x=null),1<u&&console.timeEnd("clipping"),s.push(m||[],e+1,2*i,2*r),s.push(y||[],e+1,2*i,2*r+1),s.push(v||[],e+1,2*i+1,2*r),s.push(g||[],e+1,2*i+1,2*r+1)}}},wt.prototype.getTile=function(t,e,i){var r=this.options,n=r.extent,o=r.debug;if(t<0||24<t)return null;var a=1<<t,s=St(t,e=(e%a+a)%a,i);if(this.tiles[s])return vt(this.tiles[s],n);1<o&&console.log("drilling down to z%d-%d-%d",t,e,i);for(var l,u=t,c=e,p=i;!l&&0<u;)u--,c=Math.floor(c/2),p=Math.floor(p/2),l=this.tiles[St(u,c,p)];return l&&l.source?(1<o&&console.log("found parent tile z%d-%d-%d",u,c,p),1<o&&console.time("drilling down"),this.splitTile(l.source,u,c,p,t,e,i),1<o&&console.timeEnd("drilling down"),this.tiles[s]?vt(this.tiles[s],n):null):null};var kt=function(n){function t(t,e,i,r){n.call(this,t,e,i,Tt),r&&(this.loadGeoJSON=r)}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.loadData=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},t.prototype._loadData=function(){var n=this;
1if(this._pendingCallback&&this._pendingLoadDataParams){var o=this._pendingCallback,a=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var s=!!(a&&a.request&&a.request.collectResourceTiming)&&new z.RequestPerformance(a.request);this.loadGeoJSON(a,function(t,e){if(t||!e)return o(t);if("object"!=typeof e)return o(new Error("Input data given to '"+a.source+"' is not a valid GeoJSON object."));!function t(e,i){switch(e&&e.type||null){case"FeatureCollection":return e.features=e.features.map(d(t,i)),e;case"GeometryCollection":return e.geometries=e.geometries.map(d(t,i)),e;case"Feature":return e.geometry=t(e.geometry,i),e;case"Polygon":case"MultiPolygon":return n=i,"Polygon"===(r=e).type?r.coordinates=f(r.coordinates,n):"MultiPolygon"===r.type&&(r.coordinates=r.coordinates.map(d(f,n))),r;default:return e}var r,n}(e,!0);try{n._geoJSONIndex=a.cluster?new Z(function(t){var e=t.superclusterOptions,i=t.clusterProperties;if(!i||!e)return e;for(var o={},a={},s={accumulated:null,zoom:0},l={properties:null},u=Object.keys(i),r=0,n=u;r<n.length;r+=1){var c=n[r],p=i[c],h=p[0],d=p[1],f=z.createExpression(d),m=z.createExpression("string"==typeof h?[h,["accumulated"],["get",c]]:h);o[c]=f.value,a[c]=m.value}return e.map=function(t){l.properties=t;for(var e={},i=0,r=u;i<r.length;i+=1){var n=r[i];e[n]=o[n].evaluate(s,l)}return e},e.reduce=function(t,e){l.properties=e;for(var i=0,r=u;i<r.length;i+=1){var n=r[i];s.accumulated=t[n],t[n]=a[n].evaluate(s,l)}},e}(a)).load(e.features):new wt(e,a.geojsonVtOptions)}catch(t){return o(t)}n.loaded={};var i={};if(s){var r=s.finish();r&&(i.resourceTiming={},i.resourceTiming[a.source]=JSON.parse(JSON.stringify(r)))}o(null,i)})}},t.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())},t.prototype.reloadTile=function(t,e){var i=this.loaded,r=t.uid;return i&&i[r]?n.prototype.reloadTile.call(this,t,e):this.loadTile(t,e)},t.prototype.loadGeoJSON=function(e,i){if(e.request)z.getJSON(e.request,i);else{if("string"!=typeof e.data)return i(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."));try{return i(null,JSON.parse(e.data))}catch(t){return i(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."))}}},t.prototype.removeSource=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),e()},t.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},t.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},t.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},t}(r),Et=function(t){var i=this;this.self=t,this.actor=new z.Actor(t,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:r,geojson:kt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(i.workerSourceTypes[t])throw new Error('Worker source with name "'+t+'" already registered.');i.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(t){if(z.plugin.isParsed())throw new Error("RTL text plugin already registered.");z.plugin.applyArabicShaping=t.applyArabicShaping,z.plugin.processBidirectionalText=t.processBidirectionalText,z.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText}};return Et.prototype.setReferrer=function(t,e){this.referrer=e},Et.prototype.setImages=function(t,e,i){this.availableImages[t]=e,i()},Et.prototype.setLayers=function(t,e,i){this.getLayerIndex(t).replace(e),i()},Et.prototype.updateLayers=function(t,e,i){this.getLayerIndex(t).update(e.layers,e.removedIds),i()},Et.prototype.loadTile=function(t,e,i){this.getWorkerSource(t,e.type,e.source).loadTile(e,i)},Et.prototype.loadDEMTile=function(t,e,i){this.getDEMWorkerSource(t,e.source).loadTile(e,i)},Et.prototype.reloadTile=function(t,e,i){this.getWorkerSource(t,e.type,e.source).reloadTile(e,i)}
1,Et.prototype.abortTile=function(t,e,i){this.getWorkerSource(t,e.type,e.source).abortTile(e,i)},Et.prototype.removeTile=function(t,e,i){this.getWorkerSource(t,e.type,e.source).removeTile(e,i)},Et.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},Et.prototype.removeSource=function(t,e,i){if(this.workerSources[t]&&this.workerSources[t][e.type]&&this.workerSources[t][e.type][e.source]){var r=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==r.removeSource?r.removeSource(e,i):i()}},Et.prototype.loadWorkerSource=function(t,e,i){try{this.self.importScripts(e.url),i()}catch(t){i(t.toString())}},Et.prototype.syncRTLPluginState=function(t,e,i){try{z.plugin.setState(e);var r=z.plugin.getPluginURL();if(z.plugin.isLoaded()&&!z.plugin.isParsed()&&null!=r){this.self.importScripts(r);var n=z.plugin.isParsed();i(n?void 0:new Error("RTL Text Plugin failed to import scripts from "+r),n)}}catch(t){i(t.toString())}},Et.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},Et.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new i),e},Et.prototype.getWorkerSource=function(r,t,e){var n=this;if(this.workerSources[r]||(this.workerSources[r]={}),this.workerSources[r][t]||(this.workerSources[r][t]={}),!this.workerSources[r][t][e]){var i={send:function(t,e,i){n.actor.send(t,e,i,r)}};this.workerSources[r][t][e]=new this.workerSourceTypes[t](i,this.getLayerIndex(r),this.getAvailableImages(r))}return this.workerSources[r][t][e]},Et.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new o),this.demWorkerSources[t][e]},Et.prototype.enforceCacheSizeLimit=function(t,e){z.enforceCacheSizeLimit(e)},"undefined"!=typeof WorkerGlobalScope&&void 0!==z.window&&z.window instanceof WorkerGlobalScope&&(z.window.worker=new Et(z.window)),Et}),t(0,function(_t){"use strict";var i=_t.createCommonjsModule(function(t){function o(t){return!!("undefined"!=typeof window&&"undefined"!=typeof document&&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 t,e,i=new Blob([""],{type:"text/javascript"}),r=URL.createObjectURL(i);try{e=new Worker(r),t=!0}catch(e){t=!1}return e&&e.terminate(),URL.revokeObjectURL(r),t}()&&"Uint8ClampedArray"in window&&ArrayBuffer.isView&&(e=t&&t.failIfMajorPerformanceCaveat,void 0===a[e]&&(a[e]=(i=e,r=document.createElement("canvas"),(n=Object.create(o.webGLContextAttributes)).failIfMajorPerformanceCaveat=i,r.probablySupportsContext?r.probablySupportsContext("webgl",n)||r.probablySupportsContext("experimental-webgl",n):r.supportsContext?r.supportsContext("webgl",n)||r.supportsContext("experimental-webgl",n):r.getContext("webgl",n)||r.getContext("experimental-webgl",n))),a[e]));var e,i,r,n}t.exports?t.exports=o:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=o);var a={};o.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}}),x={create:function(t,e,i){var r=_t.window.document.createElement(t);return void 0!==e&&(r.className=e),i&&i.appendChild(r),r},createNS:function(t,e){return _t.window.document.createElementNS(t,e)}},r=_t.window.document.documentElement.style;function t(t){if(!r)return t[0];for(var e=0;e<t.length;e++)if(t[e]in r)return t[e];return t[0]}var e,n=t(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);x.disableDrag=function(){r&&n&&(e=r[n],r[n]="none")},x.enableDrag=function(){r&&n&&(r[n]=e)};var o=t(["transform","WebkitTransform"]),a=!(x.setTransform=function(t,e){t.style[o]=e});try{var s=Object.defineProperty({},"passive",{get:function(){a=!0}});_t.window.addEventListener("test",s,s),_t.window.removeEventListener("test",s,s)}catch(_t){a=!1}
1x.addEventListener=function(t,e,i,r){void 0===r&&(r={}),"passive"in r&&a?t.addEventListener(e,i,r):t.addEventListener(e,i,r.capture)},x.removeEventListener=function(t,e,i,r){void 0===r&&(r={}),"passive"in r&&a?t.removeEventListener(e,i,r):t.removeEventListener(e,i,r.capture)};var l=function(t){t.preventDefault(),t.stopPropagation(),_t.window.removeEventListener("click",l,!0)};x.suppressClick=function(){_t.window.addEventListener("click",l,!0),_t.window.setTimeout(function(){_t.window.removeEventListener("click",l,!0)},0)},x.mousePos=function(t,e){var i=t.getBoundingClientRect(),r=_t.window.TouchEvent&&e instanceof _t.window.TouchEvent?e.touches[0]:e;return new _t.Point(r.clientX-i.left-t.clientLeft,r.clientY-i.top-t.clientTop)},x.touchPos=function(t,e){for(var i=t.getBoundingClientRect(),r=[],n="touchend"===e.type?e.changedTouches:e.touches,o=0;o<n.length;o++)r.push(new _t.Point(n[o].clientX-i.left-t.clientLeft,n[o].clientY-i.top-t.clientTop));return r},x.mouseButton=function(t){return void 0!==_t.window.InstallTrigger&&2===t.button&&t.ctrlKey&&0<=_t.window.navigator.platform.toUpperCase().indexOf("MAC")?0:t.button},x.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var u=function(t){function e(){t.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new _t.RGBAImage({width:1,height:1}),this.dirty=!0}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.isLoaded=function(){return this.loaded},e.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t)){for(var e=0,i=this.requestors;e<i.length;e+=1){var r=i[e],n=r.ids,o=r.callback;this._notify(n,o)}this.requestors=[]}},e.prototype.getImage=function(t){return this.images[t]},e.prototype.addImage=function(t,e){this._validate(t,e)&&(this.images[t]=e)},e.prototype._validate=function(t,e){var i=!0;return this._validateStretch(e.stretchX,e.data&&e.data.width)||(this.fire(new _t.ErrorEvent(new Error('Image "'+t+'" has invalid "stretchX" value'))),i=!1),this._validateStretch(e.stretchY,e.data&&e.data.height)||(this.fire(new _t.ErrorEvent(new Error('Image "'+t+'" has invalid "stretchY" value'))),i=!1),this._validateContent(e.content,e)||(this.fire(new _t.ErrorEvent(new Error('Image "'+t+'" has invalid "content" value'))),i=!1),i},e.prototype._validateStretch=function(t,e){if(!t)return!0;for(var i=0,r=0,n=t;r<n.length;r+=1){var o=n[r];if(o[0]<i||o[1]<o[0]||e<o[1])return!1;i=o[1]}return!0},e.prototype._validateContent=function(t,e){return!(t&&(4!==t.length||t[0]<0||e.data.width<t[0]||t[1]<0||e.data.height<t[1]||t[2]<0||e.data.width<t[2]||t[3]<0||e.data.height<t[3]||t[2]<t[0]||t[3]<t[1]))},e.prototype.updateImage=function(t,e){var i=this.images[t];e.version=i.version+1,this.images[t]=e,this.updatedImages[t]=!0},e.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&&e.userImage.onRemove&&e.userImage.onRemove()},e.prototype.listImages=function(){return Object.keys(this.images)},e.prototype.getImages=function(t,e){var i=!0;if(!this.isLoaded())for(var r=0,n=t;r<n.length;r+=1){var o=n[r];this.images[o]||(i=!1)}this.isLoaded()||i?this._notify(t,e):this.requestors.push({ids:t,callback:e})},e.prototype._notify=function(t,e){for(var i={},r=0,n=t;r<n.length;r+=1){var o=n[r];this.images[o]||this.fire(new _t.Event("styleimagemissing",{id:o}));var a=this.images[o];a?i[o]={data:a.data.clone(),pixelRatio:a.pixelRatio,sdf:a.sdf,version:a.version,stretchX:a.stretchX,stretchY:a.stretchY,content:a.content,hasRenderCallback:Boolean(a.userImage&&a.userImage.render)}:_t.warnOnce('Image "'+o+'" 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.')}e(null,i)},e.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},e.prototype.getPattern=function(t){var e=this.patterns[t],i=this.getImage(t);if(!i)return null;if(e&&e.position.version===i.version)return e.position;if(e)e.position.version=i.version;else{var r={w:i.data.width+2,h:i.data.height+2,x:0,y:0},n=new _t.ImagePosition(r,i);
1this.patterns[t]={bin:r,position:n}}return this._updatePatternAtlas(),this.patterns[t].position},e.prototype.bind=function(t){var e=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new _t.Texture(t,this.atlasImage,e.RGBA),this.atlasTexture.bind(e.LINEAR,e.CLAMP_TO_EDGE)},e.prototype._updatePatternAtlas=function(){var t=[];for(var e in this.patterns)t.push(this.patterns[e].bin);var i=_t.potpack(t),r=i.w,n=i.h,o=this.atlasImage;for(var a in o.resize({width:r||1,height:n||1}),this.patterns){var s=this.patterns[a].bin,l=s.x+1,u=s.y+1,c=this.images[a].data,p=c.width,h=c.height;_t.RGBAImage.copy(c,o,{x:0,y:0},{x:l,y:u},{width:p,height:h}),_t.RGBAImage.copy(c,o,{x:0,y:h-1},{x:l,y:u-1},{width:p,height:1}),_t.RGBAImage.copy(c,o,{x:0,y:0},{x:l,y:u+h},{width:p,height:1}),_t.RGBAImage.copy(c,o,{x:p-1,y:0},{x:l-1,y:u},{width:1,height:h}),_t.RGBAImage.copy(c,o,{x:0,y:0},{x:l+p,y:u},{width:1,height:h})}this.dirty=!0},e.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},e.prototype.dispatchRenderCallbacks=function(t){for(var e=0,i=t;e<i.length;e+=1){var r=i[e];if(!this.callbackDispatchedThisFrame[r]){this.callbackDispatchedThisFrame[r]=!0;var n=this.images[r];a=void 0,(a=(o=n).userImage)&&a.render&&a.render()&&(o.data.replace(new Uint8Array(a.data.buffer)),1)&&this.updateImage(r,n)}}var o,a},e}(_t.Evented),c=d,p=d,h=1e20;function d(t,e,i,r,n,o){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=r||.25,this.fontFamily=n||"sans-serif",this.fontWeight=o||"normal",this.radius=i||8;var a=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.d=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Int16Array(a),this.middle=Math.round(a/2*(0<=navigator.userAgent.indexOf("Gecko/")?1.2:1))}function f(t,e,i,r,n,o,a){for(var s=0;s<e;s++){for(var l=0;l<i;l++)r[l]=t[l*e+s];for(m(r,n,o,a,i),l=0;l<i;l++)t[l*e+s]=n[l]}for(l=0;l<i;l++){for(s=0;s<e;s++)r[s]=t[l*e+s];for(m(r,n,o,a,e),s=0;s<e;s++)t[l*e+s]=Math.sqrt(n[s])}}function m(t,e,i,r,n){r[i[0]=0]=-h,r[1]=+h;for(var o=1,a=0;o<n;o++){for(var s=(t[o]+o*o-(t[i[a]]+i[a]*i[a]))/(2*o-2*i[a]);s<=r[a];)a--,s=(t[o]+o*o-(t[i[a]]+i[a]*i[a]))/(2*o-2*i[a]);i[++a]=o,r[a]=s,r[a+1]=+h}for(a=o=0;o<n;o++){for(;r[a+1]<o;)a++;e[o]=(o-i[a])*(o-i[a])+t[i[a]]}}d.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),i=new Uint8ClampedArray(this.size*this.size),r=0;r<this.size*this.size;r++){var n=e.data[4*r+3]/255;this.gridOuter[r]=1===n?0:0===n?h:Math.pow(Math.max(0,.5-n),2),this.gridInner[r]=1===n?h:0===n?0:Math.pow(Math.max(0,n-.5),2)}for(f(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),f(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),r=0;r<this.size*this.size;r++){var o=this.gridOuter[r]-this.gridInner[r];i[r]=Math.max(0,Math.min(255,Math.round(255-255*(o/this.radius+this.cutoff))))}return i},c.default=p;var y=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};y.prototype.setURL=function(t){this.url=t},y.prototype.getGlyphs=function(t,u){var l=this,e=[];for(var i in t)for(var r=0,n=t[i];r<n.length;r+=1){var o=n[r];e.push({stack:i,id:o})}_t.asyncAll(e,function(t,i){var r=t.stack,n=t.id,o=l.entries[r];o||(o=l.entries[r]={glyphs:{},requests:{}});var e=o.glyphs[n];if(void 0===e){if(e=l._tinySDF(o,r,n))return o.glyphs[n]=e,void i(null,{stack:r,id:n,glyph:e});var a=Math.floor(n/256);if(65535<256*a)i(new Error("glyphs > 65535 not supported"));else{var s=o.requests[a];s||(s=o.requests[a]=[],y.loadGlyphRange(r,a,l.url,l.requestManager,function(t,e){if(e)for(var i in e)l._doesCharSupportLocalGlyph(+i)||(o.glyphs[+i]=e[+i]);for(var r=0,n=s;r<n.length;r+=1)(0,n[r])(t,e);delete o.requests[a]})),s.push(function(t,e){t?i(t):e&&i(null,{stack:r,id:n,glyph:e[n]||null})})}}else i(null,{stack:r,id:n,glyph:e})},function(t,e){if(t)u(t);else if(e){for(var i={},r=0,n=e;r<n.length;r+=1){var o=n[r],a=o.stack,s=o.id,l=o.glyph;(i[a]||(i[a]={}))[s]=l&&{id:l.id,bitmap:l.bitmap.clone(),metrics:l.metrics}}u(null,i)}})},y.prototype._doesCharSupportLocalGlyph=function(t){return!!this.localIdeographFontFamily&&
1(_t.isChar["CJK Unified Ideographs"](t)||_t.isChar["Hangul Syllables"](t)||_t.isChar.Hiragana(t)||_t.isChar.Katakana(t))},y.prototype._tinySDF=function(t,e,i){var r=this.localIdeographFontFamily;if(r&&this._doesCharSupportLocalGlyph(i)){var n=t.tinySDF;if(!n){var o="400";/bold/i.test(e)?o="900":/medium/i.test(e)?o="500":/light/i.test(e)&&(o="200"),n=t.tinySDF=new y.TinySDF(24,3,8,.25,r,o)}return{id:i,bitmap:new _t.AlphaImage({width:30,height:30},n.draw(String.fromCharCode(i))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},y.loadGlyphRange=function(t,e,i,r,a){var n=256*e,o=n+255,s=r.transformRequest(r.normalizeGlyphsURL(i).replace("{fontstack}",t).replace("{range}",n+"-"+o),_t.ResourceType.Glyphs);_t.getArrayBuffer(s,function(t,e){if(t)a(t);else if(e){for(var i={},r=0,n=_t.parseGlyphPBF(e);r<n.length;r+=1){var o=n[r];i[o.id]=o}a(null,i)}})},y.TinySDF=c;var v=function(){this.specification=_t.styleSpec.light.position};v.prototype.possiblyEvaluate=function(t,e){return _t.sphericalToCartesian(t.expression.evaluate(e))},v.prototype.interpolate=function(t,e,i){return{x:_t.number(t.x,e.x,i),y:_t.number(t.y,e.y,i),z:_t.number(t.z,e.z,i)}};var g=new _t.Properties({anchor:new _t.DataConstantProperty(_t.styleSpec.light.anchor),position:new v,color:new _t.DataConstantProperty(_t.styleSpec.light.color),intensity:new _t.DataConstantProperty(_t.styleSpec.light.intensity)}),_=function(e){function t(t){e.call(this),this._transitionable=new _t.Transitionable(g),this.setLight(t),this._transitioning=this._transitionable.untransitioned()}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.getLight=function(){return this._transitionable.serialize()},t.prototype.setLight=function(t,e){if(void 0===e&&(e={}),!this._validate(_t.validateLight,t,e))for(var i in t){var r=t[i];_t.endsWith(i,"-transition")?this._transitionable.setTransition(i.slice(0,-"-transition".length),r):this._transitionable.setValue(i,r)}},t.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},t.prototype.hasTransition=function(){return this._transitioning.hasTransition()},t.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},t.prototype._validate=function(t,e,i){return(!i||!1!==i.validate)&&_t.emitValidationErrors(this,t.call(_t.validateStyle,_t.extend({value:e,style:{glyphs:!0,sprite:!0},styleSpec:_t.styleSpec})))},t}(_t.Evented),b=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};b.prototype.getDash=function(t,e){var i=t.join(",")+String(e);return this.dashEntry[i]||(this.dashEntry[i]=this.addDash(t,e)),this.dashEntry[i]},b.prototype.getDashRanges=function(t,e,i){var r=[],n=t.length%2==1?-t[t.length-1]*i:0,o=t[0]*i,a=!0;r.push({left:n,right:o,isDash:a,zeroLength:0===t[0]});for(var s=t[0],l=1;l<t.length;l++){a=!a;var u=t[l];n=s*i,o=(s+=u)*i,r.push({left:n,right:o,isDash:a,zeroLength:0===u})}return r},b.prototype.addRoundDash=function(t,e,i){for(var r=e/2,n=-i;n<=i;n++)for(var o=this.nextRow+i+n,a=this.width*o,s=0,l=t[s],u=0;u<this.width;u++){1<u/l.right&&(l=t[++s]);var c=Math.abs(u-l.left),p=Math.abs(u-l.right),h=Math.min(c,p),d=void 0,f=n/i*(r+1);if(l.isDash){var m=r-Math.abs(f);d=Math.sqrt(h*h+m*m)}else d=r-Math.sqrt(h*h+f*f);this.data[a+u]=Math.max(0,Math.min(255,d+128))}},b.prototype.addRegularDash=function(t){for(var e=t.length-1;0<=e;--e){var i=t[e],r=t[e+1];i.zeroLength?t.splice(e,1):r&&r.isDash===i.isDash&&(r.left=i.left,t.splice(e,1))}var n=t[0],o=t[t.length-1];n.isDash===o.isDash&&(n.left=o.left-this.width,o.right=n.right+this.width);for(var a=this.width*this.nextRow,s=0,l=t[s],u=0;u<this.width;u++){1<u/l.right&&(l=t[++s]);var c=Math.abs(u-l.left),p=Math.abs(u-l.right),h=Math.min(c,p),d=l.isDash?h:-h;this.data[a+u]=Math.max(0,Math.min(255,d+128))}},b.prototype.addDash=function(t,e){var i=e?7:0,r=2*i+1;if(this.nextRow+r>this.height)return _t.warnOnce("LineAtlas out of space"),null;for(var n=0,o=0;o<t.length;o++)n+=t[o];var a=this.width/n,s=this.getDashRanges(t,this.width,a);e?this.addRoundDash(s,a,i):this.addRegularDash(s);var l={y:(this.nextRow+i+.5)/this.height,height:2*i/this.height,width:n};return this.nextRow+=r,this.dirty=!0,l},b.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var w=function t(e,i){this.workerPool=e,this.actors=[],this.currentActor=0,this.id=_t.uniqueId();
1for(var r=this.workerPool.acquire(this.id),n=0;n<r.length;n++){var o=r[n],a=new t.Actor(o,i,this.id);a.name="Worker "+n,this.actors.push(a)}};function S(r,n,o){var t=function(t,e){if(t)return o(t);if(e){var i=_t.pick(_t.extend(e,r),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);e.vector_layers&&(i.vectorLayers=e.vector_layers,i.vectorLayerIds=i.vectorLayers.map(function(t){return t.id})),i.tiles=n.canonicalizeTileset(i,r.url),o(null,i)}};return r.url?_t.getJSON(n.transformRequest(n.normalizeSourceURL(r.url),_t.ResourceType.Source),t):_t.browser.frame(function(){return t(null,r)})}w.prototype.broadcast=function(i,r,t){t=t||function(){},_t.asyncAll(this.actors,function(t,e){t.send(i,r,e)},t)},w.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},w.prototype.remove=function(){this.actors.forEach(function(t){t.remove()}),this.actors=[],this.workerPool.release(this.id)},w.Actor=_t.Actor;var T=function(t,e,i){this.bounds=_t.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=e||0,this.maxzoom=i||24};T.prototype.validateBounds=function(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},T.prototype.contains=function(t){var e=Math.pow(2,t.z),i=Math.floor(_t.mercatorXfromLng(this.bounds.getWest())*e),r=Math.floor(_t.mercatorYfromLat(this.bounds.getNorth())*e),n=Math.ceil(_t.mercatorXfromLng(this.bounds.getEast())*e),o=Math.ceil(_t.mercatorYfromLat(this.bounds.getSouth())*e);return t.x>=i&&t.x<n&&t.y>=r&&t.y<o};var k=function(n){function t(t,e,i,r){if(n.call(this),this.id=t,this.dispatcher=i,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,_t.extend(this,_t.pick(e,["url","scheme","tileSize","promoteId"])),this._options=_t.extend({type:"vector"},e),this._collectResourceTiming=e.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(r)}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.load=function(){var i=this;this._loaded=!1,this.fire(new _t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=S(this._options,this.map._requestManager,function(t,e){i._tileJSONRequest=null,i._loaded=!0,t?i.fire(new _t.ErrorEvent(t)):e&&(_t.extend(i,e),e.bounds&&(i.tileBounds=new T(e.bounds,i.minzoom,i.maxzoom)),_t.postTurnstileEvent(e.tiles,i.map._requestManager._customAccessToken),_t.postMapLoadEvent(e.tiles,i.map._getMapId(),i.map._requestManager._skuToken,i.map._requestManager._customAccessToken),i.fire(new _t.Event("data",{dataType:"source",sourceDataType:"metadata"})),i.fire(new _t.Event("data",{dataType:"source",sourceDataType:"content"})))})},t.prototype.loaded=function(){return this._loaded},t.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},t.prototype.onAdd=function(t){this.map=t,this.load()},t.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},t.prototype.serialize=function(){return _t.extend({},this._options)},t.prototype.loadTile=function(i,r){var t=this.map._requestManager.normalizeTileURL(i.tileID.canonical.url(this.tiles,this.scheme)),e={request:this.map._requestManager.transformRequest(t,_t.ResourceType.Tile),uid:i.uid,tileID:i.tileID,zoom:i.tileID.overscaledZ,tileSize:this.tileSize*i.tileID.overscaleFactor(),type:this.t
vendor: 6,112 bytes, line 1
1ype,source:this.id,pixelRatio:_t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function n(t,e){return delete i.request,i.aborted?r(null):t&&404!==t.status?r(t):(e&&e.resourceTiming&&(i.resourceTiming=e.resourceTiming),this.map._refreshExpiredTiles&&e&&i.setExpiryData(e),i.loadVectorData(e,this.map.painter),_t.cacheEntryPossiblyAdded(this.dispatcher),r(null),void(i.reloadCallback&&(this.loadTile(i,i.reloadCallback),i.reloadCallback=null)))}e.request.collectResourceTiming=this._collectResourceTiming,i.actor&&"expired"!==i.state?"loading"===i.state?i.reloadCallback=r:i.request=i.actor.send("reloadTile",e,n.bind(this)):(i.actor=this.dispatcher.getActor(),i.request=i.actor.send("loadTile",e,n.bind(this)))},t.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.actor&&t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id},void 0)},t.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&&t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id},void 0)},t.prototype.hasTransition=function(){return!1},t}(_t.Evented),E=function(n){function t(t,e,i,r){n.call(this),this.id=t,this.dispatcher=i,this.setEventedParent(r),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=_t.extend({type:"raster"},e),_t.extend(this,_t.pick(e,["url","scheme","tileSize"]))}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.load=function(){var i=this;this._loaded=!1,this.fire(new _t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=S(this._options,this.map._requestManager,function(t,e){i._tileJSONRequest=null,i._loaded=!0,t?i.fire(new _t.ErrorEvent(t)):e&&(_t.extend(i,e),e.bounds&&(i.tileBounds=new T(e.bounds,i.minzoom,i.maxzoom)),_t.postTurnstileEvent(e.tiles),_t.postMapLoadEvent(e.tiles,i.map._getMapId(),i.map._requestManager._skuToken),i.fire(new _t.Event("data",{dataType:"source",sourceDataType:"metadata"})),i.fire(new _t.Event("data",{dataType:"source",sourceDataType:"content"})))})},t.prototype.loaded=function(){return this._loaded},t.prototype.onAdd=function(t){this.map=t,this.load()},t.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},t.prototype.serialize=function(){return _t.extend({},this._options)},t.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},t.prototype.loadTile=function(n,o){var a=this,t=this.map._requestManager.normalizeTileURL(n.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);n.request=_t.getImage(this.map._requestManager.transformRequest(t,_t.ResourceType.Tile),function(t,e){if(delete n.request,n.aborted)n.state="unloaded",o(null);else if(t)n.state="errored",o(t);else if(e){a.map._refreshExpiredTiles&&n.setExpiryData(e),delete e.cacheControl,delete e.expires;var i=a.map.painter.context,r=i.gl;n.texture=a.map.painter.getTileTexture(e.width),n.texture?n.texture.update(e,{useMipmap:!0}):(n.texture=new _t.Texture(i,e,r.RGBA,{useMipmap:!0}),n.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_NEAREST),i.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,i.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,i.extTextureFilterAnisotropicMax)),n.state="loaded",_t.cacheEntryPossiblyAdded(a.dispatcher),o(null)}})},t.prototype.abortTile=function(t,e){t.request&&(t.request.cancel(),delete t.request),e()},t.prototype.unloadTile=function(t,e){t.texture&&this.map.painter.saveTileTexture(t.texture),e()},t.prototype.hasTransition=function(){return!1},t}(_t.Evented),C=function(n){function t(t,e,i,r){n.call(this,t,e,i,r),this.type="raster-dem",this.maxzoom=22,this._options=_t.extend({type:"raster-dem"},e),this.encoding=e.encoding||"mapbox"}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},t.prototype.loadTile=function(n,o){var t=this.map._requestManager.normalizeTileURL(n.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);n.request=_t.getImage(this.map._requestManager.transformRequest(t,_t.ResourceType.Tile),function(t,e){if(delete n.request,n.aborted)n.state="unloaded",o(null);else if(t)n.state="errored",o(t);else if(e){this.map._refreshExpiredTiles&&n.setExpiryData(e),delete e.cacheControl,delete e.expires;var i=_t.window.ImageBitmap&&e instanceof _t.window.ImageBitmap&&_t.offscreenCanvasSupported()?e:_t.browser.getImageData(e,1),r={uid:n.uid,coord:n.tileID,source:this.id,rawImageData:i,encoding:this.encoding};n.actor&&"expired"!==n.state||(n.actor=this.dispatcher.getActor(),n.actor.send("loadDEMTile",r,function(t,e){t&&(n.state="errored",o(t)),e&&(n.dem=e,n.needsHillshadePrepare=!0,n.state="loaded",o(null))}.bind(this)))}}.bind(this)),n.neighboringTiles=this._getNeighboringTiles(n.tileID)},t.prototype._getNeighboringTiles=function(t){var e=t.canonical,i=Math.pow(2,e.z),r=(e.x-1+i)%i,n=0===e.x?t.wrap-1:t.wrap,o=(e.x+1+i)%i,a=e.x+1===i?t.wrap+1:t.wrap,s={};return s[new _t.OverscaledTileID(t.overscaledZ,n,e.z,r,e.y).key]={backfilled:!1},s[new _t.OverscaledTileID(t.overscaledZ,a,e.z,o,e.y).key]={backfilled:!1},0<e.y&&(s[new _t.OverscaledTileID(t.overscaledZ,n,e.z,r,e.y-1).key]={backfilled:!1},s[new _t.OverscaledTileID(t.overscaledZ,t.wrap,e.z,e.x,e.y-1).key]={backfilled:!1},s[new _t.OverscaledTileID(t.overscaledZ,a,e.z,o,e.y-1).key]={backfilled:!1}),e.y+1<i&&(s[new _t.OverscaledTileID(t.overscaledZ,n,e.z,r,e.y+1).key]={backfilled:!1},s[new _t.OverscaledTileID(t.overscaledZ,t.wrap,e.z,e.x,e.y+1).key]={backfilled:!1},s[new _t.OverscaledTileID(t.overscaledZ,a,e.z,o,e.y+1).key]={backfilled:!1}),s},t.prototype.unloadTile=function(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded",t.actor&&t.actor.send("removeDEMTile",{uid:t.uid,source:this.id})},t}
1(E),A=function(o){function t(t,e,i,r){o.call(this),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(r),this._data=e.data,this._options=_t.extend({},e),this._collectResourceTiming=e.collectResourceTiming,this._resourceTiming=[],void 0!==e.maxzoom&&(this.maxzoom=e.maxzoom),e.type&&(this.type=e.type),e.attribution&&(this.attribution=e.attribution),this.promoteId=e.promoteId;var n=_t.EXTENT/this.tileSize;this.workerOptions=_t.extend({source:this.id,cluster:e.cluster||!1,geojsonVtOptions:{buffer:(void 0!==e.buffer?e.buffer:128)*n,tolerance:(void 0!==e.tolerance?e.tolerance:.375)*n,extent:_t.EXTENT,maxZoom:this.maxzoom,lineMetrics:e.lineMetrics||!1,generateId:e.generateId||!1},superclusterOptions:{maxZoom:void 0!==e.clusterMaxZoom?Math.min(e.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:_t.EXTENT,radius:(e.clusterRadius||50)*n,log:!1,generateId:e.generateId||!1},clusterProperties:e.clusterProperties},e.workerOptions)}return o&&(t.__proto__=o),((t.prototype=Object.create(o&&o.prototype)).constructor=t).prototype.load=function(){var i=this;this.fire(new _t.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(t){if(t)i.fire(new _t.ErrorEvent(t));else{var e={dataType:"source",sourceDataType:"metadata"};i._collectResourceTiming&&i._resourceTiming&&0<i._resourceTiming.length&&(e.resourceTiming=i._resourceTiming,i._resourceTiming=[]),i.fire(new _t.Event("data",e))}})},t.prototype.onAdd=function(t){this.map=t,this.load()},t.prototype.setData=function(t){var i=this;return this._data=t,this.fire(new _t.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(t){if(t)i.fire(new _t.ErrorEvent(t));else{var e={dataType:"source",sourceDataType:"content"};i._collectResourceTiming&&i._resourceTiming&&0<i._resourceTiming.length&&(e.resourceTiming=i._resourceTiming,i._resourceTiming=[]),i.fire(new _t.Event("data",e))}}),this},t.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this},t.prototype.getClusterChildren=function(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this},t.prototype.getClusterLeaves=function(t,e,i,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:i},r),this},t.prototype._updateWorkerData=function(i){var r=this;this._loaded=!1;var n=_t.extend({},this.workerOptions),t=this._data;"string"==typeof t?(n.request=this.map._requestManager.transformRequest(_t.browser.resolveURL(t),_t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(t),this.actor.send(this.type+".loadData",n,function(t,e){r._removed||e&&e.abandoned||(r._loaded=!0,e&&e.resourceTiming&&e.resourceTiming[r.id]&&(r._resourceTiming=e.resourceTiming[r.id].slice(0)),r.actor.send(r.type+".coalesce",{source:n.source},null),i(t))})},t.prototype.loaded=function(){return this._loaded},t.prototype.loadTile=function(i,r){var n=this,o=i.actor?"reloadTile":"loadTile";i.actor=this.actor;var t={type:this.type,uid:i.uid,tileID:i.tileID,zoom:i.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:_t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};i.request=this.actor.send(o,t,function(t,e){return delete i.request,i.unloadVectorData(),i.aborted?r(null):t?r(t):(i.loadVectorData(e,n.map.painter,"reloadTile"===o),r(null))})},t.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0},t.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.t
1ype,source:this.id})},t.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},t.prototype.serialize=function(){return _t.extend({},this._options,{type:this.type,data:this._data})},t.prototype.hasTransition=function(){return!1},t}(_t.Evented),I=_t.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),z=function(n){function t(t,e,i,r){n.call(this),this.id=t,this.dispatcher=i,this.coordinates=e.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(r),this.options=e}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.load=function(i,r){var n=this;this._loaded=!1,this.fire(new _t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,_t.getImage(this.map._requestManager.transformRequest(this.url,_t.ResourceType.Image),function(t,e){n._loaded=!0,t?n.fire(new _t.ErrorEvent(t)):e&&(n.image=e,i&&(n.coordinates=i),r&&r(),n._finishLoading())})},t.prototype.loaded=function(){return this._loaded},t.prototype.updateImage=function(t){var e=this;return this.image&&t.url&&(this.options.url=t.url,this.load(t.coordinates,function(){e.texture=null})),this},t.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new _t.Event("data",{dataType:"source",sourceDataType:"metadata"})))},t.prototype.onAdd=function(t){this.map=t,this.load()},t.prototype.setCoordinates=function(t){var e=this,d=(this.coordinates=t).map(_t.MercatorCoordinate.fromLngLat);this.tileID=function(t){for(var e=1/0,i=1/0,r=-1/0,n=-1/0,o=0,a=d;o<a.length;o+=1){var s=a[o];e=Math.min(e,s.x),i=Math.min(i,s.y),r=Math.max(r,s.x),n=Math.max(n,s.y)}var l=r-e,u=n-i,c=Math.max(l,u),p=Math.max(0,Math.floor(-Math.log(c)/Math.LN2)),h=Math.pow(2,p);return new _t.CanonicalTileID(p,Math.floor((e+r)/2*h),Math.floor((i+n)/2*h))}(),this.minzoom=this.maxzoom=this.tileID.z;var i=d.map(function(t){return e.tileID.getTilePoint(t)._round()});return this._boundsArray=new _t.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,_t.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,_t.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,_t.EXTENT,_t.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new _t.Event("data",{dataType:"source",sourceDataType:"content"})),this},t.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var t=this.map.painter.context,e=t.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=_t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new _t.Texture(t,this.image,e.RGBA),this.texture.bind(e.LINEAR,e.CLAMP_TO_EDGE)),this.tiles){var r=this.tiles[i];"loaded"!==r.state&&(r.state="loaded",r.texture=this.texture)}}},t.prototype.loadTile=function(t,e){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t).buckets={}:t.state="errored",e(null)},t.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},t.prototype.hasTransition=function(){return!1},t}(_t.Evented),P=function(n){function t(t,e,i,r){n.call(this,t,e,i,r),this.roundZoom=!0,this.type="video",this.options=e}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.load=function(){var i=this;this._loaded=!1;var t=this.options;this.urls=[];for(var e=0,r=t.urls;e<r.length;e+=1){var n=r[e];this.urls.push(this.map._requestManager.transformRequest(n,_t.ResourceType.Source).url)}_t.getVideo(this.urls,function(t,e){i._loaded=!0,t?i.fire(new _t.ErrorEvent(t)):e&&(i.video=e,i.video.loop=!0,i.video.addEventListener("playing",function(){i.map.triggerRepaint()}),i.map&&i.video.play(),i._finishLoading())})},t.prototype.pause=function(){this.video&&this.video.pause()},t.prototype.play=function(){this.video&&this.video.play()},t.prototype.seek=function(t){if(this.video){var e=this.video.seekable;t<e.start(0)||t>e.end(0)?this.fire(new _t.ErrorEvent(new _t.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+e.start(0)+" and "+e.end(0)+"-second mark."))):this.video.currentTime=t}},t.prototype.getVideo=function(){return this.video}
vendor: 8,728 bytes, line 1
1,t.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},t.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var t=this.map.painter.context,e=t.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=_t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(e.LINEAR,e.CLAMP_TO_EDGE),e.texSubImage2D(e.TEXTURE_2D,0,0,0,e.RGBA,e.UNSIGNED_BYTE,this.video)):(this.texture=new _t.Texture(t,this.video,e.RGBA),this.texture.bind(e.LINEAR,e.CLAMP_TO_EDGE)),this.tiles){var r=this.tiles[i];"loaded"!==r.state&&(r.state="loaded",r.texture=this.texture)}}},t.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},t.prototype.hasTransition=function(){return this.video&&!this.video.paused},t}(z),M=function(n){function t(t,e,i,r){n.call(this,t,e,i,r),e.coordinates?Array.isArray(e.coordinates)&&4===e.coordinates.length&&!e.coordinates.some(function(t){return!Array.isArray(t)||2!==t.length||t.some(function(t){return"number"!=typeof t})})||this.fire(new _t.ErrorEvent(new _t.ValidationError("sources."+t,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new _t.ErrorEvent(new _t.ValidationError("sources."+t,null,'missing required property "coordinates"'))),e.animate&&"boolean"!=typeof e.animate&&this.fire(new _t.ErrorEvent(new _t.ValidationError("sources."+t,null,'optional "animate" property must be a boolean value'))),e.canvas?"string"==typeof e.canvas||e.canvas instanceof _t.window.HTMLCanvasElement||this.fire(new _t.ErrorEvent(new _t.ValidationError("sources."+t,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 _t.ErrorEvent(new _t.ValidationError("sources."+t,null,'missing required property "canvas"'))),this.options=e,this.animate=void 0===e.animate||e.animate}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof _t.window.HTMLCanvasElement?this.options.canvas:_t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new _t.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())},t.prototype.getCanvas=function(){return this.canvas},t.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},t.prototype.onRemove=function(){this.pause()},t.prototype.prepare=function(){var t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var e=this.map.painter.context,i=e.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=_t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new _t.Texture(e,this.canvas,i.RGBA,{premultiply:!0}),this.tiles){var n=this.tiles[r];"loaded"!==n.state&&(n.state="loaded",n.texture=this.texture)}}},t.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},t.prototype.hasTransition=function(){return this._playing},t.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t<e.length;t+=1){var i=e[t];if(isNaN(i)||i<=0)return!0}return!1},t}(z),L={vector:k,raster:E,"raster-dem":C,geojson:A,video:P,image:z,canvas:M};function D(r,t,e,i,n){var o,a,s,l=function(t,e,i){if(t)for(var r=0,n=t;r<n.length;r+=1){var o=e[n[r]];if(o&&o.source===i&&"fill-extrusion"===o.type)return!0}else for(var a in e){var s=e[a];if(s.source===i&&"fill-extrusion"===s.type)return!0}return!1}(i&&i.layers,t,r.id),u=n.maxPitchScaleFactor(),c=r.tilesIn(e,u,l);c.sort(R);for(var y=[],p=0,h=c;p<h.length;p+=1){var d=h[p];y.push({wrappedTileID:d.tileID.wrapped().key,queryResults:d.tile.queryRenderedFeatures(t,r._state,d.queryGeometry,d.cameraQueryGeometry,d.scale,i,n,u,(o=r.transform,a=d.tileID,void 0,s=_t.identity([]),_t.translate(s,s,[1,1,0]),_t.scale(s,s,[.5*o.width,.5*o.height,1]),_t.multiply(s,s,o.calculatePosMatrix(a.toUnwrapped()))))})}var f=function(t){for(var e={},i={},r=0,n=y;r<n.length;r+=1){var o=n[r],a=o.queryResults,s=o.wrappedTileID,l=i[s]=i[s]||{};for(var u in a)for(var c=a[u],p=l[u]=l[u]||{},h=e[u]=e[u]||[],d=0,f=c;d<f.length;d+=1){var m=f[d];p[m.featureIndex]||(p[m.featureIndex]=!0,h.push(m))}}return e}();for(var m in f)f[m].forEach(function(t){var e=t.feature,i=r.getFeatureState(e.layer["source-layer"],e.id);e.source=e.layer.source,e.layer["source-layer"]&&(e.sourceLayer=e.layer["source-layer"]),e.state=i});return f}function R(t,e){var i=t.tileID,r=e.tileID;return i.overscaledZ-r.overscaledZ||i.canonical.y-r.canonical.y||i.wrap-r.wrap||i.canonical.x-r.canonical.x}var B=function(t,e){this.max=t,this.onRemove=e,this.reset()};B.prototype.reset=function(){for(var t in this.data)for(var e=0,i=this.data[t];e<i.length;e+=1){var r=i[e];r.timeout&&clearTimeout(r.timeout),this.onRemove(r.value)}return this.data={},this.order=[],this},B.prototype.add=function(t,e,i){var r=this,n=t.wrapped().key;void 0===this.data[n]&&(this.data[n]=[]);var o={value:e,timeout:void 0};if(void 0!==i&&(o.timeout=setTimeout(function(){r.remove(t,o)},i)),this.data[n].push(o),this.order.push(n),this.order.length>this.max){var a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this},B.prototype.has=function(t){return t.wrapped().key in this.data},B.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},B.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},B.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},B.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},B.prototype.remove=function(t,e){if(!this.has(t))return this;var i=t.wrapped().key,r=void 0===e?0:this.data[i].indexOf(e),n=this.data[i][r];return this.data[i].splice(r,1),n.timeout&&clearTimeout(n.timeout),0===this.data[i].length&&delete this.data[i],this.onRemove(n.value),this.order.splice(this.order.indexOf(i),1),this},B.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this},B.prototype.filter=function(t){var e=[];for(var i in this.data)for(var r=0,n=this.data[i];r<n.length;r+=1){var o=n[r];t(o.value)||e.push(o)}for(var a=0,s=e;a<s.length;a+=1){var l=s[a];this.remove(l.value.tileID,l)}};var O=function(t,e,i){var r=(this.context=t).gl;this.buffer=r.createBuffer(),this.dynamicDraw=Boolean(i),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};O.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},O.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},O.prototype.destroy=function(){var t=this.context.gl;this.buffer&&(t.deleteBuffer(this.buffer),delete this.buffer)};var F={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},U=function(t,e,i,r){this.length=e.length,this.attributes=i,this.itemSize=e.bytesPerElement,this.dynamicDraw=r;var n=(this.context=t).gl;this.buffer=n.createBuffer(),t.bindVertexBuffer.set(this.buffer),n.bufferData(n.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};U.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},U.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},U.prototype.enableAttributes=function(t,e){for(var i=0;i<this.attributes.length;i++){var r=this.attributes[i],n=e.attributes[r.name];void 0!==n&&t.enableVertexAttribArray(n)}}
vendor: 5,756 bytes, line 1
1,U.prototype.setVertexAttribPointers=function(t,e,i){for(var r=0;r<this.attributes.length;r++){var n=this.attributes[r],o=e.attributes[n.name];void 0!==o&&t.vertexAttribPointer(o,n.components,t[F[n.type]],!1,this.itemSize,n.offset+this.itemSize*(i||0))}},U.prototype.destroy=function(){var t=this.context.gl;this.buffer&&(t.deleteBuffer(this.buffer),delete this.buffer)};var N=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};N.prototype.get=function(){return this.current},N.prototype.set=function(t){},N.prototype.getDefault=function(){return this.default},N.prototype.setDefault=function(){this.set(this.default)};var j=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return _t.Color.transparent},e.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},e}(N),V=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(N),q=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(N),Z=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(N),$=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(N),H=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(N),G=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&&(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(N),W=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&&(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(N),X=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(N),K=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(N),Y=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(N),J=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(N),Q=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(N),tt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(N),et=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return _t.Color.transparent},e.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.blendColor
vendor: 6,336 bytes, line 1
1(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},e}(N),it=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(N),rt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(N),nt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(N),ot=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(N),at=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(N),st=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(N),lt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(N),ut=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(N),ct=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(N),pt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(N),ht=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(N),dt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(N),ft=function(e){function t(t){e.call(this,t),this.vao=t.extVertexArrayObject}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.getDefault=function(){return null},t.prototype.set=function(t){this.vao&&(t!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},t}(N),mt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(N),yt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(N),vt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(N),gt=function(i){function t(t,e){i.call(this,t),this.context=t,this.parent=e}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.getDefault=function(){return null},t}(N),xt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(gt),bt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}
vendor: 4,519 bytes, line 1
1(gt),wt=function(t,e,i){this.context=t,this.width=e,this.height=i;var r=t.gl,n=this.framebuffer=r.createFramebuffer();this.colorAttachment=new xt(t,n),this.depthAttachment=new bt(t,n)};wt.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();e&&t.deleteTexture(e);var i=this.depthAttachment.get();i&&t.deleteRenderbuffer(i),t.deleteFramebuffer(this.framebuffer)};var St=function(t,e,i){this.func=t,this.mask=e,this.range=i};St.ReadOnly=!1,St.ReadWrite=!0,St.disabled=new St(519,St.ReadOnly,[0,1]);var Tt=function(t,e,i,r,n,o){this.test=t,this.ref=e,this.mask=i,this.fail=r,this.depthFail=n,this.pass=o};Tt.disabled=new Tt({func:519,mask:0},0,0,7680,7680,7680);var kt=function(t,e,i){this.blendFunction=t,this.blendColor=e,this.mask=i};kt.disabled=new kt(kt.Replace=[1,0],_t.Color.transparent,[!1,!1,!1,!1]),kt.unblended=new kt(kt.Replace,_t.Color.transparent,[!0,!0,!0,!0]),kt.alphaBlended=new kt([1,771],_t.Color.transparent,[!0,!0,!0,!0]);var Et=function(t,e,i){this.enable=t,this.mode=e,this.frontFace=i};Et.disabled=new Et(!1,1029,2305),Et.backCCW=new Et(!0,1029,2305);var Ct=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new j(this),this.clearDepth=new V(this),this.clearStencil=new q(this),this.colorMask=new Z(this),this.depthMask=new $(this),this.stencilMask=new H(this),this.stencilFunc=new G(this),this.stencilOp=new W(this),this.stencilTest=new X(this),this.depthRange=new K(this),this.depthTest=new Y(this),this.depthFunc=new J(this),this.blend=new Q(this),this.blendFunc=new tt(this),this.blendColor=new et(this),this.blendEquation=new it(this),this.cullFace=new rt(this),this.cullFaceSide=new nt(this),this.frontFace=new ot(this),this.program=new at(this),this.activeTexture=new st(this),this.viewport=new lt(this),this.bindFramebuffer=new ut(this),this.bindRenderbuffer=new ct(this),this.bindTexture=new pt(this),this.bindVertexBuffer=new ht(this),this.bindElementBuffer=new dt(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new ft(this),this.pixelStoreUnpack=new mt(this),this.pixelStoreUnpackPremultiplyAlpha=new yt(this),this.pixelStoreUnpackFlipY=new vt(this),this.extTextureFilterAnisotropic=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&t.getExtension("OES_texture_half_float_linear"),this.extTimerQuery=t.getExtension("EXT_disjoint_timer_query")};Ct.prototype.setDefault=function(){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()},Ct.prototype.setDirty=function(){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},Ct.prototype.createIndexBuffer=function(t,e){return new O(this,t,e)}
vendor: 5,097 bytes, line 1
1,Ct.prototype.createVertexBuffer=function(t,e,i){return new U(this,t,e,i)},Ct.prototype.createRenderbuffer=function(t,e,i){var r=this.gl,n=r.createRenderbuffer();return this.bindRenderbuffer.set(n),r.renderbufferStorage(r.RENDERBUFFER,t,e,i),this.bindRenderbuffer.set(null),n},Ct.prototype.createFramebuffer=function(t,e){return new wt(this,t,e)},Ct.prototype.clear=function(t){var e=t.color,i=t.depth,r=this.gl,n=0;e&&(n|=r.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==i&&(n|=r.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(i),this.depthMask.set(!0)),r.clear(n)},Ct.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Ct.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Ct.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Ct.prototype.setColorMode=function(t){_t.deepEqual(t.blendFunction,kt.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask)},Ct.prototype.unbindVAO=function(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)};var At=function(n){function b(t,e,i){var r=this;n.call(this),this.id=t,this.dispatcher=i,this.on("data",function(t){"source"===t.dataType&&"metadata"===t.sourceDataType&&(r._sourceLoaded=!0),r._sourceLoaded&&!r._paused&&"source"===t.dataType&&"content"===t.sourceDataType&&(r.reload(),r.transform&&r.update(r.transform))}),this.on("error",function(){r._sourceErrored=!0}),this._source=function(t,e,i,r){var n=new L[e.type](t,e,i,r);if(n.id!==t)throw new Error("Expected Source id to be "+t+" instead of "+n.id);return _t.bindAll(["load","abort","unload","serialize","prepare"],n),n}(t,e,i,this),this._tiles={},this._cache=new B(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new _t.SourceFeatureState}return n&&(b.__proto__=n),((b.prototype=Object.create(n&&n.prototype)).constructor=b).prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(t)},b.prototype.onRemove=function(t){this._source&&this._source.onRemove&&this._source.onRemove(t)},b.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}return!0},b.prototype.getSource=function(){return this._source},b.prototype.pause=function(){this._paused=!0},b.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform)}},b.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},b.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,function(){})},b.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,function(){})},b.prototype.serialize=function(){return this._source.serialize()},b.prototype.prepare=function(t){for(var e in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var i=this._tiles[e];i.upload(t),i.prepare(this.map.style.imageManager)}},b.prototype.getIds=function(){return _t.values(this._tiles).map(function(t){return t.tileID}).sort(It).map(function(t){return t.key})},b.prototype.getRenderableIds=function(t){var a=this,e=[];for(var i in this._tiles)this._isIdRenderable(i,t)&&e.push(this._tiles[i]);return t?e.sort(function(t,e){var i=t.tileID,r=e.tileID,n=new _t.Point(i.canonical.x,i.canonical.y)._rotate(a.transform.angle),o=new _t.Point(r.canonical.x,r.canonical.y)._rotate(a.transform.angle);return i.overscaledZ-r.overscaledZ||o.y-n.y||o.x-n.x}).map(function(t){return t.tileID.key}):e.map(function(t){return t.tileID}).sort(It).map(function(t){return t.key})},b.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&&this._isIdRenderable(e.tileID.key)},b.prototype._isIdRenderable=function(t,e){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(e||!this._tiles[t].holdingForFade())},b.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)"errored"!==this._tiles[t].state&&this._reloadTile(t,"reloading")},b.prototype._reloadTile=function(t,e){var i=this._tiles[t];i&&("loading"!==i.state&&(i.state=e),this._loadTile(i,this._tileLoaded.bind(this,i,t,e)))}
vendor: 4,703 bytes, line 1
1,b.prototype._tileLoaded=function(t,e,i,r){if(r)return t.state="errored",void(404!==r.status?this._source.fire(new _t.ErrorEvent(r,{tile:t})):this.update(this.transform));t.timeAdded=_t.browser.now(),"expired"===i&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(e,t),"raster-dem"===this.getSource().type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),this._source.fire(new _t.Event("data",{dataType:"source",tile:t,coord:t.tileID}))},b.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),i=0;i<e.length;i++){var r=e[i];if(t.neighboringTiles&&t.neighboringTiles[r]){var n=this.getTileByID(r);o(t,n),o(n,t)}}function o(t,e){t.needsHillshadePrepare=!0;var i=e.tileID.canonical.x-t.tileID.canonical.x,r=e.tileID.canonical.y-t.tileID.canonical.y,n=Math.pow(2,t.tileID.canonical.z),o=e.tileID.key;0===i&&0===r||1<Math.abs(r)||(1<Math.abs(i)&&(1===Math.abs(i+n)?i+=n:1===Math.abs(i-n)&&(i-=n)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,i,r),t.neighboringTiles&&t.neighboringTiles[o]&&(t.neighboringTiles[o].backfilled=!0)))}},b.prototype.getTile=function(t){return this.getTileByID(t.key)},b.prototype.getTileByID=function(t){return this._tiles[t]},b.prototype._retainLoadedChildren=function(t,e,i,r){for(var n in this._tiles){var o=this._tiles[n];if(!(r[n]||!o.hasData()||o.tileID.overscaledZ<=e||o.tileID.overscaledZ>i)){for(var a=o.tileID;o&&o.tileID.overscaledZ>e+1;){var s=o.tileID.scaledTo(o.tileID.overscaledZ-1);(o=this._tiles[s.key])&&o.hasData()&&(a=s)}for(var l=a;l.overscaledZ>e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){r[a.key]=a;break}}}},b.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var i=this._loadedParentTiles[t.key];return i&&i.tileID.overscaledZ>=e?i:null}for(var r=t.overscaledZ-1;e<=r;r--){var n=t.scaledTo(r),o=this._getLoadedTile(n);if(o)return o}},b.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(t.wrapped().key)},b.prototype.updateCacheSize=function(t){var e=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),i=Math.floor(5*e),r="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,i):i;this._cache.setMaxSize(r)},b.prototype.handleWrapJump=function(t){var e=(t-(void 0===this._prevLng?t:this._prevLng))/360,i=Math.round(e);if(this._prevLng=t,i){var r={};for(var n in this._tiles){var o=this._tiles[n];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+i),r[o.tileID.key]=o}for(var a in this._tiles=r,this._timers)clearTimeout(this._timers[a]),delete this._timers[a];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},b.prototype.update=function(t){var e=this;if(this.transform=t,this._sourceLoaded&&!this._paused){var i;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(t){return new _t.OverscaledTileID(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)}):(i=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(i=i.filter(function(t){return e._source.hasTile(t)}))):i=[];var r=t.coveringZoomLevel(this._source),n=Math.max(r-b.maxOverzooming,this._source.minzoom),o=Math.max(r+b.maxUnderzooming,this._source.minzoom),a=this._updateRetainedTiles(i,r);if(zt(this._source.type)){for(var s={},l={},u=0,c=Object.keys(a);u<c.length;u+=1){var p=c[u],h=a[p],d=this._tiles[p];if(d&&!(d.fadeEndTime&&d.fadeEndTime<=_t.browser.now())){var f=this.findLoadedParent(h,n);f&&(this._addTile(f.tileID),s[f.tileID.key]=f.tileID),l[p]=h}}for(var m in this._retainLoadedChildren(l,r,o,a),s)a[m]||(this._coveredTiles[m]=!0,a[m]=s[m])}for(var y in a)this._tiles[y].clearFadeHold();for(var v=0,g=_t.keysDifference(this._tiles,a);v<g.length;v+=1){var _=g[v],x=this._tiles[_];x.hasSymbolBuckets&&!x.holdingForFade()?x.setHoldDuration(this.map._fadeDuration):x.hasSymbolBuckets&&!x.symbolFadeFinished()||this._removeTile(_)}this._updateLoadedParentTileCache()}},b.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(t)},b.prototype._updateRetainedTiles=function(t,e){for(var i={},r={},n=Math.max(e-b.maxOverzooming,this._source.minzoom),o=Math.max(e+b.maxUnderzooming,this._source.minzoom),a={},s=0,l=t;s<l.length;s+=1){var u=l[s],c=this._addTile(u);i[u.key]=u,c.hasData()||e<this._source.maxzoom&&(a[u.key]=u)}this._retainLoadedChildren(a,e,o,i);for(var p=0,h=t;p<h.length;
1p+=1){var d=h[p],f=this._tiles[d.key];if(!f.hasData()){if(e+1>this._source.maxzoom){var m=d.children(this._source.maxzoom)[0],y=this.getTile(m);if(y&&y.hasData()){i[m.key]=m;continue}}else{var v=d.children(this._source.maxzoom);if(i[v[0].key]&&i[v[1].key]&&i[v[2].key]&&i[v[3].key])continue}for(var g=f.wasRequested(),_=d.overscaledZ-1;n<=_;--_){var x=d.scaledTo(_);if(r[x.key])break;if(r[x.key]=!0,!(f=this.getTile(x))&&g&&(f=this._addTile(x)),f&&(i[x.key]=x,g=f.wasRequested(),f.hasData()))break}}}return i},b.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],i=void 0,r=this._tiles[t].tileID;0<r.overscaledZ;){if(r.key in this._loadedParentTiles){i=this._loadedParentTiles[r.key];break}e.push(r.key);var n=r.scaledTo(r.overscaledZ-1);if(i=this._getLoadedTile(n))break;r=n}for(var o=0,a=e;o<a.length;o+=1){var s=a[o];this._loadedParentTiles[s]=i}}},b.prototype._addTile=function(t){var e=this._tiles[t.key];if(e)return e;(e=this._cache.getAndRemove(t))&&(this._setTileReloadTimer(t.key,e),e.tileID=t,this._state.initializeTileState(e,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,e)));var i=Boolean(e);return i||(e=new _t.Tile(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(e,this._tileLoaded.bind(this,e,t.key,e.state))),e?(e.uses++,this._tiles[t.key]=e,i||this._source.fire(new _t.Event("dataloading",{tile:e,coord:e.tileID,dataType:"source"})),e):null},b.prototype._setTileReloadTimer=function(t,e){var i=this;t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);var r=e.getExpiryTimeout();r&&(this._timers[t]=setTimeout(function(){i._reloadTile(t,"expired"),delete i._timers[t]},r))},b.prototype._removeTile=function(t){var e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),0<e.uses||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},b.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},b.prototype.tilesIn=function(t,l,e){var u=this,c=[],p=this.transform;if(!p)return c;for(var i=e?p.getCameraQueryGeometry(t):t,h=t.map(function(t){return p.pointCoordinate(t)}),d=i.map(function(t){return p.pointCoordinate(t)}),f=this.getIds(),m=1/0,y=1/0,v=-1/0,g=-1/0,r=0,n=d;r<n.length;r+=1){var o=n[r];m=Math.min(m,o.x),y=Math.min(y,o.y),v=Math.max(v,o.x),g=Math.max(g,o.y)}for(var a=function(t){var e=u._tiles[f[t]];if(!e.holdingForFade()){var i=e.tileID,r=Math.pow(2,p.zoom-e.tileID.overscaledZ),n=l*e.queryPadding*_t.EXTENT/e.tileSize/r,o=[i.getTilePoint(new _t.MercatorCoordinate(m,y)),i.getTilePoint(new _t.MercatorCoordinate(v,g))];if(o[0].x-n<_t.EXTENT&&o[0].y-n<_t.EXTENT&&0<=o[1].x+n&&0<=o[1].y+n){var a=h.map(function(t){return i.getTilePoint(t)}),s=d.map(function(t){return i.getTilePoint(t)});c.push({tile:e,tileID:i,queryGeometry:a,cameraQueryGeometry:s,scale:r})}}},s=0;s<f.length;s++)a(s);return c},b.prototype.getVisibleCoordinates=function(t){for(var e=this,i=this.getRenderableIds(t).map(function(t){return e._tiles[t].tileID}),r=0,n=i;r<n.length;r+=1){var o=n[r];o.posMatrix=this.transform.calculatePosMatrix(o.toUnwrapped())}return i},b.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(zt(this._source.type))for(var t in this._tiles){var e=this._tiles[t];if(void 0!==e.fadeEndTime&&e.fadeEndTime>=_t.browser.now())return!0}return!1},b.prototype.setFeatureState=function(t,e,i){t=t||"_geojsonTileLayer",this._state.updateState(t,e,i)},b.prototype.removeFeatureState=function(t,e,i){t=t||"_geojsonTileLayer",this._state.removeFeatureState(t,e,i)},b.prototype.getFeatureState=function(t,e){return t=t||"_geojsonTileLayer",this._state.getState(t,e)},b.prototype.setDependencies=function(t,e,i){var r=this._tiles[t];r&&r.setDependencies(e,i)},b.prototype.reloadTilesForDependencies=function(e,i){for(var t in this._tiles)this._tiles[t].hasDependency(e,i)&&this._reloadTile(t,"reloading");this._cache.filter(function(t){return!t.hasDependency(e,i)})},b}(_t.Evented);
vendor: 5,747 bytes, line 1
1function It(t,e){var i=Math.abs(2*t.wrap)-+(t.wrap<0),r=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||r-i||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function zt(t){return"raster"===t||"image"===t||"video"===t}function Pt(){return new _t.window.Worker(jr.workerUrl)}At.maxOverzooming=10,At.maxUnderzooming=3;var Mt=function(){this.active={}};Mt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length<Mt.workerCount;)this.workers.push(new Pt);return this.active[t]=!0,this.workers.slice()},Mt.prototype.release=function(t){delete this.active[t],0===Object.keys(this.active).length&&(this.workers.forEach(function(t){t.terminate()}),this.workers=null)};var Lt,Dt=Math.floor(_t.browser.hardwareConcurrency/2);function Rt(t,e){var i={};for(var r in t)"ref"!==r&&(i[r]=t[r]);return _t.refProperties.forEach(function(t){t in e&&(i[t]=e[t])}),i}function Bt(t){t=t.slice();for(var e=Object.create(null),i=0;i<t.length;i++)e[t[i].id]=t[i];for(var r=0;r<t.length;r++)"ref"in t[r]&&(t[r]=Rt(t[r],e[t[r].ref]));return t}Mt.workerCount=Math.max(Math.min(Dt,6),1);var Ot={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"};function Ft(t,e,i){i.push({command:Ot.addSource,args:[t,e[t]]})}function Ut(t,e,i){e.push({command:Ot.removeSource,args:[t]}),i[t]=!0}function Nt(t,e,i){var r;for(r in t[i])if(t[i].hasOwnProperty(r)&&"data"!==r&&!_t.deepEqual(t[i][r],e[i][r]))return!1;for(r in e[i])if(e[i].hasOwnProperty(r)&&"data"!==r&&!_t.deepEqual(t[i][r],e[i][r]))return!1;return!0}function jt(t,e,i,r,n,o){var a;for(a in e=e||{},t=t||{})t.hasOwnProperty(a)&&(_t.deepEqual(t[a],e[a])||i.push({command:o,args:[r,a,e[a],n]}));for(a in e)e.hasOwnProperty(a)&&!t.hasOwnProperty(a)&&(_t.deepEqual(t[a],e[a])||i.push({command:o,args:[r,a,e[a],n]}))}function Vt(t){return t.id}function qt(t,e){return t[e.id]=e,t}var Zt=function(t,e,i){var r=this.boxCells=[],n=this.circleCells=[];this.xCellCount=Math.ceil(t/i),this.yCellCount=Math.ceil(e/i);for(var o=0;o<this.xCellCount*this.yCellCount;o++)r.push([]),n.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function $t(t,e,i,r,n){var o=_t.create();return e?(_t.scale(o,o,[1/n,1/n,1]),i||_t.rotateZ(o,o,r.angle)):_t.multiply(o,r.labelPlaneMatrix,t),o}function Ht(t,e,i,r,n){if(e){var o=_t.clone(t);return _t.scale(o,o,[n,n,1]),i||_t.rotateZ(o,o,-r.angle),o}return r.glCoordMatrix}function Gt(t,e){var i=[t.x,t.y,0,1];ie(i,i,e);var r=i[3];return{point:new _t.Point(i[0]/r,i[1]/r),signedDistanceFromCamera:r}}function Wt(t,e,i,r,n,o,a,s){var l,u,c,p,h=r?t.textSizeData:t.iconSizeData,d=_t.evaluateSizeForZoom(h,i.transform.zoom),f=[256/i.width*2+1,256/i.height*2+1],m=r?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;m.clear();for(var y=t.lineVertexArray,v=r?t.text.placedSymbolArray:t.icon.placedSymbolArray,g=i.transform.width/i.transform.height,_=!1,x=0;x<v.length;x++){var b=v.get(x);if(b.hidden||b.writingMode===_t.WritingMode.vertical&&!_)ee(b.numGlyphs,m);else{_=!1;var w=[b.anchorX,b.anchorY,0,1];if(_t.transformMat4(w,w,e),u=f,void 0,c=(l=w)[0]/l[3],p=l[1]/l[3],c>=-u[0]&&c<=u[0]&&p>=-u[1]&&p<=u[1]){var S=.5+w[3]/i.transform.cameraToCenterDistance*.5,T=_t.evaluateSizeForFeature(h,d,b),k=a?T*S:T/S,E=new _t.Point(b.anchorX,b.anchorY),C=Gt(E,n).point,A={},I=Yt(b,k,!1,s,e,n,o,t.glyphOffsetArray,y,m,C,E,A,g);_=I.useVertical,(I.notEnoughRoom||_||I.needsFlipping&&Yt(b,k,!0,s,e,n,o,t.glyphOffsetArray,y,m,C,E,A,g).notEnoughRoom)&&ee(b.numGlyphs,m)}else ee(b.numGlyphs,m)}}r?t.text.dynamicLayoutVertexBuffer.updateData(m):t.icon.dynamicLayoutVertexBuffer.updateData(m)}function Xt(t,e,i,r,n,o,a,s,l,u,c,p){var h=s.glyphStartIndex+s.numGlyphs,d=s.lineStartIndex,f=s.lineStartIndex+s.lineLength,m=e.getoffsetX(s.glyphStartIndex),y=e.getoffsetX(h-1),v=Qt(t*m,i,r,n,o,a,s.segment,d,f,l,u,c,p);if(!v)return null;var g=Qt(t*y,i,r,n,o,a,s.segment,d,f,l,u,c,p);return g?{first:v,last:g}:null}function Kt(t,e,i,r){return t===_t.WritingMode.horizontal&&Math.abs(i.y-e.y)>Math.abs(i.x-e.x)*r?{useVertical:!0}:(t===_t.WritingMode.vertical?e.y<i.y:e.x>i.x)?{needsFlipping:!0}:null}function Yt(t,e,i,r,n,o,a,s,l,u,c,p,h,d){var f,m=e/24,y=t.lineOffsetX*m,v=t.lineOffsetY*m;if(1<t.numGlyphs){var g=t.glyphStartIndex+t.numGlyphs,_=t.lineStartIndex,x=t.lineStartIndex+t.lineLength,b=Xt(m,s,y,v,i,c,p,t,l,o,h,!1);if(!b)return{notEnoughRoom:!0};var w=Gt(b.first.point,a).point,S=Gt(b.last.point,a).point;if(r&&!i){var T=Kt(t.writingMode,w,S,d);if(T)return T}f=[b.first];for(var k=t.glyphStartIndex+1;k<g-1;k++)f.push(Qt(m*s.getoffsetX(k),y,v,i,c,p,t.segment,_,x,l,o,h,!1));f.push(b.last)}else{if(r&&!i){var E=Gt(p,n).point,C=t.lineStartIndex+t.segment+1,A=new _t.Point(l.getx(C),l.gety(C)),I=Gt(A,n),z=0<I.signedDistanceFromCamera?I.point:Jt(p,A,E,1,n),P=Kt(t.writingMode,E,z,d);if(P)return P}var M=Qt(m*s.getoffsetX(t.glyphStartIndex),y,v,i,c,p,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,l,o,h,!1);if(!M)return{notEnoughRoom:!0};f=[M]}for(var L=0,D=f;L<D.length;L+=1){var R=D[L];_t.addDynamicAttributes(u,R.point,R.angle)}return{}}function Jt(t,e,i,r,n){var o=Gt(t.add(t.sub(e)._unit()),n).point,a=i.sub(o);return i.add(a._mult(r/a.mag()))}
1function Qt(t,e,i,r,n,o,a,s,l,u,c,p,h){var d=r?t-e:t+e,f=0<d?1:-1,m=0;r&&(f*=-1,m=Math.PI),f<0&&(m+=Math.PI);for(var y=0<f?s+a:s+a+1,v=y,g=n,_=n,x=0,b=0,w=Math.abs(d);x+b<=w;){if((y+=f)<s||l<=y)return null;if(_=g,void 0===(g=p[y])){var S=new _t.Point(u.getx(y),u.gety(y)),T=Gt(S,c);if(0<T.signedDistanceFromCamera)g=p[y]=T.point;else{var k=y-f;g=Jt(0===x?o:new _t.Point(u.getx(k),u.gety(k)),S,_,w-x+1,c)}}x+=b,b=_.dist(g)}var E=(w-x)/b,C=g.sub(_),A=C.mult(E)._add(_);return A._add(C._unit()._perp()._mult(i*f)),{point:A,angle:m+Math.atan2(g.y-_.y,g.x-_.x),tileDistance:h?{prevTileDistance:y-f===v?0:u.gettileUnitDistanceFromAnchor(y-f),lastSegmentViewportDistance:w-x}:null}}Zt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Zt.prototype.insert=function(t,e,i,r,n){this._forEachCell(e,i,r,n,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(i),this.bboxes.push(r),this.bboxes.push(n)},Zt.prototype.insertCircle=function(t,e,i,r){this._forEachCell(e-r,i-r,e+r,i+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(i),this.circles.push(r)},Zt.prototype._insertBoxCell=function(t,e,i,r,n,o){this.boxCells[n].push(o)},Zt.prototype._insertCircleCell=function(t,e,i,r,n,o){this.circleCells[n].push(o)},Zt.prototype._query=function(t,e,i,r,n,o){if(i<0||t>this.width||r<0||e>this.height)return!n&&[];var a=[];if(t<=0&&e<=0&&this.width<=i&&this.height<=r){if(n)return!0;for(var s=0;s<this.boxKeys.length;s++)a.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l<this.circleKeys.length;l++){var u=this.circles[3*l],c=this.circles[3*l+1],p=this.circles[3*l+2];a.push({key:this.circleKeys[l],x1:u-p,y1:c-p,x2:u+p,y2:c+p})}return o?a.filter(o):a}var h={hitTest:n,seenUids:{box:{},circle:{}}};return this._forEachCell(t,e,i,r,this._queryCell,a,h,o),n?0<a.length:a},Zt.prototype._queryCircle=function(t,e,i,r,n){var o=t-i,a=t+i,s=e-i,l=e+i;if(a<0||o>this.width||l<0||s>this.height)return!r&&[];
vendor: 4,865 bytes, line 1
1var u=[],c={hitTest:r,circle:{x:t,y:e,radius:i},seenUids:{box:{},circle:{}}};return this._forEachCell(o,s,a,l,this._queryCellCircle,u,c,n),r?0<u.length:u},Zt.prototype.query=function(t,e,i,r,n){return this._query(t,e,i,r,!1,n)},Zt.prototype.hitTest=function(t,e,i,r,n){return this._query(t,e,i,r,!0,n)},Zt.prototype.hitTestCircle=function(t,e,i,r){return this._queryCircle(t,e,i,!0,r)},Zt.prototype._queryCell=function(t,e,i,r,n,o,a,s){var l=a.seenUids,u=this.boxCells[n];if(null!==u)for(var c=this.bboxes,p=0,h=u;p<h.length;p+=1){var d=h[p];if(!l.box[d]){l.box[d]=!0;var f=4*d;if(t<=c[f+2]&&e<=c[f+3]&&i>=c[f+0]&&r>=c[f+1]&&(!s||s(this.boxKeys[d]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[d],x1:c[f],y1:c[f+1],x2:c[f+2],y2:c[f+3]})}}}var m=this.circleCells[n];if(null!==m)for(var y=this.circles,v=0,g=m;v<g.length;v+=1){var _=g[v];if(!l.circle[_]){l.circle[_]=!0;var x=3*_;if(this._circleAndRectCollide(y[x],y[x+1],y[x+2],t,e,i,r)&&(!s||s(this.circleKeys[_]))){if(a.hitTest)return o.push(!0),!0;var b=y[x],w=y[x+1],S=y[x+2];o.push({key:this.circleKeys[_],x1:b-S,y1:w-S,x2:b+S,y2:w+S})}}}},Zt.prototype._queryCellCircle=function(t,e,i,r,n,o,a,s){var l=a.circle,u=a.seenUids,c=this.boxCells[n];if(null!==c)for(var p=this.bboxes,h=0,d=c;h<d.length;h+=1){var f=d[h];if(!u.box[f]){u.box[f]=!0;var m=4*f;if(this._circleAndRectCollide(l.x,l.y,l.radius,p[m+0],p[m+1],p[m+2],p[m+3])&&(!s||s(this.boxKeys[f])))return o.push(!0),!0}}var y=this.circleCells[n];if(null!==y)for(var v=this.circles,g=0,_=y;g<_.length;g+=1){var x=_[g];if(!u.circle[x]){u.circle[x]=!0;var b=3*x;if(this._circlesCollide(v[b],v[b+1],v[b+2],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[x])))return o.push(!0),!0}}},Zt.prototype._forEachCell=function(t,e,i,r,n,o,a,s){for(var l=this._convertToXCellCoord(t),u=this._convertToYCellCoord(e),c=this._convertToXCellCoord(i),p=this._convertToYCellCoord(r),h=l;h<=c;h++)for(var d=u;d<=p;d++){var f=this.xCellCount*d+h;if(n.call(this,t,e,i,r,f,o,a,s))return}},Zt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Zt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Zt.prototype._circlesCollide=function(t,e,i,r,n,o){var a=r-t,s=n-e,l=i+o;return a*a+s*s<l*l},Zt.prototype._circleAndRectCollide=function(t,e,i,r,n,o,a){var s=(o-r)/2,l=Math.abs(t-(r+s));if(s+i<l)return!1;var u=(a-n)/2,c=Math.abs(e-(n+u));if(u+i<c)return!1;if(l<=s||c<=u)return!0;var p=l-s,h=c-u;return p*p+h*h<=i*i};var te=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ee(t,e){for(var i=0;i<t;i++){var r=e.length;e.resize(r+4),e.float32.set(te,3*r)}}function ie(t,e,i){var r=e[0],n=e[1];return t[0]=i[0]*r+i[4]*n+i[12],t[1]=i[1]*r+i[5]*n+i[13],t[3]=i[3]*r+i[7]*n+i[15],t}var re=function(t,e,i){void 0===e&&(e=new Zt(t.width+200,t.height+200,25)),void 0===i&&(i=new Zt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=i,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function ne(t,e,i){t[e+4]=i?1:0}function oe(t,e,i){return e*(_t.EXTENT/(t.tileSize*Math.pow(2,i-t.tileID.overscaledZ)))}re.prototype.placeCollisionBox=function(t,e,i,r,n){var o=this.projectAndGetPerspectiveRatio(r,t.anchorPointX,t.anchorPointY),a=i*o.perspectiveRatio,s=t.x1*a+o.point.x,l=t.y1*a+o.point.y,u=t.x2*a+o.point.x,c=t.y2*a+o.point.y;return!this.isInsideGrid(s,l,u,c)||!e&&this.grid.hitTest(s,l,u,c,n)?{box:[],offscreen:!1}:{box:[s,l,u,c],offscreen:this.isOffscreen(s,l,u,c)}},re.prototype.approximateTileDistance=function(t,e,i,r,n){var o=n?1:r/this.pitchfactor,a=t.lastSegmentViewportDistance*i;return t.prevTileDistance+a+(o-1)*a*Math.abs(Math.sin(e))},re.prototype.placeCollisionCircles=function(t,e,i,r,n,o,a,s,l,u,c,p,h){var d=[],f=this.projectAnchor(l,n.anchorX,n.anchorY),m=s/24,y=n.lineOffsetX*s,v=n.lineOffsetY*s,g=new _t.Point(n.anchorX,n.anchorY),_=Xt(m,a,y,v,!1,Gt(g,u).point,g,n,o,u,{},!0),x=!1,b=!1,w=!0,S=f.perspectiveRatio*r,T=1/(r*i),k=0,E=0;_&&(k=this.approximateTileDistance(_.first.tileDistance,_.first.angle,T,f.cameraDistance,p),E=this.approximateTileDistance(_.last.tileDistance,_.last.angle,T,f.cameraDistance,p));for(var C=0;C<t.length;C+=5){var A=t[C],I=t[C+1],z=t[C+2],P=t[C+3];if(!_||P<-k||E<P)ne(t,C,!1);else{var M=this.projectPoint(l,A,I),L=z*S;if(0<d.length){var D=M.x-d[d.length-4],R=M.y-d[d.length-3];if(D*D+R*R<L*L*2&&C+8<t.length){var B=t[C+8];if(-k<B&&B<E){ne(t,C,!1);continue}}}var O=C/5;d.push(M.x,M.y,L,O),ne(t,C,!0);var F=M.x-L,U=M.y-L,N=M.x+L,j=M.y+L;if(w=w&&this.isOffscreen(F,U,N,j),b=b||this.isInsideGrid(F,U,N,j),!e&&this.grid.hitTestCircle(M.x,M.y,L,h)){if(!c)return{circles:[],offscreen:!1};x=!0}}}
vendor: 4,136 bytes, line 1
1return{circles:x||!b?[]:d,offscreen:w}},re.prototype.queryRenderedSymbols=function(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var e=[],i=1/0,r=1/0,n=-1/0,o=-1/0,a=0,s=t;a<s.length;a+=1){var l=s[a],u=new _t.Point(l.x+100,l.y+100);i=Math.min(i,u.x),r=Math.min(r,u.y),n=Math.max(n,u.x),o=Math.max(o,u.y),e.push(u)}for(var c={},p={},h=0,d=this.grid.query(i,r,n,o).concat(this.ignoredGrid.query(i,r,n,o));h<d.length;h+=1){var f=d[h],m=f.key;if(void 0===c[m.bucketInstanceId]&&(c[m.bucketInstanceId]={}),!c[m.bucketInstanceId][m.featureIndex]){var y=[new _t.Point(f.x1,f.y1),new _t.Point(f.x2,f.y1),new _t.Point(f.x2,f.y2),new _t.Point(f.x1,f.y2)];_t.polygonIntersectsPolygon(e,y)&&(c[m.bucketInstanceId][m.featureIndex]=!0,void 0===p[m.bucketInstanceId]&&(p[m.bucketInstanceId]=[]),p[m.bucketInstanceId].push(m.featureIndex))}}return p},re.prototype.insertCollisionBox=function(t,e,i,r,n){var o={bucketInstanceId:i,featureIndex:r,collisionGroupID:n};(e?this.ignoredGrid:this.grid).insert(o,t[0],t[1],t[2],t[3])},re.prototype.insertCollisionCircles=function(t,e,i,r,n){for(var o=e?this.ignoredGrid:this.grid,a={bucketInstanceId:i,featureIndex:r,collisionGroupID:n},s=0;s<t.length;s+=4)o.insertCircle(a,t[s],t[s+1],t[s+2])},re.prototype.projectAnchor=function(t,e,i){var r=[e,i,0,1];return ie(r,r,t),{perspectiveRatio:.5+this.transform.cameraToCenterDistance/r[3]*.5,cameraDistance:r[3]}},re.prototype.projectPoint=function(t,e,i){var r=[e,i,0,1];return ie(r,r,t),new _t.Point((r[0]/r[3]+1)/2*this.transform.width+100,(-r[1]/r[3]+1)/2*this.transform.height+100)},re.prototype.projectAndGetPerspectiveRatio=function(t,e,i){var r=[e,i,0,1];return ie(r,r,t),{point:new _t.Point((r[0]/r[3]+1)/2*this.transform.width+100,(-r[1]/r[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/r[3]*.5}},re.prototype.isOffscreen=function(t,e,i,r){return i<100||t>=this.screenRightBoundary||r<100||e>this.screenBottomBoundary},re.prototype.isInsideGrid=function(t,e,i,r){return 0<=i&&t<this.gridRightBoundary&&0<=r&&e<this.gridBottomBoundary};var ae=function(t,e,i,r){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):r&&i?1:0,this.placed=i};ae.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var se=function(t,e,i,r,n){this.text=new ae(t?t.text:null,e,i,n),this.icon=new ae(t?t.icon:null,e,r,n)};se.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var le=function(t,e,i){this.text=t,this.icon=e,this.skipFade=i},ue=function(t,e,i,r,n){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=i,this.bucketIndex=r,this.tileID=n},ce=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function pe(t,e,i,r,n){var o=_t.getAnchorAlignment(t),a=-(o.horizontalAlign-.5)*e,s=-(o.verticalAlign-.5)*i,l=_t.evaluateVariableOffset(t,r);return new _t.Point(a+l[0]*n,s+l[1]*n)}function he(t,e,i,r,n,o){var a=t.x1,s=t.x2,l=t.y1,u=t.y2,c=t.anchorPointX,p=t.anchorPointY,h=new _t.Point(e,i);return r&&h._rotate(n?o:-o),{x1:a+h.x,y1:l+h.y,x2:s+h.x,y2:u+h.y,anchorPointX:c,anchorPointY:p}}ce.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var de=function(t,e,i,r){this.transform=t.clone(),this.collisionIndex=new re(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new ce(i),(this.prevPlacement=r)&&(r.prevPlacement=void 0),this.placedOrientations={}};function fe(t,e,i,r,n){t.emplaceBack(e?1:0,i?1:0,r||0,n||0),t.emplaceBack(e?1:0,i?1:0,r||0,n||0),t.emplaceBack(e?1:0,i?1:0,r||0,n||0),t.emplaceBack(e?1:0,i?1:0,r||0,n||0)}de.prototype.getBucketParts=function(t,e,i,r){var n=i.getBucket(e),o=i.latestFeatureIndex;if(n&&o&&e.id===n.layerIds[0]){var a=i.collisionBoxArray,s=n.layers[0].layout,l=Math.pow(2,this.transform.zoom-i.tileID.overscaledZ
1),u=i.tileSize/_t.EXTENT,c=this.transform.calculatePosMatrix(i.tileID.toUnwrapped()),p=$t(c,"map"===s.get("text-pitch-alignment"),"map"===s.get("text-rotation-alignment"),this.transform,oe(i,1,this.transform.zoom));this.retainedQueryData[n.bucketInstanceId]=new ue(n.bucketInstanceId,o,n.sourceLayerIndex,n.index,i.tileID);var h={bucket:n,layout:s,posMatrix:c,textLabelPlaneMatrix:p,scale:l,textPixelRatio:u,holdingForFade:i.holdingForFade(),collisionBoxArray:a,partiallyEvaluatedTextSize:_t.evaluateSizeForZoom(n.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(n.sourceID)};if(r)for(var d=0,f=n.sortKeyRanges;d<f.length;d+=1){var m=f[d],y=m.sortKey,v=m.symbolInstanceStart,g=m.symbolInstanceEnd;t.push({sortKey:y,symbolInstanceStart:v,symbolInstanceEnd:g,parameters:h})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:n.symbolInstances.length,parameters:h})}},de.prototype.attemptAnchorPlacement=function(t,e,i,r,n,o,a,s,l,u,c,p,h,d,f){var m,y=[p.textOffset0,p.textOffset1],v=pe(t,i,r,y,n),g=this.collisionIndex.placeCollisionBox(he(e,v.x,v.y,o,a,this.transform.angle),c,s,l,u.predicate);if(!f||0!==this.collisionIndex.placeCollisionBox(he(f,v.x,v.y,o,a,this.transform.angle),c,s,l,u.predicate).box.length)return 0<g.box.length?(this.prevPlacement&&this.prevPlacement.variableOffsets[p.crossTileID]&&this.prevPlacement.placements[p.crossTileID]&&this.prevPlacement.placements[p.crossTileID].text&&(m=this.prevPlacement.variableOffsets[p.crossTileID].anchor),this.variableOffsets[p.crossTileID]={textOffset:y,width:i,height:r,anchor:t,textBoxScale:n,prevAnchor:m},this.markUsedJustification(h,t,p,d),h.allowVerticalPlacement&&(this.markUsedOrientation(h,d,p),this.placedOrientations[p.crossTileID]=d),{shift:v,placedGlyphBoxes:g}):void 0},de.prototype.placeLayerBucketPart=function(t,I,z){var P=this,e=t.parameters,M=e.bucket,L=e.layout,D=e.posMatrix,R=e.textLabelPlaneMatrix,B=e.scale,O=e.textPixelRatio,F=e.holdingForFade,i=e.collisionBoxArray,U=e.partiallyEvaluatedTextSize,N=e.collisionGroup,j=L.get("text-optional"),V=L.get("icon-optional"),q=L.get("text-allow-overlap"),Z=L.get("icon-allow-overlap"),$="map"===L.get("text-rotation-alignment"),H="map"===L.get("text-pitch-alignment"),G="none"!==L.get("icon-text-fit"),r="viewport-y"===L.get("symbol-z-order"),W=q&&(Z||!M.hasIconData()||V),X=Z&&(q||!M.hasTextData()||j);!M.collisionArrays&&i&&M.deserializeCollisionBoxes(i);var n=function(d,n){if(!I[d.crossTileID])if(F)P.placements[d.crossTileID]=new le(!1,!1,!1);else{var t,f=!1,e=!1,i=!0,m=null,o={box:null,offscreen:null},a={box:null,offscreen:null},r=null,s=null,l=0,u=0,c=0;n.textFeatureIndex&&(l=n.textFeatureIndex),n.verticalTextFeatureIndex&&(u=n.verticalTextFeatureIndex);var p=n.textBox;if(p){var h=function(t){var e=_t.WritingMode.horizontal;if(M.allowVerticalPlacement&&!t&&P.prevPlacement){var i=P.prevPlacement.placedOrientations[d.crossTileID];i&&(e=P.placedOrientations[d.crossTileID]=i,P.markUsedOrientation(M,e,d))}return e},y=function(t,e){if(M.allowVerticalPlacement&&0<d.numVerticalGlyphVertices&&n.verticalTextBox)for(var i=0,r=M.writingModes;i<r.length&&(r[i]===_t.WritingMode.vertical?(o=e(),a=o):o=t(),!(o&&o.box&&o.box.length));i+=1);else o=t()};if(L.get("text-variable-anchor")){var v=L.get("text-variable-anchor");if(P.prevPlacement&&P.prevPlacement.variableOffsets[d.crossTileID]){var g=P.prevPlacement.variableOffsets[d.crossTileID];0<v.indexOf(g.anchor)&&(v=v.filter(function(t){return t!==g.anchor})).unshift(g.anchor)}var _=function(t,e,i){for(var r=t.x2-t.x1,n=t.y2-t.y1,o=d.textBoxScale,a=G&&!Z?e:null,s={box:[],offscreen:!1},l=q?2*v.length:v.length,u=0;u<l;++u){var c=v[u%v.length],p=u>=v.length,h=P.attemptAnchorPlacement(c,t,r,n,o,$,H,O,D,N,p,d,M,i,a);if(h&&(s=h.placedGlyphBoxes)&&s.box&&s.box.length){f=!0,m=h.shift;break}}return s};y(function(){return _(p,n.iconBox,_t.WritingMode.horizontal)},function(){var t=n.verticalTextBox,e=o&&o.box&&o.box.length;
1return M.allowVerticalPlacement&&!e&&0<d.numVerticalGlyphVertices&&t?_(t,n.verticalIconBox,_t.WritingMode.vertical):{box:null,offscreen:null}}),o&&(f=o.box,i=o.offscreen);var x=h(o&&o.box);if(!f&&P.prevPlacement){var b=P.prevPlacement.variableOffsets[d.crossTileID];b&&(P.variableOffsets[d.crossTileID]=b,P.markUsedJustification(M,b.anchor,d,x))}}else{var w=function(t,e){var i=P.collisionIndex.placeCollisionBox(t,q,O,D,N.predicate);return i&&i.box&&i.box.length&&(P.markUsedOrientation(M,e,d),P.placedOrientations[d.crossTileID]=e),i};y(function(){return w(p,_t.WritingMode.horizontal)},function(){var t=n.verticalTextBox;return M.allowVerticalPlacement&&0<d.numVerticalGlyphVertices&&t?w(t,_t.WritingMode.vertical):{box:null,offscreen:null}}),h(o&&o.box&&o.box.length)}}f=(t=o)&&t.box&&0<t.box.length,i=t&&t.offscreen;var S=n.textCircles;if(S){var T=M.text.placedSymbolArray.get(d.centerJustifiedTextSymbolIndex),k=_t.evaluateSizeForFeature(M.textSizeData,U,T);r=P.collisionIndex.placeCollisionCircles(S,q,B,O,T,M.lineVertexArray,M.glyphOffsetArray,k,D,R,z,H,N.predicate),f=q||0<r.circles.length,i=i&&r.offscreen}if(n.iconFeatureIndex&&(c=n.iconFeatureIndex),n.iconBox){var E=function(t){var e=G&&m?he(t,m.x,m.y,$,H,P.transform.angle):t;return P.collisionIndex.placeCollisionBox(e,Z,O,D,N.predicate)};e=a&&a.box&&a.box.length&&n.verticalIconBox?0<(s=E(n.verticalIconBox)).box.length:0<(s=E(n.iconBox)).box.length,i=i&&s.offscreen}var C=j||0===d.numHorizontalGlyphVertices&&0===d.numVerticalGlyphVertices,A=V||0===d.numIconVertices;C||A?A?C||(e=e&&f):f=e&&f:e=f=e&&f,f&&t&&t.box&&(a&&a.box&&u?P.collisionIndex.insertCollisionBox(t.box,L.get("text-ignore-placement"),M.bucketInstanceId,u,N.ID):P.collisionIndex.insertCollisionBox(t.box,L.get("text-ignore-placement"),M.bucketInstanceId,l,N.ID)),e&&s&&P.collisionIndex.insertCollisionBox(s.box,L.get("icon-ignore-placement"),M.bucketInstanceId,c,N.ID),f&&r&&P.collisionIndex.insertCollisionCircles(r.circles,L.get("text-ignore-placement"),M.bucketInstanceId,l,N.ID),P.placements[d.crossTileID]=new le(f||W,e||X,i||M.justReloaded),I[d.crossTileID]=!0}};if(r)for(var o=M.getSortedSymbolIndexes(this.transform.angle),a=o.length-1;0<=a;--a){var s=o[a];n(M.symbolInstances.get(s),M.collisionArrays[s])}else for(var l=t.symbolInstanceStart;l<t.symbolInstanceEnd;l++)n(M.symbolInstances.get(l),M.collisionArrays[l]);M.justReloaded=!1},de.prototype.markUsedJustification=function(t,e,i,r){var n,o={left:i.leftJustifiedTextSymbolIndex,center:i.centerJustifiedTextSymbolIndex,right:i.rightJustifiedTextSymbolIndex};n=r===_t.WritingMode.vertical?i.verticalPlacedTextSymbolIndex:o[_t.getAnchorJustification(e)];for(var a=0,s=[i.leftJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.rightJustifiedTextSymbolIndex,i.verticalPlacedTextSymbolIndex];a<s.length;a+=1){var l=s[a];0<=l&&(t.text.placedSymbolArray.get(l).crossTileID=0<=n&&l!==n?0:i.crossTileID)}},de.prototype.markUsedOrientation=function(t,e,i){for(var r=e===_t.WritingMode.horizontal||e===_t.WritingMode.horizontalOnly?e:0,n=e===_t.WritingMode.vertical?e:0,o=0,a=[i.leftJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.rightJustifiedTextSymbolIndex];o<a.length;o+=1){var s=a[o];t.text.placedSymbolArray.get(s).placedOrientation=r}i.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(i.verticalPlacedTextSymbolIndex).placedOrientation=n)},de.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,i=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var r=e?e.symbolFadeChange(t):1,n=e?e.opacities:{},o=e?e.variableOffsets:{},a=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],u=n[s];i=u?(this.opacities[s]=new se(u,r,l.text,l.icon),i||l.text!==u.text.placed||l.icon!==u.icon.placed):(this.opacities[s]=new se(null,r,l.text,l.icon,l.skipFade),i||l.text||l.icon)}for(var c in n){var p=n[c];if(!this.opacities[c]){var h=new se(p,r,!1,!1);h.isHidden()||(this.opacities[c]=h,i=i||p.text.placed||p.icon.placed)}}for(var d in o)this.variableOffsets[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.variableOffsets[d]=o[d]);for(var f in a)this.placedOrientations[f]||!this.opacities[f]||this.opacities[f].isHidden()||(this.placedOrientations[f]=a[f]);i?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},de.prototype.updateLayerOpacities=function(t,e){for(var i={},r=0,n=e;r<n.length;r+=1){var o=n[r],a=o.getBucket(t);a&&o.latestFeatureIndex&&t.id===a.layerIds[0]&&this.updateBucketOpacities(a,i,o.collisionBoxArray)}},de.prototype.updateBucketOpacities=function(z,P,t){var M=this;z.hasTextData()&&z.text.opacityVertexArray.clear(),z.hasIconData()&&z.icon.opacityVertexArray.clear(),z.hasIconCollisionBoxData()&&z.iconCollisionBox.collisionVertexArray.clear(),z.hasTextCollisionBoxData()&&z.textCollisionBox.collisionVertexArray.clear(),z.hasIconCollisionCircleData()&&z.iconCollisionCircle.collisionVertexArray.clear(),z.hasTextCollisionCircleData()&&z.textCollisionCircle.collisionVertexArray.clear();
1var e=z.layers[0].layout,L=new se(null,0,!1,!1,!0),i=e.get("text-allow-overlap"),r=e.get("icon-allow-overlap"),D=e.get("text-variable-anchor"),R="map"===e.get("text-rotation-alignment"),B="map"===e.get("text-pitch-alignment"),O="none"!==e.get("icon-text-fit"),F=new se(null,0,i&&(r||!z.hasIconData()||e.get("icon-optional")),r&&(i||!z.hasTextData()||e.get("text-optional")),!0);!z.collisionArrays&&t&&(z.hasIconCollisionBoxData()||z.hasIconCollisionCircleData()||z.hasTextCollisionBoxData()||z.hasTextCollisionCircleData())&&z.deserializeCollisionBoxes(t);for(var U=function(t,e,i){for(var r=0;r<e/4;r++)t.opacityVertexArray.emplaceBack(i)},n=function(t){var e=z.symbolInstances.get(t),i=e.numHorizontalGlyphVertices,r=e.numVerticalGlyphVertices,n=e.crossTileID,o=P[n],a=M.opacities[n];o?a=L:a||(a=F,M.opacities[n]=a),P[n]=!0;var s=0<i||0<r,l=0<e.numIconVertices,u=M.placedOrientations[e.crossTileID],c=u===_t.WritingMode.vertical,p=u===_t.WritingMode.horizontal||u===_t.WritingMode.horizontalOnly;if(s){var h=we(a.text),d=c?Se:h;U(z.text,i,d);var f=p?Se:h;U(z.text,r,f);var m=a.text.isHidden();[e.rightJustifiedTextSymbolIndex,e.centerJustifiedTextSymbolIndex,e.leftJustifiedTextSymbolIndex].forEach(function(t){0<=t&&(z.text.placedSymbolArray.get(t).hidden=m||c?1:0)}),0<=e.verticalPlacedTextSymbolIndex&&(z.text.placedSymbolArray.get(e.verticalPlacedTextSymbolIndex).hidden=m||p?1:0);var y=M.variableOffsets[e.crossTileID];y&&M.markUsedJustification(z,y.anchor,e,u);var v=M.placedOrientations[e.crossTileID];v&&(M.markUsedJustification(z,"left",e,v),M.markUsedOrientation(z,v,e))}if(l){var g=we(a.icon),_=!(O&&e.verticalPlacedIconSymbolIndex&&c);if(0<=e.placedIconSymbolIndex){var x=_?g:Se;U(z.icon,e.numIconVertices,x),z.icon.placedSymbolArray.get(e.placedIconSymbolIndex).hidden=a.icon.isHidden()}if(0<=e.verticalPlacedIconSymbolIndex){var b=_?Se:g;U(z.icon,e.numVerticalIconVertices,b),z.icon.placedSymbolArray.get(e.verticalPlacedIconSymbolIndex).hidden=a.icon.isHidden()}}if(z.hasIconCollisionBoxData()||z.hasIconCollisionCircleData()||z.hasTextCollisionBoxData()||z.hasTextCollisionCircleData()){var w=z.collisionArrays[t];if(w){var S=new _t.Point(0,0);if(w.textBox||w.verticalTextBox){var T=!0;if(D){var k=M.variableOffsets[n];k?(S=pe(k.anchor,k.width,k.height,k.textOffset,k.textBoxScale),R&&S._rotate(B?M.transform.angle:-M.transform.angle)):T=!1}w.textBox&&fe(z.textCollisionBox.collisionVertexArray,a.text.placed,!T||c,S.x,S.y),w.verticalTextBox&&fe(z.textCollisionBox.collisionVertexArray,a.text.placed,!T||p,S.x,S.y)}var E=Boolean(!p&&w.verticalIconBox);w.iconBox&&fe(z.iconCollisionBox.collisionVertexArray,a.icon.placed,E,O?S.x:0,O?S.y:0),w.verticalIconBox&&fe(z.iconCollisionBox.collisionVertexArray,a.icon.placed,!E,O?S.x:0,O?S.y:0);var C=w.textCircles;if(C&&z.hasTextCollisionCircleData())for(var A=0;A<C.length;A+=5){var I=o||0===C[A+4];fe(z.textCollisionCircle.collisionVertexArray,a.text.placed,I)}}}},o=0;o<z.symbolInstances.length;o++)n(o);z.sortFeatures(this.transform.angle),this.retainedQueryData[z.bucketInstanceId]&&(this.retainedQueryData[z.bucketInstanceId].featureSortOrder=z.featureSortOrder),z.hasTextData()&&z.text.opacityVertexBuffer&&z.text.opacityVertexBuffer.updateData(z.text.opacityVertexArray),z.hasIconData()&&z.icon.opacityVertexBuffer&&z.icon.opacityVertexBuffer.updateData(z.icon.opacityVertexArray),z.hasIconCollisionBoxData()&&z.iconCollisionBox.collisionVertexBuffer&&z.iconCollisionBox.collisionVertexBuffer.updateData(z.iconCollisionBox.collisionVertexArray),z.hasTextCollisionBoxData()&&z.textCollisionBox.collisionVertexBuffer&&z.textCollisionBox.collisionVertexBuffer.updateData(z.textCollisionBox.collisionVertexArray),z.hasIconCollisionCircleData()&&z.iconCollisionCircle.collisionVertexBuffer&&z.iconCollisionCircle.collisionVertexBuffer.updateData(z.iconCollisionCircle.collisionVertexArray),z.hasTextCollisionCircleData()&&z.textCollisionCircle.collisionVertexBuffer&&z.textCollisionCircle.collisionVertexBuffer.updateData(z.textCollisionCircle.collisionVertexArray)},de.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},de.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},de.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration},de.prototype.stillRecent=function(t,e){var i=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*i>t},de.prototype.setStale=function(){this.stale=!0};var me=Math.pow(2,25),ye=Math.pow(2,24),ve=Math.pow(2,17),ge=Math.pow(2,16),_e=Math.pow(2,9),xe=Math.pow(2,8),be=Math.pow(2,1);function we(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,i=Math.floor(127*t.opacity);return i*me+e*ye+i*ve+e*ge+i*_e+e*xe+i*be+e}var Se=0,Te=function(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};
vendor: 4,406 bytes, line 1
1Te.prototype.continuePlacement=function(t,e,i,r,n){for(var o=this._bucketParts;this._currentTileIndex<t.length;){var a=t[this._currentTileIndex];if(e.getBucketParts(o,r,a,this._sortAcrossTiles),this._currentTileIndex++,n())return!0}for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort(function(t,e){return t.sortKey-e.sortKey}));this._currentPartIndex<o.length;){var s=o[this._currentPartIndex];if(e.placeLayerBucketPart(s,this._seenCrossTileIDs,i),this._currentPartIndex++,n())return!0}return!1};var ke=function(t,e,i,r,n,o,a){this.placement=new de(t,n,o,a),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=i,this._showCollisionBoxes=r,this._done=!1};ke.prototype.isDone=function(){return this._done},ke.prototype.continuePlacement=function(t,e,i){for(var r=this,n=_t.browser.now(),o=function(){var t=_t.browser.now()-n;return!r._forceFullPlacement&&2<t};0<=this._currentPlacementIndex;){var a=e[t[this._currentPlacementIndex]],s=this.placement.collisionIndex.transform.zoom;if("symbol"===a.type&&(!a.minzoom||a.minzoom<=s)&&(!a.maxzoom||a.maxzoom>s)){if(this._inProgressLayer||(this._inProgressLayer=new Te(a)),this._inProgressLayer.continuePlacement(i[a.source],this.placement,this._showCollisionBoxes,a,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ke.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Ee=512/_t.EXTENT/2,Ce=function(t,e,i){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=i;for(var r=0;r<e.length;r++){var n=e.get(r),o=n.key;this.indexedSymbolInstances[o]||(this.indexedSymbolInstances[o]=[]),this.indexedSymbolInstances[o].push({crossTileID:n.crossTileID,coord:this.getScaledCoordinates(n,t)})}};Ce.prototype.getScaledCoordinates=function(t,e){var i=e.canonical.z-this.tileID.canonical.z,r=Ee/Math.pow(2,i);return{x:Math.floor((e.canonical.x*_t.EXTENT+t.anchorX)*r),y:Math.floor((e.canonical.y*_t.EXTENT+t.anchorY)*r)}},Ce.prototype.findMatches=function(t,e,i){for(var r=this.tileID.canonical.z<e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),n=0;n<t.length;n++){var o=t.get(n);if(!o.crossTileID){var a=this.indexedSymbolInstances[o.key];if(a)for(var s=this.getScaledCoordinates(o,e),l=0,u=a;l<u.length;l+=1){var c=u[l];if(Math.abs(c.coord.x-s.x)<=r&&Math.abs(c.coord.y-s.y)<=r&&!i[c.crossTileID]){i[c.crossTileID]=!0,o.crossTileID=c.crossTileID;break}}}}};var Ae=function(){this.maxCrossTileID=0};Ae.prototype.generate=function(){return++this.maxCrossTileID};var Ie=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Ie.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var i in this.indexes){var r=this.indexes[i],n={};for(var o in r){var a=r[o];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+e),n[a.tileID.key]=a}this.indexes[i]=n}this.lng=t},Ie.prototype.addBucket=function(t,e,i){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var r=0;r<e.symbolInstances.length;r++)e.symbolInstances.get(r).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var n=this.usedCrossTileIDs[t.overscaledZ];for(var o in this.indexes){var a=this.indexes[o];if(Number(o)>t.overscaledZ)for(var s in a){var l=a[s];l.tileID.isChildOf(t)&&l.findMatches(e.symbolInstances,t,n)}else{var u=a[t.scaledTo(Number(o)).key];u&&u.findMatches(e.symbolInstances,t,n)}}for(var c=0;c<e.symbolInstances.length;c++){var p=e.symbolInstances.get(c);p.crossTileID||(p.crossTileID=i.generate(),n[p.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new Ce(t,e.symbolInstances,e.bucketInstanceId),!0},Ie.prototype.removeBucketCrossTileIDs=function(t,e){for(var i in e.indexedSymbolInstances)for(var r=0,n=e.indexedSymbolInstances[i];r<n.length;r+=1){var o=n[r];delete this.usedCrossTileIDs[t][o.crossTileID]}},Ie.prototype.removeStaleBuckets=function(t){var e=!1;for(var i in this.indexes){var r=this.indexes[i];for(var n in r)t[r[n].bucketInstanceId]||(this.removeBucketCrossTileIDs(i,r[n]),delete r[n],e=!0)}return e};var ze=function(){this.layerIndexes={},this.crossTileIDs=new Ae,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};
1ze.prototype.addLayer=function(t,e,i){var r=this.layerIndexes[t.id];void 0===r&&(r=this.layerIndexes[t.id]=new Ie);var n=!1,o={};r.handleWrapJump(i);for(var a=0,s=e;a<s.length;a+=1){var l=s[a],u=l.getBucket(t);u&&t.id===u.layerIds[0]&&(u.bucketInstanceId||(u.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(l.tileID,u,this.crossTileIDs)&&(n=!0),o[u.bucketInstanceId]=!0)}return r.removeStaleBuckets(o)&&(n=!0),n},ze.prototype.pruneUnusedLayers=function(t){var e={};for(var i in t.forEach(function(t){e[t]=!0}),this.layerIndexes)e[i]||delete this.layerIndexes[i]};var Pe=function(t,e){return _t.emitValidationErrors(t,e&&e.filter(function(t){return"source.canvas"!==t.identifier}))},Me=_t.pick(Ot,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),Le=_t.pick(Ot,["setCenter","setZoom","setBearing","setPitch"]),De=function(){var t={},e=_t.styleSpec.$version;for(var i in _t.styleSpec.$root){var r=_t.styleSpec.$root[i];if(r.required){var n;null!=(n="version"===i?e:"array"===r.type?[]:{})&&(t[i]=n)}}return t}(),Re=function(i){function n(t,e){var o=this;void 0===e&&(e={}),i.call(this),this.map=t,this.dispatcher=new w((Lt||(Lt=new Mt),Lt),this),this.imageManager=new u,this.imageManager.setEventedParent(this),this.glyphManager=new y(t._requestManager,e.localIdeographFontFamily),this.lineAtlas=new b(256,512),this.crossTileSymbolIndex=new ze,this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new _t.ZoomHistory,this._loaded=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",_t.getReferrer());var r=this;this._rtlTextPluginCallback=n.registerForPluginStateChange(function(t){var e={pluginStatus:t.pluginStatus,pluginURL:t.pluginURL};r.dispatcher.broadcast("syncRTLPluginState",e,function(t,e){if(_t.triggerPluginCompletionEvent(t),e&&e.every(function(t){return t}))for(var i in r.sourceCaches)r.sourceCaches[i].reload()})}),this.on("data",function(t){if("source"===t.dataType&&"metadata"===t.sourceDataType){var e=o.sourceCaches[t.sourceId];if(e){var i=e.getSource();if(i&&i.vectorLayerIds)for(var r in o._layers){var n=o._layers[r];n.source===i.id&&o._validateLayer(n)}}}})}return i&&(n.__proto__=i),((n.prototype=Object.create(i&&i.prototype)).constructor=n).prototype.loadURL=function(t,e){var i=this;void 0===e&&(e={}),this.fire(new _t.Event("dataloading",{dataType:"style"}));var r="boolean"==typeof e.validate?e.validate:!_t.isMapboxURL(t);t=this.map._requestManager.normalizeStyleURL(t,e.accessToken);var n=this.map._requestManager.transformRequest(t,_t.ResourceType.Style);this._request=_t.getJSON(n,function(t,e){i._request=null,t?i.fire(new _t.ErrorEvent(t)):e&&i._load(e,r)})},n.prototype.loadJSON=function(t,e){var i=this;void 0===e&&(e={}),this.fire(new _t.Event("dataloading",{dataType:"style"})),this._request=_t.browser.frame(function(){i._request=null,i._load(t,!1!==e.validate)})},n.prototype.loadEmpty=function(){this.fire(new _t.Event("dataloading",{dataType:"style"})),this._load(De,!1)},n.prototype._load=function(t,e){if(!e||!Pe(this,_t.validateStyle(t))){for(var i in this._loaded=!0,(this.stylesheet=t).sources)this.addSource(i,t.sources[i],{validate:!1});t.sprite?this._loadSprite(t.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(t.glyphs);var r=Bt(this.stylesheet.layers);this._order=r.map(function(t){return t.id}),this._layers={};for(var n=0,o=r;n<o.length;n+=1){var a=o[n];(a=_t.createStyleLayer(a)).setEventedParent(this,{layer:{id:a.id}}),this._layers[a.id]=a}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new _(this.stylesheet.light),this.fire(new _t.Event("data",{dataType:"style"})),this.fire(new _t.Event("style.load"))}},n.prototype._loadSprite=function(t){var r=this;this._spriteRequest=function(t,e,f){var m,y,v,i=1<_t.browser.devicePixelRatio?"@2x":"",r=_t.getJSON(e.transformRequest(e.normalizeSpriteURL(t,i,".json"),_t.ResourceType.SpriteJSON),function(t,e){r=null,v||(v=t,m=e,o())}),n=_t.getImage(e.transformRequest(e.normalizeSpriteURL(t,i,".png"),_t.ResourceType.SpriteImage),function(t,e){n=null,v||(v=t,y=e,o())});function o(){if(v)f(v);else if(m&&y){var t=_t.browser.getImageData(y),e={};for(var i in m){var r=m[i],n=r.width,o=r.height,a=r.x,s=r.y,l=r.sdf,u=r.pixelRatio,c=r.stretchX,p=r.stretchY,h=r.content,d=new _t.RGBAImage({width:n,height:o});_t.RGBAImage.copy(t,d,{x:a,y:s},{x:0,y:0},{width:n,height:o}),e[i]={data:d,pixelRatio:u,sdf:l,stretchX:c,stretchY:p,content:h}}f(null,e)}}return{cancel:function(){r&&(r.cancel(),r=null),n&&(n.cancel(),n=null)}}}(t,this.map._requestManager,function(t,e){if(r._spriteRequest=null,t)r.fire(new _t.ErrorEvent(t));else if(e)for(var i in e)r.imageManager.addImage(i,e[i]);r.imageManager.setLoaded(!0),r.dispatcher.broadcast("setImages",r.imageManager.listImages()),r.fire(new _t.Event("data",{dataType:"style"}))})},n.prototype._validateLayer=function(t){var e=this.sourceCaches[t.source];if(e){var i=t.sourceLayer;if(i){var r=e.getSource();("geojson"===r.type||r.vectorLayerIds&&-1===r.vectorLayerIds.indexOf(i))&&this.fire(new _t.ErrorEvent(new Error('Source layer "'+i+'" does not exist on source "'+r.id+'" as specified by style layer "'+t.id+'"')))}}},n.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},n.prototype._serializeLayers=function(t){for(var e=[],i=0,r=t;i<r.length;i+=1){var n=r[i],o=this._layers[n];"custom"!==o.type&&e.push(o.serialize())}return e},n.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},n.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},n.prototype.update=function(t){if(this._loaded){var e=this._changed;if(this._changed){var i=Object.keys(this._updatedLayers),r=Object.keys(this._removedLayers);for(var n in(i.length||r.length)&&this._updateWorkerLayers(i,r),this._updatedSources){var o=this._updatedSources[n];"reload"===o?this._reloadSource(n):"clear"===o&&this._clearSource(n)}for(var a in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[a].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}for(var s in this.sourceCaches)this.sourceCaches[s].used=!1;for(var l=this.imageManager.listImages(),u=0,c=this._order;u<c.length;u+=1){var p=c[u],h=this._layers[p];h.recalculate(t,l),!h.isHidden(t.zoom)&&h.source&&(this.sourceCaches[h.source].used=!0)}this.light.recalculate(t),this.z=t.zoom,e&&this.fire(new _t.Event("data",{dataType:"style"}))}},n.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}},n.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(t),removedIds:e})},n.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},n.prototype.setState=function(t){var e=this;if(this._checkLoaded(),Pe(this,_t.validateStyle(t)))return!1;(t=_t.clone$1(t)).layers=Bt(t.layers);var i=function(t,e){if(!t)return[{command:Ot.setStyle,args:[e]}];var i=[];try{if(!_t.deepEqual(t.version,e.version))return[{command:Ot.setStyle,args:[e]}];_t.deepEqual(t.center,e.center)||i.push({command:Ot.setCenter,args:[e.center]}),_t.deepEqual(t.zoom,e.zoom)||i.push({command:Ot.setZoom,args:[e.zoom]}),_t.deepEqual(t.bearing,e.bearing)||i.push({command:Ot.setBearing,args:[e.bearing]}),_t.deepEqual(t.pitch,e.pitch)||i.push({command:Ot.setPitch,args:[e.pitch]}),_t.deepEqual(t.sprite,e.sprite)||i.push({command:Ot.setSprite,args:[e.sprite]}),_t.deepEqual(t.glyphs,e.glyphs)||i.push({command:Ot.setGlyphs,args:[e.glyphs]}),_t.deepEqual(t.transition,e.transition)||i.push({command:Ot.setTransition,args:[e.transition]}),_t.deepEqual(t.light,e.light)||i.push({command:Ot.setLight,args:[e.light]});var r={},n=[];
1!function(t,e,i,r){var n,o,a,s;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&(e.hasOwnProperty(n)||Ut(n,i,r));for(n in e)e.hasOwnProperty(n)&&(t.hasOwnProperty(n)?_t.deepEqual(t[n],e[n])||("geojson"===t[n].type&&"geojson"===e[n].type&&Nt(t,e,n)?i.push({command:Ot.setGeoJSONSourceData,args:[n,e[n].data]}):(a=e,Ut(o=n,s=i,r),Ft(o,a,s))):Ft(n,e,i))}(t.sources,e.sources,n,r);var o=[];t.layers&&t.layers.forEach(function(t){r[t.source]?i.push({command:Ot.removeLayer,args:[t.id]}):o.push(t)}),i=i.concat(n),function(t,e,i){e=e||[];var r,n,o,a,s,l,u,c=(t=t||[]).map(Vt),p=e.map(Vt),h=t.reduce(qt,{}),d=e.reduce(qt,{}),f=c.slice(),m=Object.create(null);for(n=r=0;r<c.length;r++)o=c[r],d.hasOwnProperty(o)?n++:(i.push({command:Ot.removeLayer,args:[o]}),f.splice(f.indexOf(o,n),1));for(n=r=0;r<p.length;r++)o=p[p.length-1-r],f[f.length-1-r]!==o&&(h.hasOwnProperty(o)?(i.push({command:Ot.removeLayer,args:[o]}),f.splice(f.lastIndexOf(o,f.length-n),1)):n++,l=f[f.length-r],i.push({command:Ot.addLayer,args:[d[o],l]}),f.splice(f.length-r,0,o),m[o]=!0);for(r=0;r<p.length;r++)if(a=h[o=p[r]],s=d[o],!m[o]&&!_t.deepEqual(a,s))if(_t.deepEqual(a.source,s.source)&&_t.deepEqual(a["source-layer"],s["source-layer"])&&_t.deepEqual(a.type,s.type)){for(u in jt(a.layout,s.layout,i,o,null,Ot.setLayoutProperty),jt(a.paint,s.paint,i,o,null,Ot.setPaintProperty),_t.deepEqual(a.filter,s.filter)||i.push({command:Ot.setFilter,args:[o,s.filter]}),_t.deepEqual(a.minzoom,s.minzoom)&&_t.deepEqual(a.maxzoom,s.maxzoom)||i.push({command:Ot.setLayerZoomRange,args:[o,s.minzoom,s.maxzoom]}),a)a.hasOwnProperty(u)&&"layout"!==u&&"paint"!==u&&"filter"!==u&&"metadata"!==u&&"minzoom"!==u&&"maxzoom"!==u&&(0===u.indexOf("paint.")?jt(a[u],s[u],i,o,u.slice(6),Ot.setPaintProperty):_t.deepEqual(a[u],s[u])||i.push({command:Ot.setLayerProperty,args:[o,u,s[u]]}));for(u in s)s.hasOwnProperty(u)&&!a.hasOwnProperty(u)&&"layout"!==u&&"paint"!==u&&"filter"!==u&&"metadata"!==u&&"minzoom"!==u&&"maxzoom"!==u&&(0===u.indexOf("paint.")?jt(a[u],s[u],i,o,u.slice(6),Ot.setPaintProperty):_t.deepEqual(a[u],s[u])||i.push({command:Ot.setLayerProperty,args:[o,u,s[u]]}))}else i.push({command:Ot.removeLayer,args:[o]}),l=f[f.lastIndexOf(o)+1],i.push({command:Ot.addLayer,args:[s,l]})}(o,e.layers,i)}catch(t){console.warn("Unable to compute style diff:",t),i=[{command:Ot.setStyle,args:[e]}]}return i}(this.serialize(),t).filter(function(t){return!(t.command in Le)});if(0===i.length)return!1;var r=i.filter(function(t){return!(t.command in Me)});if(0<r.length)throw new Error("Unimplemented: "+r.map(function(t){return t.command}).join(", ")+".");return i.forEach(function(t){"setTransition"!==t.command&&e[t.command].apply(e,t.args)}),this.stylesheet=t,!0},n.prototype.addImage=function(t,e){if(this.getImage(t))return this.fire(new _t.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(t,e),this._changedImages[t]=!0,this._changed=!0,this.fire(new _t.Event("data",{dataType:"style"}))},n.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},n.prototype.getImage=function(t){return this.imageManager.getImage(t)},n.prototype.removeImage=function(t){if(!this.getImage(t))return this.fire(new _t.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(t),this._changedImages[t]=!0,this._changed=!0,this.fire(new _t.Event("data",{dataType:"style"}))},n.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},n.prototype.addSource=function(t,e,i){var r=this;if(void 0===i&&(i={}),this._checkLoaded(),void 0!==this.sourceCaches[t])throw new Error("There is already a source with this ID");if(!e.type)throw new Error("The type property must be defined, but the only the following properties were given: "+Object.keys(e).join(", ")+".");if(!(0<=["vector","raster","geojson","video","image"].indexOf(e.type)&&this._validate(_t.validateStyle.source,"sources."+t,e,null,i))){this.map&&this.map._collectResourceTiming&&(e.collectResourceTiming=!0);var n=this.sourceCaches[t]=new At(t,e,this.dispatcher);n.style=this,n.setEventedParent(this,function(){return{isSourceLoaded:r.loaded(),source:n.seri
vendor: 1,554 bytes, line 1
1alize(),sourceId:t}}),n.onAdd(this.map),this._changed=!0}},n.prototype.removeSource=function(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error("There is no source with this ID");for(var e in this._layers)if(this._layers[e].source===t)return this.fire(new _t.ErrorEvent(new Error('Source "'+t+'" cannot be removed while layer "'+e+'" is using it.')));var i=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],i.fire(new _t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),i.setEventedParent(null),i.clearTiles(),i.onRemove&&i.onRemove(this.map),this._changed=!0},n.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},n.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},n.prototype.addLayer=function(t,e,i){void 0===i&&(i={}),this._checkLoaded();var r=t.id;if(this.getLayer(r))this.fire(new _t.ErrorEvent(new Error('Layer with id "'+r+'" already exists on this map')));else{var n;if("custom"===t.type){if(Pe(this,_t.validateCustomStyleLayer(t)))return;n=_t.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(r,t.source),t=_t.clone$1(t),t=_t.extend(t,{source:r})),this._validate(_t.validateStyle.layer,"layers."+r,t,{arrayIndex:-1},i))return;n=_t.createStyleLayer(t),this._validateLayer(n),n.setEventedParent(this,{layer:{id:r}})}var o=e?this._order.indexOf(e):this._order.length;if(e&&-1===o)this.fire(new _t.ErrorEvent(new Error('Layer with i
1d "'+e+'" does not exist on this map.')));else{if(this._order.splice(o,0,r),this._layerOrderChanged=!0,this._layers[r]=n,this._removedLayers[r]&&n.source&&"custom"!==n.type){var a=this._removedLayers[r];delete this._removedLayers[r],a.type!==n.type?this._updatedSources[n.source]="clear":(this._updatedSources[n.source]="reload",this.sourceCaches[n.source].pause())}this._updateLayer(n),n.onAdd&&n.onAdd(this.map)}}},n.prototype.moveLayer=function(t,e){if(this._checkLoaded(),this._changed=!0,this._layers[t]){if(t!==e){var i=this._order.indexOf(t);this._order.splice(i,1);var r=e?this._order.indexOf(e):this._order.length;e&&-1===r?this.fire(new _t.ErrorEvent(new Error('Layer with id "'+e+'" does not exist on this map.'))):(this._order.splice(r,0,t),this._layerOrderChanged=!0)}}else this.fire(new _t.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be moved.")))},n.prototype.removeLayer=function(t){this._checkLoaded();var e=this._layers[t];if(e){e.setEventedParent(null);var i=this._order.indexOf(t);this._order.splice(i,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=e,delete this._layers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],e.onRemove&&e.onRemove(this.map)}else this.fire(new _t.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be removed.")))},n.prototype.getLayer=function(t){return this._layers[t]},n.prototype.setLayerZoomRange=function(t,e,i){this._checkLoaded();var r=this.getLayer(t);r?r.minzoom===e&&r.maxzoom===i||(null!=e&&(r.minzoom=e),null!=i&&(r.maxzoom=i),this._updateLayer(r)):this.fire(new _t.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot have zoom extent.")))},n.prototype.setFilter=function(t,e,i){void 0===i&&(i={}),this._checkLoaded();var r=this.getLayer(t);if(r){if(!_t.deepEqual(r.filter,e))return null==e?(r.filter=void 0,void this._updateLayer(r)):void(this._validate(_t.validateStyle.filter,"layers."+r.id+".filter",e,null,i)||(r.filter=_t.clone$1(e),this._updateLayer(r)))}else this.fire(new _t.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be filtered.")))},n.prototype.getFilter=function(t){return _t.clone$1(this.getLayer(t).filter)},n.prototype.setLayoutProperty=function(t,e,i,r){void 0===r&&(r={}),this._checkLoaded();var n=this.getLayer(t);n?_t.deepEqual(n.getLayoutProperty(e),i)||(n.setLayoutProperty(e,i,r),this._updateLayer(n)):this.fire(new _t.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getLayoutProperty=function(t,e){var i=this.getLayer(t);if(i)return i.getLayoutProperty(e);this.fire(new _t.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style.")))},n.prototype.setPaintProperty=function(t,e,i,r){void 0===r&&(r={}),this._checkLoaded();var n=this.getLayer(t);n?_t.deepEqual(n.getPaintProperty(e),i)||(n.setPaintProperty(e,i,r)&&this._updateLayer(n),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new _t.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},n.prototype.setFeatureState=function(t,e){this._checkLoaded();var i=t.source,r=t.sourceLayer,n=this.sourceCaches[i];if(void 0!==n){var o=n.getSource().type;"geojson"===o&&r?this.fire(new _t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==o||r?(void 0===t.id&&this.fire(new _t.ErrorEvent(new Error("The feature id parameter must be provided."))),n.setFeatureState(r,t.id,e)):this.fire(new _t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new _t.ErrorEvent(new Error("The source '"+i+"' does not exist in the map's style.")))},n.prototype.removeFeatureState=function(t,e){this._checkLoaded();var i=t.source,r=this.sourceCaches[i];if(void 0!==r){var n=r.getSource().type,o="vector"===n?t.sourceLayer:void 0;"vector"!==n||o?e&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new _t.ErrorEvent(new Error("A feature id is requred to remove its specific state property."))):r.removeFeatureState(
1o,t.id,e):this.fire(new _t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new _t.ErrorEvent(new Error("The source '"+i+"' does not exist in the map's style.")))},n.prototype.getFeatureState=function(t){this._checkLoaded();var e=t.source,i=t.sourceLayer,r=this.sourceCaches[e];if(void 0!==r){if("vector"!==r.getSource().type||i)return void 0===t.id&&this.fire(new _t.ErrorEvent(new Error("The feature id parameter must be provided."))),r.getFeatureState(i,t.id);this.fire(new _t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new _t.ErrorEvent(new Error("The source '"+e+"' does not exist in the map's style.")))},n.prototype.getTransition=function(){return _t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},n.prototype.serialize=function(){return _t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,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,sources:_t.mapObject(this.sourceCaches,function(t){return t.serialize()}),layers:this._serializeLayers(this._order)},function(t){return void 0!==t})},n.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.sourceCaches[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._changed=!0},n.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,i=function(t){return"fill-extrusion"===e._layers[t].type},r={},n=[],o=this._order.length-1;0<=o;o--){var a=this._order[o];if(i(a)){r[a]=o;for(var s=0,l=t;s<l.length;s+=1){var u=l[s][a];if(u)for(var c=0,p=u;c<p.length;c+=1){var h=p[c];n.push(h)}}}}n.sort(function(t,e){return e.intersectionZ-t.intersectionZ});for(var d=[],f=this._order.length-1;0<=f;f--){var m=this._order[f];if(i(m))for(var y=n.length-1;0<=y;y--){var v=n[y].feature;if(r[v.layer.id]<f)break;d.push(v),n.pop()}else for(var g=0,_=t;g<_.length;g+=1){var x=_[g][m];if(x)for(var b=0,w=x;b<w.length;b+=1){var S=w[b];d.push(S.feature)}}}return d},n.prototype.queryRenderedFeatures=function(t,e,i){e&&e.filter&&this._validate(_t.validateStyle.filter,"queryRenderedFeatures.filter",e.filter,null,e);var r={};if(e&&e.layers){if(!Array.isArray(e.layers))return this.fire(new _t.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(var n=0,o=e.layers;n<o.length;n+=1){var a=o[n],s=this._layers[a];if(!s)return this.fire(new _t.ErrorEvent(new Error("The layer '"+a+"' does not exist in the map's style and cannot be queried for features."))),[];r[s.source]=!0}}var l=[];for(var u in this.sourceCaches)e.layers&&!r[u]||l.push(D(this.sourceCaches[u],this._layers,t,e,i));return this.placement&&l.push(function(l,o,t,u,e,i){for(var c={},p=e.queryRenderedSymbols(t),r=[],n=0,a=Object.keys(p).map(Number);n<a.length;n+=1){var s=a[n];r.push(i[s])}r.sort(R);for(var h=function(){var n=f[d],t=n.featureIndex.lookupSymbolFeatures(p[n.bucketInstanceId],n.bucketIndex,n.sourceLayerIndex,u.filter,u.layers,l);for(var e in t){var i=c[e]=c[e]||[],r=t[e];r.sort(function(t,e){var i=n.featureSortOrder;if(i){var r=i.indexOf(t.featureIndex);return i.indexOf(e.featureIndex)-r}return e.featureIndex-t.featureIndex});for(var o=0,a=r;o<a.length;o+=1){var s=a[o];i.push(s)}}},d=0,f=r;d<f.length;d+=1)h();
vendor: 4,173 bytes, line 1
1var m=function(n){c[n].forEach(function(t){var e=t.feature,i=l[n],r=o[i.source].getFeatureState(e.layer["source-layer"],e.id);e.source=e.layer.source,e.layer["source-layer"]&&(e.sourceLayer=e.layer["source-layer"]),e.state=r})};for(var y in c)m(y);return c}(this._layers,this.sourceCaches,t,e,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(l)},n.prototype.querySourceFeatures=function(t,e){e&&e.filter&&this._validate(_t.validateStyle.filter,"querySourceFeatures.filter",e.filter,null,e);var i=this.sourceCaches[t];return i?function(e,t){for(var i=e.getRenderableIds().map(function(t){return e.getTileByID(t)}),r=[],n={},o=0;o<i.length;o++){var a=i[o],s=a.tileID.canonical.key;n[s]||(n[s]=!0,a.querySourceFeatures(r,t))}return r}(i,e):[]},n.prototype.addSourceType=function(t,e,i){return n.getSourceType(t)?i(new Error('A source type called "'+t+'" already exists.')):(n.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:t,url:e.workerSourceURL},i):i(null,null))},n.prototype.getLight=function(){return this.light.getLight()},n.prototype.setLight=function(t,e){void 0===e&&(e={}),this._checkLoaded();var i=this.light.getLight(),r=!1;for(var n in t)if(!_t.deepEqual(t[n],i[n])){r=!0;break}if(r){var o={now:_t.browser.now(),transition:_t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,e),this.light.updateTransitions(o)}},n.prototype._validate=function(t,e,i,r,n){return void 0===n&&(n={}),(!n||!1!==n.validate)&&Pe(this,t.call(_t.validateStyle,_t.extend({key:e,style:this.serialize(),value:i,styleSpec:_t.styleSpec},r)))},n.prototype._remove=function(){for(var t in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),_t.evented.off("pluginStateChange",this._rtlTextPluginCallback),this._layers)this._layers[t].setEventedParent(null);for(var e in this.sourceCaches)this.sourceCaches[e].clearTiles(),this.sourceCaches[e].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},n.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},n.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},n.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},n.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},n.prototype._updatePlacement=function(t,e,i,r,n){void 0===n&&(n=!1);for(var o=!1,a=!1,s={},l=0,u=this._order;l<u.length;l+=1){var c=u[l],p=this._layers[c];if("symbol"===p.type){if(!s[p.source]){var h=this.sourceCaches[p.source];s[p.source]=h.getRenderableIds(!0).map(function(t){return h.getTileByID(t)}).sort(function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)})}var d=this.crossTileSymbolIndex.addLayer(p,s[p.source],t.center.lng);o=o||d}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((n=n||this._layerOrderChanged||0===i)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(_t.browser.now(),t.zoom))&&(this.pauseablePlacement=new ke(t,this._order,n,e,i,r,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(_t.browser.now()),a=!0),o&&this.pauseablePlacement.placement.setStale()),a||o)for(var f=0,m=this._order;f<m.length;f+=1){var y=m[f],v=this._layers[y];"symbol"===v.type&&this.placement.updateLayerOpacities(v,s[v.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(_t.browser.now())},n.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},n.prototype.getImages=function(t,e,i){this.imageManager.getImages(e.icons,i),this._updateTilesForChangedImages();var r=this.sourceCaches[e.source];r&&r.setDependencies(e.tileID.key,e.type,e.icons)}
1,n.prototype.getGlyphs=function(t,e,i){this.glyphManager.getGlyphs(e.stacks,i)},n.prototype.getResource=function(t,e,i){return _t.makeRequest(e,i)},n}(_t.Evented);Re.getSourceType=function(t){return L[t]},Re.setSourceType=function(t,e){L[t]=e},Re.registerForPluginStateChange=_t.registerForPluginStateChange;var Be=_t.createLayout([{name:"a_pos",type:"Int16",components:2}]),Oe=ui("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 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(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}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;}"),Fe=ui("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Ue=ui("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),Ne=ui("varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 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(antialiased_blur,0.0,extrude_length-radius
1/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),je=ui("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);}"),Ve=ui("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat 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);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 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;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),qe=ui("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;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),Ze=ui("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;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_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),$e=ui("uniform float u_overscale_factor;varying float v_placed;varying float v_notUsed;varying float v_radius;varying vec2 v_extrude;varying vec2 v_extrude_scale;void main() {float alpha=0.5;vec4 color=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {color=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {color*=.2;}float extrude_scale_length=length(v_extrude_scale);float extrude_length=length(v_extrude)*extrude_scale_length;float stroke_width=15.0*extrude_scale_length/u_overscale_factor;float radius=v_radius*extrude_scale_length;float distance_to_edge=abs(extrude_length-radius);float opacity_t=smoothstep(-stroke_width,0.0,-distance_to_edge);gl_FragColor=opacity_t*color;}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;varying float v_radius;varying vec2 v_extrude;varying vec2 v_extrude_scale;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);highp float padding_factor=1.2;gl_Position.xy+=a_extrude*u_extrude_scale*padding_factor*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;v_radius=abs(a_extrude.y);v_extrude=a_extrude*padding_factor;v_extrude_scale=u_extrude_scale*u_camera_to_center_distance*collision_perspective_ratio;}"),He=ui("uniform highp vec4 u_color;void main() {gl_FragColor=u_color;}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Ge=ui("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),We=ui("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),Xe=ui("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec4 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),Ke=ui("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec4 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileZoomRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),Ye=ui("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","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;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),Je=ui("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec4 u_scale;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 vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistanc
1e,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),Qe=ui("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","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;}"),ti=ui("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;\n#define PI 3.141592653589793\nvoid 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;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","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;}"),ei=ui("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat 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);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;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 float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat 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;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.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_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float 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;v_width2=vec2(outset,inset);}"),ii=ui("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat 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);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat 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;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;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_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float 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;v_width2=vec2(outset,inset);}"),ri=ui("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec4 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileZoomRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);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_a=mod(v_linesofar/pattern_size_a.x,1.0);float x_b=mod(v_linesofar/pattern_size_b.x,1.0);float y_a=0.5+(v_normal.y*clamp(v_width2.s,0.0,(pattern_size_a.y+2.0)/2.0)/pattern_size_a.y);float y_b=0.5+(v_normal.y*clamp(v_width2.s,0.0,(pattern_size_b.y+2.0)/2.0)/pattern_size_b.y);vec2 pos_a=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,vec2(x_a,y_a));vec2 pos_b=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,vec2(x_b,y_b));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nfloat 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;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;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_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float 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;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);}"),ni=ui("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;
1uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat 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 sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat 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;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;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_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float 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;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),oi=ui("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(dot(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);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),ai=ui("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform 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 highp float u_pitch;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;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];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;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp 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);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_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(1.0,fade_opacity[0]+fade_change));}"),si=ui("#define SDF_PX 8.0\nuniform 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;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat 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);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform 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 highp float u_pitch;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;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];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;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp 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);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float 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(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),li=ui("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform 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;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;
1gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}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);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform 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 highp float u_pitch;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 vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.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[2];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;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp 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);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float 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(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}");function ui(t,e){var i=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,s={};return{fragmentSource:t=t.replace(i,function(t,e,i,r,n){return s[n]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+n+"\nvarying "+i+" "+r+" "+n+";\n#else\nuniform "+i+" "+r+" u_"+n+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+n+"\n    "+i+" "+r+" "+n+" = u_"+n+";\n#endif\n"}
vendor: 4,466 bytes, line 1
1),vertexSource:e=e.replace(i,function(t,e,i,r,n){var o="float"===r?"vec2":"vec4",a=n.match(/color/)?"color":o;return s[n]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+n+"\nuniform lowp float u_"+n+"_t;\nattribute "+i+" "+o+" a_"+n+";\nvarying "+i+" "+r+" "+n+";\n#else\nuniform "+i+" "+r+" u_"+n+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+n+"\n    "+n+" = a_"+n+";\n#else\n    "+i+" "+r+" "+n+" = u_"+n+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+n+"\n    "+n+" = unpack_mix_"+a+"(a_"+n+", u_"+n+"_t);\n#else\n    "+i+" "+r+" "+n+" = u_"+n+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+n+"\nuniform lowp float u_"+n+"_t;\nattribute "+i+" "+o+" a_"+n+";\n#else\nuniform "+i+" "+r+" u_"+n+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+n+"\n    "+i+" "+r+" "+n+" = a_"+n+";\n#else\n    "+i+" "+r+" "+n+" = u_"+n+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+n+"\n    "+i+" "+r+" "+n+" = unpack_mix_"+a+"(a_"+n+", u_"+n+"_t);\n#else\n    "+i+" "+r+" "+n+" = u_"+n+";\n#endif\n"})}}var ci=Object.freeze({__proto__:null,prelude:Oe,background:Fe,backgroundPattern:Ue,circle:Ne,clippingMask:je,heatmap:Ve,heatmapTexture:qe,collisionBox:Ze,collisionCircle:$e,debug:He,fill:Ge,fillOutline:We,fillOutlinePattern:Xe,fillPattern:Ke,fillExtrusion:Ye,fillExtrusionPattern:Je,hillshadePrepare:Qe,hillshade:ti,line:ei,lineGradient:ii,linePattern:ri,lineSDF:ni,raster:oi,symbolIcon:ai,symbolSDF:si,symbolTextAndIcon:li}),pi=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};pi.prototype.bind=function(t,e,i,r,n,o,a,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==r.length,u=0;!l&&u<r.length;u++)this.boundPaintVertexBuffers[u]!==r[u]&&(l=!0);var c=!this.vao||this.boundProgram!==e||this.boundLayoutVertexBuffer!==i||l||this.boundIndexBuffer!==n||this.boundVertexOffset!==o||this.boundDynamicVertexBuffer!==a||this.boundDynamicVertexBuffer2!==s;!t.extVertexArrayObject||c?this.freshBind(e,i,r,n,o,a,s):(t.bindVertexArrayOES.set(this.vao),a&&a.bind(),n&&n.dynamicDraw&&n.bind(),s&&s.bind())},pi.prototype.freshBind=function(t,e,i,r,n,o,a){var s,l=t.numAttributes,u=this.context,c=u.gl;if(u.extVertexArrayObject)this.vao&&this.destroy(),this.vao=u.extVertexArrayObject.createVertexArrayOES(),u.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=i,this.boundIndexBuffer=r,this.boundVertexOffset=n,this.boundDynamicVertexBuffer=o,this.boundDynamicVertexBuffer2=a;else{s=u.currentNumAttributes||0;for(var p=l;p<s;p++)c.disableVertexAttribArray(p)}e.enableAttributes(c,t);for(var h=0,d=i;h<d.length;h+=1)d[h].enableAttributes(c,t);o&&o.enableAttributes(c,t),a&&a.enableAttributes(c,t),e.bind(),e.setVertexAttribPointers(c,t,n);for(var f=0,m=i;f<m.length;f+=1){var y=m[f];y.bind(),y.setVertexAttribPointers(c,t,n)}o&&(o.bind(),o.setVertexAttribPointers(c,t,n)),r&&r.bind(),a&&(a.bind(),a.setVertexAttribPointers(c,t,n)),u.currentNumAttributes=l},pi.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var hi=function(t,e,i,r,n){var o=t.gl;this.program=o.createProgram();var a=i?i.defines():[];n&&a.push("#define OVERDRAW_INSPECTOR;");var s=a.concat(Oe.fragmentSource,e.fragmentSource).join("\n"),l=a.concat(Oe.vertexSource,e.vertexSource).join("\n"),u=o.createShader(o.FRAGMENT_SHADER);if(o.isContextLost())this.failedToCreate=!0;else{o.shaderSource(u,s),o.compileShader(u),o.attachShader(this.program,u);var c=o.createShader(o.VERTEX_SHADER);if(o.isContextLost())this.failedToCreate=!0;else{o.shaderSource(c,l),o.compileShader(c),o.attachShader(this.program,c);for(var p=i?i.layoutAttributes:[],h=0;h<p.length;h++)o.bindAttribLocation(this.program,h,p[h].name);o.linkProgram(this.program),this.numAttributes=o.getProgramParameter(this.program,o.ACTIVE_ATTRIBUTES),this.attributes={};for(var d={},f=0;f<this.numAttributes;f++){var m=o.getActiveAttrib(this.program,f);m&&(this.attributes[m.name]=o.getAttribLocation(this.program,m.name))}for(var y=o.getProgramParameter(this.program,o.ACTIVE_UNIFORMS),v=0;v<y;v++){var g=o.getActiveUniform(this.program,v);g&&(d[g.name]=o.getUniformLocation(this.program,g.name))}this.fixedUniforms=r(t,d),this.binderUniforms=i?i.getUniforms(t,d):[]}}};function di(t,e,i){var r=1/oe(i,1,e.transform.tileZoom),n=Math.pow(2,i.tileID.overscaledZ
vendor: 4,517 bytes, line 1
1),o=i.tileSize*Math.pow(2,e.transform.tileZoom)/n,a=o*(i.tileID.canonical.x+i.tileID.wrap*n),s=o*i.tileID.canonical.y;return{u_image:0,u_texsize:i.imageAtlasTexture.size,u_scale:[_t.browser.devicePixelRatio,r,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[a>>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}hi.prototype.draw=function(t,e,i,r,n,o,a,s,l,u,c,p,h,d,f,m){var y,v=t.gl;if(!this.failedToCreate){for(var g in t.program.set(this.program),t.setDepthMode(i),t.setStencilMode(r),t.setColorMode(n),t.setCullFace(o),this.fixedUniforms)this.fixedUniforms[g].set(a[g]);d&&d.setUniforms(t,this.binderUniforms,p,{zoom:h});for(var _=(y={},y[v.LINES]=2,y[v.TRIANGLES]=3,y[v.LINE_STRIP]=1,y)[e],x=0,b=c.get();x<b.length;x+=1){var w=b[x],S=w.vaos||(w.vaos={});(S[s]||(S[s]=new pi)).bind(t,this,l,d?d.getPaintVertexBuffers():[],u,w.vertexOffset,f,m),v.drawElements(e,w.primitiveLength*_,v.UNSIGNED_SHORT,w.primitiveOffset*_*2)}}};var fi=function(t,e,i,r){var n=e.style.light,o=n.properties.get("position"),a=[o.x,o.y,o.z],s=_t.create$1();"viewport"===n.properties.get("anchor")&&_t.fromRotation(s,-e.transform.angle),_t.transformMat3(a,a,s);var l=n.properties.get("color");return{u_matrix:t,u_lightpos:a,u_lightintensity:n.properties.get("intensity"),u_lightcolor:[l.r,l.g,l.b],u_vertical_gradient:+i,u_opacity:r}},mi=function(t){return{u_matrix:t}},yi=function(t,e,i,r){return _t.extend(mi(t),di(i,e,r))},vi=function(t,e,i,r){var n,o,a=t.transform;if("map"===r.paint.get("circle-pitch-alignment")){var s=oe(i,1,a.zoom);n=!0,o=[s,s]}else n=!1,o=a.pixelsToGLUnits;return{u_camera_to_center_distance:a.cameraToCenterDistance,u_scale_with_map:+("map"===r.paint.get("circle-pitch-scale")),u_matrix:t.translatePosMatrix(e.posMatrix,i,r.paint.get("circle-translate"),r.paint.get("circle-translate-anchor")),u_pitch_with_map:+n,u_device_pixel_ratio:_t.browser.devicePixelRatio,u_extrude_scale:o}},gi=function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_camera_to_center_distance:new _t.Uniform1f(t,e.u_camera_to_center_distance),u_pixels_to_tile_units:new _t.Uniform1f(t,e.u_pixels_to_tile_units),u_extrude_scale:new _t.Uniform2f(t,e.u_extrude_scale),u_overscale_factor:new _t.Uniform1f(t,e.u_overscale_factor)}},_i=function(t,e,i){var r=oe(i,1,e.zoom),n=Math.pow(2,e.zoom-i.tileID.overscaledZ),o=i.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:r,u_extrude_scale:[e.pixelsToGLUnits[0]/(r*n),e.pixelsToGLUnits[1]/(r*n)],u_overscale_factor:o}},xi=function(t,e){return{u_matrix:t,u_color:e}},bi=function(t){return{u_matrix:t}},wi=function(t,e,i){var r=i.paint.get("hillshade-shadow-color"),n=i.paint.get("hillshade-highlight-color"),o=i.paint.get("hillshade-accent-color"),a=i.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===i.paint.get("hillshade-illumination-anchor")&&(a-=t.transform.angle);var s,l,u,c=!t.options.moving;return{u_matrix:t.transform.calculatePosMatrix(e.tileID.toUnwrapped(),c),u_image:0,u_latrange:(s=e.tileID,l=Math.pow(2,s.canonical.z),u=s.canonical.y,[new _t.MercatorCoordinate(0,u/l).toLngLat().lat,new _t.MercatorCoordinate(0,(u+1)/l).toLngLat().lat]),u_light:[i.paint.get("hillshade-exaggeration"),a],u_shadow:r,u_highlight:n,u_accent:o}},Si=function(t,e,i){var r=e.stride,n=_t.create();return _t.ortho(n,0,_t.EXTENT,-_t.EXTENT,0,0,1),_t.translate(n,n,[0,-_t.EXTENT,0]),{u_matrix:n,u_image:1,u_dimension:[r,r],u_zoom:t.overscaledZ,u_maxzoom:i,u_unpack:e.getUnpackVector()}};var Ti=function(t,e,i){var r=t.transform;return{u_matrix:Ei(t,e,i),u_ratio:1/oe(e,1,r.zoom),u_device_pixel_ratio:_t.browser.devicePixelRatio,u_units_to_pixels:[1/r.pixelsToGLUnits[0],1/r.pixelsToGLUnits[1]]}};function ki(t,e){return 1/oe(t,1,e.tileZoom)}function Ei(t,e,i){return t.translatePosMatrix(e.tileID.posMatrix,e,i.paint.get("line-translate"),i.paint.get("line-translate-anchor"))}var Ci=function(t,e,i,r,n){return{u_matrix:t,u_tl_parent:e,u_scale_parent:i,u_buffer_scale:1,u_fade_t:r.mix,u_opacity:r.opacity*n.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:n.paint.get("raster-brightness-min"),u_brightness_high:n.paint.get("raster-brightness-max"),u_saturation_factor:(a=n.paint.get("raster-saturation"),0<a?1-1/(1.001-a):-a),u_contrast_factor:(o=n.paint.get("raster-contrast"),0<o?1/(1-o):1+o),u_spin_weights:function(t){t*=Math.PI/180;var e=Math.sin(t),i=Math.cos(t);return[(2*i+1)/3,(-Math.sqrt(3)*e-i+1)/3,(Math.sqrt(3)*e-i+1)/3]}(n.paint.get("raster-hue-rotate"))};var o,a};
vendor: 11,752 bytes, line 1
1var Ai=function(t,e,i,r,n,o,a,s,l,u){var c=n.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:c.cameraToCenterDistance,u_pitch:c.pitch/360*2*Math.PI,u_rotate_symbol:+i,u_aspect_ratio:c.width/c.height,u_fade_change:n.options.fadeDuration?n.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:a,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+r,u_texsize:u,u_texture:0}},Ii=function(t,e,i,r,n,o,a,s,l,u,c){var p=n.transform;return _t.extend(Ai(t,e,i,r,n,o,a,s,l,u),{u_gamma_scale:r?Math.cos(p._pitch)*p.cameraToCenterDistance:1,u_device_pixel_ratio:_t.browser.devicePixelRatio,u_is_halo:+c})},zi={fillExtrusion:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_lightpos:new _t.Uniform3f(t,e.u_lightpos),u_lightintensity:new _t.Uniform1f(t,e.u_lightintensity),u_lightcolor:new _t.Uniform3f(t,e.u_lightcolor),u_vertical_gradient:new _t.Uniform1f(t,e.u_vertical_gradient),u_opacity:new _t.Uniform1f(t,e.u_opacity)}},fillExtrusionPattern:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_lightpos:new _t.Uniform3f(t,e.u_lightpos),u_lightintensity:new _t.Uniform1f(t,e.u_lightintensity),u_lightcolor:new _t.Uniform3f(t,e.u_lightcolor),u_vertical_gradient:new _t.Uniform1f(t,e.u_vertical_gradient),u_height_factor:new _t.Uniform1f(t,e.u_height_factor),u_image:new _t.Uniform1i(t,e.u_image),u_texsize:new _t.Uniform2f(t,e.u_texsize),u_pixel_coord_upper:new _t.Uniform2f(t,e.u_pixel_coord_upper),u_pixel_coord_lower:new _t.Uniform2f(t,e.u_pixel_coord_lower),u_scale:new _t.Uniform4f(t,e.u_scale),u_fade:new _t.Uniform1f(t,e.u_fade),u_opacity:new _t.Uniform1f(t,e.u_opacity)}},fill:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix)}},fillPattern:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_image:new _t.Uniform1i(t,e.u_image),u_texsize:new _t.Uniform2f(t,e.u_texsize),u_pixel_coord_upper:new _t.Uniform2f(t,e.u_pixel_coord_upper),u_pixel_coord_lower:new _t.Uniform2f(t,e.u_pixel_coord_lower),u_scale:new _t.Uniform4f(t,e.u_scale),u_fade:new _t.Uniform1f(t,e.u_fade)}},fillOutline:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_world:new _t.Uniform2f(t,e.u_world)}},fillOutlinePattern:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_world:new _t.Uniform2f(t,e.u_world),u_image:new _t.Uniform1i(t,e.u_image),u_texsize:new _t.Uniform2f(t,e.u_texsize),u_pixel_coord_upper:new _t.Uniform2f(t,e.u_pixel_coord_upper),u_pixel_coord_lower:new _t.Uniform2f(t,e.u_pixel_coord_lower),u_scale:new _t.Uniform4f(t,e.u_scale),u_fade:new _t.Uniform1f(t,e.u_fade)}},circle:function(t,e){return{u_camera_to_center_distance:new _t.Uniform1f(t,e.u_camera_to_center_distance),u_scale_with_map:new _t.Uniform1i(t,e.u_scale_with_map),u_pitch_with_map:new _t.Uniform1i(t,e.u_pitch_with_map),u_extrude_scale:new _t.Uniform2f(t,e.u_extrude_scale),u_device_pixel_ratio:new _t.Uniform1f(t,e.u_device_pixel_ratio),u_matrix:new _t.UniformMatrix4f(t,e.u_matrix)}},collisionBox:gi,collisionCircle:gi,debug:function(t,e){return{u_color:new _t.UniformColor(t,e.u_color),u_matrix:new _t.UniformMatrix4f(t,e.u_matrix)}},clippingMask:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix)}},heatmap:function(t,e){return{u_extrude_scale:new _t.Uniform1f(t,e.u_extrude_scale),u_intensity:new _t.Uniform1f(t,e.u_intensity),u_matrix:new _t.UniformMatrix4f(t,e.u_matrix)}},heatmapTexture:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_world:new _t.Uniform2f(t,e.u_world),u_image:new _t.Uniform1i(t,e.u_image),u_color_ramp:new _t.Uniform1i(t,e.u_color_ramp),u_opacity:new _t.Uniform1f(t,e.u_opacity)}},hillshade:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_image:new _t.Uniform1i(t,e.u_image),u_latrange:new _t.Uniform2f(t,e.u_latrange),u_light:new _t.Uniform2f(t,e.u_light),u_shadow:new _t.UniformColor(t,e.u_shadow),u_highlight:new _t.UniformColor(t,e.u_highlight),u_accent:new _t.UniformColor(t,e.u_accent)}},hillshadePrepare:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_image:new _t.Uniform1i(t,e.u_image),u_dimension:new _t.Uniform2f(t,e.u_dimension),u_zoom:new _t.Uniform1f(t,e.u_zoom),u_maxzoom:new _t.Uniform1f(t,e.u_maxzoom),u_unpack:new _t.Uniform4f(t,e.u_unpack)}},line:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_ratio:new _t.Uniform1f(t,e.u_ratio),u_device_pixel_ratio:new _t.Uniform1f(t,e.u_device_pixel_ratio),u_units_to_pixels:new _t.Uniform2f(t,e.u_units_to_pixels)}},lineGradient:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_ratio:new _t.Uniform1f(t,e.u_ratio),u_device_pixel_ratio:new _t.Uniform1f(t,e.u_device_pixel_ratio),u_units_to_pixels:new _t.Uniform2f(t,e.u_units_to_pixels),u_image:new _t.Uniform1i(t,e.u_image)}},linePattern:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_texsize:new _t.Uniform2f(t,e.u_texsize),u_ratio:new _t.Uniform1f(t,e.u_ratio),u_device_pixel_ratio:new _t.Uniform1f(t,e.u_device_pixel_ratio),u_image:new _t.Uniform1i(t,e.u_image),u_units_to_pixels:new _t.Uniform2f(t,e.u_units_to_pixels),u_scale:new _t.Uniform4f(t,e.u_scale),u_fade:new _t.Uniform1f(t,e.u_fade)}},lineSDF:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_ratio:new _t.Uniform1f(t,e.u_ratio),u_device_pixel_ratio:new _t.Uniform1f(t,e.u_device_pixel_ratio),u_units_to_pixels:new _t.Uniform2f(t,e.u_units_to_pixels),u_patternscale_a:new _t.Uniform2f(t,e.u_patternscale_a),u_patternscale_b:new _t.Uniform2f(t,e.u_patternscale_b),u_sdfgamma:new _t.Uniform1f(t,e.u_sdfgamma),u_image:new _t.Uniform1i(t,e.u_image),u_tex_y_a:new _t.Uniform1f(t,e.u_tex_y_a),u_tex_y_b:new _t.Uniform1f(t,e.u_tex_y_b),u_mix:new _t.Uniform1f(t,e.u_mix)}},raster:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_tl_parent:new _t.Uniform2f(t,e.u_tl_parent),u_scale_parent:new _t.Uniform1f(t,e.u_scale_parent),u_buffer_scale:new _t.Uniform1f(t,e.u_buffer_scale),u_fade_t:new _t.Uniform1f(t,e.u_fade_t),u_opacity:new _t.Uniform1f(t,e.u_opacity),u_image0:new _t.Uniform1i(t,e.u_image0),u_image1:new _t.Uniform1i(t,e.u_image1),u_brightness_low:new _t.Uniform1f(t,e.u_brightness_low),u_brightness_high:new _t.Uniform1f(t,e.u_brightness_high),u_saturation_factor:new _t.Uniform1f(t,e.u_saturation_factor),u_contrast_factor:new _t.Uniform1f(t,e.u_contrast_factor),u_spin_weights:new _t.Uniform3f(t,e.u_spin_weights)}},symbolIcon:function(t,e){return{u_is_size_zoom_constant:new _t.Uniform1i(t,e.u_is_size_zoom_constant),u_is_size_feature_constant:new _t.Uniform1i(t,e.u_is_size_feature_constant),u_size_t:new _t.Uniform1f(t,e.u_size_t),u_size:new _t.Uniform1f(t,e.u_size),u_camera_to_center_distance:new _t.Uniform1f(t,e.u_camera_to_center_distance),u_pitch:new _t.Uniform1f(t,e.u_pitch),u_rotate_symbol:new _t.Uniform1i(t,e.u_rotate_symbol),u_aspect_ratio:new _t.Uniform1f(t,e.u_aspect_ratio),u_fade_change:new _t.Uniform1f(t,e.u_fade_change),u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_label_plane_matrix:new _t.UniformMatrix4f(t,e.u_label_plane_matrix),u_coord_matrix:new _t.UniformMatrix4f(t,e.u_coord_matrix),u_is_text:new _t.Uniform1f(t,e.u_is_text),u_pitch_with_map:new _t.Uniform1i(t,e.u_pitch_with_map),u_texsize:new _t.Uniform2f(t,e.u_texsize),u_texture:new _t.Uniform1i(t,e.u_texture)}},symbolSDF:function(t,e){return{u_is_size_zoom_constant:new _t.Uniform1i(t,e.u_is_size_zoom_constant),u_is_size_feature_constant:new _t.Uniform1i(t,e.u_is_size_feature_constant),u_size_t:new _t.Uniform1f(t,e.u_size_t),u_size:new _t.Uniform1f(t,e.u_size),u_camera_to_center_distance:new _t.Uniform1f(t,e.u_camera_to_center_distance),u_pitch:new _t.Uniform1f(t,e.u_pitch),u_rotate_symbol:new _t.Uniform1i(t,e.u_rotate_symbol),u_aspect_ratio:new _t.Uniform1f(t,e.u_aspect_ratio),u_fade_change:new _t.Uniform1f(t,e.u_fade_change),u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_label_plane_matrix:new _t.UniformMatrix4f(t,e.u_label_plane_matrix),u_coord_matrix:new _t.UniformMatrix4f(t,e.u_coord_matrix),u_is_text:new _t.Uniform1f(t,e.u_is_text),u_pitch_with_map:new _t.Uniform1i(t,e.u_pitch_with_map),u_texsize:new _t.Uniform2f(t,e.u_texsize),u_texture:new _t.Uniform1i(t,e.u_texture),u_gamma_scale:new _t.Uniform1f(t,e.u_gamma_scale),u_device_pixel_ratio:new _t.Uniform1f(t,e.u_device_pixel_ratio),u_is_halo:new _t.Uniform1f(t,e.u_is_halo)}},symbolTextAndIcon:function(t,e){return{u_is_size_zoom_constant:new _t.Uniform1i(t,e.u_is_size_zoom_constant),u_is_size_feature_constant:new _t.Uniform1i(t,e.u_is_size_feature_constant),u_size_t:new _t.Uniform1f(t,e.u_size_t),u_size:new _t.Uniform1f(t,e.u_size),u_camera_to_center_distance:new _t.Uniform1f(t,e.u_camera_to_center_distance),u_pitch:new _t.Uniform1f(t,e.u_pitch),u_rotate_symbol:new _t.Uniform1i(t,e.u_rotate_symbol),u_aspect_ratio:new _t.Uniform1f(t,e.u_aspect_ratio),u_fade_change:new _t.Uniform1f(t,e.u_fade_change),u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_label_plane_matrix:new _t.UniformMatrix4f(t,e.u_label_plane_matrix),u_coord_matrix:new _t.UniformMatrix4f(t,e.u_coord_matrix),u_is_text:new _t.Uniform1f(t,e.u_is_text),u_pitch_with_map:new _t.Uniform1i(t,e.u_pitch_with_map),u_texsize:new _t.Uniform2f(t,e.u_texsize),u_texsize_icon:new _t.Uniform2f(t,e.u_texsize_icon),u_texture:new _t.Uniform1i(t,e.u_texture),u_texture_icon:new _t.Uniform1i(t,e.u_texture_icon),u_gamma_scale:new _t.Uniform1f(t,e.u_gamma_scale),u_device_pixel_ratio:new _t.Uniform1f(t,e.u_device_pixel_ratio),u_is_halo:new _t.Uniform1f(t,e.u_is_halo)}},background:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_opacity:new _t.Uniform1f(t,e.u_opacity),u_color:new _t.UniformColor(t,e.u_color)}},backgroundPattern:function(t,e){return{u_matrix:new _t.UniformMatrix4f(t,e.u_matrix),u_opacity:new _t.Uniform1f(t,e.u_opacity),u_image:new _t.Uniform1i(t,e.u_image),u_pattern_tl_a:new _t.Uniform2f(t,e.u_pattern_tl_a),u_pattern_br_a:new _t.Uniform2f(t,e.u_pattern_br_a),u_pattern_tl_b:new _t.Uniform2f(t,e.u_pattern_tl_b),u_pattern_br_b:new _t.Uniform2f(t,e.u_pattern_br_b),u_texsize:new _t.Uniform2f(t,e.u_texsize),u_mix:new _t.Uniform1f(t,e.u_mix),u_pattern_size_a:new _t.Uniform2f(t,e.u_pattern_size_a),u_pattern_size_b:new _t.Uniform2f(t,e.u_pattern_size_b),u_scale_a:new _t.Uniform1f(t,e.u_scale_a),u_scale_b:new _t.Uniform1f(t,e.u_scale_b),u_pixel_coord_upper:new _t.Uniform2f(t,e.u_pixel_coord_upper),u_pixel_coord_lower:new _t.Uniform2f(t,e.u_pixel_coord_lower),u_tile_units_to_pixels:new _t.Uniform1f(t,e.u_tile_units_to_pixels)}}};function Pi(t,e,i,r,n,o,a,s){for(var l=t.context,u=l.gl,c=n?t.useProgram("collisionCircle"):t.useProgram("collisionBox"),p=0;p<r.length;p++){var h=r[p],d=e.getTile(h),f=d.getBucket(i);if(f){var m=n?s?f.textCollisionCircle:f.iconCollisionCircle:s?f.textCollisionBox:f.iconCollisionBox;if(m){var y=h.posMatrix;0===o[0]&&0===o[1]||(y=t.translatePosMatrix(h.posMatrix,d,o,a)),c.draw(l,n?u.TRIANGLES:u.LINES,St.disabled,Tt.disabled,t.colorModeForRenderPass(),Et.disabled,_i(y,t.transform,d),i.id,m.layoutVertexBuffer,m.indexBuffer,m.segments,null,t.transform.zoom,null,null,m.collisionVertexBuffer)}}}}function Mi(t,e,i,r,n,o,a){Pi(t,e,i,r,!1,n,o,a),Pi(t,e,i,r,!0,n,o,a)}var Li=_t.identity(new Float32Array(16));function Di(t,e,i,r,n,o,a,s,l,u,c){var p,h,d,f,m,y,v,g,_,x,b=t.text.placedSymbolArray,w=t.text.dynamicLayoutVertexArray,S=t.icon.dynamicLayoutVertexArray,T={};w.clear();for(var k=0;k<b.length;k++){var E=b.get(k),C=t.allowVerticalPlacement&&!E.placedOrientation,A=E.hidden||!E.crossTileID||C?null:r[E.crossTileID];if(A){var I=new _t.Point(E.anchorX,E.anchorY),z=Gt(I,i?s:a),P=.5+o.cameraToCenterDistance/z.signedDistanceFromCamera*.5,M=n.evaluateSizeForFeature
1(t.textSizeData,u,E)*P/_t.ONE_EM;i&&(M*=t.tilePixelRatio/l);for(var L=A.width,D=A.height,R=(p=A.anchor,h=L,d=D,f=A.textOffset,m=A.textBoxScale,y=M,void 0,v=_t.getAnchorAlignment(p),g=-(v.horizontalAlign-.5)*h,_=-(v.verticalAlign-.5)*d,x=_t.evaluateVariableOffset(p,f),new _t.Point((g/m+x[0])*y,(_/m+x[1])*y)),B=i?Gt(I.add(R),a).point:z.point.add(e?R.rotate(-o.angle):R),O=t.allowVerticalPlacement&&E.placedOrientation===_t.WritingMode.vertical?Math.PI/2:0,F=0;F<E.numGlyphs;F++)_t.addDynamicAttributes(w,B,O);c&&0<=E.associatedIconIndex&&(T[E.associatedIconIndex]={shiftedAnchor:B,angle:O})}else ee(E.numGlyphs,w)}if(c){S.clear();for(var U=t.icon.placedSymbolArray,N=0;N<U.length;N++){var j=U.get(N);if(j.hidden)ee(j.numGlyphs,S);else{var V=T[N];if(V)for(var q=0;q<j.numGlyphs;q++)_t.addDynamicAttributes(S,V.shiftedAnchor,V.angle);else ee(j.numGlyphs,S)}}t.icon.dynamicLayoutVertexBuffer.updateData(S)}t.text.dynamicLayoutVertexBuffer.updateData(w)}function Ri(t,e,i,r,n,o,a,s,l,u,c,p){for(var h,d,f=t.context,m=f.gl,y=t.transform,v="map"===s,g="map"===l,_=v&&"point"!==i.layout.get("symbol-placement"),x=v&&!g&&!_,b=void 0!==i.layout.get("symbol-sort-key").constantOr(1),w=t.depthModeForSublayer(0,St.ReadOnly),S=i.layout.get("text-variable-anchor"),T=[],k=0,E=r;k<E.length;k+=1){var C=E[k],A=e.getTile(C),I=A.getBucket(i);if(I){var z=n?I.text:I.icon;if(z&&z.segments.get().length){var P=z.programConfigurations.get(i.id),M=n||I.sdfIcons,L=n?I.textSizeData:I.iconSizeData,D=g||0!==y.pitch;h||(h=t.useProgram((ht=M,dt=n,I.iconsInText&&dt?"symbolTextAndIcon":ht?"symbolSDF":"symbolIcon"),P),d=_t.evaluateSizeForZoom(L,y.zoom));var R=void 0,B=[0,0],O=void 0,F=void 0,U=null,N=void 0;if(n){if(O=A.glyphAtlasTexture,F=m.LINEAR,R=A.glyphAtlasTexture.size,I.iconsInText){B=A.imageAtlasTexture.size,U=A.imageAtlasTexture;var j="composite"===L.kind||"camera"===L.kind;N=D||t.options.rotating||t.options.zooming||j?m.LINEAR:m.NEAREST}}else{var V=1!==i.layout.get("icon-size").constantOr(0)||I.iconsNeedLinear;O=A.imageAtlasTexture,F=M||t.options.rotating||t.options.zooming||V||D?m.LINEAR:m.NEAREST,R=A.imageAtlasTexture.size}var q=oe(A,1,t.transform.zoom),Z=$t(C.posMatrix,g,v,t.transform,q),$=Ht(C.posMatrix,g,v,t.transform,q),H=S&&I.hasTextData(),G="none"!==i.layout.get("icon-text-fit")&&H&&I.hasIconData();_&&Wt(I,C.posMatrix,t,n,Z,$,g,u);var W=t.translatePosMatrix(C.posMatrix,A,o,a),X=_||n&&S||G?Li:Z,K=t.translatePosMatrix($,A,o,a,!0),Y=M&&0!==i.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(1),J={program:h,buffers:z,uniformValues:M?I.iconsInText?(it=L.kind,rt=d,nt=x,ot=g,at=t,st=W,lt=X,ut=K,ct=R,pt=B,_t.extend(Ii(it,rt,nt,ot,at,st,lt,ut,!0,ct,!0),{u_texsize_icon:pt,u_texture_icon:1})):Ii(L.kind,d,x,g,t,W,X,K,n,R,!0):Ai(L.kind,d,x,g,t,W,X,K,n,R),atlasTexture:O,atlasTextureIcon:U,atlasInterpolation:F,atlasInterpolationIcon:N,isSDF:M,hasHalo:Y};if(b)for(var Q=0,tt=z.segments.get();Q<tt.length;Q+=1){var et=tt[Q];T.push({segments:new _t.SegmentVector([et]),sortKey:et.sortKey,state:J})}else T.push({segments:z.segments,sortKey:0,state:J})}}}var it,rt,nt,ot,at,st,lt,ut,ct,pt,ht,dt;b&&T.sort(function(t,e){return t.sortKey-e.sortKey});for(var ft=0,mt=T;ft<mt.length;ft+=1){var yt=mt[ft],vt=yt.state;if(f.activeTexture.set(m.TEXTURE0),vt.atlasTexture.bind(vt.atlasInterpolation,m.CLAMP_TO_EDGE),vt.atlasTextureIcon&&(f.activeTexture.set(m.TEXTURE1),vt.atlasTextureIcon&&vt.atlasTextureIcon.bind(vt.atlasInterpolationIcon,m.CLAMP_TO_EDGE)),vt.isSDF){var gt=vt.uniformValues;vt.hasHalo&&(gt.u_is_halo=1,Bi(vt.buffers,yt.segments,i,t,vt.program,w,c,p,gt)),gt.u_is_halo=0}Bi(vt.buffers,yt.segments,i,t,vt.program,w,c,p,vt.uniformValues)}}function Bi(t,e,i,r,n,o,a,s,l){var u=r.context,c=u.gl;n.draw(u,c.TRIANGLES,o,a,s,Et.disabled,l,i.id,t.layoutVertexBuffer,t.indexBuffer,e,i.paint,r.transform.zoom,t.programConfigurations.get(i.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function Oi(t,e,i,r,n,o,a){var s,l,u,c,p,h,d,f,m,y,v=t.context.gl,g=i.paint.get("fill-pattern"),_=g&&g.constantOr(1),x=i.getCrossfadeParameters();s=a?(l=_&&!i.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",v.LINES):(l=_?"fillPattern":"fill",v.TRIANGLES);for(var b=0,w=r;b<w.length;b+=1){var S=w[b],T=e.getTile(S);if(!_||T.patternsLoaded()){var k=T.getBucket(i);if(k){var E=k.programConfigurations.get(i.id),C=t.useProgram(l,E);_&&(t.context.activeTexture.set(v.TEXTURE0),T.imageAtlasTexture.bind(v.LINEAR,v.CLAMP_TO_EDGE),E.updatePaintBuffers(x));var A=g.constantOr(null);if(A&&T.imageAtlas){var I=T.imageAtlas,z=I.patternPositions[A.to.toString()],P=I.patternPositions[A.from.toString()];z&&P&&E.setConstantPatternPositions(z,P)}var M=t.translatePosMatrix(S.posMatrix,T,i.paint.get("fill-translate"),i.paint.get("fill-translate-anchor"));if(a){c=k.indexBuffer2,p=k.segments2;var L=[v.drawingBufferWidth,v.drawingBufferHeight];u="fillOutlinePattern"===l&&_?(h=M,d=t,f=x,m=T,y=L,_t.extend(yi(h,d,f,m),{u_world:y})):{u_matrix:M,u_world:L}}else c=k.indexBuffer,p=k.segments,u=_?yi(M,t,x,T):mi(M);C.draw(t.context,s,n,t.stencilModeForClipping(S),o,Et.disabled,u,i.id,k.layoutVertexBuffer,c,p,i.paint,t.transform.zoom,E)}}}}function Fi(t,e,i,r,n,o,a){for(var s=t.context,l=s.gl,u=i.paint.get("fill-extrusion-pattern"),c=u.constantOr(1),p=i.getCrossfadeParameters(),h=i.paint.get("fill-extrusion-opacity"),d=0,f=r;d<f.length;
1d+=1){var m=f[d],y=e.getTile(m),v=y.getBucket(i);if(v){var g=v.programConfigurations.get(i.id),_=t.useProgram(c?"fillExtrusionPattern":"fillExtrusion",g);c&&(t.context.activeTexture.set(l.TEXTURE0),y.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),g.updatePaintBuffers(p));var x=u.constantOr(null);if(x&&y.imageAtlas){var b=y.imageAtlas,w=b.patternPositions[x.to.toString()],S=b.patternPositions[x.from.toString()];w&&S&&g.setConstantPatternPositions(w,S)}var T=t.translatePosMatrix(m.posMatrix,y,i.paint.get("fill-extrusion-translate"),i.paint.get("fill-extrusion-translate-anchor")),k=i.paint.get("fill-extrusion-vertical-gradient"),E=c?(C=T,A=t,I=k,z=h,P=m,M=p,L=y,_t.extend(fi(C,A,I,z),di(M,A,L),{u_height_factor:-Math.pow(2,P.overscaledZ)/L.tileSize/8})):fi(T,t,k,h);_.draw(s,s.gl.TRIANGLES,n,o,a,Et.backCCW,E,i.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,i.paint,t.transform.zoom,g)}}var C,A,I,z,P,M,L}function Ui(t,e,i,r,n,o){var a=t.context,s=a.gl,l=e.fbo;if(l){var u=t.useProgram("hillshade");a.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l.colorAttachment.get());var c=wi(t,e,i);u.draw(a,s.TRIANGLES,r,n,o,Et.disabled,c,i.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}function Ni(t,e,i,r,n,o,a){var s=t.context,l=s.gl,u=e.dem;if(u&&u.data){var c=u.dim,p=u.stride,h=u.getPixels();if(s.activeTexture.set(l.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),e.demTexture=e.demTexture||t.getTileTexture(p),e.demTexture){var d=e.demTexture;d.update(h,{premultiply:!1}),d.bind(l.NEAREST,l.CLAMP_TO_EDGE)}else e.demTexture=new _t.Texture(s,h,l.RGBA,{premultiply:!1}),e.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);s.activeTexture.set(l.TEXTURE0);var f=e.fbo;if(!f){var m=new _t.Texture(s,{width:c,height:c,data:null},l.RGBA);m.bind(l.LINEAR,l.CLAMP_TO_EDGE),(f=e.fbo=s.createFramebuffer(c,c)).colorAttachment.set(m.texture)}s.bindFramebuffer.set(f.framebuffer),s.viewport.set([0,0,c,c]),t.useProgram("hillshadePrepare").draw(s,l.TRIANGLES,n,o,a,Et.disabled,Si(e.tileID,u,r),i.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),e.needsHillshadePrepare=!1}}function ji(t,e,i,r,n){var o=r.paint.get("raster-fade-duration");if(0<o){var a=_t.browser.now(),s=(a-t.timeAdded)/o,l=e?(a-e.timeAdded)/o:-1,u=i.getSource(),c=n.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),p=!e||Math.abs(e.tileID.overscaledZ-c)>Math.abs(t.tileID.overscaledZ-c),h=p&&t.refreshedUponExpiration?1:_t.clamp(p?s:1-l,0,1);return t.refreshedUponExpiration&&1<=s&&(t.refreshedUponExpiration=!1),e?{opacity:1,mix:1-h}:{opacity:h,mix:0}}return{opacity:1,mix:0}}function Vi(t,e,i){var r=t.context,n=r.gl,o=i.posMatrix,a=t.useProgram("debug"),s=St.disabled,l=Tt.disabled,u=t.colorModeForRenderPass(),c="$debug";a.draw(r,n.LINE_STRIP,s,l,u,Et.disabled,xi(o,_t.Color.red),c,t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments);var p=e.getTileByID(i.key).latestRawTileData,h=p&&p.byteLength||0,d=Math.floor(h/1024),f=e.getTile(i).tileSize,m=512/Math.min(f,512),y=i.
vendor: 5,405 bytes, line 1
1canonical.toString();i.overscaledZ!==i.canonical.z&&(y+=" => "+i.overscaledZ);for(var v=function(t,e,i,r){r=r||1;var n,o,a,s,l,u,c,p,h=[];for(n=0,o=t.length;n<o;n++)if(l=qi[t[n]]){for(p=null,a=0,s=l[1].length;a<s;a+=2)p=-1===l[1][a]&&-1===l[1][a+1]?null:(u=e+l[1][a]*r,c=i-l[1][a+1]*r,p&&h.push(p.x,p.y,u,c),{x:u,y:c});e+=l[0]*r}return h}(y+" "+d+"kb",50,200*m,5*m),g=new _t.StructArrayLayout2i4,_=new _t.StructArrayLayout2ui4,x=0;x<v.length;x+=2)g.emplaceBack(v[x],v[x+1]),_.emplaceBack(x,x+1);for(var b=r.createVertexBuffer(g,Be.members),w=r.createIndexBuffer(_),S=_t.SegmentVector.simpleSegment(0,0,g.length/2,g.length/2),T=_t.EXTENT/(Math.pow(2,t.transform.zoom-i.overscaledZ)*f*m),k=[],E=-1;E<=1;E++)for(var C=-1;C<=1&&(0!==E||0!==C);C++)k.push([E,C]);for(var A=0;A<k.length;A++){var I=k[A];a.draw(r,n.LINES,s,l,u,Et.disabled,xi(_t.translate([],o,[T*I[0],T*I[1],0]),_t.Color.white),c,b,w,S)}a.draw(r,n.LINES,s,l,u,Et.disabled,xi(o,_t.Color.black),c,b,w,S),b.destroy(),w.destroy(),S.destroy()}var qi={" ":[16,[]],"!":[10,[5,21,5,7,-1,-1,5,2,4,1,5,0,6,1,5,2]],'"':[16,[4,21,4,14,-1,-1,12,21,12,14]],"#":[21,[11,25,4,-7,-1,-1,17,25,10,-7,-1,-1,4,12,18,12,-1,-1,3,6,17,6]],$:[20,[8,25,8,-4,-1,-1,12,25,12,-4,-1,-1,17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],"%":[24,[21,21,3,0,-1,-1,8,21,10,19,10,17,9,15,7,14,5,14,3,16,3,18,4,20,6,21,8,21,10,20,13,19,16,19,19,20,21,21,-1,-1,17,7,15,6,14,4,14,2,16,0,18,0,20,1,21,3,21,5,19,7,17,7]],"&":[26,[23,12,23,13,22,14,21,14,20,13,19,11,17,6,15,3,13,1,11,0,7,0,5,1,4,2,3,4,3,6,4,8,5,9,12,13,13,14,14,16,14,18,13,20,11,21,9,20,8,18,8,16,9,13,11,10,16,3,18,1,20,0,22,0,23,1,23,2]],"'":[10,[5,19,4,20,5,21,6,20,6,18,5,16,4,15]],"(":[14,[11,25,9,23,7,20,5,16,4,11,4,7,5,2,7,-2,9,-5,11,-7]],")":[14,[3,25,5,23,7,20,9,16,10,11,10,7,9,2,7,-2,5,-5,3,-7]],"*":[16,[8,21,8,9,-1,-1,3,18,13,12,-1,-1,13,18,3,12]],"+":[26,[13,18,13,0,-1,-1,4,9,22,9]],",":[10,[6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],"-":[26,[4,9,22,9]],".":[10,[5,2,4,1,5,0,6,1,5,2]],"/":[22,[20,25,2,-7]],0:[20,[9,21,6,20,4,17,3,12,3,9,4,4,6,1,9,0,11,0,14,1,16,4,17,9,17,12,16,17,14,20,11,21,9,21]],1:[20,[6,17,8,18,11,21,11,0]],2:[20,[4,16,4,17,5,19,6,20,8,21,12,21,14,20,15,19,16,17,16,15,15,13,13,10,3,0,17,0]],3:[20,[5,21,16,21,10,13,13,13,15,12,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],4:[20,[13,21,3,7,18,7,-1,-1,13,21,13,0]],5:[20,[15,21,5,21,4,12,5,13,8,14,11,14,14,13,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],6:[20,[16,18,15,20,12,21,10,21,7,20,5,17,4,12,4,7,5,3,7,1,10,0,11,0,14,1,16,3,17,6,17,7,16,10,14,12,11,13,10,13,7,12,5,10,4,7]],7:[20,[17,21,7,0,-1,-1,3,21,17,21]],8:[20,[8,21,5,20,4,18,4,16,5,14,7,13,11,12,14,11,16,9,17,7,17,4,16,2,15,1,12,0,8,0,5,1,4,2,3,4,3,7,4,9,6,11,9,12,13,13,15,14,16,16,16,18,15,20,12,21,8,21]],9:[20,[16,14,15,11,13,9,10,8,9,8,6,9,4,11,3,14,3,15,4,18,6,20,9,21,10,21,13,20,15,18,16,14,16,9,15,4,13,1,10,0,8,0,5,1,4,3]],":":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,5,2,4,1,5,0,6,1,5,2]],";":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],"<":[24,[20,18,4,9,20,0]],"=":[26,[4,12,22,12,-1,-1,4,6,22,6]],">":[24,[4,18,20,9,4,0]],"?":[18,[3,16,3,17,4,19,5,20,7,21,11,21,13,20,14,19,15,17,15,15,14,13,13,12,9,10,9,7,-1,-1,9,2,8,1,9,0,10,1,9,2]],"@":[27,[18,13,17,15,15,16,12,16,10,15,9,14,8,11,8,8,9,6,11,5,14,5,16,6,17,8,-1,-1,12,16,10,14,9,11,9,8,10,6,11,5,-1,-1,18,16,17,8,17,6,19,5,21,5,23,7,24,10,24,12,23,15,22,17,20,19,18,20,15,21,12,21,9,20,7,19,5,17,4,15,3,12,3,9,4,6,5,4,7,2,9,1,12,0,15,0,18,1,20,2,21,3,-1,-1,19,16,18,8,18,6,19,5]],A:[18,[9,21,1,0,-1,-1,9,21,17,0,-1,-1,4,7,14,7]],B:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,-1,-1,4,11,13,11,16,10,17,9,18,7,18,4,17,2,16,1,13,0,4,0]],C:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5]],D:[21,[4,21,4,0,-1,-1,4,21,11,21,14,20,16,18,17,16,18,13,18,8,17,5,16,3,14,1,11,0,4,0]],E:[19,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11,-1,-1,4,0,17,0]],F:[18,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11]],G:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,18,8,-1,-1,13,8,18,8]],H:[22,[4,21,4,0,-1,-1,18,21,18,0,-1,-1,4,11,18,11]],I:[8,[4,21,4,0]],J:[16,[12,21,12,5,11,2,10,1,8,0,6,0,4,1,3,2,2,5,2,7]],K:[21,[4,21,4,0,-1,-1,18,21,4,7,-1,-1,9,12,18,0]],L:[17,[4,21,4,0,-1,-1,4,0,16,0]],M:[24,[4,21,4,0,-1,-1,4,21,12,0,-1,-1,20,21,12,0,-1,-1,20,21,20,0]],N:[22,[4,21,4,0,-1,-1,4,21,18,0,-1,-1,18,21,18,0]],O:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21]],P:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,14,17,12,16,11,13,10,4,10]],Q:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21,-1,-1,12,4,18,-2]],R:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,4,11,-1,-1,11,11,18,0]],S:[20,[17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],T:[16,[8,21,8,0,-1,-1,1,21,15,21]],U:[22,[4,21,4,6,5,3,7,1,10,0,12,0,15,1,17,3,18,6,18,21]],V:[18,[1,21,9,0,-1,-1,17,21,9,0]],W:[24,[2,21,7,0,-1,-1,12,21,7,0,-1,-1,12,21,17,0,-1,-1,22,21,17,0]],X:[20,[3,21,17,0,-1,-1,17,21,3,0]],Y:[18,[1,21,9,11,9,0,-1,-1,17,21,9,11]],Z:[20,[17,21,3,0,-1,-1,3,21,17,21,-1,-1,3,0,17,0]],"[":[14,[4,25,4,-7,-1,-1,5,25,5,-7,-1,-1,4,25,
vendor: 4,179 bytes, line 1
111,25,-1,-1,4,-7,11,-7]],"\\":[14,[0,21,14,-3]],"]":[14,[9,25,9,-7,-1,-1,10,25,10,-7,-1,-1,3,25,10,25,-1,-1,3,-7,10,-7]],"^":[16,[6,15,8,18,10,15,-1,-1,3,12,8,17,13,12,-1,-1,8,17,8,0]],_:[16,[0,-2,16,-2]],"`":[10,[6,21,5,20,4,18,4,16,5,15,6,16,5,17]],a:[19,[15,14,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],b:[19,[4,21,4,0,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],c:[18,[15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],d:[19,[15,21,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],e:[18,[3,8,15,8,15,10,14,12,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],f:[12,[10,21,8,21,6,20,5,17,5,0,-1,-1,2,14,9,14]],g:[19,[15,14,15,-2,14,-5,13,-6,11,-7,8,-7,6,-6,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],h:[19,[4,21,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],i:[8,[3,21,4,20,5,21,4,22,3,21,-1,-1,4,14,4,0]],j:[10,[5,21,6,20,7,21,6,22,5,21,-1,-1,6,14,6,-3,5,-6,3,-7,1,-7]],k:[17,[4,21,4,0,-1,-1,14,14,4,4,-1,-1,8,8,15,0]],l:[8,[4,21,4,0]],m:[30,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0,-1,-1,15,10,18,13,20,14,23,14,25,13,26,10,26,0]],n:[19,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],o:[19,[8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3,16,6,16,8,15,11,13,13,11,14,8,14]],p:[19,[4,14,4,-7,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],q:[19,[15,14,15,-7,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],r:[13,[4,14,4,0,-1,-1,4,8,5,11,7,13,9,14,12,14]],s:[17,[14,11,13,13,10,14,7,14,4,13,3,11,4,9,6,8,11,7,13,6,14,4,14,3,13,1,10,0,7,0,4,1,3,3]],t:[12,[5,21,5,4,6,1,8,0,10,0,-1,-1,2,14,9,14]],u:[19,[4,14,4,4,5,1,7,0,10,0,12,1,15,4,-1,-1,15,14,15,0]],v:[16,[2,14,8,0,-1,-1,14,14,8,0]],w:[22,[3,14,7,0,-1,-1,11,14,7,0,-1,-1,11,14,15,0,-1,-1,19,14,15,0]],x:[17,[3,14,14,0,-1,-1,14,14,3,0]],y:[16,[2,14,8,0,-1,-1,14,14,8,0,6,-4,4,-6,2,-7,1,-7]],z:[17,[14,14,3,0,-1,-1,3,14,14,14,-1,-1,3,0,14,0]],"{":[14,[9,25,7,24,6,23,5,21,5,19,6,17,7,16,8,14,8,12,6,10,-1,-1,7,24,6,22,6,20,7,18,8,17,9,15,9,13,8,11,4,9,8,7,9,5,9,3,8,1,7,0,6,-2,6,-4,7,-6,-1,-1,6,8,8,6,8,4,7,2,6,1,5,-1,5,-3,6,-5,7,-6,9,-7]],"|":[8,[4,25,4,-7]],"}":[14,[5,25,7,24,8,23,9,21,9,19,8,17,7,16,6,14,6,12,8,10,-1,-1,7,24,8,22,8,20,7,18,6,17,5,15,5,13,6,11,10,9,6,7,5,5,5,3,6,1,7,0,8,-2,8,-4,7,-6,-1,-1,8,8,6,6,6,4,7,2,8,1,9,-1,9,-3,8,-5,7,-6,5,-7]],"~":[24,[3,6,3,8,4,11,6,12,8,12,10,11,14,8,16,7,18,7,20,8,21,10,-1,-1,3,8,4,10,6,11,8,11,10,10,14,7,16,6,18,6,20,7,21,10,21,12]]},Zi={symbol:function(t,e,i,r,n){if("translucent"===t.renderPass){var o=Tt.disabled,a=t.colorModeForRenderPass();i.layout.get("text-variable-anchor")&&function(t,e,i,r,n,o,a){for(var s=e.transform,l="map"===n,u="map"===o,c=0,p=t;c<p.length;c+=1){var h=p[c],d=r.getTile(h),f=d.getBucket(i);if(f&&f.text&&f.text.segments.get().length){var m=f.textSizeData,y=_t.evaluateSizeForZoom(m,s.zoom),v=oe(d,1,e.transform.zoom),g=$t(h.posMatrix,u,l,e.transform,v),_="none"!==i.layout.get("icon-text-fit")&&f.hasIconData();if(y){var x=Math.pow(2,s.zoom-d.tileID.overscaledZ);Di(f,l,u,a,_t.symbolSize,s,g,h.posMatrix,x,y,_)}}}}(r,t,i,e,i.layout.get("text-rotation-alignment"),i.layout.get("text-pitch-alignment"),n),0!==i.paint.get("icon-opacity").constantOr(1)&&Ri(t,e,i,r,!1,i.paint.get("icon-translate"),i.paint.get("icon-translate-anchor"),i.layout.get("icon-rotation-alignment"),i.layout.get("icon-pitch-alignment"),i.layout.get("icon-keep-upright"),o,a),0!==i.paint.get("text-opacity").constantOr(1)&&Ri(t,e,i,r,!0,i.paint.get("text-translate"),i.paint.get("text-translate-anchor"),i.layout.get("text-rotation-alignment"),i.layout.get("text-pitch-alignment"),i.layout.get("text-keep-upright"),o,a),e.map.showCollisionBoxes&&(Mi(t,e,i,r,i.paint.get("text-translate"),i.paint.get("text-translate-anchor"),!0),Mi(t,e,i,r,i.paint.get("icon-translate"),i.paint.get("icon-translate-anchor"),!1))}},circle:function(t,e,i,r){if("translucent"===t.renderPass){var n=i.paint.get("circle-opacity"),o=i.paint.get("circle-stroke-width"),a=i.paint.get("circle-stroke-opacity"),s=void 0!==i.layout.get("
1circle-sort-key").constantOr(1);if(0!==n.constantOr(1)||0!==o.constantOr(1)&&0!==a.constantOr(1)){for(var l=t.context,u=l.gl,c=t.depthModeForSublayer(0,St.ReadOnly),p=Tt.disabled,h=t.colorModeForRenderPass(),d=[],f=0;f<r.length;f++){var m=r[f],y=e.getTile(m),v=y.getBucket(i);if(v){var g=v.programConfigurations.get(i.id),_={programConfiguration:g,program:t.useProgram("circle",g),layoutVertexBuffer:v.layoutVertexBuffer,indexBuffer:v.indexBuffer,uniformValues:vi(t,m,y,i)};if(s)for(var x=0,b=v.segments.get();x<b.length;x+=1){var w=b[x];d.push({segments:new _t.SegmentVector([w]),sortKey:w.sortKey,state:_})}else d.push({segments:v.segments,sortKey:0,state:_})}}s&&d.sort(function(t,e){return t.sortKey-e.sortKey});for(var S=0,T=d;S<T.length;S+=1){var k=T[S],E=k.state,C=E.programConfiguration,A=E.program,I=E.layoutVertexBuffer,z=E.indexBuffer,P=E.uniformValues,M=k.segments;A.draw(l,u.TRIANGLES,c,p,h,Et.disabled,P,i.id,I,z,M,i.paint,t.transform.zoom,C)}}}},heatmap:function(t,e,i,r){if(0!==i.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){var n=t.context,o=n.gl,a=t.depthModeForSublayer(0,St.ReadOnly),s=Tt.disabled,l=new kt([o.ONE,o.ONE],_t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,i){var r=t.gl;t.activeTexture.set(r.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var n=i.heatmapFbo;if(n)r.bindTexture(r.TEXTURE_2D,n.colorAttachment.get()),t.bindFramebuffer.set(n.framebuffer);else{var o=r.createTexture();r.bindTexture(r.TEXTURE_2D,o),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),n=i.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4),function t(e,i,r,n){var o=e.gl;o.texImage2D(o.TEXTURE_2D,0,o.RGBA,i.width/4,i.height/4,0,o.RGBA,e.extTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:o.UNSIGNED_BYTE,null),n.colorAttachment.set(r),e.extTextureHalfFloat&&o.checkFramebufferStatus(o.FRAMEBUFFER)!==o.FRAMEBUFFER_COMPLETE&&(e.extTextureHalfFloat=null,n.colorAttachment.setDirty(),t(e,i,r,n))}(t,e,o,n)}}(n,t,i),n.clear({color:_t.Color.transparent});for(var u=0;u<r.length;u++){var c=r[u];if(!e.hasRenderableParent(c)){var p=e.getTile(c),h=p.getBucket(i);if(h){var d=h.programConfigurations.get(i.id),f=t.useProgram("heatmap",d),m=t.transform.zoom;f.draw(n,o.TRIANGLES,a,s,l,Et.disabled,(y=c.posMatrix,v=p,g=m,_=i.paint.get("heatmap-intensity"),{u_matrix:y,u_extrude_scale:oe(v,1,g),u_intensity:_}),i.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,i.paint,t.transform.zoom,d)}}}n.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,e){var i=t.context,r=i.gl,n=e.heatmapFbo;if(n){i.activeTexture.set(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,n.colorAttachment.get()),i.activeTexture.set(r.TEXTURE1);var o=e.colorRampTexture;o||(o=e.colorRampTexture=new _t.Texture(i,e.colorRamp,r.RGBA)),o.bind(r.LINEAR,r.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(i,r.TRIANGLES,St.disabled,Tt.disabled,t.colorModeForRenderPass(),Et.disabled,function(t,e,i,r){var n=_t.create();_t.ortho(n,0,t.width,t.height,0,0,1);var o=t.context.gl;return{u_matrix:n,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:i,u_color_ramp:r,u_opacity:e.paint.get("heatmap-opacity")}}(t,e,0,1),e.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,e.paint,t.transform.zoom)}}(t,i));var y,v,g,_},line:function(t,e,i,r){if("translucent"===t.renderPass){var n=i.paint.get("line-opacity"),o=i.paint.get("line-width");if(0!==n.constantOr(1)&&0!==o.constantOr(1)){var a=t.depthModeForSublayer(0,St.ReadOnly),s=t.colorModeForRenderPass(),l=i.paint.get("line-dasharray"),u=i.paint.get("line-pattern"),c=u.constantOr(1),p=i.paint.get("line-gradient"),h=i.getCrossfadeParameters(),d=c?"linePattern":l?"lineSDF":p?"lineGradient":"line",f=t.context,m=f.gl,y=!0;if(p){f.activeTexture.set(m.TEXTURE0);var v=i.gradientTexture;if(!i.gradient)return;v||(v=i.gradientTexture=new _t.Texture(f,i.gradient,m.RGBA)),v.bind(m.LINEAR,m.CLAMP_TO_EDGE)}for(var g=0,_=r;g<_.length;g+=1){var x=_[g],b=e.getTile(x);if(!c||b.patternsLoaded()){var w=b.getBucket(i);if(w){var S=w.programConfigurations.get(i.id),T=t.context.program.get(),k=t.useProgram(d,S),E=y||k.program!==T,C=u.constantOr(null);if(C&&b.imageAtlas){var A=b.imageAtlas,I=A.patternPositions[C.to.toString()],z=A.patternPositions[C.from.toString()];I&&z&&S.setConstantPatternPositions(I,z)}var P=c?(X=b,K=i,Y=h,void 0,J=(W=t).transform,Q=ki(X,J),{u_matrix:Ei(W,X,K),u_texsize:X.imageAtlasTexture.size,u_ratio:1/oe(X,1,J.zoom),u_device_pixel_ratio:_t.browser.devicePixelRatio,u_image:0,u_scale:[_t.browser.devicePixelRatio,Q,Y.fromScale,Y.toScale],u_fade:Y.t,u_units_to_pixels:[1/J.pixelsToGLUnits[0],1/J.pixelsToGLUnits[1]]}):l?(B=b,O=i,F=l,U=h,j=void 0,N=(R=t).transform,j=R.lineAtlas,V=ki(B,N),q="round"===O.layout.get("line-cap"),Z=j.getDash(F.from,q),$=j.getDash(F.to,q),H=Z.width*U.fromScale,G=$.width*U.toScale,_t.extend(Ti(R,B,O),{u_patternscale_a:[V/H,-Z.height/2],u_patternscale_b:[V/G,-$.height/2],u_sdfgamma:j.width/(256*Math.min(H,G)*_t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:Z.y,u_tex_y_b:$.y,u_mi
1x:U.t})):p?(M=t,L=b,D=i,_t.extend(Ti(M,L,D),{u_image:0})):Ti(t,b,i);c?(f.activeTexture.set(m.TEXTURE0),b.imageAtlasTexture.bind(m.LINEAR,m.CLAMP_TO_EDGE),S.updatePaintBuffers(h)):l&&(E||t.lineAtlas.dirty)&&(f.activeTexture.set(m.TEXTURE0),t.lineAtlas.bind(f)),k.draw(f,m.TRIANGLES,a,t.stencilModeForClipping(x),s,Et.disabled,P,i.id,w.layoutVertexBuffer,w.indexBuffer,w.segments,i.paint,t.transform.zoom,S),y=!1}}}}}var M,L,D,R,B,O,F,U,N,j,V,q,Z,$,H,G,W,X,K,Y,J,Q},fill:function(t,e,i,r){var n=i.paint.get("fill-color"),o=i.paint.get("fill-opacity");if(0!==o.constantOr(1)){var a=t.colorModeForRenderPass(),s=i.paint.get("fill-pattern"),l=t.opaquePassEnabledForLayer()&&!s.constantOr(1)&&1===n.constantOr(_t.Color.transparent).a&&1===o.constantOr(0)?"opaque":"translucent";if(t.renderPass===l){var u=t.depthModeForSublayer(1,"opaque"===t.renderPass?St.ReadWrite:St.ReadOnly);Oi(t,e,i,r,u,a,!1)}if("translucent"===t.renderPass&&i.paint.get("fill-antialias")){var c=t.depthModeForSublayer(i.getPaintProperty("fill-outline-color")?2:0,St.ReadOnly);Oi(t,e,i,r,c,a,!0)}}},"fill-extrusion":function(t,e,i,r){var n=i.paint.get("fill-extrusion-opacity");if(0!==n&&"translucent"===t.renderPass){var o=new St(t.context.gl.LEQUAL,St.ReadWrite,t.depthRangeFor3D);if(1!==n||i.paint.get("fill-extrusion-pattern").constantOr(1))Fi(t,e,i,r,o,Tt.disabled,kt.disabled),Fi(t,e,i,r,o,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var a=t.colorModeForRenderPass();Fi(t,e,i,r,o,Tt.disabled,a)}}},hillshade:function(t,e,i,r){if("offscreen"===t.renderPass||"translucent"===t.renderPass){for(var n=t.context,o=e.getSource().maxzoom,a=t.depthModeForSublayer(0,St.ReadOnly),s=t.colorModeForRenderPass(),l="translucent"===t.renderPass?t.stencilConfigForOverlap(r):[{},r],u=l[0],c=0,p=l[1];c<p.length;c+=1){var h=p[c],d=e.getTile(h);d.needsHillshadePrepare&&"offscreen"===t.renderPass?Ni(t,d,i,o,a,Tt.disabled,s):"translucent"===t.renderPass&&Ui(t,d,i,a,u[h.overscaledZ],s)}n.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,i,r){if("translucent"===t.renderPass&&0!==i.paint.get("raster-opacity")&&r.length)for(var n=t.context,o=n.gl,a=e.getSource(),s=t.useProgram("raster"),l=t.colorModeForRenderPass(),u=a instanceof z?[{},r]:t.stencilConfigForOverlap(r),c=u[0],p=u[1],h=p[p.length-1].overscaledZ,d=!t.options.moving,f=0,m=p;f<m.length;f+=1){var y=m[f],v=t.depthModeForSublayer(y.overscaledZ-h,1===i.paint.get("raster-opacity")?St.ReadWrite:St.ReadOnly,o.LESS),g=e.getTile(y),_=t.transform.calculatePosMatrix(y.toUnwrapped(),d);g.registerFadeDuration(i.paint.get("raster-fade-duration"));var x=e.findLoadedParent(y,0),b=ji(g,x,e,i,t.transform),w=void 0,S=void 0,T="nearest"===i.paint.get("raster-resampling")?o.NEAREST:o.LINEAR;n.activeTexture.set(o.TEXTURE0),g.texture.bind(T,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),n.activeTexture.set(o.TEXTURE1),x?(x.texture.bind(T,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,x.tileID.overscaledZ-g.tileID.overscaledZ),S=[g.tileID.canonical.x*w%1,g.tileID.canonical.y*w%1]):g.texture.bind(T,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST);var k=Ci(_,S||[0,0],w||1,b,i);a instanceof z?s.draw(n,o.TRIANGLES,v,Tt.disabled,l,Et.disabled,k,i.id,a.boundsBuffer,t.quadTriangleIndexBuffer,a.boundsSegments):s.draw(n,o.TRIANGLES,v,c[y.overscaledZ],l,Et.disabled,k,i.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,i){var r,n,o,a,s,l,u,c,p,h,d,f,m,y,v,g,_,x,b,w=i.paint.get("background-color"),S=i.paint.get("background-opacity");if(0!==S){var T=t.context,k=T.gl,E=t.transform,C=E.tileSize,A=i.paint.get("background-pattern");if(!t.isPatternMissing(A)){var I=!A&&1===w.a&&1===S&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass===I){var z=Tt.disabled,P=t.depthModeForSublayer(0,"opaque"===I?St.ReadWrite:St.ReadOnly),M=t.colorModeForRenderPass(),L=t.useProgram(A?"backgroundPattern":"background"),D=E.coveringTiles({tileSize:C});A&&(T.activeTexture.set(k.TEXTURE0),t.imageManager.bind(t.context));for(var R=i.getCrossfadeParameters(),B=0,O=D;B<O.length;B+=1){var F=O[B],U=t.transform.calculatePosMatrix(F.toUnwrapped()),N=A?(r=U,n=S,o=t,a=A,s={tileID:F,tileSize:C},l=R,b=x=_=g=v=y=m=f=d=h=p=c=u=void 0,_t.extend((u=a,c=l,h=s,d=(p=o).imageManager.getPattern(u.from.toString()),f=p.imageManager.getPattern(u.to.toString()),m=p.imageManager.getPixelSize(),y=m.width,v=m.height,g=Math.pow(2,h.tileID.overscaledZ
vendor: 4,462 bytes, line 1
1),_=h.tileSize*Math.pow(2,p.transform.tileZoom)/g,x=_*(h.tileID.canonical.x+h.tileID.wrap*g),b=_*h.tileID.canonical.y,{u_image:0,u_pattern_tl_a:d.tl,u_pattern_br_a:d.br,u_pattern_tl_b:f.tl,u_pattern_br_b:f.br,u_texsize:[y,v],u_mix:c.t,u_pattern_size_a:d.displaySize,u_pattern_size_b:f.displaySize,u_scale_a:c.fromScale,u_scale_b:c.toScale,u_tile_units_to_pixels:1/oe(h,1,p.transform.tileZoom),u_pixel_coord_upper:[x>>16,b>>16],u_pixel_coord_lower:[65535&x,65535&b]}),{u_matrix:r,u_opacity:n})):{u_matrix:U,u_opacity:S,u_color:w};L.draw(T,k.TRIANGLES,P,z,M,Et.disabled,N,i.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,i){for(var r=0;r<i.length;r++)Vi(t,e,i[r])},custom:function(t,e,i){var r=t.context,n=i.implementation;if("offscreen"===t.renderPass){var o=n.prerender;o&&(t.setCustomLayerDefaults(),r.setColorMode(t.colorModeForRenderPass()),o.call(n,r.gl,t.transform.customLayerMatrix()),r.setDirty(),t.setBaseState())}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),r.setColorMode(t.colorModeForRenderPass()),r.setStencilMode(Tt.disabled);var a="3d"===n.renderingMode?new St(t.context.gl.LEQUAL,St.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,St.ReadOnly);r.setDepthMode(a),n.render(r.gl,t.transform.customLayerMatrix()),r.setDirty(),t.setBaseState(),r.bindFramebuffer.set(null)}}},$i=function(t,e){this.context=new Ct(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=At.maxUnderzooming+At.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.depthRboNeedsClear=!0,this.crossTileSymbolIndex=new ze,this.gpuTimers={}};$i.prototype.resize=function(t,e){var i=this.context.gl;if(this.width=t*_t.browser.devicePixelRatio,this.height=e*_t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var r=0,n=this.style._order;r<n.length;r+=1){var o=n[r];this.style._layers[o].resize()}this.depthRbo&&(i.deleteRenderbuffer(this.depthRbo),this.depthRbo=null)},$i.prototype.setup=function(){var t=this.context,e=new _t.StructArrayLayout2i4;e.emplaceBack(0,0),e.emplaceBack(_t.EXTENT,0),e.emplaceBack(0,_t.EXTENT),e.emplaceBack(_t.EXTENT,_t.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(e,Be.members),this.tileExtentSegments=_t.SegmentVector.simpleSegment(0,0,4,2);var i=new _t.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(_t.EXTENT,0),i.emplaceBack(0,_t.EXTENT),i.emplaceBack(_t.EXTENT,_t.EXTENT),this.debugBuffer=t.createVertexBuffer(i,Be.members),this.debugSegments=_t.SegmentVector.simpleSegment(0,0,4,5);var r=new _t.StructArrayLayout4i8;r.emplaceBack(0,0,0,0),r.emplaceBack(_t.EXTENT,0,_t.EXTENT,0),r.emplaceBack(0,_t.EXTENT,0,_t.EXTENT),r.emplaceBack(_t.EXTENT,_t.EXTENT,_t.EXTENT,_t.EXTENT),this.rasterBoundsBuffer=t.createVertexBuffer(r,I.members),this.rasterBoundsSegments=_t.SegmentVector.simpleSegment(0,0,4,2);var n=new _t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(1,0),n.emplaceBack(0,1),n.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(n,Be.members),this.viewportSegments=_t.SegmentVector.simpleSegment(0,0,4,2);var o=new _t.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(o);var a=new _t.StructArrayLayout3ui6;a.emplaceBack(0,1,2),a.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(a);var s=this.context.gl;this.stencilClearMode=new Tt({func:s.ALWAYS,mask:0},0,255,s.ZERO,s.ZERO,s.ZERO)},$i.prototype.clearStencil=function(){var t=this.context,e=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var i=_t.create();_t.ortho(i,0,this.width,this.height,0,0,1),_t.scale(i,i,[e.drawingBufferWidth,e.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(t,e.TRIANGLES,St.disabled,this.stencilClearMode,kt.disabled,Et.disabled,bi(i),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},$i.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&&t.isTileClipped()&&e&&e.length){this.currentStencilSource=t.source;var i=this.context,r=i.gl;256<this.nextStencilID+e.length&&this.clearStencil(),i.setColorMode(kt.disabled),i.setDepthMode(St.disabled);var n=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var o=0,a=e;o<a.length;o+=1){var s=a[o],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;n.draw(i,r.TRIANGLES,St.disabled,new Tt({func:r.ALWAYS,mask:0}
1,l,255,r.KEEP,r.KEEP,r.REPLACE),kt.disabled,Et.disabled,bi(s.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},$i.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,256<this.nextStencilID+1&&this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new Tt({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},$i.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Tt({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},$i.prototype.stencilConfigForOverlap=function(t){var e,i=this.context.gl,r=t.sort(function(t,e){return e.overscaledZ-t.overscaledZ}),n=r[r.length-1].overscaledZ,o=r[0].overscaledZ-n+1;if(1<o){this.currentStencilSource=void 0,256<this.nextStencilID+o&&this.clearStencil();for(var a={},s=0;s<o;s++)a[s+n]=new Tt({func:i.GEQUAL,mask:255},s+this.nextStencilID,255,i.KEEP,i.KEEP,i.REPLACE);return this.nextStencilID+=o,[a,r]}return[(e={},e[n]=Tt.disabled,e),r]},$i.prototype.colorModeForRenderPass=function(){var t=this.context.gl;return this._showOverdrawInspector?new kt([t.CONSTANT_COLOR,t.ONE],new _t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?kt.unblended:kt.alphaBlended},$i.prototype.depthModeForSublayer=function(t,e,i){if(!this.opaquePassEnabledForLayer())return St.disabled;var r=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new St(i||this.context.gl.LEQUAL,e,[r,r])},$i.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer<this.opaquePassCutoff},$i.prototype.render=function(t,e){var i=this;this.style=t,this.options=e,this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(_t.browser.now()),this.imageManager.beginFrame();var r=this.style._order,n=this.style.sourceCaches;for(var o in n){var a=n[o];a.used&&a.prepare(this.context)}var s,l,u={},c={},p={};for(var h in n){var d=n[h];u[h]=d.getVisibleCoordinates(),c[h]=u[h].slice().reverse(),p[h]=d.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var f=0;f<r.length;f++){var m=r[f];if(this.style._layers[m].is3D()){this.opaquePassCutoff=f;break}}this.renderPass="offscreen",this.depthRboNeedsClear=!0;for(var y=0,v=r;y<v.length;y+=1){var g=v[y],_=this.style._layers[g];if(_.hasOffscreenPass()&&!_.isHidden(this.transform.zoom)){var x=c[_.source];("custom"===_.type||x.length)&&this.renderLayer(this,n[_.source],_,x)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:e.showOverdrawInspector?_t.Color.black:_t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=e.showOverdrawInspector,this.depthRangeFor3D=[0,1-(t._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass="opaque",this.currentLayer=r.length-1;0<=this.currentLayer;this.currentLayer--){var b=this.style._layers[r[this.currentLayer]],w=n[b.source],S=u[b.source];this._renderTileClippingMasks(b,S),this.renderLayer(this,w,b,S)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<r.length;this.currentLayer++){var T=this.style._layers[r[this.currentLayer]],k=n[T.source],E=("symbol"===T.type?p:c)[T.source];this._renderTileClippingMasks(T,u[T.source]),this.renderLayer(this,k,T,E)}this.options.showTileBoundaries&&(_t.values(this.style._layers).forEach(function(t){t.source&&!t.isHidden(i.transform.zoom)&&(t.source!==(l&&l.id)&&(l=i.style.sourceCaches[t.source]),(!s||s.getSource().maxzoom<l.getSource().maxzoom)&&(s=l))}),s&&Zi.debug(this,s,s.getVisibleCoordinates())),this.context.setDefault()},$i.prototype.setupOffscreenDepthRenderbuffer=function(){var t=this.context;this.depthRbo||(this.depthRbo=t.createRenderbuffer(t.gl.DEPTH_COMPONENT16,this.width,this.height))},$i.prototype.renderLayer=function(t,e,i,r){i.isHidden(this.transform.zoom)||("background"===i.type||"custom"===i.type||r.length)&&(this.id=i.id,this.gpuTimingStart(i),Zi[i.type](t,e,i,r,this.style.placement.variableOffsets),this.gpuTimingEnd())},$i.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,i=this.gpuTimers[t.id];i||(i=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}
vendor: 14,024 bytes, line 1
1),i.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,i.query)}},$i.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},$i.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},$i.prototype.queryGpuTimers=function(t){var e={};for(var i in t){var r=t[i],n=this.context.extTimerQuery,o=n.getQueryObjectEXT(r.query,n.QUERY_RESULT_EXT)/1e6;n.deleteQueryEXT(r.query),e[i]=o}return e},$i.prototype.translatePosMatrix=function(t,e,i,r,n){if(!i[0]&&!i[1])return t;var o=n?"map"===r?this.transform.angle:0:"viewport"===r?-this.transform.angle:0;if(o){var a=Math.sin(o),s=Math.cos(o);i=[i[0]*s-i[1]*a,i[0]*a+i[1]*s]}var l=[n?i[0]:oe(e,i[0],this.transform.zoom),n?i[1]:oe(e,i[1],this.transform.zoom),0],u=new Float32Array(16);return _t.translate(u,t,l),u},$i.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},$i.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&&0<e.length?e.pop():null},$i.prototype.isPatternMissing=function(t){if(!t)return!1;var e=this.imageManager.getPattern(t.from.toString()),i=this.imageManager.getPattern(t.to.toString());return!e||!i},$i.prototype.useProgram=function(t,e){this.cache=this.cache||{};var i=""+t+(e?e.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[i]||(this.cache[i]=new hi(this.context,ci[t],e,zi[t],this._showOverdrawInspector)),this.cache[i]},$i.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},$i.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)};var Hi=function(t,e){this.points=t,this.planes=e};Hi.fromInvProjectionMatrix=function(e,i,t){var r=Math.pow(2,t),o=[[-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(function(t){return _t.transformMat4([],t,e)}).map(function(t){return _t.scale$1([],t,1/t[3]/i*r)}),n=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(t){var e=_t.sub([],o[t[0]],o[t[1]]),i=_t.sub([],o[t[2]],o[t[1]]),r=_t.normalize([],_t.cross([],e,i)),n=-_t.dot(r,o[t[1]]);return r.concat(n)});return new Hi(o,n)};var Gi=function(t,e){this.min=t,this.max=e,this.center=_t.scale$2([],_t.add([],this.min,this.max),.5)};Gi.prototype.quadrant=function(t){for(var e=[t%2==0,t<2],i=_t.clone$2(this.min),r=_t.clone$2(this.max),n=0;n<e.length;n++)i[n]=e[n]?this.min[n]:this.center[n],r[n]=e[n]?this.center[n]:this.max[n];return r[2]=this.max[2],new Gi(i,r)},Gi.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},Gi.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},Gi.prototype.intersects=function(t){for(var e=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],i=!0,r=0;r<t.planes.length;r++){for(var n=t.planes[r],o=0,a=0;a<e.length;a++)o+=0<=_t.dot$1(n,e[a]);if(0===o)return 0;o!==e.length&&(i=!1)}if(i)return 2;for(var s=0;s<3;s++){for(var l=Number.MAX_VALUE,u=-Number.MAX_VALUE,c=0;c<t.points.length;c++){var p=t.points[c][s]-this.min[s];l=Math.min(l,p),u=Math.max(u,p)}if(u<0||l>this.max[s]-this.min[s])return 0}return 1};var Wi=function(t,e,i,r,n){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===n||n,this._minZoom=t||0,this._maxZoom=e||22,this._minPitch=null==i?0:i,this._maxPitch=null==r?60:r,this.setMaxBounds(),this.width=0,this.height=0,this._center=new _t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._posMatrixCache={},this._alignedPosMatrixCache={}},Xi={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerPoint:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Wi.prototype.clone=function(){var t=new Wi(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._calcMatrices(),t},Xi.minZoom.get=function(){return this._minZoom},Xi.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Xi.maxZoom.get=function(){return this._maxZoom},Xi.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Xi.minPitch.get=function(){return this._minPitch},Xi.minPitch.set=function(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Xi.maxPitch.get=function(){return this._maxPitch},Xi.maxPitch.set=function(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Xi.renderWorldCopies.get=function(){return this._renderWorldCopies},Xi.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},Xi.worldSize.get=function(){return this.tileSize*this.scale},Xi.centerPoint.get=function(){return this.size._div(2)},Xi.size.get=function(){return new _t.Point(this.width,this.height)},Xi.bearing.get=function(){return-this.angle/Math.PI*180},Xi.bearing.set=function(t){var e=-_t.wrap(t,-180,180)*Math.PI/180;this.angle!==e&&(this._unmodified=!1,this.angle=e,this._calcMatrices(),this.rotationMatrix=_t.create$2(),_t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Xi.pitch.get=function(){return this._pitch/Math.PI*180},Xi.pitch.set=function(t){var e=_t.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==e&&(this._unmodified=!1,this._pitch=e,this._calcMatrices())},Xi.fov.get=function(){return this._fov/Math.PI*180},Xi.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Xi.zoom.get=function(){return this._zoom},Xi.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Xi.center.get=function(){return this._center},Xi.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Wi.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},Wi.prototype.getVisibleUnwrappedCoordinates=function(t){var e=[new _t.UnwrappedTileID(0,t)];if(this._renderWorldCopies)for(var i=this.pointCoordinate(new _t.Point(0,0)),r=this.pointCoordinate(new _t.Point(this.width,0)),n=this.pointCoordinate(new _t.Point(this.width,this.height)),o=this.pointCoordinate(new _t.Point(0,this.height)),a=Math.floor(Math.min(i.x,r.x,n.x,o.x)),s=Math.floor(Math.max(i.x,r.x,n.x,o.x)),l=a-1;l<=s+1;l++)0!==l&&e.push(new _t.UnwrappedTileID(l,t));return e},Wi.prototype.coveringTiles=function(t){var e=this.coveringZoomLevel(t),i=e;if(void 0!==t.minzoom&&e<t.minzoom)return[];void 0!==t.maxzoom&&e>t.maxzoom&&(e=t.maxzoom);var r=_t.MercatorCoordinate.fromLngLat(this.center),n=Math.pow(2,e),o=[n*r.x,n*r.y,0],a=Hi.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,e),s=t.minzoom||0;this.pitch<=60&&(s=e);var l=function(t){return{aabb:new Gi([t*n,0,0],[(t+1)*n,n,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},u=[],c=[],p=e,h=t.reparseOverscaled?i:e;if(this._renderWorldCopies)for(var d=1;d<=3;d++)u.push(l(-d)),u.push(l(d));for(u.push(l(0));0<u.length;){var f=u.pop(),m=f.x,y=f.y,v=f.fullyVisible;if(!v){var g=f.aabb.intersects(a);if(0===g)continue;v=2===g}var _=f.aabb.distanceX(o),x=f.aabb.distanceY(o),b=Math.max(Math.abs(_),Math.abs(x)),w=3+(1<<p-f.zoom)-2;if(f.zoom===p||w<b&&f.zoom>=s)c.push({tileID:new _t.OverscaledTileID(f.zoom===p?h:f.zoom,f.wrap,f.zoom,m,y),distanceSq:_t.sqrLen([o[0]-.5-m,o[1]-.5-y])});else for(var S=0;S<4;S++){var T=(m<<1)+S%2,k=(y<<1)+(S>>1);u.push({aabb:f.aabb.quadrant(S),zoom:f.zoom+1,x:T,y:k,wrap:f.wrap,fullyVisible:v})}}return c.sort(function(t,e){return t.distanceSq-e.distanceSq}).map(function(t){return t.tileID})},Wi.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Xi.unmodified.get=function(){return this._unmodified},Wi.prototype.zoomScale=function(t){return Math.pow(2,t)},Wi.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},Wi.prototype.project=function(t){var e=_t.clamp(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new _t.Point(_t.mercatorXfromLng(t.lng)*this.worldSize,_t.mercatorYfromLat(e)*this.worldSize)},Wi.prototype.unproject=function(t){return new _t.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()},Xi.point.get=function(){return this.project(this.center)},Wi.prototype.setLocationAtPoint=function(t,e){var i=this.pointCoordinate(e),r=this.pointCoordinate(this.centerPoint),n=this.locationCoordinate(t),o=new _t.MercatorCoordinate(n.x-(i.x-r.x),n.y-(i.y-r.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&(this.center=this.center.wrap())},Wi.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},Wi.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},Wi.prototype.locationCoordinate=function(t){return _t.MercatorCoordinate.fromLngLat(t)},Wi.prototype.coordinateLocation=function(t){return t.toLngLat()},Wi.prototype.pointCoordinate=function(t){var e=[t.x,t.y,0,1],i=[t.x,t.y,1,1];_t.transformMat4(e,e,this.pixelMatrixInverse),_t.transformMat4(i,i,this.pixelMatrixInverse);var r=e[3],n=i[3],o=e[0]/r,a=i[0]/n,s=e[1]/r,l=i[1]/n,u=e[2]/r,c=i[2]/n,p=u===c?0:(0-u)/(c-u);return new _t.MercatorCoordinate(_t.number(o,a,p)/this.worldSize,_t.number(s,l,p)/this.worldSize)},Wi.prototype.coordinatePoint=function(t){var e=[t.x*this.worldSize,t.y*this.worldSize,0,1];return _t.transformMat4(e,e,this.pixelMatrix),new _t.Point(e[0]/e[3],e[1]/e[3])},Wi.prototype.getBounds=function(){return(new _t.LngLatBounds).extend(this.pointLocation(new _t.Point(0,0))).extend(this.pointLocation(new _t.Point(this.width,0))).extend(this.pointLocation(new _t.Point(this.width,this.height))).extend(this.pointLocation(new _t.Point(0,this.height)))},Wi.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new _t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Wi.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Wi.prototype.calculatePosMatrix=function(t,e){void 0===e&&(e=!1);var i=t.key,r=e?this._alignedPosMatrixCache:this._posMatrixCache;if(r[i])return r[i];var n=t.canonical,o=this.worldSize/this.zoomScale(n.z),a=n.x+Math.pow(2,n.z)*t.wrap,s=_t.identity(new Float64Array(16));return _t.translate(s,s,[a*o,n.y*o,0]),_t.scale(s,s,[o/_t.EXTENT,o/_t.EXTENT,1]),_t.multiply(s,e?this.alignedProjMatrix:this.projMatrix,s),r[i]=new Float32Array(s),r[i]},Wi.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Wi.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var t,e,i,r,n=-90,o=90,a=-180,s=180,l=this.size,u=this._unmodified;if(this.latRange){var c=this.latRange;n=_t.mercatorYfromLat(c[1])*this.worldSize,t=(o=_t.mercatorYfromLat(c[0])*this.worldSize)-n<l.y?l.y/(o-n):0}if(this.lngRange){var p=this.lngRange;a=_t.mercatorXfromLng(p[0])*this.worldSize,e=(s=_t.mercatorXfromLng(p[1])*this.worldSize)-a<l.x?l.x/(s-a):0}var h=this.point,d=Math.max(e||0,t||0);if(d)return this.center=this.unproject(new _t.Point(e?(s+a)/2:h.x,t?(o+n)/2:h.y)),this.zoom+=this.scaleZoom(d),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var f=h.y,m=l.y/2;f-m<n&&(r=n+m),o<f+m&&(r=o-m)}if(this.lngRange){var y=h.x,v=l.x/2;y-v<a&&(i=a+v),s<y+v&&(i=s-v)}void 0===i&&void 0===r||(this.center=this.unproject(new _t.Point(void 0!==i?i:h.x,void 0!==r?r:h.y))),this._unmodified=u,this._constraining=!1}},Wi.prototype._calcMatrices=function(){if(this.height){this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var t=this._fov/2,e=Math.PI/2+this._pitch,i=Math.sin(t)*this.cameraToCenterDistance/Math.sin(_t.clamp(Math.PI-e-t,.01,Math.PI-.01)),r=this.point,n=r.x,o=r.y,a=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),s=this.height/50,l=new Float64Array(16);_t.perspective(l,this._fov,this.width/this.height,s,a),_t.scale(l,l,[1,-1,1]),_t.translate(l,l,[0,0,-this.cameraToCenterDistance]),_t.rotateX(l,l,this._pitch),_t.rotateZ(l,l,this.angle),_t.translate(l,l,[-n,-o,0]),this.mercatorMatrix=_t.scale([],l,[this.worldSize,this.worldSize,this.worldSize]),_t.scale(l,l,[1,1,_t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=l,this.invProjMatrix=_t.invert([],this.projMatrix);var u=this.width%2/2,c=this.height%2/2,p=Math.cos(this.angle),h=Math.sin(this.angle),d=n-Math.round(n)+p*u+h*c,f=o-Math.round(o)+p*c+h*u,m=new Float64Array(l);if(_t.translate(m,m,[.5<d?d-1:d,.5<f?f-1:f,0]),this.alignedProjMatrix=m,l=_t.create(),_t.scale(l,l,[this.width/2,-this.height/2,1]),_t.translate(l,l,[1,-1,0]),this.labelPlaneMatr
1ix=l,l=_t.create(),_t.scale(l,l,[1,-1,1]),_t.translate(l,l,[-1,-1,0]),_t.scale(l,l,[2/this.width,2/this.height,1]),this.glCoordMatrix=l,this.pixelMatrix=_t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(l=_t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=l,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Wi.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var t=this.pointCoordinate(new _t.Point(0,0)),e=[t.x*this.worldSize,t.y*this.worldSize,0,1];return _t.transformMat4(e,e,this.pixelMatrix)[3]/this.cameraToCenterDistance},Wi.prototype.getCameraPoint=function(){var t=this._pitch,e=Math.tan(t)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new _t.Point(0,e))},Wi.prototype.getCameraQueryGeometry=function(t){var e=this.getCameraPoint();if(1===t.length)return[t[0],e];for(var i=e.x,r=e.y,n=e.x,o=e.y,a=0,s=t;a<s.length;a+=1){var l=s[a];i=Math.min(i,l.x),r=Math.min(r,l.y),n=Math.max(n,l.x),o=Math.max(o,l.y)}return[new _t.Point(i,r),new _t.Point(n,r),new _t.Point(n,o),new _t.Point(i,o),new _t.Point(i,r)]},Object.defineProperties(Wi.prototype,Xi);var Ki=function(t){var e,i,r,n;this._hashName=t&&encodeURIComponent(t),_t.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=(e=this._updateHashUnthrottled.bind(this),i=!300,r=null,n=function(){r=null,i&&(e(),r=setTimeout(n,300),i=!1)},function(){return i=!0,r||n(),r})};Ki.prototype.addTo=function(t){return this._map=t,_t.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},Ki.prototype.remove=function(){return _t.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},Ki.prototype.getHashString=function(t){var e=this._map.getCenter(),i=Math.round(100*this._map.getZoom())/100,r=Math.ceil((i*Math.LN2+Math.log(512/360/.5))/Math.LN10),n=Math.pow(10,r),o=Math.round(e.lng*n)/n,a=Math.round(e.lat*n)/n,s=this._map.getBearing(),l=this._map.getPitch(),u="";if(u+=t?"/"+o+"/"+a+"/"+i:i+"/"+a+"/"+o,(s||l)&&(u+="/"+Math.round(10*s)/10),l&&(u+="/"+Math.round(l)),this._hashName){var c=this._hashName,p=!1,h=_t.window.location.hash.slice(1).split("&").map(function(t){var e=t.split("=")[0];return e===c?(p=!0,e+"="+u):t}).filter(function(t){return t});return p||h.push(c+"="+u),"#"+h.join("&")}return"#"+u},Ki.prototype._getCurrentHash=function(){var e,i=this,t=_t.window.location.hash.replace("#","");return this._hashName?(t.split("&").map(function(t){return t.split("=")}).forEach(function(t){t[0]===i._hashName&&(e=t)}),(e&&e[1]||"").split("/")):t.split("/")},Ki.prototype._onHashChange=function(){var t=this._getCurrentHash();if(3<=t.length&&!t.some(function(t){return isNaN(t)})){var e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},Ki.prototype._updateHashUnthrottled=function(){var t=this.getHashString();try{_t.window.history.replaceState(_t.window.history.state,"",t)}catch(t){}};var Yi=function(a){function t(t,e,i,r){void 0===r&&(r={});var n=x.mousePos(e.getCanvasContainer(),i),o=e.unproject(n);a.call(this,t,_t.extend({point:n,lngLat:o,originalEvent:i},r)),this._defaultPrevented=!1,this.target=e}a&&(t.__proto__=a);var e={defaultPrevented:{configurable:!0}};return((t.prototype=Object.create(a&&a.prototype)).constructor=t).prototype.preventDefault=function(){this._defaultPrevented=!0},e.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(t.prototype,e),t}(_t.Event),Ji=function(s){function t(t,e,i){var r=x.touchPos(e.getCanvasContainer(),i),n=r.map(function(t){return e.unproject(t)}),o=r.reduce(function(t,e,i,r){return t.add(e.div(r.length))},new _t.Point(0,0)),a=e.unproject(o);s.call(this,t,{points:r,point:o,lngLats:n,lngLat:a,originalEvent:i}),this._defaultPrevented=!1}s&&(t.__proto__=s);var e={defaultPrevented:{configurable:!0}};return((t.prototype=Object.create(s&&s.prototype)).constructor=t).prototype.preventDefault=function(){this._defaultPrevented=!0},e.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(t.prototype,e),t}(_t.Event),Qi=function(r){function t(t,e,i){r.call(this,t,{originalEvent:i}),this._defaultPrevented=!1}r&&(t.__proto__=r);var e={defaultPrevented:{configurable:!0}};return((t.prototype=Object.create(r&&r.prototype)).constructor=t).prototype.preventDefault=function(){this._defaultPrevented=!0},e.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(t.prototype,e),t}(_t.Event),tr=function(t){this._map=t,this._el=t.getCanvasContainer(),this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,_t.bindAll(["_onWheel","_onTimeout","_onScrollFrame","_onScrollFinished"],this)};tr.prototype.setZoomRate=function(t){this._defaultZoomRate=t},tr.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},tr.prototype.isEnabled=function(){return!!this._enabled},tr.prototype.isActive=function(){return!!this._active},tr.prototype.isZooming=function(){return!!this._zooming},tr.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around)},tr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},tr.prototype.onWheel=function(t){if(this.isEnabled()){var e=t.deltaMode===_t.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,i=_t.browser.now(),r=i-(this._lastWheelEventTime||0);this._lastWheelEventTime=i,0!==e&&e%4.000244140625==0?this._type="wheel":0!==e&&Math.abs(e)<4?this._type="trackpad":400<r?(this._type=null,this._lastValue=e,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(r*e)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,e+=this._lastValue)),t.shiftKey&&e&&(e/=4),this._type&&(this._lastWheelEvent=t,this._delta-=e,this.isActive()||this._start(t)),t.preventDefault()}}
vendor: 5,549 bytes, line 1
1,tr.prototype._onTimeout=function(t){this._type="wheel",this._delta-=this._lastValue,this.isActive()||this._start(t)},tr.prototype._start=function(t){if(this._delta){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0,this._map.fire(new _t.Event("movestart",{originalEvent:t})),this._map.fire(new _t.Event("zoomstart",{originalEvent:t}))),this._finishTimeout&&clearTimeout(this._finishTimeout);var e=x.mousePos(this._el,t);this._around=_t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(e)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame))}},tr.prototype._onScrollFrame=function(){var t=this;if(this._frameId=null,this.isActive()){var e=this._map.transform;if(0!==this._delta){var i="wheel"===this._type&&4.000244140625<Math.abs(this._delta)?this._wheelZoomRate:this._defaultZoomRate,r=2/(1+Math.exp(-Math.abs(this._delta*i)));this._delta<0&&0!==r&&(r=1/r);var n="number"==typeof this._targetZoom?e.zoomScale(this._targetZoom):e.scale;this._targetZoom=Math.min(e.maxZoom,Math.max(e.minZoom,e.scaleZoom(n*r))),"wheel"===this._type&&(this._startZoom=e.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o="number"==typeof this._targetZoom?this._targetZoom:e.zoom,a=this._startZoom,s=this._easing,l=!1;if("wheel"===this._type&&a&&s){var u=Math.min((_t.browser.now()-this._lastWheelEventTime)/200,1),c=s(u);e.zoom=_t.number(a,o,c),u<1?this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame)):l=!0}else e.zoom=o,l=!0;e.setLocationAtPoint(this._around,this._aroundPoint),this._map.fire(new _t.Event("move",{originalEvent:this._lastWheelEvent})),this._map.fire(new _t.Event("zoom",{originalEvent:this._lastWheelEvent})),l&&(this._active=!1,this._finishTimeout=setTimeout(function(){t._zooming=!1,t._map.fire(new _t.Event("zoomend",{originalEvent:t._lastWheelEvent})),t._map.fire(new _t.Event("moveend",{originalEvent:t._lastWheelEvent})),delete t._targetZoom},200))}},tr.prototype._smoothOutEasing=function(t){var e=_t.ease;if(this._prevEase){var i=this._prevEase,r=(_t.browser.now()-i.start)/i.duration,n=i.easing(r+.01)-i.easing(r),o=.27/Math.sqrt(n*n+1e-4)*.01,a=Math.sqrt(.0729-o*o);e=_t.bezier(o,a,.25,1)}return this._prevEase={start:_t.browser.now(),duration:t,easing:e},e};var er=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1,_t.bindAll(["_onMouseMove","_onMouseUp","_onKeyDown"],this)};er.prototype.isEnabled=function(){return!!this._enabled},er.prototype.isActive=function(){return!!this._active},er.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},er.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},er.prototype.onMouseDown=function(t){this.isEnabled()&&t.shiftKey&&0===t.button&&(_t.window.document.addEventListener("mousemove",this._onMouseMove,!1),_t.window.document.addEventListener("keydown",this._onKeyDown,!1),_t.window.document.addEventListener("mouseup",this._onMouseUp,!1),x.disableDrag(),this._startPos=this._lastPos=x.mousePos(this._el,t),this._active=!0)},er.prototype._onMouseMove=function(t){var e=x.mousePos(this._el,t);if(!(this._lastPos.equals(e)||!this._box&&e.dist(this._startPos)<this._clickTolerance)){var i=this._startPos;this._lastPos=e,this._box||(this._box=x.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",t));var r=Math.min(i.x,e.x),n=Math.max(i.x,e.x),o=Math.min(i.y,e.y),a=Math.max(i.y,e.y);x.setTransform(this._box,"translate("+r+"px,"+o+"px)"),this._box.style.width=n-r+"px",this._box.style.height=a-o+"px"}},er.prototype._onMouseUp=function(t){if(0===t.button){var e=this._startPos,i=x.mousePos(this._el,t);this._finish(),x.suppressClick(),e.x===i.x&&e.y===i.y?this._fireEvent("boxzoomcancel",t):this._map.fitScreenCoordinates(e,i,this._map.getBearing(),{linear:!0}).fire(new _t.Event("boxzoomend",{originalEvent:t}))}},er.prototype._onKeyDown=function(t){27===t.keyCode&&(this._finish(),this._fireEvent("boxzoomcancel",t))},er.prototype._finish=function(){this._active=!1,_t.window.document.removeEventListener("mousemove",this._onMouseMove,!1),_t.window.document.removeEventListener("keydown",this._onKeyDown,!1),_t.window.document.removeEventListener("mouseup",this._onMouseUp,!1),this._container.classList.remove("mapboxgl-crosshair"),this._box&&(x.remove(this._box),this._box=null),x.enableDrag(),delete this._startPos,delete this._lastPos},er.prototype._fireEvent=function(t,e){return this._map.fire(new _t.Event(t,{originalEvent:e}))};var ir=_t.bezier(0,0,.25,1),rr=function(t,e){this._map=t,this._el=e.element||t.getCanvasContainer(),this._state="disabled",this._button=e.button||"right",this._bearingSnap=e.bearingSnap||0,this._pitchWithRotate=!1!==e.pitchWithRotate,this._clickTolerance=e.clickTolerance||1,_t.bindAll(["onMouseDown","_onMouseMove","_onMouseUp","_onBlur","_onDragFrame"],this)};rr.prototype.isEnabled=function(){return"disabled"!==this._state},rr.prototype.isActive=function(){return"active"===this._state},rr.prototype.enable=function(){this.isEnabled()||(this._state="enabled")},rr.prototype.disable=function(){if(this.isEnabled())switch(this._state){case"active":this._state="disabled",this._unbind(),this._deactivate(),this._fireEvent("rotateend"),this._pitchWithRotate&&this._fireEvent("pitchend"),this._fireEvent("moveend");break;
1case"pending":this._state="disabled",this._unbind();break;default:this._state="disabled"}},rr.prototype.onMouseDown=function(t){if("enabled"===this._state){var e="touchstart"===t.type;if(e)this._startTime=Date.now();else if("right"===this._button){if(this._eventButton=x.mouseButton(t),t.altKey||t.metaKey)return;if(this._eventButton!==(t.ctrlKey?0:2))return}else{if(t.ctrlKey||0!==x.mouseButton(t))return;this._eventButton=0}x.disableDrag(),e?(_t.window.document.addEventListener("touchmove",this._onMouseMove,{capture:!0}),_t.window.document.addEventListener("touchend",this._onMouseUp)):(_t.window.document.addEventListener("mousemove",this._onMouseMove,{capture:!0}),_t.window.document.addEventListener("mouseup",this._onMouseUp)),_t.window.addEventListener("blur",this._onBlur),this._state="pending",this._inertia=[[_t.browser.now(),this._map.getBearing()]],this._startPos=this._prevPos=this._lastPos=x.mousePos(this._el,t),this._center=this._map.transform.centerPoint,t.preventDefault()}},rr.prototype._onMouseMove=function(t){var e=x.mousePos(this._el,t);this._lastPos.equals(e)||"pending"===this._state&&e.dist(this._startPos)<this._clickTolerance||(this._lastMoveEvent=t,this._lastPos=e,"pending"===this._state&&(this._state="active",this._fireEvent("rotatestart",t),this._fireEvent("movestart",t),this._pitchWithRotate&&this._fireEvent("pitchstart",t)),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame)))},rr.prototype._onDragFrame=function(){this._frameId=null;var t=this._lastMoveEvent;if(t){var e=this._map.transform,i=this._prevPos,r=this._lastPos,n=.8*(i.x-r.x),o=-.5*(i.y-r.y),a=e.bearing-n,s=e.pitch-o,l=this._inertia,u=l[l.length-1];this._drainInertiaBuffer(),l.push([_t.browser.now(),this._map._normalizeBearing(a,u[1])]);var c=e.bearing;if(e.bearing=a,this._pitchWithRotate){var p=e.pitch;e.pitch=s,e.pitch!==p&&this._fireEvent("pitch",t)}e.bearing!==c&&this._fireEvent("rotate",t),this._fireEvent("move",t),delete this._lastMoveEvent,this._prevPos=this._lastPos}},rr.prototype._onMouseUp=function(t){var e="touchend"===t.type;if(e&&this._startPos===this._lastPos&&Date.now()-this._startTime<300&&this._el.click(),e||x.mouseButton(t)===this._eventButton)switch(this._state){case"active":this._state="enabled",x.suppressClick(),this._unbind(),this._deactivate(),this._inertialRotate(t);break;case"pending":this._state="enabled",this._unbind()}},rr.prototype._onBlur=function(t){switch(this._state){case"active":this._state="enabled",this._unbind(),this._deactivate(),this._fireEvent("rotateend",t),this._pitchWithRotate&&this._fireEvent("pitchend",t),this._fireEvent("moveend",t);break;case"pending":this._state="enabled",this._unbind()}},rr.prototype._unbind=function(){_t.window.document.removeEventListener("mousemove",this._onMouseMove,{capture:!0}),_t.window.document.removeEventListener("mouseup",this._onMouseUp),_t.window.document.removeEventListener("touchmove",this._onMouseMove,{capture:!0}),_t.window.document.removeEventListener("touchend",this._onMouseUp),_t.window.removeEventListener("blur",this._onBlur),x.enableDrag()},rr.prototype._deactivate=function(){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._startPos,delete this._prevPos,delete this._lastPos},rr.prototype._inertialRotate=function(t){var e=this;this._fireEvent("rotateend",t),this._drainInertiaBuffer();var i=this._map,r=i.getBearing(),n=this._inertia,o=function(){Math.abs(r)<e._bearingSnap?i.resetNorth({noMoveStart:!0},{originalEvent:t}):e._fireEvent("moveend",t),e._pitchWithRotate&&e._fireEvent("pitchend",t)};if(n.length<2)o();else{var a=n[0],s=n[n.length-1],l=n[n.length-2],u=i._normalizeBearing(r,l[1]),c=s[1]-a[1],p=c<0?-1:1,h=(s[0]-a[0])/1e3;if(0!==c&&0!==h){var d=Math.abs(c*(.25/h));180<d&&(d=180);var f=d/180;u+=p*d*(f/2),Math.abs(i._normalizeBearing(u,0))<this._bearingSnap&&(u=i._normalizeBearing(0,u)),i.rotateTo(u,{duration:1e3*f,easing:ir,noMoveStart:!0},{originalEvent:t})}else o()}},rr.prototype._fireEvent=function(t,e){return this._map.fire(new _t.Event(t,e?{originalEvent:e}:{}))},rr.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,e=_t.browser.now();0<t.length&&160<e-t[0][0];)t.shift()};var nr={linearity:.3,easing:_t.bezier(0,0,.3,1),maxSpeed:1400,deceleration:2500},or=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._state="disabled",this._clickTolerance=e.clickTolerance||1,this._inertiaOptions=nr,_t.bindAll(["_onMove","_onMouseUp","_onTouchEnd","_onBlur","_onDragFrame"],this)};or.prototype.isEnabled=function(){return"disabled"!==this._state},or.prototype.isActive=function(){return"active"===this._state},or.prototype.enable=function(t){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-drag-pan"),this._state="enabled",this._inertiaOptions=_t.extend(nr,t))},or.prototype.disable=function(){if(this.isEnabled())switch(this._el.classList.remove("mapboxgl-touch-drag-pan"),this._state){case"active":this._state="disabled",this._unbind(),this._deactivate(),this._fireEvent("dragend"),this._fireEvent("moveend");break;
1case"pending":this._state="disabled",this._unbind();break;default:this._state="disabled"}},or.prototype.onMouseDown=function(t){"enabled"===this._state&&(t.ctrlKey||0!==x.mouseButton(t)||(x.addEventListener(_t.window.document,"mousemove",this._onMove,{capture:!0}),x.addEventListener(_t.window.document,"mouseup",this._onMouseUp),this._start(t)))},or.prototype.onTouchStart=function(t){this.isEnabled()&&(t.touches&&1<t.touches.length&&("pending"===this._state||"active"===this._state)||(x.addEventListener(_t.window.document,"touchmove",this._onMove,{capture:!0,passive:!1}),x.addEventListener(_t.window.document,"touchend",this._onTouchEnd),this._start(t)))},or.prototype._start=function(t){_t.window.addEventListener("blur",this._onBlur),this._state="pending",this._startPos=this._mouseDownPos=this._prevPos=this._lastPos=x.mousePos(this._el,t),this._startTouch=this._lastTouch=_t.window.TouchEvent&&t instanceof _t.window.TouchEvent?x.touchPos(this._el,t):null,this._inertia=[[_t.browser.now(),this._startPos]]},or.prototype._touchesMatch=function(t,i){return!(!t||!i||t.length!==i.length)&&t.every(function(t,e){return i[e]===t})},or.prototype._onMove=function(t){t.preventDefault();var e=_t.window.TouchEvent&&t instanceof _t.window.TouchEvent?x.touchPos(this._el,t):null,i=x.mousePos(this._el,t);(e?this._touchesMatch(this._lastTouch,e):this._lastPos.equals(i))||"pending"===this._state&&i.dist(this._mouseDownPos)<this._clickTolerance||(this._lastMoveEvent=t,this._lastPos=i,this._lastTouch=e,this._drainInertiaBuffer(),this._inertia.push([_t.browser.now(),this._lastPos]),"pending"===this._state&&(this._state="active",this._shouldStart=!0),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame)))},or.prototype._onDragFrame=function(){this._frameId=null;var t=this._lastMoveEvent;if(t)if(this._map.touchZoomRotate.isActive())this._abort(t);else if(this._shouldStart&&(this._fireEvent("dragstart",t),this._fireEvent("movestart",t),this._shouldStart=!1),this.isActive()){var e=this._map.transform;e.setLocationAtPoint(e.pointLocation(this._prevPos),this._lastPos),this._fireEvent("drag",t),this._fireEvent("move",t),this._prevPos=this._lastPos,delete this._lastMoveEvent}},or.prototype._onMouseUp=function(t){if(0===x.mouseButton(t))switch(this._state){case"active":this._state="enabled",x.suppressClick(),this._unbind(),this._deactivate(),this._inertialPan(t);break;case"pending":this._state="enabled",this._unbind()}},or.prototype._onTouchEnd=function(t){if(t.touches&&0!==t.touches.length)switch(this._state){case"pending":case"active":break;case"enabled":this.onTouchStart(t)}else switch(this._state){case"active":this._state="enabled",this._unbind(),this._deactivate(),this._inertialPan(t);break;case"pending":this._state="enabled",this._unbind();break;case"enabled":this._unbind()}},or.prototype._abort=function(t){switch(this._state){case"active":this._state="enabled",this._shouldStart||(this._fireEvent("dragend",t),this._fireEvent("moveend",t)),this._unbind(),this._deactivate(),_t.window.TouchEvent&&t instanceof _t.window.TouchEvent&&1<t.touches.length&&x.addEventListener(_t.window.document,"touchend",this._onTouchEnd);break;case"pending":this._state="enabled",this._unbind();break;case"enabled":this._unbind()}},or.prototype._onBlur=function(t){this._abort(t)},or.prototype._unbind=function(){x.removeEventListener(_t.window.document,"touchmove",this._onMove,{capture:!0,passive:!1}),x.removeEventListener(_t.window.document,"touchend",this._onTouchEnd),x.removeEventListener(_t.window.document,"mousemove",this._onMove,{capture:!0}),x.removeEventListener(_t.window.document,"mouseup",this._onMouseUp),x.removeEventListener(_t.window,"blur",this._onBlur)},or.prototype._deactivate=function(){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._startPos,delete this._prevPos,delete this._mouseDownPos,delete this._lastPos,delete this._startTouch,delete this._lastTouch,delete this._shouldStart},or.prototype._inertialPan=function(t){this._fireEvent("dragend",t),this._drainInertiaBuffer();var e=this._inertia;if(e.length<2)this._fireEvent("moveend",t);else{var i=e[e.length-1],r=e[0],n=i[1].sub(r[1]),o=(i[0]-r[0])/1e3;
vendor: 4,258 bytes, line 1
1if(0===o||i[1].equals(r[1]))this._fireEvent("moveend",t);else{var a=this._inertiaOptions,s=a.linearity,l=a.easing,u=a.maxSpeed,c=a.deceleration,p=n.mult(s/o),h=p.mag();u<h&&(h=u,p._unit()._mult(h));var d=h/(c*s),f=p.mult(-d/2);this._map.panBy(f,{duration:1e3*d,easing:l,noMoveStart:!0},{originalEvent:t})}}},or.prototype._fireEvent=function(t,e){return this._map.fire(new _t.Event(t,e?{originalEvent:e}:{}))},or.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,e=_t.browser.now();0<t.length&&160<e-t[0][0];)t.shift()};var ar=function(t){this._map=t,this._el=t.getCanvasContainer(),_t.bindAll(["_onKeyDown"],this)};function sr(t){return t*(2-t)}ar.prototype.isEnabled=function(){return!!this._enabled},ar.prototype.enable=function(){this.isEnabled()||(this._el.addEventListener("keydown",this._onKeyDown,!1),this._enabled=!0)},ar.prototype.disable=function(){this.isEnabled()&&(this._el.removeEventListener("keydown",this._onKeyDown),this._enabled=!1)},ar.prototype._onKeyDown=function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=0,i=0,r=0,n=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:e=1;break;case 189:case 109:case 173:e=-1;break;case 37:t.shiftKey?i=-1:(t.preventDefault(),n=-1);break;case 39:t.shiftKey?i=1:(t.preventDefault(),n=1);break;case 38:t.shiftKey?r=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?r=-1:(o=1,t.preventDefault());break;default:return}var a=this._map,s=a.getZoom(),l={duration:300,delayEndEvents:500,easing:sr,zoom:e?Math.round(s)+e*(t.shiftKey?2:1):s,bearing:a.getBearing()+15*i,pitch:a.getPitch()+10*r,offset:[100*-n,100*-o],center:a.getCenter()};a.easeTo(l,{originalEvent:t})}};var lr=function(t){this._map=t,_t.bindAll(["_onDblClick","_onZoomEnd"],this)};lr.prototype.isEnabled=function(){return!!this._enabled},lr.prototype.isActive=function(){return!!this._active},lr.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},lr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},lr.prototype.onTouchStart=function(t){var e=this;if(this.isEnabled()&&!(1<t.points.length))if(this._tapped){var i=t.points[0],r=this._tappedPoint;if(r&&r.dist(i)<=30){t.originalEvent.preventDefault();var n=function(){e._tapped&&e._zoom(t),e._map.off("touchcancel",o),e._resetTapped()},o=function(){e._map.off("touchend",n),e._resetTapped()};this._map.once("touchend",n),this._map.once("touchcancel",o)}else this._resetTapped()}else this._tappedPoint=t.points[0],this._tapped=setTimeout(function(){e._tapped=null,e._tappedPoint=null},300)},lr.prototype._resetTapped=function(){clearTimeout(this._tapped),this._tapped=null,this._tappedPoint=null},lr.prototype.onDblClick=function(t){this.isEnabled()&&(t.originalEvent.preventDefault(),this._zoom(t))},lr.prototype._zoom=function(t){this._active=!0,this._map.on("zoomend",this._onZoomEnd),this._map.zoomTo(this._map.getZoom()+(t.originalEvent.shiftKey?-1:1),{around:t.lngLat},t)},lr.prototype._onZoomEnd=function(){this._active=!1,this._map.off("zoomend",this._onZoomEnd)};var ur=_t.bezier(0,0,.15,1),cr=function(t){this._map=t,this._el=t.getCanvasContainer(),_t.bindAll(["_onMove","_onEnd","_onTouchFrame"],this)};cr.prototype.isEnabled=function(){return!!this._enabled},cr.prototype.enable=function(t){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-zoom-rotate"),this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around)},cr.prototype.disable=function(){this.isEnabled()&&(this._el.classList.remove("mapboxgl-touch-zoom-rotate"),this._enabled=!1)},cr.prototype.disableRotation=function(){this._rotationDisabled=!0},cr.prototype.enableRotation=function(){this._rotationDisabled=!1},cr.prototype.isActive=function(){return this.isEnabled()&&!!this._gestureIntent},cr.prototype.onStart=function(t){if(this.isEnabled()&&2===t.touches.length){var e=x.mousePos(this._el,t.touches[0]),i=x.mousePos(this._el,t.touches[1]),r=e.add(i).div(2);this._startVec=e.sub(i),this._startAround=this._map.transform.pointLocation(r),this._gestureIntent=void 0,this._inertia=[],x.addEventListener(_t.window.document,"touchmove",this._onMove,{passive:!1}),x.addEventListener(_t.window.document,"touchend",this._onEnd)}},cr.prototype._getTouchEventData=function(t){var e=x.mousePos(this._el,t.touches[0]),i=x.mousePos(this._el,t.touches[1]),r
1=e.sub(i);return{vec:r,center:e.add(i).div(2),scale:r.mag()/this._startVec.mag(),bearing:this._rotationDisabled?0:180*r.angleWith(this._startVec)/Math.PI}},cr.prototype._onMove=function(t){if(2===t.touches.length){var e=this._getTouchEventData(t),i=e.vec,r=e.scale,n=e.bearing;if(!this._gestureIntent){var o=this._rotationDisabled&&1!==r||.15<Math.abs(1-r);10<Math.abs(n)?this._gestureIntent="rotate":o&&(this._gestureIntent="zoom"),this._gestureIntent&&(this._map.fire(new _t.Event(this._gestureIntent+"start",{originalEvent:t})),this._map.fire(new _t.Event("movestart",{originalEvent:t})),this._startVec=i)}this._lastTouchEvent=t,this._frameId||(this._frameId=this._map._requestRenderFrame(this._onTouchFrame)),t.preventDefault()}},cr.prototype._onTouchFrame=function(){this._frameId=null;var t=this._gestureIntent;if(t){var e=this._map.transform;this._startScale||(this._startScale=e.scale,this._startBearing=e.bearing);var i=this._getTouchEventData(this._lastTouchEvent),r=i.center,n=i.bearing,o=i.scale,a=e.pointLocation(r),s=e.locationPoint(a);"rotate"===t&&(e.bearing=this._startBearing+n),e.zoom=e.scaleZoom(this._startScale*o),e.setLocationAtPoint(this._startAround,s),this._map.fire(new _t.Event(t,{originalEvent:this._lastTouchEvent})),this._map.fire(new _t.Event("move",{originalEvent:this._lastTouchEvent})),this._drainInertiaBuffer(),this._inertia.push([_t.browser.now(),o,r])}},cr.prototype._onEnd=function(t){x.removeEventListener(_t.window.document,"touchmove",this._onMove,{passive:!1}),x.removeEventListener(_t.window.document,"touchend",this._onEnd);var e=this._gestureIntent,i=this._startScale;if(this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._gestureIntent,delete this._startScale,delete this._startBearing,delete this._lastTouchEvent,e){this._map.fire(new _t.Event(e+"end",{originalEvent:t})),this._drainInertiaBuffer();var r=this._inertia,n=this._map;if(r.length<2)n.snapToNorth({},{originalEvent:t});else{var o=r[r.length-1],a=r[0],s=n.transform.scaleZoom(i*o[1]),l=n.transform.scaleZoom(i*a[1]),u=s-l,c=(o[0]-a[0])/1e3,p=o[2];if(0!==c&&s!==l){var h=.15*u/c;2.5<Math.abs(h)&&(h=0<h?2.5:-2.5);var d=1e3*Math.abs(h/(12*.15)),f=s+h*d/2e3;n.easeTo({zoom:f,duration:d,easing:ur,around:this._aroundCenter?n.getCenter():n.unproject(p),noMoveStart:!0},{originalEvent:t})}else n.snapToNorth({},{originalEvent:t})}}},cr.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,e=_t.browser.now();2<t.length&&160<e-t[0][0];)t.shift()};var pr={scrollZoom:tr,boxZoom:er,dragRotate:rr,dragPan:or,keyboard:ar,doubleClickZoom:lr,touchZoomRotate:cr},hr=function(i){function t(t,e){i.call(this),this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=e.bearingSnap,_t.bindAll(["_renderFrameCallback"],this)}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.getCenter=function(){return new _t.LngLat(this.transform.center.lng,this.transform.center.lat)},t.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},t.prototype.panBy=function(t,e,i){return t=_t.Point.convert(t).mult(-1),this.panTo(this.transform.center,_t.extend({offset:t},e),i)},t.prototype.panTo=function(t,e,i){return this.easeTo(_t.extend({center:t},e),i)},t.prototype.getZoom=function(){return this.transform.zoom},t.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},t.prototype.zoomTo=function(t,e,i){return this.easeTo(_t.extend({zoom:t},e),i)},t.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},t.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},t.prototype.getBearing=function(){return this.transform.bearing},t.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},t.prototype.rotateTo=function(t,e,i){return this.easeTo(_t.extend({bearing:t},e),i)},t.prototype.resetNorth=function(t,e){return this.rotateTo(0,_t.extend({duration:1e3},t),e),this},t.prototype.resetNorthPitch=function(t,e){return this.easeTo(_t.extend({bearing:0,pitch:0,duration:1e3},t),e),this},t.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this},t.prototype.getPitch=function(){return this.transform.pitch},t.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},t.prototype.cameraForBounds=function(t,e){return t=_t.LngLatBounds.convert(t),this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),0,e)}
vendor: 8,893 bytes, line 1
1,t.prototype._cameraForBoxAndBearing=function(t,e,i,r){if("number"==typeof(r=_t.extend({padding:{top:0,bottom:0,right:0,left:0},offset:[0,0],maxZoom:this.transform.maxZoom},r)).padding){var n=r.padding;r.padding={top:n,bottom:n,right:n,left:n}}if(_t.deepEqual(Object.keys(r.padding).sort(function(t,e){return t<e?-1:e<t?1:0}),["bottom","left","right","top"])){var o=this.transform,a=o.project(_t.LngLat.convert(t)),s=o.project(_t.LngLat.convert(e)),l=a.rotate(-i*Math.PI/180),u=s.rotate(-i*Math.PI/180),c=new _t.Point(Math.max(l.x,u.x),Math.max(l.y,u.y)),p=new _t.Point(Math.min(l.x,u.x),Math.min(l.y,u.y)),h=c.sub(p),d=(o.width-r.padding.left-r.padding.right)/h.x,f=(o.height-r.padding.top-r.padding.bottom)/h.y;if(!(f<0||d<0)){var m=Math.min(o.scaleZoom(o.scale*Math.min(d,f)),r.maxZoom),y=_t.Point.convert(r.offset),v=(r.padding.left-r.padding.right)/2,g=(r.padding.top-r.padding.bottom)/2,_=new _t.Point(y.x+v,y.y+g).mult(o.scale/o.zoomScale(m));return{center:o.unproject(a.add(s).div(2).sub(_)),zoom:m,bearing:i}}_t.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}else _t.warnOnce("options.padding must be a positive number, or an Object with keys 'bottom', 'left', 'right', 'top'")},t.prototype.fitBounds=function(t,e,i){return this._fitInternal(this.cameraForBounds(t,e),e,i)},t.prototype.fitScreenCoordinates=function(t,e,i,r,n){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(_t.Point.convert(t)),this.transform.pointLocation(_t.Point.convert(e)),i,r),r,n)},t.prototype._fitInternal=function(t,e,i){return t?(e=_t.extend(t,e)).linear?this.easeTo(e,i):this.flyTo(e,i):this},t.prototype.jumpTo=function(t,e){this.stop();var i=this.transform,r=!1,n=!1,o=!1;return"zoom"in t&&i.zoom!==+t.zoom&&(r=!0,i.zoom=+t.zoom),void 0!==t.center&&(i.center=_t.LngLat.convert(t.center)),"bearing"in t&&i.bearing!==+t.bearing&&(n=!0,i.bearing=+t.bearing),"pitch"in t&&i.pitch!==+t.pitch&&(o=!0,i.pitch=+t.pitch),this.fire(new _t.Event("movestart",e)).fire(new _t.Event("move",e)),r&&this.fire(new _t.Event("zoomstart",e)).fire(new _t.Event("zoom",e)).fire(new _t.Event("zoomend",e)),n&&this.fire(new _t.Event("rotatestart",e)).fire(new _t.Event("rotate",e)).fire(new _t.Event("rotateend",e)),o&&this.fire(new _t.Event("pitchstart",e)).fire(new _t.Event("pitch",e)).fire(new _t.Event("pitchend",e)),this.fire(new _t.Event("moveend",e))},t.prototype.easeTo=function(t,o){var a=this;this.stop(),(!1===(t=_t.extend({offset:[0,0],duration:500,easing:_t.ease},t)).animate||!t.essential&&_t.browser.prefersReducedMotion)&&(t.duration=0);var s=this.transform,l=this.getZoom(),u=this.getBearing(),c=this.getPitch(),p="zoom"in t?+t.zoom:l,h="bearing"in t?this._normalizeBearing(t.bearing,u):u,d="pitch"in t?+t.pitch:c,f=s.centerPoint.add(_t.Point.convert(t.offset)),e=s.pointLocation(f),i=_t.LngLat.convert(t.center||e);this._normalizeCenter(i);var m,y,v=s.project(e),g=s.project(i).sub(v),_=s.zoomScale(p-l);return t.around&&(m=_t.LngLat.convert(t.around),y=s.locationPoint(m)),this._zooming=p!==l,this._rotating=u!==h,this._pitching=d!==c,this._prepareEase(o,t.noMoveStart),clearTimeout(this._easeEndTimeoutID),this._ease(function(t){if(a._zooming&&(s.zoom=_t.number(l,p,t)),a._rotating&&(s.bearing=_t.number(u,h,t)),a._pitching&&(s.pitch=_t.number(c,d,t)),m)s.setLocationAtPoint(m,y);else{var e=s.zoomScale(s.zoom-l),i=l<p?Math.min(2,_):Math.max(.5,_),r=Math.pow(i,1-t),n=s.unproject(v.add(g.mult(t*r)).mult(e));s.setLocationAtPoint(s.renderWorldCopies?n.wrap():n,f)}a._fireMoveEvents(o)},function(){t.delayEndEvents?a._easeEndTimeoutID=setTimeout(function(){return a._afterEase(o)},t.delayEndEvents):a._afterEase(o)},t),this},t.prototype._prepareEase=function(t,e){this._moving=!0,e||this.fire(new _t.Event("movestart",t)),this._zooming&&this.fire(new _t.Event("zoomstart",t)),this._rotating&&this.fire(new _t.Event("rotatestart",t)),this._pitching&&this.fire(new _t.Event("pitchstart",t))},t.prototype._fireMoveEvents=function(t){this.fire(new _t.Event("move",t)),this._zooming&&this.fire(new _t.Event("zoom",t)),this._rotating&&this.fire(new _t.Event("rotate",t)),this._pitching&&this.fire(new _t.Event("pitch",t))},t.prototype._afterEase=function(t){var e=this._zooming,i=this._rotating,r=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,e&&this.fire(new _t.Event("zoomend",t)),i&&this.fire(new _t.Event("rotateend",t)),r&&this.fire(new _t.Event("pitchend",t)),this.fire(new _t.Event("moveend",t))},t.prototype.flyTo=function(t,n){var o=this;if(!t.essential&&_t.browser.prefersReducedMotion){var e=_t.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(e,n)}this.stop(),t=_t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:_t.ease},t);var a=this.transform,s=this.getZoom(),l=this.getBearing(),u=this.getPitch(),c="zoom"in t?_t.clamp(+t.zoom,a.minZoom,a.maxZoom):s,p="bearing"in t?this._normalizeBearing(t.bearing,l):l,h="pitch"in t?+t.pitch:u,i=a.zoomScale(c-s),d=a.centerPoint.add(_t.Point.convert(t.offset)),r=a.pointLocation(d),f=_t.LngLat.convert(t.center||r);this._normalizeCenter(f);var m=a.project(r),y=a.project(f).sub(m),v=t.curve,g=Math.max(a.width,a.height),_=g/i,x=y.mag();if("minZoom"in t){var b=_t.clamp(Math.min(t.minZoom,s,c),a.minZoom,a.maxZoom),w=g/a.zoomScale(b-s);v=Math.sqrt(w/x*2)}var S=v*v;function T(t){var e=(_*_-g*g+(t?-1:1)*S*S*x*x)/(2*(t?_:g)*S*x);return Math.log(Math.sqrt(e*e+1)-e)}function k(t){return(Math.exp(t)-Math.exp(-t))/2}function E(t){return(Math.exp(t)+Math.exp(-t))/2}var C=T(0),A=function(t){return E(C)/E(C+v*t)},I=function(t){return g*((E(C)*(k(e=C+v*t)/E(e))-k(C))/S)/x;var e},z=(T(1)-C)/v;if(Math.abs(x)<1e-6||!isFinite(z)){if(Math.abs(g-_)<1e-6)return this.easeTo(t,n);var P=_<g?-1:1;z=Math.abs(Math.log(_/g))/v,I=function(){return 0},A=function(t){return Math.exp(P*v*t)}}if("duration"in t)t.duration=+t.duration;else{var M="screenSpeed"in t?+t.screenSpeed/v:+t.speed;t.duration=1e3*z/M}return t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=l!==p,this._pitching=h!==u,this._prepareEase(n,!1),this._ease(function(t){var e=t*z,i=1/A(e);a.zoom=1===t?c:s+a.scaleZoom(i),o._rotating&&(a.bearing=_t.number(l,p,t)),o._pitching&&(a.pitch=_t.number(u,h,t));var r=1===t?f:a.unproject(m.add(y.mult(I(e))).mult(i));a.setLocationAtPoint(a.renderWorldCopies?r.wrap():r,d),o._fireMoveEvents(n)},function(){return o._afterEase(n)},t),this},t.prototype.isEasing=function(){return!!this._easeFrameId},t.prototype.stop=function(){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var t=this._onEaseEnd;delete this._onEaseEnd,t.call(this)}return this},t.prototype._ease=function(t,e,i){!1===i.animate||0===i.duration?(t(1),e()):(this._easeStart=_t.browser.now(),this._easeOptions=i,this._onEaseFrame=t,this._onEaseEnd=e,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},t.prototype._renderFrameCallback=function(){var t=Math.min((_t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},t.prototype._normalizeBearing=function(t,e){t=_t.wrap(t,-180,180);var i=Math.abs(t-e);return Math.abs(t-360-e)<i&&(t-=360),Math.abs(t+360-e)<i&&(t+=360),t},t.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&&!e.lngRange){var i=t.lng-e.center.lng;t.lng+=180<i?-360:i<-180?360:0}},t}(_t.Evented),dr=function(t){void 0===t&&(t={}),this.options=t,_t.bindAll(["_updateEditLink","_updateData","_updateCompact"],this)};dr.prototype.getDefaultPosition=function(){return"bottom-right"},dr.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._innerContainer=x.create("div","mapboxgl-ctrl-attrib-inner",this._container),e&&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),void 0===e&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},dr.prototype.onRemove=function(){x.remove(this._container),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},dr.prototype._updateEditLink=function(){var t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));var r=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||_t.config.ACCESS_TOKEN}];
vendor: 4,584 bytes, line 1
1if(t){var e=r.reduce(function(t,e,i){return e.value&&(t+=e.key+"="+e.value+(i<r.length-1?"&":"")),t},"?");t.href=_t.config.FEEDBACK_URL+"/"+e+(this._map._hash?this._map._hash.getHashString(!0):""),t.rel="noopener nofollow"}},dr.prototype._updateData=function(t){!t||"metadata"!==t.sourceDataType&&"style"!==t.dataType||(this._updateAttributions(),this._updateEditLink())},dr.prototype._updateAttributions=function(){if(this._map.style){var r=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?r=r.concat(this.options.customAttribution.map(function(t){return"string"!=typeof t?"":t})):"string"==typeof this.options.customAttribution&&r.push(this.options.customAttribution)),this._map.style.stylesheet){var t=this._map.style.stylesheet;this.styleOwner=t.owner,this.styleId=t.id}var e=this._map.style.sourceCaches;for(var i in e){var n=e[i];if(n.used){var o=n.getSource();o.attribution&&r.indexOf(o.attribution)<0&&r.push(o.attribution)}}r.sort(function(t,e){return t.length-e.length});var a=(r=r.filter(function(t,e){for(var i=e+1;i<r.length;i++)if(0<=r[i].indexOf(t))return!1;return!0})).join(" | ");a!==this._attribHTML&&(this._attribHTML=a,r.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},dr.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact")};var fr=function(){_t.bindAll(["_updateLogo"],this),_t.bindAll(["_updateCompact"],this)};fr.prototype.onAdd=function(t){this._map=t,this._container=x.create("div","mapboxgl-ctrl");var e=x.create("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},fr.prototype.onRemove=function(){x.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},fr.prototype.getDefaultPosition=function(){return"bottom-left"},fr.prototype._updateLogo=function(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},fr.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},fr.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}};var mr=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};mr.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},mr.prototype.remove=function(t){for(var e=this._currentlyRunning,i=0,r=e?this._queue.concat(e):this._queue;i<r.length;i+=1){var n=r[i];if(n.id===t)return void(n.cancelled=!0)}},mr.prototype.run=function(){var t=this._currentlyRunning=this._queue;this._queue=[];for(var e=0,i=t;e<i.length;e+=1){var r=i[e];if(!r.cancelled&&(r.callback(),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},mr.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var yr={"FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},vr=_t.window.HTMLImageElement,gr=_t.window.HTMLElement,_r=_t.window.ImageBitmap,xr={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,bearingSnap:7,clickTolerance:3,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileC
1acheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},br=function(u){function t(t){var e=this;if(null!=(t=_t.extend({},xr,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&60<t.maxPitch)throw new Error("maxPitch must be less than or equal to 60");var i=new Wi(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies);if(u.call(this,i,t),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._renderTaskQueue=new mr,this._controls=[],this._mapId=_t.uniqueId(),this._locale=_t.extend({},yr,t.locale),this._requestManager=new _t.RequestManager(t.transformRequest,t.accessToken),"string"==typeof t.container){if(this._container=_t.window.document.getElementById(t.container),!this._container)throw new Error("Container '"+t.container+"' not found.")}else{if(!(t.container instanceof gr))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(t.maxBounds&&this.setMaxBounds(t.maxBounds),_t.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return e._update(!1)}),this.on("moveend",function(){return e._update(!1)}),this.on("zoom",function(){return e._update(!0)}),void 0!==_t.window&&(_t.window.addEventListener("online",this._onWindowOnline,!1),_t.window.addEventListener("resize",this._onWindowResize,!1)),function(i,r){var n=i.getCanvasContainer(),o=null,a=!1,s=null;for(var t in pr)i[t]=new pr[t](i,r),r.interactive&&r[t]&&i[t].enable(r[t]);x.addEventListener(n,"mouseout",function(t){i.fire(new Yi("mouseout",i,t))}),x.addEventListener(n,"mousedown",function(t){a=!0,s=x.mousePos(n,t);var e=new Yi("mousedown",i,t);i.fire(e),e.defaultPrevented||(r.interactive&&!i.doubleClickZoom.isActive()&&i.stop(),i.boxZoom.onMouseDown(t),i.boxZoom.isActive()||i.dragPan.isActive()||i.dragRotate.onMouseDown(t),i.boxZoom.isActive()||i.dragRotate.isActive()||i.dragPan.onMouseDown(t))}),x.addEventListener(n,"mouseup",function(t){var e=i.dragRotate.isActive();o&&!e&&i.fire(new Yi("contextmenu",i,o)),o=null,a=!1,i.fire(new Yi("mouseup",i,t))}),x.addEventListener(n,"mousemove",function(t){if(!i.dragPan.isActive()&&!i.dragRotate.isActive()){for(var e=t.target;e&&e!==n;)e=e.parentNode;e===n&&i.fire(new Yi("mousemove",i,t))}}),x.addEventListener(n,"mouseover",function(t){for(var e=t.target;e&&e!==n;)e=e.parentNode;e===n&&i.fire(new Yi("mouseover",i,t))}),x.addEventListener(n,"touchstart",function(t){var e=new Ji("touchstart",i,t);i.fire(e),e.defaultPrevented||(r.interactive&&i.stop(),i.boxZoom.isActive()||i.dragRotate.isActive()||i.dragPan.onTouchStart(t),i.touchZoomRotate.onStart(t),i.doubleClickZoom.onTouchStart(e))},{passive:!1}),x.addEventListener(n,"touchmove",function(t){i.fire(new Ji("touchmove",i,t))},{passive:!1}),x.addEventListener(n,"touchend",function(t){i.fire(new Ji("touchend",i,t))}),x.addEventListener(n,"touchcancel",function(t){i.fire(new Ji("touchcancel",i,t))}),x.addEventListener(n,"click",function(t){var e=x.mousePos(n,t);(!s||e.equals(s)||e.dist(s)<r.clickTolerance)&&i.fire(new Yi("click",i,t))}),x.addEventListener(n,"dblclick",function(t){var e=new Yi("dblclick",i,t);i.fire(e),e.defaultPrevented||i.doubleClickZoom.onDblClick(e)}),x.addEventListener(n,"contextmenu",function(t){var e=i.dragRotate.isActive();a||e?a&&(o=t):i.fire(new Yi("contextmenu",i,t)),(i.dragRotate.isEnabled()||i.listens("contextmenu"))&&t.preventDefault()}),x.addEventListener(n,"wheel",function(t){r.interactive&&i.stop();var e=new Qi("wheel",i,t);i.fire(e),e.defaultPrevented||i.scrollZoom.onWheel(t)},{passive:!1})}(this,t);var r="string"==typeof t.hash&&t.hash||void 0;this._hash=t.hash&&new Ki(r).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,_t.extend({},t.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new dr({customAttribution:t.customAttribution})),this.addControl(new fr,t.logoPosition),this.on("style.load",function(){e.transform.unmodified&&e.jumpTo(e.style.stylesheet)}),this.on("data",function(t){e._update("style"===t.dataType),e.fire(new _t.Event(t.dataType+"data",t))}),this.on("dataloading",function(t){e.fire(new _t.Event(t.dataType+"dataloading",t))})}u&&(t.__proto__=u);var e={showTileBoundaries:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return((t.prototype=Object.create(u&&u.prototype)).constructor=t).prototype._getMapId=function(){return this._mapId},t.prototype.addControl=function(t,e){if(void 0===e&&t.getDefaultPosition&&(e=t.getDefaultPosition()),void 0===e&&(e="top-right"),!t||!t.onAdd)return this.fire(new _t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var i=t.onAdd(this);this._controls.push(t);var r=this._controlPositions[e];
1return-1!==e.indexOf("bottom")?r.insertBefore(i,r.firstChild):r.appendChild(i),this},t.prototype.removeControl=function(t){if(!t||!t.onRemove)return this.fire(new _t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var e=this._controls.indexOf(t);return-1<e&&this._controls.splice(e,1),t.onRemove(this),this},t.prototype.resize=function(t){var e=this._containerDimensions(),i=e[0],r=e[1];return this._resizeCanvas(i,r),this.transform.resize(i,r),this.painter.resize(i,r),this.fire(new _t.Event("movestart",t)).fire(new _t.Event("move",t)).fire(new _t.Event("resize",t)).fire(new _t.Event("moveend",t)),this},t.prototype.getBounds=function(){return this.transform.getBounds()},t.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},t.prototype.setMaxBounds=function(t){return this.transform.setMaxBounds(_t.LngLatBounds.convert(t)),this._update()},t.prototype.setMinZoom=function(t){if(-2<=(t=null==t?-2:t)&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")},t.prototype.getMinZoom=function(){return this.transform.minZoom},t.prototype.setMaxZoom=function(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},t.prototype.getMaxZoom=function(){return this.transform.maxZoom},t.prototype.setMinPitch=function(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(0<=t&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t&&this.setPitch(t),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")},t.prototype.getMinPitch=function(){return this.transform.minPitch},t.prototype.setMaxPitch=function(t){if(60<(t=null==t?60:t))throw new Error("maxPitch must be less than or equal to 60");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")},t.prototype.getMaxPitch=function(){return this.transform.maxPitch},t.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},t.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},t.prototype.project=function(t){return this.transform.locationPoint(_t.LngLat.convert(t))},t.prototype.unproject=function(t){return this.transform.pointLocation(_t.Point.convert(t))},t.prototype.isMoving=function(){return this._moving||this.dragPan.isActive()||this.dragRotate.isActive()||this.scrollZoom.isActive()},t.prototype.isZooming=function(){return this._zooming||this.scrollZoom.isZooming()},t.prototype.isRotating=function(){return this._rotating||this.dragRotate.isActive()},t.prototype._createDelegatedListener=function(i,r,n){var t,o=this;if("mouseenter"===i||"mouseover"===i){var a=!1;return{layer:r,listener:n,delegates:{mousemove:function(t){var e=o.getLayer(r)?o.queryRenderedFeatures(t.point,{layers:[r]}):[];e.length?a||(a=!0,n.call(o,new Yi(i,o,t.originalEvent,{features:e}))):a=!1},mouseout:function(){a=!1}}}}if("mouseleave"!==i&&"mouseout"!==i)return{layer:r,listener:n,delegates:(t={},t[i]=function(t){var e=o.getLayer(r)?o.queryRenderedFeatures(t.point,{layers:[r]}):[];e.length&&(t.features=e,n.call(o,t),delete t.features)},t)};var e=!1;return{layer:r,listener:n,delegates:{mousemove:function(t){(o.getLayer(r)?o.queryRenderedFeatures(t.point,{layers:[r]}):[]).length?e=!0:e&&(e=!1,n.call(o,new Yi(i,o,t.originalEvent)))},mouseout:function(t){e&&(e=!1,n.call(o,new Yi(i,o,t.originalEvent)))}}}},t.prototype.on=function(t,e,i){if(void 0===i)return u.prototype.on.call(this,t,e);var r=this._createDelegatedListener(t,e,i);for(var n in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(r),r.delegates)this.on(n,r.delegates[n]);return this}
vendor: 6,091 bytes, line 1
1,t.prototype.once=function(t,e,i){if(void 0===i)return u.prototype.once.call(this,t,e);var r=this._createDelegatedListener(t,e,i);for(var n in r.delegates)this.once(n,r.delegates[n]);return this},t.prototype.off=function(o,a,s){var l=this;return void 0===s?u.prototype.off.call(this,o,a):(this._delegatedListeners&&this._delegatedListeners[o]&&function(t){for(var e=t[o],i=0;i<e.length;i++){var r=e[i];if(r.layer===a&&r.listener===s){for(var n in r.delegates)l.off(n,r.delegates[n]);return e.splice(i,1)}}}(this._delegatedListeners),this)},t.prototype.queryRenderedFeatures=function(t,e){if(!this.style)return[];var i;if(void 0!==e||void 0===t||t instanceof _t.Point||Array.isArray(t)||(e=t,t=void 0),e=e||{},(t=t||[[0,0],[this.transform.width,this.transform.height]])instanceof _t.Point||"number"==typeof t[0])i=[_t.Point.convert(t)];else{var r=_t.Point.convert(t[0]),n=_t.Point.convert(t[1]);i=[r,new _t.Point(n.x,r.y),n,new _t.Point(r.x,n.y),r]}return this.style.queryRenderedFeatures(i,e,this.transform)},t.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},t.prototype.setStyle=function(t,e){return!1!==(e=_t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},e)).diff&&e.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&t?(this._diffStyle(t,e),this):(this._localIdeographFontFamily=e.localIdeographFontFamily,this._updateStyle(t,e))},t.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error("Missing UI string '"+t+"'");return e},t.prototype._updateStyle=function(t,e){return this.style&&(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new Re(this,e||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof t?this.style.loadURL(t):this.style.loadJSON(t)):delete this.style,this},t.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new Re(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},t.prototype._diffStyle=function(t,i){var r=this;if("string"==typeof t){var e=this._requestManager.normalizeStyleURL(t),n=this._requestManager.transformRequest(e,_t.ResourceType.Style);_t.getJSON(n,function(t,e){t?r.fire(new _t.ErrorEvent(t)):e&&r._updateDiff(e,i)})}else"object"==typeof t&&this._updateDiff(t,i)},t.prototype._updateDiff=function(e,i){try{this.style.setState(e)&&this._update(!0)}catch(t){_t.warnOnce("Unable to perform style diff: "+(t.message||t.error||t)+".  Rebuilding the style from scratch."),this._updateStyle(e,i)}},t.prototype.getStyle=function(){if(this.style)return this.style.serialize()},t.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():_t.warnOnce("There is no style added to the map.")},t.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},t.prototype.isSourceLoaded=function(t){var e=this.style&&this.style.sourceCaches[t];if(void 0!==e)return e.loaded();this.fire(new _t.ErrorEvent(new Error("There is no source with ID '"+t+"'")))},t.prototype.areTilesLoaded=function(){var t=this.style&&this.style.sourceCaches;for(var e in t){var i=t[e]._tiles;for(var r in i){var n=i[r];if("loaded"!==n.state&&"errored"!==n.state)return!1}}return!0},t.prototype.addSourceType=function(t,e,i){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,i)},t.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},t.prototype.getSource=function(t){return this.style.getSource(t)},t.prototype.addImage=function(t,e,i){void 0===i&&(i={});var r=i.pixelRatio;void 0===r&&(r=1);var n=i.sdf;void 0===n&&(n=!1);var o=i.stretchX,a=i.stretchY,s=i.content;if(this._lazyInitEmptyStyle(),e instanceof vr||_r&&e instanceof _r){var l=_t.browser.getImageData(e),u=l.width,c=l.height,p=l.data;this.style.addImage(t,{data:new _t.RGBAImage({width:u,height:c},p),pixelRatio:r,stretchX:o,stretchY:a,content:s,sdf:n,version:0})}else{if(void 0===e.width||void 0===e.height)return this.fire(new _t.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`")));var h=e.width,d=e.height,f=e.data,m=e;this.style.addImage(t,{data:new _t.RGBAImage({width:h,height:d},new Uint8Array(f)),pixelRatio:r,stretchX:o,stretchY:a,content:s,sdf:n,version:0,userImage:m}),m.onAdd&&m.onAdd(this,t)}},t.prototype.updateImage=function(t,e){var i=this.style.getImage(t);if(!i)return this.fire(new _t.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var r=e instanceof vr||_r&&e instanceof _r?_t.browser.getImageData(e):e,n=r.width,o=r.height,a=r.data;if(void 0===n||void 0===o)return this.fire(new _t.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`")));if(n!==i.data.width||o!==i.data.height)return this.fire(new _t.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image")));var s=!(e instanceof vr||_r&&e instanceof _r);i.data.replace(a,s),this.style.updateImage(t,i)},t.prototype.hasImage=function(t){return t?!!this.style.getImage(t):(this.fire(new _t.ErrorEvent(new Error("Missing required image id"))),!1)},t.prototype.removeImage=function(t){this.style.removeImage(t)},t.prototype.loadImage=function(t,e){_t.getImage(this._requestManager.transformRequest(t,_t.ResourceType.Image),e)},t.prototype.listImages=function(){return this.style.listImages()},t.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},t.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},t.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},t.prototype.getLayer=function(t){return this.style.getLayer(t)}
vendor: 8,157 bytes, line 1
1,t.prototype.setLayerZoomRange=function(t,e,i){return this.style.setLayerZoomRange(t,e,i),this._update(!0)},t.prototype.setFilter=function(t,e,i){return void 0===i&&(i={}),this.style.setFilter(t,e,i),this._update(!0)},t.prototype.getFilter=function(t){return this.style.getFilter(t)},t.prototype.setPaintProperty=function(t,e,i,r){return void 0===r&&(r={}),this.style.setPaintProperty(t,e,i,r),this._update(!0)},t.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},t.prototype.setLayoutProperty=function(t,e,i,r){return void 0===r&&(r={}),this.style.setLayoutProperty(t,e,i,r),this._update(!0)},t.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},t.prototype.setLight=function(t,e){return void 0===e&&(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},t.prototype.getLight=function(){return this.style.getLight()},t.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},t.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},t.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},t.prototype.getContainer=function(){return this._container},t.prototype.getCanvasContainer=function(){return this._canvasContainer},t.prototype.getCanvas=function(){return this._canvas},t.prototype._containerDimensions=function(){var t=0,e=0;return this._container&&(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},t.prototype._detectMissingCSS=function(){"rgb(250, 128, 114)"!==_t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&_t.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 in https://www.mapbox.com/mapbox-gl-js/api/.")},t.prototype._setupContainer=function(){var t=this._container;t.classList.add("mapboxgl-map"),(this._missingCSSCanary=x.create("div","mapboxgl-canary",t)).style.visibility="hidden",this._detectMissingCSS();var e=this._canvasContainer=x.create("div","mapboxgl-canvas-container",t);this._interactive&&e.classList.add("mapboxgl-interactive"),this._canvas=x.create("canvas","mapboxgl-canvas",e),this._canvas.style.position="absolute",this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map");var i=this._containerDimensions();this._resizeCanvas(i[0],i[1]);var r=this._controlContainer=x.create("div","mapboxgl-control-container",t),n=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(function(t){n[t]=x.create("div","mapboxgl-ctrl-"+t,r)})},t.prototype._resizeCanvas=function(t,e){var i=_t.browser.devicePixelRatio||1;this._canvas.width=i*t,this._canvas.height=i*e,this._canvas.style.width=t+"px",this._canvas.style.height=e+"px"},t.prototype._setupPainter=function(){var t=_t.extend({},i.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),e=this._canvas.getContext("webgl",t)||this._canvas.getContext("experimental-webgl",t);e?(this.painter=new $i(e,this.transform),_t.webpSupported.testSupport(e)):this.fire(new _t.ErrorEvent(new Error("Failed to initialize WebGL")))},t.prototype._contextLost=function(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new _t.Event("webglcontextlost",{originalEvent:t}))},t.prototype._contextRestored=function(t){this._setupPainter(),this.resize(),this._update(),this.fire(new _t.Event("webglcontextrestored",{originalEvent:t}))},t.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},t.prototype._update=function(t){return this.style&&(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint()),this},t.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},t.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},t.prototype._render=function(){var e,i=this,t=0,r=this.painter.context.extTimerQuery;this.listens("gpu-timing-frame")&&(e=r.createQueryEXT(),r.beginQueryEXT(r.TIME_ELAPSED_EXT,e),t=_t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run();var n=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var o=this.transform.zoom,a=_t.browser.now();this.style.zoomHistory.update(o,a);var s=new _t.EvaluationParameters(o,{now:a,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),l=s.crossFadingFactor();1===l&&l===this._crossFadingFactor||(n=!0,this._crossFadingFactor=l),this.style.update(s)}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),gpuTiming:!!this.listens("gpu-timing-layer"),fadeDuration:this._fadeDuration}),this.fire(new _t.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new _t.Event("load"))),this.style&&(this.style.hasTransitions()||n)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){var u=_t.browser.now()-t;r.endQueryEXT(r.TIME_ELAPSED_EXT,e),setTimeout(function(){var t=r.getQueryObjectEXT(e,r.QUERY_RESULT_EXT)/1e6;r.deleteQueryEXT(e),i.fire(new _t.Event("gpu-timing-frame",{cpuTime:u,gpuTime:t}))},50)}if(this.listens("gpu-timing-layer")){var c=this.painter.collectGpuTimers();setTimeout(function(){var t=i.painter.queryGpuTimers(c);i.fire(new _t.Event("gpu-timing-layer",{layerTimes:t}))},50)}return this._sourcesDirty||this._styleDirty||this._placementDirty||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&(this._fullyLoaded||(this._fullyLoaded=!0),this.fire(new _t.Event("idle"))),this},t.prototype.remove=function(){this._hash&&this._hash.remove();for(var t=0,e=this._controls;t<e.length;t+=1)e[t].onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.setStyle(null),void 0!==_t.window&&(_t.window.removeEventListener("resize",this._onWindowResize,!1),_t.window.removeEventListener("online",this._onWindowOnline,!1));var i=this.painter.context.gl.getExtension("WEBGL_lose_context");i&&i.loseContext(),wr(this._canvasContainer),wr(this._controlContainer),wr(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),this.fire(new _t.Event("remove"))},t.prototype.triggerRepaint=function(){var e=this;this.style&&!this._frame&&(this._frame=_t.browser.frame(function(t){e._frame=null,e._render()}))},t.prototype._onWindowOnline=function(){this._update()},t.prototype._onWindowResize=function(t){this._trackResize&&this.resize({originalEvent:t})._update()},e.showTileBoundaries.get=function(){return!!this._showTileBoundaries},e.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())},e.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},e.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&&((this._showCollisionBoxes=t)?this.style._generateCollisionBoxes():this._update())},e.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},e.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())},e.repaint.get=function(){return!!this._repaint},e.repaint.set=function(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint())},e.vertices.get=function(){return!!this._vertices}
1,e.vertices.set=function(t){this._vertices=t,this._update()},t.prototype._setCacheLimits=function(t,e){_t.setCacheLimits(t,e)},e.version.get=function(){return _t.version},Object.defineProperties(t.prototype,e),t}(hr);function wr(t){t.parentNode&&t.parentNode.removeChild(t)}var Sr={showCompass:!0,showZoom:!0,visualizePitch:!1},Tr=function(t){var e=this;this.options=_t.extend({},Sr,t),this._container=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",function(t){return t.preventDefault()}),this.options.showZoom&&(_t.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",function(t){return e._map.zoomIn({},{originalEvent:t})}),x.create("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",function(t){return e._map.zoomOut({},{originalEvent:t})}),x.create("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(_t.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",function(t){e.options.visualizePitch?e._map.resetNorthPitch({},{originalEvent:t}):e._map.resetNorth({},{originalEvent:t})}),this._compassIcon=x.create("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))};function kr(t,e,i){if(t=new _t.LngLat(t.lng,t.lat),e){var r=new _t.LngLat(t.lng-360,t.lat),n=new _t.LngLat(t.lng+360,t.lat),o=i.locationPoint(t).distSqr(e);i.locationPoint(r).distSqr(e)<o?t=r:i.locationPoint(n).distSqr(e)<o&&(t=n)}for(;180<Math.abs(t.lng-i.center.lng);){var a=i.locationPoint(t);if(0<=a.x&&0<=a.y&&a.x<=i.width&&a.y<=i.height)break;t.lng>i.center.lng?t.lng-=360:t.lng+=360}return t}Tr.prototype._updateZoomButtons=function(){var t=this._map.getZoom();this._zoomInButton.disabled=t===this._map.getMaxZoom(),this._zoomOutButton.disabled=t===this._map.getMinZoom()},Tr.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassIcon.style.transform=t},Tr.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new rr(t,{button:"left",element:this._compass,clickTolerance:t.dragRotate._clickTolerance}),x.addEventListener(this._compass,"mousedown",this._handler.onMouseDown),x.addEventListener(this._compass,"touchstart",this._handler.onMouseDown,{passive:!1}),this._handler.enable()),this._container},Tr.prototype.onRemove=function(){x.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),x.removeEventListener(this._compass,"mousedown",this._handler.onMouseDown),x.removeEventListener(this._compass,"touchstart",this._handler.onMouseDown,{passive:!1}),this._handler.disable(),delete this._handler),delete this._map},Tr.prototype._createButton=function(t,e){var i=x.create("button",t,this._container);return i.type="button",i.addEventListener("click",e),i},Tr.prototype._setButtonTitle=function(t,e){var i=this._map._getUIString("NavigationControl."+e);t.title=i,t.setAttribute("aria-label",i)};var Er={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%)"};function Cr(t,e,i){var r=t.classList;for(var n in Er)r.remove("mapboxgl-"+i+"-anchor-"+n);r.add("mapboxgl-"+i+"-anchor-"+e)}var Ar,Ir=function(_){function t(t,e){var i=this;if(_.call(this),(t instanceof _t.window.HTMLElement||e)&&(t=_t.extend({element:t},e)),_t.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._draggable=t&&t.draggable||!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&"auto"!==t.pitchAlignment?t.pitchAlignment:this._rotationAlignment,t&&t.element)this._element=t.element,this._offset=_t.Point.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=x.create("div"),this._element.setAttribute("aria-label","Map marker");var r=x.createNS("http://www.w3.org/2000/svg","svg");r.setAttributeNS(null,"display","block"),r.setAttributeNS(null,"height","41px"),r.setAttributeNS(null,"width","27px"),r.setAttributeNS(null,"viewBox","0 0 27 41");var n=x.createNS("http://www.w3.org/2000/svg","g");
1n.setAttributeNS(null,"stroke","none"),n.setAttributeNS(null,"stroke-width","1"),n.setAttributeNS(null,"fill","none"),n.setAttributeNS(null,"fill-rule","evenodd");var o=x.createNS("http://www.w3.org/2000/svg","g");o.setAttributeNS(null,"fill-rule","nonzero");var a=x.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"transform","translate(3.0, 29.0)"),a.setAttributeNS(null,"fill","#000000");for(var s=0,l=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];s<l.length;s+=1){var u=l[s],c=x.createNS("http://www.w3.org/2000/svg","ellipse");c.setAttributeNS(null,"opacity","0.04"),c.setAttributeNS(null,"cx","10.5"),c.setAttributeNS(null,"cy","5.80029008"),c.setAttributeNS(null,"rx",u.rx),c.setAttributeNS(null,"ry",u.ry),a.appendChild(c)}var p=x.createNS("http://www.w3.org/2000/svg","g");p.setAttributeNS(null,"fill",this._color);var h=x.createNS("http://www.w3.org/2000/svg","path");h.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),p.appendChild(h);var d=x.createNS("http://www.w3.org/2000/svg","g");d.setAttributeNS(null,"opacity","0.25"),d.setAttributeNS(null,"fill","#000000");var f=x.createNS("http://www.w3.org/2000/svg","path");f.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),d.appendChild(f);var m=x.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"transform","translate(6.0, 7.0)"),m.setAttributeNS(null,"fill","#FFFFFF");var y=x.createNS("http://www.w3.org/2000/svg","g");y.setAttributeNS(null,"transform","translate(8.0, 8.0)");var v=x.createNS("http://www.w3.org/2000/svg","circle");v.setAttributeNS(null,"fill","#000000"),v.setAttributeNS(null,"opacity","0.25"),v.setAttributeNS(null,"cx","5.5"),v.setAttributeNS(null,"cy","5.5"),v.setAttributeNS(null,"r","5.4999962");var g=x.createNS("http://www.w3.org/2000/svg","circle");g.setAttributeNS(null,"fill","#FFFFFF"),g.setAttributeNS(null,"cx","5.5"),g.setAttributeNS(null,"cy","5.5"),g.setAttributeNS(null,"r","5.4999962"),y.appendChild(v),y.appendChild(g),o.appendChild(a),o.appendChild(p),o.appendChild(d),o.appendChild(m),o.appendChild(y),r.appendChild(o),this._element.appendChild(r),this._offset=_t.Point.convert(t&&t.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",function(t){t.preventDefault()}),this._element.addEventListener("mousedown",function(t){t.preventDefault()}),this._element.addEventListener("focus",function(){var t=i._map.getContainer();t.scrollTop=0,t.scrollLeft=0}),Cr(this._element,this._anchor,"marker"),this._popup=null}return _&&(t.__proto__=_),((t.prototype=Object.create(_&&_.prototype)).constructor=t).prototype.addTo=function(t){return this.remove(),(this._map=t).getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this},t.prototype.remove=function(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),x.remove(this._element),this._popup&&this._popup.remove(),this},t.prototype.getLngLat=function(){return this._lngLat},t.prototype.setLngLat=function(t){return this._lngLat=_t.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},t.prototype.getElement=function(){return this._element},t.prototype.setPopup=function(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),t){if(!("offset"in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[
vendor: 5,080 bytes, line 1
10,-38.1],"bottom-left":[e,-1*(24.6+e)],"bottom-right":[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this},t.prototype._onKeyPress=function(t){var e=t.code,i=t.charCode||t.keyCode;"Space"!==e&&"Enter"!==e&&32!==i&&13!==i||this.togglePopup()},t.prototype._onMapClick=function(t){var e=t.originalEvent.target,i=this._element;this._popup&&(e===i||i.contains(e))&&this.togglePopup()},t.prototype.getPopup=function(){return this._popup},t.prototype.togglePopup=function(){var t=this._popup;return t&&(t.isOpen()?t.remove():t.addTo(this._map)),this},t.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&&(this._lngLat=kr(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?e="rotateZ("+this._rotation+"deg)":"map"===this._rotationAlignment&&(e="rotateZ("+(this._rotation-this._map.getBearing())+"deg)");var i="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?i="rotateX(0deg)":"map"===this._pitchAlignment&&(i="rotateX("+this._map.getPitch()+"deg)"),t&&"moveend"!==t.type||(this._pos=this._pos.round()),x.setTransform(this._element,Er[this._anchor]+" translate("+this._pos.x+"px, "+this._pos.y+"px) "+i+" "+e)}},t.prototype.getOffset=function(){return this._offset},t.prototype.setOffset=function(t){return this._offset=_t.Point.convert(t),this._update(),this},t.prototype._onMove=function(t){this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new _t.Event("dragstart"))),this.fire(new _t.Event("drag"))},t.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new _t.Event("dragend")),this._state="inactive"},t.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},t.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},t.prototype.isDraggable=function(){return this._draggable},t.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},t.prototype.getRotation=function(){return this._rotation},t.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||"auto",this._update(),this},t.prototype.getRotationAlignment=function(){return this._rotationAlignment},t.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this},t.prototype.getPitchAlignment=function(){return this._pitchAlignment},t}(_t.Evented),zr={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Pr=0,Mr=!1,Lr=function(e){function t(t){e.call(this),this.options=_t.extend({},zr,t),_t.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.onAdd=function(t){var e;return this._map=t,this._container=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),e=this._setupUI,void 0!==Ar?e(Ar):void 0!==_t.window.navigator.permissions?_t.window.navigator.permissions.query({name:"geolocation"}).then(function(t){Ar="denied"!==t.state,e(Ar)}):(Ar=!!_t.window.navigator.geolocation,e(Ar)),this._container},t.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(_t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),x.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Pr=0,Mr=!1},t.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),i=t.coords;return e&&(i.longitude<e.getWest()||i.longitude>e.getEast()||i.latitude<e.getSouth()||i.latitude>e.getNorth())},t.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_E
1RROR",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")}},t.prototype._onSuccess=function(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new _t.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":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&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new _t.Event("geolocate",t)),this._finish()}},t.prototype._updateCamera=function(t){var e=new _t.LngLat(t.coords.longitude,t.coords.latitude),i=t.coords.accuracy,r=this._map.getBearing(),n=_t.extend({bearing:r},this.options.fitBoundsOptions);this._map.fitBounds(e.toBounds(i),n,{geolocateSource:!0})},t.prototype._updateMarker=function(t){if(t){var e=new _t.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(e).addTo(this._map),this._userLocationDotMarker.setLngLat(e).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},t.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),i=this._map.unproject([1,t]),r=e.distanceTo(i),n=Math.ceil(2*this._accuracy/r);this._circleElement.style.width=n+"px",this._circleElement.style.height=n+"px"},t.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},t.prototype._onError=function(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){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;var e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&Mr)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new _t.Event("error",t)),this._finish()}},t.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},t.prototype._setupUI=function(t){var i=this;if(this._container.addEventListener("contextmenu",function(t){return t.preventDefault()}),this._geolocateButton=x.create("button","mapboxgl-ctrl-geolocate",this._container),x.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),!(this._geolocateButton.type="button")===t){_t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e)}else{var r=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
1se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=x.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Ir(this._dotElement),this._circleElement=x.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ir({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",function(t){var e=t.originalEvent&&"resize"===t.originalEvent.type;t.geolocateSource||"ACTIVE_LOCK"!==i._watchState||e||(i._watchState="BACKGROUND",i._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),i._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),i.fire(new _t.Event("trackuserlocationend")))})},t.prototype.trigger=function(){if(!this._setup)return _t.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 _t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Pr--,Mr=!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 _t.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 _t.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("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Mr=1<++Pr?(t={maximumAge:6e5,timeout:0},!0):(t=this.options.positionOptions,!1),this._geolocationWatchID=_t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,t)}}else _t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},t.prototype._clearWatch=function(){_t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},t}(_t.Evented),Dr={maxWidth:100,unit:"metric"},Rr=function(t){this.options=_t.extend({},Dr,t),_t.bindAll(["_onMove","setUnit"],this)};function Br(t,e,i){var r=i&&i.maxWidth||100,n=t._container.clientHeight/2,o=t.unproject([0,n]),a=t.unproject([r,n]),s=o.distanceTo(a);if(i&&"imperial"===i.unit){var l=3.2808*s;5280<l?Or(e,r,l/5280,t._getUIString("ScaleControl.Miles")):Or(e,r,l,t._getUIString("ScaleControl.Feet"))}else i&&"nautical"===i.unit?Or(e,r,s/1852,t._getUIString("ScaleControl.NauticalMiles")):1e3<=s?Or(e,r,s/1e3,t._getUIString("ScaleControl.Kilometers")):Or(e,r,s,t._getUIString("ScaleControl.Meters"))}function Or(t,e,i,r){var n,o,a,s,l,u=(n=i,(o=Math.pow(10,(""+Math.floor(n)).length-1))*(a=10<=(a=n/o
vendor: 9,685 bytes, line 1
1)?10:5<=a?5:3<=a?3:2<=a?2:1<=a?1:(s=a,l=Math.pow(10,Math.ceil(-Math.log(s)/Math.LN10)),Math.round(s*l)/l))),c=u/i;t.style.width=e*c+"px",t.innerHTML=u+"&nbsp;"+r}Rr.prototype.getDefaultPosition=function(){return"bottom-left"},Rr.prototype._onMove=function(){Br(this._map,this._container,this.options)},Rr.prototype.onAdd=function(t){return this._map=t,this._container=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Rr.prototype.onRemove=function(){x.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Rr.prototype.setUnit=function(t){this.options.unit=t,Br(this._map,this._container,this.options)};var Fr=function(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof _t.window.HTMLElement?this._container=t.container:_t.warnOnce("Full screen control 'container' must be a DOM element.")),_t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in _t.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in _t.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in _t.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in _t.window.document&&(this._fullscreenchange="MSFullscreenChange")};Fr.prototype.onAdd=function(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",_t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Fr.prototype.onRemove=function(){x.remove(this._controlContainer),this._map=null,_t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Fr.prototype._checkFullscreenSupport=function(){return!!(_t.window.document.fullscreenEnabled||_t.window.document.mozFullScreenEnabled||_t.window.document.msFullscreenEnabled||_t.window.document.webkitFullscreenEnabled)},Fr.prototype._setupUI=function(){var t=this._fullscreenButton=x.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);x.create("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden",!0),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),_t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Fr.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t},Fr.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Fr.prototype._isFullscreen=function(){return this._fullscreen},Fr.prototype._changeIcon=function(){(_t.window.document.fullscreenElement||_t.window.document.mozFullScreenElement||_t.window.document.webkitFullscreenElement||_t.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Fr.prototype._onClickFullscreen=function(){this._isFullscreen()?_t.window.document.exitFullscreen?_t.window.document.exitFullscreen():_t.window.document.mozCancelFullScreen?_t.window.document.mozCancelFullScreen():_t.window.document.msExitFullscreen?_t.window.document.msExitFullscreen():_t.window.document.webkitCancelFullScreen&&_t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Ur={closeButton:!0,closeOnClick:!0,className:"",maxWidth:"240px"},Nr=function(e){function t(t){e.call(this),this.options=_t.extend(Object.create(Ur),t),_t.bindAll(["_update","_onClose","remove"],this)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.addTo=function(t){var e=this;return this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._trackPointer?(this._map.on("mousemove",function(t){e._update(t.point)}),this._map.on("mouseup",function(t){e._update(t.point)}),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new _t.Event("open")),this},t.prototype.isOpen=function(){return!!this._map},t.prototype.remove=function(){return this._content&&x.remove(this._content),this._container&&(x.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove"),delete this._map),this.fire(new _t.Event("close")),this},t.prototype.getLngLat=function(){return this._lngLat},t.prototype.setLngLat=function(t){return this._lngLat=_t.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove"),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},t.prototype.trackPointer=function(){var e=this;return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",function(t){e._update(t.point)}),this._map.on("drag",function(t){e._update(t.point)}),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},t.prototype.getElement=function(){return this._container},t.prototype.setText=function(t){return this.setDOMContent(_t.window.document.createTextNode(t))},t.prototype.setHTML=function(t){var e,i=_t.window.document.createDocumentFragment(),r=_t.window.document.createElement("body");for(r.innerHTML=t;e=r.firstChild;)i.appendChild(e);return this.setDOMContent(i)},t.prototype.getMaxWidth=function(){return this._container.style.maxWidth},t.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},t.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},t.prototype.addClassName=function(t){this._container.classList.add(t)},t.prototype.removeClassName=function(t){this._container.classList.remove(t)},t.prototype.toggleClassName=function(t){return this._container.classList.toggle(t)},t.prototype._createContent=function(){this._content&&x.remove(this._content),this._content=x.create("div","mapboxgl-popup-content",this._container),this.options.closeButton&&(this._closeButton=x.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClose))},t.prototype._update=function(t){var e=this,i=this._lngLat||this._trackPointer;if(this._map&&i&&this._content&&(this._container||(this._container=x.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=x.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(t){return e._container.classList.add(t)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=kr(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||t)){var r=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat),n=this.options.anchor,o=function t(e){if(e){if("number"==typeof e){var i=Math.round(Math.sqrt(.5*Math.pow(e,2)));return{center:new _t.Point(0,0),top:new _t.Point(0,e),"top-left":new _t.Point(i,i),"top-right":new _t.Point(-i,i),bottom:new _t.Point(0,-e),"bottom-left":new _t.Point(i,-i),"bottom-right":new _t.Point(-i,-i),left:new _t.Point(e,0),right:new _t.Point(-e,0)}}if(e instanceof _t.Point||Array.isArray(e)){var r=_t.Point.convert(e);return{center:r,top:r,"top-left":r,"top-right":r,bottom:r,"bottom-left":r,"bottom-right":r,left:r,right:r}}return{center:_t.Point.convert(e.center||[0,0]),top:_t.Point.convert(e.top||[0,0]),"top-left":_t.Point.convert(e["top-left"]||[0,0]),"top-right":_t.Point.convert(e["top-right"]||[0,0]),bottom:_t.Point.convert(e.bottom||[0,0]),"bottom-left":_t.Point.convert(e["bottom-left"]||[0,0]),"bottom-right":_t.Point.convert(e["bottom-right"]||[0,0]),left:_t.Point.convert(e.left||[0,0]),right:_t.Point.convert(e.right||[0,0])}}return t(new _t.Point(0,0))}(this.options.offset);if(!n){var a,s=this._container.offsetWidth,l=this._container.offsetHeight;a=r.y+o.bottom.y<l?["top"]:r.y>this._map.transform.height-l?["bottom"]:[],r.x<s/2?a.push("left"):r.x>this._map.transform.width-s/2&&a.push("right"),n=0===a.length?"bottom":a.join("-")}var u=r.add(o[n]).round();x.setTransform(this._container,Er[n]+" translate("+u.x+"px,"+u.y+"px)"),Cr(this._container,n,"popup")}},t.prototype._onClose=function(){this.remove()},t}
1(_t.Evented),jr={version:_t.version,supported:i,setRTLTextPlugin:_t.setRTLTextPlugin,getRTLTextPluginStatus:_t.getRTLTextPluginStatus,Map:br,NavigationControl:Tr,GeolocateControl:Lr,AttributionControl:dr,ScaleControl:Rr,FullscreenControl:Fr,Popup:Nr,Marker:Ir,Style:Re,LngLat:_t.LngLat,LngLatBounds:_t.LngLatBounds,Point:_t.Point,MercatorCoordinate:_t.MercatorCoordinate,Evented:_t.Evented,config:_t.config,get accessToken(){return _t.config.ACCESS_TOKEN},set accessToken(t){_t.config.ACCESS_TOKEN=t},get baseApiUrl(){return _t.config.API_URL},set baseApiUrl(t){_t.config.API_URL=t},get workerCount(){return Mt.workerCount},set workerCount(t){Mt.workerCount=t},get maxParallelImageRequests(){return _t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){_t.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage:function(t){_t.clearTileCache(t)},workerUrl:""};return jr}),a}),function(n){var t=function(){var e;new LazyLoad({});if(n(window).scroll(function(){80<n(window).scrollTop()?n("header").addClass("header-scroll"):n("header").removeClass("header-scroll")}).scroll(),n("header .burger-menu").on("click",function(){n(".header-nav").toggleClass("responsive-menu-open"),n(".burger-menu").toggleClass("burger-menu-cross"),n(".menu-overlay").toggleClass("menu-overlay-open")}),n(".menu-overlay").on("click",function(){n(".header-nav").removeClass("responsive-menu-open"),n(".menu-overlay").removeClass("menu-overlay-open"),n("header .burger-menu").removeClass("burger-menu-cross")}),n(".menu-item-has-children").on("click",function(t){n(this).find("a").toggleClass("link-open"),t.stopPropagation()}),n(".menu-item-has-children").on("click",function(t){n(this).find(".sub-menu").toggleClass("sub-menu_open"),t.stopPropagation()}),1280<n(window).width()&&n("header .menu-item-has-children").hover(function(){n(".menu-overlay").toggleClass("menu-overlay-open")}),n(".partners-container").slick({arrows:!1,dots:!1,infinite:!0,slidesToShow:5,slidesToScroll:2,speed:2e4,autoplay:!0,autoplaySpeed:0,cssEase:"linear",responsive:[{breakpoint:991,settings:{slidesToShow:4,slidesToScroll:2}},{breakpoint:767,settings:{slidesToShow:3,slidesToScroll:2}},{breakpoint:500,settings:{slidesToShow:2,slidesToScroll:1}}]}),n(".testimonials-container").slick({arrows:!0,dots:!1,infinite:!0,speed:300,slidesToShow:1,slidesToScroll:1,autoplay:!1}),n(".article-slider").slick({arrows:!1,dots:!0,infinite:!1,speed:300,slidesToShow:3,slidesToScroll:1,autoplay:!1,responsive:[{breakpoint:1284,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),n(".article-slider-home").slick({lazyLoad:"ondemand",infinite:!1,arrows:!0,dots:!1,speed:300,slidesToShow:2,slidesToScroll:1,autoplay:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:1,arrows:!1,dots:!0}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!0}}]}),n(".home-slider").on("init",function(t,e){n(this).append('<div class="count"><span id="current">1</span> / <span id="total">'+e.slideCount+"</span></div>")}),n(".home-slider").slick({arrows:!0,dots:!1,infinite:!0,speed:300,slidesToShow:1,slidesToScroll:1,autoplay:!1}),n(".home-slider").on("afterChange",function(t,e,i,r){n(".count #current").html(i+1)}),n(".stages-slider").on("init",function(t,e){n(this).append('<div class="count"><span id="current">1</span> / <span id="total">'+e.slideCount+"</span></div>")}),n(".stages-slider").slick({arrows:!0,dots:!1,infinite:!0,speed:300,slidesToShow:1,slidesToScroll:1,autoplay:!1}),n(".stages-slider").on("afterChange",function(t,e,i,r){n(".count #current").html(i+1)}),n(".toggle").click(function(t){t.preventDefault();var e=n(this);e.next().hasClass("show")?(e.next().removeClass("show"),e.next().slideUp(350)):(e.next().toggleClass("show"),e.next().slideToggle(350))}),n(".cbo-accordiontitle").click(function(){n(this).toggleClass("cbo-accordiontitle-open")}),n(".cbo-sidebar").on("click",function(){n(".search-sidebar").toggleClass("search-sidebar-open"),n(".overlay-sidebar").toggleClass("overlay-sidebar-open")}),n(".search-sidebar .sidebar-close").on("click",function(){n(".search-sidebar").removeClass("search-sidebar-open"),n(".overlay-sidebar").removeClass("overlay-sidebar-open")}),n(".overlay-sidebar").on("click",function(){n(".search-sidebar").removeClass("search-sidebar-open"),n(".overlay-sidebar").removeClass("overlay-sidebar-open")}),n(".cbo-filters .filters-menu").on("click",function(){n(".filters-inner").toggleClass("filters-inner-open"),n(".filters-menu").toggleClass("filters-menu-click")}),n(".cbo-filters .filters-container .filters-inner a").filter(function(){return this.href===location.href}).addClass("active"),n(".modale-close").on("click",function(){n(".modale-overlay").removeClass("modale-overlay-open"),n(".modale-container").removeClass("modale-container-open")}),(e=jQuery)(document).ready(function(){var t;t="bandeauCookie",setPos=document.cookie.indexOf(t+"="),stopPos=document.cookie.indexOf(";",setPos),~setPos&&document.cookie.substring(setPos,~stopPos?stopPos:void 0).split("=")[1]?e("#myMo
1dal").hide():(e("#myModal").show(),e("#myModal-close").click(function(){!function(t,e,i,r){var n=t+"="+escape(e);if(i){var o=new Date;o.setTime(o.getTime()+24*i*60*60*1e3),n+=";expires="+o.toGMTString()}n+=";"+(r||"path=/"),document.cookie=n}("bandeauCookie",1,0),e("#myModal").fadeOut("fast")}))}),0<n("body #map").length){mapboxgl.accessToken="pk.eyJ1IjoiMjBoMjAiLCJhIjoiVVdXWG41ZyJ9.OrPIlM0e7K8WhHCv65tlzA";var i=new mapboxgl.Map({container:"map",zoom:15,center:[4.83375,45.777558],style:"mapbox://styles/20h20/cjn4grwb10y9t2so66i5xtrs1"});i.on("load",function(){i.loadImage("http://artisansfiction.julien-brochard.fr/wp-content/themes/les-artisans/library/img/marker.png",function(t,e){if(t)throw t;i.addImage("marker",e),i.addLayer({id:"points",type:"symbol",source:{type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:[4.83375,45.777558]}}]}},layout:{"icon-image":"marker","icon-size":1}})})})}AOS.init({})},e=function(){},i=function(){},r=function(){};n(document).ready(function(){t()}),n(window).load(function(){e()}),n(window).resize(function(){i()}),n(window).on("scroll",function(){r()})}(jQuery);

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.