!function(n){var r={};function i(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}i.m=n,i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=24)}([function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",function(){return i}),n.d(e,"__assign",function(){return o}),n.d(e,"__rest",function(){return a}),n.d(e,"__decorate",function(){return s}),n.d(e,"__param",function(){return u}),n.d(e,"__metadata",function(){return c}),n.d(e,"__awaiter",function(){return l}),n.d(e,"__generator",function(){return h}),n.d(e,"__exportStar",function(){return f}),n.d(e,"__values",function(){return p}),n.d(e,"__read",function(){return d}),n.d(e,"__spread",function(){return m}),n.d(e,"__spreadArrays",function(){return y}),n.d(e,"__await",function(){return v}),n.d(e,"__asyncGenerator",function(){return g}),n.d(e,"__asyncDelegator",function(){return _}),n.d(e,"__asyncValues",function(){return b}),n.d(e,"__makeTemplateObject",function(){return w}),n.d(e,"__importStar",function(){return x}),n.d(e,"__importDefault",function(){return E});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n"}return t.event_id||""}function l(t){var e=o();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in e.console&&n[t].__sentry__&&(r[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});var i=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),i}function h(t,e,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function f(e,n){void 0===n&&(n={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(n).forEach(function(t){e.exception.values[0].mechanism[t]=n[t]})}catch(e){}}function p(){try{return document.location.href}catch(t){return""}}function d(t){try{for(var e=t,n=[],r=0,i=0,o=void 0;e&&r++<5&&"html"!==(o=m(e))&&(r<=1||i+3*n.length+o.length<80);)n.push(o),i+=o.length,e=e.parentNode;return n.reverse().join(" > ")}catch(t){return""}}function m(t){var e,n,r,i,o,a=[];if(!t||!t.tagName)return"";if(a.push(t.tagName.toLowerCase()),t.id&&a.push("#"+t.id),(e=t.className)&&Object(u.j)(e))for(n=e.split(/\s+/),o=0;o"}try{i.currentTarget=Object(c.c)(t.currentTarget)?Object(o.h)(t.currentTarget):Object.prototype.toString.call(t.currentTarget)}catch(t){i.currentTarget=""}for(var r in"undefined"!=typeof CustomEvent&&t instanceof CustomEvent&&(i.detail=t.detail),t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r]);return i}return t}function i(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var r=s(t,e);return function(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}(r)>n?i(t,e-1,n):r}function f(t,e){return"domain"===e&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==n&&t===n?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":Object(c.k)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+(t.name||"")+"]":t}function s(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return function t(e,n,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=new l.a),0===r)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=f(t);return Object(c.h)(n)?n:e}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=f(n,e);if(Object(c.h)(o))return o;var a=h(n),s=Array.isArray(n)?[]:{};if(i.memoize(n))return"[Circular ~]";for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=t(u,a[u],r-1,i));return i.unmemoize(n),s}(t,e,n)}))}catch(t){return"**non-serializable**"}}function r(t,e){void 0===e&&(e=40);var n=Object.keys(h(t));if(n.sort(),!n.length)return"[object has no keys]";if(e<=n[0].length)return Object(a.c)(n[0],e);for(var r=n.length;0=i.length)return r===n.length?i:Object(a.c)(i,e)}return""}}(p(7))},,function(t){var e;e=function(){return this}();try{e=e||Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);n(29),n(31);var i=n(11);r.initializeApp(i.default.FIREBASE_PUBLIC_CONFIG);var o=r.auth();e.auth=o;var a=r.firestore();e.db=a},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r,i=n(4);!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(r=r||{});var o=function(){function a(t){var n=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(r.RESOLVED,t)},this._reject=function(t){n._setResult(r.REJECTED,t)},this._setResult=function(t,e){n._state===r.PENDING&&(Object(i.l)(e)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){n._state!==r.PENDING&&(n._handlers.forEach(n._state===r.REJECTED?function(t){t.onrejected&&t.onrejected(n._value)}:function(t){t.onfulfilled&&t.onfulfilled(n._value)}),n._handlers=[])};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return a.prototype.toString=function(){return"[object SyncPromise]"},a.resolve=function(e){return new a(function(t){t(e)})},a.reject=function(n){return new a(function(t,e){e(n)})},a.all=function(t){return new a(function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach(function(t,e){a.resolve(t).then(function(t){o[e]=t,0==(i-=1)&&n(o)}).then(null,r)})}else n([]);else r(new TypeError("Promise.all requires an array as input."))})},a.prototype.then=function(r,i){var t=this;return new a(function(e,n){t._attachHandler({onfulfilled:function(t){if(r)try{return void e(r(t))}catch(t){return void n(t)}else e(t)},onrejected:function(t){if(i)try{return void e(i(t))}catch(t){return void n(t)}else n(t)}})})},a.prototype.catch=function(t){return this.then(function(t){return t},t)},a.prototype.finally=function(i){var o=this;return new a(function(t,e){var n,r;return o.then(function(t){r=!1,n=t,i&&i()},function(t){r=!0,n=t,i&&i()}).then(function(){r?e(n):t(n)})})},a}()},,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=JSON.parse('{"apiKey":"AIzaSyBkpk45k7csgzLWg8EMxwV3W-ihVv9lIPo","authDomain":"watarilog.firebaseapp.com","projectId":"watarilog","storageBucket":"watarilog.appspot.com","messagingSenderId":"343885680582","appId":"1:343885680582:web:4a97b19bc994d2a4"}');e.default={SENTRY_ENVIRONMENT:"production",FIREBASE_PUBLIC_CONFIG:n,MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoidG9yaXVtaTAxMTgiLCJhIjoiY2pvbGwyazl1MDRlMjNxdGFycnFvNnp3dSJ9.x5R3Qq9hDKWpPJESKNkelA",USER_AUTHENTICATION_REQUIRED_FOR_DEVELOPMENT:!1}},function(t,e){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;nE||(I=n.right)x||!(A||I||S||T)||!m.loadHidden&&!N(f[e])||!(_&&L<3&&!s&&(w<3||O<4)||B(f[e],o)))!i&&_&&!r&&L<4&&O<4&&2>6|192:(55296==(64512&i)&&r+1>18|240,e[n++]=i>>12&63|128):e[n++]=i>>12|224,e[n++]=i>>6&63|128),e[n++]=63&i|128)}return e}function s(t){try{return o.decodeString(t,!0)}catch(t){}return null}var e=w(0),r={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},i=function(t){return Error("Firebase Database ("+r.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)},o={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i>6,h=63&c;u||(h=64,a||(l=64)),r.push(n[o>>2],n[(3&o)<<4|s>>4],n[l],n[h])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(n(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,r=0;n>10)),e[r++]=String.fromCharCode(56320+(1023&a))}else{o=t[n++];var s=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i>4),64!==s)if(r.push(a<<4&240|s>>2),64!==u)r.push(s<<6&192|u)}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t"})}(o,r):"Error",s=new h(i,this.serviceName+": "+a+" ("+i+")."),u=0,c=Object.keys(r);u>>31)}var o,a,s=this.chain_[0],u=this.chain_[1],c=this.chain_[2],l=this.chain_[3],h=this.chain_[4];for(r=0;r<80;r++)a=r<40?r<20?(o=l^u&(c^l),1518500249):(o=u^c^l,1859775393):r<60?(o=u&c|l&(u|c),2400959708):(o=u^c^l,3395469782),i=(s<<5|s>>>27)+o+h+a+n[r]&4294967295,h=l,l=c,c=4294967295&(u<<30|u>>>2),u=s,s=i;this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+h&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);for(var n=e-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r>i&255,++r;return t},t}(),v=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then(function(){t(n)}).catch(function(t){n.error(t)})}return t.prototype.next=function(e){this.forEachObserver(function(t){t.next(e)})},t.prototype.error=function(e){this.forEachObserver(function(t){t.error(e)}),this.close(e)},t.prototype.complete=function(){this.forEachObserver(function(t){t.complete()}),this.close()},t.prototype.subscribe=function(t,e,n){var r,i=this;if(void 0===t&&void 0===e&&void 0===n)throw Error("Missing Observer.");void 0===(r=function(t){if("object"!=typeof t||null===t)return 0;for(var e=0,n=["next","error","complete"];e 4. Need to update it?")}return t+" failed: "+(r+" argument ")}b.CONSTANTS=r,b.Deferred=c,b.ErrorFactory=f,b.FirebaseError=h,b.Sha1=y,b.assert=a,b.assertionError=i,b.async=function(n,r){return function(){for(var t=[],e=0;e>6|192:(i<65536?e[n++]=i>>12|224:(e[n++]=i>>18|240,e[n++]=i>>12&63|128),e[n++]=i>>6&63|128),e[n++]=63&i|128)}return e},b.stringify=function(t){return JSON.stringify(t)},b.validateArgCount=function(t,e,n,r){var i;if(r=t.logLevel){(new Date).toISOString();switch(e){case i.DEBUG:case i.VERBOSE:case i.INFO:case i.WARN:case i.ERROR:break;default:throw Error("Attempted to log a message with an invalid logType (value: "+e+")")}}}var s=i.INFO,u=function(){function t(t){this.name=t,this._logLevel=s,this._logHandler=a,o.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in i))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!0,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;ea||a>56319||(o+=e[i],i++),t(N(o))&&n.push(o)}return n.join("")}),_(function(t,e,n){for(var r=n.length,i=0;ia||a>56319||(o+=n[i],i++),e=b(t,N(o),e)}return e}),_(function(t,e,n){for(var r=n.length;r--;){var i=n[r],o=n.charCodeAt(r);56320>o||o>57343||(i=n[--r]+i),e=b(t,N(i),e)}return e});var at=g(function(t,e){return e.split(t)}),st=g(function(t,e){return e.join(t)}),ut=_(function(t,e,n){return n.slice(t,e)});g(function(t,e){for(var n=e.length;n--;){var r=e[n],i=e.charCodeAt(n);if(56320>i||i>57343||(r=e[--n]+r),t(N(r)))return!0}return!1});var ct=g(function(t,e){for(var n=e.length;n--;){var r=e[n],i=e.charCodeAt(n);if(56320>i||i>57343||(r=e[--n]+r),!t(N(r)))return!1}return!0}),lt=g(function(t,e){return!!~e.indexOf(t)}),ht=g(function(t,e){return 0==e.indexOf(t)}),ft=(g(function(t,e){return t.length<=e.length&&e.lastIndexOf(t)==e.length-t.length}),g(function(t,e){var n=t.length;if(n<1)return d;for(var r=0,i=[];-1<(r=e.indexOf(t,r));)i.push(r),r+=n;return S(i)}));function pt(t){return t+""}function dt(t){return{$:2,b:t}}var mt=dt(function(t){return"number"!=typeof t?Lt("an INT",t):-2147483647a)return i}var p=n.$;if(4===p){for(var d=n.k;4===d.$;)d=d.k;return t(e,d,r,i,o+1,a,e.elm_event_node_ref)}for(var m=n.e,y=e.childNodes,v=0;v=1)return n;var r=t,i=e-1,o=b(xn,e,n);t=r,e=i,n=o}}),ur=g(function(t,e){return w(sr,t,e,d)}),cr=g(function(t,e){return w(ar,t,b(ur,0,fn(e)-1),e)}),lr=ct,hr=pt,fr=g(function(t,e){return b(st,t,y(e))}),pr=g(function(t,e){return S(b(at,t,e))}),dr=Nt,mr=g(function(t,e){return"\n\n("+hr(t+1)+") "+dn(yr(e))}),yr=function(t){return b(vr,t,d)},vr=g(function(t,e){t:for(;;)switch(t.$){case 0:var r=t.a,n=t.b,i=function(){var t=pn(r);if(1===t.$)return!1;var e=t.a,n=e.b;return ln(e.a)&&b(lr,hn,n)}(),o=n,a=b(xn,i?"."+r:"['"+r+"']",e);t=o,e=a;continue t;case 1:var s=(n=t.b,"["+hr(t.a)+"]");t=o=n,e=a=b(xn,s,e);continue t;case 2:var u=t.a;if(u.b){if(u.b.b){var c=(e.b?"The Json.Decode.oneOf at json"+b(fr,"",Pn(e)):"Json.Decode.oneOf")+" failed in the following "+hr(fn(u))+" ways:";return b(fr,"\n\n",b(xn,c,b(cr,mr,u)))}t=o=n=u.a,e=a=e;continue t}return"Ran into a Json.Decode.oneOf with no possibilities"+(e.b?" at json"+b(fr,"",Pn(e)):"!");default:var l=t.a,h=t.b;return(c=e.b?"Problem with the value at json"+b(fr,"",Pn(e))+":\n\n ":"Problem with the given value:\n\n")+dn(b(dr,4,h))+"\n\n"+l}}),gr=Gt,_r=g(function(t,e){var n=e;return H(b(In,gr(t),n))}),br=_(function(t,e){return b(Rn,function(){return 0},(n=b(On,_r(t),e),w(Ln,Nn(xn),An(d),n)));var n}),wr=_(function(){return An(0)}),xr=g(function(t,e){return b(Rn,t,e)});Vt.Task={b:kn,c:br,d:wr,e:xr,f:void 0};function Er(t){return w(Dn,g(function(t,e){return w(Wo,t.a,t.b,e)}),jo,t)}function Tr(t){return t.b}function Sr(t){return!b(Jo,4,t)&&b(Jo,100,t)||!b(Jo,400,t)}function Ir(t){var e=t-1;return 365*e+((e/4|0)-(e/100|0)+(e/400|0))}function Ar(t){return 1440*(t-719163)}function kr(t){var e=w(la,1970,2037,t);return b(Bo,e.b,e.a)}function Cr(t){return{$:0,a:t}}function Dr(){return kr(b(ha,d,b(fa,0,Cr(0))))}function Pr(){return kr(b(ha,d,b(fa,180,Cr(0))))}function Mr(t){return{$:0,a:t}}function Lr(t){return{$:1,a:t}}function Or(){return kr(b(ha,d,b(fa,60,Cr(0))))}function Rr(){return kr(b(ha,d,b(fa,120,Cr(0))))}function Nr(t){return{$:3,a:t}}function Br(){return kr(b(ha,d,b(fa,120,Cr(0))))}function zr(){return kr(b(ha,d,b(fa,-240,Cr(0))))}function Fr(){return kr(b(ha,d,b(fa,-240,Cr(0))))}function Ur(){return kr(b(ha,d,b(fa,-300,Cr(0))))}function jr(){return kr(b(ha,d,b(fa,720,Lr($s))))}function Vr(){return kr(b(ha,S([O(b(fa,60,Cr(0)),E(Ko,1980,0,1,0,2))]),b(fa,60,Lr(Ia))))}function qr(){return kr(b(ha,d,b(fa,180,Cr(0))))}function Gr(){return kr(b(ha,S([O(b(fa,240,Cr(0)),E(Ko,1972,5,1,0,2))]),b(fa,180,Cr(0))))}function Wr(){return kr(b(ha,d,b(fa,420,Cr(0))))}function Kr(){return kr(b(ha,d,b(fa,240,Cr(0))))}function Hr(){return kr(b(ha,S([O(b(fa,120,Lr(wu)),E(Ko,1978,9,15,0,2)),O(b(fa,180,Lr(wu)),E(Ko,1985,3,20,0,2)),O(b(fa,120,Lr(wu)),E(Ko,2007,0,1,0,2)),O(b(fa,120,Lr(Ia)),E(Ko,2011,2,27,60,0)),O(b(fa,120,Cr(0)),E(Ko,2011,2,28,60,0)),O(b(fa,120,Lr(Ia)),E(Ko,2014,2,30,60,0)),O(b(fa,120,Cr(0)),E(Ko,2014,2,31,60,0)),O(b(fa,120,Lr(Ia)),E(Ko,2015,9,25,60,0)),O(b(fa,120,Cr(60)),E(Ko,2015,10,8,60,0)),O(b(fa,120,Lr(Ia)),E(Ko,2016,8,7,0,2))]),b(fa,180,Cr(0))))}function Qr(){return kr(b(ha,S([O(b(fa,120,Lr(yu)),E(Ko,1998,8,1,0,2))]),b(fa,120,Lr(lu))))}function Zr(){return kr(b(ha,S([O(b(fa,60,Cr(0)),E(Ko,1982,10,27,0,2))]),b(fa,60,Lr(Ia))))}function Xr(){return kr(b(ha,S([O(b(fa,60,Cr(0)),E(Ko,1979,0,1,0,2))]),b(fa,60,Lr(Ia))))}function Jr(){return kr(b(ha,S([O(b(fa,60,Cr(0)),E(Ko,1981,0,1,0,2))]),b(fa,60,Lr(Ia))))}function Yr(){return kr(b(ha,S([O(b(fa,60,Cr(0)),E(Ko,1971,9,31,120,0)),O(b(fa,0,Lr(ec)),E(Ko,1996,0,1,0,2))]),b(fa,0,Lr(Ia))))}function $r(){return kr(b(ha,S([O(b(fa,120,Lr(rc)),E(Ko,1983,0,1,0,2))]),b(fa,120,Lr(Ia))))}function ti(){return kr(b(ha,S([O(b(fa,60,Lr(uc)),E(Ko,1980,0,1,0,2))]),b(fa,60,Lr(Ia))))}function ei(){return kr(b(ha,S([O(b(fa,600,Lr(Mc)),E(Ko,2e3,11,23,0,2))]),b(fa,600,Cr(0))))}function ni(){return kr(b(ha,d,b(fa,-660,Cr(0))))}function ri(t){return{$:2,a:t}}function ii(t){return b(Uc,ri,An(t))}function oi(t){return{$:4,a:t}}function ai(t){return{$:5,a:t}}function si(t){return{$:1,a:t}}function ui(t){return function(e){return b(Qo,function(t){return t(e)},t)}}function ci(u){return function(t){var e=t.A,n=t.v,r=t.z,i=t.x,o=t.w;if(n.b){var a=n.a,s=n.b;return C(a,u)?S([E(Wc,b(xn,a,e),s,r,i,o)]):d}return d}}function li(t){if(-1!==t.$||-1!==t.d.$||-1!==t.e.$)return t;if(-1!==t.e.d.$||t.e.d.a){var e=t.d,n=(s=e.b,u=e.c,c=e.d,l=e.e,t.e);return f=n.b,p=n.c,r=n.d,v=n.e,E(Vo,1,i=t.b,o=t.c,E(Vo,0,s,u,c,l),E(Vo,0,f,p,r,v))}var r,i=t.b,o=t.c,a=t.d,s=a.b,u=a.c,c=a.d,l=a.e,h=t.e,f=h.b,p=h.c,d=(r=h.d).b,m=r.d,y=r.e,v=h.e;return E(Vo,0,d,r.c,E(Vo,1,i,o,E(Vo,0,s,u,c,l),m),E(Vo,1,f,p,y,v))}function hi(t){if(-1!==t.$||-1!==t.d.$||-1!==t.e.$)return t;if(-1!==t.d.d.$||t.d.d.a){var e=t.d,n=(s=e.b,u=e.c,e.d),r=(l=e.e,t.e);return f=r.b,p=r.c,d=r.d,m=r.e,E(Vo,1,i=t.b,o=t.c,E(Vo,0,s,u,n,l),E(Vo,0,f,p,d,m))}var i=t.b,o=t.c,a=t.d,s=a.b,u=a.c,c=a.d,l=a.e,h=t.e,f=h.b,p=h.c,d=h.d,m=h.e;return E(Vo,0,s,u,E(Vo,1,c.b,c.c,c.d,c.e),E(Vo,1,i,o,l,E(Vo,0,f,p,d,m)))}function fi(t){try{return $n(decodeURIComponent(t))}catch(t){return tr}}function pi(t){return b(Yc,jc,b(ul,Jc,t))}function di(t){return{$:4,a:t}}function mi(t){return{$:7,a:t}}function yi(t){return{$:5,a:t}}function vi(t){return{$:3,a:t}}function gi(t){return Bt(w(Dn,g(function(t,e){return w(Ft,t.a,t.b,e)}),{},t))}function _i(t){return gi(S([O("email",Cl(t.aZ)),O("password",Cl(t.bh))]))}function bi(t){return{$:3,b:t}}function wi(t){switch(t){case 0:return"journeys";case 1:return"journeyClips";case 2:return"images";case 3:return"myClips";default:return"clips"}}function xi(t){switch(t.$){case 0:var e=t.b;return w(fh,"==Ref",t.a,e);case 1:return w(fh,"==Id","",e=t.a);default:return w(fh,"all","","")}}function Ei(t){return b(On,xi,t)}function Ti(t){return w(ph,1,S([b(hh,"journeyRef","/journeys/"+t.a6)]),1)}function Si(t){switch(t.$){case 0:return{ct:"map/on",w:Dl};case 1:return{ct:"map/off",w:Dl};case 2:return{ct:"slider/on",w:Dl};case 3:return{ct:"slider/off",w:Dl};default:return{ct:t.a?"scroll-up/smooth":"scroll-up/jump",w:Dl}}}function Ii(t){switch(t.$){case 1:case 3:case 5:return yh(S([function(t){return Si({$:4,a:t})}(!1),vh,gh]));default:return yh(S([vh,gh]))}}function Ai(t){return{$:1,a:t}}function ki(t){return{D:wi(2),E:Ei(S([t])),H:"get",L:"images"}}function Ci(t){return{D:wi(0),E:Ei(S([t])),H:"get",L:"journeys"}}function Di(t){switch(t.$){case 0:return S([bh]);case 1:var e=t.a;return S([Ci(Ai(e)),ki(b(hh,"journeyRef","/journeys/"+e))]);case 2:var n=t.a;return S([Ci(Ai(n)),ki(b(hh,"journeyRef","/journeys/"+n))]);default:return d}}function Pi(t){return b(Yc,!1,b(wh,function(){return!0},t))}function Mi(t){return!t.b}function Li(t){var e=function(t){var e=t.X;switch(e.$){case 2:var n=e.b;return w(Ph,t,e.a,n);case 4:return b(Ah,t,n=e.a);default:return tr}}(t);return O(t,e.$?Mh:e.a)}function Oi(t){switch(t.$){case 0:return"/";case 1:return"/journeys/"+t.a;case 2:return"/journeys/"+t.a+"/images/"+t.b;case 3:return"/clips";case 4:return"/clips/images/"+t.a;case 5:return t.a?"/help/terms":"/help/privacy";case 7:return"/404.html";default:return"/__login"}}function Ri(t){return t}function Ni(t){return t.length}function Bi(t){return""===t}function zi(t){return b(Gh,"http://",t)?b(Yh,0,b(qh,7,t)):b(Gh,"https://",t)?b(Yh,1,b(qh,8,t)):tr}function Fi(t){return{$:0,a:t}}function Ui(t){return O(t,!0)}function ji(t){return b(vf,"input",b(Vl,Ui,b(Vl,t,gf)))}function Vi(t){return{$:1,a:t}}function qi(t){return b(xf,"click",gl(t))}function Gi(t){return b(bf,d,S([b(bf,d,S([wf("email: "),function(t){return b(lf,S([df("email"),ff("email"),pf("write your email"),mf(t.aZ),ji(Fi)]),d)}(t)])),b(bf,d,S([wf("password: "),function(t){return b(lf,S([df("password"),ff("password"),pf("write your password"),mf(t.bh),ji(Vi)]),d)}(t)])),b(bf,d,S([b(_f,S([qi((e=t,{$:2,a:e}))]),S([wf("sign up")]))])),b(bf,d,S([b(_f,S([qi(function(t){return{$:3,a:t}}(t))]),S([wf("sign in")]))])),b(bf,d,S([b(_f,S([qi(cf)]),S([wf("sign out")]))]))]));var e}function Wi(t){return b(hf,"src",be(t))}function Ki(t){return{$:6,a:t}}function Hi(t){return b(hf,"href",/^javascript:/i.test((e=t).replace(/\s/g,""))?"":e);var e}function Qi(t){return Hi(Oi(t))}function Zi(t){return Sf(b(fr," ",b(On,on,b(Zo,Tr,t))))}function Xi(t){return b(bf,S([Sf("body")]),S([Lf,t]))}function Ji(t){return{$:2,a:t}}function Yi(t){return b(Of,S([Sf("CountryFlagIcon"),Wi(function(t){return"/images/country_flags/svg/"+t+".svg"}(t)),Rf(t)]),d)}function $i(t){return"https://watarilog.com/api/resize/images/users/"+t.cE.aL+"/journeys/"+t.b$+"/"+t.bT}function to(t){return S([Zi(S([O("JourneyPhoto__image",!0),O("js-latlng-tracer-img",!0),O("lazyload",!0)])),b(Tf,"data-js-lat",Bf(t.bW.b1.au)),b(Tf,"data-js-lng",Bf(t.bW.b1.av)),b(Tf,"data-src",$i(t)),b(Tf,"data-srcset",function(t){return b(fr,",",S([b(Nf,0,t),b(Nf,1,t),b(Nf,2,t)]))}(t)),b(Tf,"data-sizes","auto"),Wi(t.b2),Rf(t.bW.cu)])}function eo(t){return b(bf,S([Sf("JourneyPhoto")]),S([b(Of,to(t),d)]))}function no(t){return b(zf,S([Sf("ClipListItem"),qi(Ji(oi(t.a6)))]),S([b(bf,S([Sf("ClipListItem__image")]),S([b(Ff,eo,t),b(zf,S([Sf("ClipListItem__flag")]),S([b(Ff,Yi,t.bW.bK)]))]))]))}function ro(t){return O(t.a7.a6,b(bf,S([Sf("ClipList__item")]),S([b(Ff,no,t.a7)])))}function io(t){return se(function(t){return"script"==t?"p":t}(t))}function oo(t){return w(io,"div",S([Sf("ClipList")]),b(On,ro,t))}function ao(t){return{$:5,a:t}}function so(t){return b(Ff,Xi,w(op,rp,jf,b(ip,ao,(e=t.I,b(Uf,S([Sf("ClipsPage")]),S([b(bf,S([Sf("ClipsPage__title")]),S([wf("Your Clips")])),b(bf,S([Sf("ClipsPage__clips")]),S([b(Ff,oo,e)]))]))))));var e}function uo(t){return b(bf,S([Sf("Link")]),S([b(kf,S([Sf("Link__viewLargerMap"),Hi(function(t){return"https://www.google.com/maps/search/?api=1&query="+Bf(t.au)+","+Bf(t.av)}(t)),Qf("noopener noreferrer"),Zf("_blank")]),S([b(Ff,wf,"View larger map "),b(Gf,S([Sf("fas fa-external-link-alt")]),d)]))]))}function co(t){return b(Of,S([Zi(S([O("StaticMap",!0),O("js-lazyload-map",!0),O("lazyload",!0)])),b(Tf,"data-js-src1x",t.aM),b(Tf,"data-js-src2x",t.aN),b(Tf,"data-js-src3x",t.aO),b(Tf,"data-expand","10"),Rf("")]),d)}function lo(t){return b(Ff,co,function(t){return{aM:b(ap,t,"https%3a%2f%2ffirebasestorage.googleapis.com%2fv0%2fb%2fwatarilog.appspot.com%2fo%2fstatic%252Fmap_pin.png%3falt%3dmedia%26token%3d0df65ca2-463b-4124-bb6b-969ca5d8eb3d"),aN:b(ap,t,"https%3a%2f%2ffirebasestorage.googleapis.com%2fv0%2fb%2fwatarilog.appspot.com%2fo%2fstatic%252Fmap_pin%25402x.png%3falt%3dmedia%26token%3d694ddb0a-2b39-40de-8090-4c92e09b2bbf"),aO:b(ap,t,"https%3a%2f%2ffirebasestorage.googleapis.com%2fv0%2fb%2fwatarilog.appspot.com%2fo%2fstatic%252Fmap_pin%25403x.png%3falt%3dmedia%26token%3d4f8cae09-acba-4073-8ed2-b2c9e04f0616")}}(t))}function ho(t){return b(bf,S([Sf("JourneyImageCardMap")]),S([b(bf,S([Sf("JourneyImageCardMap__mapbox")]),S([b(Ff,lo,t)])),b(bf,S([Sf("JourneyImageCardMap__link")]),S([b(Ff,uo,t)]))]))}function fo(t){return b(bf,S([Sf("Author")]),S([b(Of,S([Sf("Author__icon"),Wi(t.cl),Rf(t.bM)]),d),b(zf,S([Sf("Author__name")]),S([b(Ff,wf,t.bM)]))]))}function po(t){return w(op,pp,0,t)}function mo(t){return{$:36,a:t}}function yo(t){var e=b(vp,t,1440)+719468,n=(e<0?e-146096:e)/146097|0,r=e-146097*n,i=(r-(r/1460|0)+(r/36524|0)-(r/146096|0))/365|0,o=r-(365*i+(i/4|0)-(i/100|0)),a=(5*o+2)/153|0,s=a+(a<10?3:-9);return{aW:o-((153*a+2)/5|0)+1,bc:s,bC:i+400*n+(2>>0),_=0;function b(t,e,n){return t.call.apply(t.bind,arguments)}function w(e,n,t){if(!e)throw Error();if(2"}else o=void 0===t?"undefined":null===t?"null":typeof t;k("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}P.prototype.add=function(t,e){var n=M.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},O.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},O.prototype.reset=function(){this.next=this.b=this.a=null};var N=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if(l(t))return l(e)&&1==e.length?t.indexOf(e,0):-1;for(var n=0;n/g,ft=/"/g,pt=/'/g,dt=/\x00/g,mt=/[\x00&<>"']/;function yt(t,e){return!!~t.indexOf(e)}function vt(t,e){return t");var Mt,Lt,Ot=Pt("");function Rt(t,e){for(var n=t.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1")&&(t=t.replace(ht,">")),~t.indexOf('"')&&(t=t.replace(ft,""")),~t.indexOf("'")&&(t=t.replace(pt,"'")),~t.indexOf("\0")&&(t=t.replace(dt,"�"))),t}function Bt(t){h.setTimeout(function(){throw t},0)}function zt(t,e){Lt||function(){if(h.Promise&&h.Promise.resolve){var t=h.Promise.resolve(void 0);Lt=function(){t.then(jt)}}else Lt=function(){var t=jt;!y(h.setImmediate)||h.Window&&h.Window.prototype&&!At("Edge")&&h.Window.prototype.setImmediate==h.setImmediate?(Mt=Mt||function(){var t=h.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!At("Presto")&&(t=function(){var t=document.createElement("IFRAME");t.style.display="none",function(t){var e=st(J(tt));R(t,"HTMLIFrameElement"),t.src=""+nt(e)}(t),document.documentElement.appendChild(t);var e=t.contentWindow;(t=e.document).open(),t.write(Ct(Ot)),t.close();var n="callImmediate"+Math.random(),r="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=x(function(t){"*"!=r&&t.origin!=r||t.data!=n||this.port1.onmessage()},this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,r)}}}),void 0===t||At("Trident")||At("MSIE"))return"undefined"!=typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(t){var e=document.createElement("SCRIPT");e.onreadystatechange=function(){e.onreadystatechange=null,e.parentNode.removeChild(e),e=null,t(),t=null},document.documentElement.appendChild(e)}:function(t){h.setTimeout(t,0)};var e=new t,n={},r=n;return e.port1.onmessage=function(){if(void 0!==n.next){var t=(n=n.next).yb;n.yb=null,t()}},function(t){r.next={yb:t},r=r.next,e.port2.postMessage(0)}}())(t):h.setImmediate(t)}}(),Ft||(Lt(),Ft=!0),Ut.add(t,e)}Pt("
");var Ft=!1,Ut=new P;function jt(){for(var t;t=L();){try{t.a.call(t.b)}catch(t){Bt(t)}D(M,t)}Ft=!1}function Vt(t,e){if(this.a=qt,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=s)try{var n=this;t.call(e,function(t){ee(n,Gt,t)},function(t){if(!(t instanceof ue))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(t){}ee(n,Wt,t)})}catch(t){ee(this,Wt,t)}}var qt=0,Gt=2,Wt=3;function Kt(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}Kt.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Ht=new C(function(){return new Kt},function(t){t.reset()});function Qt(t,e,n){var r=Ht.get();return r.g=t,r.b=e,r.f=n,r}function Zt(t){if(t instanceof Vt)return t;var e=new Vt(s);return ee(e,Gt,t),e}function Xt(n){return new Vt(function(t,e){e(n)})}function Jt(t,e,n){ne(t,e,n,null)||zt(E(e,t))}function Yt(n){return new Vt(function(r){var i=n.length,o=[];if(i)for(var t=function(t,e,n){i--,o[t]=e?{Gb:!0,value:n}:{Gb:!1,reason:n},0==i&&r(o)},e=0;e>>0);function nn(e){return y(e)?e:(e[en]||(e[en]=function(t){return e.handleEvent(t)}),e[en])}function rn(){ce.call(this),this.u=new Ue(this),(this.Sb=this).Wa=null}function on(t,e,n,r,i){t.u.add(e+"",n,!1,r,i)}function an(t,e,n,r,i){t.u.add(e+"",n,!0,r,i)}function sn(t,e,n,r){if(!(e=t.u.a[e+""]))return!0;e=e.concat();for(var i=!0,o=0;o>4&15).toString(16)+(15&t).toString(16)}yn.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Sn(e,An,!0),":");var n=this.b;return!n&&"file"!=e||(t.push("//"),(e=this.i)&&t.push(Sn(e,An,!0),"@"),t.push(encodeURIComponent(n+"").replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.l)&&t.push(":",n+"")),(n=this.c)&&(this.b&&"/"!=n[0]&&t.push("/"),t.push(Sn(n,"/"==n[0]?Cn:kn,!0))),(n=""+this.a)&&t.push("?",n),(n=this.g)&&t.push("#",Sn(n,Pn)),t.join("")},yn.prototype.resolve=function(t){var e=new yn(this),n=!!t.f;n?vn(e,t.f):n=!!t.i,n?e.i=t.i:n=!!t.b,n?e.b=t.b:n=null!=t.l;var r=t.c;if(n)gn(e,t.l);else if(n=!!t.c){if("/"!=r[0])if(this.b&&!this.c)r="/"+r;else{var i=e.c.lastIndexOf("/");-1!=i&&(r=e.c.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(yt(i,"./")||yt(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;ar)o=t[n];else{var o=t[n].substring(0,r);i=t[n].substring(1+r)}e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(n.c,function(t,e){n.add(decodeURIComponent(t.replace(/\+/g," ")),e)}))}function On(t){var e=hn(t);if(void 0===e)throw Error("Keys are undefined");var n=new Mn(null,void 0);t=ln(t);for(var r=0;r'),a.document.write(Ct(t)),a.document.close())):(a=r.open(""+_t(e),n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(t){}return a}var nr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,rr=/^[^@]+@[^@]+$/;function ir(){var e=null;return new Vt(function(t){"complete"==h.document.readyState?t():(e=function(){t()},He(window,"load",e))}).s(function(t){throw Qe(window,"load",e),t})}function or(t){return t=t||mr(),!("file:"!==br()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function ar(){var t=h.window;try{return!(!t||t==t.top)}catch(t){return!1}}function sr(){return void 0!==h.WorkerGlobalScope&&"function"==typeof h.importScripts}function ur(){return ah.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":ah.a.INTERNAL.hasOwnProperty("node")?"Node":sr()?"Worker":"Browser"}function cr(){var t=ur();return"ReactNative"===t||"Node"===t}var lr="Firefox",hr="Chrome";function fr(t){var e=t.toLowerCase();return yt(e,"opera/")||yt(e,"opr/")||yt(e,"opios/")?"Opera":yt(e,"iemobile")?"IEMobile":yt(e,"msie")||yt(e,"trident/")?"IE":yt(e,"edge/")?"Edge":yt(e,"firefox/")?lr:yt(e,"silk/")?"Silk":yt(e,"blackberry")?"Blackberry":yt(e,"webos")?"Webos":!yt(e,"safari/")||yt(e,"chrome/")||yt(e,"crios/")||yt(e,"android")?!yt(e,"chrome/")&&!yt(e,"crios/")||yt(e,"edge/")?yt(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":hr:"Safari"}var pr={Vc:"FirebaseCore-web",Xc:"FirebaseUI-web"};function dr(t,e){e=e||[];var n,r=[],i={};for(n in pr)i[pr[n]]=!0;for(n=0;n>4),64!=a&&(t(o<<4&240|a>>2),64!=s&&t(a<<6&192|s))}}(t,function(t){e+=String.fromCharCode(t)}),e}(t))}catch(t){}return null}wi.prototype.R=function(){return this.c},wi.prototype.g=function(){return this.b};var Ti,Si={ad:{bb:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",ib:"https://securetoken.googleapis.com/v1/token",id:"p"},cd:{bb:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",ib:"https://staging-securetoken.sandbox.googleapis.com/v1/token",id:"s"},dd:{bb:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",ib:"https://test-securetoken.sandbox.googleapis.com/v1/token",id:"t"}};function Ii(t){for(var e in Si)if(Si[e].id===t)return{firebaseEndpoint:(t=Si[e]).bb,secureTokenEndpoint:t.ib};return null}Ti=Ii("__EID__")?"__EID__":void 0;var Ai="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),ki=["client_id","response_type","scope","redirect_uri","state"],Ci={Wc:{Oa:"locale",Da:500,Ca:600,Pa:"facebook.com",hb:ki},Yc:{Oa:null,Da:500,Ca:620,Pa:"github.com",hb:ki},Zc:{Oa:"hl",Da:515,Ca:680,Pa:"google.com",hb:ki},ed:{Oa:"lang",Da:485,Ca:705,Pa:"twitter.com",hb:Ai}};function Di(t){for(var e in Ci)if(Ci[e].Pa==t)return Ci[e];return null}function Pi(t){var e={};e["facebook.com"]=Ni,e["google.com"]=zi,e["github.com"]=Bi,e["twitter.com"]=Fi;var n=t&&t[Li];try{if(n)return e[n]?new e[n](t):new Ri(t);if(void 0!==t[Mi])return new Oi(t)}catch(t){}return null}var Mi="idToken",Li="providerId";function Oi(t){var e=t[Li];if(!e&&t[Mi]){var n=xi(t[Mi]);n&&n.a&&(e=n.a)}if(!e)throw Error("Invalid additional user info!");"anonymous"!=e&&"custom"!=e||(e=null),n=!1,void 0!==t.isNewUser?n=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),Nr(this,"providerId",e),Nr(this,"isNewUser",n)}function Ri(t){Oi.call(this,t),Nr(this,"profile",Fr((t=Tr(t.rawUserInfo||"{}"))||{}))}function Ni(t){if(Ri.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Bi(t){if(Ri.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Nr(this,"username",this.profile&&this.profile.login||null)}function zi(t){if(Ri.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function Fi(t){if(Ri.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Nr(this,"username",t.screenName||null)}function Ui(t){var e=xn(t),n=wn(e,"link"),r=wn(xn(n),"link");return wn(xn(e=wn(e,"deep_link_id")),"link")||e||r||n||t}function ji(){}function Vi(t,n){return t.then(function(t){if(t[Ca]){var e=xi(t[Ca]);if(!e||n!=e.f)throw new Zr("user-mismatch");return t}throw new Zr("user-mismatch")}).s(function(t){throw t&&t.code&&t.code==Jr+"user-not-found"?new Zr("user-mismatch"):t})}function qi(t,e){if(!e)throw new Zr("internal-error","failed to construct a credential");this.a=e,Nr(this,"providerId",t),Nr(this,"signInMethod",t)}function Gi(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function Wi(t){if(t&&t.providerId&&t.signInMethod&&!t.providerId.indexOf("saml.")&&t.pendingToken)try{return new qi(t.providerId,t.pendingToken)}catch(t){}return null}function Ki(t,e,n){if(this.a=null,e.idToken||e.accessToken)e.idToken&&Nr(this,"idToken",e.idToken),e.accessToken&&Nr(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&Nr(this,"nonce",e.nonce),e.pendingToken&&(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new Zr("internal-error","failed to construct a credential");Nr(this,"accessToken",e.oauthToken),Nr(this,"secret",e.oauthTokenSecret)}Nr(this,"providerId",t),Nr(this,"signInMethod",n)}function Hi(t){var e={};return t.idToken&&(e.id_token=t.idToken),t.accessToken&&(e.access_token=t.accessToken),t.secret&&(e.oauth_token_secret=t.secret),e.providerId=t.providerId,t.nonce&&!t.a&&(e.nonce=t.nonce),e={postBody:""+On(e),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function Qi(t){if(t&&t.providerId&&t.signInMethod){var e={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new Ki(t.providerId,e,t.signInMethod)}catch(t){}}return null}function Zi(t,e){this.Fc=e||[],Br(this,{providerId:t,isOAuthProvider:!0}),this.zb={},this.cb=(Di(t)||{}).Oa||null,this.ab=null}function Xi(t){if("string"!=typeof t||t.indexOf("saml."))throw new Zr("argument-error",'SAML provider IDs must be prefixed with "saml."');Zi.call(this,t,[])}function Ji(t){Zi.call(this,t,ki),this.a=[]}function Yi(){Ji.call(this,"facebook.com")}function $i(t){if(!t)throw new Zr("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return v(t)&&(e=t.accessToken),(new Yi).credential({accessToken:e})}function to(){Ji.call(this,"github.com")}function eo(t){if(!t)throw new Zr("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return v(t)&&(e=t.accessToken),(new to).credential({accessToken:e})}function no(){Ji.call(this,"google.com"),this.wa("profile")}function ro(t,e){var n=t;return v(t)&&(n=t.idToken,e=t.accessToken),(new no).credential({idToken:n,accessToken:e})}function io(){Zi.call(this,"twitter.com",Ai)}function oo(t,e){var n=t;if(v(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new Zr("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new Ki("twitter.com",n,"twitter.com")}function ao(t,e,n){this.a=t,this.c=e,Nr(this,"providerId","password"),Nr(this,"signInMethod",n===uo.EMAIL_LINK_SIGN_IN_METHOD?uo.EMAIL_LINK_SIGN_IN_METHOD:uo.EMAIL_PASSWORD_SIGN_IN_METHOD)}function so(t){return t&&t.email&&t.password?new ao(t.email,t.password,t.signInMethod):null}function uo(){Br(this,{providerId:"password",isOAuthProvider:!1})}function co(t,e){if(!(e=lo(e)))throw new Zr("argument-error","Invalid email link!");return new ao(t,e.code,uo.EMAIL_LINK_SIGN_IN_METHOD)}function lo(t){return(t=si(t=Ui(t)))&&t.operation===jr?t:null}function ho(t){if(!(t.Ua&&t.Ta||t.Fa&&t.ba))throw new Zr("internal-error");this.a=t,Nr(this,"providerId","phone"),Nr(this,"signInMethod","phone")}function fo(e){if(e&&"phone"===e.providerId&&(e.verificationId&&e.verificationCode||e.temporaryProof&&e.phoneNumber)){var n={};return B(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(t){e[t]&&(n[t]=e[t])}),new ho(n)}return null}function po(t){return t.a.Fa&&t.a.ba?{temporaryProof:t.a.Fa,phoneNumber:t.a.ba}:{sessionInfo:t.a.Ua,code:t.a.Ta}}function mo(t){try{this.a=t||ah.a.auth()}catch(t){throw new Zr("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Br(this,{providerId:"phone",isOAuthProvider:!1})}function yo(t,e){if(!t)throw new Zr("missing-verification-id");if(!e)throw new Zr("missing-verification-code");return new ho({Ua:t,Ta:e})}function vo(t){if(t.temporaryProof&&t.phoneNumber)return new ho({Fa:t.temporaryProof,ba:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var n=t&&t.oauthAccessToken,r=t&&t.oauthTokenSecret,i=t&&t.nonce,o=t&&t.oauthIdToken,a=t&&t.pendingToken;try{switch(e){case"google.com":return ro(o,n);case"facebook.com":return $i(n);case"github.com":return eo(n);case"twitter.com":return oo(n,r);default:return n||r||o||a?a?e.indexOf("saml.")?new Ki(e,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new qi(e,a):new Ji(e).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(t){return null}}function go(t){if(!t.isOAuthProvider)throw new Zr("invalid-oauth-provider")}function _o(t,e,n,r,i,o,a){if(this.c=t,this.b=e||null,this.g=n||null,this.f=r||null,this.i=o||null,this.h=a||null,this.a=i||null,!this.g&&!this.a)throw new Zr("invalid-auth-event");if(this.g&&this.a)throw new Zr("invalid-auth-event");if(this.g&&!this.f)throw new Zr("invalid-auth-event")}function bo(t){return(t=t||{}).type?new _o(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&Xr(t.error),t.postBody,t.tenantId):null}function wo(){this.b=null,this.a=[]}e(Ri,Oi),e(Ni,Ri),e(Bi,Ri),e(zi,Ri),e(Fi,Ri),qi.prototype.na=function(t){return Ha(t,Gi(this))},qi.prototype.b=function(t,e){var n=Gi(this);return n.idToken=e,Qa(t,n)},qi.prototype.f=function(t,e){return Vi(Za(t,Gi(this)),e)},qi.prototype.A=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},Ki.prototype.na=function(t){return Ha(t,Hi(this))},Ki.prototype.b=function(t,e){var n=Hi(this);return n.idToken=e,Qa(t,n)},Ki.prototype.f=function(t,e){return Vi(Za(t,Hi(this)),e)},Ki.prototype.A=function(){var t={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},Zi.prototype.Ea=function(t){return this.zb=H(t),this},e(Xi,Zi),e(Ji,Zi),Ji.prototype.wa=function(t){return U(this.a,t)||this.a.push(t),this},Ji.prototype.Hb=function(){return G(this.a)},Ji.prototype.credential=function(t,e){var n;if(!(n=v(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null}).idToken&&!n.accessToken)throw new Zr("argument-error","credential failed: must provide the ID token and/or the access token.");return new Ki(this.providerId,n,this.providerId)},e(Yi,Ji),Nr(Yi,"PROVIDER_ID","facebook.com"),Nr(Yi,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),e(to,Ji),Nr(to,"PROVIDER_ID","github.com"),Nr(to,"GITHUB_SIGN_IN_METHOD","github.com"),e(no,Ji),Nr(no,"PROVIDER_ID","google.com"),Nr(no,"GOOGLE_SIGN_IN_METHOD","google.com"),e(io,Zi),Nr(io,"PROVIDER_ID","twitter.com"),Nr(io,"TWITTER_SIGN_IN_METHOD","twitter.com"),ao.prototype.na=function(t){return this.signInMethod==uo.EMAIL_LINK_SIGN_IN_METHOD?Ts(t,rs,{email:this.a,oobCode:this.c}):Ts(t,bs,{email:this.a,password:this.c})},ao.prototype.b=function(t,e){return this.signInMethod==uo.EMAIL_LINK_SIGN_IN_METHOD?Ts(t,is,{idToken:e,email:this.a,oobCode:this.c}):Ts(t,ds,{idToken:e,email:this.a,password:this.c})},ao.prototype.f=function(t,e){return Vi(this.na(t),e)},ao.prototype.A=function(){return{email:this.a,password:this.c,signInMethod:this.signInMethod}},Br(uo,{PROVIDER_ID:"password"}),Br(uo,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Br(uo,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),ho.prototype.na=function(t){return t.Va(po(this))},ho.prototype.b=function(t,e){var n=po(this);return n.idToken=e,Ts(t,xs,n)},ho.prototype.f=function(t,e){var n=po(this);return n.operation="REAUTH",Vi(t=Ts(t,Es,n),e)},ho.prototype.A=function(){var t={providerId:"phone"};return this.a.Ua&&(t.verificationId=this.a.Ua),this.a.Ta&&(t.verificationCode=this.a.Ta),this.a.Fa&&(t.temporaryProof=this.a.Fa),this.a.ba&&(t.phoneNumber=this.a.ba),t},mo.prototype.Va=function(e,n){var r=this.a.b;return Zt(n.verify()).then(function(t){if(!l(t))throw new Zr("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(n.type){case"recaptcha":return function(t,e){return Ts(r,fs,e)}(0,{phoneNumber:e,recaptchaToken:t}).then(function(t){return"function"==typeof n.reset&&n.reset(),t},function(t){throw"function"==typeof n.reset&&n.reset(),t});default:throw new Zr("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}})},Br(mo,{PROVIDER_ID:"phone"}),Br(mo,{PHONE_SIGN_IN_METHOD:"phone"}),_o.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},_o.prototype.R=function(){return this.h},_o.prototype.A=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.A()}};var xo,Eo=null;function To(t){var e="unauthorized-domain",n=void 0,r=xn(t);t=r.b,"chrome-extension"==(r=r.f)?n=Rt("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):"http"==r||"https"==r?n=Rt("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",Zr.call(this,e,n)}function So(t,e,n){Zr.call(this,t,n),(t=e||{}).Ab&&Nr(this,"email",t.Ab),t.ba&&Nr(this,"phoneNumber",t.ba),t.credential&&Nr(this,"credential",t.credential),t.Qb&&Nr(this,"tenantId",t.Qb)}function Io(t){if(t.code){var e=t.code||"";e.indexOf(Jr)||(e=e.substring(Jr.length));var n={credential:vo(t),Qb:t.tenantId};if(t.email)n.Ab=t.email;else if(t.phoneNumber)n.ba=t.phoneNumber;else if(!n.credential)return new Zr(e,t.message||void 0);return new So(e,n,t.message)}return null}function Ao(){}function ko(t){return t.c||(t.c=t.b())}function Co(){}function Do(t){if(t.f||"undefined"!=typeof XMLHttpRequest||"undefined"==typeof ActiveXObject)return t.f;for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n=function t(e){return e.c?e.c:e.a?t(e.a):(k("Root logger has no level set."),null)}(this).value)for(y(e)&&(e=e()),t=new Oo(t,e+"",this.f),n&&(t.a=n),n=this;n;)n=n.a};var jo={},Vo=null;function qo(t){var e;if(Vo||(Vo=new Ro(""),(jo[""]=Vo).c=Fo),!(e=jo[t])){e=new Ro(t);var n=t.lastIndexOf("."),r=t.substr(n+1);(n=qo(t.substr(0,n))).b||(n.b={}),(n.b[r]=e).a=n,jo[t]=e}return e}function Go(t,e){t&&t.log(Uo,e,void 0)}function Wo(t){this.f=t}function Ko(t){rn.call(this),this.o=t,this.readyState=Ho,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=qo("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}e(Wo,Ao),Wo.prototype.a=function(){return new Ko(this.f)},Wo.prototype.b=function(t){return function(){return t}}({}),e(Ko,rn);var Ho=0;function Qo(t){t.c.read().then(t.ec.bind(t)).catch(t.Ma.bind(t))}function Zo(t,e){e&&t.f&&(t.status=t.f.status,t.statusText=t.f.statusText),t.readyState=4,t.f=null,t.c=null,t.l=null,Xo(t)}function Xo(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function Jo(t){rn.call(this),this.headers=new fn,this.B=t||null,this.c=!1,this.w=this.a=null,this.h=this.O=this.l="",this.f=this.J=this.i=this.I=!1,this.g=0,this.o=null,this.m=Yo,this.v=this.P=!1}(t=Ko.prototype).open=function(t,e){if(this.readyState!=Ho)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=e,this.readyState=1,Xo(this)},t.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.i,method:this.m,credentials:void 0,cache:void 0};t&&(e.body=t),this.o.fetch(new Request(this.g,e)).then(this.jc.bind(this),this.Ma.bind(this))},t.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,Zo(this,!1)),this.readyState=Ho},t.jc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,Xo(this)),this.a&&(this.readyState=3,Xo(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.hc.bind(this),this.Ma.bind(this)):void 0!==h.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,Qo(this)):t.text().then(this.ic.bind(this),this.Ma.bind(this)))))},t.ec=function(t){if(this.a){var e=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?Zo(this,!0):Xo(this),3==this.readyState&&Qo(this)}},t.ic=function(t){this.a&&(this.response=this.responseText=t,Zo(this,!0))},t.hc=function(t){this.a&&(this.response=t,Zo(this,!0))},t.Ma=function(t){var e=this.h;e&&e.log(zo,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&Zo(this,!0)},t.setRequestHeader=function(t,e){this.i.append(t,e)},t.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.h)&&t.log(zo,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var t=this.h;return t&&t.log(zo,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},e(Jo,rn);var Yo="";Jo.prototype.b=qo("goog.net.XhrIo");var $o=/^https?$/i,ta=["POST","PUT"];function ea(t){return"content-type"==t.toLowerCase()}function na(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,ra(t),oa(t)}function ra(t){t.I||(t.I=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function ia(t){if(t.c&&void 0!==u)if(t.w[1]&&4==sa(t)&&2==ua(t))Go(t.b,ca(t,"Local request error detected and ignored"));else if(t.i&&4==sa(t))un(t.Lb,0,t);else if(t.dispatchEvent("readystatechange"),4==sa(t)){Go(t.b,ca(t,"Request complete")),t.c=!1;try{var e,n=ua(t);t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=(t.l+"").match(mn)[1]||null;if(!o&&h.self&&h.self.location){var a=h.self.location.protocol;o=a.substr(0,a.length-1)}i=!$o.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var s=2>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,a=(0|n[e-7])+(((r=0|n[e-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[e]=o+a|0}r=0|t.a[0],i=0|t.a[1];var s=0|t.a[2],u=0|t.a[3],c=0|t.a[4],l=0|t.a[5],h=0|t.a[6];for(o=0|t.a[7],e=0;e<64;e++){var f=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;a=(o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((a=(a=c&l^~c&h)+(0|Iu[e])|0)+(0|n[e])|0)|0,o=h,h=l,l=c,c=u+a|0,u=s,s=i,i=r,r=a+f|0}t.a[0]=t.a[0]+r|0,t.a[1]=t.a[1]+i|0,t.a[2]=t.a[2]+s|0,t.a[3]=t.a[3]+u|0,t.a[4]=t.a[4]+c|0,t.a[5]=t.a[5]+l|0,t.a[6]=t.a[6]+h|0,t.a[7]=t.a[7]+o|0}function Nu(t,e,n){void 0===n&&(n=e.length);var r=0,i=t.c;if(l(e))for(;r>i&255;return function(t){return z(t,function(t){return 1<(t=t.toString(16)).length?t:"0"+t}).join("")}(t)}(o),c.sessionId=o;var l=Fs(n.u,n.i,n.l,t,e,null,r,n.m,c,n.o,i);return n.ia().then(function(){var t=n.h;return n.v.a.set(Au,a.A(),t)}).then(function(){var t=yr("cordova.plugins.browsertab.isAvailable",h);if("function"!=typeof t)throw new Zr("invalid-cordova-configuration");var e=null;t(function(t){if(t){if("function"!=typeof(e=yr("cordova.plugins.browsertab.openUrl",h)))throw new Zr("invalid-cordova-configuration");e(l)}else{if("function"!=typeof(e=yr("cordova.InAppBrowser.open",h)))throw new Zr("invalid-cordova-configuration");t=mr(),n.a=e(l,t.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||t.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}})})}(i,t,e,n,r)}).then(function(){return new Vt(function(e,t){s=function(){var t=yr("cordova.plugins.browsertab.close",h);return e(),"function"==typeof t&&t(),i.a&&"function"==typeof i.a.close&&(i.a.close(),i.a=null),!1},i.ya(s),c=function(){Cr()&&u()},o.addEventListener("resume",u=function(){a=a||cn(2e3).then(function(){t(new Zr("redirect-cancelled-by-user"))})},!1),mr().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",c,!1)}).s(function(t){return Gu(i).then(function(){throw t})})}).ka(function(){u&&o.removeEventListener("resume",u,!1),c&&o.removeEventListener("visibilitychange",c,!1),a&&a.cancel(),s&&i.La(s),i.c=null})},t.ya=function(e){this.b.push(e),qu(this).s(function(t){"auth/invalid-cordova-configuration"===t.code&&(t=new _o("unknown",null,null,null,new Zr("no-auth-event")),e(t))})},t.La=function(e){V(this.b,function(t){return t==e})};var Ku={name:"pendingRedirect",C:"session"};function Hu(t){return Eu(t.b,Ku,t.a)}function Qu(t,e,n){this.i={},this.v=0,this.B=t,this.u=e,this.m=n,this.h=[],this.f=!1,this.l=x(this.o,this),this.b=new uc,this.w=new pc,this.g=new Wu(this.u+":"+this.m),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.w,this.c.linkViaPopup=this.w,this.c.reauthViaPopup=this.w,this.a=Zu(this.B,this.u,this.m,Ti)}function Zu(t,e,n,r){var i=ah.a.SDK_VERSION||null;return or()?new Uu(t,e,n,i,r):new Rs(t,e,n,i,r)}function Xu(e){e.f||(e.f=!0,e.a.ya(e.l));var n=e.a;return e.a.ia().s(function(t){throw e.a==n&&e.reset(),t})}function Ju(n){n.a.Ob()&&Xu(n).s(function(t){var e=new _o("unknown",null,null,null,new Zr("operation-not-supported-in-this-environment"));rc(t)&&n.o(e)}),n.a.Jb()||cc(n.b)}function Yu(n,t){U(n.h,t)||n.h.push(t),n.f||function(t){return t.b.get(Ku,t.a).then(function(t){return"pending"==t})}(n.g).then(function(t){t?Hu(n.g).then(function(){Xu(n).s(function(t){var e=new _o("unknown",null,null,null,new Zr("operation-not-supported-in-this-environment"));rc(t)&&n.o(e)})}):Ju(n)}).s(function(){Ju(n)})}function $u(t,e){V(t.h,function(t){return t==e})}Qu.prototype.reset=function(){this.f=!1,this.a.La(this.l),this.a=Zu(this.B,this.u,this.m),this.i={}},Qu.prototype.o=function(t){if(!t)throw new Zr("invalid-auth-event");if(6e5>T()-this.v||(this.i={},this.v=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var e=!1,n=0;nthis.c-3e4?this.a?function(e,t){return function(t,r){return new Vt(function(e,n){"refresh_token"==r.grant_type&&r.refresh_token||"authorization_code"==r.grant_type&&r.code?Na(t,t.l+"?key="+encodeURIComponent(t.c),function(t){t?t.error?n(Is(t)):t.access_token&&t.refresh_token?e(t):n(new Zr("internal-error")):n(new Zr("network-request-failed"))},"POST",""+On(r),t.g,t.u.get()):n(new Zr("internal-error"))})}(e.f,t).then(function(t){return e.b=t.access_token,e.c=wc(t.expires_in),e.a=t.refresh_token,{accessToken:e.b,expirationTime:e.c,refreshToken:e.a}}).s(function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t})}(this,{grant_type:"refresh_token",refresh_token:this.a}):Zt(null):Zt({accessToken:this.b,expirationTime:this.c,refreshToken:this.a})},xc.prototype.A=function(){return{lastLoginAt:this.b,createdAt:this.a}},e(Tc,Le),e(Sc,rn),Sc.prototype.sa=function(t){this.ga=t,Oa(this.a,t)},Sc.prototype.ha=function(){return this.ga},Sc.prototype.Aa=function(){return G(this.P)},Sc.prototype.Ha=function(){this.w.b&&(this.w.stop(),this.w.start())},Nr(Sc.prototype,"providerId","firebase"),(t=Sc.prototype).reload=function(){var t=this;return Jc(this,Bc(this).then(function(){return qc(t).then(function(){return Lc(t)}).then(Nc)}))},t.dc=function(t){return this.G(t).then(function(t){return new vc(t)})},t.G=function(t){var e=this;return Jc(this,Bc(this).then(function(){return e.b.getToken(t)}).then(function(t){if(!t)throw new Zr("internal-error");return t.accessToken!=e.ma&&(Mc(e,t.accessToken),e.dispatchEvent(new Tc("tokenChanged"))),jc(e,"refreshToken",t.refreshToken),t.accessToken}))},t.zc=function(t){if(!(t=t.users)||!t.length)throw new Zr("internal-error");Rc(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=function(t){return(t=t.providerUserInfo)&&t.length?z(t,function(t){return new Ec(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)}):[]}(t),n=0;n"),o=o.join("")}return o=i.createElement(o),a&&(l(a)?o.className=a:d(a)?o.className=a.join(" "):Vn(o,a)),2",t),this.store.put(t)))},t.prototype.add=function(t){return y(Xt,"ADD",this.store.name,t,t),ee(this.store.add(t))},t.prototype.get=function(e){var n=this;return ee(this.store.get(e)).next(function(t){return void 0===t&&(t=null),y(Xt,"GET",n.store.name,e,t),t})},t.prototype.delete=function(t){return y(Xt,"DELETE",this.store.name,t),ee(this.store.delete(t))},t.prototype.count=function(){return y(Xt,"COUNT",this.store.name),ee(this.store.count())},t.prototype.loadAll=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.iterateCursor(n,function(t,e){r.push(e)}).next(function(){return r})},t.prototype.deleteAll=function(t,e){y(Xt,"DELETE ALL",this.store.name);var n=this.options(t,e);n.keysOnly=!1;var r=this.cursor(n);return this.iterateCursor(r,function(t,e,n){return n.delete()})},t.prototype.iterate=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.iterateCursor(r,e)},t.prototype.iterateSerial=function(i){var t=this.cursor({});return new Ut(function(n,r){t.onerror=function(t){var e=re(t.target.error);r(e)},t.onsuccess=function(t){var e=t.target.result;e?i(e.primaryKey,e.value).next(function(t){t?e.continue():n()}):n()}})},t.prototype.iterateCursor=function(t,a){var s=[];return new Ut(function(o,e){t.onerror=function(t){e(t.target.error)},t.onsuccess=function(t){var e=t.target.result;if(e){var n=new Yt(e),r=a(e.primaryKey,e.value,n);if(r instanceof Ut){var i=r.catch(function(t){return n.done(),Ut.reject(t)});s.push(i)}n.isDone?o():null===n.skipToKey?e.continue():e.continue(n.skipToKey)}else o()}}).next(function(){return Ut.waitFor(s)})},t.prototype.options=function(t,e){var n=void 0;return void 0!==t&&("string"==typeof t?n=t:(_(void 0===e,"3rd argument must not be defined if 2nd is a range."),e=t)),{index:n,range:e}},t.prototype.cursor=function(t){var e="next";if(t.reverse&&(e="prev"),t.index){var n=this.store.index(t.index);return t.keysOnly?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function ee(t){return new Ut(function(e,n){t.onsuccess=function(t){e(t.target.result)},t.onerror=function(t){var e=re(t.target.error);n(e)}})}var ne=!1;function re(t){var e=Jt.getIOSVersion(h.getUA());if(12.2<=e&&e<13){var n="An internal error was encountered in the Indexed Database server";if(~t.message.indexOf(n)){var r=new w("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return ne||(ne=!0,setTimeout(function(){throw r},0)),r}}return t}var ie=function(){function t(t,e){this.referenceDelegate=t,this.serializer=e,this.targetIdGenerator=Zt.forQueryCache()}return t.prototype.allocateTargetId=function(e){var n=this;return this.retrieveMetadata(e).next(function(t){return t.highestTargetId=n.targetIdGenerator.after(t.highestTargetId),n.saveMetadata(e,t).next(function(){return t.highestTargetId})})},t.prototype.getLastRemoteSnapshotVersion=function(t){return this.retrieveMetadata(t).next(function(t){return bt.fromTimestamp(new _t(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))})},t.prototype.getHighestSequenceNumber=function(t){return se(t.simpleDbTransaction)},t.prototype.setTargetsMetadata=function(e,n,r){var i=this;return this.retrieveMetadata(e).next(function(t){return t.highestListenSequenceNumber=n,r&&(t.lastRemoteSnapshotVersion=r.toTimestamp()),t.highestListenSequenceNumber"},e}(xe),Me=function(n){function e(t){var e=n.call(this)||this;return e.internalValue=t,e.typeOrder=pe.BlobValue,e}return p.__extends(e,n),e.prototype.value=function(){return this.internalValue},e.prototype.isEqual=function(t){return t instanceof e&&this.internalValue.isEqual(t.internalValue)},e.prototype.compareTo=function(t){return t instanceof e?this.internalValue._compareTo(t.internalValue):this.defaultCompareTo(t)},e}(xe),Le=function(r){function n(t,e){var n=r.call(this)||this;return n.databaseId=t,n.key=e,n.typeOrder=pe.RefValue,n}return p.__extends(n,r),n.prototype.value=function(){return this.key},n.prototype.isEqual=function(t){return t instanceof n&&this.key.isEqual(t.key)&&this.databaseId.isEqual(t.databaseId)},n.prototype.compareTo=function(t){if(t instanceof n){var e=this.databaseId.compareTo(t.databaseId);return 0!==e?e:ut.comparator(this.key,t.key)}return this.defaultCompareTo(t)},n}(xe),Oe=function(n){function e(t){var e=n.call(this)||this;return e.internalValue=t,e.typeOrder=pe.GeoPointValue,e}return p.__extends(e,n),e.prototype.value=function(){return this.internalValue},e.prototype.isEqual=function(t){return t instanceof e&&this.internalValue.isEqual(t.internalValue)},e.prototype.compareTo=function(t){return t instanceof e?this.internalValue._compareTo(t.internalValue):this.defaultCompareTo(t)},e}(xe),Re=function(n){function a(t){var e=n.call(this)||this;return e.internalValue=t,e.typeOrder=pe.ObjectValue,e}return p.__extends(a,n),a.prototype.value=function(n){var r={};return this.internalValue.inorderTraversal(function(t,e){r[t]=e.value(n)}),r},a.prototype.forEach=function(t){this.internalValue.inorderTraversal(t)},a.prototype.isEqual=function(t){if(t instanceof a){for(var e=this.internalValue.getIterator(),n=t.internalValue.getIterator();e.hasNext()&&n.hasNext();){var r=e.getNext(),i=n.getNext();if(r.key!==i.key||!r.value.isEqual(i.value))return!1}return!e.hasNext()&&!n.hasNext()}return!1},a.prototype.compareTo=function(t){if(t instanceof a){for(var e=this.internalValue.getIterator(),n=t.internalValue.getIterator();e.hasNext()&&n.hasNext();){var r=e.getNext(),i=n.getNext(),o=W(r.key,i.key)||r.value.compareTo(i.value);if(o)return o}return W(e.hasNext(),n.hasNext())}return this.defaultCompareTo(t)},a.prototype.set=function(t,e){if(_(!t.isEmpty(),"Cannot set field for empty path on ObjectValue"),1===t.length)return this.setChild(t.firstSegment(),e);var n=this.child(t.firstSegment());n instanceof a||(n=a.EMPTY);var r=n.set(t.popFirst(),e);return this.setChild(t.firstSegment(),r)},a.prototype.delete=function(t){if(_(!t.isEmpty(),"Cannot delete field for empty path on ObjectValue"),1===t.length)return new a(this.internalValue.remove(t.firstSegment()));var e=this.child(t.firstSegment());if(e instanceof a){var n=e.delete(t.popFirst());return new a(this.internalValue.insert(t.firstSegment(),n))}return this},a.prototype.contains=function(t){return null!==this.field(t)},a.prototype.field=function(t){_(!t.isEmpty(),"Can't get field of empty path");var e=this;return t.forEach(function(t){e=e instanceof a?e.internalValue.get(t):null}),e},a.prototype.fieldMask=function(){var i=new St(st.comparator);return this.internalValue.forEach(function(t,e){var n=new st([t]);if(e instanceof a){var r=e.fieldMask().fields;r.isEmpty()?i=i.add(n):r.forEach(function(t){i=i.add(n.child(t))})}else i=i.add(n)}),he.fromSet(i)},a.prototype.toString=function(){return""+this.internalValue},a.prototype.child=function(t){return this.internalValue.get(t)||void 0},a.prototype.setChild=function(t,e){return new a(this.internalValue.insert(t,e))},a.EMPTY=new a(new wt(W)),a}(xe),Ne=function(n){function i(t){var e=n.call(this)||this;return e.internalValue=t,e.typeOrder=pe.ArrayValue,e}return p.__extends(i,n),i.prototype.value=function(e){return this.internalValue.map(function(t){return t.value(e)})},i.prototype.contains=function(t){for(var e=0,n=this.internalValue;ef.DEBUG||y("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(a-h)+"ms\n\tDetermined least recently used "+i+" in "+(s-a)+"ms\n\tRemoved "+o+" targets in "+(u-s)+"ms\n\tRemoved "+t+" documents in "+(c-u)+"ms\nTotal Duration: "+(c-h)+"ms"),Ut.resolve({didRun:!0,sequenceNumbersCollected:i,targetsRemoved:o,documentsRemoved:t})})},t}(),kn="IndexedDbPersistence",Cn="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Dn="Another tab has exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs.",Pn=function(t){function e(t,e){var n=this;return n.simpleDbTransaction=t,n.currentSequenceNumber=e,n}return p.__extends(e,t),e}(function(){}),Mn=function(){function u(t,e,n,r,i,o,a,s){if(this.allowTabSynchronization=t,this.persistenceKey=e,this.clientId=n,this.queue=o,this.sequenceNumberSyncer=s,this._started=!1,this.isPrimary=!1,this.networkEnabled=!0,this.windowUnloadHandler=null,this.inForeground=!1,this.documentVisibilityHandler=null,this.clientMetadataRefresher=null,this.lastGarbageCollectionTime=-1/0,this.primaryStateListener=function(){return Promise.resolve()},this.referenceDelegate=new Nn(this,i),this.dbName=e+u.MAIN_DATABASE,this.serializer=new wn(a),this.document=r.document,this.queryCache=new ie(this.referenceDelegate,this.serializer),this.indexManager=new gn,this.remoteDocumentCache=new qe(this.serializer,this.indexManager),!r.window||!r.window.localStorage)throw new w(b.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");this.window=r.window,this.webStorage=this.window.localStorage}return u.getStore=function(t,e){if(t instanceof Pn)return Jt.getStore(t.simpleDbTransaction,e);throw g("IndexedDbPersistence must use instances of IndexedDbTransaction")},u.createIndexedDbPersistence=function(n){return p.__awaiter(this,void 0,void 0,function(){var e;return p.__generator(this,function(t){switch(t.label){case 0:if(!u.isAvailable())throw new w(b.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");return[4,(e=new u(n.allowTabSynchronization,n.persistenceKey,n.clientId,n.platform,n.lruParams,n.queue,n.serializer,n.sequenceNumberSyncer)).start()];case 1:return t.sent(),[2,e]}})})},u.prototype.start=function(){var e=this;return _(!this.started,"IndexedDbPersistence double-started!"),_(null!==this.window,"Expected 'window' to be defined"),Jt.openOrCreate(this.dbName,$e,new tn(this.serializer)).then(function(t){return e.simpleDb=t,e.updateClientMetadataAndTryBecomePrimary()}).then(function(){return e.attachVisibilityHandler(),e.attachWindowUnloadHook(),e.scheduleClientMetadataAndPrimaryLeaseRefreshes(),e.startRemoteDocumentCache()}).then(function(){return e.simpleDb.runTransaction("readonly",[ln.store],function(t){return se(t).next(function(t){e.listenSequence=new rt(t,e.sequenceNumberSyncer)})})}).then(function(){e._started=!0}).catch(function(t){return e.simpleDb&&e.simpleDb.close(),Promise.reject(t)})},u.prototype.startRemoteDocumentCache=function(){var e=this;return this.simpleDb.runTransaction("readonly",vn,function(t){return e.remoteDocumentCache.start(t)})},u.prototype.setPrimaryStateListener=function(e){var n=this;return this.primaryStateListener=function(t){return p.__awaiter(n,void 0,void 0,function(){return p.__generator(this,function(){return this.started?[2,e(t)]:[2]})})},e(this.isPrimary)},u.prototype.setDatabaseDeletedListener=function(n){var t=this;this.simpleDb.setVersionChangeListener(function(e){return p.__awaiter(t,void 0,void 0,function(){return p.__generator(this,function(t){switch(t.label){case 0:return null!==e.newVersion?[3,2]:[4,n()];case 1:t.sent(),t.label=2;case 2:return[2]}})})})},u.prototype.setNetworkEnabled=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.queue.enqueueAndForget(function(){return p.__awaiter(e,void 0,void 0,function(){return p.__generator(this,function(t){switch(t.label){case 0:return this.started?[4,this.updateClientMetadataAndTryBecomePrimary()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})}))},u.prototype.updateClientMetadataAndTryBecomePrimary=function(){var r=this;return this.simpleDb.runTransaction("readwrite",vn,function(n){return Rn(n).put(new dn(r.clientId,Date.now(),r.networkEnabled,r.inForeground)).next(function(){if(r.isPrimary)return r.verifyPrimaryLease(n).next(function(t){t||(r.isPrimary=!1,r.queue.enqueueAndForget(function(){return r.primaryStateListener(!1)}))})}).next(function(){return r.canActAsPrimary(n)}).next(function(t){var e=r.isPrimary;return r.isPrimary=t,e!==r.isPrimary&&r.queue.enqueueAndForget(function(){return r.primaryStateListener(r.isPrimary)}),e&&!r.isPrimary?r.releasePrimaryLeaseIfHeld(n):r.isPrimary?r.acquireOrExtendPrimaryLease(n):void 0})})},u.prototype.verifyPrimaryLease=function(t){var e=this;return On(t).get(en.key).next(function(t){return Ut.resolve(e.isLocalClient(t))})},u.prototype.removeClientMetadata=function(t){return Rn(t).delete(this.clientId)},u.prototype.maybeGarbageCollectMultiClientState=function(){return p.__awaiter(this,void 0,void 0,function(){var n,r,i=this;return p.__generator(this,function(t){switch(t.label){case 0:return!this.isPrimary||this.isWithinAge(this.lastGarbageCollectionTime,18e5)?[3,2]:(this.lastGarbageCollectionTime=Date.now(),r=[],[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",function(t){var e=u.getStore(t,dn.store);return e.loadAll().next(function(t){return n=i.filterActiveClients(t,18e5),r=t.filter(function(t){return!~n.indexOf(t)}),Ut.forEach(r,function(t){return e.delete(t.clientId)})})})]);case 1:t.sent(),r.forEach(function(t){i.window.localStorage.removeItem(i.zombiedClientLocalStorageKey(t.clientId))}),t.label=2;case 2:return[2]}})})},u.prototype.scheduleClientMetadataAndPrimaryLeaseRefreshes=function(){var t=this;this.clientMetadataRefresher=this.queue.enqueueAfterDelay(Y.ClientMetadataRefresh,4e3,function(){return t.updateClientMetadataAndTryBecomePrimary().then(function(){return t.maybeGarbageCollectMultiClientState()}).then(function(){return t.scheduleClientMetadataAndPrimaryLeaseRefreshes()})})},u.prototype.isLocalClient=function(t){return!!t&&t.ownerId===this.clientId},u.prototype.canActAsPrimary=function(e){var n=this;return On(e).get(en.key).next(function(t){if(null!==t&&n.isWithinAge(t.leaseTimestampMs,5e3)&&!n.isClientZombied(t.ownerId)){if(n.isLocalClient(t)&&n.networkEnabled)return!0;if(!n.isLocalClient(t)){if(!t.allowTabSynchronization)throw new w(b.FAILED_PRECONDITION,Dn);return!1}}return!(!n.networkEnabled||!n.inForeground)||Rn(e).loadAll().next(function(t){return void 0===n.filterActiveClients(t,5e3).find(function(t){if(n.clientId!==t.clientId&&(!n.networkEnabled&&t.networkEnabled||!n.inForeground&&t.inForeground&&n.networkEnabled===t.networkEnabled))return!0;return!1})})}).next(function(t){return n.isPrimary!==t&&y(kn,"Client "+(t?"is":"is not")+" eligible for a primary lease."),t})},u.prototype.shutdown=function(){return p.__awaiter(this,void 0,void 0,function(){var e=this;return p.__generator(this,function(t){switch(t.label){case 0:return this._started=!1,this.markClientZombied(),this.clientMetadataRefresher&&(this.clientMetadataRefresher.cancel(),this.clientMetadataRefresher=null),this.detachVisibilityHandler(),this.detachWindowUnloadHook(),[4,this.simpleDb.runTransaction("readwrite",[en.store,dn.store],function(t){return e.releasePrimaryLeaseIfHeld(t).next(function(){return e.removeClientMetadata(t)})})];case 1:return t.sent(),this.simpleDb.close(),this.removeClientZombiedEntry(),[2]}})})},u.prototype.filterActiveClients=function(t,e){var n=this;return t.filter(function(t){return n.isWithinAge(t.updateTimeMs,e)&&!n.isClientZombied(t.clientId)})},u.prototype.getActiveClients=function(){var e=this;return this.simpleDb.runTransaction("readonly",[dn.store],function(t){return Rn(t).loadAll().next(function(t){return e.filterActiveClients(t,18e5).map(function(t){return t.clientId})})})},u.clearPersistence=function(e){return p.__awaiter(this,void 0,void 0,function(){return p.__generator(this,function(t){switch(t.label){case 0:return u.isAvailable()?[4,Jt.delete(e+u.MAIN_DATABASE)]:[2,Promise.resolve()];case 1:return t.sent(),[2]}})})},Object.defineProperty(u.prototype,"started",{get:function(){return this._started},enumerable:!0,configurable:!0}),u.prototype.getMutationQueue=function(t){return _(this.started,"Cannot initialize MutationQueue before persistence is started."),jt.forUser(t,this.serializer,this.indexManager,this.referenceDelegate)},u.prototype.getQueryCache=function(){return _(this.started,"Cannot initialize QueryCache before persistence is started."),this.queryCache},u.prototype.getRemoteDocumentCache=function(){return _(this.started,"Cannot initialize RemoteDocumentCache before persistence is started."),this.remoteDocumentCache},u.prototype.getIndexManager=function(){return _(this.started,"Cannot initialize IndexManager before persistence is started."),this.indexManager},u.prototype.runTransaction=function(n,t,r){var i=this;return y(kn,"Starting transaction:",n),this.simpleDb.runTransaction("readonly"===t?"readonly":"readwrite",vn,function(e){return"readwrite-primary"===t?i.verifyPrimaryLease(e).next(function(t){if(!t)throw v("Failed to obtain primary lease for action '"+n+"'."),i.isPrimary=!1,i.queue.enqueueAndForget(function(){return i.primaryStateListener(!1)}),new w(b.FAILED_PRECONDITION,Cn);return r(new Pn(e,i.listenSequence.next()))}).next(function(t){return i.acquireOrExtendPrimaryLease(e).next(function(){return t})}):i.verifyAllowTabSynchronization(e).next(function(){return r(new Pn(e,i.listenSequence.next()))})})},u.prototype.verifyAllowTabSynchronization=function(t){var e=this;return On(t).get(en.key).next(function(t){if(null!==t&&e.isWithinAge(t.leaseTimestampMs,5e3)&&!e.isClientZombied(t.ownerId)&&!e.isLocalClient(t)&&!t.allowTabSynchronization)throw new w(b.FAILED_PRECONDITION,Dn)})},u.prototype.acquireOrExtendPrimaryLease=function(t){var e=new en(this.clientId,this.allowTabSynchronization,Date.now());return On(t).put(en.key,e)},u.isAvailable=function(){return Jt.isAvailable()},u.buildStoragePrefix=function(t){var e=t.databaseId.projectId;return t.databaseId.isDefaultDatabase||(e+="."+t.databaseId.database),"firestore/"+t.persistenceKey+"/"+e+"/"},u.prototype.releasePrimaryLeaseIfHeld=function(t){var e=this,n=On(t);return n.get(en.key).next(function(t){return e.isLocalClient(t)?(y(kn,"Releasing primary lease."),n.delete(en.key)):Ut.resolve()})},u.prototype.isWithinAge=function(t,e){var n=Date.now();return!(t "+n),1))},u.prototype.attachVisibilityHandler=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.documentVisibilityHandler=function(){t.queue.enqueueAndForget(function(){return t.inForeground="visible"===t.document.visibilityState,t.updateClientMetadataAndTryBecomePrimary()})},this.document.addEventListener("visibilitychange",this.documentVisibilityHandler),this.inForeground="visible"===this.document.visibilityState)},u.prototype.detachVisibilityHandler=function(){this.documentVisibilityHandler&&(_(null!==this.document&&"function"==typeof this.document.addEventListener,"Expected 'document.addEventListener' to be a function"),this.document.removeEventListener("visibilitychange",this.documentVisibilityHandler),this.documentVisibilityHandler=null)},u.prototype.attachWindowUnloadHook=function(){var t=this;"function"==typeof this.window.addEventListener&&(this.windowUnloadHandler=function(){t.markClientZombied(),t.queue.enqueueAndForget(function(){return t.shutdown()})},this.window.addEventListener("unload",this.windowUnloadHandler))},u.prototype.detachWindowUnloadHook=function(){this.windowUnloadHandler&&(_("function"==typeof this.window.removeEventListener,"Expected 'window.removeEventListener' to be a function"),this.window.removeEventListener("unload",this.windowUnloadHandler),this.windowUnloadHandler=null)},u.prototype.isClientZombied=function(t){try{var e=null!==this.webStorage.getItem(this.zombiedClientLocalStorageKey(t));return y(kn,"Client '"+t+"' "+(e?"is":"is not")+" zombied in LocalStorage"),e}catch(t){return v(kn,"Failed to get zombied client id.",t),!1}},u.prototype.markClientZombied=function(){try{this.webStorage.setItem(this.zombiedClientLocalStorageKey(this.clientId),Date.now()+"")}catch(t){v("Failed to set zombie client id.",t)}},u.prototype.removeClientZombiedEntry=function(){try{this.webStorage.removeItem(this.zombiedClientLocalStorageKey(this.clientId))}catch(t){}},u.prototype.zombiedClientLocalStorageKey=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},u.MAIN_DATABASE="main",u}();function Ln(t){return p.__awaiter(this,void 0,void 0,function(){return p.__generator(this,function(){if(!function(t){return t.code===b.FAILED_PRECONDITION&&t.message===Cn}(t))throw t;return y(kn,"Unexpectedly lost primary lease"),[2]})})}function On(t){return t.store(en.store)}function Rn(t){return t.store(dn.store)}var Nn=function(){function t(t,e){this.db=t,this.inMemoryPins=null,this.garbageCollector=new An(this,e)}return t.prototype.getSequenceNumberCount=function(t){var n=this.orphanedDocmentCount(t);return this.db.getQueryCache().getQueryCount(t).next(function(e){return n.next(function(t){return e+t})})},t.prototype.orphanedDocmentCount=function(t){var e=0;return this.forEachOrphanedDocumentSequenceNumber(t,function(){e++}).next(function(){return e})},t.prototype.forEachTarget=function(t,e){return this.db.getQueryCache().forEachTarget(t,e)},t.prototype.forEachOrphanedDocumentSequenceNumber=function(t,n){return this.forEachOrphanedDocument(t,function(t,e){return n(e)})},t.prototype.setInMemoryPins=function(t){this.inMemoryPins=t},t.prototype.addReference=function(t,e){return Bn(t,e)},t.prototype.removeReference=function(t,e){return Bn(t,e)},t.prototype.removeTargets=function(t,e,n){return this.db.getQueryCache().removeTargets(t,e,n)},t.prototype.removeMutationReference=function(t,e){return Bn(t,e)},t.prototype.isPinned=function(t,e){return this.inMemoryPins.containsKey(e)?Ut.resolve(!0):function(e,n){var r=!1;return Ht(e).iterateSerial(function(t){return Vt(e,t,n).next(function(t){return t&&(r=!0),Ut.resolve(!t)})}).next(function(){return r})}(t,e)},t.prototype.removeOrphanedDocuments=function(r,i){var o=this,a=this.db.getRemoteDocumentCache().newChangeBuffer(),s=[],u=0;return this.forEachOrphanedDocument(r,function(e,t){if(t<=i){var n=o.isPinned(r,e).next(function(t){if(!t)return u++,a.getEntry(r,e).next(function(){return a.removeEntry(e),ue(r).delete([0,mt(e.path)])})});s.push(n)}}).next(function(){return Ut.waitFor(s)}).next(function(){return a.apply(r)}).next(function(){return u})},t.prototype.removeTarget=function(t,e){var n=e.withSequenceNumber(t.currentSequenceNumber);return this.db.getQueryCache().updateQueryData(t,n)},t.prototype.updateLimboDocument=function(t,e){return Bn(t,e)},t.prototype.forEachOrphanedDocument=function(t,i){var o,e=ue(t),a=rt.INVALID;return e.iterate({index:cn.documentTargetsIndex},function(t,e){var n=e.path,r=e.sequenceNumber;0===t[0]?(a!==rt.INVALID&&i(new ut(gt(o)),a),a=r,o=n):a=rt.INVALID}).next(function(){a!==rt.INVALID&&i(new ut(gt(o)),a)})},t.prototype.getCacheSize=function(t){return this.db.getRemoteDocumentCache().getSize(t)},t}();function Bn(t,e){return ue(t).put(function(t,e){return new cn(0,mt(t.path),e)}(e,t.currentSequenceNumber))}var zn=function(){function t(t,e,n){this.remoteDocumentCache=t,this.mutationQueue=e,this.indexManager=n}return t.prototype.getDocument=function(e,n){var r=this;return this.mutationQueue.getAllMutationBatchesAffectingDocumentKey(e,n).next(function(t){return r.getDocumentInternal(e,n,t)})},t.prototype.getDocumentInternal=function(t,r,i){return this.remoteDocumentCache.getEntry(t,r).next(function(t){for(var e=0,n=i;e=this.RESUME_TOKEN_MAX_AGE_MICROS||0=":return e.GREATER_THAN_OR_EQUAL;case">":return e.GREATER_THAN;case"array-contains":return e.ARRAY_CONTAINS;case"in":return e.IN;case"array-contains-any":return e.ARRAY_CONTAINS_ANY;default:return g("Unknown FieldFilter operator: "+t)}},e.prototype.toString=function(){return this.name},e.prototype.isEqual=function(t){return this.name===t.name},e.LESS_THAN=new e("<"),e.LESS_THAN_OR_EQUAL=new e("<="),e.EQUAL=new e("=="),e.GREATER_THAN=new e(">"),e.GREATER_THAN_OR_EQUAL=new e(">="),e.ARRAY_CONTAINS=new e("array-contains"),e.IN=new e("in"),e.ARRAY_CONTAINS_ANY=new e("array-contains-any"),e}(),Rr=function(i){function r(t,e,n){var r=i.call(this)||this;return r.field=t,r.op=e,r.value=n,r}return p.__extends(r,i),r.create=function(t,e,n){if(t.isKeyField())return e===Or.IN?(_(n instanceof Ne,"Comparing on key with IN, but filter value not an ArrayValue"),_(n.internalValue.every(function(t){return t instanceof Le}),"Comparing on key with IN, but an array value was not a RefValue"),new Br(t,n)):(_(n instanceof Le,"Comparing on key, but filter value not a RefValue"),_(e!==Or.ARRAY_CONTAINS&&e!==Or.ARRAY_CONTAINS_ANY,"'"+e+"' queries don't make sense on document keys."),new Nr(t,e,n));if(n.isEqual(Ee.INSTANCE)){if(e!==Or.EQUAL)throw new w(b.INVALID_ARGUMENT,"Invalid query. Null supports only equality comparisons.");return new r(t,e,n)}if(n.isEqual(ke.NAN)){if(e!==Or.EQUAL)throw new w(b.INVALID_ARGUMENT,"Invalid query. NaN supports only equality comparisons.");return new r(t,e,n)}return e===Or.ARRAY_CONTAINS?new zr(t,n):e===Or.IN?(_(n instanceof Ne,"IN filter has invalid value: "+n),new Fr(t,n)):e===Or.ARRAY_CONTAINS_ANY?(_(n instanceof Ne,"ARRAY_CONTAINS_ANY filter has invalid value: "+n),new Ur(t,n)):new r(t,e,n)},r.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&this.value.typeOrder===e.typeOrder&&this.matchesComparison(e.compareTo(this.value))},r.prototype.matchesComparison=function(t){switch(this.op){case Or.LESS_THAN:return t<0;case Or.LESS_THAN_OR_EQUAL:return t<=0;case Or.EQUAL:return 0===t;case Or.GREATER_THAN:return 0() instead."),Zi=/^__.*__$/,Xi=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutations=function(t,e){var n=[];return n.push(null!==this.fieldMask?new ge(t,this.data,this.fieldMask,e):new ve(t,this.data,e)),0=",">","array-contains"],2,e)}var r,i=io("Query.where",t),o=Or.fromString(e);if(i.isKeyField()){if(o===Or.ARRAY_CONTAINS||o===Or.ARRAY_CONTAINS_ANY)throw new w(b.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if(o===Or.IN){this.validateDisjunctiveFilterElements(n,o);for(var a=[],s=0,u=n;s, or >=) must be on the same field. But you have inequality filters on '"+o+"' and '"+t.field+"'");var a=this._query.getFirstOrderByField();null!==a&&this.validateOrderByAndInequalityMatch(t.field,a)}else if(i||r){var s=null;if(i&&(s=this._query.findFilterOperator(n)),null===s&&r&&(s=this._query.findFilterOperator(e)),null!=s)throw new w(b.INVALID_ARGUMENT,s===t.op?"Invalid query. You cannot use more than one '"+t.op+"' filter.":"Invalid query. You cannot use '"+t.op+"' filters with '"+s+"' filters.")}}},l.prototype.validateNewOrderBy=function(t){if(null===this._query.getFirstOrderByField()){var e=this._query.getInequalityFilterField();null!==e&&this.validateOrderByAndInequalityMatch(e,t.field)}},l.prototype.validateOrderByAndInequalityMatch=function(t,e){if(!e.isEqual(t))throw new w(b.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+t+"' and so you must also use '"+t+"' as your first Query.orderBy(), but your first Query.orderBy() is on field '"+e+"' instead.")},l}(),go=function(){function e(t,e,n){this._firestore=t,this._originalQuery=e,this._snapshot=n,this._cachedChanges=null,this._cachedChangesIncludeMetadataChanges=null,this.metadata=new po(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(e.prototype,"docs",{get:function(){var e=[];return this.forEach(function(t){return e.push(t)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this._snapshot.docs.isEmpty()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._snapshot.docs.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e,n){var r=this;D("QuerySnapshot.forEach",arguments,1,2),P("QuerySnapshot.forEach","function",1,e),this._snapshot.docs.forEach(function(t){e.call(n,r.convertToDocumentImpl(t))})},Object.defineProperty(e.prototype,"query",{get:function(){return new vo(this._originalQuery,this._firestore)},enumerable:!0,configurable:!0}),e.prototype.docChanges=function(t){t&&(U("QuerySnapshot.docChanges",t,["includeMetadataChanges"]),O("QuerySnapshot.docChanges","boolean","includeMetadataChanges",t.includeMetadataChanges));var e=!(!t||!t.includeMetadataChanges);if(e&&this._snapshot.excludesMetadataChanges)throw new w(b.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(i,e,o){if(o.oldDocs.isEmpty()){var n,r=0;return o.docChanges.map(function(t){var e=new yo(i,t.doc.key,t.doc,o.fromCache,o.mutatedKeys.has(t.doc.key));return _(t.type===mr.Added,"Invalid event type for first snapshot"),_(!n||o.query.docComparator(n,t.doc)<0,"Got added events in wrong order"),n=t.doc,{type:"added",doc:e,oldIndex:-1,newIndex:r++}})}var a=o.oldDocs;return o.docChanges.filter(function(t){return e||t.type!==mr.Metadata}).map(function(t){var e=new yo(i,t.doc.key,t.doc,o.fromCache,o.mutatedKeys.has(t.doc.key)),n=-1,r=-1;return t.type!==mr.Added&&(_(0<=(n=a.indexOf(t.doc.key)),"Index for document not found"),a=a.delete(t.doc.key)),t.type!==mr.Removed&&(r=(a=a.add(t.doc)).indexOf(t.doc.key)),{type:function(t){switch(t){case mr.Added:return"added";case mr.Modified:case mr.Metadata:return"modified";case mr.Removed:return"removed";default:return g("Unknown change type: "+t)}}(t.type),doc:e,oldIndex:n,newIndex:r}})}(this._firestore,e,this._snapshot),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges},e.prototype.isEqual=function(t){if(!(t instanceof e))throw j("isEqual","QuerySnapshot",1,t);return this._firestore===t._firestore&&this._originalQuery.isEqual(t._originalQuery)&&this._snapshot.isEqual(t._snapshot)},e.prototype.convertToDocumentImpl=function(t){return new yo(this._firestore,t.key,t,this.metadata.fromCache,this._snapshot.mutatedKeys.has(t.key))},e}();p.__spreadArrays(["length","forEach","map"],"undefined"!=typeof Symbol?[Symbol.iterator]:[]).forEach(function(t){try{Object.defineProperty(go.prototype.docChanges,t,{get:function(){return function(){throw new w(b.INVALID_ARGUMENT,'QuerySnapshot.docChanges has been changed from a property into a method, so usages like "querySnapshot.docChanges" should become "querySnapshot.docChanges()"')}()}})}catch(t){}});var _o=function(r){function t(t,e){var n=r.call(this,Lr.atPath(t),e)||this;if(t.length%2!=1)throw new w(b.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t.canonicalString()+" has "+t.length);return n}return p.__extends(t,r),Object.defineProperty(t.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var t=this._query.path.popLast();return t.isEmpty()?null:new fo(new ut(t),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!0,configurable:!0}),t.prototype.doc=function(t){if(D("CollectionReference.doc",arguments,0,1),0===arguments.length&&(t=G.newId()),P("CollectionReference.doc","non-empty string",1,t),""===t)throw new w(b.INVALID_ARGUMENT,"Document path must be a non-empty string");var e=ot.fromString(t);return fo.forPath(this._query.path.child(e),this.firestore)},t.prototype.add=function(t){k("CollectionReference.add",arguments,1),P("CollectionReference.add","object",1,t);var e=this.doc();return e.set(t).then(function(){return e})},t}(vo);function bo(t,e){if(void 0===e)return{merge:!1};if(U(t,e,["merge","mergeFields"]),O(t,"boolean","merge",e.merge),function(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){if(!(r instanceof Array))throw new w(b.INVALID_ARGUMENT,"Function "+t+"() requires its "+e+" option to be an array, but it was: "+z(r));for(var o=0;o>>0),d=0;function m(t,e,n){return t.call.apply(t.bind,arguments)}function y(e,n,t){if(!e)throw Error();if(2>>0);function Et(e){return"function"==a(e)?e:(e[xt]||(e[xt]=function(t){return e.handleEvent(t)}),e[xt])}function Tt(){w.call(this),this.c=new lt(this),(this.J=this).B=null}function St(t,e,n,r){if(!(e=t.c.a[e+""]))return!0;e=e.concat();for(var i=!0,o=0;oe.length?de:(e=e.substr(r,n),t.A=r+n,e))}function be(t){t.R=_()+t.O,we(t,t.O)}function we(t,e){if(null!=t.i)throw Error("WatchDog timer not null");t.i=te(v(t.bb,t),e)}function xe(t){t.i&&(u.clearTimeout(t.i),t.i=null)}function Ee(t){t.g.Da()||t.m||t.g.na(t)}function Te(t){xe(t);var e=t.B;e&&"function"==typeof e.la&&e.la(),t.B=null,Ft(t.P),Kt(t.I),t.a&&(e=t.a,t.a=null,e.abort(),e.la())}function Se(t,e){try{t.g.Ga(t,e),Xt(4)}catch(t){}}function Ie(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(h(t)||c(t))E(t,e,void 0);else{if(t.K&&"function"==typeof t.K)var n=t.K();else if(t.C&&"function"==typeof t.C)n=void 0;else if(h(t)||c(t)){n=[];for(var r=t.length,i=0;i>4&15).toString(16)+(15&t).toString(16)}Me.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Ve(e,Ge,!0),":");var n=this.b;return!n&&"file"!=e||(t.push("//"),(e=this.j)&&t.push(Ve(e,Ge,!0),"@"),t.push(encodeURIComponent(n+"").replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.i)&&t.push(":",n+"")),(n=this.a)&&(this.b&&"/"!=n[0]&&t.push("/"),t.push(Ve(n,"/"==n[0]?Ke:We,!0))),(n=""+this.c)&&t.push("?",n),(n=this.g)&&t.push("#",Ve(n,Qe)),t.join("")},Me.prototype.resolve=function(t){var e=Le(this),n=!!t.f;n?Oe(e,t.f):n=!!t.j,n?e.j=t.j:n=!!t.b,n?Re(e,t.b):n=null!=t.i;var r=t.a;if(n)Ne(e,t.i);else if(n=!!t.a){if("/"!=r[0])if(this.b&&!this.a)r="/"+r;else{var i=e.a.lastIndexOf("/");-1!=i&&(r=e.a.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(C(i,"./")||C(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;ar)o=t[n];else{var o=t[n].substring(0,r);i=t[n].substring(1+r)}e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(n.c,function(t,e){n.add(decodeURIComponent(t.replace(/\+/g," ")),e)}))}function Je(t,e){Xe(t),e=en(t,e),De(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,ke(t.a,e))}function Ye(t,e){return Xe(t),e=en(t,e),De(t.a.b,e)}function $e(t,e,n){Je(t,e),0+X)throw Error("Environmental error: no available transport.")}function tr(t,e){Tt.call(this),this.a=new Nn(e),this.g=t,this.m=e&&e.testUrl?e.testUrl:function(t){for(var e=t,n=1;n=t.v)break t;Hn(this),this.a.cancel(),this.a=null}Wn(this),Yt(18)}}else this.ra=e[1],0>16),u((65280&r)>>8),u(255&r);return 2==i?u(255&(r=l(t[0|e])<<2|l(t[0|e+1])>>4)):1==i&&(u((r=l(t[0|e])<<10|l(t[0|e+1])<<4|l(t[0|e+2])>>2)>>8&255),u(255&r)),o},t.fromByteArray=function(t){var e,n,r,i,o=t.length%3,a="";function s(t){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|t]}for(e=0,r=t.length-o;e>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(o){case 1:a+=s((n=t[t.length-1])>>2),a+=s(n<<4&63),a+="==";break;case 2:a+=s((n=(t[t.length-2]<<8)+t[t.length-1])>>10),a+=s(n>>4&63),a+=s(n<<2&63),a+="="}return a}}(void 0===n?this.base64js={}:n)}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,r,i,o,a,"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(M,t,L,e,n,r,i){!function(t,e,u){var o=M("base64-js"),a=M("ieee754");function u(t,e,n){if(!(this instanceof u))return new u(t,e,n);var r,i,o,a=typeof t;if("base64"===e&&"string"==a)for(t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t);t.length%4!=0;)t+="=";if("number"==a)r=w(t);else if("string"==a)r=u.byteLength(t,e);else{if("object"!=a)throw Error("First argument needs to be a number, array or string.");r=w(t.length)}if(u._useTypedArrays?i=u._augment(new Uint8Array(r)):((i=this).length=r,i._isBuffer=!0),u._useTypedArrays&&"number"==typeof t.byteLength)i._set(t);else if(function(t){return x(t)||u.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}(t))for(o=0;oe)return n?(i=t[e],e+1e)return n?(e+2>>0)):(e+1>>0),i}function n(t,e,n,r){if(r||(P("boolean"==typeof n,"missing or invalid endian"),P(null!=e,"missing offset"),P(e+1e){var i=l(t,e,n,!0);return 32768&i?-1*(65535-i+1):i}}function r(t,e,n,r){if(r||(P("boolean"==typeof n,"missing or invalid endian"),P(null!=e,"missing offset"),P(e+3e){var i=h(t,e,n,!0);return 2147483648&i?-1*(4294967295-i+1):i}}function i(t,e,n,r){return r||(P("boolean"==typeof n,"missing or invalid endian"),P(e+3n)for(var a=0,s=Math.min(o-n,2);a>>8*(r?a:1-a)}function d(t,e,n,r,i){i||(P(null!=e,"missing value"),P("boolean"==typeof r,"missing or invalid endian"),P(null!=n,"missing offset"),P(n+3n)for(var a=0,s=Math.min(o-n,4);a>>8*(r?a:3-a)&255}function m(t,e,n,r,i){i||(P(null!=e,"missing value"),P("boolean"==typeof r,"missing or invalid endian"),P(null!=n,"missing offset"),P(n+1>8,r.push(e%256),r.push(n);return r}(e),t,n,r)}(this,t,e,n);break;default:throw Error("Unknown encoding")}return o},u.prototype.toString=function(t,e,n){var r,i=this;if((n=void 0!==n?+n:n=i.length)===(e=+e||0))return"";switch(t=((t||"utf8")+"").toLowerCase()){case"hex":r=function(t,e,n){var r=t.length;e&&0<=e||(e=0),n&&0<=n&&n<=r||(n=r);for(var i="",o=e;ot)return this[t]},u.prototype.readUInt16LE=function(t,e){return l(this,t,!0,e)},u.prototype.readUInt16BE=function(t,e){return l(this,t,!1,e)},u.prototype.readUInt32LE=function(t,e){return h(this,t,!0,e)},u.prototype.readUInt32BE=function(t,e){return h(this,t,!1,e)},u.prototype.readInt8=function(t,e){if(e||(P(null!=t,"missing offset"),P(tt)return 128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){return n(this,t,!0,e)},u.prototype.readInt16BE=function(t,e){return n(this,t,!1,e)},u.prototype.readInt32LE=function(t,e){return r(this,t,!0,e)},u.prototype.readInt32BE=function(t,e){return r(this,t,!1,e)},u.prototype.readFloatLE=function(t,e){return i(this,t,!0,e)},u.prototype.readFloatBE=function(t,e){return i(this,t,!1,e)},u.prototype.readDoubleLE=function(t,e){return f(this,t,!0,e)},u.prototype.readDoubleBE=function(t,e){return f(this,t,!1,e)},u.prototype.writeUInt8=function(t,e,n){n||(P(null!=t,"missing value"),P(null!=e,"missing offset"),P(e"},u.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw Error("Buffer.toArrayBuffer not supported in this browser");if(u._useTypedArrays)return new u(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;e(t=~~t)?t<0&&(t+=e)<0?0:t:e}function w(t){return(t=~~Math.ceil(+t))<0?0:t}function x(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function E(t){return t<16?"0"+t.toString(16):t.toString(16)}function T(t){for(var e=[],n=0;n127){var i=n;r<55296||57343>5]|=128<>>9<<4)]=e;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a>>32-i}(m(m(e,t),m(r,o))),n)}function h(t,e,n,r,i,o,a){return u(e&n|~e&r,t,e,i,o,a)}function f(t,e,n,r,i,o,a){return u(e&r|n&~r,t,e,i,o,a)}function p(t,e,n,r,i,o,a){return u(e^n^r,t,e,i,o,a)}function d(t,e,n,r,i,o,a){return u(n^(e|~r),t,e,i,o,a)}function m(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}var c;t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window&&window,t("buffer"),c=t("./helpers"),e.exports=function(t){return c.hash(t,s,16)}},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(t,n,e,r,i,o,a){t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window&&window,t("buffer"),function(){var t,e;t=function(t){for(var e,n=Array(t),r=0;r>>((3&r)<<3)&255;return n},this.crypto&&crypto.getRandomValues&&(e=function(t){var e=new Uint8Array(t);return crypto.getRandomValues(e),e}),n.exports=e||t}()},{buffer:3,lYpoI2:10}],8:[function(t,e,n,r,i,o,a){function s(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var n,r=Array(80),i=1732584193,o=-271733879,a=-1732584194,s=271733878,u=-1009589776,c=0;c>16)+(e>>16)+(n>>16)<<16|65535&n}function _(t,e){return t<>>32-e}var u;t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window&&window,t("buffer"),u=t("./helpers"),e.exports=function(t){return u.hash(t,s,20,!0)}},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(t,e,n,r,i,o,a){function S(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function I(t,e){return t>>>e|t<<32-e}function A(t,e){return t>>>e}function s(t,e){var n,r,i,o,a,s,u,c,l,h,f,p,d,m,y,v,g,_,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],w=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],x=Array(64);t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var E=0;E>1,l=-7,h=n?i-1:0,f=n?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-l)-1,p>>=-l,l+=s;0>=-l,l+=r;0>1,f=23===i?5.960464477539062e-8:0,p=r?0:o-1,d=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(s=isNaN(e)?1:0,a=l):(e*(u=Math.pow(2,-(a=Math.floor(Math.log(e)/Math.LN2))))<1&&(a--,u*=2),(e+=a+h<1?f*Math.pow(2,1-h):f/u)*u<2||(a++,u/=2),a+h=",">","array-contains"].includes(r))throw Error("not implemented yet operation: "+r);throw Error("not defined: "+r)}(t,n);return"all"===r?e:e=e.where.apply(e,r)}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,a,s,u){return new(s=s||Promise)(function(n,e){function r(t){try{o(u.next(t))}catch(t){e(t)}}function i(t){try{o(u.throw(t))}catch(t){e(t)}}function o(t){var e;t.done?n(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(r,i)}o((u=u.apply(t,a||[])).next())})},a=this&&this.__generator||function(n,r){var i,o,a,t,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return t={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&e[0]?o.return:e[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,e[1])).done)return a;switch(o=0,a&&(e=[2&e[0],a.value]),e[0]){case 0:case 1:a=e;break;case 4:return s.label++,{value:e[1],done:!1};case 5:s.label++,o=e[1],e=[0];continue;case 7:e=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){s=0;continue}if(3===e[0]&&(!a||a[0](r=1))return r;for(;n>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function d(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 m(t,e){t.forEach(function(t){e[t]&&(e[t]=e[t].bind(e))})}function y(t,e){return!!~t.indexOf(e,t.length-e.length)}function v(t,e,n){var r={};for(var i in t)r[i]=e.call(n||this,t[i],i,t);return r}function g(t,e,n){var r={};for(var i in t)e.call(n||this,t[i],i,t)&&(r[i]=t[i]);return r}function _(t){return Array.isArray(t)?t.map(_):"object"==typeof t&&t?v(t,_):t}var b={};function X(t){b[t]||(b[t]=!0)}function w(t,e,n){return(e.y-t.y)*(n.x-t.x)<(n.y-t.y)*(e.x-t.x)}function x(t){for(var e=0,n=0,r=t.length,i=r-1,o=void 0,a=void 0;n@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(t,e,n,r){var i=n||r;return o[e]=!i||i.toLowerCase(),""}),o["max-age"]){var e=parseInt(o["max-age"],10);isNaN(e)?delete o["max-age"]:o["max-age"]=e}return o}function T(t){try{var e=self[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}var S,I,A,k,C=self.performance&&self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),D=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,P=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,M={now:C,frame:function(t){var e=D(t);return{cancel:function(){return P(e)}}},getImageData:function(t,e){void 0===e&&(e=0);var n=self.document.createElement("canvas"),r=n.getContext("2d");if(!r)throw Error("failed to create canvas 2d context");return n.width=t.width,n.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(S=S||self.document.createElement("a")).href=t,S.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&&(null==I&&(I=self.matchMedia("(prefers-reduced-motion: reduce)")),I.matches)}},L={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")?this.API_URL.indexOf("https://api.mapbox.com")?null:"https://events.mapbox.com/events/v2":"https://events.mapbox.cn/events/v2":null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},O={supported:!1,testSupport:function(t){!R&&k&&(N?B(t):A=t)}},R=!1,N=!1;function B(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,k),t.isContextLost())return;O.supported=!0}catch(t){}t.deleteTexture(e),R=!0}self.document&&((k=self.document.createElement("img")).onload=function(){A&&B(A),N=!(A=null)},k.onerror=function(){R=!0,A=null},k.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function z(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()}function F(t){return 0==t.indexOf("mapbox:")}z.prototype._createSkuToken=function(){var t=function(){for(var t="",e=0;e<10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:"101"+t,tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},z.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},z.prototype.transformRequest=function(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}},z.prototype.normalizeStyleURL=function(t,e){if(!F(t))return t;var n=q(t);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)},z.prototype.normalizeGlyphsURL=function(t,e){if(!F(t))return t;var n=q(t);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)},z.prototype.normalizeSourceURL=function(t,e){if(!F(t))return t;var n=q(t);return n.path="/v4/"+n.authority+".json",n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||e)},z.prototype.normalizeSpriteURL=function(t,e,n,r){var i=q(t);return F(t)?(i.path="/styles/v1"+i.path+"/sprite"+e+n,this._makeAPIURL(i,this._customAccessToken||r)):(i.path+=""+e+n,G(i))},z.prototype.normalizeTileURL=function(t,e,n){if(this._isSkuTokenExpired()&&this._createSkuToken(),!e||!F(e))return t;var r=q(t);return r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,(M.devicePixelRatio<2&&512!==n?"":"@2x")+(O.supported?".webp":"$1")),r.path=r.path.replace(/^.+\/v4\//,"/"),r.path="/v4"+r.path,L.REQUIRE_ACCESS_TOKEN&&(L.ACCESS_TOKEN||this._customAccessToken)&&this._skuToken&&r.params.push("sku="+this._skuToken),this._makeAPIURL(r,this._customAccessToken)},z.prototype.canonicalizeTileURL=function(t){var e=q(t);if(!e.path.match(/(^\/v4\/)/)||!e.path.match(/\.[\w]+$/))return t;var n="mapbox://tiles/";n+=e.path.replace("/v4/","");var r=e.params.filter(function(t){return!t.match(/^access_token=/)});return r.length&&(n+="?"+r.join("&")),n},z.prototype.canonicalizeTileset=function(t,e){if(!F(e))return t.tiles||[];for(var n=[],r=0,i=t.tiles;rDate.now()&&!n["no-cache"]}(t);n.delete(i),e&&n.put(i,t.clone()),r(null,t,e)})}).catch(r)}(a,n):n(null,null),{cancel:function(){u=!0,s||e.abort()}}}(t,e);if(ut()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e)}var n;return function(e,n){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(){n(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 n(t)}n(null,t,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else n(new st(r.statusText,r.status,e.url))},r.send(e.body),{cancel:function(){return r.abort()}}}(t,e)}function ht(t,e){return lt(p(t,{type:"arrayBuffer"}),e)}var ft,pt,dt=function(t,e){return lt(p(t,{method:"POST"}),e)};ft=[],pt=0;var mt=function(t,s){if(L.MAX_PARALLEL_IMAGE_REQUESTS<=pt){var e={requestParameters:t,callback:s,cancelled:!1,cancel:function(){this.cancelled=!0}};return ft.push(e),e}pt++;function u(){if(!n)for(n=!0,pt--;ft.length&&pt":{},">=":{},"<":{},"<=":{},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:22,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"},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:"image",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:"image",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"},"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:"image",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:"image",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"}}},xt=function(t,e,n,r){this.message=(t?t+": ":"")+n,r&&(this.identifier=r),null!=e&&e.__line__&&(this.line=e.__line__)};function Et(t){var e=t.value;return e?[new xt(t.key,e,"constants have been deprecated as of v8")]:[]}function Tt(t){for(var e=[],n=arguments.length-1;0":"value"===t.itemType.kind?"array":"array<"+e+">"}var Vt=[Dt,Pt,Mt,Lt,Ot,zt,Rt,Ut(Nt),Ft];function qt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!qt(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 n=0,r=Vt;n>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:7!==n.length||(e=parseInt(n.substr(1),16))<0||16777215>16,(65280&e)>>8,255&e,1];var r=n.indexOf("("),i=n.indexOf(")");if(-1!=r&&1+i===n.length){var o=n.substr(0,r),a=n.substr(1+r,i-(1+r)).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 u=(parseFloat(a[0])%360+360)%360/360,c=y(a[1]),l=y(a[2]),h=.5e){if(e>=n)throw new te("Input is not a number.");a=s-1}else{if(s===i||e "+(n.length-1)+".");if(e!==Math.floor(e))throw new te("Array index must be an integer, but found "+e+" instead.");return n[e]},Be.prototype.eachChild=function(t){t(this.index),t(this.input)},Be.prototype.possibleOutputs=function(){return[void 0]},Be.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};function ze(t,e,n,r,i,o){this.inputType=t,this.type=e,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o}ze.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 n,r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var i={},o=[],a=2;a",function(t,e,n){return n=",function(t,e,n){return n<=e},function(t,e,n,r){return 0<=r.compare(e,n)});qe.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var n=e.parse(t[1],1,Pt);if(!n)return null;var r=t[2];if("object"!=typeof r||Array.isArray(r))return e.error("NumberFormat options argument must be an object.");var i=null;if(r.locale&&!(i=e.parse(r.locale,1,Mt)))return null;var o=null;if(r.currency&&!(o=e.parse(r.currency,1,Mt)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=e.parse(r["min-fraction-digits"],1,Pt)))return null;var s=null;return r["max-fraction-digits"]&&!(s=e.parse(r["max-fraction-digits"],1,Pt))?null:new qe(n,i,o,a,s)},qe.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))},qe.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)},qe.prototype.possibleOutputs=function(){return[void 0]},qe.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]};function Xe(t){this.type=Pt,this.input=t}Xe.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?e.error("Expected argument of type string or array, but found "+jt(n.type)+" instead."):new Xe(n):null},Xe.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 te("Expected value to be of type string or array, but found "+jt(Jt(e))+" instead.")},Xe.prototype.eachChild=function(t){t(this.input)},Xe.prototype.possibleOutputs=function(){return[void 0]},Xe.prototype.serialize=function(){var e=["length"];return this.eachChild(function(t){e.push(t.serialize())}),e};var Je={"==":Ge,"!=":We,">":He,"<":Ke,">=":Ze,"<=":Qe,array:ee,at:Be,boolean:ee,case:Fe,coalesce:Re,collator:le,format:re,image:ie,interpolate:Le,"interpolate-hcl":Le,"interpolate-lab":Le,length:Xe,let:Ne,literal:$t,match:ze,number:ee,"number-format":qe,object:ee,step:ve,string:ee,"to-boolean":oe,"to-color":oe,"to-number":oe,"to-string":oe,var:de};function Ye(t,e){var n=e[0],r=e[1],i=e[2],o=e[3];n=n.evaluate(t),r=r.evaluate(t),i=i.evaluate(t);var a=o?o.evaluate(t):1,s=Xt(n,r,i,a);if(s)throw new te(s);return new Wt(n/255*a,r/255*a,i/255*a,a)}function $e(t,e){return t in e}function tn(t,e){var n=e[t];return void 0===n?null:n}function en(t){return{type:t}}function nn(t){return{result:"success",value:t}}function rn(t){return{result:"error",value:t}}function on(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function an(t){return!!t.expression&&!!~t.expression.parameters.indexOf("zoom")}function sn(t){return!!t.expression&&t.expression.interpolated}function un(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function cn(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function ln(t){return t}function hn(t,e,n){return void 0!==t?t:void 0!==e?e:void 0!==n?n:void 0}function fn(t,e,n,r,i){return hn(typeof n===i?r[n]:void 0,t.default,e.default)}function pn(t,e,n){if("number"!==un(n))return hn(t.default,e.default);var r=t.stops.length;if(1===r)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(t.stops[r-1][0]<=n)return t.stops[r-1][1];var i=ye(t.stops.map(function(t){return t[0]}),n);return t.stops[i][1]}function dn(t,e,n){var r=void 0!==t.base?t.base:1;if("number"!==un(n))return hn(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(t.stops[i-1][0]<=n)return t.stops[i-1][1];var o=ye(t.stops.map(function(t){return t[0]}),n),a=function(t,e,n,r){var i=r-n,o=t-n;return 0==i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}(n,r,t.stops[o][0],t.stops[o+1][0]),s=t.stops[o][1],u=t.stops[o+1][1],c=_e[e.type]||ln;if(t.colorSpace&&"rgb"!==t.colorSpace){var l=Me[t.colorSpace];c=function(t,e){return l.reverse(l.interpolate(l.forward(t),l.forward(e),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s.evaluate.apply(void 0,t),r=u.evaluate.apply(void 0,t);if(void 0!==n&&void 0!==r)return c(n,r,a)}}:c(s,u,a)}function mn(t,e,n){return"color"===e.type?n=Wt.parse(n):"formatted"===e.type?n=Qt.fromString(""+n):"image"===e.type?n=Zt.fromString({name:""+n,available:!1}):un(n)===e.type||"enum"===e.type&&e.values[n]||(n=void 0),hn(n,t.default,e.default)}ce.register(Je,{error:[{kind:"error"},[Mt],function(t,e){throw new te(e[0].evaluate(t))}],typeof:[Mt,[Nt],function(t,e){return jt(Jt(e[0].evaluate(t)))}],"to-rgba":[Ut(Pt,4),[Ot],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Ot,[Pt,Pt,Pt],Ye],rgba:[Ot,[Pt,Pt,Pt,Pt],Ye],has:{type:Lt,overloads:[[[Mt],function(t,e){return $e(e[0].evaluate(t),t.properties())}],[[Mt,Rt],function(t,e){var n=e[1];return $e(e[0].evaluate(t),n.evaluate(t))}]]},get:{type:Nt,overloads:[[[Mt],function(t,e){return tn(e[0].evaluate(t),t.properties())}],[[Mt,Rt],function(t,e){var n=e[1];return tn(e[0].evaluate(t),n.evaluate(t))}]]},"feature-state":[Nt,[Mt],function(t,e){return tn(e[0].evaluate(t),t.featureState||{})}],properties:[Rt,[],function(t){return t.properties()}],"geometry-type":[Mt,[],function(t){return t.geometryType()}],id:[Nt,[],function(t){return t.id()}],zoom:[Pt,[],function(t){return t.globals.zoom}],"heatmap-density":[Pt,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Pt,[],function(t){return t.globals.lineProgress||0}],accumulated:[Nt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Pt,en(Pt),function(t,e){for(var n=0,r=0,i=e;r":[Lt,[Mt,Nt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&o":[Lt,[Nt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&i=":[Lt,[Mt,Nt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&o<=i}],"filter-id->=":[Lt,[Nt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&i<=r}],"filter-has":[Lt,[Nt],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[Lt,[],function(t){return null!==t.id()}],"filter-type-in":[Lt,[Ut(Mt)],function(t,e){return!!~e[0].value.indexOf(t.geometryType())}],"filter-id-in":[Lt,[Ut(Nt)],function(t,e){return!!~e[0].value.indexOf(t.id())}],"filter-in-small":[Lt,[Mt,Ut(Nt)],function(t,e){var n=e[0];return!!~e[1].value.indexOf(t.properties()[n.value])}],"filter-in-large":[Lt,[Mt,Ut(Nt)],function(t,e){var n=e[0],r=e[1];return function(t,e,n,r){for(;n<=r;){var i=n+r>>1;if(e[i]===t)return!0;tt.styleSpec.$version||(n&&!on(t.valueSpec)?r.push(new xt(t.key,t.value,"property functions not supported")):e&&!an(t.valueSpec)&&r.push(new xt(t.key,t.value,"zoom functions not supported"))),"categorical"!==c&&!o||void 0!==t.value.property||r.push(new xt(t.key,t.value,'"property" property is required')),r;function h(t){var e=[],n=t.value,r=t.key;if("array"!==un(n))return[new xt(r,n,"array expected, "+un(n)+" found")];if(2!==n.length)return[new xt(r,n,"array length 2 expected, length "+n.length+" found")];if(o){if("object"!==un(n[0]))return[new xt(r,n,"object expected, "+un(n[0])+" found")];if(void 0===n[0].zoom)return[new xt(r,n,"object stop key must have zoom")];if(void 0===n[0].value)return[new xt(r,n,"object stop key must have value")];if(i&&i>It(n[0].zoom))return[new xt(r,n[0].zoom,"stop zoom values must appear in ascending order")];It(n[0].zoom)!==i&&(i=It(n[0].zoom),s=void 0,l={}),e=e.concat(En({key:r+"[0]",value:n[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Sn,value:f}}))}else e=e.concat(f({key:r+"[0]",value:n[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},n));return vn(At(n[1]))?e.concat([new xt(r+"[1]",n[1],"expressions are not allowed in function stops.")]):e.concat(Hn({key:r+"[1]",value:n[1],valueSpec:u,style:t.style,styleSpec:t.styleSpec}))}function f(t,e){var n=un(t.value),r=It(t.value),i=null!==t.value?t.value:e;if(a){if(n!==a)return[new xt(t.key,i,n+" stop domain type must match previous stop domain type "+a)]}else a=n;if("number"!==n&&"string"!==n&&"boolean"!==n)return[new xt(t.key,i,"stop domain value must be a number, string, or boolean")];if("number"===n||"categorical"===c)return"categorical"!==c||"number"!==n||isFinite(r)&&Math.floor(r)===r?"categorical"!==c&&"number"===n&&void 0!==s&&r":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,n=t.slice(1);e"===n||"<="===n||">="===n?On(t[1],t[2],n):"any"===n?(e=t.slice(1),["any"].concat(e.map(Ln))):"all"===n?["all"].concat(t.slice(1).map(Ln)):"none"===n?["all"].concat(t.slice(1).map(Ln).map(Bn)):"in"===n?Rn(t[1],t.slice(2)):"!in"===n?Bn(Rn(t[1],t.slice(2))):"has"===n?Nn(t[1]):"!has"!==n||Bn(Nn(t[1])):"any"!==n}function On(t,e,n){switch(t){case"$type":return["filter-type-"+n,e];case"$id":return["filter-id-"+n,e];default:return["filter-"+n,t,e]}}function Rn(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":case">=":n.length<2||"$type"!==It(n[1])||a.push(new xt(r,n,'"$type" cannot be use with operator "'+n[0]+'"'));case"==":case"!=":3!==n.length&&a.push(new xt(r,n,'filter array for operator "'+n[0]+'" must have 3 elements'));case"in":case"!in":n.length<2||"string"===(i=un(n[1]))||a.push(new xt(r+"[1]",n[1],"string expected, "+i+" found"));for(var s=2;s=i.vertexLength+t&&i.sortKey===r||(i={vertexOffset:e.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(i.sortKey=r),this.segments.push(i)),i},Si.prototype.get=function(){return this.segments},Si.prototype.destroy=function(){for(var t=0,e=this.segments;t>1;this.ids[r]r){for(var o=e[r+i>>1],a=r-1,s=i+1;;){for(;e[++a]>3}if(i--,1===r||2===r)o+=t.readSVarint(),a+=t.readSVarint(),1===r&&(e&&s.push(e),e=[]),e.push(new Z(o,a));else{if(7!==r)throw Error("unknown command "+r);e&&e.push(e[0].clone())}}return e&&s.push(e),s},wa.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,n=1,r=0,i=0,o=0,a=1/0,s=-1/0,u=1/0,c=-1/0;t.pos>3}if(r--,1===n||2===n)(i+=t.readSVarint())>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}(n))}function Aa(t,e,n){if(3===t){var r=new Ta(n,n.readVarint()+n.pos);r.length&&(e[r.name]=r)}}Sa.prototype.feature=function(t){if(t<0||this._features.length<=t)throw Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new ba(this._pbf,e,this.extent,this._keys,this._values)};var ka={VectorTile:function(t,e){this.layers=t.readFields(Aa,{},e)},VectorTileFeature:ba,VectorTileLayer:Ta},Ca=ka.VectorTileFeature.types,Da=8192;function Pa(t,e,n,r,i,o,a,s){t.emplaceBack(e,n,2*Math.floor(r*Da)+a,i*Da*2,o*Da*2,Math.round(s))}function Ma(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 Qr,this.indexArray=new ui,this.programConfigurations=new Ki(_a,t.layers,t.zoom),this.segments=new Si,this.stateDependentLayerIds=this.layers.filter(function(t){return t.isStateDependent()}).map(function(t){return t.id})}function La(t,e){return t.x===e.x&&(t.x<0||Zi=(c?3:2)){"bevel"===n&&(i=1.05);var f,p=Zi/(512*this.overscaling)*15,d=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),m=void 0,y=void 0,v=void 0,g=void 0;this.e1=this.e2=-1,c&&(g=t[h].sub(f=t[l-2])._unit()._perp());for(var _=h;_2||(D="fakeround")),"miter"===D&&i>6);var u=a.vertexLength++;this.e1<0||this.e2<0||(this.indexArray.emplaceBack(this.e1,this.e2,u),a.primitiveLength++),i?this.e2=u:this.e1=u},Fa.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.scaledDistance=0":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},es=24,ns={horizontal:1,vertical:2,horizontalOnly:3};function rs(t,e,n,r,i,o,a,s,u,c,l,h){var f,p=$a.fromFeature(t,n);c===ns.vertical&&p.verticalizePunctuation();var d=Sr.processBidirectionalText,m=Sr.processStyledBidirectionalText;if(d&&1===p.sections.length){f=[];for(var y=0,v=d(""+p,cs(p,s,r,e,h));y>1,l=-7,h=n?i-1:0,f=n?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-l)-1,p>>=-l,l+=s;0>=-l,l+=r;0>1,f=23===i?5.960464477539062e-8:0,p=r?0:o-1,d=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(s=isNaN(e)?1:0,a=l):(e*(u=Math.pow(2,-(a=Math.floor(Math.log(e)/Math.LN2))))<1&&(a--,u*=2),2>(e+=a+h<1?f*Math.pow(2,1-h):f/u)*u||(a++,u/=2),a+h>>0):4294967296*(e>>>0)+(t>>>0)}function Xs(t,e,n){var r=16383>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function uu(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}Hs.Varint=0,Hs.Fixed64=1,Hs.Bytes=2,Hs.Fixed32=5,Hs.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){for(n=n||this.length;this.pos>3,o=this.pos;this.type=7&r,t(i,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=au(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=uu(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=au(this.buf,this.pos)+4294967296*au(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=au(this.buf,this.pos)+4294967296*uu(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Gs(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Gs(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,r=this.buf;return e=127&(n=r[this.pos++]),n<128?e:(e|=(127&(n=r[this.pos++]))<<7,n<128?e:(e|=(127&(n=r[this.pos++]))<<14,n<128?e:(e|=(127&(n=r[this.pos++]))<<21,n<128?e:function(t,e,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return Zs(t,r,e);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return Zs(t,r,e);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return Zs(t,r,e);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return Zs(t,r,e);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return Zs(t,r,e);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return Zs(t,r,e);throw Error("Expected varint not more than 10 bytes")}(e|=(15&(n=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!!this.readVarint()},readString:function(){var t=this.readVarint()+this.pos,e=function(t,e,n){for(var r="",i=e;i127||(c=null):3===l?(a=t[i+2],128!=(192&(o=t[i+1]))||128!=(192&a)||(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(55296>c||c>57343)||(c=null)):4===l&&(a=t[i+2],s=t[i+3],128!=(192&(o=t[i+1]))||128!=(192&a)||128!=(192&s)||(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&1114112>c||(c=null)),null===c?(c=65533,l=1):65535>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),i+=l}return r}(this.buf,this.pos,t);return this.pos=t,e},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!==Hs.Bytes)return t.push(this.readVarint(e));var n=Qs(this);for(t=t||[];this.pos>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,n.buf[n.pos]=127&(t>>>=7)}(n,0,e),function(t,e){var n=(7&t)<<4;e.buf[e.pos++]|=n|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(r,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(127>>=7)|(127>>=7)|(127>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(!!t)},writeString:function(t){this.realloc(4*(t+="").length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var r,i,o=0;o>6|192:(r<65536?t[n++]=r>>12|224:(t[n++]=r>>18|240,t[n++]=r>>12&63|128),t[n++]=r>>6&63|128),t[n++]=63&r|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;n<128||Xs(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),Ws(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Ws(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 n=0;n",targetMapId:r,sourceMapId:i.mapId})}}},mu.prototype.receive=function(t){var e=t.data,n=e.id;if(n&&(!e.targetMapId||this.mapId===e.targetMapId))if(""===e.type){delete this.tasks[n];var r=this.cancelCallbacks[n];delete this.cancelCallbacks[n],r&&r()}else this.tasks[n]=e,this.taskQueue.push(n),this.invoker.trigger()},mu.prototype.process=function(){var r=this;if(this.taskQueue.length){var i=this.taskQueue.shift(),t=this.tasks[i];if(delete this.tasks[i],this.taskQueue.length&&this.invoker.trigger(),t)if(""===t.type){var e=this.callbacks[i];delete this.callbacks[i],e&&(t.error?e(hr(t.error)):e(null,hr(t.data)))}else{var o=!1,n=t.hasCallback?function(t,e){o=!0,delete r.cancelCallbacks[i];var n=[];r.target.postMessage({id:i,type:"",sourceMapId:r.mapId,error:t?lr(t):null,data:lr(e,n)},n)}:function(){o=!0},a=null,s=hr(t.data);if(this.parent[t.type])a=this.parent[t.type](t.sourceMapId,s,n);else if(this.parent.getWorkerSource){var u=t.type.split(".");a=this.parent.getWorkerSource(t.sourceMapId,u[0],s.source)[u[1]](s,n)}else n(Error("Could not find function "+t.type));!o&&a&&a.cancel&&(this.cancelCallbacks[i]=a.cancel)}}},mu.prototype.remove=function(){this.target.removeEventListener("message",this.receive,!1)};function vu(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]))}vu.prototype.setNorthEast=function(t){return this._ne=t instanceof gu?new gu(t.lng,t.lat):gu.convert(t),this},vu.prototype.setSouthWest=function(t){return this._sw=t instanceof gu?new gu(t.lng,t.lat):gu.convert(t),this},vu.prototype.extend=function(t){var e,n,r=this._sw,i=this._ne;if(t instanceof gu)n=e=t;else{if(!(t instanceof vu))return Array.isArray(t)?t.every(Array.isArray)?this.extend(vu.convert(t)):this.extend(gu.convert(t)):this;if(n=t._ne,!(e=t._sw)||!n)return this}return r||i?(r.lng=Math.min(e.lng,r.lng),r.lat=Math.min(e.lat,r.lat),i.lng=Math.max(n.lng,i.lng),i.lat=Math.max(n.lat,i.lat)):(this._sw=new gu(e.lng,e.lat),this._ne=new gu(n.lng,n.lat)),this},vu.prototype.getCenter=function(){return new gu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},vu.prototype.getSouthWest=function(){return this._sw},vu.prototype.getNorthEast=function(){return this._ne},vu.prototype.getNorthWest=function(){return new gu(this.getWest(),this.getNorth())},vu.prototype.getSouthEast=function(){return new gu(this.getEast(),this.getSouth())},vu.prototype.getWest=function(){return this._sw.lng},vu.prototype.getSouth=function(){return this._sw.lat},vu.prototype.getEast=function(){return this._ne.lng},vu.prototype.getNorth=function(){return this._ne.lat},vu.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},vu.prototype.toString=function(){return"LngLatBounds("+this._sw+", "+this._ne+")"},vu.prototype.isEmpty=function(){return!(this._sw&&this._ne)},vu.convert=function(t){return!t||t instanceof vu?t:new vu(t)};var gu=function(t,e){if(isNaN(t)||isNaN(e))throw Error("Invalid LngLat object: ("+t+", "+e+")");if(this.lng=+t,this.lat=+e,90, lat: }, an object {lon: , lat: }, or an array of [, ]")};var _u=40075016.68557849;function bu(t){return _u*Math.cos(t*Math.PI/180)}function wu(t){return(180+t)/360}function xu(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Eu(t,e){return t/bu(e)}function Tu(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}function Su(t,e,n){void 0===n&&(n=0),this.x=+t,this.y=+e,this.z=+n}Su.fromLngLat=function(t,e){void 0===e&&(e=0);var n=gu.convert(t);return new Su(wu(n.lng),xu(n.lat),Eu(e,n.lat))},Su.prototype.toLngLat=function(){return new gu(360*this.x-180,Tu(this.y))},Su.prototype.toAltitude=function(){return this.z*bu(Tu(this.y))},Su.prototype.meterInMercatorCoordinateUnits=function(){return 1/_u*(t=Tu(this.y),1/Math.cos(t*Math.PI/180));var t};function Iu(t,e,n){this.z=t,this.x=e,this.y=n,this.key=Cu(0,t,e,n)}Iu.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Iu.prototype.url=function(t,e){var n,r,i,o,a,s=(r=this.y,o=yu(256*(n=this.x),256*(r=Math.pow(2,i=this.z)-r-1),i),a=yu(256*(n+1),256*(r+1),i),o[0]+","+o[1]+","+a[0]+","+a[1]),u=function(t,e,n){for(var r,i="",o=t;0>e,this.canonical.y>>e)},ku.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>e&&t.canonical.y===this.canonical.y>>e},ku.prototype.children=function(t){if(t<=this.overscaledZ)return[new ku(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new ku(e,this.wrap,e,n,r),new ku(e,this.wrap,e,1+n,r),new ku(e,this.wrap,e,n,1+r),new ku(e,this.wrap,e,1+n,1+r)]},ku.prototype.isLessThan=function(t){return this.wrape)this.deletedStates[t]=null;else if(this.stateChanges[t]&&this.stateChanges[t][r])for(n in this.deletedStates[t][r]={},this.stateChanges[t][r])this.deletedStates[t][r][n]=null;else this.deletedStates[t][r]=null}},Ru.prototype.getState=function(t,e){var n=e+"",r=p({},(this.state[t]||{})[n],(this.stateChanges[t]||{})[n]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var i=this.deletedStates[t][e];if(null===i)return{};for(var o in i)delete r[o]}return r},Ru.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},Ru.prototype.coalesceChanges=function(t,e){var n={};for(var r in this.stateChanges){this.state[r]=this.state[r]||{};var i={};for(var o in this.stateChanges[r])this.state[r][o]||(this.state[r][o]={}),p(this.state[r][o],this.stateChanges[r][o]),i[o]=this.state[r][o];n[r]=i}for(var a in this.deletedStates){this.state[a]=this.state[a]||{};var s={};if(null===this.deletedStates[a])for(var u in this.state[a])s[u]={},this.state[a][u]={};else for(var c in this.deletedStates[a]){if(null===this.deletedStates[a][c])this.state[a][c]={};else for(var l=0,h=Object.keys(this.deletedStates[a][c]);l>a.z,u=new Z(a.x*s,a.y*s),c=new Z(u.x+s,u.y+s),l=this.segments.prepareSegment(4,n,r);n.emplaceBack(u.x,u.y,u.x,u.y),n.emplaceBack(c.x,u.y,c.x,u.y),n.emplaceBack(u.x,c.y,u.x,c.y),n.emplaceBack(c.x,c.y,c.x,c.y);var h=l.vertexLength;r.emplaceBack(h,h+1,h+2),r.emplaceBack(h+1,h+2,h+3),l.vertexLength+=4,l.primitiveLength+=2}this.maskedBoundsBuffer=e.createVertexBuffer(n,Mu.members),this.maskedIndexBuffer=e.createIndexBuffer(r)}},Fu.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},Fu.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},Fu.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var n=E(t.cacheControl);n["max-age"]&&(this.expirationTime=Date.now()+1e3*n["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var r=Date.now(),i=!1;if(r=y){for(;y+_=e.length)return;_=e[m].dist(e[m+1])}var E=x-y,T=e[m],S=e[m+1].sub(T)._unit()._mult(E)._add(T)._round();t.emplaceBack(S.x,S.y,-o/2,-o/2,o/2,o/2,a,s,u,o/2,Math.abs(x-p)>1)-1;0<=n;n--)this._down(n)};function Qu(t,e){return t>1,o=e[i];if(0<=n(r,o))break;e[t]=o,t=i}e[t]=r},Hu.prototype._down=function(t){for(var e=this.data,n=this.compare,r=this.length>>1,i=e[t];t>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(u=0,n){case 3:u^=(255&t.charCodeAt(c+2))<<16;case 2:u^=(255&t.charCodeAt(c+1))<<8;case 1:i^=u=(65535&(u=(u=(65535&(u^=255&t.charCodeAt(c)))*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295}return i^=t.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}}),$u=e(function(t){t.exports=function(t,e){for(var n,r=t.length,i=e^r,o=0;4<=r;)n=1540483477*(65535&(n=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:i^=(255&t.charCodeAt(o+2))<<16;case 2:i^=(255&t.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}}),tc=Yu,ec=$u;tc.murmur3=Yu,tc.murmur2=ec;function nc(t,e){return e[1]!==1/0?function(t,e,n){var r=0,i=0;switch(e=Math.abs(e),n=Math.abs(n),t){case"top-right":case"top-left":case"top":i=n-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-n}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,i]}(t,e[0],e[1]):function(t,e){var n=0,r=0;e<0&&(e=0);var i=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":r=i-7;break;case"bottom-right":case"bottom-left":r=7-i;break;case"bottom":r=7-e;break;case"top":r=e-7}switch(t){case"top-right":case"bottom-right":n=-i;break;case"top-left":case"bottom-left":n=i;break;case"left":n=e;break;case"right":n=-e}return[n,r]}(t,e[0])}function rc(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 ic=65535;function oc(t,e,n,r,i,o,a,s,u,c,l,h,f,p){var d=function(t,e,n,r,i,o,a,s){for(var u=r.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,c=e.positionedGlyphs,l=[],h=0;hic&&X(t.layerIds[0]+': Value for "text-size" is >= 256. Reduce your "text-size".'):"composite"===m.kind&&((y=[ps*p.compositeTextSizes[0].evaluate(o,{}),ps*p.compositeTextSizes[1].evaluate(o,{})])[0]>ic||ic= 256. Reduce your "text-size".'),t.addSymbols(t.text,d,y,a,i,o,u,e,s.lineStartIndex,s.lineLength,f);for(var v=0,g=c;vrt&&(t.getActor().send("enforceCacheSizeLimit",nt),ot=0)},t.clamp=s,t.clearTileCache=function(t){var e=self.caches.delete(et);t&&e.catch(t).then(function(){return t()})},t.clone=function(t){var e=new go(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=_,t.config=L,t.create=function(){var t=new go(16);return go!=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 go(9);return go!=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 go(4);return go!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=gn,t.createLayout=Gr,t.createStyleLayer=function(t){return"custom"===t.type?new Ls(t):new Os[t.type](t)},t.deepEqual=f,t.ease=o,t.emitValidationErrors=nr,t.endsWith=y,t.enforceCacheSizeLimit=function(r){self.caches&&self.caches.open(et).then(function(n){n.keys().then(function(t){for(var e=0;eic&&X(t.layerIds[0]+': Value for "icon-size" is >= 256. Reduce your "icon-size".'):"composite"===B.kind&&((z=[ps*b.compositeIconSizes[0].evaluate(g,{}),ps*b.compositeIconSizes[1].evaluate(g,{})])[0]>ic||ic= 256. Reduce your "icon-size".'),t.addSymbols(t.icon,N,z,v,y,g,!1,e,S.lineStartIndex,S.lineLength,-1),C=t.icon.placedSymbolArray.length-1}for(var F in r.horizontal){var U=r.horizontal[F];if(!x){P=tc(U.text);var j=o.layout.get("text-rotate").evaluate(g,{});x=new Ku(a,n,e,s,u,c,U,l,h,f,t.overscaling,j)}var V=1===U.lineCount;if(A+=oc(t,e,U,o,f,g,p,S,r.vertical?ns.horizontal:ns.horizontalOnly,V?Object.keys(r.horizontal):[F],D,_,C,b),V)break}r.vertical&&(k+=oc(t,e,r.vertical,o,f,g,p,S,ns.vertical,["vertical"],D,_,C,b));var q=x?x.boxStartIndex:t.collisionBoxArray.length,G=x?x.boxEndIndex:t.collisionBoxArray.length,W=T?T.boxStartIndex:t.collisionBoxArray.length,K=T?T.boxEndIndex:t.collisionBoxArray.length,H=E?E.boxStartIndex:t.collisionBoxArray.length,Q=E?E.boxEndIndex:t.collisionBoxArray.length;t.glyphOffsetArray.lengthh.x||(h=new Z(r,l.y+(r-l.x)/(h.x-l.x)*(h.y-l.y))._round()):l=new Z(r,l.y+(r-l.x)/(h.x-l.x)*(h.y-l.y))._round(),i<=l.y&&i<=h.y||(l.yh.y||(h=new Z(l.x+(i-l.y)/(h.y-l.y)*(h.x-l.x),i)._round()):l=new Z(l.x+(i-l.y)/(h.y-l.y)*(h.x-l.x),i)._round(),u&&l.equals(u[u.length-1])||o.push(u=[l]),u.push(h)))))}return o}(r.geometry,0,0,Zi,Zi);A>31}function N(t,e){for(var n=t.loadGeometry(),r=t.type,i=0,o=0,a=n.length,s=0;sr){var s=i+o>>1;!function t(e,n,r,i,o,a){for(;ia){var d=Math.floor((p+f)/2);u=e[2*d+1],(s=e[2*d])o){var f=Math.floor((h+l)/2),p=e[2*f],d=e[2*f+1];U(p,d,n,r)>u||s.push(t[f]);var m=(c+1)%2;(0===c?pu||s.push(t[y])}return s}(this.ids,this.coords,t,e,n,this.nodeSize)}),reduce:null,map:function(t){return t}};function K(t,e,n,r,i){return{x:t,y:e,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:i}}function H(t,e){var n=t.geometry.coordinates,r=n[1];return{x:X(n[0]),y:J(r),zoom:1/0,index:e,parentId:-1}}function Q(t){return{type:"Feature",id:t.id,properties:Z(t),geometry:{type:"Point",coordinates:[(r=t.x,360*(r-.5)),(e=t.y,n=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var e,n,r}function Z(t){var e=t.numPoints,n=e<1e4?e<1e3?e:Math.round(e/100)/10+"k":Math.round(e/1e3)+"k";return Y(Y({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:n})}function X(t){return t/360+.5}function J(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:1>1,u=r-n,c=e[n],l=e[n+1],h=e[r],f=e[r+1],p=n+3;p=(n/=e)&&a=e[u+2]||(n.numSimplified++,s.push(e[u]),s.push(e[u+1])),n.numPoints++;i&&function(t,e){for(var n=0,r=0,i=t.length,o=i-2;rt[2]-t[0]){if(i>5,n=t%32,r="No cluster with the specified id.",i=this.trees[n];if(!i)throw Error(r);var o=i.points[e];if(!o)throw Error(r);for(var a=[],s=0,u=i.within(o.x,o.y,this.options.radius/(this.options.extent*Math.pow(2,n-1)));se){for(var u=this.trees[(s.zoom=e)+1],c=u.within(s.x,s.y,o),l=s.numPoints||1,h=s.x*l,f=s.y*l,p=i&&1e){v.zoom=e;var g=v.numPoints||1;h+=v.x*g,f+=v.y*g,l+=g,v.parentId=d,i&&i(p=p||this._map(s,!0),this._map(v))}}1===l?n.push(s):n.push(K(h/l,f/l,s.parentId=d,l,p))}}return n},St.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!(G.prototype._map=function(t,e){if(t.numPoints)return e?Y({},t.properties):t.properties;var n=this.points[t.index].properties,r=this.options.map(n);return e&&r===n?Y({},r):r}),promoteId:null,generateId:!1,debug:0},St.prototype.splitTile=function(t,e,n,r,i,o,a){for(var s=[t,e,n,r],u=this.options,c=u.debug;s.length;){r=s.pop(),n=s.pop(),e=s.pop(),t=s.pop();var l=1< 65535 not supported"));else{var s=o.requests[a];s||(s=o.requests[a]=[],v.loadGlyphRange(r,a,u.url,u.requestManager,function(t,e){if(e)for(var n in e)u._doesCharSupportLocalGlyph(+n)||(o.glyphs[+n]=e[+n]);for(var r=0,i=s;re.end(0)?this.fire(new nt.ErrorEvent(new nt.ValidationError("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},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&&2<=this.video.readyState){var t=this.map.painter.context,e=t.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,nt.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=nt.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 nt.Texture(t,this.video,e.RGBA),this.texture.bind(e.LINEAR,e.CLAMP_TO_EDGE)),this.tiles){var r=this.tiles[n];"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}(D),M=function(i){function t(t,e,n,r){i.call(this,t,e,n,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 nt.ErrorEvent(new nt.ValidationError("sources."+t,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new nt.ErrorEvent(new nt.ValidationError("sources."+t,null,'missing required property "coordinates"'))),e.animate&&"boolean"!=typeof e.animate&&this.fire(new nt.ErrorEvent(new nt.ValidationError("sources."+t,null,'optional "animate" property must be a boolean value'))),e.canvas?"string"==typeof e.canvas||e.canvas instanceof nt.window.HTMLCanvasElement||this.fire(new nt.ErrorEvent(new nt.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 nt.ErrorEvent(new nt.ValidationError("sources."+t,null,'missing required property "canvas"'))),this.options=e,this.animate=void 0===e.animate||e.animate}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof nt.window.HTMLCanvasElement?this.options.canvas:nt.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new nt.ErrorEvent(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,n=e.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,nt.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=nt.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new nt.Texture(e,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var i=this.tiles[r];"loaded"!==i.state&&(i.state="loaded",i.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];tnt.browser.now())){var d=this.findLoadedParent(f,i);d&&(this._addTile(d.tileID),s[d.tileID.key]=d.tileID),u[h]=f}}for(var m in this._retainLoadedChildren(u,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=nt.keysDifference(this._tiles,a);v=nt.browser.now())return!0}return!1},w.prototype.setFeatureState=function(t,e,n){this._state.updateState(t=t||"_geojsonTileLayer",e,n)},w.prototype.removeFeatureState=function(t,e,n){this._state.removeFeatureState(t=t||"_geojsonTileLayer",e,n)},w.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||"_geojsonTileLayer",e)},w}(nt.Evented);function Dt(t,e){return t%32-e%32||e-t}function Pt(t){return"raster"===t||"image"===t||"video"===t}function Mt(){return new nt.window.Worker(Yr.workerUrl)}Ct.maxOverzooming=10,Ct.maxUnderzooming=3;function Lt(){this.active={}}var Ot;function Rt(t,e){var n={};for(var r in t)"ref"!==r&&(n[r]=t[r]);return nt.refProperties.forEach(function(t){t in e&&(n[t]=e[t])}),n}function Nt(t){t=t.slice();for(var e=Object.create(null),n=0;n 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;}"),We=cn("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;}"),Ke=cn("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);}"),He=cn("#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);}"),Qe=cn("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;}"),Ze=cn("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;}"),Xe=cn("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);}"),Je=cn("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;}"),Ye=cn("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(edgedistance,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;}"),$e=cn("#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;}"),tn=cn("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;}"),en=cn("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);}"),nn=cn("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);}"),rn=cn("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);}"),on=cn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform 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);}"),an=cn("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;}"),sn=cn("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 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;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[0],a_size[1],u_size_t)/256.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size[0]/256.0;} else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {size=u_size;} 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),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));}"),un=cn("#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 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;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[0],a_size[1],u_size_t)/256.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size[0]/256.0;} else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {size=u_size;} 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),0.0,1.0);float gamma_scale=gl_Position.w;vec2 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;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=vec2(tex.x,tex.y);v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}");function cn(t,e){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,s={};return{fragmentSource:t=t.replace(n,function(t,e,n,r,i){return s[i]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nvarying "+n+" "+r+" "+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n"}),vertexSource:e=e.replace(n,function(t,e,n,r,i){var o="float"===r?"vec2":"vec4",a=i.match(/color/)?"color":o;return s[i]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+o+" a_"+i+";\nvarying "+n+" "+r+" "+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"vec4"==a?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = a_"+i+";\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = unpack_mix_"+a+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+o+" a_"+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"vec4"==a?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = a_"+i+";\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = unpack_mix_"+a+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n"})}}function ln(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}var hn=Object.freeze({prelude:Be,background:ze,backgroundPattern:Fe,circle:Ue,clippingMask:je,heatmap:Ve,heatmapTexture:qe,collisionBox:Ge,collisionCircle:We,debug:Ke,fill:He,fillOutline:Qe,fillOutlinePattern:Ze,fillPattern:Xe,fillExtrusion:Je,fillExtrusionPattern:Ye,hillshadePrepare:$e,hillshade:tn,line:en,lineGradient:nn,linePattern:rn,lineSDF:on,raster:an,symbolIcon:sn,symbolSDF:un});ln.prototype.bind=function(t,e,n,r,i,o,a,s){this.context=t;for(var u=this.boundPaintVertexBuffers.length!==r.length,c=0;!u&&c>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}fn.prototype.draw=function(t,e,n,r,i,o,a,s,u,c,l,h,f,p,d,m){var y,v=t.gl;for(var g in t.program.set(this.program),t.setDepthMode(n),t.setStencilMode(r),t.setColorMode(i),t.setCullFace(o),this.fixedUniforms)this.fixedUniforms[g].set(a[g]);p&&p.setUniforms(t,this.binderUniforms,h,{zoom:f});for(var _=((y={})[v.LINES]=2,y[v.TRIANGLES]=3,y[v.LINE_STRIP]=1,y)[e],b=0,w=l.get();b>16,f>>16],u_pixel_coord_lower:[65535&h,65535&f]}}(r,o,n,i),{u_matrix:t,u_opacity:e})}var Un={fillExtrusion:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_lightpos:new nt.Uniform3f(t,e.u_lightpos),u_lightintensity:new nt.Uniform1f(t,e.u_lightintensity),u_lightcolor:new nt.Uniform3f(t,e.u_lightcolor),u_vertical_gradient:new nt.Uniform1f(t,e.u_vertical_gradient),u_opacity:new nt.Uniform1f(t,e.u_opacity)}},fillExtrusionPattern:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_lightpos:new nt.Uniform3f(t,e.u_lightpos),u_lightintensity:new nt.Uniform1f(t,e.u_lightintensity),u_lightcolor:new nt.Uniform3f(t,e.u_lightcolor),u_vertical_gradient:new nt.Uniform1f(t,e.u_vertical_gradient),u_height_factor:new nt.Uniform1f(t,e.u_height_factor),u_image:new nt.Uniform1i(t,e.u_image),u_texsize:new nt.Uniform2f(t,e.u_texsize),u_pixel_coord_upper:new nt.Uniform2f(t,e.u_pixel_coord_upper),u_pixel_coord_lower:new nt.Uniform2f(t,e.u_pixel_coord_lower),u_scale:new nt.Uniform4f(t,e.u_scale),u_fade:new nt.Uniform1f(t,e.u_fade),u_opacity:new nt.Uniform1f(t,e.u_opacity)}},fill:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix)}},fillPattern:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_image:new nt.Uniform1i(t,e.u_image),u_texsize:new nt.Uniform2f(t,e.u_texsize),u_pixel_coord_upper:new nt.Uniform2f(t,e.u_pixel_coord_upper),u_pixel_coord_lower:new nt.Uniform2f(t,e.u_pixel_coord_lower),u_scale:new nt.Uniform4f(t,e.u_scale),u_fade:new nt.Uniform1f(t,e.u_fade)}},fillOutline:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_world:new nt.Uniform2f(t,e.u_world)}},fillOutlinePattern:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_world:new nt.Uniform2f(t,e.u_world),u_image:new nt.Uniform1i(t,e.u_image),u_texsize:new nt.Uniform2f(t,e.u_texsize),u_pixel_coord_upper:new nt.Uniform2f(t,e.u_pixel_coord_upper),u_pixel_coord_lower:new nt.Uniform2f(t,e.u_pixel_coord_lower),u_scale:new nt.Uniform4f(t,e.u_scale),u_fade:new nt.Uniform1f(t,e.u_fade)}},circle:function(t,e){return{u_camera_to_center_distance:new nt.Uniform1f(t,e.u_camera_to_center_distance),u_scale_with_map:new nt.Uniform1i(t,e.u_scale_with_map),u_pitch_with_map:new nt.Uniform1i(t,e.u_pitch_with_map),u_extrude_scale:new nt.Uniform2f(t,e.u_extrude_scale),u_device_pixel_ratio:new nt.Uniform1f(t,e.u_device_pixel_ratio),u_matrix:new nt.UniformMatrix4f(t,e.u_matrix)}},collisionBox:wn,collisionCircle:wn,debug:function(t,e){return{u_color:new nt.UniformColor(t,e.u_color),u_matrix:new nt.UniformMatrix4f(t,e.u_matrix)}},clippingMask:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix)}},heatmap:function(t,e){return{u_extrude_scale:new nt.Uniform1f(t,e.u_extrude_scale),u_intensity:new nt.Uniform1f(t,e.u_intensity),u_matrix:new nt.UniformMatrix4f(t,e.u_matrix)}},heatmapTexture:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_world:new nt.Uniform2f(t,e.u_world),u_image:new nt.Uniform1i(t,e.u_image),u_color_ramp:new nt.Uniform1i(t,e.u_color_ramp),u_opacity:new nt.Uniform1f(t,e.u_opacity)}},hillshade:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_image:new nt.Uniform1i(t,e.u_image),u_latrange:new nt.Uniform2f(t,e.u_latrange),u_light:new nt.Uniform2f(t,e.u_light),u_shadow:new nt.UniformColor(t,e.u_shadow),u_highlight:new nt.UniformColor(t,e.u_highlight),u_accent:new nt.UniformColor(t,e.u_accent)}},hillshadePrepare:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_image:new nt.Uniform1i(t,e.u_image),u_dimension:new nt.Uniform2f(t,e.u_dimension),u_zoom:new nt.Uniform1f(t,e.u_zoom),u_maxzoom:new nt.Uniform1f(t,e.u_maxzoom),u_unpack:new nt.Uniform4f(t,e.u_unpack)}},line:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_ratio:new nt.Uniform1f(t,e.u_ratio),u_device_pixel_ratio:new nt.Uniform1f(t,e.u_device_pixel_ratio),u_units_to_pixels:new nt.Uniform2f(t,e.u_units_to_pixels)}},lineGradient:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_ratio:new nt.Uniform1f(t,e.u_ratio),u_device_pixel_ratio:new nt.Uniform1f(t,e.u_device_pixel_ratio),u_units_to_pixels:new nt.Uniform2f(t,e.u_units_to_pixels),u_image:new nt.Uniform1i(t,e.u_image)}},linePattern:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_texsize:new nt.Uniform2f(t,e.u_texsize),u_ratio:new nt.Uniform1f(t,e.u_ratio),u_device_pixel_ratio:new nt.Uniform1f(t,e.u_device_pixel_ratio),u_image:new nt.Uniform1i(t,e.u_image),u_units_to_pixels:new nt.Uniform2f(t,e.u_units_to_pixels),u_scale:new nt.Uniform4f(t,e.u_scale),u_fade:new nt.Uniform1f(t,e.u_fade)}},lineSDF:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_ratio:new nt.Uniform1f(t,e.u_ratio),u_device_pixel_ratio:new nt.Uniform1f(t,e.u_device_pixel_ratio),u_units_to_pixels:new nt.Uniform2f(t,e.u_units_to_pixels),u_patternscale_a:new nt.Uniform2f(t,e.u_patternscale_a),u_patternscale_b:new nt.Uniform2f(t,e.u_patternscale_b),u_sdfgamma:new nt.Uniform1f(t,e.u_sdfgamma),u_image:new nt.Uniform1i(t,e.u_image),u_tex_y_a:new nt.Uniform1f(t,e.u_tex_y_a),u_tex_y_b:new nt.Uniform1f(t,e.u_tex_y_b),u_mix:new nt.Uniform1f(t,e.u_mix)}},raster:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_tl_parent:new nt.Uniform2f(t,e.u_tl_parent),u_scale_parent:new nt.Uniform1f(t,e.u_scale_parent),u_buffer_scale:new nt.Uniform1f(t,e.u_buffer_scale),u_fade_t:new nt.Uniform1f(t,e.u_fade_t),u_opacity:new nt.Uniform1f(t,e.u_opacity),u_image0:new nt.Uniform1i(t,e.u_image0),u_image1:new nt.Uniform1i(t,e.u_image1),u_brightness_low:new nt.Uniform1f(t,e.u_brightness_low),u_brightness_high:new nt.Uniform1f(t,e.u_brightness_high),u_saturation_factor:new nt.Uniform1f(t,e.u_saturation_factor),u_contrast_factor:new nt.Uniform1f(t,e.u_contrast_factor),u_spin_weights:new nt.Uniform3f(t,e.u_spin_weights)}},symbolIcon:function(t,e){return{u_is_size_zoom_constant:new nt.Uniform1i(t,e.u_is_size_zoom_constant),u_is_size_feature_constant:new nt.Uniform1i(t,e.u_is_size_feature_constant),u_size_t:new nt.Uniform1f(t,e.u_size_t),u_size:new nt.Uniform1f(t,e.u_size),u_camera_to_center_distance:new nt.Uniform1f(t,e.u_camera_to_center_distance),u_pitch:new nt.Uniform1f(t,e.u_pitch),u_rotate_symbol:new nt.Uniform1i(t,e.u_rotate_symbol),u_aspect_ratio:new nt.Uniform1f(t,e.u_aspect_ratio),u_fade_change:new nt.Uniform1f(t,e.u_fade_change),u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_label_plane_matrix:new nt.UniformMatrix4f(t,e.u_label_plane_matrix),u_coord_matrix:new nt.UniformMatrix4f(t,e.u_coord_matrix),u_is_text:new nt.Uniform1f(t,e.u_is_text),u_pitch_with_map:new nt.Uniform1i(t,e.u_pitch_with_map),u_texsize:new nt.Uniform2f(t,e.u_texsize),u_texture:new nt.Uniform1i(t,e.u_texture)}},symbolSDF:function(t,e){return{u_is_size_zoom_constant:new nt.Uniform1i(t,e.u_is_size_zoom_constant),u_is_size_feature_constant:new nt.Uniform1i(t,e.u_is_size_feature_constant),u_size_t:new nt.Uniform1f(t,e.u_size_t),u_size:new nt.Uniform1f(t,e.u_size),u_camera_to_center_distance:new nt.Uniform1f(t,e.u_camera_to_center_distance),u_pitch:new nt.Uniform1f(t,e.u_pitch),u_rotate_symbol:new nt.Uniform1i(t,e.u_rotate_symbol),u_aspect_ratio:new nt.Uniform1f(t,e.u_aspect_ratio),u_fade_change:new nt.Uniform1f(t,e.u_fade_change),u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_label_plane_matrix:new nt.UniformMatrix4f(t,e.u_label_plane_matrix),u_coord_matrix:new nt.UniformMatrix4f(t,e.u_coord_matrix),u_is_text:new nt.Uniform1f(t,e.u_is_text),u_pitch_with_map:new nt.Uniform1i(t,e.u_pitch_with_map),u_texsize:new nt.Uniform2f(t,e.u_texsize),u_texture:new nt.Uniform1i(t,e.u_texture),u_gamma_scale:new nt.Uniform1f(t,e.u_gamma_scale),u_device_pixel_ratio:new nt.Uniform1f(t,e.u_device_pixel_ratio),u_is_halo:new nt.Uniform1f(t,e.u_is_halo)}},background:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_opacity:new nt.Uniform1f(t,e.u_opacity),u_color:new nt.UniformColor(t,e.u_color)}},backgroundPattern:function(t,e){return{u_matrix:new nt.UniformMatrix4f(t,e.u_matrix),u_opacity:new nt.Uniform1f(t,e.u_opacity),u_image:new nt.Uniform1i(t,e.u_image),u_pattern_tl_a:new nt.Uniform2f(t,e.u_pattern_tl_a),u_pattern_br_a:new nt.Uniform2f(t,e.u_pattern_br_a),u_pattern_tl_b:new nt.Uniform2f(t,e.u_pattern_tl_b),u_pattern_br_b:new nt.Uniform2f(t,e.u_pattern_br_b),u_texsize:new nt.Uniform2f(t,e.u_texsize),u_mix:new nt.Uniform1f(t,e.u_mix),u_pattern_size_a:new nt.Uniform2f(t,e.u_pattern_size_a),u_pattern_size_b:new nt.Uniform2f(t,e.u_pattern_size_b),u_scale_a:new nt.Uniform1f(t,e.u_scale_a),u_scale_b:new nt.Uniform1f(t,e.u_scale_b),u_pixel_coord_upper:new nt.Uniform2f(t,e.u_pixel_coord_upper),u_pixel_coord_lower:new nt.Uniform2f(t,e.u_pixel_coord_lower),u_tile_units_to_pixels:new nt.Uniform1f(t,e.u_tile_units_to_pixels)}}};function jn(t,e){for(var n=t.sort(function(t,e){return t.tileID.isLessThan(e.tileID)?-1:e.tileID.isLessThan(t.tileID)?1:0}),r=0;r":[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,11,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]]},or={symbol:function(t,e,n,r,i){if("translucent"===t.renderPass){var o=St.disabled,a=t.colorModeForRenderPass();n.layout.get("text-variable-anchor")&&function(t,e,n,r,i,o,a){for(var s=e.transform,u="map"===i,c="map"===o,l=0,h=t;l=t.points.length)if(this._tapped){var n=this._tappedPoint;if(n&&n.dist(t.points[0])<=30){t.originalEvent.preventDefault();var r=function(){e._tapped&&e._zoom(t),e._map.off("touchcancel",i),e._resetTapped()},i=function(){e._map.off("touchend",r),e._resetTapped()};this._map.once("touchend",r),this._map.once("touchcancel",i)}else this._resetTapped()}else this._tappedPoint=t.points[0],this._tapped=setTimeout(function(){e._tapped=null,e._tappedPoint=null},300)},Er.prototype._resetTapped=function(){clearTimeout(this._tapped),this._tapped=null,this._tappedPoint=null},Er.prototype.onDblClick=function(t){this.isEnabled()&&(t.originalEvent.preventDefault(),this._zoom(t))},Er.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)},Er.prototype._onZoomEnd=function(){this._active=!1,this._map.off("zoomend",this._onZoomEnd)};function Tr(t){this._map=t,this._el=t.getCanvasContainer(),nt.bindAll(["_onMove","_onEnd","_onTouchFrame"],this)}var Sr=nt.bezier(0,0,.15,1);Tr.prototype.isEnabled=function(){return!!this._enabled},Tr.prototype.enable=function(t){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-zoom-rotate"),this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around)},Tr.prototype.disable=function(){this.isEnabled()&&(this._el.classList.remove("mapboxgl-touch-zoom-rotate"),this._enabled=!1)},Tr.prototype.disableRotation=function(){this._rotationDisabled=!0},Tr.prototype.enableRotation=function(){this._rotationDisabled=!1},Tr.prototype.isActive=function(){return this.isEnabled()&&!!this._gestureIntent},Tr.prototype.onStart=function(t){if(this.isEnabled()&&2===t.touches.length){var e=_.mousePos(this._el,t.touches[0]),n=_.mousePos(this._el,t.touches[1]),r=e.add(n).div(2);this._startVec=e.sub(n),this._startAround=this._map.transform.pointLocation(r),this._gestureIntent=void 0,this._inertia=[],_.addEventListener(nt.window.document,"touchmove",this._onMove,{passive:!1}),_.addEventListener(nt.window.document,"touchend",this._onEnd)}},Tr.prototype._getTouchEventData=function(t){var e=_.mousePos(this._el,t.touches[0]),n=_.mousePos(this._el,t.touches[1]),r=e.sub(n);return{vec:r,center:e.add(n).div(2),scale:r.mag()/this._startVec.mag(),bearing:this._rotationDisabled?0:180*r.angleWith(this._startVec)/Math.PI}},Tr.prototype._onMove=function(t){if(2===t.touches.length){var e=this._getTouchEventData(t),n=e.vec,r=e.scale,i=e.bearing;if(!this._gestureIntent){var o=this._rotationDisabled&&1!==r||.15=r.clickTolerance||n.fire(new pr("click",n,t))}),_.addEventListener(i,"dblclick",function(t){var e=new pr("dblclick",n,t);n.fire(e),e.defaultPrevented||n.doubleClickZoom.onDblClick(e)}),_.addEventListener(i,"contextmenu",function(t){var e=n.dragRotate.isActive();a||e?a&&(o=t):n.fire(new pr("contextmenu",n,t)),(n.dragRotate.isEnabled()||n.listens("contextmenu"))&&t.preventDefault()}),_.addEventListener(i,"wheel",function(t){r.interactive&&n.stop();var e=new mr("wheel",n,t);n.fire(e),e.defaultPrevented||n.scrollZoom.onWheel(t)},{passive:!1})}(this,t),this._hash=t.hash&&(new hr).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,nt.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 Ir({customAttribution:t.customAttribution})),this.addControl(new Cr,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 nt.Event(t.dataType+"data",t))}),this.on("dataloading",function(t){e.fire(new nt.Event(t.dataType+"dataloading",t))})}s&&(t.__proto__=s);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(s&&s.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 nt.ErrorEvent(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var n=t.onAdd(this);this._controls.push(t);var r=this._controlPositions[e];return~e.indexOf("bottom")?r.insertBefore(n,r.firstChild):r.appendChild(n),this},t.prototype.removeControl=function(t){if(!t||!t.onRemove)return this.fire(new nt.ErrorEvent(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var e=this._controls.indexOf(t);return-1=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw Error("maxZoom must be greater than the current minZoom")},t.prototype.getMaxZoom=function(){return this.transform.maxZoom},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(nt.LngLat.convert(t))},t.prototype.unproject=function(t){return this.transform.pointLocation(nt.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.on=function(r,i,o){var a=this;if(void 0===o)return s.prototype.on.call(this,r,i);var t=function(){var t;if("mouseenter"===r||"mouseover"===r){var n=!1;return{layer:i,listener:o,delegates:{mousemove:function(t){var e=a.getLayer(i)?a.queryRenderedFeatures(t.point,{layers:[i]}):[];e.length?n||(n=!0,o.call(a,new pr(r,a,t.originalEvent,{features:e}))):n=!1},mouseout:function(){n=!1}}}}if("mouseleave"!==r&&"mouseout"!==r)return{layer:i,listener:o,delegates:(t={},t[r]=function(t){var e=a.getLayer(i)?a.queryRenderedFeatures(t.point,{layers:[i]}):[];e.length&&(t.features=e,o.call(a,t),delete t.features)},t)};var e=!1;return{layer:i,listener:o,delegates:{mousemove:function(t){(a.getLayer(i)?a.queryRenderedFeatures(t.point,{layers:[i]}):[]).length?e=!0:e&&(e=!1,o.call(a,new pr(r,a,t.originalEvent)))},mouseout:function(t){e&&(e=!1,o.call(a,new pr(r,a,t.originalEvent)))}}}}();for(var e in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[r]=this._delegatedListeners[r]||[],this._delegatedListeners[r].push(t),t.delegates)this.on(e,t.delegates[e]);return this},t.prototype.off=function(t,e,n){if(void 0===n)return s.prototype.off.call(this,t,e);if(this._delegatedListeners&&this._delegatedListeners[t])for(var r=this._delegatedListeners[t],i=0;i":"<","<":">","=":"="};function A(t,e){return{modify:function(t){return e.Direction.is("rtl")?-t:t}}}var k=!1;try{var C=Object.defineProperty({},"passive",{get:function(){k=!0}});window.addEventListener("testPassive",null,C),window.removeEventListener("testPassive",null,C)}catch(t){}var D=k,P=["touchstart","mousedown"],M=["touchmove","mousemove"],L=["touchend","touchcancel","mouseup","mouseleave"],O=["mousedown","mousemove","mouseup","mouseleave"];function R(h,f,p){var n=new T,d=0,m=0,y=0,r=!1,i=!!D&&{passive:!0},t={mount:function(){this.bindSwipeStart()},start:function(t){if(!r&&!h.disabled){this.disable();var e=this.touches(t);d=null,m=v(e.pageX),y=v(e.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),p.emit("swipe.start")}},move:function(t){if(!h.disabled){var e=h.settings,n=e.touchAngle,r=e.touchRatio,i=e.classes,o=this.touches(t),a=v(o.pageX)-m,s=v(o.pageY)-y,u=Math.abs(a<<2),c=Math.abs(s<<2),l=Math.sqrt(u+c);if(180*(d=Math.asin(Math.sqrt(c)/l))/Math.PI>=n)return!1;t.stopPropagation(),f.Move.make(a*parseFloat(r)),f.Html.root.classList.add(i.dragging),p.emit("swipe.move")}},end:function(t){if(!h.disabled){var e=h.settings,n=this.touches(t),r=this.threshold(t),i=n.pageX-m,o=180*d/Math.PI,a=Math.round(i/f.Sizes.slideWidth);this.enable(),r"+a))):f.Move.make(),f.Html.root.classList.remove(e.classes.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),p.emit("swipe.end")}},bindSwipeStart:function(){var e=this,t=h.settings;t.swipeThreshold&&n.on(P[0],f.Html.wrapper,function(t){e.start(t)},i),t.dragThreshold&&n.on(P[1],f.Html.wrapper,function(t){e.start(t)},i)},unbindSwipeStart:function(){n.off(P[0],f.Html.wrapper,i),n.off(P[1],f.Html.wrapper,i)},bindSwipeMove:function(){var e=this;n.on(M,f.Html.wrapper,_(function(t){e.move(t)},h.settings.throttle),i)},unbindSwipeMove:function(){n.off(M,f.Html.wrapper,i)},bindSwipeEnd:function(){var e=this;n.on(L,f.Html.wrapper,function(t){e.end(t)})},unbindSwipeEnd:function(){n.off(L,f.Html.wrapper)},touches:function(t){return~O.indexOf(t.type)?t:t.touches[0]||t.changedTouches[0]},threshold:function(t){var e=h.settings;return~O.indexOf(t.type)?e.dragThreshold:e.swipeThreshold},enable:function(){return r=!1,f.Transition.enable(),this},disable:function(){return r=!0,f.Transition.disable(),this}};return p.on("build.after",function(){f.Html.root.classList.add(h.settings.classes.swipeable)}),p.on("destroy",function(){t.unbindSwipeStart(),t.unbindSwipeMove(),t.unbindSwipeEnd(),n.destroy()}),t}function N(t,e,n){var r=new T,i={mount:function(){this.bind()},bind:function(){r.on("dragstart",e.Html.wrapper,this.dragstart)},unbind:function(){r.off("dragstart",e.Html.wrapper)},dragstart:function(t){t.preventDefault()}};return n.on("destroy",function(){i.unbind(),r.destroy()}),i}function B(t,e,n){var r=new T,i=!1,o=!1,a={mount:function(){this._a=e.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){r.on("click",e.Html.wrapper,this.click)},unbind:function(){r.off("click",e.Html.wrapper)},click:function(t){o&&(t.stopPropagation(),t.preventDefault())},detach:function(){if(o=!0,!i){for(var t=0;t")),37===t.keyCode&&e.Run.make(e.Direction.resolve("<"))}};return n.on(["destroy","update"],function(){i.unbind()}),n.on("update",function(){i.mount()}),n.on("destroy",function(){r.destroy()}),i}function V(e,n,t){var r=new T,i={mount:function(){this.start(),e.settings.hoverpause&&this.bind()},start:function(){var t=this;e.settings.autoplay&&h(this._i)&&(this._i=setInterval(function(){t.stop(),n.Run.make(">"),t.start()},this.time))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var t=this;r.on("mouseover",n.Html.root,function(){t.stop()}),r.on("mouseout",n.Html.root,function(){t.start()})},unbind:function(){r.off(["mouseover","mouseout"],n.Html.root)}};return p(i,"time",{get:function(){return v(n.Html.slides[e.index].getAttribute("data-glide-autoplay")||e.settings.autoplay)}}),t.on(["destroy","update"],function(){i.unbind()}),t.on(["run.before","pause","destroy","swipe.start","update"],function(){i.stop()}),t.on(["run.after","play","swipe.end"],function(){i.start()}),t.on("update",function(){i.mount()}),t.on("destroy",function(){r.destroy()}),i}function q(t){return c(t)?Object.keys(n=t).sort().reduce(function(t,e){return t[e]=n[e],t},{}):{};var n}function G(t,e,n){var r=new T,i=t.settings,o=q(i.breakpoints),a=u({},i),s={match:function(t){if(void 0!==window.matchMedia)for(var e in t)if(t.hasOwnProperty(e)&&window.matchMedia("(max-width: "+e+"px)").matches)return t[e];return a}};return u(i,s.match(o)),r.on("resize",window,_(function(){t.settings=d(i,s.match(o))},t.settings.throttle)),n.on("update",function(){o=q(o),a=u({},i)}),n.on("destroy",function(){r.off("resize",window)}),s}var W={Html:function(e){var n={mount:function(){this.root=e.selector,this.track=this.root.querySelector(E),this.slides=Array.prototype.slice.call(this.wrapper.children).filter(function(t){return!t.classList.contains(e.settings.classes.cloneSlide)})}};return p(n,"root",{get:function(){return n._r},set:function(t){s(t)&&(t=document.querySelector(t)),x(t)&&(n._r=t)}}),p(n,"track",{get:function(){return n._t},set:function(t){x(t)&&(n._t=t)}}),p(n,"wrapper",{get:function(){return n.track.children[0]}}),n},Translate:function(i,o,a){var s={set:function(t){var e=function(r,i){var o=[function(e,n){return{modify:function(t){return t+n.Gaps.value*e.index}}},function(t,e){return{modify:function(t){return t+e.Clones.grow/2}}},function(n,r){return{modify:function(t){if(n.settings.focusAt<0)return t;var e=r.Peek.value;return c(e)?t-e.before:t-e}}},function(r,i){return{modify:function(t){var e=r.settings.focusAt,n=i.Sizes.slideWidth;return"center"===e?t-(i.Sizes.width/2-n/2):t-n*e-i.Gaps.value*e}}}].concat(r._t,[A]);return{mutate:function(t){for(var e=0;e")?(o.Transition.after(function(){a.emit("translate.jump"),s.set(0)}),s.set(r*n+e*n)):s.set(t.movement)}),a.on("destroy",function(){s.remove()}),s},Transition:function(n,e,t){var r=!1,i={compose:function(t){var e=n.settings;return r?t+" 0ms "+e.animationTimingFunc:t+" "+this.duration+"ms "+e.animationTimingFunc},set:function(t){e.Html.wrapper.style.transition=this.compose(0"))&&(e._o=!1,r.emit("run.offset",e.move)),r.emit("run.after",e.move),o.enable()}))},calculate:function(){var t=this.move,e=this.length,n=t.steps,r=t.direction,i="number"==typeof v(n)&&0!==v(n);switch(r){case">":">"===n?o.index=e:this.isEnd()?o.isType("slider")&&!o.settings.rewind||(this._o=!0,o.index=0):i?o.index+=Math.min(e-o.index,-v(n)):o.index++;break;case"<":"<"===n?o.index=0:this.isStart()?o.isType("slider")&&!o.settings.rewind||(this._o=!0,o.index=e):i?o.index-=Math.min(o.index,v(n)):o.index--;break;case"=":o.index=n}},isStart:function(){return 0===o.index},isEnd:function(){return o.index===this.length},isOffset:function(t){return this._o&&this.move.direction===t}};return p(t,"move",{get:function(){return this._m},set:function(t){var e=t.substr(1);this._m={direction:t.substr(0,1),steps:e?v(e)?v(e):e:0}}}),p(t,"length",{get:function(){var t=o.settings,e=n.Html.slides.length;return o.isType("slider")&&"center"!==t.focusAt&&t.bound?e-1-(v(t.perView)-1)+v(t.focusAt):e-1}}),p(t,"offset",{get:function(){return this._o}}),t}},K=function(){function n(){return o(this,n),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,y),a(n,[{key:"mount",value:function(t){var e=0r?L.a.reject("This event has been sampled, will not send event."):new L.a(function(r,i){a._prepareEvent(t,e,o).then(function(t){if(null!==t){var e=t;try{if(o&&o.data&&!0===o.data.__sentry__||!s)return a._getBackend().sendEvent(e),void r(e);var n=s(t,o);if(void 0===n)P.a.error("`beforeSend` method has to return `null` or a valid event.");else if(Object(M.l)(n))a._handleAsyncBeforeSend(n,r,i);else{if(null===(e=n))return P.a.log("`beforeSend` returned `null`, will not send event."),void r(null);a._getBackend().sendEvent(e),r(e)}}catch(t){a.captureException(t,{data:{__sentry__:!0},originalException:t}),i("`beforeSend` threw an error, will not send event.")}}else i("An event processor returned null, will not send event.")}).then(null,function(){i("`beforeSend` threw an error, will not send event.")})}):L.a.reject("SDK not enabled, will not send event.")},t.prototype._handleAsyncBeforeSend=function(t,e,n){var r=this;t.then(function(t){null!==t?(r._getBackend().sendEvent(t),e(t)):n("`beforeSend` returned `null`, will not send event.")}).then(null,function(t){n("beforeSend rejected with "+t)})},t}(),z=function(){function t(){}return t.prototype.sendEvent=function(){return L.a.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:a.Skipped})},t.prototype.close=function(){return L.a.resolve(!0)},t}(),F=function(){function t(t){this._options=t,this._options.dsn||P.a.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype._setupTransport=function(){return new z},t.prototype.eventFromException=function(){throw new A("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(){throw new A("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,function(t){P.a.error("Error while sending event: "+t)})},t.prototype.getTransport=function(){return this._transport},t}();function U(){if(!("fetch"in Object(R.f)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}var j="?",V=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack||[-a-z]+:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,q=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,G=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,W=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,K=/\((\S*)(?::(\d+))(?::(\d+))\)/;function H(t){var e=null,n=t&&t.framesToPop;try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,i=t.stacktrace.split("\n"),o=[],a=0;a eval")&&(e=W.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]=""):0!==a||n[5]||void 0===t.columnNumber||(i[0].column=t.columnNumber+1),r={url:n[3],func:n[1]||j,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=j),i.push(r)}return i.length?{message:Z(t),name:t.name,stack:i}:null}(t))return Q(e,n)}catch(t){}return{message:Z(t),name:t&&t.name,stack:[],failed:!0}}function Q(t,e){try{return p.__assign({},t,{stack:t.stack.slice(e)})}catch(e){return t}}function Z(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}var X=50;function J(t){var e=$(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Y(t){return{exception:{values:[J(t)]}}}function $(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",r=e[e.length-1].func||"";return!~n.indexOf("captureMessage")&&!~n.indexOf("captureException")||(e=e.slice(1)),!~r.indexOf("sentryWrapped")||(e=e.slice(0,-1)),e.map(function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}}).slice(0,X).reverse()}function tt(t,e,n){var r;if(void 0===n&&(n={}),Object(M.e)(t)&&t.error)return Y(H(t=t.error));if(Object(M.a)(t)||Object(M.b)(t)){var i=t,o=i.name||(Object(M.a)(i)?"DOMError":"DOMException"),a=i.message?o+": "+i.message:o;return r=et(a,e,n),Object(R.b)(r,a),r}return Object(M.d)(t)?r=Y(H(t)):(Object(M.g)(t)||Object(M.f)(t)?r=function(t,e,n){var r={exception:{values:[{type:Object(M.f)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(S.a)(t)}]},extra:{__serialized__:Object(S.d)(t)}};if(e){var i=$(H(e).stack);r.stacktrace={frames:i}}return r}(t,e,n.rejection):(r=et(t,e,n),Object(R.b)(r,""+t,void 0)),Object(R.a)(r,{synthetic:!0}),r)}function et(t,e,n){void 0===n&&(n={});var r={message:t};if(n.attachStacktrace&&e){var i=$(H(e).stack);r.stacktrace={frames:i}}return r}var nt,rt,it,ot=function(){function t(t){this._limit=t,this._buffer=[]}return t.prototype.isReady=function(){return void 0===this._limit||this.length()"}0!==e.length&&Object(d.b)().addBreadcrumb({category:"ui."+n,message:e},{event:t,name:n})};_t&&clearTimeout(_t),r?_t=setTimeout(e):e()}}}function wt(){return function(t){var e;try{e=t.target}catch(t){return}var n=e&&e.tagName;n&&("INPUT"===n||"TEXTAREA"===n||e.isContentEditable)&&(rt||bt("input")(t),clearTimeout(rt),rt=setTimeout(function(){rt=void 0},1e3))}}var xt=function(){function t(){this._ignoreOnError=0,this.name=t.id}return t.prototype._wrapTimeFunction=function(n){return function(){for(var t=[],e=0;e"}catch(t){return""}}var Tt,St=Object(R.f)(),It=function(){function l(t){this.name=l.id,this._options=p.__assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return l.prototype._instrumentConsole=function(){"console"in St&&["debug","info","warn","error","log","assert"].forEach(function(i){i in St.console&&Object(S.b)(St.console,i,function(r){return function(){for(var t=[],e=0;e"},handled:!0,type:"instrument"}})})}(t,n)}),"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?Object(S.b)(n,"onreadystatechange",function(t){return gt(t,{mechanism:{data:{function:"onreadystatechange",handler:t&&t.name||""},handled:!0,type:"instrument"}},r)}):n.onreadystatechange=r,i.apply(this,t)}})}},l.addBreadcrumb=function(t,e){Object(d.b)().getIntegration(l)&&Object(d.b)().addBreadcrumb(t,e)},l.prototype.setupOnce=function(){this._options.console&&this._instrumentConsole(),this._options.dom&&this._instrumentDOM(),this._options.xhr&&this._instrumentXHR(),this._options.fetch&&this._instrumentFetch(),this._options.history&&this._instrumentHistory()},l.id="Breadcrumbs",l}();function At(t){try{var e=JSON.parse(t);It.addBreadcrumb({category:"sentry",event_id:e.event_id,level:e.level||f.fromString("error"),message:Object(R.e)(e)},{event:e})}catch(t){P.a.error("Error while adding sentry type breadcrumb")}}var kt=function(){function h(t){this.name=h.id,this._global=Object(R.f)(),this._oldOnErrorHandler=null,this._oldOnUnhandledRejectionHandler=null,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=p.__assign({onerror:!0,onunhandledrejection:!0},t)}return h.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(P.a.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(P.a.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},h.prototype._installGlobalOnErrorHandler=function(){if(!this._onErrorHandlerInstalled){var l=this;this._oldOnErrorHandler=this._global.onerror,this._global.onerror=function(t,e,n,r,i){var o=Object(d.b)(),a=o.getIntegration(h),s=i&&!0===i.__sentry_own_request__;if(!a||vt()||s)return!!l._oldOnErrorHandler&&l._oldOnErrorHandler.apply(this,arguments);var u=o.getClient(),c=Object(M.h)(i)?l._eventFromIncompleteOnError(t,e,n,r):l._enhanceEventWithInitialFrame(tt(i,void 0,{attachStacktrace:u&&u.getOptions().attachStacktrace,rejection:!1}),e,n,r);return Object(R.a)(c,{handled:!1,type:"onerror"}),o.captureEvent(c,{originalException:i}),!!l._oldOnErrorHandler&&l._oldOnErrorHandler.apply(this,arguments)},this._onErrorHandlerInstalled=!0}},h.prototype._installGlobalOnUnhandledRejectionHandler=function(){if(!this._onUnhandledRejectionHandlerInstalled){var s=this;this._oldOnUnhandledRejectionHandler=this._global.onunhandledrejection,this._global.onunhandledrejection=function(t){var e=t;try{e=t&&"reason"in t?t.reason:t}catch(t){}var n=Object(d.b)(),r=n.getIntegration(h),i=e&&!0===e.__sentry_own_request__;if(!r||vt()||i)return!!s._oldOnUnhandledRejectionHandler&&s._oldOnUnhandledRejectionHandler.apply(this,arguments);var o=n.getClient(),a=Object(M.h)(e)?s._eventFromIncompleteRejection(e):tt(e,void 0,{attachStacktrace:o&&o.getOptions().attachStacktrace,rejection:!0});return a.level=f.Error,Object(R.a)(a,{handled:!1,type:"onunhandledrejection"}),n.captureEvent(a,{originalException:e}),!!s._oldOnUnhandledRejectionHandler&&s._oldOnUnhandledRejectionHandler.apply(this,arguments)},this._onUnhandledRejectionHandlerInstalled=!0}},h.prototype._eventFromIncompleteOnError=function(t,e,n,r){var i,o=Object(M.e)(t)?t.message:t;if(Object(M.j)(o)){var a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(i=a[1],o=a[2])}return this._enhanceEventWithInitialFrame({exception:{values:[{type:i||"Error",value:o}]}},e,n,r)},h.prototype._eventFromIncompleteRejection=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+t}]}}},h.prototype._enhanceEventWithInitialFrame=function(t,e,n,r){return t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[],0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:r,filename:e||Object(R.g)(),function:"?",in_app:!0,lineno:n}),t},h.id="GlobalHandlers",h}(),Ct=function(){function r(t){void 0===t&&(t={}),this.name=r.id,this._key=t.key||"cause",this._limit=t.limit||5}return r.prototype.setupOnce=function(){Object(s.b)(function(t,e){var n=Object(d.b)().getIntegration(r);return n?n._handler(t,e):t})},r.prototype._handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&e.originalException instanceof Error))return t;var n=this._walkErrorTree(e.originalException,this._key);return t.exception.values=p.__spread(n,t.exception.values),t},r.prototype._walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!(t[e]instanceof Error&&n.length+10){var u=(new Date).getTime()/1e3,c=h.__assign({timestamp:u},t),l=o?Object(f.c)(function(){return o(c,e)}):c;null!==l&&n.scope.addBreadcrumb(l,Math.min(s,100))}}},t.prototype.setUser=function(t){var e=this.getStackTop();e.scope&&e.scope.setUser(t)},t.prototype.setTags=function(t){var e=this.getStackTop();e.scope&&e.scope.setTags(t)},t.prototype.setExtras=function(t){var e=this.getStackTop();e.scope&&e.scope.setExtras(t)},t.prototype.setTag=function(t,e){var n=this.getStackTop();n.scope&&n.scope.setTag(t,e)},t.prototype.setExtra=function(t,e){var n=this.getStackTop();n.scope&&n.scope.setExtra(t,e)},t.prototype.setContext=function(t,e){var n=this.getStackTop();n.scope&&n.scope.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop();e.scope&&e.client&&t(e.scope)},t.prototype.run=function(t){var e=u(this);try{t(this)}finally{u(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return n.a.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.traceHeaders=function(){var t=this.getStackTop();if(t.scope&&t.client){var e=t.scope.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}},t}();function s(){var t=Object(f.f)();return t.__SENTRY__=t.__SENTRY__||{hub:void 0},t}function u(t){var e=s(),n=l(e);return p(e,t),n}function t(){var t=s();return c(t)&&!l(t).isOlderThan(o)||p(t,new a),Object(f.i)()?function(e){try{var t=Object(f.d)(r,"domain").active;if(!t)return l(e);if(!c(t)||l(t).isOlderThan(o)){var n=l(e).getStackTop();p(t,new a(n.client,i.a.clone(n.scope)))}return l(t)}catch(t){return l(e)}}(t):l(t)}function c(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function l(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new a),t.__SENTRY__.hub}function p(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}}(d(25)(t))}]);