1!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=148)}([function(e,t,n){"use strict";e.exports=n(150)},function(e,t,n){e.exports=n(159)()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.a=r},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={SORT_DESC:"desc",SORT_ASC:"asc",AWAIT_BEFORE_CELL_EDIT:1,SIZE_PER_PAGE:10,NEXT_PAGE:">",NEXT_PAGE_TITLE:"next page",LAST_PAGE:">>",LAST_PAGE_TITLE:"last page",PRE_PAGE:"<",PRE_PAGE_TITLE:"previous page",FIRST_PAGE:"<<",FIRST_PAGE_TITLE:"first page",PAGE_START_INDEX:1,ROW_SELECT_BG_COLOR:"",ROW_SELECT_NONE:"none",ROW_SELECT_SINGLE:"radio",ROW_SELECT_MULTI:"checkbox",CELL_EDIT_NONE:"none",CELL_EDIT_CLICK:"click",CELL_EDIT_DBCLICK:"dbclick",SIZE_PER_PAGE_LIST:[10,25,30,50],PAGINATION_SIZE:5,PAGINATION_POS_TOP:"top",PAGINATION_POS_BOTTOM:"bottom",PAGINATION_POS_BOTH:"both",TOOLBAR_POS_TOP:"top",TOOLBAR_POS_BOTTOM:"bottom",TOOLBAR_POS_BOTH:"both",NO_DATA_TEXT:"There is no data to display",SHOW_ONLY_SELECT:"Show Selected Only",SHOW_ALL:"Show All",EXPORT_CSV_TEXT:"Export to CSV",INSERT_BTN_TEXT:"New",DELETE_BTN_TEXT:"Delete",SAVE_BTN_TEXT:"Save",CLOSE_BTN_TEXT:"Close",FILTER_DELAY:500,SCROLL_TOP:"Top",SCROLL_BOTTOM:"Bottom",FILTER_TYPE:{TEXT:"TextFilter",REGEX:"RegexFilter",SELECT:"SelectFilter",NUMBER:"NumberFilter",DATE:"DateFilter",CUSTOM:"CustomFilter",ARRAY:"ArrayFilter"},FILTER_COND_EQ:"eq",FILTER_COND_LIKE:"like",EXPAND_BY_ROW:"row",EXPAND_BY_COL:"column",REMOTE_SORT:"sort",REMOTE_PAGE:"pagination",REMOTE_CELL_EDIT:"cellEdit",REMOTE_INSERT_ROW:"insertRow",REMOTE_DROP_ROW:"dropRow",REMOTE_FILTER:"filter",REMOTE_SEARCH:"search",REMOTE_EXPORT_CSV:"exportCSV",INSERT_FAIL_INDICATOR:"Validation errors, please check!",DEFAULT_CSV_SEPARATOR:",",CSV_STRING_TYPE:"string",CSV_NUMBER_TYPE:"number",AUTO_COLLAPSE_WHEN_SORT:!1,AUTO_COLLAPSE_WHEN_SEARCH:!1,AUTO_COLLAPSE_WHEN_FILTER:!1};r.REMOTE={},r.REMOTE[r.REMOTE_SORT]=!1,r.REMOTE[r.REMOTE_PAGE]=!1,r.REMOTE[r.REMOTE_CELL_EDIT]=!1,r.REMOTE[r.REMOTE_INSERT_ROW]=!1,r.REMOTE[r.REMOTE_DROP_ROW]=!1,r.REMOTE[r.REMOTE_FILTER]=!1,r.REMOTE[r.REMOTE_SEARCH]=!1,r.REMOTE[r.REMOTE_EXPORT_CSV]=!1;var o=r;t.default=o;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(r,"CONST_VAR","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Const.js"),__REACT_HOT_LOADER__.register(o,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Const.js"))}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=r},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.a=r},function(e,t,n){"use strict";function r(e,t){return!t||"object"!==Object(o.a)(t)&&"function"!==typeof t?Object(i.a)(e):t}t.a=r;var o=n(195),i=n(10)},function(e,t,n){"use strict";function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}
1),t&&Object(o.a)(e,t)}t.a=r;var o=n(196)},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?e.exports=n:(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.a=r},function(e,t,n){e.exports=n(197)()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=r(o),a=n(4),s=r(a),l=n(9),u=r(l),c={renderReactSortCaret:function(e,t){var n=void 0;return t?(n=(0,u.default)("fa",{"fa-sort-asc":e===s.default.SORT_ASC,"fa-sort-desc":e===s.default.SORT_DESC}),i.default.createElement("span",{className:n,style:{margin:"10px 5px"}})):(n=(0,u.default)("order",{dropup:e===s.default.SORT_ASC}),i.default.createElement("span",{className:n},i.default.createElement("span",{className:"caret",style:{margin:"10px 5px"}})))},isFunction:function(e){return e&&"function"===typeof e},getScrollBarWidth:function(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var n=e.getBoundingClientRect().width;t.style.overflow="scroll";var r=e.getBoundingClientRect().width;return n===r&&(r=t.clientWidth),document.body.removeChild(t),n-r},canUseDOM:function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document},getNormalizedPage:function(e,t){return e=this.getFirstPage(e),void 0===t&&(t=e),t+Math.abs(s.default.PAGE_START_INDEX-e)},getFirstPage:function(e){return void 0!==e?e:s.default.PAGE_START_INDEX},isBootstrap4:function(e){return"4"===e},isSelectRowDefined:function(e){return e===s.default.ROW_SELECT_SINGLE||e===s.default.ROW_SELECT_MULTI},renderColGroup:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3],o=null,a=null,s=this.isBootstrap4(r),l=this.isSelectRowDefined(t.mode),u=s?"38px":"30px";if(l){var c={width:t.columnWidth||u,minWidth:t.columnWidth||u};t.hideSelectColumn||(o=i.default.createElement("col",{key:"select-col",style:c}))}if(n.expandColumnVisible){var p={width:n.columnWidth||u,minWidth:n.columnWidth||u};a=i.default.createElement("col",{key:"expand-col",style:p})}var f=e.map(function(e,t){var n={display:e.hidden?"none":null};if(e.width){var r=isNaN(e.width)?e.width:e.width+"px";n.width=r,n.minWidth=r}return i.default.createElement("col",{style:n,key:t})});return i.default.createElement("colgroup",null,n.expandColumnVisible&&n.expandColumnBeforeSelectColumn&&a,o,n.expandColumnVisible&&!n.expandColumnBeforeSelectColumn&&a,f)}};t.default=c;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(c,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/util.js")}()},function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),e.exports=n(151)},function(e,t,n){"use strict";function r(e,t){return Object(o.a)(e)||Object(i.a)(e,t)||Object(a.a)()}t.a=r;var o=n(201),i=n(202),a=n(203)},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(19);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";n.d(t,"a",function(){return y});var r=n(2),o=n(3),i=n(7),a=n(6),s=n(10),l=n(8),u=n(5),c=n(0),p=(n.n(c),n(11)),f=n.n(p),h=n(46),d={captureScroll:f.a.bool,captureDrag:f.a.bool,captureClick:f.a.bool,captureDoubleClick:f.a.bool},m={captureScroll:!1,captureDrag:!0,captureClick:!0,captureDoubleClick:!0},y=function(e){function t(){var e,n;Object(r.a)(this,t);for(var o=arguments.length,l=new Array(o),p=0;p<o;p++)l[p]=arguments[p];return n=Object(i.a)(this,(e=Object(a.a)(t)).call.apply(e,[this].concat(l))),Object(u.a)(Object(s.a)(n),"_context",{}),Object(u.a)(Object(s.a)(n),"_events",null),Object(u.a)(Object(s.a)(n),"_containerRef",Object(c.createRef)()),Object(u.a)(Object(s.a)(n),"_onScroll",function(e){n.props.captureScroll&&e.stopPropagation()}),Object(u.a)(Object(s.a)(n),"_onDragStart",function(e){n.props.captureDrag&&e.stopPropagation()}),Object(u.a)(Object(s.a)(n),"_onDblClick",function(e){n.props.captureDoubleClick&&e.stopPropagation()}),Object(u.a)(Object(s.a)(n),"_onClick",function(e){n.props.captureClick&&e.stopPropagation()}),n}
1return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this._containerRef.current;if(e){var t=this._context.eventManager;t&&(this._events={wheel:this._onScroll,panstart:this._onDragStart,anyclick:this._onClick,click:this._onClick,dblclick:this._onDblClick},t.on(this._events,e))}}},{key:"componentWillUnmount",value:function(){var e=this._context.eventManager;e&&this._events&&e.off(this._events)}},{key:"_render",value:function(){throw new Error("_render() not implemented")}},{key:"render",value:function(){var e=this;return Object(c.createElement)(h.a.Consumer,null,function(t){return e._context=t,e._render()})}}]),t}(c.PureComponent);Object(u.a)(y,"propTypes",d),Object(u.a)(y,"defaultProps",m)},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)i.call(n,c)&&(l[c]=n[c]);if(o){s=o(n);for(var p=0;p<s.length;p++)a.call(n,s[p])&&(l[s[p]]=n[s[p]])}}return l}},function(e,t,n){"use strict";var r=n(64);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=Function.prototype.toString,o=/^\s*class /,i=function(e){try{var t=r.call(e),n=t.replace(/\/\/.*\n/g,""),i=n.replace(/\/\*[.\s\S]*\*\//g,""),a=i.replace(/\n/gm," ").replace(/ {2}/g," ");return o.test(a)}catch(e){return!1}},a=function(e){try{return!i(e)&&(r.call(e),!0)}catch(e){return!1}},s=Object.prototype.toString,l="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(l)return a(e);if(i(e))return!1;var t=s.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=n(163),o=(n(100),n(166));n.d(t,"a",function(){return r.a}),n.d(t,"b",function(){return o.a})},function(e,t,n){"use strict";n.d(t,"k",function(){return f}),n.d(t,"g",function(){return h}),n.d(t,"b",function(){return d}),n.d(t,"p",function(){return m}),n.d(t,"q",function(){return y}),n.d(t,"f",function(){return g}),n.d(t,"d",function(){return v}),n.d(t,"c",function(){return _}),n.d(t,"h",function(){return b}),n.d(t,"e",function(){return x}),n.d(t,"l",function(){return w}),n.d(t,"n",function(){return E}),n.d(t,"r",function(){return T}),n.d(t,"o",function(){return O}),n.d(t,"m",function(){return C}),n.d(t,"i",function(){return S}),n.d(t,"j",function(){return k});var r=n(41),o=n(187),i=n(188),a=n(77),s=n.n(a),l=n(79),u=n.n(l),c=n(23),p=n(108);t.a=Object(r.c)({data:o.a,ui:i.a});var f=function(e){return o.d(e.data)},h=function(e){return o.b(e.data)},d=function(e){return i.b(e.ui)},m=function(e){return i.l(e.ui)},y=function(e){return i.m(e.ui)},g=function(e){return i.f(e.ui)},v=function(e){return i.d(e.ui)},_=function(e){return i.c(e.ui)},b=function(e){return i.g(e.ui)},x=function(e){return i.e(e.ui)},w=function(e){return i.h(e.ui)},E=function(e){return i.j(e.ui)},T=function(e){return i.n(e.ui)},O=function(e){return i.k(e.ui)},C=function(e){return i.i(e.ui)},S=function(e){return o.c(_(e),T(e),e.data)},k=Object(p.a)(d,S,function(e,t){return e?t.filter(function(t){return s()(u()(Object(c.a)(t)),e)}):t})},function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s});var r=n(1),o=n.n(r),i={Project:o.a.string.isRequired,fundName:o.a.string.isRequired,Description:o.a.string,"Total NSW funding":o.a.oneOfType([o.a.string,o.a.number]).isRequired,"Funding co-contribution":o.a.string.isRequired,Status:o.a.string.isRequired,Region:o.a.string,LGA:o.a.string.isRequired,Electorate:o.a.string.isRequired,"Street Address":o.a.string.isRequired,Latitude:o.a.oneOfType([o.a.string,o.a.number]).isRequired,Longitude:o.a.oneOfType([o.a.string,o.a.number]).isRequired,"Event dates":o.a.string,"Total funding":o.a.oneOfType([o.a.string,o.a.number]),"Multiple locations":o.a.string,"Multiple LGAs":o.a.string,ID:o.a.string,"Multiple ID":o.a.string,Round:o.a.string},a=function(e){return!String(e.Latitude).includes("\xb0")&&!String(e.Longitude).includes("\xb0")&&Boolean(parseFloat(e.Latitude))&&Boolean(parseFloat(e.Longitude))},s=function(e){return[parseFloat(e.Longitude),parseFloat(e.Latitude)]}},function(e,t,n){"use strict";function r(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[i(t,e),"[",r,"]"].join(""):[i(t,e),"[",i(r,e),"]=",i(n,e)].join("")};case"bracket":return function(t,n){return null===n?i(t,e):[i(t,e),"[]=",i(n,e)].join("")};default:return function(t,n){return null===n?i(t,e):[i(t,e),"=",i(n,e)].join("")}}}function o(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t)return void(r[e]=n);void 0===r[e]&&(r[e]={}),r[e][t[1]]=n};case"bracket":return function(e,n,r){return t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0===r[e]?void(r[e]=[n]):void(r[e]=[].concat(r[e],n)):void(r[e]=n)};default:return function(e,t,n){if(void 0===n[e])return void(n[e]=t);n[e]=[].concat(n[e],t)}}}function i(e,t){return t.encode?t.strict?u(e):encodeURIComponent(e):e}function a(e){return Array.isArray(e)?e.sort():"object"===typeof e?a(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}function s(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function l(e,t){t=c({arrayFormat:"none"},t);var n=o(t),r=Object.create(null);return"string"!==typeof e?r:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),o=t.shift(),i=t.length>0?t.join("="):void 0;i=void 0===i?null:p(i),n(p(o),i,r)}),Object.keys(r).sort().reduce(function(e,t){var n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=a(n):e[t]=n,e},Object.create(null))):r}var u=n(75),c=n(18),p=n(76);t.extract=s,t.parse=l,t.stringify=function(e,t){t=c({encode:!0,strict:!0,arrayFormat:"none"},t),!1===t.sort&&(t.sort=function(){});var n=r(t);return e?Object.keys(e).sort(t.sort).map(function(r){var o=e[r];if(void 0===o)return"";if(null===o)return i(r,t);if(Array.isArray(o)){var a=[];
1return o.slice().forEach(function(e){void 0!==e&&a.push(n(r,e,a.length))}),a.join("&")}return i(r,t)+"="+i(o,t)}).filter(function(e){return e.length>0}).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:l(s(e),t)}}},function(e,t,n){"use strict";var r=n(38);n.d(t,"a",function(){return r.a});var o=(n(113),n(206));n.d(t,"c",function(){return o.a});var i=n(207);n.d(t,"b",function(){return i.a});n(39)},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return f});var r=n(14),o=n(2),i=n(3),a=n(5),s=n(25),l=(n(44),n(45)),u=n(40),c={minZoom:0,maxZoom:24,minPitch:0,maxPitch:60},p={pitch:0,bearing:0,altitude:1.5},f=function(){function e(t){var n=t.width,r=t.height,i=t.latitude,s=t.longitude,l=t.zoom,f=t.bearing,h=void 0===f?p.bearing:f,d=t.pitch,m=void 0===d?p.pitch:d,y=t.altitude,g=void 0===y?p.altitude:y,v=t.maxZoom,_=void 0===v?c.maxZoom:v,b=t.minZoom,x=void 0===b?c.minZoom:b,w=t.maxPitch,E=void 0===w?c.maxPitch:w,T=t.minPitch,O=void 0===T?c.minPitch:T,C=t.transitionDuration,S=t.transitionEasing,k=t.transitionInterpolator,A=t.transitionInterruption,P=t.startPanLngLat,R=t.startZoomLngLat,D=t.startBearing,I=t.startPitch,M=t.startZoom;Object(o.a)(this,e),Object(a.a)(this,"_viewportProps",void 0),Object(a.a)(this,"_interactiveState",void 0),Object(u.a)(Number.isFinite(n),"`width` must be supplied"),Object(u.a)(Number.isFinite(r),"`height` must be supplied"),Object(u.a)(Number.isFinite(s),"`longitude` must be supplied"),Object(u.a)(Number.isFinite(i),"`latitude` must be supplied"),Object(u.a)(Number.isFinite(l),"`zoom` must be supplied"),this._viewportProps=this._applyConstraints({width:n,height:r,latitude:i,longitude:s,zoom:l,bearing:h,pitch:m,altitude:g,maxZoom:_,minZoom:x,maxPitch:E,minPitch:O,transitionDuration:C,transitionEasing:S,transitionInterpolator:k,transitionInterruption:A}),this._interactiveState={startPanLngLat:P,startZoomLngLat:R,startBearing:D,startPitch:I,startZoom:M}}return Object(i.a)(e,[{key:"getViewportProps",value:function(){return this._viewportProps}},{key:"getInteractiveState",value:function(){return this._interactiveState}},{key:"panStart",value:function(e){var t=e.pos;return this._getUpdatedMapState({startPanLngLat:this._unproject(t)})}},{key:"pan",value:function(e){var t=e.pos,n=e.startPos,o=this._interactiveState.startPanLngLat||this._unproject(n);if(!o)return this;var i=this._calculateNewLngLat({startPanLngLat:o,pos:t}),a=Object(r.a)(i,2),s=a[0],l=a[1];return this._getUpdatedMapState({longitude:s,latitude:l})}},{key:"panEnd",value:function(){return this._getUpdatedMapState({startPanLngLat:null})}},{key:"rotateStart",value:function(e){e.pos;return this._getUpdatedMapState({startBearing:this._viewportProps.bearing,startPitch:this._viewportProps.pitch})}},{key:"rotate",value:function(e){var t=e.deltaScaleX,n=void 0===t?0:t,r=e.deltaScaleY,o=void 0===r?0:r,i=this._interactiveState,a=i.startBearing,s=i.startPitch;if(!Number.isFinite(a)||!Number.isFinite(s))return this;var l=this._calculateNewPitchAndBearing({deltaScaleX:n,deltaScaleY:o,startBearing:a||0,startPitch:s||0}),u=l.pitch,c=l.bearing;return this._getUpdatedMapState({bearing:c,pitch:u})}},{key:"rotateEnd",value:function(){return this._getUpdatedMapState({startBearing:null,startPitch:null})}},{key:"zoomStart",value:function(e){var t=e.pos;return this._getUpdatedMapState({startZoomLngLat:this._unproject(t),startZoom:this._viewportProps.zoom})}},{key:"zoom",value:function(e){var t=e.pos,n=e.startPos,o=e.scale;Object(u.a)(o>0,"`scale` must be a positive number");var i=this._interactiveState,a=i.startZoom,l=i.startZoomLngLat;Number.isFinite(a)||(a=this._viewportProps.zoom,l=this._unproject(n)||this._unproject(t)),Object(u.a)(l,"`startZoomLngLat` prop is required for zoom behavior to calculate where to position the map.");var c=this._calculateNewZoom({scale:o,startZoom:a||0}),p=new s.a(Object.assign({},this._viewportProps,{zoom:c})),f=p.getMapCenterByLngLatPosition({lngLat:l,pos:t}),h=Object(r.a)(f,2),d=h[0],m=h[1];return this._getUpdatedMapState({zoom:c,longitude:d,latitude:m})}}
1,{key:"zoomEnd",value:function(){return this._getUpdatedMapState({startZoomLngLat:null,startZoom:null})}},{key:"_getUpdatedMapState",value:function(t){return new e(Object.assign({},this._viewportProps,this._interactiveState,t))}},{key:"_applyConstraints",value:function(e){var t=e.maxZoom,n=e.minZoom,r=e.zoom;e.zoom=Object(l.a)(r,n,t);var o=e.maxPitch,i=e.minPitch,a=e.pitch;return e.pitch=Object(l.a)(a,i,o),Object.assign(e,Object(s.c)(e)),e}},{key:"_unproject",value:function(e){var t=new s.a(this._viewportProps);return e&&t.unproject(e)}},{key:"_calculateNewLngLat",value:function(e){var t=e.startPanLngLat,n=e.pos;return new s.a(this._viewportProps).getMapCenterByLngLatPosition({lngLat:t,pos:n})}},{key:"_calculateNewZoom",value:function(e){var t=e.scale,n=e.startZoom,r=this._viewportProps,o=r.maxZoom,i=r.minZoom,a=n+Math.log2(t);return Object(l.a)(a,i,o)}},{key:"_calculateNewPitchAndBearing",value:function(e){var t=e.deltaScaleX,n=e.deltaScaleY,r=e.startBearing,o=e.startPitch;n=Object(l.a)(n,-1,1);var i=this._viewportProps,a=i.minPitch,s=i.maxPitch,u=r+180*t,c=o;return n>0?c=o+n*(s-o):n<0&&(c=o-n*(a-o)),{pitch:c,bearing:u}}}]),e}()},function(e,t,n){"use strict";function r(){}function o(e){try{return e.then}catch(e){return g=e,v}}function i(e,t){try{return e(t)}catch(e){return g=e,v}}function a(e,t,n){try{e(t,n)}catch(e){return g=e,v}}function s(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,e!==r&&m(e,this)}function l(e,t,n){return new e.constructor(function(o,i){var a=new s(r);a.then(o,i),u(e,new d(t,n,a))})}function u(e,t){for(;3===e._83;)e=e._18;if(s._47&&s._47(e),0===e._83)return 0===e._75?(e._75=1,void(e._38=t)):1===e._75?(e._75=2,void(e._38=[e._38,t])):void e._38.push(t);c(e,t)}function c(e,t){y(function(){var n=1===e._83?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._83?p(t.promise,e._18):f(t.promise,e._18));var r=i(n,e._18);r===v?f(t.promise,g):p(t.promise,r)})}function p(e,t){if(t===e)return f(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"===typeof t||"function"===typeof t)){var n=o(t);if(n===v)return f(e,g);if(n===e.then&&t instanceof s)return e._83=3,e._18=t,void h(e);if("function"===typeof n)return void m(n.bind(t),e)}e._83=1,e._18=t,h(e)}function f(e,t){e._83=2,e._18=t,s._71&&s._71(e,t),h(e)}function h(e){if(1===e._75&&(u(e,e._38),e._38=null),2===e._75){for(var t=0;t<e._38.length;t++)u(e,e._38[t]);e._38=null}}function d(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function m(e,t){var n=!1,r=a(e,function(e){n||(n=!0,p(t,e))},function(e){n||(n=!0,f(t,e))});n||r!==v||(n=!0,f(t,g))}var y=n(54),g=null,v={};e.exports=s,s._47=null,s._71=null,s._44=r,s.prototype.then=function(e,t){if(this.constructor!==s)return l(this,e,t);var n=new s(r);return u(this,new d(e,t,n)),n}},function(e,t,n){"use strict";var r=n(58),o=n(60),i="function"===typeof Symbol&&"symbol"===typeof Symbol(),a=Object.prototype.toString,s=function(e){return"function"===typeof e&&"[object Function]"===a.call(e)},l=Object.defineProperty&&function(){var e={};try{Object.defineProperty(e,"x",{enumerable:!1,value:e});for(var t in e)return!1;return e.x===e}catch(e){return!1}}(),u=function(e,t,n,r){(!(t in e)||s(r)&&r())&&(l?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=a.concat(Object.getOwnPropertySymbols(t))),o(a,function(r){u(e,r,t[r],n[r])})};c.supportsDescriptors=!!l,e.exports=c},function(e,t,n){"use strict";var r=n(61),o=n(16),i=n(19),a=i.call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(e){var t=r.RequireObjectCoercible(e),n=[];for(var i in t)o(t,i)&&a(t,i)&&n.push([i,t[i]]);return n}},function(e,t){e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},function(e,t){e.exports=Number.isNaN||function(e){return e!==e}},function(e,t){var n=Number.isNaN||function(e){return e!==e};e.exports=Number.isFinite||function(e){return"number"===typeof e&&!n(e)&&e!==1/0&&e!==-1/0}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){if(Object.assign)return Object.assign(e,t);for(var r in t)n.call(t,r)&&(e[r]=t[r]);return e}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(){return"function"===typeof Object.entries?Object.entries:r}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"h",function(){return o}
1),n.d(t,"i",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"e",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"g",function(){return c}),n.d(t,"f",function(){return p});var r=function(e){return{type:"ACTIVE_FEATURE:SET",payload:e}},o=function(e){return{type:"SEARCH_BAR_VISIBLE:SET",payload:e}},i=function(e){return{type:"SEARCHED_LOCATION:SET",payload:e}},a=function(e){return{type:"ACTIVE_PROJECT:SET",payload:e}},s=function(e){return{type:"ACTIVE_FILTER:SET",payload:e}},l=function(e){return{type:"MAP:SET_BASEMAP",payload:e}},u=function(e){return{type:"ACTIVE_PAGE:SET",payload:e}},c=function(e){return{type:"MAP_TYPE:SET",payload:e}},p=function(e){return{type:"IS_MULTIPLE:SET",payload:e}}},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n(2),o=n(3),i=n(7),a=n(6),s=n(10),l=n(8),u=n(200),c=n(39),p=n(113),f=n(82),h=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.width,l=n.height,u=n.latitude,p=void 0===u?0:u,f=n.longitude,h=void 0===f?0:f,d=n.zoom,m=void 0===d?0:d,y=n.pitch,g=void 0===y?0:y,v=n.bearing,_=void 0===v?0:v,b=n.altitude,x=void 0===b?1.5:b,w=n.nearZMultiplier,E=n.farZMultiplier;Object(r.a)(this,t),o=o||1,l=l||1;var T=Object(c.i)(m);x=Math.max(.75,x);var O=Object(c.d)([h,p],T);O[2]=0;var C=Object(c.b)({width:o,height:l,pitch:g,bearing:_,altitude:x,nearZMultiplier:w||1/l,farZMultiplier:E||1.01}),S=Object(c.c)({height:l,center:O,pitch:g,bearing:_,altitude:x,flipY:!0});return e=Object(i.a)(this,Object(a.a)(t).call(this,{width:o,height:l,viewMatrix:S,projectionMatrix:C})),e.latitude=p,e.longitude=h,e.zoom=m,e.pitch=g,e.bearing=_,e.altitude=x,e.scale=T,e.center=O,e.pixelsPerMeter=Object(c.a)(Object(s.a)(e)).pixelsPerMeter[2],Object.freeze(Object(s.a)(e)),e}return Object(l.a)(t,e),Object(o.a)(t,[{key:"projectFlat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return Object(c.d)(e,t)}},{key:"unprojectFlat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return Object(c.g)(e,t)}},{key:"getMapCenterByLngLatPosition",value:function(e){var t=e.lngLat,n=e.pos,r=Object(c.e)(n,this.pixelUnprojectionMatrix),o=Object(c.d)(t,this.scale),i=f.a([],o,f.d([],r)),a=f.a([],this.center,i);return Object(c.g)(a,this.scale)}},{key:"getLocationAtPoint",value:function(e){var t=e.lngLat,n=e.pos;return this.getMapCenterByLngLatPosition({lngLat:t,pos:n})}},{key:"fitBounds",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.width,o=this.height,i=Object(p.a)(Object.assign({width:r,height:o,bounds:e},n));return new t({width:r,height:o,longitude:i.longitude,latitude:i.latitude,zoom:i.zoom})}}]),t}(u.a)},function(e,t,n){"use strict";function r(e){return Math.pow(2,e)}function o(e){return Math.log2(e)}function i(e,t){var n=Object(h.a)(e,2),r=n[0],o=n[1];Object(v.a)(Number.isFinite(r)&&Number.isFinite(t)),Object(v.a)(Number.isFinite(o)&&o>=-90&&o<=90,"invalid latitude"),t*=E;var i=r*x,a=o*x;return[t*(i+_)/(2*_),t*(_-Math.log(Math.tan(b+.5*a)))/(2*_)]}function a(e,t){var n=Object(h.a)(e,2),r=n[0],o=n[1];t*=E;var i=r/t*(2*_)-_,a=2*(Math.atan(Math.exp(_-o/t*(2*_)))-b);return[i*w,a*w]}function s(e){var t=e.latitude,n=e.longitude,o=e.zoom,i=e.scale,a=e.highPrecision,s=void 0!==a&&a;i=void 0!==i?i:r(o),Object(v.a)(Number.isFinite(t)&&Number.isFinite(n)&&Number.isFinite(i));var l={},u=E*i,c=Math.cos(t*x),p=u/360,f=p/c,h=u/T/c;if(l.pixelsPerMeter=[h,-h,h],l.metersPerPixel=[1/h,-1/h,1/h],l.pixelsPerDegree=[p,-f,h],l.degreesPerPixel=[1/p,-1/f,1/h],s){var d=x*Math.tan(t*x)/c,m=p*d/2,y=u/T*d,g=y/f*h;l.pixelsPerDegree2=[0,-m,y],l.pixelsPerMeter2=[g,0,g]}return l}function l(e){var t=e.height,n=e.pitch,r=e.bearing,o=e.altitude,i=e.center,a=void 0===i?null:i,s=e.flipY,l=void 0!==s&&s,u=Object(d.a)();return m.h(u,u,[0,0,-o]),m.g(u,u,[1,1,1/t]),m.e(u,u,-n*x),m.f(u,u,r*x),l&&m.g(u,u,[1,-1,1]),a&&m.h(u,u,g.a([],a)),u}function u(e){var t=e.width,n=e.height,r=e.altitude,o=void 0===r?O:r,i=e.pitch,a=void 0===i?0:i,s=e.nearZMultiplier,l=void 0===s?1:s,u=e.farZMultiplier,c=void 0===u?1:u,p=a*x,f=Math.atan(.5/o),h=Math.sin(f)*o/Math.sin(Math.PI/2-p-f),d=Math.cos(Math.PI/2-p)*h+o;return{fov:2*Math.atan(n/2/o),aspect:t/n,focalDistance:o,near:l,far:d*c}}
1function c(e){var t=e.width,n=e.height,r=e.pitch,o=e.altitude,i=e.nearZMultiplier,a=e.farZMultiplier,s=u({width:t,height:n,altitude:o,pitch:r,nearZMultiplier:i,farZMultiplier:a}),l=s.fov,c=s.aspect,p=s.near,f=s.far;return m.d([],l,c,p,f)}function p(e,t){var n=Object(h.a)(e,3),r=n[0],o=n[1],i=n[2],a=void 0===i?0:i;return Object(v.a)(Number.isFinite(r)&&Number.isFinite(o)&&Number.isFinite(a)),Object(d.d)(t,[r,o,a,1])}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Object(h.a)(e,3),o=r[0],i=r[1],a=r[2];if(Object(v.a)(Number.isFinite(o)&&Number.isFinite(i),"invalid pixel coordinate"),Number.isFinite(a)){return Object(d.d)(t,[o,i,a,1])}var s=Object(d.d)(t,[o,i,0,1]),l=Object(d.d)(t,[o,i,1,1]),u=s[2],c=l[2],p=u===c?0:((n||0)-u)/(c-u);return y.c([],s,l,p)}t.i=r,t.f=o,t.d=i,t.g=a,t.a=s,t.c=l,t.b=c,t.h=p,t.e=f;var h=n(14),d=n(42),m=n(111),y=n(82),g=n(205),v=n(112),_=Math.PI,b=_/4,x=_/180,w=180/_,E=512,T=4003e4,O=1.5},function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"react-map-gl: assertion failed.")}t.a=r},function(e,t,n){"use strict";var r=n(102),o=n(180),i=n(181),a=n(182),s=n(105);n(104);n.d(t,"e",function(){return r.b}),n.d(t,"c",function(){return o.a}),n.d(t,"b",function(){return i.a}),n.d(t,"a",function(){return a.a}),n.d(t,"d",function(){return s.a})},function(e,t,n){"use strict";function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(e,t){var n=s.b([],t,e);return s.a(n,n,1/n[3]),n}function i(e,t){var n=e%t;return n<0?t+n:n}function a(e,t,n){return n*t+(1-n)*e}t.a=r,t.d=o,t.c=i,t.b=a;var s=n(204)},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"c",function(){return i});var r=1e-6,o="undefined"!==typeof Float32Array?Float32Array:Array,i=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)})},function(e,t,n){"use strict";var r=(n(85),n(213));n.d(t,"b",function(){return r.a});var o=n(214);n.d(t,"a",function(){return o.a})},function(e,t,n){"use strict";function r(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function o(e,t){if(e===t)return!0;if(r(e)&&r(t)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!o(e[n],t[n]))return!1;return!0}return Math.abs(e-t)<=s}function i(e,t,n){return Math.max(t,Math.min(n,e))}function a(e,t,n){return r(e)?e.map(function(e,r){return a(e,t[r],n)}):n*t+(1-n)*e}t.b=o,t.a=i,t.c=a;var s=1e-9},function(e,t,n){"use strict";var r=n(0);n.n(r);t.a=Object(r.createContext)({viewport:null,map:null,mapContainer:null,onViewportChange:null,onViewStateChange:null,eventManager:null,isDragging:!1})},function(e,t,n){"use strict";function r(e,t){var n=e(t);return function(r){return 1/(1-n)*(e(r*(1-t)+t)-n)}}n.d(t,"a",function(){return p}),n.d(t,"b",function(){return h});var o=n(2),i=n(3),a=n(5),s=n(40),l=n(44),u=n(26),c=function(){},p={BREAK:1,SNAP_TO_END:2,IGNORE:3,UPDATE:4},f={transitionDuration:0,transitionEasing:function(e){return e},transitionInterpolator:new l.a,transitionInterruption:p.BREAK,onTransitionStart:c,onTransitionInterrupt:c,onTransitionEnd:c,onViewportChange:c,onStateChange:c},h=function(){function e(t,n){var r=this;Object(o.a)(this,e),Object(a.a)(this,"props",void 0),Object(a.a)(this,"state",void 0),Object(a.a)(this,"time",void 0),Object(a.a)(this,"_animationFrame",null),Object(a.a)(this,"_onTransitionFrame",function(){r._animationFrame=requestAnimationFrame(r._onTransitionFrame),r._updateViewport()}),t&&(this.props=t),this.time=n||Date.now}return Object(i.a)(e,[{key:"getViewportInTransition",value:function(){return this._animationFrame?this.state.propsInTransition:null}},{key:"processViewportChange",value:function(e){var t=this.props;if(this.props=e,this._shouldIgnoreViewportChange(t,e))return!1;if(this._isTransitionEnabled(e)){var n=Object.assign({},t),o=Object.assign({},e);if(this._isTransitionInProgress()&&(t.onTransitionInterrupt(),this.state.interruption===p.SNAP_TO_END?Object.assign(n,this.state.endProps):Object.assign(n,this.state.propsInTransition),this.state.interruption===p.UPDATE)){var i=this.time(),a=(i-this.state.startTime)/this.state.duration;o.transitionDuration=this.state.duration-(i-this.state.startTime),o.transitionEasing=r(this.state.easing,a),o.transitionInterpolator=n.transitionInterpolator}return o.onTransitionStart(),this._triggerTransition(n,o),!0}return this._isTransitionInProgress()&&(t.onTransitionInterrupt(),this._endTransition()),!1}},{key:"_isTransitionInProgress",value:function(){return Boolean(this._animationFrame)}},{key:"_isTransitionEnabled",value:function(e){return e.transitionDuration>0&&Boolean(e.transitionInterpolator)}},{key:"_isUpdateDueToCurrentTransition",value:function(e){return!!this.state.propsInTransition&&this.state.interpolator.arePropsEqual(e,this.state.propsInTransition)}},{key:"_shouldIgnoreViewportChange",value:function(e,t){return!e||(this._isTransitionInProgress()?this.state.interruption===p.IGNORE||this._isUpdateDueToCurrentTransition(t):!this._isTransitionEnabled(t)||t.transitionInterpolator.arePropsEqual(e,t))}},{key:"_triggerTransition",value:function(e,t){Object(s.a)(this._isTransitionEnabled(t),"Transition is not enabled"),this._animationFrame&&cancelAnimationFrame(this._animationFrame);var n=t.transitionInterpolator.initializeProps(e,t),r={inTransition:!0,isZooming:e.zoom!==t.zoom,isPanning:e.longitude!==t.longitude||e.latitude!==t.latitude,isRotating:e.bearing!==t.bearing||e.pitch!==t.pitch};this.state={duration:t.transitionDuration,easing:t.transitionEasing,interpolator:t.transitionInterpolator,interruption:t.transitionInterruption,startTime:this.time(),startProps:n.start,endProps:n.end,animation:null,propsInTransition:{},interactionState:r},this._onTransitionFrame(),this.props.onStateChange(r)}},{key:"_endTransition",value:function(){this._animationFrame&&(cancelAnimationFrame(this._animationFrame),this._animationFrame=null),this.props.onStateChange({inTransition:!1,isZooming:!1,isPanning:!1,isRotating:!1})}},{key:"_updateViewport",value:function(){var e=this.time(),t=this.state,n=t.startTime,r=t.duration,o=t.easing,i=t.interpolator,a=t.startProps,s=t.endProps,l=!1,c=(e-n)/r;c>=1&&(c=1,l=!0),c=o(c);var p=i.interpolateProps(a,s,c),f=new u.b(Object.assign({},this.props,p));this.state.propsInTransition=f.getViewportProps(),this.props.onViewportChange(this.state.propsInTransition,this.state.interactionState,this.props),l&&(this._endTransition(),this.props.onTransitionEnd())}}]),e}();Object(a.a)(h,"defaultProps",f)},function(e,t,n){"use strict";n.d(t,"e",function(){return o}
1),n.d(t,"f",function(){return i}),n.d(t,"g",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return c});var r=n(115),o=r.b?[[r.b.Rotate,{enable:!1}],[r.b.Pinch,{enable:!1}],[r.b.Swipe,{enable:!1}],[r.b.Pan,{threshold:0,enable:!1}],[r.b.Press,{enable:!1}],[r.b.Tap,{event:"doubletap",taps:2,enable:!1}],[r.b.Tap,{event:"anytap",enable:!1}],[r.b.Tap,{enable:!1}]]:null,i={rotate:["pinch"],pan:["press","doubletap","anytap","tap"],doubletap:["anytap"],anytap:["tap"]},a={doubletap:["tap"]},s={pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",touchstart:"pointerdown",touchmove:"pointermove",touchend:"pointerup",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup"},l={KEY_EVENTS:["keydown","keyup"],MOUSE_EVENTS:["mousedown","mousemove","mouseup","mouseover","mouseout","mouseleave"],WHEEL_EVENTS:["wheel","mousewheel","DOMMouseScroll"]},u={tap:"tap",anytap:"anytap",doubletap:"doubletap",press:"press",pinch:"pinch",pinchin:"pinch",pinchout:"pinch",pinchstart:"pinch",pinchmove:"pinch",pinchend:"pinch",pinchcancel:"pinch",rotate:"rotate",rotatestart:"rotate",rotatemove:"rotate",rotateend:"rotate",rotatecancel:"rotate",pan:"pan",panstart:"pan",panmove:"pan",panup:"pan",pandown:"pan",panleft:"pan",panright:"pan",panend:"pan",pancancel:"pan",swipe:"swipe",swipeleft:"swipe",swiperight:"swipe",swipeup:"swipe",swipedown:"swipe"},c={click:"tap",anyclick:"anytap",dblclick:"doubletap",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseover:"pointerover",mouseout:"pointerout",mouseleave:"pointerleave"}},function(e,t,n){var r=n(142),o=r(Object,"create");e.exports=o},function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}var o=n(322);e.exports=r},function(e,t,n){function r(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}var o=n(328);e.exports=r},function(e,t,n){"use strict";"undefined"===typeof Promise&&(n(53).enable(),window.Promise=n(55)),n(56),Object.assign=n(18);var r=n(57);Object.entries||r.shim()},function(e,t,n){"use strict";function r(){u=!1,s._47=null,s._71=null}function o(e){function t(t){(e.allRejections||a(p[t].error,e.whitelist||l))&&(p[t].displayId=c++,e.onUnhandled?(p[t].logged=!0,e.onUnhandled(p[t].displayId,p[t].error)):(p[t].logged=!0,i(p[t].displayId,p[t].error)))}function n(t){p[t].logged&&(e.onHandled?e.onHandled(p[t].displayId,p[t].error):p[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+p[t].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+p[t].displayId+".")))}e=e||{},u&&r(),u=!0;var o=0,c=0,p={};s._47=function(e){2===e._83&&p[e._56]&&(p[e._56].logged?n(e._56):clearTimeout(p[e._56].timeout),delete p[e._56])},s._71=function(e,n){0===e._75&&(e._56=o++,p[e._56]={displayId:null,error:n,timeout:setTimeout(t.bind(null,e._56),a(n,l)?100:2e3),logged:!1})}}function i(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach(function(e){console.warn(" "+e)})}function a(e,t){return t.some(function(t){return e instanceof t})}var s=n(27),l=[ReferenceError,TypeError,RangeError],u=!1;t.disable=r,t.enable=o},function(e,t,n){"use strict";(function(t){function n(e){a.length||(i(),s=!0),a[a.length]=e}function r(){for(;l<a.length;){var e=l;if(l+=1,a[e].call(),l>u){for(var t=0,n=a.length-l;t<n;t++)a[t]=a[t+l];a.length-=l,l=0}}a.length=0,l=0,s=!1}function o(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(t,0),r=setInterval(t,50)}}e.exports=n;var i,a=[],s=!1,l=0,u=1024,c="undefined"!==typeof t?t:self,p=c.MutationObserver||c.WebKitMutationObserver;i="function"===typeof p?function(e){var t=1,n=new p(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(r):o(r),n.requestFlush=i,n.makeRequestCallFromTimer=o}).call(t,n(15))},function(e,t,n){"use strict";function r(e){var t=new o(o._44);return t._83=1,t._18=e,t}var o=n(27);e.exports=o;var i=r(!0),a=r(!1),s=r(null),l=r(void 0),u=r(0),c=r("");o.resolve=function(e){if(e instanceof o)return e;if(null===e)return s;if(void 0===e)return l;if(!0===e)return i;if(!1===e)return a;
1if(0===e)return u;if(""===e)return c;if("object"===typeof e||"function"===typeof e)try{var t=e.then;if("function"===typeof t)return new o(t.bind(e))}catch(e){return new o(function(t,n){n(e)})}return r(e)},o.all=function(e){var t=Array.prototype.slice.call(e);return new o(function(e,n){function r(a,s){if(s&&("object"===typeof s||"function"===typeof s)){if(s instanceof o&&s.then===o.prototype.then){for(;3===s._83;)s=s._18;return 1===s._83?r(a,s._18):(2===s._83&&n(s._18),void s.then(function(e){r(a,e)},n))}var l=s.then;if("function"===typeof l){return void new o(l.bind(s)).then(function(e){r(a,e)},n)}}t[a]=s,0===--i&&e(t)}if(0===t.length)return e([]);for(var i=t.length,a=0;a<t.length;a++)r(a,t[a])})},o.reject=function(e){return new o(function(t,n){n(e)})},o.race=function(e){return new o(function(t,n){e.forEach(function(e){o.resolve(e).then(t,n)})})},o.prototype.catch=function(e){return this.then(null,e)}},function(e,t){!function(e){"use strict";function t(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!==typeof e&&(e=String(e)),e}function r(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return g.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function a(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function s(e){var t=new FileReader,n=a(t);return t.readAsArrayBuffer(e),n}function l(e){var t=new FileReader,n=a(t);return t.readAsText(e),n}function u(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function c(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"===typeof e)this._bodyText=e;else if(g.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(g.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(g.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(g.arrayBuffer&&g.blob&&_(e))this._bodyArrayBuffer=c(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!g.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!b(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(e)}else this._bodyText="";this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):g.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},g.blob&&(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?i(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return l(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(u(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},g.formData&&(this.formData=function(){return this.text().then(d)}),this.json=function(){return this.text().then(JSON.parse)},this}function f(e){var t=e.toUpperCase();return x.indexOf(t)>-1?t:e}function h(e,t){t=t||{};var n=t.body;
vendor: 4,397 bytes, line 1
1if(e instanceof h){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=f(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function d(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function m(e){var t=new o;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}function y(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var g={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],_=function(e){return e&&DataView.prototype.isPrototypeOf(e)},b=ArrayBuffer.isView||function(e){return e&&v.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];this.map[e]=o?o+","+r:r},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,r){this.map[t(e)]=n(r)},o.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},g.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];h.prototype.clone=function(){return new h(this,{body:this._bodyInit})},p.call(h.prototype),p.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];y.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=h,e.Response=y,e.fetch=function(e,t){return new Promise(function(n,r){var o=new h(e,t),i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:m(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;n(new y(t,e))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&g.blob&&(i.responseType="blob"),o.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send("undefined"===typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!==typeof self?self:this)},function(e,t,n){"use strict";var r=n(28),o=n(29),i=n(36),a=n(72),s=i();r(s,{getPolyfill:i,implementation:o,shim:a}),e.exports=s},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Array.prototype.slice,a=n(59),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call(function(){}
1,"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},f={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&r.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),d=function(e){if("undefined"===typeof window||!h)return p(e);try{return p(e)}catch(e){return!1}},m=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),i=a(e),s=t&&"[object String]"===o.call(e),p=[];if(!t&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var f=u&&n;if(s&&e.length>0&&!r.call(e,0))for(var h=0;h<e.length;++h)p.push(String(h));if(i&&e.length>0)for(var m=0;m<e.length;++m)p.push(String(m));else for(var y in e)f&&"prototype"===y||!r.call(e,y)||p.push(String(y));if(l)for(var g=d(e),v=0;v<c.length;++v)g&&"constructor"===c[v]||!r.call(e,c[v])||p.push(c[v]);return p};m.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var e=Object.keys;Object.keys=function(t){return e(a(t)?i.call(t):t)}}}else Object.keys=m;return Object.keys||m},e.exports=m},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,t,o){if("[object Function]"!==r.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var a=0;a<i;a++)t.call(o,e[a],a,e);else for(var s in e)n.call(e,s)&&t.call(o,e[s],s,e)}},function(e,t,n){"use strict";e.exports=n(62)},function(e,t,n){"use strict";var r=n(63),o=n(33),i=o(o({},r),{SameValueNonNumber:function(e,t){if("number"===typeof e||typeof e!==typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});e.exports=i},function(e,t,n){"use strict";var r=n(16),o=n(65),i=Object.prototype.toString,a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator,s=a?Symbol.iterator:null,l=n(31),u=n(32),c=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,p=n(33),f=n(34),h=n(35),d=n(68),m=parseInt,y=n(19),g=y.call(Function.call,Array.prototype.slice),v=y.call(Function.call,String.prototype.slice),_=y.call(Function.call,RegExp.prototype.test,/^0b[01]+$/i),b=y.call(Function.call,RegExp.prototype.test,/^0o[0-7]+$/i),x=y.call(Function.call,RegExp.prototype.exec),w=["\x85","\u200b","\ufffe"].join(""),E=new RegExp("["+w+"]","g"),T=y.call(Function.call,RegExp.prototype.test,E),O=/^[-+]0x[0-9a-f]+$/i,C=y.call(Function.call,RegExp.prototype.test,O),S=["\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003","\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028","\u2029\ufeff"].join(""),k=new RegExp("(^["+S+"]+)|(["+S+"]+$)","g"),A=y.call(Function.call,String.prototype.replace),P=function(e){return A(e,k,"")},R=n(69),D=n(71),I=p(p({},R),{Call:function(e,t){var n=arguments.length>2?arguments[2]:[];if(!this.IsCallable(e))throw new TypeError(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=d(e)?e:o(e,Number);if("symbol"===typeof t)throw new TypeError("Cannot convert a Symbol value to a number");if("string"===typeof t){if(_(t))return this.ToNumber(m(v(t,2),2));if(b(t))return this.ToNumber(m(v(t,2),8));if(T(t)||C(t))return NaN;var n=P(t);if(n!==t)return this.ToNumber(n)}return Number(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(l(t)||0===t||!u(t))return 0;var n=f(t)*Math.floor(Math.abs(t));return h(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(l(t)||t<=0)return 0;if(t>=255)return 255;var n=Math.floor(e);return n+.5<t?n+1:t<n+.5?n:n%2!==0?n+1:n},ToString:function(e){if("symbol"===typeof e)throw new TypeError("Cannot convert a Symbol value to a string");return String(e)},ToObject:function(e){return this.RequireObjectCoercible(e),Object(e)},ToPropertyKey:function(e){var t=this.ToPrimitive(e,String);return"symbol"===typeof t?t:this.ToString(t)},ToLength:function(e){var t=this.ToInteger(e);return t<=0?0:t>c?c:t},CanonicalNumericIndexString:function(e){if("[object String]"!==i.call(e))throw new TypeError("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:R.CheckObjectCoercible,IsArray:Array.isArray||function(e){return"[object Array]"===i.call(e)},IsConstructor:function(e){return"function"===typeof e&&!!e.prototype}
1,IsExtensible:function(e){return!Object.preventExtensions||!d(e)&&Object.isExtensible(e)},IsInteger:function(e){if("number"!==typeof e||l(e)||!u(e))return!1;var t=Math.abs(e);return Math.floor(t)===t},IsPropertyKey:function(e){return"string"===typeof e||"symbol"===typeof e},IsRegExp:function(e){if(!e||"object"!==typeof e)return!1;if(a){var t=e[Symbol.match];if("undefined"!==typeof t)return R.ToBoolean(t)}return D(e)},SameValueZero:function(e,t){return e===t||l(e)&&l(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new TypeError(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"===typeof e?"Symbol":R.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");var n=e.constructor;if("undefined"===typeof n)return t;if("Object"!==this.Type(n))throw new TypeError("O.constructor is not an Object");var r=a&&Symbol.species?n[Symbol.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new TypeError("no constructor found")},CompletePropertyDescriptor:function(e){if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");if("Boolean"!==this.Type(r))throw new TypeError("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(a&&"symbol"===typeof Symbol.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if("undefined"!==typeof t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");var n=g(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!a)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,s));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new TypeError("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new TypeError("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new TypeError("Assertion failed: completion is not a thunk for a Completion Record");var n=t,r=this.GetMethod(e,"return");if("undefined"===typeof r)return n();var o;try{var i=this.Call(r,e,[])}catch(e){throw o=n(),n=null,e}if(o=n(),n=null,"Object"!==this.Type(i))throw new TypeError("iterator .return must return an object");return o},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new TypeError("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new TypeError("R must be an Object");
1if("String"!==this.Type(t))throw new TypeError("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new TypeError('"exec" method must return `null` or an Object')}return x(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new TypeError("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&a&&Symbol.species&&null===(n=this.Get(n,Symbol.species))&&(n=void 0)),"undefined"===typeof n)return Array(r);if(!this.IsConstructor(n))throw new TypeError("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var r=Object.getOwnPropertyDescriptor(e,t),o=r||"function"!==typeof Object.isExtensible||Object.isExtensible(e);if(r&&(!r.writable||!r.configurable)||!o)return!1;var i={configurable:!0,enumerable:!0,value:n,writable:!0};return Object.defineProperty(e,t,i),!0},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new TypeError("unable to create data property");return r},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new TypeError("Assertion failed: Type(S) is not String");if(!this.IsInteger(t))throw new TypeError("Assertion failed: length must be an integer >= 0 and <= (2**53 - 1)");if(t<0||t>c)throw new RangeError("Assertion failed: length must be an integer >= 0 and <= (2**53 - 1)");if("Boolean"!==this.Type(n))throw new TypeError("Assertion failed: Type(unicode) is not Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=e.charCodeAt(t);if(r<55296||r>56319)return t+1;var o=e.charCodeAt(t+1);return o<56320||o>57343?t+1:t+2}});delete I.CheckObjectCoercible,e.exports=I},function(e,t,n){"use strict";var r=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!==typeof t||"[object Function]"!==o.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,i=r.call(arguments,1),a=function(){if(this instanceof n){var o=t.apply(this,i.concat(r.call(arguments)));return Object(o)===o?o:this}return t.apply(e,i.concat(r.call(arguments)))},s=Math.max(0,t.length-i.length),l=[],u=0;u<s;u++)l.push("$"+u);if(n=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var c=function(){};c.prototype=t.prototype,n.prototype=new c,c.prototype=null}return n}},function(e,t,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator,o=n(30),i=n(20),a=n(66),s=n(67),l=function(e,t){if("undefined"===typeof e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!==typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<s.length;++a)if(n=e[s[a]],i(n)&&(r=n.call(e),o(r)))return r;throw new TypeError("No default value")},u=function(e,t){var n=e[t];if(null!==n&&"undefined"!==typeof n){if(!i(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}};e.exports=function(e,t){if(o(e))return e;var n="default";arguments.length>1&&(t===String?n="string":t===Number&&(n="number"));var i;if(r&&(Symbol.toPrimitive?i=u(e,Symbol.toPrimitive):s(e)&&(i=Symbol.prototype.valueOf)),"undefined"!==typeof i){var c=i.call(e,n);if(o(c))return c;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||s(e))&&(n="string"),l(e,"default"===n?"number":n)}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=function(e){try{return r.call(e),!0}catch(e){return!1}},i=Object.prototype.toString,a="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;e.exports=function(e){return"object"===typeof e&&null!==e&&(a?o(e):"[object Date]"===i.call(e))}},function(e,t,n){"use strict";var r=Object.prototype.toString;if("function"===typeof Symbol&&"symbol"===typeof Symbol()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/,a=function(e){return"symbol"===typeof e.valueOf()&&i.test(o.call(e))};e.exports=function(e){if("symbol"===typeof e)return!0;
1if("[object Symbol]"!==r.call(e))return!1;try{return a(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t){e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},function(e,t,n){"use strict";var r=n(31),o=n(32),i=n(34),a=n(35),s=n(20),l=n(70),u=n(16),c={ToPrimitive:l,ToBoolean:function(e){return!!e},ToNumber:function(e){return Number(e)},ToInteger:function(e){var t=this.ToNumber(e);return r(t)?0:0!==t&&o(t)?i(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(r(t)||0===t||!o(t))return 0;var n=i(t)*Math.floor(Math.abs(t));return a(n,65536)},ToString:function(e){return String(e)},ToObject:function(e){return this.CheckObjectCoercible(e),Object(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new TypeError(t||"Cannot call method on "+e);return e},IsCallable:s,SameValue:function(e,t){return e===t?0!==e||1/e===1/t:r(e)&&r(t)},Type:function(e){return null===e?"Null":"undefined"===typeof e?"Undefined":"function"===typeof e||"object"===typeof e?"Object":"number"===typeof e?"Number":"boolean"===typeof e?"Boolean":"string"===typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(u(e,n)&&!t[n])return!1;var r=u(e,"[[Value]]"),o=u(e,"[[Get]]")||u(e,"[[Set]]");if(r&&o)throw new TypeError("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){if("undefined"===typeof e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!(!u(e,"[[Get]]")&&!u(e,"[[Set]]"))},IsDataDescriptor:function(e){if("undefined"===typeof e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!(!u(e,"[[Value]]")&&!u(e,"[[Writable]]"))},IsGenericDescriptor:function(e){if("undefined"===typeof e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e)},FromPropertyDescriptor:function(e){if("undefined"===typeof e)return e;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");if(this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new TypeError("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new TypeError("ToPropertyDescriptor requires an object");var t={};if(u(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),u(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),u(e,"value")&&(t["[[Value]]"]=e.value),u(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),u(e,"get")){var n=e.get;if("undefined"!==typeof n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(u(e,"set")){var r=e.set;if("undefined"!==typeof r&&!this.IsCallable(r))throw new TypeError("setter must be a function");t["[[Set]]"]=r}if((u(t,"[[Get]]")||u(t,"[[Set]]"))&&(u(t,"[[Value]]")||u(t,"[[Writable]]")))throw new TypeError("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=c},function(e,t,n){"use strict";var r=Object.prototype.toString,o=n(30),i=n(20),a={"[[DefaultValue]]":function(e,t){var n=t||("[object Date]"===r.call(e)?String:Number);if(n===String||n===Number){var a,s,l=n===String?["toString","valueOf"]:["valueOf","toString"];for(s=0;s<l.length;++s)if(i(e[l[s]])&&(a=e[l[s]](),o(a)))return a;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")}};e.exports=function(e,t){return o(e)?e:a["[[DefaultValue]]"](e,t)}},function(e,t,n){"use strict";var r=n(16),o=RegExp.prototype.exec,i=Object.getOwnPropertyDescriptor,a=function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}},s=Object.prototype.toString,l="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!==typeof e)return!1;if(!l)return"[object RegExp]"===s.call(e);var t=i(e,"lastIndex");return!(!t||!r(t,"value"))&&a(e)}},function(e,t,n){"use strict";var r=n(36),o=n(28);e.exports=function(){var e=r();return o(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},function(e,t,n){"use strict";function r(e){"undefined"!==typeof console&&"function"===typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.a=r},function(e,t,n){"use strict";function r(e){if(!Object(a.a)(e)||Object(o.a)(e)!=s)return!1;var t=Object(i.a)(e);if(null===t)return!0;var n=p.call(t,"constructor")&&t.constructor;
1return"function"==typeof n&&n instanceof n&&c.call(n)==f}var o=n(169),i=n(174),a=n(176),s="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,p=u.hasOwnProperty,f=c.call(Object);t.a=r},function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},function(e,t,n){"use strict";function r(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),o=e.slice(t);return Array.prototype.concat.call([],r(n),r(o))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(a),n=1;n<t.length;n++)e=r(t,n).join(""),t=e.match(a);return e}}function i(e){for(var t={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},n=s.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=o(n[0]);r!==n[0]&&(t[n[0]]=r)}n=s.exec(e)}t["%C2"]="\ufffd";for(var i=Object.keys(t),a=0;a<i.length;a++){var l=i[a];e=e.replace(new RegExp(l,"g"),t[l])}return e}var a=new RegExp("%[a-f0-9]{2}","gi"),s=new RegExp("(%[a-f0-9]{2})+","gi");e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return i(e)}}},function(e,t,n){"use strict";function r(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var r=a.getCoord(e),s=a.getGeom(t),l=s.type,u=t.bbox,c=s.coordinates;if(u&&!1===i(r,u))return!1;"Polygon"===l&&(c=[c]);for(var p=0,f=!1;p<c.length&&!f;p++)if(o(r,c[p][0],n.ignoreBoundary)){for(var h=!1,d=1;d<c[p].length&&!h;)o(r,c[p][d],!n.ignoreBoundary)&&(h=!0),d++;h||(f=!0)}return f}function o(e,t,n){var r=!1;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&(t=t.slice(0,t.length-1));for(var o=0,i=t.length-1;o<t.length;i=o++){var a=t[o][0],s=t[o][1],l=t[i][0],u=t[i][1];if(e[1]*(a-l)+s*(l-e[0])+u*(e[0]-a)===0&&(a-e[0])*(l-e[0])<=0&&(s-e[1])*(u-e[1])<=0)return!n;s>e[1]!==u>e[1]&&e[0]<(l-a)*(e[1]-s)/(u-s)+a&&(r=!r)}return r}function i(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}Object.defineProperty(t,"__esModule",{value:!0});var a=n(189);t.default=r},function(e,t,n){"use strict";function r(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function o(e,t,n){switch(void 0===n&&(n={}),e){case"Point":return i(t).geometry;case"LineString":return u(t).geometry;case"Polygon":return s(t).geometry;case"MultiPoint":return h(t).geometry;case"MultiLineString":return f(t).geometry;case"MultiPolygon":return d(t).geometry;default:throw new Error(e+" is invalid")}}function i(e,t,n){return void 0===n&&(n={}),r({type:"Point",coordinates:e},t,n)}function a(e,t,n){return void 0===n&&(n={}),p(e.map(function(e){return i(e,t)}),n)}function s(e,t,n){void 0===n&&(n={});for(var o=0,i=e;o<i.length;o++){var a=i[o];if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<a[a.length-1].length;s++)if(a[a.length-1][s]!==a[0][s])throw new Error("First and last Position are not equivalent.")}return r({type:"Polygon",coordinates:e},t,n)}function l(e,t,n){return void 0===n&&(n={}),p(e.map(function(e){return s(e,t)}),n)}function u(e,t,n){if(void 0===n&&(n={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return r({type:"LineString",coordinates:e},t,n)}function c(e,t,n){return void 0===n&&(n={}),p(e.map(function(e){return u(e,t)}),n)}function p(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function f(e,t,n){return void 0===n&&(n={}),r({type:"MultiLineString",coordinates:e},t,n)}function h(e,t,n){return void 0===n&&(n={}),r({type:"MultiPoint",coordinates:e},t,n)}function d(e,t,n){return void 0===n&&(n={}),r({type:"MultiPolygon",coordinates:e},t,n)}function m(e,t,n){return void 0===n&&(n={}),r({type:"GeometryCollection",geometries:e},t,n)}function y(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");
1var n=Math.pow(10,t||0);return Math.round(e*n)/n}function g(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n+" units is invalid");return e*r}function v(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n+" units is invalid");return e/r}function _(e,t){return x(v(e,t))}function b(e){var t=e%360;return t<0&&(t+=360),t}function x(e){return e%(2*Math.PI)*180/Math.PI}function w(e){return e%360*Math.PI/180}function E(e,t,n){if(void 0===t&&(t="kilometers"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("length must be a positive number");return g(v(e,t),n)}function T(e,n,r){if(void 0===n&&(n="meters"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var o=t.areaFactors[n];if(!o)throw new Error("invalid original units");var i=t.areaFactors[r];if(!i)throw new Error("invalid final units");return e/o*i}function O(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function C(e){return!!e&&e.constructor===Object}function S(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(e){if(!O(e))throw new Error("bbox must only contain numbers")})}function k(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}function A(){throw new Error("method has been renamed to `radiansToDegrees`")}function P(){throw new Error("method has been renamed to `degreesToRadians`")}function R(){throw new Error("method has been renamed to `lengthToDegrees`")}function D(){throw new Error("method has been renamed to `lengthToRadians`")}function I(){throw new Error("method has been renamed to `radiansToLength`")}function M(){throw new Error("method has been renamed to `bearingToAzimuth`")}function L(){throw new Error("method has been renamed to `convertLength`")}Object.defineProperty(t,"__esModule",{value:!0}),t.earthRadius=6371008.8,t.factors={centimeters:100*t.earthRadius,centimetres:100*t.earthRadius,degrees:t.earthRadius/111325,feet:3.28084*t.earthRadius,inches:39.37*t.earthRadius,kilometers:t.earthRadius/1e3,kilometres:t.earthRadius/1e3,meters:t.earthRadius,metres:t.earthRadius,miles:t.earthRadius/1609.344,millimeters:1e3*t.earthRadius,millimetres:1e3*t.earthRadius,nauticalmiles:t.earthRadius/1852,radians:1,yards:t.earthRadius/1.0936},t.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/t.earthRadius,yards:1/1.0936},t.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:3.86e-7,millimeters:1e6,millimetres:1e6,yards:1.195990046},t.feature=r,t.geometry=o,t.point=i,t.points=a,t.polygon=s,t.polygons=l,t.lineString=u,t.lineStrings=c,t.featureCollection=p,t.multiLineString=f,t.multiPoint=h,t.multiPolygon=d,t.geometryCollection=m,t.round=y,t.radiansToLength=g,t.lengthToRadians=v,t.lengthToDegrees=_,t.bearingToAzimuth=b,t.radiansToDegrees=x,t.degreesToRadians=w,t.convertLength=E,t.convertArea=T,t.isNumber=O,t.isObject=C,t.validateBBox=S,t.validateId=k,t.radians2degrees=A,t.degrees2radians=P,t.distanceToDegrees=R,t.distanceToRadians=D,t.radiansToDistance=I,t.bearingToAngle=M,t.convertDistance=L},function(e,t){var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};e.exports=function(e,t){if(!n(e))throw new Error("Coordinates must be an array");if(e.length<2)throw new Error("Coordinates must be at least 2 numbers long");return{type:"Feature",geometry:{type:"Point",coordinates:e},properties:t||{}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return s});var r=[{name:"Stronger Country Communities Fund",icon:"/img/icon-1.svg",pin:"/img/pins/pin-1.svg"},{name:"Growing Local Economies Fund",icon:"/img/icon-2.svg",pin:"/img/pins/pin-2.svg"},{name:"Resources for Regions Fund",icon:"/img/icon-3.svg",pin:"/img/pins/pin-3.svg"}
1,{name:"Regional Sports Infrastructure Fund",icon:"/img/icon-4.svg",pin:"/img/pins/pin-4.svg"},{name:"Regional Cultural Fund",icon:"/img/icon-5.svg",pin:"/img/pins/pin-5.svg"},{name:"Connecting Country Communities Fund",icon:"/img/icon-6.svg",pin:"/img/pins/pin-6.svg"},{name:"Fixing Country Roads",icon:"/img/icon-7.svg",pin:"/img/pins/pin-7.svg"},{name:"Fixing Country Rail",icon:"/img/icon-8.svg",pin:"/img/pins/pin-8.svg"},{name:"Safe and Secure Water",icon:"/img/icon-9.svg",pin:"/img/pins/pin-9.svg"},{name:"Mobile Black Spots Program",icon:"/img/icon-10.svg",pin:"/img/pins/pin-10.svg"},{name:"Regional Growth - Environment and Tourism Fund",icon:"/img/icon-11.svg",pin:"/img/pins/pin-11.svg"},{name:"NSW Regional Communities Development Fund",icon:"/img/icon-12.svg",pin:"/img/pins/pin-12.svg"},{name:"Bushfire Local Economic Recovery Fund \u2013 BIRP Sector Development Grants",icon:"/img/BIRP.svg",pin:"/img/pins/BIRP-pin.svg"},{name:"Drought Stimulus Package",icon:"/img/DSP-icon.svg",pin:"/img/pins/DSP-pin.svg"},{name:"Bushfire Community Recovery and Resilience Fund",icon:"/img/BCRER.svg",pin:"/img/pins/BCRER-pin.svg"},{name:"Bushfire Local Economic Recovery Fund \u2013 Fast-tracked projects",icon:"/img/BLER.svg",pin:"/img/pins/BLER-pin.svg"},{name:"Regional Events Acceleration Fund",icon:"/img/REAF.svg",pin:"/img/pins/REAF-pin.svg"},{name:"Bushfire Local Economic Recovery Fund",icon:"/img/BLER2.svg",pin:"/img/pins/BLER2-pin.svg"}],o=r.reduce(function(e,t){return e[t.name]=t.icon,e},{}),i=r.reduce(function(e,t){return e[t.name]=t.pin,e},{}),a=(r.reduce(function(e,t){return e[t.name]=t,e},{}),function(e){return o[e]||"/img/black-pin.svg"}),s=function(e){return i[e]||"/img/black-pin.svg"}},function(e,t,n){"use strict";var r=n(109);n.d(t,"g",function(){return r.a});var o=n(110);n.d(t,"f",function(){return o.a});var i=(n(17),n(117));n.d(t,"b",function(){return i.a});var a=n(229);n.d(t,"d",function(){return a.a});var s=(n(231),n(232),n(234));n.d(t,"c",function(){return s.a});var l=(n(235),n(236),n(237));n.d(t,"e",function(){return l.a});var u=(n(47),n(44));n.d(t,"a",function(){return u.b});n(86),n(46)},function(e,t,n){"use strict";function r(){var e=new c.a(2);return c.a!=Float32Array&&(e[0]=0,e[1]=0),e}function o(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function i(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function a(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function s(e){var t=e[0],n=e[1];return Math.hypot(t,n)}function l(e,t){return e[0]=-t[0],e[1]=-t[1],e}function u(e,t,n,r){var o=t[0],i=t[1];return e[0]=o+r*(n[0]-o),e[1]=i+r*(n[1]-i),e}t.a=o,t.e=a,t.b=s,t.d=l,t.c=u,n.d(t,"f",function(){return p});var c=n(43),p=i;!function(){var e=r()}()},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var r="undefined"!==typeof window?window:e,o=("undefined"!==typeof e||window,"undefined"!==typeof document?document:{})}).call(t,n(15))},function(e,t,n){"use strict";var r=n(211),o=n.n(r);n.d(t,"a",function(){return o.a})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(2),o=n(3),i=n(5),a=n(45),s=n(40),l=function(){function e(){Object(r.a)(this,e),Object(i.a)(this,"propNames",[])}return Object(o.a)(e,[{key:"arePropsEqual",value:function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,s=(this.propNames||[])[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;if(!Object(a.b)(e[l],t[l]))return!1}}catch(e){r=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return!0}},{key:"initializeProps",value:function(e,t){return{start:e,end:t}}},{key:"interpolateProps",value:function(e,t,n){Object(s.a)(!1,"interpolateProps is not implemented")}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return f}),n.d(t,"b",function(){return d});var r=n(14),o=n(2),i=n(3),a=n(5),s=n(26),l=n(44),u=n(47),c=n(226),p={transitionDuration:0},f={transitionDuration:300,transitionEasing:function(e){return e},transitionInterpolator:new l.a,transitionInterruption:u.a.BREAK},h={WHEEL:["wheel"],PAN:["panstart","panmove","panend"],PINCH:["pinchstart","pinchmove","pinchend","pinchcancel"],DOUBLE_TAP:["doubletap"],KEYBOARD:["keydown"]},d=function(){function e(){var t=this;Object(o.a)(this,e),Object(a.a)(this,"events",[]),Object(a.a)(this,"mapState",void 0),Object(a.a)(this,"onViewportChange",void 0),Object(a.a)(this,"onStateChange",void 0),Object(a.a)(this,"mapStateProps",void 0),Object(a.a)(this,"eventManager",void 0),Object(a.a)(this,"scrollZoom",!0),Object(a.a)(this,"dragPan",!0),Object(a.a)(this,"dragRotate",!0),Object(a.a)(this,"doubleClickZoom",!0),Object(a.a)(this,"touchZoom",!0),Object(a.a)(this,"touchRotate",!1),Object(a.a)(this,"keyboard",!0),Object(a.a)(this,"_state",{isDragging:!1}),Object(a.a)(this,"_events",{}),Object(a.a)(this,"_transitionManager",new u.b),Object(a.a)(this,"setState",function(e){Object.assign(t._state,e),t.onStateChange&&t.onStateChange(t._state)}),this.handleEvent=this.handleEvent.bind(this),this._onWheelEnd=Object(c.a)(this._onWheelEnd,100)}return Object(i.a)(e,[{key:"handleEvent",value:function(e){switch(this.mapState=this.getMapState(),e.type){case"panstart":return this._onPanStart(e);case"panmove":return this._onPan(e);case"panend":return this._onPanEnd(e);case"pinchstart":return this._onPinchStart(e);case"pinchmove":return this._onPinch(e);case"pinchcancel":case"pinchend":return this._onPinchEnd(e);case"doubletap":return this._onDoubleTap(e);case"wheel":return this._onWheel(e);case"keydown":return this._onKeyDown(e);default:return!1}}},{key:"getCenter",value:function(e){var t=e.offsetCenter;return[t.x,t.y]}},{key:"isFunctionKeyPressed",value:function(e){var t=e.srcEvent;return Boolean(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}},{key:"updateViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.mapState?this.mapState.getViewportProps():{},o=Object.assign({},e.getViewportProps(),t);Object.keys(o).some(function(e){return r[e]!==o[e]})&&this.onViewportChange(o,n,r),this.setState(Object.assign({},e.getInteractiveState(),n))}},{key:"getMapState",value:function(e){return new s.b(Object.assign({},this.mapStateProps,this._state,e))}},{key:"setOptions",value:function(e){var t=e.onViewportChange,n=e.onStateChange,r=e.eventManager,o=void 0===r?this.eventManager:r,i=e.isInteractive,a=void 0===i||i,l=e.scrollZoom,u=void 0===l?this.scrollZoom:l,c=e.dragPan,p=void 0===c?this.dragPan:c,f=e.dragRotate,d=void 0===f?this.dragRotate:f,m=e.doubleClickZoom,y=void 0===m?this.doubleClickZoom:m,g=e.touchZoom,v=void 0===g?this.touchZoom:g,_=e.touchRotate,b=void 0===_?this.touchRotate:_,x=e.ke
1yboard,w=void 0===x?this.keyboard:x;this.onViewportChange=t,this.onStateChange=n,this.mapStateProps&&this.mapStateProps.height===e.height||this.updateViewport(new s.b(e)),this.mapStateProps=e,this._transitionManager.processViewportChange(Object.assign({},e,{onStateChange:this.setState})),this.eventManager!==o&&(this.eventManager=o,this._events={},this.toggleEvents(this.events,!0)),this.toggleEvents(h.WHEEL,a&&u),this.toggleEvents(h.PAN,a&&(p||d)),this.toggleEvents(h.PINCH,a&&(v||b)),this.toggleEvents(h.DOUBLE_TAP,a&&y),this.toggleEvents(h.KEYBOARD,a&&w),this.scrollZoom=u,this.dragPan=p,this.dragRotate=d,this.doubleClickZoom=y,this.touchZoom=v,this.touchRotate=b,this.keyboard=w}},{key:"toggleEvents",value:function(e,t){var n=this;this.eventManager&&e.forEach(function(e){n._events[e]!==t&&(n._events[e]=t,t?n.eventManager.on(e,n.handleEvent):n.eventManager.off(e,n.handleEvent))})}},{key:"_onPanStart",value:function(e){var t=this.getCenter(e),n=this.mapState.panStart({pos:t}).rotateStart({pos:t});return this.updateViewport(n,p,{isDragging:!0}),!0}},{key:"_onPan",value:function(e){return this.isFunctionKeyPressed(e)||e.rightButton?this._onPanRotate(e):this._onPanMove(e)}},{key:"_onPanEnd",value:function(e){var t=this.mapState.panEnd().rotateEnd();return this.updateViewport(t,null,{isDragging:!1,isPanning:!1,isRotating:!1}),!0}},{key:"_onPanMove",value:function(e){if(!this.dragPan)return!1;var t=this.getCenter(e),n=this.mapState.pan({pos:t});return this.updateViewport(n,p,{isPanning:!0}),!0}},{key:"_onPanRotate",value:function(e){if(!this.dragRotate)return!1;var t=e.deltaX,n=e.deltaY,o=this.getCenter(e),i=Object(r.a)(o,2),a=i[1],s=a-n,l=this.mapState.getViewportProps(),u=l.width,c=l.height,f=t/u,h=0;n>0?Math.abs(c-s)>5&&(h=n/(s-c)*1.2):n<0&&s>5&&(h=1-a/s),h=Math.min(1,Math.max(-1,h));var d=this.mapState.rotate({deltaScaleX:f,deltaScaleY:h});return this.updateViewport(d,p,{isRotating:!0}),!0}},{key:"_onWheel",value:function(e){if(!this.scrollZoom)return!1;e.preventDefault();var t=this.getCenter(e),n=e.delta,r=2/(1+Math.exp(-Math.abs(.01*n)));n<0&&0!==r&&(r=1/r);var o=this.mapState.zoom({pos:t,scale:r});return this.updateViewport(o,p,{isZooming:!0}),this._onWheelEnd(),!0}},{key:"_onWheelEnd",value:function(){this.setState({isZooming:!1})}},{key:"_onPinchStart",value:function(e){var t=this.getCenter(e),n=this.mapState.zoomStart({pos:t}).rotateStart({pos:t});return this._state.startPinchRotation=e.rotation,this.updateViewport(n,p,{isDragging:!0}),!0}},{key:"_onPinch",value:function(e){if(!this.touchZoom&&!this.touchRotate)return!1;var t=this.mapState;if(this.touchZoom){var n=e.scale,r=this.getCenter(e);t=t.zoom({pos:r,scale:n})}if(this.touchRotate){var o=e.rotation,i=this._state.startPinchRotation;t=t.rotate({deltaScaleX:-(o-i)/180})}return this.updateViewport(t,p,{isDragging:!0,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:this.touchRotate}),!0}},{key:"_onPinchEnd",value:function(e){var t=this.mapState.zoomEnd().rotateEnd();return this._state.startPinchRotation=0,this.updateViewport(t,null,{isDragging:!1,isPanning:!1,isZooming:!1,isRotating:!1}),!0}},{key:"_onDoubleTap",value:function(e){if(!this.doubleClickZoom)return!1;var t=this.getCenter(e),n=this.isFunctionKeyPressed(e),r=this.mapState.zoom({pos:t,scale:n?.5:2});return this.updateViewport(r,Object.assign({},f,{transitionInterpolator:new l.a({around:t})})),!0}},{key:"_onKeyDown",value:function(e){if(!this.keyboard)return!1;var t,n=this.isFunctionKeyPressed(e),r=this.mapStateProps;switch(e.srcEvent.keyCode){case 189:t=n?this.getMapState({zoom:r.zoom-2}):this.getMapState({zoom:r.zoom-1});break;case 187:t=n?this.getMapState({zoom:r.zoom+2}):this.getMapState({zoom:r.zoom+1});break;case 37:t=n?this.getMapState({bearing:r.bearing-15}):this.mapState.pan({pos:[100,0],startPos:[0,0]});break;case 39:t=n?this.getMapState({bearing:r.bearing+15}):this.mapState.pan({pos:[-100,0],startPos:[0,0]});break;case 38:t=n?this.getMapState({pitch:r.pitch+10}):this.mapState.pan({pos:[0,100],startPos:[0,0]});break;case 40:t=n?this.getMapState({pitch:r.pitch-10}):this.mapState.pan({pos:[0,-100],startPos:[0,0]});break;default:return!1}return this.updateViewport(t,f)}}]),e}()},function(e,t,n){var r,o,i;!function(n,a){o=[t],r=a,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=void 0,r={randomId:function(){return Math.random().toString(36).split(".")[1]},returnFirstDefined:function(){for(var e=void 0,t=void 0,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];for(t=0;t<r.length;t++)if("undefined"!==typeof r[t]){e=r[t];break}return e},styleToObj:function(e){var t={},n=void 0,r=void 0,o=e&&e.split(";").filter(Boolean);for(n=0;n<o.length;n++)r=o[n].split(":"),t[r.splice(0,1)[0].trim()]=r.join(":").trim();return t},setGlobalConfig:function(e){"object"===("undefined"===typeof e?"undefined":t(e))&&(n=e)},getGlobalConfig:function(){return n}};e.default=r})},function(e,t,n){var r,o,i;!function(n,a){o=[t],r=a,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var n=function(e,n){return[].concat(t(e),[n.data])},r=function(e,n){var r=e.slice().filter(function(e){return e.id===n.data.id});if(Array.isArray(r)){var o=e.indexOf(r[0]);return[].concat(t(e.slice(0,o)),t(e.slice(o+1)))}return e},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"INSERT":return n(e,t);case"REMOVE":return r(e,t);case"REMOVEALL":return[];default:return e}},i=function(e){var t=void 0,n=[],r=function(){return t},o=function(r){t=e(t,r),n.forEach(function(e){return e()})},i=function(e){return n.push(e),function(){n=n.filter(function(t){return t!==e})}};return o({}),{getState:r,dispatch:o,subscribe:i}}(o);e.default=i})},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){function r(e){return"symbol"==typeof e||i(e)&&o(e)==a}var o=n(141),i=n(301),a="[object Symbol]";e.exports=r},function(e,t,n){var r=n(92),o=r.Symbol;e.exports=o},function(e,t,n){var r=n(298),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";var r=n(145);t.a=function(e){if(null==e)return r.a;var t,n,o=e.scale[0],i=e.scale[1],a=e.translate[0],s=e.translate[1];return function(e,r){r||(t=n=0);var l=2,u=e.length,c=new Array(u);for(c[0]=(t+=e[0])*o+a,c[1]=(n+=e[1])*i+s;l<u;)c[l]=e[l],++l;return c}}},function(e,t,n){"use strict";function r(e,t){var n=t.id,r=t.bbox,i=null==t.properties?{}:t.properties,a=o(e,t);return null==n&&null==r?{type:"Feature",properties:i,geometry:a}:null==r?{type:"Feature",id:n,properties:i,geometry:a}:{type:"Feature",id:n,bbox:r,properties:i,geometry:a}}function o(e,t){function n(e,t){t.length&&t.pop();for(var n=p[e<0?~e:e],r=0,o=n.length;r<o;++r)t.push(c(n[r],r));e<0&&Object(i.a)(t,o)}function r(e){return c(e)}function o(e){for(var t=[],r=0,o=e.length;r<o;++r)n(e[r],t);return t.length<2&&t.push(t[0]),t}function s(e){for(var t=o(e);t.length<4;)t.push(t[0]);return t}function l(e){return e.map(s)}function u(e){var t,n=e.type;switch(n){case"GeometryCollection":return{type:n,geometries:e.geometries.map(u)};case"Point":t=r(e.coordinates);break;case"MultiPoint":t=e.coordinates.map(r);break;case"LineString":t=o(e.arcs);break;case"MultiLineString":t=e.arcs.map(o);break;case"Polygon":t=l(e.arcs);break;case"MultiPolygon":t=e.arcs.map(l);break;default:return null}return{type:n,coordinates:t}}var c=Object(a.a)(e.transform),p=e.arcs;return u(t)}t.b=o;var i=n(341),a=n(93);t.a=function(e,t){return"GeometryCollection"===t.type?{type:"FeatureCollection",features:t.geometries.map(function(t){return r(e,t)})}:r(e,t)}},function(e,t,n){"use strict";e.exports=n(96)},function(e,t,n){t.iframeResizer=n(97),t.iframeResizerContentWindow=n(98)},function(e,t,n){var r,o,i;!function(n){"use strict";function a(e,t,n){"addEventListener"in window?e.addEventListener(t,n,!1):"attachEvent"in window&&e.attachEvent("on"+t,n)}function s(e,t,n){"removeEventListener"in window?e.removeEventListener(t,n,!1):"detachEvent"in window&&e.detachEvent("on"+t,n)}function l(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!H;e+=1)H=window[t[e]+"RequestAnimationFrame"];H||f("setup","RequestAnimationFrame not supported")}function u(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}function c(e){return B+"["+u(e)+"]"}function p(e){return G[e]?G[e].log:z}function f(e,t){m("log",e,t,p(e))}function h(e,t){m("info",e,t,p(e))}function d(e,t){m("warn",e,t,!0)}function m(e,t,n,r){!0===r&&"object"===typeof window.console&&console[e](c(t),n)}function y(e){function t(){function e(){E(D),b(I),k("resizedCallback",D)}n("Height"),n("Width"),T(e,D,"init")}function n(e){var t=Number(G[I]["max"+e]),n=Number(G[I]["min"+e]),r=e.toLowerCase(),o=Number(D[r]);f(I,"Checking "+r+" is in range "+n+"-"+t),o<n&&(o=n,f(I,"Set "+r+" to min value")),o>t&&(o=t,f(I,"Set "+r+" to max value")),D[r]=""+o}function r(e){return R.substr(R.indexOf(":")+N+e)}function o(e){f(I,"MessageCallback passed: {iframe: "+D.iframe.id+", message: "+e+"}"),k("messageCallback",{iframe:D.iframe,message:JSON.parse(e)}),f(I,"--")}function i(){var e=document.body.getBoundingClientRect(),t=D.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-e.top,10),offsetLeft:parseInt(t.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})}function l(e,t){function n(){O("Send Page Info","pageInfo:"+i(),e,t)}A(n,32,t)}function u(){function e(e,r){function o(){G[n]?l(G[n].iframe,n):t()}["scroll","resize"].forEach(function(t){f(n,e+t+" listener for sendPageInfo"),r(window,t,o)})}function t(){e("Remove ",s)}var n=I;!function(){e("Add ",a)}(),G[n]&&(G[n].stopPageInfo=t)}function c(){G[I]&&G[I].stopPageInfo&&(G[I].stopPageInfo(),delete G[I].stopPageInfo)}function p(e){var t=e.getBoundingClientRect();return _(I),{x:Math.floor(Number(t.left)+Number(V.x)),y:Math.floor(Number(t.top)+Number(V.y))}}function m(e){var t=e?p(D.iframe):{x:0,y:0},n=function(){return{x:Number(D.width)+t.x,y:Number(D.height)+t.y}}();f(I,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?function(){window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):d(I,"Unable to scroll to requested position, window.parentIFrame not found")}():function(){V=n,y(),f(I,"--")}()}function y(){!1!==k("scrollCallback",V)?b(I):x()}function S(e){var t=e.split("#")[1]||"",n=decodeURIComponent(t),r=document.getElementById(n)||document.getElementsByName(n)[0];r?function(){var e=p(r);f(I,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),V={x:e.x,y:e.y},y(),f(I,"--")}():window.top!==window.self?function(){window.parentIFrame?window.parentIFrame.moveToAnchor(t):f(I,"In page link #"+t+" not found and window.parentIFrame not found")}():f(I,"In page link #"+t+" not found")}function k(e,t){return g(I,e,t)}function P(){G[I]&&(G[I].firstRun=!1)}var R=e.data,D={},I=null;"[iFrameResizerChild]Ready"===R?function(){for(var e in G)O("iFrame requested init",C(e),document.getElementById(e),e)}():function(){return B===(""+R).substr(0,U)&&R.substr(U).split(":")[0]in G}()?(D=function(){var e=R.substr(U).split(":");return{iframe:G[e[0]]&&G[e[0]].iframe,id:e[0],height:e[1],width:e[2],type:e[3]}}(),I=Z=D.id,G[I]&&(G[I].loaded=!0),!function(){var e=D.type in{true:1,false:1,undefined:1};return e&&f(I,"Ignoring init message from meta parent page"),e}()&&function(e){var t=!0;return G[e]||(t=!1,d(D.type+" No settings for "+e+". Message was: "+R
1)),t}(I)&&(f(I,"Received: "+R),function(){var e=!0;return null===D.iframe&&(d(I,"IFrame ("+D.id+") not found"),e=!1),e}()&&function(){var t=e.origin,n=G[I]&&G[I].checkOrigin;if(n&&""+t!=="null"&&!function(){return n.constructor===Array?function(){var e=0,r=!1;for(f(I,"Checking connection is from allowed list of origins: "+n);e<n.length;e++)if(n[e]===t){r=!0;break}return r}():function(){var e=G[I]&&G[I].remoteHost;return f(I,"Checking connection is from: "+e),t===e}()}())throw new Error("Unexpected message received from: "+t+" for "+D.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(G[I]&&G[I].firstRun&&P(),D.type){case"close":G[I].closeRequestCallback?g(I,"closeRequestCallback",G[I].iframe):v(D.iframe);break;case"message":o(r(6));break;case"scrollTo":m(!1);break;case"scrollToOffset":m(!0);break;case"pageInfo":l(G[I]&&G[I].iframe,I),u();break;case"pageInfoStop":c();break;case"inPageLink":S(r(9));break;case"reset":w(D);break;case"init":t(),k("initCallback",D.iframe);break;default:t()}}())):h(I,"Ignored: "+R)}function g(e,t,n){var r=null,o=null;if(G[e]){if("function"!==typeof(r=G[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=r(n)}return o}function v(e){var t=e.id;f(t,"Removing iFrame: "+t),e.parentNode&&e.parentNode.removeChild(e),g(t,"closedCallback",t),f(t,"--"),delete G[t]}function _(e){null===V&&(V={x:window.pageXOffset!==n?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==n?window.pageYOffset:document.documentElement.scrollTop},f(e,"Get page position: "+V.x+","+V.y))}function b(e){null!==V&&(window.scrollTo(V.x,V.y),f(e,"Set page position: "+V.x+","+V.y),x())}function x(){V=null}function w(e){function t(){E(e),O("reset","reset",e.iframe,e.id)}f(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),_(e.id),T(t,e,"reset")}function E(e){function t(t){e.iframe.style[t]=e[t]+"px",f(e.id,"IFrame ("+o+") "+t+" set to "+e[t]+"px")}function n(t){F||"0"!==e[t]||(F=!0,f(o,"Hidden iFrame detected, creating visibility listener"),P())}function r(e){t(e),n(e)}var o=e.iframe.id;G[o]&&(G[o].sizeHeight&&r("height"),G[o].sizeWidth&&r("width"))}function T(e,t,n){n!==t.type&&H?(f(t.id,"Requesting animation frame"),H(e)):e()}function O(e,t,n,r,o){function i(){var o=G[r]&&G[r].targetOrigin;f(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+o),n.contentWindow.postMessage(B+t,o)}function a(){d(r,"["+e+"] IFrame("+r+") not found")}var s=!1;r=r||n.id,G[r]&&(function(){n&&"contentWindow"in n&&null!==n.contentWindow?i():a()}(),function(){function e(){!G[r]||G[r].loaded||s||(s=!0,d(r,"IFrame has not responded within "+G[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ingored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}o&&G[r]&&G[r].warningTimeout&&(G[r].msgTimeout=setTimeout(e,G[r].warningTimeout))}())}function C(e){return e+":"+G[e].bodyMarginV1+":"+G[e].sizeWidth+":"+G[e].log+":"+G[e].interval+":"+G[e].enablePublicMethods+":"+G[e].autoResize+":"+G[e].bodyMargin+":"+G[e].heightCalculationMethod+":"+G[e].bodyBackground+":"+G[e].bodyPadding+":"+G[e].tolerance+":"+G[e].inPageLinks+":"+G[e].resizeFrom+":"+G[e].widthCalculationMethod}function S(e,t){function r(){var e=t&&t.id||K.id+j++;return null!==document.getElementById(e)&&(e+=j++),e}function o(){var t=G[u]&&G[u].firstRun,n=G[u]&&G[u].heightCalculationMethod in q;!t&&n&&w({iframe:e,height:0,width:0,type:"init"})}function i(e){if("object"!==typeof e)throw new TypeError("Options is not an object")}function s(e){for(var t in K)K.hasOwnProperty(t)&&(G[u][t]=e.hasOwnProperty(t)?e[t]:K[t])}function l(e){return""===e||"file://"===e?"*":e}var u=function(n){return Z=n,""===n&&(e.id=n=r(),z=(t||{}).log,Z=n,f(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);!function(){return u in G&&"iFrameResizer"in e}()?(function(t){t=t||{},G[u]={firstRun:!0,iframe:e,remoteHost:e.src.split("/").slice(0,3).join("/")},i(t),s(t),G[u]&&(G[u].targetOrigin=!0===G[u].checkOrigin?l(G[u].remoteHost):"*")}(t),function(){switch(f(u,"IFrame scrolling "+(G[u]&&G[u].scrolling?"enabled":"disabled")+" for "+u),e.style.overflow=!1===(G[u]&&G[u].scrolling)?"hidden":"auto",G[u]&&G[u].scrolling){case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=G[u]?G[u].scrolling:"no"}}(),function(){function t(t){1/0!==G[u][t]&&0!==G[u][t]&&(e.style[t]=G[u][t]+"px",f(u,"Set "+t+" = "+G[u][t]+"px"))}function n(e){if(G[u]["min"+e]>G[u]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),function(){"number"!==typeof(G[u]&&G[u].bodyMargin)&&"0"!==(G[u]&&G[u].bodyMargin)||(G[u].bodyMarginV1=G[u].bodyMargin,G[u].bodyMargin=G[u].bodyMargin+"px")}(),function(t){function r(){O("iFrame.onload",t,e,n,!0),o()}a(e,"load",r),O("init",t,e,n,!0)}(C(u)),function(){Function.prototype.bind&&G[u]&&(G[u].iframe.iFrameResizer={close:v.bind(null,G[u].iframe),resize:O.bind(null,"Window resize","resize",G[u].iframe),moveToAnchor:function(e){O("Move to anchor","moveToAnchor:"+e,G[u].iframe,u)},sendMessage:function(e){e=JSON.stringify(e),O("Send Message","message:"+e,G[u].iframe,u)}})}()):d(u,"Ignored iFrame, already setup.")}function k(e,t){null===W&&(W=setTimeout(function(){W=null,e()},t))}function A(e,t,n){X[n]||(X[n]=setTimeout(function(){X[n]=null,e()},t))}function P(){function e(){for(var e in G)!function(e){function t(t){return"0px"===(G[e]&&G[e].iframe.style[t])}G[e]&&function(e){return null!==e.offsetParent}(G[e].iframe)&&(t("height")||t("width"))&&O("Visibility change","resize",G[e].iframe,e)}(e)}function t(t){f("window","Mutation observed: "+t[0].target+" "+t[0].type),k(e,16)}var n=window.MutationObserver||window.WebKitMutationObserver;n&&function(){var e=document.querySelector("body"),r={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new n(t).observe(e,r)}()}function R(e){function t(){I("Window "+e,"resize")}f("window","Trigger event: "+e),k(t,16)}function D(){function e(){I("Tab Visable","resize")}"hidden"!==document.visibilityState&&(f("document","Trigger event: Visiblity change"),k(e,16))}function I(e,t){for(var n in G)(function(e){return G[e]&&"parent"===G[e].resizeFrom&&G[e].autoResize&&!G[e].firstRun})(n)&&O(e,t,document.getElementById(n),n)}function M(){a(window,"message",y),a(window,"resize",function(){R("resize")}),a(document,"visibilitychange",D),a(document,"-webkit-visibilitychange",D),a(window,"focu
1sin",function(){R("focus")}),a(window,"focus",function(){R("focus")})}function L(){function e(e,t){t&&(!function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}(),S(t,e),r.push(t))}function t(e){e&&e.enablePublicMethods&&d("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}var r;return l(),M(),function(o,i){switch(r=[],t(o),typeof i){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),e.bind(n,o));break;case"object":e(o,i);break;default:throw new TypeError("Unexpected data type ("+typeof i+")")}return r}}if("undefined"!==typeof window){var j=0,z=!1,F=!1,N="message".length,B="[iFrameSizer]",U=B.length,V=null,H=window.requestAnimationFrame,q={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},G={},W=null,Z="Host Page",K={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){d("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}},X={};window.jQuery&&function(e){e.fn?e.fn.iFrameResize||(e.fn.iFrameResize=function(e){function t(t,n){S(n,e)}return this.filter("iframe").each(t).end()}):h("","Unable to bind to jQuery, it is not fully loaded.")}(window.jQuery),o=[],r=L,(i="function"===typeof r?r.apply(t,o):r)!==n&&(e.exports=i)}}()},function(e,t){!function(t){"use strict";function n(e,t,n){"addEventListener"in window?e.addEventListener(t,n,!1):"attachEvent"in window&&e.attachEvent("on"+t,n)}function r(e,t,n){"removeEventListener"in window?e.removeEventListener(t,n,!1):"detachEvent"in window&&e.detachEvent("on"+t,n)}function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e){return pe+"["+he+"] "+e}function a(e){ce&&"object"===typeof window.console&&console.log(i(e))}function s(e){"object"===typeof window.console&&console.warn(i(e))}function l(){u(),a("Initialising iFrame ("+location.href+")"),c(),h(),f("background",Z),f("padding",J),C(),v(),_(),d(),k(),b(),se=S(),N("init","Init message from host page"),ke()}function u(){function e(e){return"true"===e}var n=ae.substr(fe).split(":");he=n[0],K=t!==n[1]?Number(n[1]):K,$=t!==n[2]?e(n[2]):$,ce=t!==n[3]?e(n[3]):ce,le=t!==n[4]?Number(n[4]):le,G=t!==n[6]?e(n[6]):G,X=n[7],oe=t!==n[8]?n[8]:oe,Z=n[9],J=n[10],_e=t!==n[11]?Number(n[11]):_e,se.enable=t!==n[12]&&e(n[12]),me=t!==n[13]?n[13]:me,Oe=t!==n[14]?n[14]:Oe}function c(){function e(e,t){return"function"===typeof e&&(a("Setup custom "+t+"CalcMethod"),Pe[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(!function(){var e=window.iFrameResizer;a("Reading data from page: "+JSON.stringify(e)),Se="messageCallback"in e?e.messageCallback:Se,ke="readyCallback"in e?e.readyCallback:ke,ve="targetOrigin"in e?e.targetOrigin:ve,oe="heightCalculationMethod"in e?e.heightCalculationMethod:oe,Oe="widthCalculationMethod"in e?e.widthCalculationMethod:Oe}(),oe=e(oe,"height"),Oe=e(Oe,"width")),a("TargetOrigin for parent set to: "+ve)}function p(e,t){return-1!==t.indexOf("-")&&(s("Negative CSS value ignored for "+e),t=""),t}function f(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,a("Body "+e+' set to "'+n+'"'))}function h(){t===X&&(X=K+"px"),f("margin",p("margin",X))}function d(){document.documentElement.style.height="",document.body.style.height="",a('HTML & body height set to "auto"')}function m(e){var t={add:function(t){function r(){N(e.eventName,e.eventType)}Re[t]=r,n(window,t,r)},remove:function(e){var t=Re[e];delete Re[e],r(window,e,t)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),a(o(e.method)+" event listener: "+e.eventType)}function y(e){m({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),m({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),m({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),m({method:e,eventType:"Input",eventName:"input"}),m({method:e,eventType:"Mouse Up",eventName:"mouseup"}),m({method:e,eventType:"Mouse Down",eventName:"mousedown"}),m({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),m({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),m({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),m({method:e,eventType:"Touch Start",eventName:"touchstart"}),m({method:e,eventType:"Touch End",eventName:"touchend"}),m({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),m({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),m({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),m({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}
1),"child"===me&&m({method:e,eventType:"IFrame Resized",eventName:"resize"})}function g(e,t,n,r){return t!==e&&(e in n||(s(e+" is not a valid option for "+r+"CalculationMethod."),e=t),a(r+' calculation method set to "'+e+'"')),e}function v(){oe=g(oe,re,Ie,"height")}function _(){Oe=g(Oe,Te,Me,"width")}function b(){!0===G?(y("add"),R()):a("Auto Resize disabled")}function x(){a("Disable outgoing messages"),ye=!1}function w(){a("Remove event listener: Message"),r(window,"message",q)}function E(){null!==Y&&Y.disconnect()}function T(){y("remove"),E(),clearInterval(ue)}function O(){x(),w(),!0===G&&T()}function C(){var e=document.createElement("div");e.style.clear="both",e.style.display="block",document.body.appendChild(e)}function S(){function e(){return{x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}}function r(t){var n=t.getBoundingClientRect(),r=e();return{x:parseInt(n.left,10)+parseInt(r.x,10),y:parseInt(n.top,10)+parseInt(r.y,10)}}function o(e){var n=e.split("#")[1]||e,o=decodeURIComponent(n),i=document.getElementById(o)||document.getElementsByName(o)[0];t!==i?function(e){var t=r(e);a("Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),H(t.y,t.x,"scrollToOffset")}(i):(a("In page link (#"+n+") not found in iFrame, so sending to parent"),H(0,0,"inPageLink","#"+n))}function i(){""!==location.hash&&"#"!==location.hash&&o(location.href)}function l(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&n(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function u(){n(window,"hashchange",i)}function c(){setTimeout(i,ee)}return se.enable?function(){Array.prototype.forEach&&document.querySelectorAll?(a("Setting up location.hash handlers"),l(),u(),c()):s("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}():a("In page linking not enabled"),{findTarget:o}}function k(){a("Enable public methods"),Ce.parentIFrame={autoResize:function(e){return!0===e&&!1===G?(G=!0,b()):!1===e&&!0===G&&(G=!1,T()),G},close:function(){H(0,0,"close"),O()},getId:function(){return he},getPageInfo:function(e){"function"===typeof e?(Ae=e,H(0,0,"pageInfo")):(Ae=function(){},H(0,0,"pageInfoStop"))},moveToAnchor:function(e){se.findTarget(e)},reset:function(){V("parentIFrame.reset")},scrollTo:function(e,t){H(t,e,"scrollTo")},scrollToOffset:function(e,t){H(t,e,"scrollToOffset")},sendMessage:function(e,t){H(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){oe=e,v()},setWidthCalculationMethod:function(e){Oe=e,_()},setTargetOrigin:function(e){a("Set targetOrigin: "+e),ve=e},size:function(e,t){N("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}}}function A(){0!==le&&(a("setInterval: "+le+"ms"),ue=setInterval(function(){N("interval","setInterval: "+le)},Math.abs(le)))}function P(){function e(e){function t(e){!1===e.complete&&(a("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",s,!1),u.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function n(e){u.splice(u.indexOf(e),1)}function r(e){a("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",s,!1),n(e)}function o(e,n,o){r(e.target),N(n,o+": "+e.target.src,t,t)}function i(e){o(e,"imageLoad","Image loaded")}function s(e){o(e,"imageLoadFailed","Image load failed")}function l(t){N("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}var u=[],c=window.MutationObserver||window.WebKitMutationObserver,p=function(){var e=document.querySelector("body"),t={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return p=new c(l),a("Create body MutationObserver"),p.observe(e,t),p}();return{disconnect:function(){"disconnect"in p&&(a("Disconnect body MutationObserver"),p.disconnect(),u.forEach(r))}}}function R(){var e=0>le;window.MutationObserver||window.WebKitMutationObserver?e?A():Y=P():(a("MutationObserver not supported in this browser!"),A())}function D(e,t){var n=0;return t=t||document.body,"defaultView"in document&&"getComputedStyle"in document.defaultView?(n=document.defaultView.getComputedStyle(t,null),n=null!==n?n[e]:0):n=function(e){if(/^\d+(px)?$/i.test(e))return parseInt(e,W);var n=t.style.left,r=t.runtimeStyle.left;return t.runtimeStyle.left=t.currentStyle.left,t.style.left=e||0,e=t.style.pixelLeft,t.style.left=n,t.runtimeStyle.left=r,e}(t.currentStyle[e]),parseInt(n,W)}function I(e){e>we/2&&(we=2*e,a("Event throttle increased to "+we+"ms"))}function M(e,t){for(var n=t.length,r=0,i=0,s=o(e),l=De(),u=0;u<n;u++)(r=t[u].getBoundingClientRect()[e]+D("margin"+s,t[u]))>i&&(i=r);return l=De()-l,a("Parsed "+n+" HTML elements"),a("Element position calculated in "+l+"ms"),I(l),i}function L(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function j(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&function(){s("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")}(),M(e,n)}function z(){return document.querySelectorAll("body *")}function F(e,n,r,o){function i(){return!(e in{init:1,interval:1,size:1})}function s(){return oe in de||$&&Oe in de}function l(){a("No change in size detected")}var u,c;!function(){function e(e,t){return!(Math.abs(e-t)<=_e)}
1return u=t!==r?r:Ie[oe](),c=t!==o?o:Me[Oe](),e(ne,u)||$&&e(Ee,c)}()&&"init"!==e?function(){i()&&s()?V(n):e in{interval:1}||l()}():(B(),function(){ne=u,Ee=c,H(ne,Ee,e)}())}function N(e,t,n,r){!function(){return be&&e in Q}()?(!function(){e in{reset:1,resetPage:1,init:1}||a("Trigger event: "+t)}(),"init"===e?F(e,t,n,r):Le(e,t,n,r)):a("Trigger event cancelled: "+e)}function B(){be||(be=!0,a("Trigger event lock on")),clearTimeout(xe),xe=setTimeout(function(){be=!1,a("Trigger event lock off"),a("--")},ee)}function U(e){ne=Ie[oe](),Ee=Me[Oe](),H(ne,Ee,e)}function V(e){var t=oe;oe=re,a("Reset trigger event: "+e),B(),U("reset"),oe=t}function H(e,n,r,o,i){!0===ye&&(function(){t===i?i=ve:a("Message targetOrigin: "+i)}(),function(){var s=e+":"+n,l=he+":"+s+":"+r+(t!==o?":"+o:"");a("Sending message to host page ("+l+")"),ge.postMessage(pe+l,i)}())}function q(t){function r(){return t.data.split("]")[1].split(":")[0]}function o(){return t.data.substr(t.data.indexOf(":")+1)}function i(){return!("undefined"!==typeof e&&e.exports)&&"iFrameResize"in window}function u(){return t.data.split(":")[2]in{true:1,false:1}}function c(){var e=r();e in p?p[e]():i()||u()||s("Unexpected message ("+t.data+")")}var p={init:function(){"interactive"===document.readyState||"complete"===document.readyState?function(){ae=t.data,ge=t.source,l(),te=!1,setTimeout(function(){ie=!1},ee)}():(a("Waiting for page ready"),n(window,"readystatechange",p.initFromParent))},reset:function(){ie?a("Page reset ignored by init"):(a("Page size reset by host page"),U("resetPage"))},resize:function(){N("resizeParent","Parent window requested size check")},moveToAnchor:function(){se.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=o();a("PageInfoFromParent called from parent: "+e),Ae(JSON.parse(e)),a(" --")},message:function(){var e=o();a("MessageCallback called from parent: "+e),Se(JSON.parse(e)),a(" --")}};(function(){return pe===(""+t.data).substr(0,fe)})()&&function(){!1===te?c():u()?p.init():a('Ignored message of type "'+r()+'". Received before initialization.')}()}if("undefined"!==typeof window){var G=!0,W=10,Z="",K=0,X="",Y=null,J="",$=!1,Q={resize:1,click:1},ee=128,te=!0,ne=1,re="bodyOffset",oe=re,ie=!0,ae="",se={},le=32,ue=null,ce=!1,pe="[iFrameSizer]",fe=pe.length,he="",de={max:1,min:1,bodyScroll:1,documentElementScroll:1},me="child",ye=!0,ge=window.parent,ve="*",_e=0,be=!1,xe=null,we=16,Ee=1,Te="scroll",Oe=Te,Ce=window,Se=function(){s("MessageCallback function not defined")},ke=function(){},Ae=function(){},Pe={height:function(){return s("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return s("Custom width calculation function not defined"),document.body.scrollWidth}},Re={},De=Date.now||function(){return(new Date).getTime()},Ie={bodyOffset:function(){return document.body.offsetHeight+D("marginTop")+D("marginBottom")},offset:function(){return Ie.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return Pe.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,L(Ie))},min:function(){return Math.min.apply(null,L(Ie))},grow:function(){return Ie.max()},lowestElement:function(){return Math.max(Ie.bodyOffset()||Ie.documentElementOffset(),M("bottom",z()))},taggedElement:function(){return j("bottom","data-iframe-height")}},Me={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return Pe.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(Me.bodyScroll(),Me.documentElementScroll())},max:function(){return Math.max.apply(null,L(Me))},min:function(){return Math.min.apply(null,L(Me))},rightMostElement:function(){return M("right",z())},taggedElement:function(){return j("right","data-iframe-width")}},Le=function(e){var t,n,r,o=null,i=0,a=function(){i=De(),o=null,r=e.apply(t,n),o||(t=n=null)};return function(){var s=De();i||(i=s);var l=we-(s-i);return t=this,n=arguments,l<=0||l>we?(o&&(clearTimeout(o),o=null),i=s,r=e.apply(t,n),o||(t=n=null)):o||(o=setTimeout(a,l)),r}}(F);n(window,"message",q),function(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}()}}()},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var r=n(1),o=n.n(r),i=o.a.shape({trySubscribe:o.a.func.isRequired,tryUnsubscribe:o.a.func.isRequired,notifyNestedSubs:o.a.func.isRequired,isSubscribed:o.a.func.isRequired}),a=o.a.shape({subscribe:o.a.func.isRequired,dispatch:o.a.func.isRequired,getState:o.a.func.isRequired})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(){}function l(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}function u(e){var t,n,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=u.getDisplayName,f=void 0===c?function(e){return"ConnectAdvanced("+e+")"}:c,b=u.methodName,x=void 0===b?"connectAdvanced":b,w=u.renderCountProp,E=void 0===w?void 0:w,T=u.shouldHandleStateChanges,O=void 0===T||T,C=u.storeKey,S=void 0===C?"store":C,k=u.withRef,A=void 0!==k&&k,P=a(u,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),R=S+"Subscription",D=v++,I=(t={},t[S]=y.a,t[R]=y.b,t),M=(n={},n[R]=y.b,n);return function(t){h()("function"==typeof t,"You must pass a component to the function returned by "+x+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",a=f(n),u=g({},P,{getDisplayName:f,methodName:x,renderCountProp:E,shouldHandleStateChanges:O,storeKey:S,withRef:A,displayName:a,wrappedComponentName:n,WrappedComponent:t}),c=function(n){function c(e,t){r(this,c);var i=o(this,n.call(this,e,t));return i.version=D,i.state={},i.renderCount=0,i.store=e[S]||t[S],i.propsMode=Boolean(e[S]),i.setWrappedInstance=i.setWrappedInstance.bind(i),h()(i.store,'Could not find "'+S+'" in either the context or props of "'+a+'". Either wrap the root component in a <Provi
1der>, or explicitly pass "'+S+'" as a prop to "'+a+'".'),i.initSelector(),i.initSubscription(),i}return i(c,n),c.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[R]=t||this.context[R],e},c.prototype.componentDidMount=function(){O&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},c.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=s,this.store=null,this.selector.run=s,this.selector.shouldComponentUpdate=!1},c.prototype.getWrappedInstance=function(){return h()(A,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+x+"() call."),this.wrappedInstance},c.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},c.prototype.initSelector=function(){var t=e(this.store.dispatch,u);this.selector=l(t,this.store),this.selector.run(this.props)},c.prototype.initSubscription=function(){if(O){var e=(this.propsMode?this.props:this.context)[R];this.subscription=new m.a(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(_)):this.notifyNestedSubs()},c.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.prototype.addExtraProps=function(e){if(!A&&!E&&(!this.propsMode||!this.subscription))return e;var t=g({},e);return A&&(t.ref=this.setWrappedInstance),E&&(t[E]=this.renderCount++),this.propsMode&&this.subscription&&(t[R]=this.subscription),t},c.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(d.createElement)(t,this.addExtraProps(e.props))},c}(d.Component);return c.WrappedComponent=t,c.displayName=a,c.childContextTypes=M,c.contextTypes=I,c.propTypes=I,p()(c,t)}}t.a=u;var c=n(101),p=n.n(c),f=n(164),h=n.n(f),d=n(0),m=(n.n(d),n(165)),y=n(99),g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=0,_={}},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,i=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,s=a&&a(Object);return function l(u,c,p){if("string"!==typeof c){if(s){var f=a(c);f&&f!==s&&l(u,f,p)}var h=r(c);o&&(h=h.concat(o(c)));for(var d=0;d<h.length;++d){var m=h[d];if(!e[m]&&!t[m]&&(!p||!p[m])){var y=i(c,m);try{n(u,m,y)}catch(e){}}}return u}return u}})},function(e,t,n){"use strict";function r(e,t,n){function s(){g===y&&(g=y.slice())}function l(){return m}function u(e){if("function"!==typeof e)throw new Error("Expected listener to be a function.");var t=!0;return s(),g.push(e),function(){if(t){t=!1,s();var n=g.indexOf(e);g.splice(n,1)}}}function c(e){if(!Object(o.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(v)throw new Error("Reducers may not dispatch actions.");try{v=!0,m=d(m,e)}finally{v=!1}for(var t=y=g,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!==typeof e)throw new Error("Expected the nextReducer to be a function.");d=e,c({type:a.INIT})}function f(){var e,t=u;return e={subscribe:function(e){function n(){e.next&&e.next(l())}if("object"!==typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[i.a]=function(){return this},e}var h;if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error("Expected the enhancer to be a function.");return n(r)(e,t)}if("function"!==typeof e)throw new Error("Expected the reducer to be a function.");var d=e,m=t,y=[],g=y,v=!1;return c({type:a.INIT}),h={dispatch:c,subscribe:u,getState:l,replaceReducer:p},h[i.a]=f,h}n.d(t,"a",function(){return a}),t.b=r;var o=n(74),i=n(177),a={INIT:"@@redux/INIT"}},function(e,t,n){"use strict";var r=n(170),o=r.a.Symbol;t.a=o},function(e,t,n){"use strict"},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}t.a=r},function(e,t,n){"use strict";function r(e){return function(t,n){function r(){return o}var o=e(t,n);
1return r.dependsOnOwnProps=!1,r}}function o(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function i(e,t){return function(t,n){var r=(n.displayName,function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)});return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=o(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=o(i),i=r(t,n)),i},r}}t.a=r,t.b=i;n(107)},function(e,t,n){"use strict";n(74),n(73)},function(e,t,n){"use strict";function r(e,t){return e===t}function o(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,i=null;return function(){return o(t,n,arguments)||(i=e.apply(null,arguments)),n=arguments,i}}function a(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"===typeof e})){var n=t.map(function(e){return typeof e}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}n.d(t,"a",function(){return s});var s=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=0,s=r.pop(),l=a(r),u=e.apply(void 0,[function(){return i++,s.apply(null,arguments)}].concat(n)),c=e(function(){for(var e=[],t=l.length,n=0;n<t;n++)e.push(l[n].apply(null,arguments));return u.apply(null,e)});return c.resultFunc=s,c.dependencies=l,c.recomputations=function(){return i},c.resetRecomputations=function(){return i=0},c}}(i)},function(e,t,n){"use strict";n.d(t,"a",function(){return T});var r=n(2),o=n(7),i=n(6),a=n(10),s=n(3),l=n(8),u=n(5),c=n(0),p=(n.n(c),n(11)),f=n.n(p),h=n(110),d=n(26),m=n(25),y=n(47),g=n(46),v=n(215),_=n(86),b=n(116),x=Object.assign({},h.a.propTypes,{maxZoom:f.a.number,minZoom:f.a.number,maxPitch:f.a.number,minPitch:f.a.number,onViewStateChange:f.a.func,onViewportChange:f.a.func,onInteractionStateChange:f.a.func,transitionDuration:f.a.number,transitionInterpolator:f.a.object,transitionInterruption:f.a.number,transitionEasing:f.a.func,onTransitionStart:f.a.func,onTransitionInterrupt:f.a.func,onTransitionEnd:f.a.func,scrollZoom:f.a.bool,dragPan:f.a.bool,dragRotate:f.a.bool,doubleClickZoom:f.a.bool,touchZoom:f.a.bool,touchRotate:f.a.bool,keyboard:f.a.bool,onHover:f.a.func,onClick:f.a.func,onDblClick:f.a.func,onContextMenu:f.a.func,onMouseDown:f.a.func,onMouseMove:f.a.func,onMouseUp:f.a.func,onTouchStart:f.a.func,onTouchMove:f.a.func,onTouchEnd:f.a.func,onMouseEnter:f.a.func,onMouseLeave:f.a.func,onMouseOut:f.a.func,onWheel:f.a.func,touchAction:f.a.string,clickRadius:f.a.number,interactiveLayerIds:f.a.array,getCursor:f.a.func,controller:f.a.instanceOf(_.b)}),w=function(e){var t=e.isDragging,n=e.isHovering;return t?"grabbing":n?"pointer":"grab"},E=Object.assign({},h.a.defaultProps,d.a,y.b.defaultProps,{onViewStateChange:null,onViewportChange:null,onClick:null,onNativeClick:null,onHover:null,onContextMenu:function(e){return e.preventDefault()},scrollZoom:!0,dragPan:!0,dragRotate:!0,doubleClickZoom:!0,touchZoom:!0,touchRotate:!1,keyboard:!0,touchAction:"none",clickRadius:0,getCursor:w}),T=function(e){function t(e){var n;return Object(r.a)(this,t),n=Object(o.a)(this,Object(i.a)(t).call(this,e)),Object(u.a)(Object(a.a)(n),"state",{isLoaded:!1,isDragging:!1,isHovering:!1}),Object(u.a)(Object(a.a)(n),"_controller",void 0),Object(u.a)(Object(a.a)(n),"_eventManager",void 0),Object(u.a)(Object(a.a)(n),"_interactiveContext",void 0),Object(u.a)(Object(a.a)(n),"_width",0),Object(u.a)(Object(a.a)(n),"_height",0),Object(u.a)(Object(a.a)(n),"_eventCanvasRef",Object(c.createRef)()),Object(u.a)(Object(a.a)(n),"_staticMapRef",Object(c.createRef)()),Object(u.a)(Object(a.a)(n),"getMap",function(){return n._staticMapRef.current?n._staticMapRef.current.getMap():null}),Object(u.a)(Object(a.a)(n),"queryRenderedFeatures",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.getMap();return r&&r.queryRenderedFeatures(e,t)}),Object(u.a)(Object(a.a)(n),"_onInteractionStateChange",function(e){var t=e.isDragging,r=void 0!==t&&t;r!==n.state.isDragging&&(n._updateInteractiveContext({isDragging:r}),n.setState({isDragging:r}));var o=n.props.onInteractionStateChange;o&&o(e)}),Object(u.a)(Object(a.a)(n),"_onResize",function(e){var t=e.width,r=e.height;n._width=t,n._height=r,n._setControllerProps(n.props),n.props.onResize({width:t,height:r})}),Object(u.a)(Object(a.a)(n),"_onViewportChange",function(e,t,r){var o=n.props,i=o.onViewStateChange,a=o.onViewportChange;i&&i({viewState:e,interactionState:t,oldViewState:r}),a&&a(e,t,r)}),Object(u.a)(Object(a.a)(n),"_onLoad",function(e){n.setState({isLoaded:!0}),n.props.onLoad(e)}),Object(u.a)(Object(a.a)(n),"_onEvent",function(e,t){var r=n.props[e];r&&r(n._normalizeEvent(t))}),Object(u.a)(Object(a.a)(n),"_onPointerDown",function(e){switch(e.pointerType){case"touch":n._onEvent("onTouchStart",e);break;default:n._onEvent("onMouseDown",e)}}),Object(u.a)(Object(a.a)(n),"_onPointerUp",function(e){switch(e.pointerType){case"touch":n._onEvent("onTouchEnd",e);break;default:n._onEvent("onMouseUp",e)}}),Object(u.a)(Object(a.a)(n),"_onPointerMove",function(e){switch(e.pointerType){case"touch":n._onEvent("onTouchMove",e);break;default:n._onEvent("onMouseMove",e)}if(!n.state.isDragging){var t,r=n.props,o=r.onHover,i=r.interactiveLayerIds;e=n._normalizeEvent(e),n.state.isLoaded&&(i||o)&&(t=n._getFeatures({pos:e.point,radius:n.props.clickRadius})),o&&(e.features=t,o(e));var a=Boolean(i&&t&&t.length>0),s=a&&!n.state.isHovering,l=!a&&n.state.isHovering;s&&n._onEvent("onMouseEnter",e),l&&n._onEvent("onMouseLeave",e),(s||l)&&n.setState({isHovering:a})}}),Object(u.a)(Object(a.a)(n),"_onClick",function(e){var t=n.props,r=t.onClick,o=t.onNativeClick,i=t.onDblClick,a=t.doubleClickZoom,s=[],l=i||a;switch(e.type){case"anyclick":s.push(o),l||s.push(r);break;case"click":l&&s.push(r)}
1s=s.filter(Boolean),s.length&&(e=n._normalizeEvent(e),e.features=n._getFeatures({pos:e.point,radius:n.props.clickRadius}),s.forEach(function(t){return t(e)}))}),Object(b.a)(e),n._controller=e.controller||new _.b,n._eventManager=new v.a(null,{touchAction:e.touchAction}),n._updateInteractiveContext({isDragging:!1,eventManager:n._eventManager}),n}return Object(l.a)(t,e),Object(s.a)(t,null,[{key:"supported",value:function(){return h.a.supported()}}]),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this._eventManager,t=this._eventCanvasRef.current;e.setElement(t),e.on({pointerdown:this._onPointerDown,pointermove:this._onPointerMove,pointerup:this._onPointerUp,pointerleave:this._onEvent.bind(this,"onMouseOut"),click:this._onClick,anyclick:this._onClick,dblclick:this._onEvent.bind(this,"onDblClick"),wheel:this._onEvent.bind(this,"onWheel"),contextmenu:this._onEvent.bind(this,"onContextMenu")}),this._setControllerProps(this.props),this._updateInteractiveContext({mapContainer:t})}},{key:"componentWillUnmount",value:function(){this._eventManager.destroy()}},{key:"_setControllerProps",value:function(e){e=Object.assign({},e,e.viewState,{isInteractive:Boolean(e.onViewStateChange||e.onViewportChange),onViewportChange:this._onViewportChange,onStateChange:this._onInteractionStateChange,eventManager:this._eventManager,width:this._width,height:this._height}),this._controller.setOptions(e);var t=this._interactiveContext;t.onViewportChange=e.onViewportChange,t.onViewStateChange=e.onViewStateChange}},{key:"_getFeatures",value:function(e){var t,n=e.pos,r=e.radius,o={},i=this.getMap();if(this.props.interactiveLayerIds&&(o.layers=this.props.interactiveLayerIds),r){var a=r,s=[[n[0]-a,n[1]+a],[n[0]+a,n[1]-a]];t=i&&i.queryRenderedFeatures(s,o)}else t=i&&i.queryRenderedFeatures(n,o);return t}},{key:"_updateInteractiveContext",value:function(e){this._interactiveContext=Object.assign({},this._interactiveContext,e)}},{key:"_normalizeEvent",value:function(e){if(e.lngLat)return e;var t=e.offsetCenter,n=t.x,r=t.y,o=[n,r],i=new m.a(Object.assign({},this.props,{width:this._width,height:this._height}));return e.point=o,e.lngLat=i.unproject(o),e}},{key:"render",value:function(){this._setControllerProps(this.props);var e=this.props,t=e.width,n=e.height,r=e.style,o=e.getCursor,i=Object.assign({position:"relative"},r,{width:t,height:n,cursor:o(this.state)});return Object(c.createElement)(g.a.Provider,{value:this._interactiveContext},Object(c.createElement)("div",{key:"event-canvas",ref:this._eventCanvasRef,style:i},Object(c.createElement)(h.a,Object.assign({},this.props,{width:"100%",height:"100%",style:null,onResize:this._onResize,onLoad:this._onLoad,ref:this._staticMapRef,children:this.props.children}))))}}]),t}(c.PureComponent);Object(u.a)(T,"propTypes",x),Object(u.a)(T,"defaultProps",E)},function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return S});var o=n(2),i=n(3),a=n(7),s=n(6),l=n(10),u=n(8),c=n(5),p=n(0),f=(n.n(p),n(11)),h=n.n(f),d=n(199),m=n(25),y=n(208),g=n(209),v=n(84),_=n(212),b=n(26),x=n(46),w="A valid API access token is required to use Mapbox data",E=401,T={position:"absolute",width:"100%",height:"100%",overflow:"hidden"},O=Object.assign({},g.a.propTypes,{width:h.a.oneOfType([h.a.number,h.a.string]),height:h.a.oneOfType([h.a.number,h.a.string]),onResize:h.a.func,preventStyleDiffing:h.a.bool,disableTokenWarning:h.a.bool,visible:h.a.bool,className:h.a.string,style:h.a.object,visibilityConstraints:h.a.object}),C=Object.assign({},g.a.defaultProps,{preventStyleDiffing:!1,disableTokenWarning:!1,visible:!0,onResize:r,className:"",style:null,visibilityConstraints:b.a}),S=function(e){function t(){var e,n;Object(o.a)(this,t);for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];return n=Object(a.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(i))),Object(c.a)(Object(l.a)(n),"state",{accessTokenInvalid:!1}),Object(c.a)(Object(l.a)(n),"_mapbox",null),Object(c.a)(Object(l.a)(n),"_map",null),Object(c.a)(Object(l.a)(n),"_mapboxMapRef",Object(p.createRef)()),Object(c.a)(Object(l.a)(n),"_mapContainerRef",Object(p.createRef)()),Object(c.a)(Object(l.a)(n),"_queryParams",{}),Object(c.a)(Object(l.a)(n),"_width",0),Object(c.a)(Object(l.a)(n),"_height",0),Object(c.a)(Object(l.a)(n),"getMap",function(){return n._map}),Object(c.a)(Object(l.a)(n),"queryRenderedFeatures",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n._map.queryRenderedFeatures(e,t)}),Object(c.a)(Object(l.a)(n),"_mapboxMapError",function(e){(e.error&&e.error.status||e.status)!==E||n.state.accessTokenInvalid||(console.error(w),n.setState({accessTokenInvalid:!0})),n.props.onError(e)}),n}
1return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){if(t.supported()){var e=this.props.mapStyle;this._mapbox=new g.a(Object.assign({},this.props,{mapboxgl:v.a,width:this._width,height:this._height,container:this._mapboxMapRef.current,onError:this._mapboxMapError,mapStyle:Object(d.a)(e)})),this._map=this._mapbox.getMap()}}},{key:"componentDidUpdate",value:function(e){this._mapbox&&(this._updateMapStyle(e,this.props),this._updateMapProps(this.props))}},{key:"componentWillUnmount",value:function(){this._mapbox&&(this._mapbox.finalize(),this._mapbox=null,this._map=null)}},{key:"_updateMapSize",value:function(e,t){this._width===e&&this._height===t||(this._width=e,this._height=t,this._updateMapProps(this.props))}},{key:"_updateMapStyle",value:function(e,t){var n=t.mapStyle;n!==e.mapStyle&&this._map.setStyle(Object(d.a)(n),{diff:!this.props.preventStyleDiffing})}},{key:"_updateMapProps",value:function(e){this._mapbox&&this._mapbox.setProps(Object.assign({},e,{width:this._width,height:this._height}))}},{key:"_renderNoTokenWarning",value:function(){if(this.state.accessTokenInvalid&&!this.props.disableTokenWarning){var e={position:"absolute",left:0,top:0};return Object(p.createElement)("div",{key:"warning",id:"no-token-warning",style:e},[Object(p.createElement)("h3",{key:"header"},w),Object(p.createElement)("div",{key:"text"},"For information on setting up your basemap, read"),Object(p.createElement)("a",{key:"link",href:"https://uber.github.io/react-map-gl/#/Documentation/getting-started/about-mapbox-tokens"},"Note on Map Tokens")])}return null}},{key:"_renderOverlays",value:function(e){var t=this,n=e.width,r=void 0===n?Number(this.props.width):n,o=e.height,i=void 0===o?Number(this.props.height):o;return this._updateMapSize(r,i),Object(p.createElement)(x.a.Consumer,null,function(e){var n=Object.assign({},e,{viewport:new m.a(Object.assign({},t.props,t.props.viewState,{width:r,height:i})),map:t._map,mapContainer:e.mapContainer||t._mapContainerRef.current});return Object(p.createElement)(x.a.Provider,{value:n},Object(p.createElement)("div",{key:"map-overlays",className:"overlays",style:T,children:t.props.children}))})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.width,r=e.height,o=e.style,i=e.visibilityConstraints,a=Object.assign({position:"relative"},o,{width:n,height:r}),s=this.props.visible&&Object(_.a)(this.props.viewState||this.props,i),l=Object.assign({},T,{visibility:s?"inherit":"hidden"});return Object(p.createElement)("div",{key:"map-container",style:a,ref:this._mapContainerRef,children:[Object(p.createElement)("div",{key:"map-mapbox",ref:this._mapboxMapRef,style:l,className:t}),Object(p.createElement)(y.a,{key:"autosizer",disableWidth:Number.isFinite(n),disableHeight:Number.isFinite(r),onResize:this.props.onResize},this._renderOverlays.bind(this)),this._renderNoTokenWarning()]})}}],[{key:"supported",value:function(){return v.a&&v.a.supported()}}]),t}(p.PureComponent);Object(c.a)(S,"propTypes",O),Object(c.a)(S,"defaultProps",C)},function(e,t,n){"use strict";function r(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=t[6],u=t[7],c=t[8],p=t[9],f=t[10],h=t[11],d=t[12],m=t[13],y=t[14],g=t[15],v=n*s-r*a,_=n*l-o*a,b=n*u-i*a,x=r*l-o*s,w=r*u-i*s,E=o*u-i*l,T=c*m-p*d,O=c*y-f*d,C=c*g-h*d,S=p*y-f*m,k=p*g-h*m,A=f*g-h*y,P=v*A-_*k+b*S+x*C-w*O+E*T;return P?(P=1/P,e[0]=(s*A-l*k+u*S)*P,e[1]=(o*k-r*A-i*S)*P,e[2]=(m*E-y*w+g*x)*P,e[3]=(f*w-p*E-h*x)*P,e[4]=(l*C-a*A-u*O)*P,e[5]=(n*A-o*C+i*O)*P,e[6]=(y*b-d*E-g*_)*P,e[7]=(c*E-f*b+h*_)*P,e[8]=(a*k-s*C+u*T)*P,e[9]=(r*C-n*k-i*T)*P,e[10]=(d*w-m*b+g*v)*P,e[11]=(p*b-c*w-h*v)*P,e[12]=(s*O-a*S-l*T)*P,e[13]=(n*S-r*O+o*T)*P,e[14]=(m*_-d*x-y*v)*P,e[15]=(c*x-p*_+f*v)*P,e):null}function o(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],p=t[8],f=t[9],h=t[10],d=t[11],m=t[12],y=t[13],g=t[14],v=t[15],_=n[0],b=n[1],x=n[2],w=n[3];return e[0]=_*r+b*s+x*p+w*m,e[1]=_*o+b*l+x*f+w*y,e[2]=_*i+b*u+x*h+w*g,e[3]=_*a+b*c+x*d+w*v,_=n[4],b=n[5],x=n[6],w=n[7],e[4]=_*r+b*s+x*p+w*m,e[5]=_*o+b*l+x*f+w*y,e[6]=_*i+b*u+x*h+w*g,e[7]=_*a+b*c+x*d+w*v,_=n[8],b=n[9],x=n[10],w=n[11],e[8]=_*r+b*s+x*p+w*m,e[9]=_*o+b*l+x*f+w*y,e[10]=_*i+b*u+x*h+w*g,e[11]=_*a+b*c+x*d+w*v,_=n[12],b=n[13],x=n[14],w=n[15],e[12]=_*r+b*s+x*p+w*m,e[13]=_*o+b*l+x*f+w*y,e[14]=_*i+b*u+x*h+w*g,e[15]=_*a+b*c+x*d+w*v,e}function i(e,t,n){var r,o,i,a,s,l,u,c,p,f,h,d,m=n[0],y=n[1],g=n[2];return t===e?(e[12]=t[0]*m+t[4]*y+t[8]*g+t[12],e[13]=t[1]*m+t[5]*y+t[9]*g+t[13],e[14]=t[2]*m+t[6]*y+t[10]*g+t[14],e[15]=t[3]*m+t[7]*y+t[11]*g+t[15]):(r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],p=t[8],f=t[9],h=t[10],d=t[11],e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=s,e[5]=l,e[6]=u,e[7]=c,e[8]=p,e[9]=f,e[10]=h,e[11]=d,e[12]=r*m+s*y+p*g+t[12],e[13]=o*m+l*y+f*g+t[13],e[14]=i*m+u*y+h*g+t[14],e[15]=a*m+c*y+d*g+t[15]),e}function a(e,t,n){var r=n[0],o=n[1],i=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*o,e[5]=t[5]*o,e[6]=t[6]*o,e[7]=t[7]*o,e[8]=t[8]*i,e[9]=t[9]*i,e[10
1]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function s(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],p=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*o+u*r,e[5]=a*o+c*r,e[6]=s*o+p*r,e[7]=l*o+f*r,e[8]=u*o-i*r,e[9]=c*o-a*r,e[10]=p*o-s*r,e[11]=f*o-l*r,e}function l(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[0],a=t[1],s=t[2],l=t[3],u=t[4],c=t[5],p=t[6],f=t[7];return t!==e&&(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[0]=i*o+u*r,e[1]=a*o+c*r,e[2]=s*o+p*r,e[3]=l*o+f*r,e[4]=u*o-i*r,e[5]=c*o-a*r,e[6]=p*o-s*r,e[7]=f*o-l*r,e}function u(e,t,n,r,o){var i,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=o&&o!==1/0?(i=1/(r-o),e[10]=(o+r)*i,e[14]=2*o*r*i):(e[10]=-1,e[14]=-2*r),e}function c(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],d=e[11],m=e[12],y=e[13],g=e[14],v=e[15],_=t[0],b=t[1],x=t[2],w=t[3],E=t[4],T=t[5],O=t[6],C=t[7],S=t[8],k=t[9],A=t[10],P=t[11],R=t[12],D=t[13],I=t[14],M=t[15];return Math.abs(n-_)<=p.b*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(r-b)<=p.b*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(o-x)<=p.b*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(i-w)<=p.b*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(a-E)<=p.b*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(s-T)<=p.b*Math.max(1,Math.abs(s),Math.abs(T))&&Math.abs(l-O)<=p.b*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(u-C)<=p.b*Math.max(1,Math.abs(u),Math.abs(C))&&Math.abs(c-S)<=p.b*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(f-k)<=p.b*Math.max(1,Math.abs(f),Math.abs(k))&&Math.abs(h-A)<=p.b*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(d-P)<=p.b*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(m-R)<=p.b*Math.max(1,Math.abs(m),Math.abs(R))&&Math.abs(y-D)<=p.b*Math.max(1,Math.abs(y),Math.abs(D))&&Math.abs(g-I)<=p.b*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(v-M)<=p.b*Math.max(1,Math.abs(v),Math.abs(M))}t.b=r,t.c=o,t.h=i,t.g=a,t.e=s,t.f=l,t.d=u,t.a=c;var p=n(43)},function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"viewport-mercator-project: assertion failed.")}t.a=r},function(e,t,n){"use strict";function r(e){var t=e.width,n=e.height,r=e.bounds,s=e.minExtent,l=void 0===s?0:s,u=e.maxZoom,c=void 0===u?24:u,p=e.padding,f=void 0===p?0:p,h=e.offset,d=void 0===h?[0,0]:h,m=Object(o.a)(r,2),y=Object(o.a)(m[0],2),g=y[0],v=y[1],_=Object(o.a)(m[1],2),b=_[0],x=_[1];if(Number.isFinite(f)){var w=f;f={top:w,bottom:w,left:w,right:w}}else Object(a.a)(Number.isFinite(f.top)&&Number.isFinite(f.bottom)&&Number.isFinite(f.left)&&Number.isFinite(f.right));var E=new i.a({width:t,height:n,longitude:0,latitude:0,zoom:0}),T=E.project([g,x]),O=E.project([b,v]),C=[Math.abs(Math.max(O[0]-T[0],l)),Math.abs(Math.max(O[1]-T[1],l))],S=[t-f.left-f.right-2*Math.abs(d[0]),n-f.top-f.bottom-2*Math.abs(d[1])];Object(a.a)(S[0]>0&&S[1]>0);var k=S[0]/C[0],A=S[1]/C[1],P=(f.right-f.left)/2/k,R=(f.bottom-f.top)/2/A,D=[(O[0]+T[0])/2+P,(O[1]+T[1])/2+R],I=E.unproject(D),M=E.zoom+Math.log2(Math.abs(Math.min(k,A)));return{longitude:I[0],latitude:I[1],zoom:Math.min(M,c)}}t.a=r;var o=n(14),i=n(38),a=n(112)},function(e,t,n){"use strict";function r(e){return Number.isFinite(e)||Array.isArray(e)}function o(e){return e in a}function i(e,t,n){return o(e)&&Math.abs(n-t)>180&&(n=n<0?n+360:n-360),n}t.b=r,t.a=i;var a={longitude:1,bearing:1}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(217),o=n.n(r),i=n(218);Object(i.b)(o.a.PointerEventInput),Object(i.a)(o.a.MouseInput);var a=o.a.Manager;t.b=o.a},function(e,t,n){"use strict";function r(e){return"react-map-gl: `".concat(e,"` is removed.")}function o(e){return"Use `".concat(e,"` instead.")}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.forEach(function(t){if(e.hasOwnProperty(t.old)){var n=r(t.old);t.new&&(n="".concat(n," ").concat(o(t.new))),console.warn(n)}})}t.a=i;var a=[{old:"onChangeViewport",new:"onViewportChange"},{old:"perspectiveEnabled",new:"dragRotate"},{old:"onHoverFeatures",new:"onHover"},{old:"onClickFeatures",new:"onClick"},{old:"touchZoomRotate",new:"touchZoom, touchRotate"}
1,{old:"mapControls",new:"controller"}]},function(e,t,n){"use strict";n.d(t,"a",function(){return y});var r=n(14),o=n(2),i=n(3),a=n(7),s=n(6),l=n(8),u=n(5),c=n(0),p=(n.n(c),n(11)),f=n.n(p),h=n(227),d=Object.assign({},h.a.propTypes,{className:f.a.string,longitude:f.a.number.isRequired,latitude:f.a.number.isRequired}),m=Object.assign({},h.a.defaultProps,{className:""}),y=function(e){function t(){return Object(o.a)(this,t),Object(a.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(l.a)(t,e),Object(i.a)(t,[{key:"_getPosition",value:function(){var e=this.props,t=e.longitude,n=e.latitude,o=e.offsetLeft,i=e.offsetTop,a=this.state,s=a.dragPos,l=a.dragOffset;if(s&&l)return this._getDraggedPosition(s,l);var u=this._context.viewport.project([t,n]),c=Object(r.a)(u,2),p=c[0],f=c[1];return p+=o,f+=i,[p,f]}},{key:"_render",value:function(){var e=this.props,t=e.className,n=e.draggable,o=this.state.dragPos,i=this._getPosition(),a=Object(r.a)(i,2),s=a[0],l=a[1],u={position:"absolute",left:s,top:l,cursor:n?o?"grabbing":"grab":"auto"};return Object(c.createElement)("div",{className:"mapboxgl-marker ".concat(t),ref:this._containerRef,style:u,children:this.props.children})}}]),t}(h.a);Object(u.a)(y,"propTypes",d),Object(u.a)(y,"defaultProps",m)},function(e,t,n){"use strict";function r(e,t,n){return(r="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=Object(o.a)(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}t.a=r;var o=n(228)},function(e,t){e.exports={version:8,name:"Streets",metadata:{"mapbox:type":"default","mapbox:origin":"streets-v11","mapbox:autocomposite":!0,"mapbox:groups":{1444855786460.0557:{name:"Roads",collapsed:!0},1444934295202.7542:{name:"Admin boundaries",collapsed:!0},1444855799204.86:{name:"Bridges",collapsed:!0},1444855769305.6016:{name:"Tunnels",collapsed:!0}},"mapbox:sdk-support":{js:"0.54.0",android:"7.4.0",ios:"4.11.0"}},center:[-122.4241,37.78],zoom:9,sources:{composite:{url:"mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2",type:"vector"}},sprite:"mapbox://sprites/smallmultiples/ck04p1fic0p9o1cnqyf3tisiu/5ai059mm7rkvdk5nvzwa3qw9e",glyphs:"mapbox://fonts/smallmultiples/{fontstack}/{range}.pbf",layers:[{id:"land",type:"background",layout:{},paint:{"background-color":["interpolate",["linear"],["zoom"],11,"hsl(35, 32%, 91%)",13,"hsl(35, 12%, 89%)"]}},{id:"landcover",type:"fill",source:"composite","source-layer":"landcover",maxzoom:7,layout:{},paint:{"fill-color":["match",["get","class"],"snow","hsl(0, 0%, 100%)","hsl(75, 62%, 81%)"],"fill-opacity":["interpolate",["exponential",1.5],["zoom"],2,.3,7,0],"fill-antialias":!1}},{id:"national-park",type:"fill",source:"composite","source-layer":"landuse_overlay",minzoom:5,filter:["==",["get","class"],"national_park"],layout:{},paint:{"fill-color":"hsl(100, 58%, 76%)","fill-opacity":["interpolate",["linear"],["zoom"],5,0,6,.5,10,.5]}},{id:"landuse",type:"fill",source:"composite","source-layer":"landuse",minzoom:5,filter:["match",["get","class"],["park","airport","cemetery","glacier","hospital","pitch","sand","school"],!0,!1],layout:{},paint:{"fill-color":["interpolate",["linear"],["zoom"],15,["match",["get","class"],"park","hsl(100, 58%, 76%)","airport","hsl(230, 15%, 86%)","cemetery","hsl(75, 37%, 81%)","glacier","hsl(196, 72%, 93%)","hospital","hsl(340, 37%, 87%)","pitch","hsl(100, 57%, 72%)","sand","hsl(60, 46%, 87%)","school","hsl(50, 47%, 81%)","hsla(0, 0%, 0%, 0)"],16,["match",["get","class"],"park","hsl(100, 58%, 76%)","airport","hsl(230, 29%, 89%)","cemetery","hsl(75, 37%, 81%)","glacier","hsl(196, 72%, 93%)","hospital","hsl(340, 63%, 89%)","pitch","hsl(100, 57%, 72%)","sand","hsl(60, 46%, 87%)","school","hsl(50, 63%, 84%)","hsla(0, 0%, 0%, 0)"]],"fill-opacity":["interpolate",["linear"],["zoom"],5,0,6,["match",["get","class"],"glacier",.5,1]]}},{id:"pitch-outline",type:"line",source:"composite","source-layer":"landuse",minzoom:15,filter:["==",["get","class"],"pitch"],layout:{},paint:{"line-color":"hsl(75, 57%, 84%)"}},{id:"water-shadow",type:"fill",source:"composite","source-layer":"water",layout:{},paint:{"fill-color":"hsl(215, 84%, 69%)","fill-translate":["interpolate",["exponential",1.2],["zoom"],7,["literal",[0,0]],16,["literal",[-1,-1]]],"fill-translate-anchor":"viewport"}},{id:"waterway",type:"line",source:"composite","source-layer":"waterway",minzoom:8,layout:{"line-cap":["step",["zoom"],"butt",11,"round"],"line-join":"round"},paint:{"line-color":"hsl(205, 87%, 76%)","line-width":["interpolate",["exponential",1.3],["zoom"],9,["match",["get","class"],["canal","river"],.1,0],20,["match",["get","class"],["canal","river"],8,3]],"line-opacity":["interpolate",["linear"],["zoom"],8,0,8.5,1]}}
1,{id:"water",type:"fill",source:"composite","source-layer":"water",layout:{},paint:{"fill-color":"hsl(196, 80%, 70%)"}},{id:"hillshade",type:"fill",source:"composite","source-layer":"hillshade",maxzoom:16,layout:{},paint:{"fill-color":["match",["get","class"],"shadow","hsl(56, 59%, 22%)","hsl(0, 0%, 100%)"],"fill-opacity":["interpolate",["linear"],["zoom"],14,["match",["get","level"],[67,56],.06,[89,78],.05,.12],16,0],"fill-antialias":!1}},{id:"land-structure-polygon",type:"fill",source:"composite","source-layer":"structure",minzoom:13,filter:["all",["==",["geometry-type"],"Polygon"],["==",["get","class"],"land"]],layout:{},paint:{"fill-color":"hsl(35, 12%, 89%)"}},{id:"land-structure-line",type:"line",source:"composite","source-layer":"structure",minzoom:13,filter:["all",["==",["geometry-type"],"LineString"],["==",["get","class"],"land"]],layout:{"line-cap":"round"},paint:{"line-width":["interpolate",["exponential",1.99],["zoom"],14,.75,20,40],"line-color":"hsl(35, 12%, 89%)"}},{id:"aeroway-polygon",type:"fill",source:"composite","source-layer":"aeroway",minzoom:11,filter:["all",["==",["geometry-type"],"Polygon"],["match",["get","type"],["runway","taxiway","helipad"],!0,!1]],layout:{},paint:{"fill-color":["interpolate",["linear"],["zoom"],15,"hsl(230, 23%, 82%)",16,"hsl(230, 37%, 84%)"],"fill-opacity":["interpolate",["linear"],["zoom"],11,0,11.5,1]}},{id:"aeroway-line",type:"line",source:"composite","source-layer":"aeroway",minzoom:9,filter:["==",["geometry-type"],"LineString"],layout:{},paint:{"line-color":["interpolate",["linear"],["zoom"],15,"hsl(230, 23%, 82%)",16,"hsl(230, 37%, 84%)"],"line-width":["interpolate",["exponential",1.5],["zoom"],9,["match",["get","type"],"runway",1,"taxiway",.5,.5],18,["match",["get","type"],"runway",80,"taxiway",20,20]]}},{id:"building-outline",type:"line",source:"composite","source-layer":"building",minzoom:15,filter:["all",["!=",["get","type"],"building:part"],["==",["get","underground"],"false"]],layout:{},paint:{"line-color":"hsl(35, 6%, 79%)","line-width":["interpolate",["exponential",1.5],["zoom"],15,.75,20,3],"line-opacity":["interpolate",["linear"],["zoom"],15,0,16,1]}},{id:"building",type:"fill",source:"composite","source-layer":"building",minzoom:15,filter:["all",["!=",["get","type"],"building:part"],["==",["get","underground"],"false"]],layout:{},paint:{"fill-color":["interpolate",["linear"],["zoom"],15,"hsl(35, 11%, 86%)",16,"hsl(35, 8%, 85%)"],"fill-opacity":["interpolate",["linear"],["zoom"],15,0,16,1],"fill-outline-color":"hsl(35, 6%, 79%)"}},{id:"tunnel-street-minor-low",type:"line",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"tunnel"],["step",["zoom"],["match",["get","class"],["street","street_limited","track","primary_link"],!0,!1],14,["match",["get","class"],["street","street_limited","track","primary_link","secondary_link","tertiary_link","service"],!0,!1]],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,["match",["get","class"],["street","street_limited","primary_link"],2,"track",1,.5],18,["match",["get","class"],["street","street_limited","primary_link"],18,12]],"line-color":"hsl(0, 0%, 100%)","line-opacity":["step",["zoom"],1,14,0]}},{id:"tunnel-street-minor-case",type:"line",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"tunnel"],["step",["zoom"],["match",["get","class"],["street","street_limited","track","primary_link"],!0,!1],14,["match",["get","class"],["street","street_limited","track","primary_link","secondary_link","tertiary_link","service"],!0,!1]],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.75,20,2],"line-color":"hsl(230, 19%, 75%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,["match",["get","class"],["street","street_limited","primary_link"],2,"track",1,.5],18,["match",["get","class"],["street","street_limited","primary_link"],18,12]],"line-opacity":["step",["zoom"],0,14,1],"line-dasharray":[3,3]}},{id:"tunnel-primary-secondary-tertiary-case",type:"line",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"tunnel"],["match",["get","class"],["primary","secondary","tertiary"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],10,["match",["get","class"],"primary",1,["secondary","tertiary"],.75,.75],18,2],"line-color":"hsl(230, 19%, 75%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],"primary",.75,["secondary","tertiary"],.1,.1],18,["match",["get","class"],"primary",32,["secondary","tertiary"],26,26]],"line-dasharray":[3,3]}},{id:"tunnel-major-link-case",type:"line",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"tunnel"],["match",["get","class"],["motorway_link","trunk_link"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.75,20,2],"line-color":"hsl(0, 0%, 100%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,2,18,18],"line-dasharray":[3,3]}},{id:"tunnel-motorway-trunk-case",type:"line",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"tunnel"],["match",["get","class"],["motorway","trunk"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],10,1,18,2],"line-color":"hsl(0, 0%, 100%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],5,.75,18,32],"line-dasharray":[3,3]}},{id:"tunnel-construction",type:"line",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:14,filter:["all",["==",["get","structure"],"tunnel"],["==",["get","class"],"construction"],["==",["geometry-type"],"LineString"]],layout:{},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],14,2,18,18],"line-color":"hsl(230, 24%, 87%)","line-dasharray":["step",["zoom"],["literal",[.4,.8]],15,["literal",[.3,.6]],16,["literal",[.2,.3]],17,["literal",[.2,.25]],18,["literal",[.15,.15]]]}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"tunnel"],["==",["get","class"],"path"],["!=",["get","type"],"steps"],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.75,1]],16,["literal",[1,.75]],17,["literal",[1,.5]]],"line-color":"hsl(35, 26%, 95%)"}},{id:"tunnel-steps",type:"line",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:14,filter:["all",["==",["get","structure"],"tunnel"],["==",["get","class"],"steps"],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,16,1.6,18,6],"line-color":"hsl(35, 26%, 95%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.75,1]],16,["literal",[1,.75]],17,["literal",[.3,.3]]]}},{id:"tunnel-major-link",type:"line",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"tunnel"],["match",["get","class"],["motorway_link","trunk_link"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,2,18,18],"line-color":["match",["get","class"],"motorway_link","hsl(26, 100%, 78%)","trunk_link","hsl(46, 77%, 78%)","hsl(46, 77%, 78%)"]}},{id:"tunnel-pedestrian",type:"line",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"tunnel"],["==",["get","class"],"pedestrian"],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],14,.5,18,12],"line-color":"hsl(0, 0%, 100%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.5,.4]],16,["literal",[1,.2]]]}},{id:"tunnel-street-minor",type:"line",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"tunnel"],["step",["zoom"],["match",["get","class"],["street","street_limited","track","primary_link"],!0,!1],14,["match",["get","class"],["street","street_limited","track","primary_link","secondary_link","tert
1iary_link","service"],!0,!1]],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,["match",["get","class"],["street","street_limited","primary_link"],2,"track",1,.5],18,["match",["get","class"],["street","street_limited","primary_link"],18,12]],"line-color":["match",["get","class"],"street_limited","hsl(35, 14%, 93%)","hsl(0, 0%, 100%)"],"line-opacity":["step",["zoom"],0,14,1]}},{id:"tunnel-primary-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"tunnel"],["match",["get","class"],["primary","secondary","tertiary"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],"primary",.75,["secondary","tertiary"],.1,.1],18,["match",["get","class"],"primary",32,["secondary","tertiary"],26,26]],"line-color":"hsl(0, 0%, 100%)"}},{id:"tunnel-oneway-arrow-blue",type:"symbol",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:15,filter:["all",["==",["get","structure"],"tunnel"],["==",["get","oneway"],"true"],["step",["zoom"],["match",["get","class"],["primary","secondary","street","street_limited","tert
1iary"],!0,!1],16,["match",["get","class"],["primary","secondary","tertiary","street","street_limited","primary_link","secondary_link","tertiary_link","path","pedestrian","service","track"],!0,!1]]],layout:{"symbol-placement":"line","icon-image":["step",["zoom"],"oneway-small",17,["match",["get","class"],["primary","secondary","tertiary","street","street_limited"],"oneway-large","oneway-small"],18,"oneway-large"],"symbol-spacing":200,"icon-rotation-alignment":"map"},paint:{}},{id:"tunnel-motorway-trunk",type:"line",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"tunnel"],["match",["get","class"],["motorway","trunk"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],5,.75,18,32],"line-color":["match",["get","class"],"motorway","hsl(26, 100%, 78%)","trunk","hsl(46, 77%, 78%)","hsl(46, 77%, 78%)"]}},{id:"tunnel-oneway-arrow-white",type:"symbol",metadata:{"mapbox:group":"1444855769305.6016"},source:"composite","source-layer":"road",minzoom:16,filter:["all",["==",["get","structure"],"tunnel"],["match",["get","class"],["motorway","motorway_link","trunk","trunk_link"],!0,!1],["==",["get","oneway"],"true"]],layout:{"symbol-placement":"line","icon-image":["step",["zoom"],"oneway-white-small",17,"oneway-white-large"],"symbol-spacing":200},paint:{}},{id:"ferry",type:"line",source:"composite","source-layer":"road",minzoom:8,filter:["==",["get","type"],"ferry"],layout:{"line-join":"round"},paint:{"line-color":["interpolate",["linear"],["zoom"],15,"hsl(205, 73%, 63%)",17,"hsl(230, 73%, 63%)"],"line-width":["interpolate",["exponential",1.5],["zoom"],14,.5,20,1],"line-dasharray":["step",["zoom"],["literal",[1,0]],13,["literal",[12,4]]]}},{id:"ferry-auto",type:"line",source:"composite","source-layer":"road",filter:["==",["get","type"],"ferry_auto"],layout:{"line-join":"round"},paint:{"line-color":["interpolate",["linear"],["zoom"],15,"hsl(205, 73%, 63%)",17,"hsl(230, 73%, 63%)"],"line-width":["interpolate",["exponential",1.5],["zoom"],14,.5,20,1]}},{id:"road-path-bg",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:12,filter:["all",["==",["get","class"],"path"],["step",["zoom"],["!",["match",["get","type"],["steps","sidewalk","crossing"],!0,!1]],16,["!=",["get","type"],"steps"]],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],15,2,18,7],"line-color":"hsl(230, 17%, 82%)","line-opacity":["step",["zoom"],0,14,.75]}},{id:"road-steps-bg",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:14,filter:["all",["==",["get","type"],"steps"],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],15,2,17,4.6,18,7],"line-color":"hsl(230, 17%, 82%)","line-opacity":.75}},{id:"turning-feature-outline",type:"symbol",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:15,filter:["all",["==",["geometry-type"],"Point"],["match",["get","class"],["turning_circle","turning_loop"],!0,!1]],layout:{"icon-image":"turning-circle-outline","icon-size":["interpolate",["exponential",1.5],["zoom"],14,.122,18,.969,20,1],"icon-allow-overlap":!0,"icon-ignore-placement":!0,"icon-padding":0,"icon-rotation-alignment":"map"},paint:{}},{id:"road-pedestrian-case",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:12,filter:["all",["==",["get","class"],"pedestrian"],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],14,2,18,14.5],"line-color":"hsl(230, 24%, 87%)","line-opacity":["step",["zoom"],0,14,1]}},{id:"road-minor-low",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["step",["zoom"],["==",["get","class"],"track"],14,["match",["get","class"],["track","secondary_link","tert
1iary_link","service"],!0,!1]],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],14,["match",["get","class"],"track",1,.5],18,12],"line-color":"hsl(0, 0%, 100%)","line-opacity":["step",["zoom"],1,14,0]}},{id:"road-street-low",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:11,filter:["all",["match",["get","class"],["street","street_limited","primary_link"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,2,18,18],"line-color":"hsl(0, 0%, 100%)","line-opacity":["step",["zoom"],1,14,0]}},{id:"road-minor-case",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["step",["zoom"],["==",["get","class"],"track"],14,["match",["get","class"],["track","secondary_link","tertiary_link","service"],!0,!1]],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.75,20,2],"line-color":"hsl(230, 24%, 87%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],14,["match",["get","class"],"track",1,.5],18,12],"line-opacity":["step",["zoom"],0,14,1]}},{id:"road-street-case",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:11,filter:["all",["match",["get","class"],["street","street_limited","primary_link"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.75,20,2],"line-color":"hsl(230, 24%, 87%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,2,18,18],"line-opacity":["step",["zoom"],0,14,1]}},{id:"road-secondary-tertiary-case",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",filter:["all",["match",["get","class"],["secondary","tertiary"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],10,.75,18,2],"line-color":"hsl(230, 24%, 87%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],5,.1,18,26],"line-opacity":["step",["zoom"],0,10,1]}},{id:"road-primary-case",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",filter:["all",["==",["get","class"],"primary"],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],10,1,18,2],"line-color":"hsl(230, 24%, 87%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],5,.75,18,32],"line-opacity":["step",["zoom"],0,10,1]}},{id:"road-major-link-case",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:10,filter:["all",["match",["get","class"],["motorway_link","trunk_link"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.75,20,2],"line-color":"hsl(0, 0%, 100%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,2,18,18],"line-opacity":["step",["zoom"],0,11,1]}},{id:"road-motorway-trunk-case",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",filter:["all",["match",["get","class"],["motorway","trunk"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],10,1,18,2],"line-color":"hsl(0, 0%, 100%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],5,.75,18,32],"line-opacity":["step",["zoom"],["match",["get","class"],"motorway",1,0],6,1]}},{id:"road-construction",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:14,filter:["all",["==",["get","class"],"construction"],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],14,2,18,18],"line-color":"hsl(230, 24%, 87%)","line-dasharray":["step",["zoom"],["literal",[.4,.8]],15,["literal",[.3,.6]],16,["literal",[.2,.3]],17,["literal",[.2,.25]],18,["literal",[.15,.15]]]}},{id:"road-path",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:12,filter:["all",["==",["get","class"],"path"],["step",["zoom"],["!",["match",["get","type"],["steps","sidewalk","crossing"],!0,!1]],16,["!=",["get","type"],"steps"]],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],13,.5,14,1,15,1,18,4],"line-color":"hsl(0, 0%, 100%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.75,1]],16,["literal",[1,.75]],17,["literal",[1,.5]]]}},{id:"road-steps",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:14,filter:["all",["==",["get","type"],"steps"],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,16,1.6,18,6],"line-color":"hsl(0, 0%, 100%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.75,1]],16,["literal",[1,.75]],17,["literal",[.3,.3]]]}},{id:"road-major-link",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:10,filter:["all",["match",["get","class"],["motorway_link","trunk_link"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,2,18,18],"line-color":["match",["get","class"],"motorway_link","hsl(26, 100%, 68%)","trunk_link","hsl(46, 85%, 67%)","hsl(46, 85%, 67%)"]}},{id:"road-pedestrian",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:12,filter:["all",["==",["get","class"],"pedestrian"],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],14,.5,18,12],"line-color":"hsl(0, 0%, 100%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.5,.4]],16,["literal",[1,.2]]]}},{id:"road-pedestrian-polygon-fill",type:"fill",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:12,filter:["all",["==",["geometry-type"],"Polygon"],["match",["get","class"],["path","pedestrian"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1]],layout:{},paint:{"fill-color":["interpolate",["linear"],["zoom"],16,"hsl(230, 16%, 94%)",16.25,"hsl(230, 50%, 98%)"],"fill-outline-color":"hsl(230, 26%, 88%)"}},{id:"road-pedestrian-polygon-pattern",type:"fill",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:12,filter:["all",["==",["geometry-type"],"Polygon"],["match",["get","class"],["path","pedestrian"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1]],layout:{},paint:{"fill-color":"hsl(0, 0%, 100%)","fill-outline-color":"hsl(35, 10%, 83%)","fill-pattern":"pedestrian-polygon","fill-opacity":["interpolate",["linear"],["zoom"],16,0,16.25,1]}},{id:"road-polygon",type:"fill",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:12,filter:["all",["==",["geometry-type"],"Polygon"],["match",["get","class"],["primary","secondary","tertiary","primary_link","secondary_link","tert
1iary_link","street","street_limited","track","service"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1]],layout:{},paint:{"fill-color":"hsl(0, 0%, 100%)","fill-outline-color":"#d6d9e6"}},{id:"road-minor",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["step",["zoom"],["==",["get","class"],"track"],14,["match",["get","class"],["track","secondary_link","tertiary_link","service"],!0,!1]],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],14,["match",["get","class"],"track",1,.5],18,12],"line-color":"hsl(0, 0%, 100%)","line-opacity":["step",["zoom"],0,14,1]}},{id:"road-street",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:11,filter:["all",["match",["get","class"],["street","street_limited","primary_link"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,2,18,18],"line-color":["match",["get","class"],"street_limited","hsl(35, 14%, 93%)","hsl(0, 0%, 100%)"],"line-opacity":["step",["zoom"],0,14,1]}},{id:"road-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",filter:["all",["match",["get","class"],["secondary","tertiary"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],5,.1,18,26],"line-color":"hsl(0, 0%, 100%)"}},{id:"road-primary",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",filter:["all",["==",["get","class"],"primary"],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],5,.75,18,32],"line-color":"hsl(0, 0%, 100%)"}},{id:"road-oneway-arrow-blue",type:"symbol",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:15,filter:["all",["==",["get","oneway"],"true"],["step",["zoom"],["match",["get","class"],["primary","secondary","tertiary","street","street_limited"],!0,!1],16,["match",["get","class"],["primary","secondary","tertiary","street","street_limited","primary_link","secondary_link","tertiary_link","path","pedestrian","service","track"],!0,!1]],["match",["get","structure"],["none","ford"],!0,!1]],layout:{"symbol-placement":"line","icon-image":["step",["zoom"],"oneway-small",17,["match",["get","class"],["primary","secondary","tertiary","street","street_limited"],"oneway-large","oneway-small"],18,"oneway-large"],"symbol-spacing":200,"icon-rotation-alignment":"map"},paint:{}},{id:"road-motorway-trunk",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",filter:["all",["match",["get","class"],["motorway","trunk"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],5,.75,18,32],"line-color":["step",["zoom"],["match",["get","class"],"motorway","hsl(26, 87%, 62%)","trunk","hsl(0, 0%, 100%)","hsl(0, 0%, 100%)"],6,["match",["get","class"],"motorway","hsl(26, 87%, 62%)","trunk","hsl(46, 80%, 60%)","hsl(46, 80%, 60%)"],9,["match",["get","class"],"motorway","hsl(26, 100%, 68%)","trunk","hsl(46, 85%, 67%)","hsl(46, 85%, 67%)"]]}},{id:"road-rail",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["match",["get","class"],["major_rail","minor_rail"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1]],layout:{"line-join":"round"},paint:{"line-color":["interpolate",["linear"],["zoom"],13,"hsl(50, 17%, 82%)",16,"hsl(230, 10%, 74%)"],"line-width":["interpolate",["exponential",1.5],["zoom"],14,.5,20,1]}},{id:"road-rail-tracks",type:"line",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["match",["get","class"],["major_rail","minor_rail"],!0,
1!1],["match",["get","structure"],["none","ford"],!0,!1]],layout:{"line-join":"round"},paint:{"line-color":["interpolate",["linear"],["zoom"],13,"hsl(50, 17%, 82%)",16,"hsl(230, 10%, 74%)"],"line-width":["interpolate",["exponential",1.5],["zoom"],14,4,20,8],"line-dasharray":[.1,15],"line-opacity":["interpolate",["linear"],["zoom"],13.75,0,14,1]}},{id:"level-crossing",type:"symbol",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:16,filter:["==",["get","class"],"level_crossing"],layout:{"icon-image":"level-crossing","icon-allow-overlap":!0},paint:{}},{id:"road-oneway-arrow-white",type:"symbol",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:16,filter:["all",["==",["get","oneway"],"true"],["match",["get","class"],["motorway","trunk","motorway_link","trunk_link"],!0,!1],["match",["get","structure"],["none","ford"],!0,!1]],layout:{"symbol-placement":"line","icon-image":["step",["zoom"],"oneway-white-small",17,"oneway-white-large"],"symbol-spacing":200},paint:{}},{id:"turning-feature",type:"symbol",metadata:{"mapbox:group":"1444855786460.0557"},source:"composite","source-layer":"road",minzoom:15,filter:["all",["==",["geometry-type"],"Point"],["match",["get","class"],["turning_circle","turning_loop"],!0,!1]],layout:{"icon-image":"turning-circle","icon-size":["interpolate",["exponential",1.5],["zoom"],14,.095,18,1],"icon-allow-overlap":!0,"icon-ignore-placement":!0,"icon-padding":0,"icon-rotation-alignment":"map"},paint:{}},{id:"golf-hole-line",type:"line",source:"composite","source-layer":"road",minzoom:16,filter:["==",["get","class"],"golf"],layout:{},paint:{"line-color":"hsl(100, 47%, 58%)"}},{id:"bridge-path-bg",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["==",["get","class"],"path"],["!=",["get","type"],"steps"],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],15,2,18,7],"line-color":"hsl(230, 17%, 82%)","line-opacity":["step",["zoom"],0,14,1]}},{id:"bridge-steps-bg",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:14,filter:["all",["==",["get","type"],"steps"],["==",["get","structure"],"bridge"],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],15,2,17,4.6,18,7],"line-color":"hsl(230, 17%, 82%)","line-opacity":.75}},{id:"bridge-pedestrian-case",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["==",["get","class"],"pedestrian"],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],14,2,18,14.5],"line-color":"hsl(230, 24%, 87%)","line-opacity":["step",["zoom"],0,14,1]}},{id:"bridge-street-minor-low",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["step",["zoom"],["match",["get","class"],["street","street_limited","track","primary_link"],!0,!1],14,["match",["get","class"],["street","street_limited","track","primary_link","secondary_link","tertiary_link","service"],!0,!1]],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,["match",["get","class"],["street","street_limited","primary_link"],2,"track",1,.5],18,["match",["get","class"],["street","street_limited","primary_link"],18,12]],"line-color":"hsl(0, 0%, 100%)","line-opacity":["step",["zoom"],1,14,0]}},{id:"bridge-street-minor-case",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["step",["zoom"],["match",["get","class"],["street","street_limited","track","primary_link"],!0,!1],14,["match",["get","class"],["street","street_limited","track","primary_link","secondary_link","tert
1iary_link","service"],!0,!1]],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.75,20,2],"line-color":"hsl(230, 24%, 87%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,["match",["get","class"],["street","street_limited","primary_link"],2,"track",1,.5],18,["match",["get","class"],["street","street_limited","primary_link"],18,12]],"line-opacity":["step",["zoom"],0,14,1]}},{id:"bridge-primary-secondary-tertiary-case",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["match",["get","class"],["primary","secondary","tertiary"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],10,["match",["get","class"],"primary",1,["secondary","tertiary"],.75,.75],18,2],"line-color":"hsl(230, 24%, 87%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],"primary",.75,["secondary","tertiary"],.1,.1],18,["match",["get","class"],"primary",32,["secondary","tertiary"],26,26]],"line-opacity":["step",["zoom"],0,10,1]}},{id:"bridge-major-link-case",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["match",["get","class"],["motorway_link","trunk_link"],!0,!1],["<=",["get","layer"],1],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.75,20,2],"line-color":"hsl(0, 0%, 100%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,2,18,18]}},{id:"bridge-motorway-trunk-case",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["match",["get","class"],["motorway","trunk"],!0,!1],["<=",["get","layer"],1],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],10,1,18,2],"line-color":"hsl(0, 0%, 100%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],5,.75,18,32]}},{id:"bridge-construction",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:14,filter:["all",["==",["get","structure"],"bridge"],["==",["get","class"],"construction"],["==",["geometry-type"],"LineString"]],layout:{},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],14,2,18,18],"line-color":"hsl(230, 24%, 87%)","line-dasharray":["step",["zoom"],["literal",[.4,.8]],15,["literal",[.3,.6]],16,["literal",[.2,.3]],17,["literal",[.2,.25]],18,["literal",[.15,.15]]]}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["==",["get","class"],"path"],["!=",["get","type"],"steps"],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(0, 0%, 100%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.75,1]],16,["literal",[1,.75]],17,["literal",[1,.5]]]}},{id:"bridge-steps",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:14,filter:["all",["==",["get","type"],"steps"],["==",["get","structure"],"bridge"],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,16,1.6,18,6],"line-color":"hsl(0, 0%, 100%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.75,1]],16,["literal",[1,.75]],17,["literal",[.3,.3]]]}},{id:"bridge-major-link",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["match",["get","class"],["motorway_link","trunk_link"],!0,!1],["<=",["get","layer"],1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,2,18,18],"line-color":["match",["get","class"],"motorway_link","hsl(26, 100%, 68%)","trunk_link","hsl(46, 85%, 67%)","hsl(46, 85%, 67%)"]}},{id:"bridge-pedestrian",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["==",["get","class"],"pedestrian"],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],14,.5,18,12],"line-color":"hsl(0, 0%, 100%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.5,.4]],16,["literal",[1,.2]]]}},{id:"bridge-street-minor",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["step",["zoom"],["match",["get","class"],["street","street_limited","track","primary_link"],!0,!1],14,["match",["get","class"],["street","street_limited","track","primary_link","secondary_link","tert
1iary_link","service"],!0,!1]],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,["match",["get","class"],["street","street_limited","primary_link"],2,"track",1,.5],18,["match",["get","class"],["street","street_limited","primary_link"],18,12]],"line-color":["match",["get","class"],"street_limited","hsl(35, 14%, 93%)","hsl(0, 0%, 100%)"],"line-opacity":["step",["zoom"],0,14,1]}},{id:"bridge-primary-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["match",["get","class"],["primary","secondary","tertiary"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],"primary",.75,["secondary","tertiary"],.1,.1],18,["match",["get","class"],"primary",32,["secondary","tertiary"],26,26]],"line-color":"hsl(0, 0%, 100%)"}},{id:"bridge-oneway-arrow-blue",type:"symbol",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:15,filter:["all",["==",["get","structure"],"bridge"],["==",["get","oneway"],"true"],["step",["zoom"],["match",["get","class"],["primary","secondary","tertiary","street","street_limited"],!0,!1],16,["match",["get","class"],["primary","secondary","tertiary","street","street_limited","primary_link","secondary_link","tertiary_link","path","pedestrian","track","service"],!0,!1]]],layout:{"symbol-placement":"line","icon-image":["step",["zoom"],"oneway-small",17,["match",["get","class"],["primary","secondary","tertiary","street","street_limited"],"oneway-large","oneway-small"],18,"oneway-large"],"symbol-spacing":200,"icon-rotation-alignment":"map"},paint:{}},{id:"bridge-motorway-trunk",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["match",["get","class"],["motorway","trunk"],!0,!1],["<=",["get","layer"],1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],5,.75,18,32],"line-color":["match",["get","class"],"motorway","hsl(26, 100%, 68%)","trunk","hsl(46, 85%, 67%)","hsl(46, 85%, 67%)"]}},{id:"bridge-rail",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["match",["get","class"],["major_rail","minor_rail"],!0,!1]],layout:{"line-join":"round"},paint:{"line-color":["interpolate",["linear"],["zoom"],13,"hsl(50, 17%, 82%)",16,"hsl(230, 10%, 74%)"],"line-width":["interpolate",["exponential",1.5],["zoom"],14,.5,20,1]}},{id:"bridge-rail-tracks",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],["match",["get","class"],["major_rail","minor_rail"],!0,!1]],layout:{"line-join":"round"},paint:{"line-color":["interpolate",["linear"],["zoom"],13,"hsl(50, 17%, 82%)",16,"hsl(230, 10%, 74%)"],"line-width":["interpolate",["exponential",1.5],["zoom"],14,4,20,8],"line-dasharray":[.1,15],"line-opacity":["interpolate",["linear"],["zoom"],13.75,0,14,1]}},{id:"bridge-major-link-2-case",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],[">=",["get","layer"],2],["match",["get","class"],["motorway_link","trunk_link"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.75,20,2],"line-color":"hsl(0, 0%, 100%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,2,18,18]}},{id:"bridge-motorway-trunk-2-case",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],[">=",["get","layer"],2],["match",["get","class"],["motorway","trunk"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],10,1,18,2],"line-color":"hsl(0, 0%, 100%)","line-gap-width":["interpolate",["exponential",1.5],["zoom"],5,.75,18,32]}},{id:"bridge-major-link-2",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],[">=",["get","layer"],2],["match",["get","class"],["motorway_link","trunk_link"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],12,.5,14,2,18,18],"line-color":["match",["get","class"],"motorway_link","hsl(26, 100%, 68%)","trunk_link","hsl(46, 85%, 67%)","hsl(46, 85%, 67%)"]}},{id:"bridge-motorway-trunk-2",type:"line",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:13,filter:["all",["==",["get","structure"],"bridge"],[">=",["get","layer"],2],["match",["get","class"],["motorway","trunk"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-width":["interpolate",["exponential",1.5],["zoom"],5,.75,18,32],"line-color":["match",["get","class"],"motorway","hsl(26, 100%, 68%)","trunk","hsl(46, 85%, 67%)","hsl(46, 85%, 67%)"]}},{id:"bridge-oneway-arrow-white",type:"symbol",metadata:{"mapbox:group":"1444855799204.86"},source:"composite","source-layer":"road",minzoom:16,filter:["all",["==",["get","structure"],"bridge"],["match",["get","class"],["motorway","trunk","motorway_link","trunk_link"],!0,!1],["==",["get","oneway"],"true"]],layout:{"symbol-placement":"line","icon-image":["step",["zoom"],"oneway-white-small",17,"oneway-white-large"],"symbol-spacing":200},paint:{}},{id:"aerialway",type:"line",source:"composite","source-layer":"road",minzoom:13,filter:["==",["get","class"],"aerialway"],layout:{"line-join":"round"},paint:{"line-color":"hsl(230, 10%, 74%)","line-width":["interpolate",["exponential",1.5],["zoom"],14,.5,20,1]}},{id:"admin-1-boundary-bg",type:"line",metadata:{"mapbox:group":"1444934295202.7542"},source:"composite","source-layer":"admin",filter:["all",["==",["get","admin_level"],
11],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],!0,!1]],layout:{"line-join":"bevel"},paint:{"line-color":["interpolate",["linear"],["zoom"],8,"hsl(35, 12%, 89%)",16,"hsl(230, 49%, 90%)"],"line-width":["interpolate",["linear"],["zoom"],7,3.75,12,5.5],"line-opacity":["interpolate",["linear"],["zoom"],7,0,8,.75],"line-dasharray":[1,0],"line-translate":[0,0],"line-blur":["interpolate",["linear"],["zoom"],3,0,8,3]}},{id:"admin-0-boundary-bg",type:"line",metadata:{"mapbox:group":"1444934295202.7542"},source:"composite","source-layer":"admin",minzoom:1,filter:["all",["==",["get","admin_level"],0],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],!0,!1]],layout:{},paint:{"line-width":["interpolate",["linear"],["zoom"],3,3.5,10,8],"line-color":["interpolate",["linear"],["zoom"],6,"hsl(35, 12%, 89%)",8,"hsl(230, 49%, 90%)"],"line-opacity":["interpolate",["linear"],["zoom"],3,0,4,.5],"line-translate":[0,0],"line-blur":["interpolate",["linear"],["zoom"],3,0,10,2]}},{id:"admin-1-boundary",type:"line",metadata:{"mapbox:group":"1444934295202.7542"},source:"composite","source-layer":"admin",filter:["all",["==",["get","admin_level"],1],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],!0,!1]],layout:{"line-join":"round","line-cap":"round"},paint:{"line-dasharray":["step",["zoom"],["literal",[2,0]],7,["literal",[2,2,6,2]]],"line-width":["interpolate",["linear"],["zoom"],7,.75,12,1.5],"line-opacity":["interpolate",["linear"],["zoom"],2,0,3,1],"line-color":["interpolate",["linear"],["zoom"],3,"hsl(230, 14%, 77%)",7,"hsl(230, 8%, 62%)"]}},{id:"admin-0-boundary",type:"line",metadata:{"mapbox:group":"1444934295202.7542"},source:"composite","source-layer":"admin",minzoom:1,filter:["all",["==",["get","admin_level"],0],["==",["get","disputed"],"false"],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],!0,!1]],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":"hsl(230, 8%, 51%)","line-width":["interpolate",["linear"],["zoom"],3,.5,10,2]}},{id:"admin-0-boundary-disputed",type:"line",metadata:{"mapbox:group":"1444934295202.7542"},source:"composite","source-layer":"admin",minzoom:1,filter:["all",["==",["get","disputed"],"true"],["==",["get","admin_level"],0],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],!0,!1]],layout:{"line-join":"round"},paint:{"line-dasharray":[1.5,1.5],"line-color":"hsl(230, 8%, 51%)","line-width":["interpolate",["linear"],["zoom"],3,.5,10,2]}},{id:"building-number-label",type:"symbol",source:"composite","source-layer":"housenum_label",minzoom:17,layout:{"text-field":["get","house_num"],"text-font":["DIN Offc Pro Italic","Arial Unicode MS Regular"],"text-padding":4,"text-max-width":7,"text-size":9.5},paint:{"text-color":"hsl(35, 2%, 69%)","text-halo-color":"hsl(35, 8%, 85%)","text-halo-width":.5}},{id:"road-label",type:"symbol",source:"composite","source-layer":"road",minzoom:10,filter:["step",["zoom"],["match",["get","class"],["motorway","trunk","primary","secondary","tertiary"],!0,!1],12,["match",["get","class"],["motorway","trunk","primary","secondary","tertiary","pedestrian","street","street_limited"],!0,!1],15,["match",["get","class"],"golf",!1,!0]],layout:{"text-size":["interpolate",["linear"],["zoom"],10,["match",["get","class"],["motorway","trunk","primary","secondary","tertiary"],10,["motorway_link","trunk_link","primary_link","secondary_link","tertiary_link","pedestrian","street","street_limited"],9,6.5],18,["match",["get","class"],["motorway","trunk","primary","secondary","tertiary"],16,["motorway_link","trunk_link","primary_link","secondary_link","tertiary_link","pedestrian","street","street_limited"],14,13]],"text-max-angle":30,"text-font":["DIN Offc Pro Regular","Arial Unicode MS Regular"],"symbol-placement":"line","text-padding":1,"text-rotation-alignment":"map","text-pitch-alignment":"viewport","text-field":["coalesce",["get","name_en"],["get","name"]],"text-letter-spacing":.01},paint:{"text-color":["match",["get","class"],"ferry","hsl(230, 48%, 44%)","hsl(0, 0%, 0%)"],"text-halo-color":["match",["get","class"],["motorway","trunk"],"hsla(0, 0%, 100%, 0.75)","ferry","hsl(196, 80%, 70%)","hsl(0, 0%, 100%)"],"text-halo-width":1,"text-halo-blur":1}},{id:"road-number-shield",type:"symbol",source:"composite","source-layer":"road",minzoom:6,filter:["all",["has","reflen"],["<=",["get","reflen"],6],["step",["zoom"],["==",["geometry-type"],"Point"],11,[">",["get","len"],5e3],12,[">",["get","len"],2500],13,[">",["get","len"],1e3],14,!0]],layout:{"text-size":9,"icon-image":["concat",["get","shield"],"-",["to-string",["get","reflen"]]],"icon-rotation-alignment":"viewport","text-max-angle":38,"symbol-spacing":["interpolate",["linear"],["zoom"],11,150,14,200],"text-font":["DIN Offc Pro Bold","Arial Unicode MS Bold"],"symbol-placement":["step",["zoom"],"point",11,"line"],"text-rotation-alignment":"viewport","text-field":["get","ref"],"text-letter-spacing":.05},paint:{"text-color":["match",["get","shield_text_color"],"white","hsl(0, 0%, 100%)","black","hsl(0, 0%, 7%)","yellow","hsl(50, 100%, 70%)","orange","hsl(25, 100%, 75%)","blue","hsl(230, 48%, 34%)","hsl(0, 0%, 100%)"]}},{id:"road-exit-shield",type:"symbol",source:"composite","source-layer":"motorway_junction",minzoom:14,filter:["all",["has","reflen"],["<=",["get","reflen"],9]],layout:{"text-field":["get","ref"],"text-size":9,"icon-image":["concat","motorway-exit-",["to-string",["get","reflen"]]],"text-font":["DIN Offc Pro Bold","Arial Unicode MS Bold"]},paint:{"text-color":"hsl(0, 0%, 100%)","text-translate":[0,0]}},{id:"golf-hole-label",type:"symbol",source:"composite","source-layer":"road",minzoom:16,filter:["==",["get","class"],"golf"],layout:{"text-field":["coalesce",["get","name_en"],["get","name"]],"text-font":["DIN Offc Pro Medium","Arial Unicode MS Regular"],"text-size":12},paint:{"text-halo-color":"hsl(0, 0%, 100%)","text-halo-width":.5,"text-halo-blur":.5,"text-color":"hsl(100, 100%, 20%)"}},{id:"waterway-label",type:"symbol",source:"composite","source-layer":"natural_label",minzoom:13,filter:["all",["match",["get","class"],["canal","river","stream"],!0,
1!1],["==",["geometry-type"],"LineString"]],layout:{"text-font":["DIN Offc Pro Italic","Arial Unicode MS Regular"],"text-max-angle":30,"symbol-spacing":["interpolate",["linear",1],["zoom"],15,250,17,400],"text-size":["interpolate",["linear"],["zoom"],13,12,18,16],"symbol-placement":"line","text-pitch-alignment":"viewport","text-field":["coalesce",["get","name_en"],["get","name"]]},paint:{"text-color":"hsl(230, 48%, 44%)"}},{id:"natural-line-label",type:"symbol",source:"composite","source-layer":"natural_label",minzoom:4,filter:["all",["match",["get","class"],["glacier","landform"],!0,!1],["==",["geometry-type"],"LineString"],["<=",["get","filterrank"],2]],layout:{"text-size":["step",["zoom"],["step",["get","sizerank"],18,5,12],17,["step",["get","sizerank"],18,13,12]],"text-max-angle":30,"text-field":["coalesce",["get","name_en"],["get","name"]],"text-font":["DIN Offc Pro Medium","Arial Unicode MS Regular"],"symbol-placement":"line-center","text-pitch-alignment":"viewport"},paint:{"text-halo-width":.5,"text-halo-color":"hsl(0, 0%, 100%)","text-halo-blur":.5,"text-color":["step",["zoom"],["step",["get","sizerank"],"hsl(26, 20%, 42%)",5,"hsl(26, 25%, 32%)"],17,["step",["get","sizerank"],"hsl(26, 20%, 42%)",13,"hsl(26, 25%, 32%)"]]}},{id:"natural-point-label",type:"symbol",source:"composite","source-layer":"natural_label",minzoom:4,filter:["all",["match",["get","class"],["dock","glacier","landform","water_feature","wetland"],!0,!1],["==",["geometry-type"],"Point"],["<=",["get","filterrank"],2]],layout:{"text-size":["step",["zoom"],["step",["get","sizerank"],18,5,12],17,["step",["get","sizerank"],18,13,12]],"icon-image":["step",["zoom"],["concat",["get","maki"],"-11"],15,["concat",["get","maki"],"-15"]],"text-font":["DIN Offc Pro Medium","Arial Unicode MS Regular"],"text-offset":["step",["zoom"],["step",["get","sizerank"],["literal",[0,0]],5,["literal",[0,.75]]],17,["step",["get","sizerank"],["literal",[0,0]],13,["literal",[0,.75]]]],"text-anchor":["step",["zoom"],["step",["get","sizerank"],"center",5,"top"],17,["step",["get","sizerank"],"center",13,"top"]],"text-field":["coalesce",["get","name_en"],["get","name"]]},paint:{"icon-opacity":["step",["zoom"],["step",["get","sizerank"],0,5,1],17,["step",["get","sizerank"],0,13,1]],"text-halo-color":"hsl(0, 0%, 100%)","text-halo-width":.5,"text-halo-blur":.5,"text-color":["step",["zoom"],["step",["get","sizerank"],"hsl(26, 20%, 42%)",5,"hsl(26, 25%, 32%)"],17,["step",["get","sizerank"],"hsl(26, 20%, 42%)",13,"hsl(26, 25%, 32%)"]]}},{id:"water-line-label",type:"symbol",source:"composite","source-layer":"natural_label",filter:["all",["match",["get","class"],["bay","ocean","reservoir","sea","water"],!0,!1],["==",["geometry-type"],"LineString"]],layout:{"text-size":["interpolate",["linear"],["zoom"],7,["step",["get","sizerank"],24,6,18,12,12],10,["step",["get","sizerank"],18,9,12],18,["step",["get","sizerank"],18,9,16]],"text-max-angle":30,"text-letter-spacing":["match",["get","class"],"ocean",.25,["sea","bay"],.15,0],"text-font":["DIN Offc Pro Italic","Arial Unicode MS Regular"],"symbol-placement":"line-center","text-pitch-alignment":"viewport","text-field":["coalesce",["get","name_en"],["get","name"]]},paint:{"text-color":["match",["get","class"],["bay","ocean","sea"],"hsl(205, 84%, 88%)","hsl(230, 48%, 44%)"]}},{id:"water-point-label",type:"symbol",source:"composite","source-layer":"natural_label",filter:["all",["match",["get","class"],["bay","ocean","reservoir","sea","water"],!0,!1],["==",["geometry-type"],"Point"]],layout:{"text-line-height":1.3,"text-size":["interpolate",["linear"],["zoom"],7,["step",["get","sizerank"],24,6,18,12,12],10,["step",["get","sizerank"],18,9,12]],"text-font":["DIN Offc Pro Italic","Arial Unicode MS Regular"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-letter-spacing":["match",["get","class"],"ocean",.25,["bay","sea"],.15,.01],"text-max-width":["match",["get","class"],"ocean",4,"sea",5,["bay","water"],7,10]},paint:{"text-color":["match",["get","class"],["bay","ocean","sea"],"hsl(205, 84%, 88%)","hsl(230, 48%, 44%)"]}},{id:"poi-label",type:"symbol",source:"composite","source-layer":"poi_label",minzoom:6,filter:["<=",["get","filterrank"],["+",["step",["zoom"],0,16,1,17,2],3]],layout:{"text-size":["step",["zoom"],["step",["get","sizerank"],18,5,12],17,["step",["get","sizerank"],18,13,12]],"icon-image":["step",["zoom"],["concat",["get","maki"],"-11"],15,["concat",["get","maki"],"-15"]],"text-font":["DIN Offc Pro Medium","Arial Unicode MS Regular"],"text-offset":["step",["zoom"],["step",["get","sizerank"],["literal",[0,0]],5,["literal",[0,.75]]],17,["step",["get","sizerank"],["literal",[0,0]],13,["literal",[0,.75]]]],"text-anchor":["step",["zoom"],["step",["get","sizerank"],"center",5,"top"],17,["step",["get","sizerank"],"center",13,"top"]],"text-field":["coalesce",["get","name_en"],["get","name"]]},paint:{"icon-opacity":["step",["zoom"],["step",["get","sizerank"],0,5,1],17,["step",["get","sizerank"],0,13,1]],"text-halo-color":"hsl(0, 0%, 100%)","text-halo-width":.5,"text-halo-blur":.5,"text-color":["step",["zoom"],["step",["get","sizerank"],["match",["get","class"],"food_and_drink","hsl(22, 55%, 55%)","park_like","hsl(100, 45%, 37%)","education","hsl(51, 40%, 40%)","medical","hsl(340, 30%, 52%)","hsl(26, 20%, 42%)"],5,["match",["get","class"],"food_and_drink","hsl(22, 85%, 38%)","park_like","hsl(100, 100%, 20%)","education","hsl(51, 100%, 20%)","medical","hsl(340, 39%, 42%)","hsl(26, 25%, 32%)"]],17,["step",["get","sizerank"],["match",["get","class"],"food_and_drink","hsl(22, 55%, 55%)","park_like","hsl(100, 45%, 37%)","education","hsl(51, 40%, 40%)","medical","hsl(340, 30%, 52%)","hsl(26, 20%, 42%)"],13,["match",["get","class"],"food_and_drink","hsl(22, 85%, 38%)","park_like","hsl(100, 100%, 20%)","education","hsl(51, 100%, 20%)","medical","hsl(340, 39%, 42%)","hsl(26, 25%, 32%)"]]]}},{id:"transit-label",type:"symbol",source:"composite","source-layer":"transit_stop_label",minzoom:12,filter:["step",["zoom"],["all",["match",["get","mode"],["rail","metro_rail"],!0,
1!1],["!=",["get","stop_type"],"entrance"]],15,["all",["match",["get","mode"],["rail","metro_rail","ferry","light_rail"],!0,!1],["!=",["get","stop_type"],"entrance"]],16,["all",["!=",["get","mode"],"bus"],["!=",["get","stop_type"],"entrance"]],17,["!=",["get","stop_type"],"entrance"],19,!0],layout:{"text-size":12,"icon-image":["get","network"],"text-font":["DIN Offc Pro Medium","Arial Unicode MS Regular"],"text-justify":["match",["get","stop_type"],"entrance","left","center"],"text-offset":["match",["get","stop_type"],"entrance",["literal",[1,0]],["literal",[0,.8]]],"text-anchor":["match",["get","stop_type"],"entrance","left","top"],"text-field":["step",["zoom"],"",14,["match",["get","mode"],["rail","metro_rail"],["coalesce",["get","name_en"],["get","name"]],""],16,["match",["get","mode"],["bus","bicycle"],"",["coalesce",["get","name_en"],["get","name"]]],18,["coalesce",["get","name_en"],["get","name"]]],"text-letter-spacing":.01,"text-max-width":["match",["get","stop_type"],"entrance",15,9]},paint:{"text-halo-color":"hsl(0, 0%, 100%)","text-color":["match",["get","network"],"entrance","hsl(230, 48%, 44%)","tokyo-metro","hsl(180, 50%, 30%)","mexico-city-metro","hsl(25, 100%, 40%)",["barcelona-metro","delhi-metro","hong-kong-mtr","milan-metro","osaka-subway"],"hsl(0, 90%, 47%)",["boston-t","washington-metro"],"hsl(0, 0%, 0%)",["chongqing-rail-transit","kiev-metro","singapore-mrt","taipei-metro"],"hsl(140, 90%, 25%)","hsl(230, 48%, 44%)"],"text-halo-blur":.5,"text-halo-width":.5}},{id:"airport-label",type:"symbol",source:"composite","source-layer":"airport_label",minzoom:8,layout:{"text-line-height":1.1,"text-size":["step",["get","sizerank"],18,9,12],"icon-image":["step",["get","sizerank"],["concat",["get","maki"],"-15"],9,["concat",["get","maki"],"-11"]],"text-font":["DIN Offc Pro Medium","Arial Unicode MS Regular"],"text-offset":[0,.75],"text-rotation-alignment":"viewport","text-anchor":"top","text-field":["step",["get","sizerank"],["coalesce",["get","name_en"],["get","name"]],15,["get","ref"]],"text-letter-spacing":.01,"text-max-width":9},paint:{"text-color":"hsl(230, 48%, 44%)","text-halo-color":"hsl(0, 0%, 100%)","text-halo-width":1}},{id:"settlement-subdivision-label",type:"symbol",source:"composite","source-layer":"place_label",minzoom:10,maxzoom:15,filter:["all",["==",["get","class"],"settlement_subdivision"],["<=",["get","filterrank"],4]],layout:{"text-field":["coalesce",["get","name_en"],["get","name"]],"text-transform":"uppercase","text-font":["DIN Offc Pro Regular","Arial Unicode MS Regular"],"text-letter-spacing":["match",["get","type"],"suburb",.15,["quarter","neighborhood"],.1,.1],"text-max-width":7,"text-padding":3,"text-size":["interpolate",["cubic-bezier",.5,0,1,1],["zoom"],11,["match",["get","type"],"suburb",11,["quarter","neighborhood"],10.5,10.5],15,["match",["get","type"],"suburb",17,["quarter","neighborhood"],16,16]]},paint:{"text-halo-color":"hsl(0, 0%, 100%)","text-halo-width":1,"text-color":"hsl(230, 29%, 35%)","text-halo-blur":.5}},{id:"settlement-label",type:"symbol",source:"composite","source-layer":"place_label",maxzoom:15,filter:["all",["<=",["get","filterrank"],3],["==",["get","class"],"settlement"],["step",["zoom"],!0,13,[">=",["get","symbolrank"],11],14,[">=",["get","symbolrank"],13]]],layout:{"icon-image":["case",["==",["get","capital"],2],"border-dot-13",["step",["get","symbolrank"],"dot-11",9,"dot-10",11,"dot-9"]],"text-font":["step",["zoom"],["literal",["DIN Offc Pro Regular","Arial Unicode MS Regular"]],8,["step",["get","symbolrank"],["literal",["DIN Offc Pro Medium","Arial Unicode MS Regular"]],11,["literal",["DIN Offc Pro Regular","Arial Unicode MS Regular"]]],10,["step",["get","symbolrank"],["literal",["DIN Offc Pro Medium","Arial Unicode MS Regular"]],12,["literal",["DIN Offc Pro Regular","Arial Unicode MS Regular"]]],11,["step",["get","symbolrank"],["literal",["DIN Offc Pro Medium","Arial Unicode MS Regular"]],13,["literal",["DIN Offc Pro Regular","Arial Unicode MS Regular"]]],12,["step",["get","symbolrank"],["literal",["DIN Offc Pro Medium","Arial Unicode MS Regular"]],15,["literal",["DIN Offc Pro Regular","Arial Unicode MS Regular"]]],13,["literal",["DIN Offc Pro Medium","Arial Unicode MS Regular"]]],"text-offset":["step",["zoom"],["match",["get","capital"],2,["match",["get","text_anchor"],"bottom",["literal",[0,-.3]],"bottom-left",["literal",[.3,-.1]],"left",["literal",[.45,.1]],"top-left",["literal",[.3,.1]],"top",["literal",[0,.3]],"top-right",["literal",[-.3,.1]],"right",["literal",[-.45,0]],"bottom-right",["literal",[-.3,-.1]],["literal",[0,-.3]]],["match",["get","text_anchor"],"bottom",["literal",[0,-.25]],"bottom-left",["literal",[.2,-.05]],"left",["literal",[.4,.05]],"top-left",["literal",[.2,.05]],"top",["literal",[0,.25]],"top-right",["literal",[-.2,.05]],"right",["literal",[-.4,.05]],"bottom-right",["literal",[-.2,-.05]],["literal",[0,-.25]]]],8,["literal",[0,0]]],"text-anchor":["step",["zoom"],["get","text_anchor"],8,"center"],"text-justify":["step",["zoom"],["match",["get","text_anchor"],["bottom","top"],"center",["left","bottom-left","top-left"],"left",["right","bottom-right","top-right"],"right","center"],8,"center"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-max-width":7,"text-line-height":1.1,"text-size":["interpolate",["cubic-bezier",.2,0,.9,1],["zoom"],3,["step",["get","symbolrank"],12,9,11,10,10.5,12,9.5,14,8.5,16,6.5,17,4],15,["step",["get","symbolrank"],28,9,26,10,23,11,21,12,20,13,19,15,17]]},paint:{"text-color":"hsl(0, 0%, 0%)","text-halo-color":"hsl(0, 0%, 100%)","text-halo-width":1,"icon-opacity":["step",["zoom"],1,8,0],"text-halo-blur":1}},{id:"state-label",type:"symbol",source:"composite","source-layer":"place_label",minzoom:3,maxzoom:9,filter:["==",["get","class"],"state"],layout:{"text-size":["interpolate",["cubic-bezier",.85,.7,.65,1],["zoom"],4,["step",["get","symbolrank"],10,6,9.5,7,9],9,["step",["get","symbolrank"],24,6,18,7,14]],"text-transform":"uppercase","text-font":["DIN Offc Pro Bold","Arial Unicode MS Bold"],"text-field":["step",["zoom"],["step",["get","symbolrank"],["coalesce",["get","name_en"],["get","name"]],5,["coalesce",["get","abbr"],["get","name_en"],["get","name"]]],5,["coalesce",["get","name_en"],["get","name"]]],"text-letter-spacing":.15,"text-max-width":6},paint:{"text-color":"hsl(0, 0%, 0%)","text-halo-color":"hsl(0, 0%, 100%)","text-halo-width":1}},{id:"country-label",type:"symbol",source:"composite","source-layer":"place_label",minzoom:1,maxzoom:10,filter:["==",["get","class"],"country"],layout:{"icon-image":"dot-11","text-field":["coalesce",["get","name_en"],["get","name"]],"text-line-height":1.1,"text-max-width":6,"text-font":["DIN Offc Pro Medium","Arial Unicode MS Regular"],"text-anchor":["step",["zoom"],["coalesce",["get","text_anchor"],"center"],7,"center"],"text-offset":["step",["zoom"],["match",["get","text_anchor"],"bottom",["literal",[0,-.25]],"bottom-left",["literal",[.2,-.05]],"left",["literal",[.4,.05]],"top-left",["literal",[.2,.05]],"top",["literal",[0,.25]],"top-right",["literal",[-.2,.05]],"right",["literal",[-.4,.05]],"bottom-right",["literal",[-.2,-.05]],["literal",[0,-.25]]],7,["literal",[0,0]]],"text-justify":["step",["zoom"],["match",["get","text_anchor"],["bottom","top"],"center",["left","bottom-left","top-left"],"left",["right","bottom-right","top-right"],"right","center"],7,"center"],"text-size":["interpolate",["cubic-bezier",.2,0,.7,1],["zoom"],1,["step",["get","symbolrank"],11,4,9,5,8],9,["step",["get","symbolrank"],28,4,22,5,21]]},paint:{"icon-opacity":["step",["zoom"],["case",["has","text_anchor"],1,0],7,0],"text-color":"hsl(0, 0%, 0%)","text-halo-color":["interpolate",["linear"],["zoom"],2,"rgba(255,255,255,0.75)",3,"hsl(0, 0%, 100%)"],"text-halo-width":1.25}}],created:"2019-09-04T03:20:04.361Z",id:"ck04p1fic0p9o1cnqyf3tisiu",modified:"2019-09-04T03:20:04.361Z",owner:"smallmultiples",visibility:"private",draft:!1}},function(e,t){e.exports={version:8,name:"Satellite",metadata:{"mapbox:autocomposite":!0,"mapbox:type":"default","mapbox:sdk-support":{js:"0.54.0",android:"7.4.0",ios:"4.11.0"}},center:[-118.4106,33.750013],zoom:13,sources:{"mapbox://mapbox.satellite":{url:"mapbox://mapbox.satellite",type:"raster",tileSize:256}},sprite:"mapbox://sprites/smallmultiples/ck06b7arr27m31cmjb9v7msgn/8e326qvfehrulxqyzycl5p05y",glyphs:"mapbox://fonts/smallmultiples/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"rgb(4,7,14)"}},{id:"satellite",type:"raster",source:"mapbox://mapbox.satellite","source-layer":"mapbox_satellite_full"}],created:"2019-09-05T06:28:15.849Z",id:"ck06b7arr27m31cmjb9v7msgn",modified:"2019-09-05T06:28:15.849Z",owner:"smallmultiples",visibility:"private",draft:!1}},function(e,t,n){e.exports=n(244)},function(e,t,n){var r,o,i;!function(a,s){o=[t,n(0),n(13),n(1),n(87),n(88),n(245)],r=s,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e,t,n,r,o,i,a){"use strict";
1function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(e,"__esModule",{value:!0});var p=s(t),f=s(n),h=s(r),d=s(o),m=s(i),y=s(a),g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),v(t,[{key:"handleCloseAlert",value:function(){var e=void 0,t=this.props.id,n=f.default.findDOMNode(this),r=function(){n.style.display="none",m.default.dispatch({type:"REMOVE",data:{id:t}}),clearTimeout(e)};document.hidden||document.webkitHidden||!n.classList.contains("s-alert-is-effect")?m.default.dispatch({type:"REMOVE",data:{id:t}}):(n.classList.remove("s-alert-show"),e=setTimeout(function(){n.classList.add("s-alert-hide")},100),n.removeEventListener("webkitAnimationEnd",r,!1),n.removeEventListener("animationend",r,!1),n.addEventListener("webkitAnimationEnd",r,!1),n.addEventListener("animationend",r,!1)),this.alertAudio&&this.alertAudio.load()}},{key:"componentWillMount",value:function(){var e=this.props.beep,t=this.props.condition;e&&"string"===typeof e&&(this.alertAudio=new Audio(e),this.alertAudio.load(),this.alertAudio.play()),e&&"object"===("undefined"===typeof e?"undefined":g(e))&&"info"===t&&(this.alertAudio=new Audio(e.info),this.alertAudio.load(),this.alertAudio.play()),e&&"object"===("undefined"===typeof e?"undefined":g(e))&&"error"===t&&(this.alertAudio=new Audio(e.error),this.alertAudio.load(),this.alertAudio.play()),e&&"object"===("undefined"===typeof e?"undefined":g(e))&&"success"===t&&(this.alertAudio=new Audio(e.success),this.alertAudio.load(),this.alertAudio.play()),e&&"object"===("undefined"===typeof e?"undefined":g(e))&&"warning"===t&&(this.alertAudio=new Audio(e.warning),this.alertAudio.load(),this.alertAudio.play())}},{key:"componentDidMount",value:function(){var e=this;"number"===typeof this.props.timeout&&(this.closeTimer=setTimeout(function(){e.handleCloseAlert()},this.props.timeout)),this.props.onShow&&this.props.onShow()}},{key:"componentWillUnmount",value:function(){this.closeTimer&&clearTimeout(this.closeTimer),this.props.onClose&&this.props.onClose()}},{key:"render",value:function(){var e="s-alert-box s-alert-"+this.props.condition+" s-alert-"+this.props.position+" "+(this.props.effect?"s-alert-is-effect s-alert-effect-"+this.props.effect:"")+" s-alert-show",t=this.props.html?p.default.createElement("span",{dangerouslySetInnerHTML:{__html:this.props.message}}):this.props.message,n=this.props.boxPosition?d.default.styleToObj(this.props.boxPosition):{},r=this.props.id,o=this.handleCloseAlert.bind(this),i=this.props.contentTemplate||y.default,a=this.props.customFields||{},s=this.props.condition;return p.default.createElement(i,{classNames:e,id:r,styles:n,message:t,handleClose:o,customFields:a,condition:s})}}]),t}(p.default.Component);_.propTypes={condition:h.default.string.isRequired,message:h.default.oneOfType([h.default.string,h.default.node]),position:h.default.string.isRequired,boxPosition:h.default.string,id:h.default.string.isRequired,effect:h.default.string,beep:h.default.oneOfType([h.default.string,h.default.object,h.default.bool]),timeout:h.default.oneOfType([h.default.oneOf(["none"]),h.default.number]),html:h.default.bool,onClose:h.default.func,onShow:h.default.func,customFields:h.default.object,contentTemplate:h.default.func},e.default=_})},function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=r(p),h=n(9),d=r(h),m=n(4),y=r(m),g=n(12),v=r(g),_=n(247),b=r(_),x=n(248),w=r(x),E=n(249),T=r(E),O=n(250),C=r(O),S=n(251),k=r(S),A=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleColumnClick=function(){return n.__handleColumnClick__REACT_HOT_LOADER__.apply(n,arguments)},n.handleFilter=n.handleFilter.bind(n),n}return a(t,e),l(t,[{key:"__handleColumnClick__REACT_HOT_LOADER__",value:function(){return this.__handleColumnClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"componentWillReceiveProps",value:function(e){if(e.reset&&this.cleanFiltered(),e.filter&&e.dataField!==this.props.dataField){var t=e.filter.emitter||{},n=t.currentFilter||{},r=n[e.dataField],o=r?r.value:"",i=this.getFilters(e)||{},a=i.ref;this.refs[a]&&this.refs[a].setState({value:o})}}},{key:"__handleColumnClick__REACT_HOT_LOADER__",value:function(){if(!this.props.isOnlyHead&&this.props.dataSort){var e=this.props.sort;e=!e&&this.props.defaultASC?y.default.SORT_ASC:this.props.sort===y.default.SORT_DESC?y.default.SORT_ASC:y.default.SORT_DESC,this.props.onSort(e,this.props.dataField)}}},{key:"handleFilter",value:function(e,t){var n=this.props.filter;n.emitter.handleFilter(this.props.dataField,e,t,n)}},{key:"getFilters",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=t.headerText,r=t.children;switch(t.filter.type){case y.default.FILTER_TYPE.TEXT:return c.default.createElement(w.default,s({ref:function(t){return e.textFilter=t}},t.filter,{columnName:n||r,filterHandler:this.handleFilter}));case y.default.FILTER_TYPE.REGEX:return c.default.createElement(T.default,s({ref:function(t){return e.regexFilter=t}},t.filter,{columnName:n||r,filterHandler:this.handleFilter}));case y.default.FILTER_TYPE.SELECT:return c.default.createElement(C.default,s({ref:function(t){return e.selectFilter=t}},t.filter,{columnName:n||r,filterHandler:this.handleFilter}));case y.default.FILTER_TYPE.NUMBER:return c.default.createElement(k.default,s({ref:function(t){return e.numberFilter=t}},t.filter,{columnName:n||r,filterHandler:this.handleFilter}));case y.default.FILTER_TYPE.DATE:return c.default.createElement(b.default,s({ref:function(t){return e.dateFilter=t}},t.filter,{columnName:n||r,filterHandler:this.handleFilter}));case y.default.FILTER_TYPE.CUSTOM:var o=t.filter.getElement(this.handleFilter,t.filter.customFilterParameters);return c.default.cloneElement(o,{ref:function(t){return e.customFilter=t}})}}},{key:"componentDidMount",value:function(){this.headerCol.setAttribute("data-field",this.props.dataField)}},{key:"renderDefaultCaret",value:function(e,t){return e?t?c.default.createElement("span",{className:"order fa fa-sort",style:{margin:"10px 0 10px 5px",color:"#ccc"}}):c.default.createElement("span",{className:"order"},c.default.createElement("span",{className:"dropdown"},c.default.createElement("span",{className:"caret",style:{margin:"10px 0 10px 5px",color:"#ccc"}})),c.default.createElement("span",{className:"dropup"},c.default.createElement("span",{className:"caret",style:{margin:"10px 0",color:"#ccc"}}))):null}},{key:"render",value:function(){var e=this,t=void 0,n=void 0,r=void 0,o=this.props,i=o.headerText,a=o.dataAlign,l=o.dataField,u=o.headerAlign,p=o.headerTitle,f
1=o.hidden,h=o.sort,m=o.dataSort,y=o.sortIndicator,g=o.children,_=o.caretRender,b=o.className,x=o.isOnlyHead,w=o.version,E=o.sortHeaderColumnClassName,T=o.thStyle,O=s({textAlign:u||a,display:f?"none":null},T),C=v.default.isBootstrap4(w);x||(y&&(t=this.renderDefaultCaret(m,C)),n=h?v.default.renderReactSortCaret(h,C):t,_&&(n=_(h,l))),h&&(r=v.default.isFunction(E)?E(h,l):E);var S=(0,d.default)(v.default.isFunction(b)?b():b,!x&&m?"sort-column":"",r),k={};return p&&(k.title="string"!==typeof g||i?i:g),c.default.createElement("th",s({ref:function(t){return e.headerCol=t},className:S,style:O,onClick:this.handleColumnClick,rowSpan:this.props.rowSpan,colSpan:this.props.colSpan,"data-is-only-head":this.props.isOnlyHead},k),g,n,c.default.createElement("div",{onClick:function(e){return e.stopPropagation()}},this.props.filter&&!x?this.getFilters():null))}},{key:"cleanFiltered",value:function(){if(this.props.filter)switch(this.props.filter.type){case y.default.FILTER_TYPE.TEXT:this.textFilter.cleanFiltered();break;case y.default.FILTER_TYPE.REGEX:this.regexFilter.cleanFiltered();break;case y.default.FILTER_TYPE.SELECT:this.selectFilter.cleanFiltered();break;case y.default.FILTER_TYPE.NUMBER:this.numberFilter.cleanFiltered();break;case y.default.FILTER_TYPE.DATE:this.dateFilter.cleanFiltered();break;case y.default.FILTER_TYPE.CUSTOM:this.customFilter.cleanFiltered()}}},{key:"applyFilter",value:function(e){if(this.props.filter)switch(this.props.filter.type){case y.default.FILTER_TYPE.TEXT:this.textFilter.applyFilter(e);break;case y.default.FILTER_TYPE.REGEX:this.regexFilter.applyFilter(e);break;case y.default.FILTER_TYPE.SELECT:this.selectFilter.applyFilter(e);break;case y.default.FILTER_TYPE.NUMBER:this.numberFilter.applyFilter(e);break;case y.default.FILTER_TYPE.DATE:this.dateFilter.applyFilter(e)}}}]),t}(u.Component),P=[];for(var R in y.default.FILTER_TYPE)P.push(y.default.FILTER_TYPE[R]);A.propTypes={dataField:f.default.string,dataAlign:f.default.string,headerAlign:f.default.string,headerTitle:f.default.bool,headerText:f.default.string,dataSort:f.default.bool,onSort:f.default.func,dataFormat:f.default.func,csvFormat:f.default.func,csvHeader:f.default.string,csvFieldType:f.default.oneOf([y.default.CSV_STRING_TYPE,y.default.CSV_NUMBER_TYPE]),isKey:f.default.bool,editable:f.default.any,hidden:f.default.bool,hiddenOnInsert:f.default.bool,searchable:f.default.bool,className:f.default.oneOfType([f.default.string,f.default.func]),width:f.default.string,sortFunc:f.default.func,sortFuncExtraData:f.default.any,sortHeaderColumnClassName:f.default.any,columnClassName:f.default.any,editColumnClassName:f.default.any,invalidEditColumnClassName:f.default.any,columnTitle:f.default.oneOfType([f.default.bool,f.default.func,f.default.string]),filterFormatted:f.default.bool,filterValue:f.default.func,sort:f.default.string,caretRender:f.default.func,formatExtraData:f.default.any,csvFormatExtraData:f.default.any,filter:f.default.shape({type:f.default.oneOf(P),delay:f.default.number,options:f.default.oneOfType([f.default.object,f.default.arrayOf(f.default.number)]),numberComparators:f.default.arrayOf(f.default.string),emitter:f.default.object,placeholder:f.default.string,getElement:f.default.func,customFilterParameters:f.default.object,condition:f.default.oneOf([y.default.FILTER_COND_EQ,y.default.FILTER_COND_LIKE])}),sortIndicator:f.default.bool,export:f.default.bool,expandable:f.default.bool,tdAttr:f.default.object,editTdAttr:f.default.object,tdStyle:f.default.oneOfType([f.default.func,f.default.object]),thStyle:f.default.object,keyValidator:f.default.bool,defaultASC:f.default.bool},A.defaultProps={dataAlign:"left",headerAlign:void 0,headerTitle:!0,dataSort:!1,dataFormat:void 0,csvFormat:void 0,csvHeader:void 0,csvFieldType:y.default.CSV_STRING_TYPE,isKey:!1,editable:!0,onSort:void 0,hidden:!1,hiddenOnInsert:!1,searchable:!0,className:"",columnTitle:!1,width:null,sortFunc:void 0,columnClassName:"",editColumnClassName:"",invalidEditColumnClassName:"",filterFormatted:!1,filterValue:void 0,sort:void 0,formatExtraData:void 0,sortFuncExtraData:void 0,filter:void 0,sortIndicator:!0,expandable:!0,tdAttr:void 0,editTdAttr:void 0,tdStyle:void 0,thStyle:void 0,keyValidator:!1,defaultASC:!1};var D=A;t.default=D;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(A,"TableHeaderColumn","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeaderColumn.js"),__REACT_HOT_LOADER__.register(P,"filterTypeArray","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeaderColumn.js"),__REACT_HOT_LOADER__.register(D,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeaderColumn.js"))}()},function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(12),s=r(a),l=n(0),u=r(l),c=function(e,t,n,r,a,l,c){if(!0===e||!1===e&&l||"string"===typeof e){var p=e?"text":e;return u.default.createElement("input",i({},t,{type:p,defaultValue:a,className:(r||"")+" form-control editor edit-text"}))}if(!e){var f=e?"text":e;return u.default.createElement("input",i({},t,{type:f,defaultValue:a,disabled:"disabled",className:(r||"")+" form-control editor edit-text"}))}if(e&&(void 0===e.type||null===e.type||""===e.type.trim())){var h=e?"text":e;return u.default.createElement("input",i({},t,{type:h,defaultValue:a,className:(r||"")+" form-control editor edit-text"}))}if(e.type){if(e.style&&(t.style=e.style),t.className=(r||"")+" form-control editor edit-"+e.type+(e.className?" "+e.className:""),"select"===e.type){var d=[],m=e.options.values,y=e.options,g=y.textKey,v=y.valueKey;if(s.default.isFunction(m)&&(m=m(c)),Array.isArray(m)){var _=void 0,b=void 0;d=m.map(function(e,t){return"object"===("undefined"===typeof e?"undefined":o(e))?(_=g?e[g]:e.text,b=v?e[v]:e.value):(_=n?n(e):e,b=e),u.default.createElement("option",{key:"option"+t,value:b},_)})}return u.default.createElement("select",i({},t,{defaultValue:a}),d)}if("textarea"===e.type){e.cols&&(t.cols=e.cols),e.rows&&(t.rows=e.rows);var x=void 0,w=t.onKeyDown;return w&&(t.onKeyDown=function(e){13!==e.keyCode&&w(e)},x=u.default.createElement("button",{className:"btn btn-info btn-xs textarea-save-btn",onClick:w},"save")),u.default.createElement("div",null,u.default.createElement("textarea",i({},t,{defaultValue:a})),x)}if("checkbox"===e.type){var E="true:false";e.options&&e.options.values&&(E=e.options.values),t.className=t.className.replace("form-control",""),t.className+=" checkbox pull-right";var T=!(!a||a.toString()!==E.split(":")[0]);return u.default.createElement("input",i({},t,{type:"checkbox",value:E,defaultChecked:T}))}return"datetime"===e.type?u.default.createElement("input",i({},t,{type:"datetime-local",defaultValue:a})):u.default.createElement("input",i({},t,{type:e.type,defaultValue:a}))}return u.default.createElement("input",i({},t,{type:"text",className:(r||"")+" form-control editor edit-text"}))},p=c;t.default=p;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(c,"editor","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Editor.js"),__REACT_HOT_LOADER__.register(p,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Editor.js"))}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notice=void 0;var r=n(121),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e,t,n){var r=n?"<h4><strong>"+n+"</strong></h4>":"",i="\n "+r+"\n <div>
1\n <span class='fa fa-exclamation-triangle glyphicon glyphicon-alert'></span> \n <span>"+t+"</span>\n </div>\n ";o.default.error(i,{position:"top-right",timeout:3e3,html:!0,effect:"scale"})};t.notice=i;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(i,"notice","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Notification.js")}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=r(c),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){var e=this.props,t=e.open,n=e.hidden,r=e.onClick,o=e.onBlur,i=e.options,a=e.className,s=e.variation,l=e.btnContextual,c=e.isBootstrap4,p=e.currSizePerPage;if(n)return null;var f=t?"open show":"";return u.default.createElement("span",{className:s+" "+f+" "+a+" react-bs-table-sizePerPage-dropdown"},u.default.createElement("button",{className:"btn "+l+" dropdown-toggle",id:"pageDropDown","data-toggle":"dropdown","aria-expanded":t,"aria-haspopup":!t,onClick:r,onBlur:o},p,u.default.createElement("span",null," ",u.default.createElement("span",{className:"caret"}))),function(){var e={className:"dropdown-menu "+f,role:"menu","aria-labelledby":"pageDropDown"},t=c?"div":"ul";return u.default.createElement(t,e,i)}())}}]),t}(l.Component);f.propTypes={open:p.default.bool,hidden:p.default.bool,btnContextual:p.default.string,currSizePerPage:p.default.string,options:p.default.array,variation:p.default.oneOf(["dropdown","dropup"]),className:p.default.string,onClick:p.default.func,onBlur:p.default.func},f.defaultProps={open:!1,hidden:!1,btnContextual:"btn-default btn-secondary",variation:"dropdown",className:""};var h=f;t.default=h;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register("react-bs-table-sizePerPage-dropdown","sizePerPageDefaultClass","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/SizePerPageDropDown.js"),__REACT_HOT_LOADER__.register(f,"SizePerPageDropDown","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/SizePerPageDropDown.js"),__REACT_HOT_LOADER__.register(h,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/SizePerPageDropDown.js"))}()},function(e,t,n){"use strict";function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow"):"none"==n.getPropertyValue("display")}function o(e){for(var t=e;t&&t!==document.body;){if(r(t))return!1;t=t.parentNode}return!0}function i(e,t){var n=e.nodeName.toLowerCase();return(l.test(n)&&!e.disabled||("a"===n?e.href||t:t))&&o(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&i(e,!n)}function s(e){return[].slice.call(e.querySelectorAll("*"),0).filter(a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var l=/input|select|textarea|button|object/;e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function o(e){var t=e;if("string"===typeof t){var n=document.querySelectorAll(t);r(n,t),t="length"in n?n[0]:n}return f=t||f}function i(e){return!(!e&&!f)||((0,p.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}function a(e){i(e)&&(e||f).setAttribute("aria-hidden","true")}function s(e){i(e)&&(e||f).removeAttribute("aria-hidden")}function l(){f=null}function u(){f=null}
1Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=r,t.setElement=o,t.validateElement=i,t.hide=a,t.show=s,t.documentNotReadyOrSSRTesting=l,t.resetForTesting=u;var c=n(269),p=function(e){return e&&e.__esModule?e:{default:e}}(c),f=null},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var r=n(271),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=o.default,a=i.canUseDOM?window.HTMLElement:{};t.canUseDOM=i.canUseDOM;t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=r(c),f=n(12),h=r(f),d=function(e){function t(){var e,n,r,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.handleCloseBtnClick=function(){var e;return(e=r).__handleCloseBtnClick__REACT_HOT_LOADER__.apply(e,arguments)},a=n,i(r,a)}return a(t,e),s(t,[{key:"__handleCloseBtnClick__REACT_HOT_LOADER__",value:function(){return this.__handleCloseBtnClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleCloseBtnClick__REACT_HOT_LOADER__",value:function(e){var t=this.props,n=t.onModalClose,r=t.beforeClose;r&&r(e),n()}},{key:"renderContent",value:function(e){var t=this.props,n=t.version,r=t.title,o=u.default.createElement("h4",{key:"title",className:"modal-title"},r);return h.default.isBootstrap4(n)?[o,e]:u.default.createElement("span",null,e,o)}},{key:"render",value:function(){var e=this.props,t=e.hideClose,n=e.className,r=e.children,o=t?null:u.default.createElement("button",{type:"button",className:"close",onClick:this.handleCloseBtnClick},u.default.createElement("span",{"aria-hidden":"true"},"\xd7"),u.default.createElement("span",{className:"sr-only"},"Close")),i=r||this.renderContent(o);return u.default.createElement("div",{className:"modal-header "+n},i)}}]),t}(l.Component);d.propTypes={version:p.default.string,className:p.default.string,title:p.default.string,onModalClose:p.default.func,hideClose:p.default.bool,beforeClose:p.default.func},d.defaultProps={version:"3",className:"",title:"Add Row",onModalClose:void 0,hideClose:!1,beforeClose:void 0};var m=d;t.default=m;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(d,"InsertModalHeader","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModalHeader.js"),__REACT_HOT_LOADER__.register(m,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModalHeader.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=r(c),f=n(4),h=r(f),d=function(e){function t(){var e,n,r,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.handleCloseBtnClick=function(){var e;return(e=r).__handleCloseBtnClick__REACT_HOT_LOADER__.apply(e,arguments)},r.handleSaveBtnClick=function(){var e;return(e=r).__handleSaveBtnClick__REACT_HOT_LOADER__.apply(e,arguments)},a=n,i(r,a)}return a(t,e),s(t,[{key:"__handleSaveBtnClick__REACT_HOT_LOADER__",value:function(){return this.__handleSaveBtnClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleCloseBtnClick__REACT_HOT_LOADER__",value:function(){return this.__handleCloseBtnClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleCloseBtnClick__REACT_HOT_LOADER__",value:function(e){var t=this.props,n=t.beforeClose,r=t.onModalClose;n&&n(e),r()}},{key:"__handleSaveBtnClick__REACT_HOT_LOADER__",value:function(e){var t=this.props,n=t.beforeSave,r=t.onSave;n&&n(e),r()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.saveBtnText,r=e.closeBtnText,o=e.closeBtnContextual,i=e.saveBtnContextual,a=e.closeBtnClass,s=e.saveBtnClass,l=e.children,c=l||[u.default.createElement("button",{key:"closeBtn",type:"button",className:"btn "+o+" "+a,onClick:this.handleCloseBtnClick},r),u.default.createElement("button",{key:"saveBtn",type:"button",className:"btn "+i+" "+s,onClick:this.handleSaveBtnClick},n)];return u.default.createElement("div",{className:"modal-footer "+t},c)}}]),t}(l.Component);d.propTypes={className:p.default.string,saveBtnText:p.default.string,closeBtnText:p.default.string,closeBtnContextual:p.default.string,saveBtnContextual:p.default.string,closeBtnClass:p.default.string,saveBtnClass:p.default.string,beforeClose:p.default.func,beforeSave:p.default.func,onSave:p.default.func,onModalClose:p.default.func},d.defaultProps={className:"",saveBtnText:h.default.SAVE_BTN_TEXT,closeBtnText:h.default.CLOSE_BTN_TEXT,closeBtnContextual:"btn-default btn-secondary",saveBtnContextual:"btn-primary",closeBtnClass:"",saveBtnClass:"",beforeClose:void 0,beforeSave:void 0};var m=d;t.default=m;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(d,"InsertModalFooter","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModalFooter.js"),__REACT_HOT_LOADER__.register(m,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModalFooter.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=r(c),f=n(124),h=r(f),d=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"getFieldValue",value:function(){var e=this,t={};return this.props.columns.forEach(function(n,r){var o=void 0;if(n.autoValue){var i=(new Date).getTime();o="function"===typeof n.autoValue?n.autoValue():"autovalue-"+i}else if(n.hiddenOnInsert||!n.field)o="";else{var a=e.refs[n.field+r];if(o=a.value,n.editable&&"checkbox"===n.editable.type){var s=o.split(":");o=a.checked?s[0]:s[1]}
1else n.customInsertEditor&&(o=o||a.getFieldValue())}t[n.field]=o},this),t}},{key:"render",value:function(){var e=this.props,t=e.columns,n=e.validateState,r=e.ignoreEditable;return u.default.createElement("div",{className:"modal-body"},t.map(function(e,t){var o=e.editable,i=e.format,a=e.field,s=e.name,l=e.autoValue,c=e.hiddenOnInsert,p=e.customInsertEditor,f={ref:a+t,placeholder:o.placeholder?o.placeholder:s},d=void 0,m=o.defaultValue||void 0;if(p){d=(0,p.getElement)(e,f,"form-control",r,m)}if(p&&!1!==d||(d=(0,h.default)(o,f,i,"",m,r)),l||c||!e.field)return null;var y=n[a]?u.default.createElement("span",{className:"help-block bg-danger"},n[a]):null;return u.default.createElement("div",{className:"form-group",key:a},u.default.createElement("label",null,s),d,y)}))}}]),t}(l.Component);d.propTypes={columns:p.default.array,validateState:p.default.object,ignoreEditable:p.default.bool},d.defaultProps={validateState:{},ignoreEditable:!1};var m=d;t.default=m;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(d,"InsertModalBody","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModalBody.js"),__REACT_HOT_LOADER__.register(m,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModalBody.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d=n(4),m=r(d),y=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.btnContextual,n=e.className,r=e.onClick,i=e.btnGlyphicon,a=e.btnText,s=e.children,u=o(e,["btnContextual","className","onClick","btnGlyphicon","btnText","children"]),c=s||p.default.createElement("span",null,p.default.createElement("i",{className:"fa glyphicon "+i})," ",a);return p.default.createElement("button",l({type:"button",className:"btn "+t+" react-bs-table-add-btn "+n,onClick:r},u),c)}}]),t}(c.Component);y.propTypes={btnText:h.default.string,btnContextual:h.default.string,className:h.default.string,onClick:h.default.func,btnGlyphicon:h.default.string},y.defaultProps={btnText:m.default.INSERT_BTN_TEXT,btnContextual:"btn-info",className:"",onClick:void 0,btnGlyphicon:"glyphicon-plus fa-plus"};var g=y;t.default=g;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register("react-bs-table-add-btn","insertBtnDefaultClass","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertButton.js"),__REACT_HOT_LOADER__.register(y,"InsertButton","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertButton.js"),__REACT_HOT_LOADER__.register(g,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertButton.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d=n(4),m=r(d),y=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.btnContextual,n=e.className,r=e.onClick,i=e.btnGlyphicon,a=e.btnText,s=e.children,u=o(e,["btnContextual","className","onClick","btnGlyphicon","btnText","children"]),c=s||p.default.createElement("span",null,p.default.createElement("i",{className:"fa glyphicon "+i})," ",a);return p.default.createElement("button",l({type:"button",className:"btn "+t+" react-bs-table-del-btn "+n,onClick:r},u),c)}}]),t}(c.Component);y.propTypes={btnText:h.default.string,btnContextual:h.default.string,className:h.default.string,onClick:h.default.func,btnGlyphicon:h.default.string},y.defaultProps={btnText:m.default.DELETE_BTN_TEXT,btnContextual:"btn-warning",className:"",onClick:void 0,btnGlyphicon:"glyphicon-trash fa-trash"};var g=y;t.default=g;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register("react-bs-table-del-btn","deleteBtnDefaultClass","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/DeleteButton.js"),__REACT_HOT_LOADER__.register(y,"DeleteButton","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/DeleteButton.js"),__REACT_HOT_LOADER__.register(g,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/DeleteButton.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d=n(4),m=r(d),y=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.btnContextual,n=e.className,r=e.onClick,i=e.btnGlyphicon,a=e.btnText,s=e.children,u=o(e,["btnContextual","className","onClick","btnGlyphicon","btnText","children"]),c=s||p.default.createElement("span",null,p.default.createElement("i",{className:"fa glyphicon "+i})," ",a);return p.default.createElement("button",l({type:"button",className:"btn "+t+" react-bs-table-csv-btn "+n+" hidden-print",onClick:r},u),c)}}]),t}(c.Component);y.propTypes={btnText:h.default.string,btnContextual:h.default.string,className:h.default.string,onClick:h.default.func,btnGlyphicon:h.default.string},y.defaultProps={btnText:m.default.EXPORT_CSV_TEXT,btnContextual:"btn-success",className:"",onClick:void 0,btnGlyphicon:"glyphicon-export fa-download"};var g=y;t.default=g;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register("react-bs-table-csv-btn","exportCsvBtnDefaultClass","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ExportCSVButton.js"),__REACT_HOT_LOADER__.register(y,"ExportCSVButton","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ExportCSVButton.js"),__REACT_HOT_LOADER__.register(g,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ExportCSVButton.js"))}()},function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d=n(4),m=r(d),y=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.btnContextual,n=e.className,r=e.onClick,i=e.toggle,a=e.showAllText,s=e.showOnlySelectText,u=e.children,c=o(e,["btnContextual","className","onClick","toggle","showAllText","showOnlySelectText","children"]),f=u||p.default.createElement("span",null,i?a:s);return p.default.createElement("button",l({type:"button","aria-pressed":"false","data-toggle":"button",className:"btn "+t+" react-bs-table-show-sel-only-btn "+n,onClick:r},c),f)}}]),t}(c.Component);y.propTypes={showAllText:h.default.string,showOnlySelectText:h.default.string,toggle:h.default.bool,btnContextual:h.default.string,className:h.default.string,onClick:h.default.func},y.defaultProps={showAllText:m.default.SHOW_ALL,showOnlySelectText:m.default.SHOW_ONLY_SELECT,toggle:!1,btnContextual:"btn-primary",className:"",onClick:void 0};var g=y;t.default=g;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register("react-bs-table-show-sel-only-btn","showSelectedOnlyBtnDefaultClass","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ShowSelectedOnlyButton.js"),__REACT_HOT_LOADER__.register(y,"ShowSelectedOnlyButton","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ShowSelectedOnlyButton.js"),__REACT_HOT_LOADER__.register(g,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ShowSelectedOnlyButton.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d=n(13),m=r(d),y=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"getValue",value:function(){return m.default.findDOMNode(this).value}},{key:"setValue",value:function(e){m.default.findDOMNode(this).value=e}},{key:"render",value:function(){var e=this.props,n=e.className,r=e.defaultValue,i=e.placeholder,a=e.onKeyUp,s=o(e,["className","defaultValue","placeholder","onKeyUp"]);return p.default.createElement("input",l({className:"form-control "+n,type:"text",defaultValue:r,placeholder:i||t.defaultProps.placeholder,onKeyUp:a,style:{zIndex:0}},s))}}]),t}(c.Component);y.propTypes={className:h.default.string,defaultValue:h.default.string,placeholder:h.default.string,onKeyUp:h.default.func},y.defaultProps={className:"",defaultValue:"",placeholder:"Search",onKeyUp:void 0};var g=y;t.default=g;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(y,"SearchField","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/SearchField.js"),__REACT_HOT_LOADER__.register(g,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/SearchField.js"))}()},function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.btnContextual,n=e.className,r=e.onClick,i=e.btnText,a=e.children,s=o(e,["btnContextual","className","onClick","btnText","children"]),u=a||p.default.createElement("span",null,i);return p.default.createElement("button",l({className:"btn "+t+" "+n+" react-bs-table-search-clear-btn",type:"button",onClick:r},s),u)}}]),t}(c.Component);d.propTypes={btnContextual:h.default.string,className:h.default.string,btnText:h.default.string,onClick:h.default.func},d.defaultProps={btnContextual:"btn-default btn-secondary",className:"",btnText:"Clear",onClick:void 0};var m=d;t.default=m;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register("react-bs-table-search-clear-btn","clearBtnDefaultClass","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ClearSearchButton.js"),__REACT_HOT_LOADER__.register(d,"ClearSearchButton","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ClearSearchButton.js"),__REACT_HOT_LOADER__.register(m,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ClearSearchButton.js"))}()},function(e,t){e.exports={right:"header-module__right___2eEWD",left:"header-module__left___3uhwf",search:"header-module__search___3G6p6",searchButton:"header-module__searchButton___2OTNH",activeFeatureName:"header-module__activeFeatureName___1BlbJ",headerButton:"header-module__headerButton___EDPza",nswSvg:"header-module__nswSvg___3wbNZ",filterButton:"header-module__filterButton___Y004Q",toggleButton:"header-module__toggleButton___3vLBA",filters:"header-module__filters___1jpvE",filtersHeader:"header-module__filtersHeader___3Yktq",filterCloseButton:"header-module__filterCloseButton___1IOAm",filterItem:"header-module__filterItem___4okJL",filterItemButton:"header-module__filterItemButton___soGki",mapTypeButton:"header-module__mapTypeButton___38EZB",mapBasemapButton:"header-module__mapBasemapButton___1_Eqv"}},function(e,t,n){"use strict";var r=n(294),o=n.n(r),i={fer:{displayName:"FER",geojsonUrl:"/data/fer-generalised-simplified-0.008-topo.json",idCol:"ID",idSelector:function(e){return o()(e,["properties","ID"])},nameSelector:function(e){return o()(e,["properties","FER_NAME"])},topologyObjectsName:"fer-generalised-simplified-0"},regions:{displayName:"DPC Regions",geojsonUrl:"/data/dpc-regions-generalised-simplified-0.0008-topo.json",idSelector:function(e){return o()(e,["properties","CADID"])},idCol:"CADID",nameSelector:function(e){return o()(e,["properties","REGION"])},topologyObjectsName:"dpc-regions-generalised-simplified-0"},lga:{displayName:"LGA",geojsonUrl:"/data/lga-nsw-2016-simplified-0.0008-topo.json",idSelector:function(e){return o()(e,["properties","LGA_CODE16"])},idCol:"LGA_CODE16",nameSelector:function(e){return o()(e,["properties","LGA_NAME16"])},topologyObjectsName:"lga-nsw-2016-simplified-0"},electorates:{displayName:"Electorates",geojsonUrl:"/data/sed-nsw-2016-simplified-0.0008.json",i
1dCol:"SED_CODE16",idSelector:function(e){return o()(e,["properties","SED_CODE16"])},nameSelector:function(e){return o()(e,["properties","SED_NAME16"])},topologyObjectsName:"sed-nsw-2016-simplified-0"}};t.a=i},function(e,t,n){function r(e){return null==e?void 0===e?l:s:u&&u in Object(e)?i(e):a(e)}var o=n(91),i=n(299),a=n(300),s="[object Null]",l="[object Undefined]",u=o?o.toStringTag:void 0;e.exports=r},function(e,t,n){function r(e,t){var n=i(e,t);return o(n)?n:void 0}var o=n(309),i=n(314);e.exports=r},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){"use strict";var r=n(93);t.a=function(e){function t(e){e=i(e),e[0]<a&&(a=e[0]),e[0]>l&&(l=e[0]),e[1]<s&&(s=e[1]),e[1]>u&&(u=e[1])}function n(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(n);break;case"Point":t(e.coordinates);break;case"MultiPoint":e.coordinates.forEach(t)}}var o,i=Object(r.a)(e.transform),a=1/0,s=a,l=-a,u=-a;e.arcs.forEach(function(e){for(var t,n=-1,r=e.length;++n<r;)t=i(e[n],n),t[0]<a&&(a=t[0]),t[0]>l&&(l=t[0]),t[1]<s&&(s=t[1]),t[1]>u&&(u=t[1])});for(o in e.objects)n(e.objects[o]);return[a,s,l,u]}},function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict";t.a=function(e,t){function n(t){var n,r=e.arcs[t<0?~t:t],o=r[0];return e.transform?(n=[0,0],r.forEach(function(e){n[0]+=e[0],n[1]+=e[1]})):n=r[r.length-1],t<0?[n,o]:[o,n]}function r(e,t){for(var n in e){var r=e[n];delete t[r.start],delete r.start,delete r.end,r.forEach(function(e){o[e<0?~e:e]=1}),s.push(r)}}var o={},i={},a={},s=[],l=-1;return t.forEach(function(n,r){var o,i=e.arcs[n<0?~n:n];i.length<3&&!i[1][0]&&!i[1][1]&&(o=t[++l],t[l]=n,t[r]=o)}),t.forEach(function(e){var t,r,o=n(e),s=o[0],l=o[1];if(t=a[s])if(delete a[t.end],t.push(e),t.end=l,r=i[l]){delete i[r.start];var u=r===t?t:t.concat(r);i[u.start=t.start]=a[u.end=r.end]=u}else i[t.start]=a[t.end]=t;else if(t=i[l])if(delete i[t.start],t.unshift(e),t.start=s,r=a[s]){delete a[r.end];var c=r===t?t:r.concat(t);i[c.start=r.start]=a[c.end=t.end]=c}else i[t.start]=a[t.end]=t;else t=[e],i[t.start=s]=a[t.end=l]=t}),r(a,i),r(i,a),t.forEach(function(e){o[e<0?~e:e]||s.push([e])}),s}},function(e,t,n){"use strict";var r=n(145);t.a=function(e){if(null==e)return r.a;var t,n,o=e.scale[0],i=e.scale[1],a=e.translate[0],s=e.translate[1];return function(e,r){r||(t=n=0);var l=2,u=e.length,c=new Array(u),p=Math.round((e[0]-a)/o),f=Math.round((e[1]-s)/i);for(c[0]=p-t,t=p,c[1]=f-n,n=f;l<u;)c[l]=e[l],++l;return c}}},function(e,t,n){n(52),e.exports=n(149)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n.n(r),i=n(13),a=n.n(i),s=n(154),l=(n.n(s),n(155)),u=n(21),c=n(355),p=n(95),f=(n.n(p),function(){a.a.render(o.a.createElement(u.a,{store:c.a},o.a.createElement(l.a,null)),document.getElementById("root"))});f()},function(e,t,n){"use strict";function r(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}function o(e,t,n){this.props=e,this.context=t,this.refs=j,this.updater=n||L}function i(){}function a(e,t,n){this.props=e,this.context=t,this.refs=j,this.updater=n||L}function s(e,t,n){var r=void 0,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)U.call(t,r)&&!V.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:w,type:e,key:i,ref:a,props:o,_owner:B.current}}function l(e,t){return{$$typeof:w,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function u(e){return"object"===typeof e&&null!==e&&e.$$typeof===w}function c(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function p(e,t,n,r){if(q.length){var o=q.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function f(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>q.length&&q.push(e)}function h(e,t,n,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case w:case E:a=!0}}
1if(a)return n(o,e,""===t?"."+m(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){i=e[s];var l=t+m(i,s);a+=h(i,l,n,o)}else if(null===e||"object"!==typeof e?l=null:(l=M&&e[M]||e["@@iterator"],l="function"===typeof l?l:null),"function"===typeof l)for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=t+m(i,s++),a+=h(i,l,n,o);else if("object"===i)throw n=""+e,r(Error(31),"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return a}function d(e,t,n){return null==e?0:h(e,"",t,n)}function m(e,t){return"object"===typeof e&&null!==e&&null!=e.key?c(e.key):t.toString(36)}function y(e,t){e.func.call(e.context,t,e.count++)}function g(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?v(e,r,n,function(e){return e}):null!=e&&(u(e)&&(e=l(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(H,"$&/")+"/")+n)),r.push(e))}function v(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(H,"$&/")+"/"),t=p(t,i,r,o),d(e,g,t),f(t)}function _(){var e=F.current;if(null===e)throw r(Error(321));return e}var b=n(18),x="function"===typeof Symbol&&Symbol.for,w=x?Symbol.for("react.element"):60103,E=x?Symbol.for("react.portal"):60106,T=x?Symbol.for("react.fragment"):60107,O=x?Symbol.for("react.strict_mode"):60108,C=x?Symbol.for("react.profiler"):60114,S=x?Symbol.for("react.provider"):60109,k=x?Symbol.for("react.context"):60110,A=x?Symbol.for("react.forward_ref"):60112,P=x?Symbol.for("react.suspense"):60113,R=x?Symbol.for("react.suspense_list"):60120,D=x?Symbol.for("react.memo"):60115,I=x?Symbol.for("react.lazy"):60116;x&&Symbol.for("react.fundamental"),x&&Symbol.for("react.responder");var M="function"===typeof Symbol&&Symbol.iterator,L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j={};o.prototype.isReactComponent={},o.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw r(Error(85));this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},i.prototype=o.prototype;var z=a.prototype=new i;z.constructor=a,b(z,o.prototype),z.isPureReactComponent=!0;var F={current:null},N={suspense:null},B={current:null},U=Object.prototype.hasOwnProperty,V={key:!0,ref:!0,__self:!0,__source:!0},H=/\/+/g,q=[],G={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return v(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=p(null,null,t,n),d(e,y,t),f(t)},count:function(e){return d(e,function(){return null},null)},toArray:function(e){var t=[];return v(e,t,null,function(e){return e}),t},only:function(e){if(!u(e))throw r(Error(143));return e}},createRef:function(){return{current:null}},Component:o,PureComponent:a,createContext:function(e,t){return void 0===t&&(t=null),e={$$typeof:k,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:S,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:A,render:e}},lazy:function(e){return{$$typeof:I,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:D,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return _().useCallback(e,t)},useContext:function(e,t){return _().useContext(e,t)},useEffect:function(e,t){return _().useEffect(e,t)},useImperativeHandle:function(e,t,n){return _().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return _().useLayoutEffect(e,t)},useMemo:function(e,t){return _().useMemo(e,t)},useReducer:function(e,t,n){return _().useReducer(e,t,n)},useRef:function(e){return _().useRef(e)},useState:function(e){return _().useState(e)},Fragment:T,Profiler:C,StrictMode:O,Suspense:P,unstable_SuspenseList:R,createElement:s,cloneElement:function(e,t,n){if(null===e||void 0===e)throw r(Error(267),e);var o=void 0,i=b({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(s=t.ref,l=B.current),void 0!==t.key&&(a=""+t.key);var u=void 0;e.type&&e.type.defaultProps&&(u=e.type.defaultProps);for(o in t)U.call(t,o)&&!V.hasOwnProperty(o)&&(i[o]=void 0===t[o]&&void 0!==u?u[o]:t[o])}if(1===(o=arguments.length-2))i.children=n;else if(1<o){u=Array(o);for(var c=0;c<o;c++)u[c]=arguments[c+2];i.children=u}return{$$typeof:w,type:e.type,key:a,ref:s,props:i,_owner:l}}
1,createFactory:function(e){var t=s.bind(null,e);return t.type=e,t},isValidElement:u,version:"16.9.0",unstable_withSuspenseConfig:function(e,t){var n=N.suspense;N.suspense=void 0===t?null:t;try{e()}finally{N.suspense=n}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:F,ReactCurrentBatchConfig:N,ReactCurrentOwner:B,IsSomeRendererActing:{current:!1},assign:b}},W={default:G},Z=W&&G||W;e.exports=Z.default||Z},function(e,t,n){"use strict";function r(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}function o(){if(so)for(var e in lo){var t=lo[e],n=so.indexOf(e);if(!(-1<n))throw r(Error(96),e);if(!uo[n]){if(!t.extractEvents)throw r(Error(97),e);uo[n]=t,n=t.eventTypes;for(var o in n){var a=void 0,s=n[o],l=t,u=o;if(co.hasOwnProperty(u))throw r(Error(99),u);co[u]=s;var c=s.phasedRegistrationNames;if(c){for(a in c)c.hasOwnProperty(a)&&i(c[a],l,u);a=!0}else s.registrationName?(i(s.registrationName,l,u),a=!0):a=!1;if(!a)throw r(Error(98),o,e)}}}}function i(e,t,n){if(po[e])throw r(Error(100),e);po[e]=t,fo[e]=t.eventTypes[n].dependencies}function a(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}function s(e,t,n,r,o,i,s,l,u){ho=!1,mo=null,a.apply(vo,arguments)}function l(e,t,n,o,i,a,l,u,c){if(s.apply(this,arguments),ho){if(!ho)throw r(Error(198));var p=mo;ho=!1,mo=null,yo||(yo=!0,go=p)}}function u(e,t,n){var r=e.type||"unknown-event";e.currentTarget=xo(n),l(r,t,void 0,e),e.currentTarget=null}function c(e,t){if(null==t)throw r(Error(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function p(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function f(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)u(e,t[r],n[r]);else t&&u(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function h(e){if(null!==e&&(wo=c(wo,e)),e=wo,wo=null,e){if(p(e,f),wo)throw r(Error(95));if(yo)throw e=go,yo=!1,go=null,e}}function d(e,t){var n=e.stateNode;if(!n)return null;var o=_o(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(e=e.type,o=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw r(Error(231),t,typeof n);return n}function m(e){if(e[Oo])return e[Oo];for(;!e[Oo];){if(!e.parentNode)return null;e=e.parentNode}return e=e[Oo],5===e.tag||6===e.tag?e:null}function y(e){return e=e[Oo],!e||5!==e.tag&&6!==e.tag?null:e}function g(e){if(5===e.tag||6===e.tag)return e.stateNode;throw r(Error(33))}function v(e){return e[Co]||null}function _(e){do{e=e.return}while(e&&5!==e.tag);return e||null}
1function b(e,t,n){(t=d(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=c(n._dispatchListeners,t),n._dispatchInstances=c(n._dispatchInstances,e))}function x(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=_(t);for(t=n.length;0<t--;)b(n[t],"captured",e);for(t=0;t<n.length;t++)b(n[t],"bubbled",e)}}function w(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=d(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=c(n._dispatchListeners,t),n._dispatchInstances=c(n._dispatchInstances,e))}function E(e){e&&e.dispatchConfig.registrationName&&w(e._targetInst,null,e)}function T(e){p(e,x)}function O(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function C(e){if(Ao[e])return Ao[e];if(!ko[e])return e;var t,n=ko[e];for(t in n)if(n.hasOwnProperty(t)&&t in Po)return Ao[e]=n[t];return e}function S(){if(Fo)return Fo;var e,t,n=zo,r=n.length,o="value"in jo?jo.value:jo.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Fo=o.slice(e,1<t?1-t:void 0)}function k(){return!0}function A(){return!1}function P(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var o in e)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?k:A,this.isPropagationStopped=A,this}function R(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function D(e){if(!(e instanceof this))throw r(Error(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function I(e){e.eventPool=[],e.getPooled=R,e.release=D}function M(e,t){switch(e){case"keyup":return-1!==Uo.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function L(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}function j(e,t){switch(e){case"compositionend":return L(t);case"keypress":return 32!==t.which?null:(Ko=!0,Wo);case"textInput":return e=t.data,e===Wo&&Ko?null:e;default:return null}}function z(e,t){if(Xo)return"compositionend"===e||!Vo&&M(e,t)?(e=S(),Fo=zo=jo=null,Xo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Go&&"ko"!==t.locale?null:t.data;default:return null}}function F(e){if(e=bo(e)){if("function"!==typeof Jo)throw r(Error(280));var t=_o(e.stateNode);Jo(e.stateNode,e.type,t)}}function N(e){$o?Qo?Qo.push(e):Qo=[e]:$o=e}function B(){if($o){var e=$o,t=Qo;if(Qo=$o=null,F(e),t)for(e=0;e<t.length;e++)F(t[e])}}function U(e,t){return e(t)}function V(e,t,n,r){return e(t,n,r)}function H(){}function q(){null===$o&&null===Qo||(H(),B())}function G(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ni[e.type]:"textarea"===t}function W(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
1odeType?e.parentNode:e}function Z(e){if(!So)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t="function"===typeof t[e]),t}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Y(e){e._valueTracker||(e._valueTracker=X(e))}function J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $(e){return null===e||"object"!==typeof e?null:(e=_i&&e[_i]||e["@@iterator"],"function"===typeof e?e:null)}function Q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case li:return"Fragment";case si:return"Portal";case ci:return"Profiler";case ui:return"StrictMode";case mi:return"Suspense";case yi:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case fi:return"Context.Consumer";case pi:return"Context.Provider";case di:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case gi:return Q(e.type);case vi:if(e=1===e._status?e._result:null)return Q(e)}return null}function ee(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=Q(e.type);n=null,r&&(n=Q(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(oi,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function te(e){return!!xi.call(Ei,e)||!xi.call(wi,e)&&(bi.test(e)?Ei[e]=!0:(wi[e]=!0,!1))}function ne(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}function re(e,t,n,r){if(null===t||"undefined"===typeof t||ne(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function oe(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}function ie(e){return e[1].toUpperCase()}function ae(e,t,n,r){var o=Ti.hasOwnProperty(t)?Ti[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(re(t,n,o,r)&&(n=null),r||null===o?te(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(o=o.type,n=3===o||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function se(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function le(e,t){var n=t.checked;return io({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ue(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=se(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ce(e,t){null!=(t=t.checked)&&ae(e,"checked",t,!1)}function pe(e,t){ce(e,t);var n=se(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?he(e,t.type,n):t.hasOwnProperty("defaultValue")&&he(e,t.type,se(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function fe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,""!==n&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function he(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function de(e,t,n){return e=P.getPooled(Ci.change,e,t,n),e.type="change",N(n),T(e),e}function me(e){h(e)}function ye(e){if(J(g(e)))return e}function ge(e,t){if("change"===e)return t}function ve(){Si&&(Si.detachEvent("onpropertychange",_e),ki=Si=null)}function _e(e){if("value"===e.propertyName&&ye(ki))if(e=de(ki,e,W(e)),ti)h(e);else{ti=!0;try{U(me,e)}finally{ti=!1,q()}}}function be(e,t,n){"focus"===e?(ve(),Si=t,ki=n,Si.attachEvent("onpropertychange",_e)):"blur"===e&&ve()}function xe(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return ye(ki)}function we(e,t){if("click"===e)return ye(t)}function Ee(e,t){if("input"===e||"change"===e)return ye(t)}function Te(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Di[e])&&!!t[e]}function Oe(){return Te}function Ce(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t}function Se(e,t){if(Ce(e,t))return!0;
1if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Ui.call(t,n[r])||!Ce(e[n[r]],t[n[r]]))return!1;return!0}function ke(e,t){return{responder:e,props:t}}function Ae(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!==(2&t.effectTag))return 1;for(;t.return;)if(t=t.return,0!==(2&t.effectTag))return 1}return 3===t.tag?2:3}function Pe(e){if(2!==Ae(e))throw r(Error(188))}function Re(e){var t=e.alternate;if(!t){if(3===(t=Ae(e)))throw r(Error(188));return 1===t?null:e}for(var n=e,o=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){n=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Pe(i),e;if(a===o)return Pe(i),t;a=a.sibling}throw r(Error(188))}if(n.return!==o.return)n=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,o=a;break}if(l===o){s=!0,o=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,o=i;break}if(l===o){s=!0,o=a,n=i;break}l=l.sibling}if(!s)throw r(Error(189))}}if(n.alternate!==o)throw r(Error(190))}if(3!==n.tag)throw r(Error(188));return n.stateNode.current===n?e:t}function De(e){if(!(e=Re(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ie(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Me(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=m(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=W(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=null,s=0;s<uo.length;s++){var l=uo[s];l&&(l=l.extractEvents(r,t,i,o))&&(a=c(a,l))}h(a)}}function Le(e,t){je(t,e,!1)}function je(e,t,n){switch(ua(t)){case 0:var r=ze.bind(null,t,1);break;case 1:r=Fe.bind(null,t,1);break;default:r=Ne.bind(null,t,1)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function ze(e,t,n){ti||H();var r=Ne,o=ti;ti=!0;try{V(r,e,t,n)}finally{(ti=o)||q()}}function Fe(e,t,n){Ne(e,t,n)}function Ne(e,t,n){if(pa){if(t=W(n),t=m(t),null===t||"number"!==typeof t.tag||2===Ae(t)||(t=null),ca.length){var r=ca.pop();r.topLevelType=e,r.nativeEvent=n,r.targetInst=t,e=r}else e={topLevelType:e,nativeEvent:n,targetInst:t,ancestors:[]};try{if(n=e,ti)Me(n,void 0);else{ti=!0;try{ei(Me,n,void 0)}finally{ti=!1,q()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ca.length&&ca.push(e)}}}function Be(e){var t=fa.get(e);return void 0===t&&(t=new Set,fa.set(e,t)),t}function Ue(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ve(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function He(e,t){var n=Ve(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ve(n)}}function qe(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?qe(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Ge(){for(var e=window,t=Ue();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;e=t.contentWindow,t=Ue(e.document)}return t}function We(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Ze(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return va||null==ma||ma!==Ue(n)?null:(n=ma,"selectionStart"in n&&We(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
1sNode:n.focusNode,focusOffset:n.focusOffset}),ga&&Se(ga,n)?null:(ga=n,e=P.getPooled(da.select,ya,e,t),e.type="select",e.target=ma,T(e),e))}function Ke(e){var t="";return oo.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}function Xe(e,t){return e=io({children:void 0},t),(t=Ke(t.children))&&(e.children=t),e}function Ye(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+se(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Je(e,t){if(null!=t.dangerouslySetInnerHTML)throw r(Error(91));return io({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function $e(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw r(Error(92));if(Array.isArray(t)){if(!(1>=t.length))throw r(Error(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:se(n)}}function Qe(e,t){var n=se(t.value),r=se(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function et(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function tt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function nt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?tt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function rt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function ot(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||Ea.hasOwnProperty(e)&&Ea[e]?(""+t).trim():t+"px"}function it(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ot(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}function at(e,t){if(t){if(Oa[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw r(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw r(Error(60));if(!("object"===typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw r(Error(61))}if(null!=t.style&&"object"!==typeof t.style)throw r(Error(62),"")}}function st(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function lt(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=Be(e);t=fo[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.has(o)){switch(o){case"scroll":je(e,"scroll",!0);break;case"focus":case"blur":je(e,"focus",!0),je(e,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":Z(o)&&je(e,o,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Lo.indexOf(o)&&Le(o,e)}n.add(o)}}}function ut(){}function ct(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function pt(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function ft(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function ht(e){0>Ra||(e.current=Pa[Ra],Pa[Ra]=null,Ra--)}function dt(e,t){Ra++,Pa[Ra]=e.current,e.current=t}function mt(e,t){var n=e.type.contextTypes;if(!n)return Da;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gt(e){ht(Ma,e),ht(Ia,e)}function vt(e){ht(Ma,e),ht(Ia,e)}function _t(e,t,n){if(Ia.current!==Da)throw r(Error(168));dt(Ia,t,e),dt(Ma,n,e)}function bt(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!==typeof o.getChildContext)return n;o=o.getChildContext();for(var i in o)if(!(i in e))throw r(Error(108),Q(t)||"Unknown",i);return io({},n,o)}function xt(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Da,La=Ia.current,dt(Ia,t,e),dt(Ma,Ma.current,e),!0}function wt(e,t,n){var o=e.stateNode;if(!o)throw r(Error(169));n?(t=bt(e,t,La),o.__reactInternalMemoizedMergedChildContext=t,ht(Ma,e),ht(Ia,e),dt(Ia,t,e)):ht(Ma,e),dt(Ma,n,e)}
1function Et(){switch(Va()){case Ha:return 99;case qa:return 98;case Ga:return 97;case Wa:return 96;case Za:return 95;default:throw r(Error(332))}}function Tt(e){switch(e){case 99:return Ha;case 98:return qa;case 97:return Ga;case 96:return Wa;case 95:return Za;default:throw r(Error(332))}}function Ot(e,t){return e=Tt(e),ja(e,t)}function Ct(e,t,n){return e=Tt(e),za(e,t,n)}function St(e){return null===Ya?(Ya=[e],Ja=za(Ha,At)):Ya.push(e),Ka}function kt(){null!==Ja&&Fa(Ja),At()}function At(){if(!$a&&null!==Ya){$a=!0;var e=0;try{var t=Ya;Ot(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Ya=null}catch(t){throw null!==Ya&&(Ya=Ya.slice(e+1)),za(Ha,kt),t}finally{$a=!1}}}function Pt(e,t){return 1073741823===t?99:1===t?95:(e=10*(1073741821-t)-10*(1073741821-e),0>=e?99:250>=e?98:5250>=e?97:95)}function Rt(e,t){if(e&&e.defaultProps){t=io({},t),e=e.defaultProps;for(var n in e)void 0===t[n]&&(t[n]=e[n])}return t}function Dt(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,t=e._ctor,t=t(),t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}function It(){os=rs=ns=null}function Mt(e,t){var n=e.type._context;dt(ts,n._currentValue,e),n._currentValue=t}function Lt(e){var t=ts.current;ht(ts,e),e.type._context._currentValue=t}function jt(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function zt(e,t){ns=e,os=rs=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Xs=!0),e.firstContext=null)}function Ft(e,t){if(os!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(os=e,t=1073741823),t={context:e,observedBits:t,next:null},null===rs){if(null===ns)throw r(Error(308));rs=t,ns.dependencies={expirationTime:0,firstContext:t,responders:null}}else rs=rs.next=t;return e._currentValue}function Nt(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Bt(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ut(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Vt(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Ht(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=Nt(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=Nt(e.memoizedState),o=n.updateQueue=Nt(n.memoizedState)):r=e.updateQueue=Bt(o):null===o&&(o=n.updateQueue=Bt(r));null===o||r===o?Vt(r,t):null===r.lastUpdate||null===o.lastUpdate?(Vt(r,t),Vt(o,t)):(Vt(r,t),o.lastUpdate=t)}function qt(e,t){var n=e.updateQueue;n=null===n?e.updateQueue=Nt(e.memoizedState):Gt(e,n),null===n.lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Gt(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Bt(t)),t}function Wt(e,t,n,r,o,i){switch(n.tag){case 1:return e=n.payload,"function"===typeof e?e.call(i,r,o):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(e=n.payload,null===(o="function"===typeof e?e.call(i,r,o):e)||void 0===o)break;return io({},r,o);case 2:is=!0}return r}function Zt(e,t,n,r,o){is=!1,t=Gt(e,t);for(var i=t.baseState,a=null,s=0,l=t.firstUpdate,u=i;null!==l;){var c=l.expirationTime;c<o?(null===a&&(a=l,i=u),s<c&&(s=c)):(xr(c,l.suspenseConfig),u=Wt(e,t,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var p=l.expirationTime;p<o?(null===c&&(c=l,null===a&&(i=u)),s<p&&(s=p)):(u=Wt(e,t,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.last
1CapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(i=u),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function Kt(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Xt(t.firstEffect,n),t.firstEffect=t.lastEffect=null,Xt(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function Xt(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var o=t;if("function"!==typeof n)throw r(Error(191),n);n.call(o)}e=e.nextEffect}}function Yt(e,t,n,r){t=e.memoizedState,n=n(r,t),n=null===n||void 0===n?t:io({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}function Jt(e,t,n,r,o,i,a){return e=e.stateNode,"function"===typeof e.shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Se(n,r)||!Se(o,i))}function $t(e,t,n){var r=!1,o=Da,i=t.contextType;return"object"===typeof i&&null!==i?i=Ft(i):(o=yt(t)?La:Ia.current,r=t.contextTypes,i=(r=null!==r&&void 0!==r)?mt(e,o):Da),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ls,e.stateNode=t,t._reactInternalFiber=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Qt(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ls.enqueueReplaceState(t,t.state,null)}function en(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ss;var i=t.contextType;"object"===typeof i&&null!==i?o.context=Ft(i):(i=yt(t)?La:Ia.current,o.context=mt(e,i)),i=e.updateQueue,null!==i&&(Zt(e,i,n,o,r),o.state=e.memoizedState),i=t.getDerivedStateFromProps,"function"===typeof i&&(Yt(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ls.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(Zt(e,i,n,o,r),o.state=e.memoizedState)),"function"===typeof o.componentDidMount&&(e.effectTag|=4)}function tn(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){n=n._owner;var o=void 0;if(n){if(1!==n.tag)throw r(Error(309));o=n.stateNode}if(!o)throw r(Error(147),e);var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===ss&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw r(Error(284));if(!n._owner)throw r(Error(290),e)}return e}function nn(e,t){if("textarea"!==e.type)throw r(Error(31),"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function rn(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t,n){return e=zr(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index,r<n?(t.effectTag=2,n):r):(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?(t=Br(n,e.mode,r),t.return=e,t):(t=i(t,n,r),t.return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?(r=i(t,n.props,r),r.ref=tn(e,t,n),r.return=e,r):(r=Fr(n.type,n.key,n.props,null,e.mode,r),r.ref=tn(e,t,n
1),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ur(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[],r),t.return=e,t)}function p(e,t,n,r,o){return null===t||7!==t.tag?(t=Nr(n,e.mode,r,o),t.return=e,t):(t=i(t,n,r),t.return=e,t)}function f(e,t,n){if("string"===typeof t||"number"===typeof t)return t=Br(""+t,e.mode,n),t.return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ai:return n=Fr(t.type,t.key,t.props,null,e.mode,n),n.ref=tn(e,null,t),n.return=e,n;case si:return t=Ur(t,e.mode,n),t.return=e,t}if(us(t)||$(t))return t=Nr(t,e.mode,n,null),t.return=e,t;nn(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ai:return n.key===o?n.type===li?p(e,t,n.props.children,r,o):u(e,t,n,r):null;case si:return n.key===o?c(e,t,n,r):null}if(us(n)||$(n))return null!==o?null:p(e,t,n,r,null);nn(e,n)}return null}function d(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return e=e.get(n)||null,l(t,e,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ai:return e=e.get(null===r.key?n:r.key)||null,r.type===li?p(t,e,r.props.children,o,r.key):u(t,e,r,o);case si:return e=e.get(null===r.key?n:r.key)||null,c(t,e,r,o)}if(us(r)||$(r))return e=e.get(n)||null,p(t,e,r,o,null);nn(t,r)}return null}function m(r,i,s,l){for(var u=null,c=null,p=i,m=i=0,y=null;null!==p&&m<s.length;m++){p.index>m?(y=p,p=null):y=p.sibling;var g=h(r,p,s[m],l);if(null===g){null===p&&(p=y);break}e&&p&&null===g.alternate&&t(r,p),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g,p=y}if(m===s.length)return n(r,p),u;if(null===p){for(;m<s.length;m++)null!==(p=f(r,s[m],l))&&(i=a(p,i,m),null===c?u=p:c.sibling=p,c=p);return u}for(p=o(r,p);m<s.length;m++)null!==(y=d(p,r,m,s[m],l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),i=a(y,i,m),null===c?u=y:c.sibling=y,c=y);return e&&p.forEach(function(e){return t(r,e)}),u}function y(i,s,l,u){var c=$(l);if("function"!==typeof c)throw r(Error(150));if(null==(l=c.call(l)))throw r(Error(151));for(var p=c=null,m=s,y=s=0,g=null,v=l.next();null!==m&&!v.done;y++,v=l.next()){m.index>y?(g=m,m=null):g=m.sibling;var _=h(i,m,v.value,u);if(null===_){null===m&&(m=g);break}e&&m&&null===_.alternate&&t(i,m),s=a(_,s,y),null===p?c=_:p.sibling=_,p=_,m=g}if(v.done)return n(i,m),c;if(null===m){for(;!v.done;y++,v=l.next())null!==(v=f(i,v.value,u))&&(s=a(v,s,y),null===p?c=v:p.sibling=v,p=v);return c}for(m=o(i,m);!v.done;y++,v=l.next())null!==(v=d(m,i,y,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?y:v.key),s=a(v,s,y),null===p?c=v:p.sibling=v,p=v);return e&&m.forEach(function(e){return t(i,e)}),c}return function(e,o,a,l){var u="object"===typeof a&&null!==a&&a.type===li&&null===a.key;u&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case ai:e:{for(c=a.key,u=o;null!==u;){if(u.key===c){if(7===u.tag?a.type===li:u.elementType===a.type){n(e,u.sibling),o=i(u,a.type===li?a.props.children:a.props,l),o.ref=tn(e,u,a),o.return=e,e=o;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===li?(o=Nr(a.props.children,e.mode,l,a.key),o.return=e,e=o):(l=Fr(a.type,a.key,a.props,null,e.mode,l),l.ref=tn(e,o,a),l.return=e,e=l)}return s(e);case si:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(e,o.sibling),o=i(o,a.children||[],l),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=Ur(a,e.mode,l),o.return=e,e=o}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==o&&6===o.tag?(n(e,o.sibling),o=i(o,a,l),o.return=e,e=o):(n(e,o),o=Br(a,e.mode,l),o.return=e,e=o),s(e);if(us(a))return m(e,o,a,l);if($(a))return y(e,o,a,l);if(c&&nn(e,a),"undefined"===typeof a&&!u)switch(e.tag){case 1:case 0:throw e=e.type,r(Error(152),e.displayName||e.name||"Component")}return n(e,o)}}function on(e){if(e===fs)throw r(Error(174));return e}function an(e,t){dt(ms,t,e),dt(ds,e,e),dt(hs,fs,e);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nt(null,"");break;default:n=8===n?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=nt(t,n)}ht(hs,e),dt(hs,t,e)}function sn(e){ht(hs,e),ht(ds,e),ht(ms,e)}function ln(e){on(ms.current);var t=on(hs.current),n=nt(t,e.type);t!==n&&(dt(ds,e,e),dt(hs,n,e))}function un(e){ds.current===e&&(ht(hs,e),ht(ds,e))}function cn(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function pn(){throw r(Error(321))}function fn(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ce(e[n],t[n]))return!1;return!0}function hn(e,t,n,o,i,a){if(As=a,Ps=t,Ds=null!==e?e.memoizedState:null,ks.current=null===Ds?Hs:qs,t=n(o,i),Ns){do{Ns=!1,Us+=1,Ds=null!==e?e.memoizedState:null,Ls=Is,zs=Ms=Rs=null,ks.current=qs,t=n(o,i)}while(Ns);Bs=null,Us=0}if(ks.current=Vs,e=Ps,e.memoizedState=Is,e.expirationTime=js,e.updateQueue=zs,e.effectTag|=Fs,e=null!==Rs&&null!==Rs.next,As=0,Ls=Ms=Is=Ds=Rs=Ps=null,js=0,zs=null,Fs=0,e)throw r(Error(300));return t}function dn(){ks.current=Vs,As=0,Ls=Ms=Is=Ds=Rs=Ps=null,js=0,zs=null,Fs=0,Ns=!1,Bs=null,Us=0}function mn(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Ms?Is=Ms=e:Ms=Ms.next=e,Ms}function yn(){if(null!==Ls)Ms=Ls,Ls=Ms.next,Rs=Ds,Ds=null!==Rs?Rs.next:null;else{if(null===Ds)throw r(Error(310));Rs=Ds;var e={memoizedState:Rs.memoizedState,baseState:Rs.baseState,queue:Rs.queue,baseUpdate:Rs.baseUpdate,next:null};Ms=null===Ms?Is=e:Ms.next=e,Ds=Rs.next}return Ms}function gn(e,t){return"function"===typeof t?t(e):t}function vn(e){var t=yn(),n=t.queue;if(null===n)throw r(Error(311));if(n.lastRenderedReducer=e,0<Us){var o=n.dispatch;if(null!==Bs){var i=Bs.get(n);if(void 0!==i){Bs.delete(n);var a=t.memoizedState;do{a=e(a,i.action),i=i.next}while(null!==i);return Ce(a,t.memoizedState)||(Xs=!0),t.memoizedState=a,t.baseUpdate===n.last&&(t.baseState=a),n.lastRenderedState=a,[a,o]}}return[t.memoizedState,o]}o=n.last;var s=t.baseUpdate;if(a=t.baseState,null!==s?(null!==o&&(o.next=null),o=s.next):o=null!==o?o.next:null,null!==o){var l=i=null,u=o,c=!1;do{var p=u.expirationTime;p<As?(c||(c=!0,l=s,i=a),p>js&&(js=p)):(xr(p,u.suspenseConfig),a=u.eagerReducer===e?u.eagerState:e(a,u.action)),s=u,u=u.next}while(null!==u&&u!==o);c||(l=s,i=a),Ce(a,t.memoizedState)||(Xs=!0),t.memoizedState=a,t.baseUpdate=l,t.baseState=i,n.lastRenderedState=a}return[t.memoizedState,n.dispatch]}function _n(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===zs?(zs={lastEffect:null},zs.lastEffect=e.next=e):(t=zs.lastEffect,null===t?zs.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,zs.lastEffect=e)),e}function bn(e,t,n,r){var o=mn();Fs|=e,o.memoizedState=_n(t,n,void 0,void 0===r?null:r)}function xn(e,t,n,r){var o=yn();r=void 0===r?null:r;var i=void 0;if(null!==Rs){var a=Rs.memoizedState;if(i=a.destroy,null!==r&&fn(r,a.deps))return void _n(bs,n,i,r)}Fs|=e,o.memoizedState=_n(t,n,i,r)}function wn(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function En(){}
1function Tn(e,t,n){if(!(25>Us))throw r(Error(301));var o=e.alternate;if(e===Ps||null!==o&&o===Ps)if(Ns=!0,e={expirationTime:As,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===Bs&&(Bs=new Map),void 0===(n=Bs.get(t)))Bs.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var i=sr(),a=as.suspense;i=lr(i,e,a),a={expirationTime:i,suspenseConfig:a,action:n,eagerReducer:null,eagerState:null,next:null};var s=t.last;if(null===s)a.next=a;else{var l=s.next;null!==l&&(a.next=l),s.next=a}if(t.last=a,0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var u=t.lastRenderedState,c=o(u,n);if(a.eagerReducer=o,a.eagerState=c,Ce(c,u))return}catch(e){}ur(e,i)}}function On(e,t){var n=Mr(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Cn(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Sn(e){if(Zs){var t=Ws;if(t){var n=t;if(!Cn(e,t)){if(!(t=ft(n.nextSibling))||!Cn(e,t))return e.effectTag|=2,Zs=!1,void(Gs=e);On(Gs,n)}Gs=e,Ws=ft(t.firstChild)}else e.effectTag|=2,Zs=!1,Gs=e}}function kn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;Gs=e}function An(e){if(e!==Gs)return!1;if(!Zs)return kn(e),Zs=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!pt(t,e.memoizedProps))for(t=Ws;t;)On(e,t),t=ft(t.nextSibling);return kn(e),Ws=Gs?ft(e.stateNode.nextSibling):null,!0}function Pn(){Ws=Gs=null,Zs=!1}function Rn(e,t,n,r){t.child=null===e?ps(t,null,n,r):cs(t,e.child,n,r)}function Dn(e,t,n,r,o){n=n.render;var i=t.ref;return zt(t,o),r=hn(e,t,n,r,i,o),null===e||Xs?(t.effectTag|=1,Rn(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Hn(e,t,o))}function In(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||Lr(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?(e=Fr(n.type,null,r,null,t.mode,i),e.ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Mn(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,n=n.compare,(n=null!==n?n:Se)(o,r)&&e.ref===t.ref)?Hn(e,t,i):(t.effectTag|=1,e=zr(a,r),e.ref=t.ref,e.return=t,t.child=e)}function Mn(e,t,n,r,o,i){return null!==e&&Se(e.memoizedProps,r)&&e.ref===t.ref&&(Xs=!1,o<i)?Hn(e,t,i):jn(e,t,n,r,i)}function Ln(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function jn(e,t,n,r,o){var i=yt(n)?La:Ia.current;return i=mt(t,i),zt(t,o),n=hn(e,t,n,r,i,o),null===e||Xs?(t.effectTag|=1,Rn(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Hn(e,t,o))}function zn(e,t,n,r,o){if(yt(n)){var i=!0;xt(t)}else i=!1;if(zt(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),$t(t,n,r,o),en(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=Ft(u):(u=yt(n)?La:Ia.current,u=mt(t,u));var c=n.getDerivedStateFromProps,p="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;p||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Qt(t,a,r,u),is=!1;var f=t.memoizedState;l=a.state=f;var h=t.updateQueue;null!==h&&(Zt(t,h,r,a,o),l=t.memoizedState),s!==r||f!==l||Ma.current||is?("function"===typeof c&&(Yt(t,n,c,r),l=t.memoizedState),(s=is||Jt(t,n,s,r,f,l,u))?(p||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.effectTag|=4)):("function"===typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.
1context=u,r=s):("function"===typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:Rt(t.type,s),l=a.context,u=n.contextType,"object"===typeof u&&null!==u?u=Ft(u):(u=yt(n)?La:Ia.current,u=mt(t,u)),c=n.getDerivedStateFromProps,(p="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Qt(t,a,r,u),is=!1,l=t.memoizedState,f=a.state=l,h=t.updateQueue,null!==h&&(Zt(t,h,r,a,o),f=t.memoizedState),s!==r||l!==f||Ma.current||is?("function"===typeof c&&(Yt(t,n,c,r),f=t.memoizedState),(c=is||Jt(t,n,s,r,l,f,u))?(p||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,u)),"function"===typeof a.componentDidUpdate&&(t.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=u,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Fn(e,t,n,r,i,o)}function Fn(e,t,n,r,o,i){Ln(e,t);var a=0!==(64&t.effectTag);if(!r&&!a)return o&&wt(t,n,!1),Hn(e,t,i);r=t.stateNode,Ks.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=cs(t,e.child,null,i),t.child=cs(t,null,s,i)):Rn(e,t,s,i),t.memoizedState=r.state,o&&wt(t,n,!0),t.child}function Nn(e){var t=e.stateNode;t.pendingContext?_t(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_t(e,t.context,!1),an(e,t.containerInfo)}function Bn(e,t,n){var r,o=t.mode,i=t.pendingProps,a=_s.current,s=null,l=!1;if((r=0!==(64&t.effectTag))||(r=0!==(a&vs)&&(null===e||null!==e.memoizedState)),r?(s=Ys,l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=gs),a&=ys,dt(_s,a,t),null===e)if(l){if(i=i.fallback,e=Nr(null,o,0,null),e.return=t,0===(2&t.mode))for(l=null!==t.memoizedState?t.child.child:t.child,e.child=l;null!==l;)l.return=e,l=l.sibling;n=Nr(i,o,n,null),n.return=t,e.sibling=n,o=e}else o=n=ps(t,null,i.children,n);else{if(null!==e.memoizedState)if(a=e.child,o=a.sibling,l){if(i=i.fallback,n=zr(a,a.pendingProps),n.return=t,0===(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==a.child)for(n.child=l;null!==l;)l.return=n,l=l.sibling;i=zr(o,i,o.expirationTime),i.return=t,n.sibling=i,o=n,n.childExpirationTime=0,n=i}else o=n=cs(t,a.child,i.children,n);else if(a=e.child,l){if(l=i.fallback,i=Nr(null,o,0,null),i.return=t,i.child=a,null!==a&&(a.return=i),0===(2&t.mode))for(a=null!==t.memoizedState?t.child.child:t.child,i.child=a;null!==a;)a.return=i,a=a.sibling;n=Nr(l,o,n,null),n.return=t,i.sibling=n,n.effectTag|=2,o=i,i.childExpirationTime=0}else n=o=cs(t,a,i.children,n);t.stateNode=e.stateNode}return t.memoizedState=s,t.child=o,n}function Un(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,last:r,tail:n,tailExpiration:0,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.last=r,i.tail=n,i.tailExpiration=0,i.tailMode=o)}function Vn(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Rn(e,t,r.children,n),0!==((r=_s.current)&vs))r=r&ys|vs,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag){if(null!==e.memoizedState){e.expirationTime<n&&(e.expirationTime=n);var a=e.alternate;null!==a&&a.expirationTime<n&&(a.expirationTime=n),jt(e.return,n)}}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=ys}if(dt(_s,r,t),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)r=n.alternate,null!==r&&null===cn(r)&&(o=n),n=n.sibling;n=o,null===n?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Un(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(r=o.alternate)&&null===cn(r)){t.child=o;break}r=o.sibling,o.sibling=n,n=o,o=r}Un(t,!0,n,null,i);break;case"together":Un(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hn(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw r(Error(153));
1if(null!==t.child){for(e=t.child,n=zr(e,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=zr(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function qn(e){e.effectTag|=4}function Gn(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wn(e){switch(e.tag){case 1:yt(e.type)&>(e);var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:if(sn(e),vt(e),0!==(64&(t=e.effectTag)))throw r(Error(285));return e.effectTag=-2049&t|64,e;case 5:return un(e),null;case 13:return ht(_s,e),t=e.effectTag,2048&t?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 19:return ht(_s,e),null;case 4:return sn(e),null;case 10:return Lt(e),null;default:return null}}function Zn(e,t){return{value:e,source:t,stack:ee(t)}}function Kn(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ee(n)),null!==n&&Q(n.type),t=t.value,null!==e&&1===e.tag&&Q(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function Xn(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ar(e,t)}}function Yn(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(t){Ar(e,t)}else t.current=null}function Jn(e,t,n){if(n=n.updateQueue,null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{if((r.tag&e)!==bs){var o=r.destroy;r.destroy=void 0,void 0!==o&&o()}(r.tag&t)!==bs&&(o=r.create,r.destroy=o()),r=r.next}while(r!==n)}}function $n(e,t){switch("function"===typeof Ul&&Ul(e),e.tag){case 0:case 11:case 14:case 15:var n=e.updateQueue;if(null!==n&&null!==(n=n.lastEffect)){var r=n.next;Ot(97<t?97:t,function(){var t=r;do{var n=t.destroy;if(void 0!==n){var o=e;try{n()}catch(e){Ar(o,e)}}t=t.next}while(t!==r)})}break;case 1:Yn(e),t=e.stateNode,"function"===typeof t.componentWillUnmount&&Xn(e,t);break;case 5:Yn(e);break;case 4:nr(e,t)}}function Qn(e,t){for(var n=e;;)if($n(n,t),null!==n.child&&4!==n.tag)n.child.return=n,n=n.child;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function er(e){return 5===e.tag||3===e.tag||4===e.tag}function tr(e){e:{for(var t=e.return;null!==t;){if(er(t)){var n=t;break e}t=t.return}throw r(Error(160))}switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:case 4:t=t.containerInfo,o=!0;break;default:throw r(Error(161))}16&n.effectTag&&(rt(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||er(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){var a=5===i.tag||6===i.tag;if(a||20===i.tag){var s=a?i.stateNode:i.stateNode.instance;if(n)if(o){a=t;var l=s;s=n,8===a.nodeType?a.parentNode.insertBefore(l,s):a.insertBefore(l,s)}else t.insertBefore(s,n);else o?(l=t,8===l.nodeType?(a=l.parentNode,a.insertBefore(s,l)):(a=l,a.appendChild(s)),null!==(l=l._reactRootContainer)&&void 0!==l||null!==a.onclick||(a.onclick=ut)):t.appendChild(s)}else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function nr(e,t){for(var n=e,o=!1,i=void 0,a=void 0;;){if(!o){o=n.return;e:for(;;){if(null===o)throw r(Error(160));switch(i=o.stateNode,o.tag){case 5:a=!1;break e;case 3:case 4:i=i.containerInfo,a=!0;break e}o=o.return}o=!0}if(5===n.tag||6===n.tag)if(Qn(n,t),a){var s=i,l=n.stateNode;8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)}else i.removeChild(n.stateNode);else if(20===n.tag)l=n.stateNode.instance,Qn(n,t),a?(s=i,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):i.removeChild(l);else if(4===n.tag){if(null!==n.child){i=n.stateNode.containerInfo,a=!0,n.child.return=n,n=n.child;continue}}else if($n(n,t),null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return,4===n.tag&&(o=!1)}n.sibling.return=n.return,n=n.sibling}}function rr(e,t){switch(t.tag){case 0:case 11:case 14:case 15:Jn(ws,Es,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps,i=null!==e?e.memoizedProps:o;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Co]=o,"input"===e&&"radio"===o.type&&null!=o.name&&ce(n,o),st(e,i),t=st(e,o),i=0;i<a.length;i+=2){var s=a[i],l=a[i+1];"style"===s?it(n,l):"dangerouslySetInnerHTML"===s?wa(n,l):"children"===s?rt(n,l):ae(n,s,l,t)}switch(e){case"input":pe(n,o);break;case"textarea":Qe(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,e=o.value,null!=e?Ye(n,!!o.multiple,e,!1):t!==!!o.multiple&&(null!=o.defaultValue?Ye(n,!!o.multiple,o.defaultValue,!0):Ye(n,!!o.multiple,o.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw r(Error(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t,null===t.memoizedState?o=!1:(o=!0,n=t.child,Tl=es()),null!==n)e:for(e=n;;){if(5===e.tag)a=e.stateNode,o?(a=a.style,"function"===typeof a.setProperty?a.setProperty("display","none","important"):a.display="none"):(a=e.stateNode,i=e.memoizedProps.style,i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,a.style.display=ot("display",i));else if(6===e.tag)e.stateNode.nodeValue=o?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState){a=e.child.sibling,a.return=e,e=a;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}or(t);break;case 19:or(t);break;case 17:case 20:break;default:throw r(Error(163))}}function or(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new tl),t.forEach(function(t){var r=Rr.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ir(e,t,n){n=Ut(n,null),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sl||(Sl=!0,kl=r),Kn(e,t)},n}function ar(e,t,n){n=Ut(n,null),n.tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;
1n.payload=function(){return Kn(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Al?Al=new Set([this]):Al.add(this),Kn(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function sr(){return(ml&(ll|ul))!==al?1073741821-(es()/10|0):0!==zl?zl:zl=1073741821-(es()/10|0)}function lr(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var o=Et();if(0===(4&t))return 99===o?1073741823:1073741822;if((ml&ll)!==al)return vl;if(null!==n)e=1073741821-25*(1+((1073741821-e+(0|n.timeoutMs||5e3)/10)/25|0));else switch(o){case 99:e=1073741823;break;case 98:e=1073741821-10*(1+((1073741821-e+15)/10|0));break;case 97:case 96:e=1073741821-25*(1+((1073741821-e+500)/25|0));break;case 95:e=1;break;default:throw r(Error(326))}return null!==yl&&e===vl&&--e,e}function ur(e,t){if(50<Ll)throw Ll=0,jl=null,r(Error(185));if(null!==(e=cr(e,t))){e.pingTime=0;var n=Et();if(1073741823===t)if((ml&sl)!==al&&(ml&(ll|ul))===al)for(var o=br(e,1073741823,!0);null!==o;)o=o(!0);else pr(e,99,1073741823),ml===al&&kt();else pr(e,n,t);(4&ml)===al||98!==n&&99!==n||(null===Ml?Ml=new Map([[e,t]]):(void 0===(n=Ml.get(e))||n>t)&&Ml.set(e,t))}}function cr(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(t>o.firstPendingTime&&(o.firstPendingTime=t),0===(e=o.lastPendingTime)||t<e)&&(o.lastPendingTime=t),o}function pr(e,t,n){if(e.callbackExpirationTime<n){var r=e.callbackNode;null!==r&&r!==Ka&&Fa(r),e.callbackExpirationTime=n,1073741823===n?e.callbackNode=St(fr.bind(null,e,br.bind(null,e,n))):(r=null,1!==n&&(r={timeout:10*(1073741821-n)-es()}),e.callbackNode=Ct(t,fr.bind(null,e,br.bind(null,e,n)),r))}}function fr(e,t,n){var r=e.callbackNode,o=null;try{return o=t(n),null!==o?fr.bind(null,e,o):null}finally{null===o&&r===e.callbackNode&&(e.callbackNode=null,e.callbackExpirationTime=0)}}function hr(){(ml&(1|ll|ul))===al&&(mr(),Cr())}function dr(e,t){var n=e.firstBatch;return!!(null!==n&&n._defer&&n._expirationTime>=t)&&(Ct(97,function(){return n._onComplete(),null}),!0)}function mr(){if(null!==Ml){var e=Ml;Ml=null,e.forEach(function(e,t){St(br.bind(null,t,e))}),kt()}}function yr(e,t){var n=ml;ml|=1;try{return e(t)}finally{(ml=n)===al&&kt()}}function gr(e,t,n,r){var o=ml;ml|=4;try{return Ot(98,e.bind(null,t,n,r))}finally{(ml=o)===al&&kt()}}function vr(e,t){var n=ml;ml&=-2,ml|=sl;try{return e(t)}finally{(ml=n)===al&&kt()}}function _r(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Aa(n)),null!==gl)for(n=gl.return;null!==n;){var r=n;switch(r.tag){case 1:var o=r.type.childContextTypes;null!==o&&void 0!==o&>(r);break;case 3:sn(r),vt(r);break;case 5:un(r);break;case 4:sn(r);break;case 13:case 19:ht(_s,r);break;case 10:Lt(r)}n=n.return}yl=e,gl=zr(e.current,null),vl=t,_l=cl,xl=bl=1073741823,wl=null,El=!1}function br(e,t,n){if((ml&(ll|ul))!==al)throw r(Error(327));if(e.firstPendingTime<t)return null;if(n&&e.finishedExpirationTime===t)return Tr.bind(null,e);if(Cr(),e!==yl||t!==vl)_r(e,t);else if(_l===hl)if(El)_r(e,t);else{var o=e.lastPendingTime;if(o<t)return br.bind(null,e,o)}if(null!==gl){o=ml,ml|=ll;var i=ol.current;if(null===i&&(i=Vs),ol.current=Vs,n){if(1073741823!==t){var a=sr();if(a<t)return ml=o,It(),ol.current=i,br.bind(null,e,a)}}else zl=0;for(;;)try{if(n)for(;null!==gl;)gl=wr(gl);else for(;null!==gl&&!Na();)gl=wr(gl);break}catch(n){if(It(),dn(),null===(a=gl)||null===a.return)throw _r(e,t),ml=o,n;e:{var s=e,l=a.return,u=a,c=n,p=vl;if(u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==c&&"object"===typeof c&&"function"===typeof c.then){var f=c,h=0!==(_s.current&gs);c=l;do{var d;if((d=13===c.tag)&&(null!==c.memoizedState?d=!1:(d=c.memoizedProps,d=void 0!==d.fallback&&(!0!==d.unstable_avoidThisFallback||!h))),d){if(l=c.updateQueue,null===l?(l=new Set,l.add(f),c.updateQueue=l):l.add(f),0===(2&c.mode)){c.effectTag|=64,u.effectTag&=-1957,1===u.tag&&(null===u.alternate?u.tag=17:(p=Ut(1073741823,null),p.tag=2,Ht(u,p))),u.expirationTime=1073741823;break e}u=s,s=p,h=u.pingCache,null===h?(h=u.pingCache=new nl,l=new Set,h.set(f,l)):void 0===(l=h.get(f))&&(l=new Set,h.set(f,l)),l.has(s)||(l.add(s),u=Pr.b
1ind(null,u,f,s),f.then(u,u)),c.effectTag|=2048,c.expirationTime=p;break e}c=c.return}while(null!==c);c=Error((Q(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ee(u))}_l!==dl&&(_l=pl),c=Zn(c,u),u=l;do{switch(u.tag){case 3:u.effectTag|=2048,u.expirationTime=p,p=ir(u,c,p),qt(u,p);break e;case 1:if(f=c,s=u.type,l=u.stateNode,0===(64&u.effectTag)&&("function"===typeof s.getDerivedStateFromError||null!==l&&"function"===typeof l.componentDidCatch&&(null===Al||!Al.has(l)))){u.effectTag|=2048,u.expirationTime=p,p=ar(u,f,p),qt(u,p);break e}}u=u.return}while(null!==u)}gl=Er(a)}if(ml=o,It(),ol.current=i,null!==gl)return br.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,dr(e,t))return null;switch(yl=null,_l){case cl:throw r(Error(328));case pl:return o=e.lastPendingTime,o<t?br.bind(null,e,o):n?Tr.bind(null,e):(_r(e,t),St(br.bind(null,e,t)),null);case fl:return 1073741823===bl&&!n&&10<(n=Tl+Ol-es())?El?(_r(e,t),br.bind(null,e,t)):(o=e.lastPendingTime)<t?br.bind(null,e,o):(e.timeoutHandle=ka(Tr.bind(null,e),n),null):Tr.bind(null,e);case hl:if(!n){if(El)return _r(e,t),br.bind(null,e,t);if((n=e.lastPendingTime)<t)return br.bind(null,e,n);if(1073741823!==xl?n=10*(1073741821-xl)-es():1073741823===bl?n=0:(n=10*(1073741821-bl)-5e3,o=es(),t=10*(1073741821-t)-o,n=o-n,0>n&&(n=0),n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*rl(n/1960))-n,t<n&&(n=t)),10<n)return e.timeoutHandle=ka(Tr.bind(null,e),n),null}return Tr.bind(null,e);case dl:return!n&&1073741823!==bl&&null!==wl&&(o=bl,i=wl,t=0|i.busyMinDurationMs,0>=t?t=0:(n=0|i.busyDelayMs,o=es()-(10*(1073741821-o)-(0|i.timeoutMs||5e3)),t=o<=n?0:n+t-o),10<t)?(e.timeoutHandle=ka(Tr.bind(null,e),t),null):Tr.bind(null,e);default:throw r(Error(329))}}function xr(e,t){e<bl&&1<e&&(bl=e),null!==t&&e<xl&&1<e&&(xl=e,wl=t)}function wr(e){var t=Nl(e.alternate,e,vl);return e.memoizedProps=e.pendingProps,null===t&&(t=Er(e)),il.current=null,t}function Er(e){gl=e;do{var t=gl.alternate;if(e=gl.return,0===(1024&gl.effectTag)){e:{var n=t;t=gl;var o=vl,i=t.pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:yt(t.type)&>(t);break;case 3:sn(t),vt(t),o=t.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==n&&null!==n.child||(An(t),t.effectTag&=-3),$s(t);break;case 5:un(t),o=on(ms.current);var a=t.type;if(null!==n&&null!=t.stateNode)Qs(n,t,a,i,o),n.ref!==t.ref&&(t.effectTag|=128);else if(i){var s=on(hs.current);if(An(t)){n=t,i=void 0,a=n.stateNode;var l=n.type,u=n.memoizedProps;switch(a[Oo]=n,a[Co]=u,l){case"iframe":case"object":case"embed":Le("load",a);break;case"video":case"audio":for(var c=0;c<Lo.length;c++)Le(Lo[c],a);break;case"source":Le("error",a);break;case"img":case"image":case"link":Le("error",a),Le("load",a);break;case"form":Le("reset",a),Le("submit",a);break;case"details":Le("toggle",a);break;
1case"input":ue(a,u),Le("invalid",a),lt(o,"onChange");break;case"select":a._wrapperState={wasMultiple:!!u.multiple},Le("invalid",a),lt(o,"onChange");break;case"textarea":$e(a,u),Le("invalid",a),lt(o,"onChange")}at(l,u),c=null;for(i in u)u.hasOwnProperty(i)&&(s=u[i],"children"===i?"string"===typeof s?a.textContent!==s&&(c=["children",s]):"number"===typeof s&&a.textContent!==""+s&&(c=["children",""+s]):po.hasOwnProperty(i)&&null!=s&<(o,i));switch(l){case"input":Y(a),fe(a,u,!0);break;case"textarea":Y(a),et(a,u);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(a.onclick=ut)}o=c,n.updateQueue=o,null!==o&&qn(t)}else{u=a,n=i,l=t,c=9===o.nodeType?o:o.ownerDocument,s===ba.html&&(s=tt(u)),s===ba.html?"script"===u?(u=c.createElement("div"),u.innerHTML="<script><\/script>",c=u.removeChild(u.firstChild)):"string"===typeof n.is?c=c.createElement(u,{is:n.is}):(c=c.createElement(u),"select"===u&&(u=c,n.multiple?u.multiple=!0:n.size&&(u.size=n.size))):c=c.createElementNS(s,u),u=c,u[Oo]=l,u[Co]=n,n=u,Js(n,t,!1,!1),l=n;var p=o,f=st(a,i);switch(a){case"iframe":case"object":case"embed":Le("load",l),o=i;break;case"video":case"audio":for(o=0;o<Lo.length;o++)Le(Lo[o],l);o=i;break;case"source":Le("error",l),o=i;break;case"img":case"image":case"link":Le("error",l),Le("load",l),o=i;break;case"form":Le("reset",l),Le("submit",l),o=i;break;case"details":Le("toggle",l),o=i;break;case"input":ue(l,i),o=le(l,i),Le("invalid",l),lt(p,"onChange");break;case"option":o=Xe(l,i);break;case"select":l._wrapperState={wasMultiple:!!i.multiple},o=io({},i,{value:void 0}),Le("invalid",l),lt(p,"onChange");break;case"textarea":$e(l,i),o=Je(l,i),Le("invalid",l),lt(p,"onChange");break;default:o=i}at(a,o),u=void 0,c=a,s=l;var h=o;for(u in h)if(h.hasOwnProperty(u)){var d=h[u];"style"===u?it(s,d):"dangerouslySetInnerHTML"===u?null!=(d=d?d.__html:void 0)&&wa(s,d):"children"===u?"string"===typeof d?("textarea"!==c||""!==d)&&rt(s,d):"number"===typeof d&&rt(s,""+d):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(po.hasOwnProperty(u)?null!=d&<(p,u):null!=d&&ae(s,u,d,f))}switch(a){case"input":Y(l),fe(l,i,!1);break;case"textarea":Y(l),et(l,i);break;case"option":null!=i.value&&l.setAttribute("value",""+se(i.value));break;case"select":o=l,l=i,o.multiple=!!l.multiple,u=l.value,null!=u?Ye(o,!!l.multiple,u,!1):null!=l.defaultValue&&Ye(o,!!l.multiple,l.defaultValue,!0);break;default:"function"===typeof o.onClick&&(l.onclick=ut)}ct(a,i)&&qn(t),t.stateNode=n}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw r(Error(166));break;case 6:if(n&&null!=t.stateNode)el(n,t,n.memoizedProps,i);else{if("string"!==typeof i&&null===t.stateNode)throw r(Error(166));n=on(ms.current),on(hs.current),An(t)?(o=t.stateNode,n=t.memoizedProps,o[Oo]=t,o.nodeValue!==n&&qn(t)):(o=t,n=(9===n.nodeType?n:n.ownerDocument).createTextNode(i),n[Oo]=t,o.stateNode=n)}break;case 11:break;case 13:if(ht(_s,t),i=t.memoizedState,0!==(64&t.effectTag)){t.expirationTime=o;break e}o=null!==i,i=!1,null===n?An(t):(a=n.memoizedState,i=null!==a,o||null===a||null!==(a=n.child.sibling)&&(l=t.firstEffect,null!==l?(t.firstEffect=a,a.nextEffect=l):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8)),o&&!i&&0!==(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(_s.current&gs)?_l===cl&&(_l=fl):_l!==cl&&_l!==fl||(_l=hl)),(o||i)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:sn(t),$s(t);break;case 10:Lt(t);break;case 9:case 14:break;case 17:yt(t.type)&>(t);break;case 18:break;case 19:if(ht(_s,t),null===(i=t.memoizedState))break;if(a=0!==(64&t.effectTag),null===(l=i.rendering)){if(a)Gn(i,!1);else if(_l!==cl||null!==n&&0!==(64&n.effectTag))for(n=t.child;null!==n;){if(null!==(l=cn(n))){for(t.effectTag|=64,Gn(i,!1),n=l.updateQueue,null!==n&&(t.updateQueue=n,t.effectTag|=4),t.firstEffect=t.lastEffect=null,n=t.child;null!==n;)i=n,a=o,i.effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,l=i.alternate,null===l?(i.childExpirationTime=0,i.expirationTime=a,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=l.childExpirationTime,i.expirationTime=l.expirationTime,i.child=l.child,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,a=l.dependencies,i.dependencies=null===a?null:{expirationTime:a.expirationTime,firstContext:a.firstContext,responders:a.responders}),n=n.sibling;dt(_s,_s.current&ys|vs,t),t=t.child;break e}n=n.sibling}}
1else{if(!a)if(null!==(n=cn(l))){if(t.effectTag|=64,a=!0,Gn(i,!0),null===i.tail&&"hidden"===i.tailMode){o=n.updateQueue,null!==o&&(t.updateQueue=o,t.effectTag|=4),t=t.lastEffect=i.lastEffect,null!==t&&(t.nextEffect=null);break}}else es()>i.tailExpiration&&1<o&&(t.effectTag|=64,a=!0,Gn(i,!1),t.expirationTime=t.childExpirationTime=o-1);i.isBackwards?(l.sibling=t.child,t.child=l):(o=i.last,null!==o?o.sibling=l:t.child=l,i.last=l)}if(null!==i.tail){0===i.tailExpiration&&(i.tailExpiration=es()+500),o=i.tail,i.rendering=o,i.tail=o.sibling,i.lastEffect=t.lastEffect,o.sibling=null,n=_s.current,n=a?n&ys|vs:n&ys,dt(_s,n,t),t=o;break e}break;case 20:break;default:throw r(Error(156))}t=null}if(o=gl,1===vl||1!==o.childExpirationTime){for(n=0,i=o.child;null!==i;)a=i.expirationTime,l=i.childExpirationTime,a>n&&(n=a),l>n&&(n=l),i=i.sibling;o.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=gl.firstEffect),null!==gl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=gl.firstEffect),e.lastEffect=gl.lastEffect),1<gl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=gl:e.firstEffect=gl,e.lastEffect=gl))}else{if(null!==(t=Wn(gl,vl)))return t.effectTag&=1023,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=1024)}if(null!==(t=gl.sibling))return t;gl=e}while(null!==gl);return _l===cl&&(_l=dl),null}function Tr(e){var t=Et();return Ot(99,Or.bind(null,e,t)),null!==Rl&&Ct(97,function(){return Cr(),null}),null}function Or(e,t){if(Cr(),(ml&(ll|ul))!==al)throw r(Error(327));var n=e.finishedWork,o=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw r(Error(177));e.callbackNode=null,e.callbackExpirationTime=0;var i=n.expirationTime,a=n.childExpirationTime;if(i=a>i?a:i,e.firstPendingTime=i,i<e.lastPendingTime&&(e.lastPendingTime=i),e===yl&&(gl=yl=null,vl=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){a=ml,ml|=ul,il.current=null,Ca=pa;var s=Ge();if(We(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{l=(l=s.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{l.nodeType,p.nodeType}catch(e){l=null;break e}var f=0,h=-1,d=-1,m=0,y=0,g=s,v=null;t:for(;;){for(var _;g!==l||0!==c&&3!==g.nodeType||(h=f+c),g!==p||0!==u&&3!==g.nodeType||(d=f+u),3===g.nodeType&&(f+=g.nodeValue.length),null!==(_=g.firstChild);)v=g,g=_;for(;;){if(g===s)break t;if(v===l&&++m===c&&(h=f),v===p&&++y===u&&(d=f),null!==(_=g.nextSibling))break;g=v,v=g.parentNode}g=_}l=-1===h||-1===d?null:{start:h,end:d}}else l=null}l=l||{start:0,end:0}}else l=null;Sa={focusedElem:s,selectionRange:l},pa=!1,Cl=i;do{try{for(;null!==Cl;){if(0!==(256&Cl.effectTag)){var b=Cl.alternate;switch(s=Cl,s.tag){case 0:case 11:case 15:Jn(xs,bs,s);break;case 1:if(256&s.effectTag&&null!==b){var x=b.memoizedProps,w=b.memoizedState,E=s.stateNode,T=E.getSnapshotBeforeUpdate(s.elementType===s.type?x:Rt(s.type,x),w);E.__reactInternalSnapshotBeforeUpdate=T}break;case 3:case 5:case 6:case 4:case 17:break;default:throw r(Error(163))}}Cl=Cl.nextEffect}}catch(e){if(null===Cl)throw r(Error(330));Ar(Cl,e),Cl=Cl.nextEffect}}while(null!==Cl);Cl=i;do{try{for(b=t;null!==Cl;){var O=Cl.effectTag;
1if(16&O&&rt(Cl.stateNode,""),128&O){var C=Cl.alternate;if(null!==C){var S=C.ref;null!==S&&("function"===typeof S?S(null):S.current=null)}}switch(14&O){case 2:tr(Cl),Cl.effectTag&=-3;break;case 6:tr(Cl),Cl.effectTag&=-3,rr(Cl.alternate,Cl);break;case 4:rr(Cl.alternate,Cl);break;case 8:x=Cl,nr(x,b),x.return=null,x.child=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null;var k=x.alternate;null!==k&&(k.return=null,k.child=null,k.memoizedState=null,k.updateQueue=null,k.dependencies=null)}Cl=Cl.nextEffect}}catch(e){if(null===Cl)throw r(Error(330));Ar(Cl,e),Cl=Cl.nextEffect}}while(null!==Cl);if(S=Sa,C=Ge(),O=S.focusedElem,b=S.selectionRange,C!==O&&O&&O.ownerDocument&&qe(O.ownerDocument.documentElement,O)){null!==b&&We(O)&&(C=b.start,S=b.end,void 0===S&&(S=C),"selectionStart"in O?(O.selectionStart=C,O.selectionEnd=Math.min(S,O.value.length)):(S=(C=O.ownerDocument||document)&&C.defaultView||window,S.getSelection&&(S=S.getSelection(),x=O.textContent.length,k=Math.min(b.start,x),b=void 0===b.end?k:Math.min(b.end,x),!S.extend&&k>b&&(x=b,b=k,k=x),x=He(O,k),w=He(O,b),x&&w&&(1!==S.rangeCount||S.anchorNode!==x.node||S.anchorOffset!==x.offset||S.focusNode!==w.node||S.focusOffset!==w.offset)&&(C=C.createRange(),C.setStart(x.node,x.offset),S.removeAllRanges(),k>b?(S.addRange(C),S.extend(w.node,w.offset)):(C.setEnd(w.node,w.offset),S.addRange(C)))))),C=[];for(S=O;S=S.parentNode;)1===S.nodeType&&C.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"===typeof O.focus&&O.focus(),O=0;O<C.length;O++)S=C[O],S.element.scrollLeft=S.left,S.element.scrollTop=S.top}Sa=null,pa=!!Ca,Ca=null,e.current=n,Cl=i;do{try{for(O=o;null!==Cl;){var A=Cl.effectTag;if(36&A){var P=Cl.alternate;switch(C=Cl,S=O,C.tag){case 0:case 11:case 15:Jn(Ts,Os,C);break;case 1:var R=C.stateNode;if(4&C.effectTag)if(null===P)R.componentDidMount();else{var D=C.elementType===C.type?P.memoizedProps:Rt(C.type,P.memoizedProps);R.componentDidUpdate(D,P.memoizedState,R.__reactInternalSnapshotBeforeUpdate)}var I=C.updateQueue;null!==I&&Kt(C,I,R,S);break;case 3:var M=C.updateQueue;if(null!==M){if(k=null,null!==C.child)switch(C.child.tag){case 5:k=C.child.stateNode;break;case 1:k=C.child.stateNode}Kt(C,M,k,S)}break;case 5:var L=C.stateNode;null===P&&4&C.effectTag&&(S=L,ct(C.type,C.memoizedProps)&&S.focus());break;case 6:case 4:case 12:break;case 13:case 19:case 17:case 20:break;default:throw r(Error(163))}}if(128&A){var j=Cl.ref;if(null!==j){var z=Cl.stateNode;switch(Cl.tag){case 5:var F=z;break;default:F=z}"function"===typeof j?j(F):j.current=F}}512&A&&(Pl=!0),Cl=Cl.nextEffect}}catch(e){if(null===Cl)throw r(Error(330));Ar(Cl,e),Cl=Cl.nextEffect}}while(null!==Cl);Cl=null,Xa(),ml=a}else e.current=n;if(Pl)Pl=!1,Rl=e,Il=o,Dl=t;else for(Cl=i;null!==Cl;)t=Cl.nextEffect,Cl.nextEffect=null,Cl=t;if(t=e.firstPendingTime,0!==t?(A=sr(),A=Pt(A,t),pr(e,A,t)):Al=null,"function"===typeof Bl&&Bl(n.stateNode,o),1073741823===t?e===jl?Ll++:(Ll=0,jl=e):Ll=0,Sl)throw Sl=!1,e=kl,kl=null,e;return(ml&sl)!==al?null:(kt(),null)}function Cr(){if(null===Rl)return!1;var e=Rl,t=Il,n=Dl;return Rl=null,Il=0,Dl=90,Ot(97<n?97:n,Sr.bind(null,e,t))}function Sr(e){if((ml&(ll|ul))!==al)throw r(Error(331));var t=ml;for(ml|=ul,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:Jn(Ss,bs,n),Jn(bs,Cs,n)}}catch(t){if(null===e)throw r(Error(330));Ar(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return ml=t,kt(),!0}function kr(e,t,n){t=Zn(n,t),t=ir(e,t,1073741823),Ht(e,t),null!==(e=cr(e,1073741823))&&pr(e,99,1073741823)}function Ar(e,t){if(3===e.tag)kr(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){kr(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Al||!Al.has(r))){e=Zn(t,e),e=ar(n,e,1073741823),Ht(n,e),n=cr(n,1073741823),null!==n&&pr(n,99,1073741823);break}}n=n.return}}function Pr(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),yl===e&&vl===n?_l===hl||_l===fl&&1073741823===bl&&es()-Tl<Ol?_r(e,vl):El=!0:e.lastPendingTime<n||0!==(t=e.pingTime)&&t<n||(e.pingTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),t=sr(),t=Pt(t,n),pr(e,t,n))}function Rr(e,t){var n=e.stateNode;null!==n&&n.delete(t),n=sr(),t=lr(n,e,null),n=Pt(n,t),null!==(e=cr(e,t))&&pr(e,n,t)}function Dr(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;
1if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Bl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(e){}},Ul=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}return!0}function Ir(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Mr(e,t,n,r){return new Ir(e,t,n,r)}function Lr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function jr(e){if("function"===typeof e)return Lr(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===di)return 11;if(e===gi)return 14}return 2}function zr(e,t){var n=e.alternate;return null===n?(n=Mr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fr(e,t,n,o,i,a){var s=2;if(o=e,"function"===typeof e)Lr(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case li:return Nr(n.children,i,a,t);case hi:s=8,i|=7;break;case ui:s=8,i|=1;break;case ci:return e=Mr(12,n,t,8|i),e.elementType=ci,e.type=ci,e.expirationTime=a,e;case mi:return e=Mr(13,n,t,i),e.type=mi,e.elementType=mi,e.expirationTime=a,e;case yi:return e=Mr(19,n,t,i),e.elementType=yi,e.expirationTime=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case pi:s=10;break e;case fi:s=9;break e;case di:s=11;break e;case gi:s=14;break e;case vi:s=16,o=null;break e}throw r(Error(130),null==e?e:typeof e,"")}return t=Mr(s,n,t,i),t.elementType=e,t.type=o,t.expirationTime=a,t}function Nr(e,t,n,r){return e=Mr(7,e,r,t),e.expirationTime=n,e}function Br(e,t,n){return e=Mr(6,e,null,t),e.expirationTime=n,e}function Ur(e,t,n){return t=Mr(4,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vr(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=this.firstBatch=null,this.pingTime=this.lastPendingTime=this.firstPendingTime=this.callbackExpirationTime=0}function Hr(e,t,n){return e=new Vr(e,t,n),t=Mr(3,null,null,2===t?7:1===t?3:0),e.current=t,t.stateNode=e}function qr(e,t,n,o,i,a){var s=t.current;e:if(n){n=n._reactInternalFiber;t:{if(2!==Ae(n)||1!==n.tag)throw r(Error(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yt(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw r(Error(171))}if(1===n.tag){var u=n.type;if(yt(u)){n=bt(n,u,l);break e}}n=l}else n=Da;return null===t.context?t.context=n:t.pendingContext=n,t=a,i=Ut(o,i),i.payload={element:e},t=void 0===t?null:t,null!==t&&(i.callback=t),Ht(s,i),ur(s,o),o}function Gr(e,t,n,r){var o=t.current,i=sr(),a=as.suspense;return o=lr(i,o,a),qr(e,t,n,o,a,r)}function Wr(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Zr(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:si,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Kr(e){var t=1073741821-25*(1+((1073741821-sr()+500)/25|0));t<=Fl&&--t,this._expirationTime=Fl=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Xr(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Yr(e,t,n){this._internalRoot=Hr(e,t,n)}function Jr(e,t){this._internalRoot=Hr(e,2,t)}function $r(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qr(e,t){if(t||(t=e?9===e.nodeType?e.documentElement:e.firstChild:null,t=!(!t||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Yr(e,0,t)}function eo(e,t,n,r,o){var i=n._reactRootContainer,a=void 0;if(i){if(a=i._internalRoot,"function"===typeof o){var s=o;o=function(){var e=Wr(a);s.call(e)}}Gr(t,a,e,o)}else{if(i=n._reactRootContainer=Qr(n,r),a=i._internalRoot,"function"===typeof o){var l=o;o=function(){var e=Wr(a);l.call(e)}}vr(function(){Gr(t,a,e,o)})}return Wr(a)}function to(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$r(t))throw r(Error(200));return Zr(e,t,null,n)}function no(e,t){if(!$r(e))throw r(Error(299),"unstable_createRoot");return new Jr(e,null!=t&&!0===t.hydrate)}function ro(e,t){if(!$r(e))throw r(Error(299),"unstable_createRoot");return new Yr(e,1,null!=t&&!0===t.hydrate)}var oo=n(0),io=n(18),ao=n(152);if(!oo)throw r(Error(227));var so=null,lo={},uo=[],co={},po={},fo={},ho=!1,mo=null,yo=!1,go=null,vo={onError:function(e){ho=!0,mo=e}},_o=null,bo=null,xo=null,wo=null,Eo={injectEventPluginOrder:function(e){if(so)throw r(Error(101));so=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var i=e[t];if(!lo.hasOwnProperty(t)||lo[t]!==i){if(lo[t])throw r(Error(102),t);lo[t]=i,n=!0}}n&&o()}},To=Math.random().toString(36).slice(2),Oo="__reactInternalInstance$"+To,Co="__reactEventHandlers$"+To,So=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),ko={animationend:O("Animation","AnimationEnd"),animationiteration:O("Animation","AnimationIteration"),animationstart:O("Animation","AnimationStart"),transitionend:O("Transition","TransitionEnd")},Ao={},Po={};So&&(Po=document.createElement("div").style,"AnimationEvent"in window||(delete ko.animationend.animation,delete ko.animationiteration.animation,delete ko.animationstart.animation),"TransitionEvent"in window||delete ko.transitionend.transition);var Ro=C("animationend"),Do=C("animationiteration"),Io=C("animationstart"),Mo=C("transitionend"),Lo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jo=null,zo=null,Fo=null;io(P.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=k)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=k)},persist:function(){this.isPersistent=k},isPersistent:A,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=A,this._dispatchInstances=this._dispatchListeners=null}}),P.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},P.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return io(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=io({},r.Interface,e),n.extend=r.extend,I(n),n},I(P);var No=P.extend({data:null}),Bo=P.extend({data:null}),Uo=[9,13,27,32],Vo=So&&"CompositionEvent"in window,Ho=null;So&&"documentMode"in document&&(Ho=document.documentMode);var qo=So&&"TextEvent"in window&&!Ho,Go=So&&(!Vo||Ho&&8<Ho&&11>
1=Ho),Wo=String.fromCharCode(32),Zo={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ko=!1,Xo=!1,Yo={eventTypes:Zo,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(Vo)e:{switch(e){case"compositionstart":o=Zo.compositionStart;break e;case"compositionend":o=Zo.compositionEnd;break e;case"compositionupdate":o=Zo.compositionUpdate;break e}o=void 0}else Xo?M(e,n)&&(o=Zo.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=Zo.compositionStart);return o?(Go&&"ko"!==n.locale&&(Xo||o!==Zo.compositionStart?o===Zo.compositionEnd&&Xo&&(i=S()):(jo=r,zo="value"in jo?jo.value:jo.textContent,Xo=!0)),o=No.getPooled(o,t,n,r),i?o.data=i:null!==(i=L(n))&&(o.data=i),T(o),i=o):i=null,(e=qo?j(e,n):z(e,n))?(t=Bo.getPooled(Zo.beforeInput,t,n,r),t.data=e,T(t)):t=null,null===i?t:null===t?i:[i,t]}},Jo=null,$o=null,Qo=null,ei=U,ti=!1,ni={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},ri=oo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ri.hasOwnProperty("ReactCurrentDispatcher")||(ri.ReactCurrentDispatcher={current:null}),ri.hasOwnProperty("ReactCurrentBatchConfig")||(ri.ReactCurrentBatchConfig={suspense:null});var oi=/^(.*)[\\\/]/,ii="function"===typeof Symbol&&Symbol.for,ai=ii?Symbol.for("react.element"):60103,si=ii?Symbol.for("react.portal"):60106,li=ii?Symbol.for("react.fragment"):60107,ui=ii?Symbol.for("react.strict_mode"):60108,ci=ii?Symbol.for("react.profiler"):60114,pi=ii?Symbol.for("react.provider"):60109,fi=ii?Symbol.for("react.context"):60110,hi=ii?Symbol.for("react.concurrent_mode"):60111,di=ii?Symbol.for("react.forward_ref"):60112,mi=ii?Symbol.for("react.suspense"):60113,yi=ii?Symbol.for("react.suspense_list"):60120,gi=ii?Symbol.for("react.memo"):60115,vi=ii?Symbol.for("react.lazy"):60116;ii&&Symbol.for("react.fundamental"),ii&&Symbol.for("react.responder");var _i="function"===typeof Symbol&&Symbol.iterator,bi=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,xi=Object.prototype.hasOwnProperty,wi={},Ei={},Ti={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ti[e]=new oe(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ti[t]=new oe(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ti[e]=new oe(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ti[e]=new oe(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ti[e]=new oe(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ti[e]=new oe(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){Ti[e]=new oe(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){Ti[e]=new oe(e,6,!1,e,null,!1)}
1),["rowSpan","start"].forEach(function(e){Ti[e]=new oe(e,5,!1,e.toLowerCase(),null,!1)});var Oi=/[\-:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Oi,ie);Ti[t]=new oe(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Oi,ie);Ti[t]=new oe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Oi,ie);Ti[t]=new oe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ti[e]=new oe(e,1,!1,e.toLowerCase(),null,!1)}),Ti.xlinkHref=new oe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){Ti[e]=new oe(e,1,!1,e.toLowerCase(),null,!0)});var Ci={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},Si=null,ki=null,Ai=!1;So&&(Ai=Z("input")&&(!document.documentMode||9<document.documentMode));var Pi={eventTypes:Ci,_isInputEventSupported:Ai,extractEvents:function(e,t,n,r){var o=t?g(t):window,i=void 0,a=void 0,s=o.nodeName&&o.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===o.type?i=ge:G(o)?Ai?i=Ee:(i=xe,a=be):(s=o.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=we),i&&(i=i(e,t)))return de(i,n,r);a&&a(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&he(o,"number",o.value)}},Ri=P.extend({view:null,detail:null}),Di={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Ii=0,Mi=0,Li=!1,ji=!1,zi=Ri.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Oe,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ii;return Ii=e.screenX,Li?"mousemove"===e.type?e.screenX-t:0:(Li=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Mi;return Mi=e.screenY,ji?"mousemove"===e.type?e.screenY-t:0:(ji=!0,0)}}),Fi=zi.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Ni={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Bi={eventTypes:Ni,extractEvents:function(e,t,n,r){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(o&&(n.relatedTarget||n.fromElement)||!i&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?m(t):null):i=null,i===t)return null;var a=void 0,s=void 0,l=void 0,u=void 0;
1"mouseout"===e||"mouseover"===e?(a=zi,s=Ni.mouseLeave,l=Ni.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Fi,s=Ni.pointerLeave,l=Ni.pointerEnter,u="pointer");var c=null==i?o:g(i);if(o=null==t?o:g(t),e=a.getPooled(s,i,n,r),e.type=u+"leave",e.target=c,e.relatedTarget=o,n=a.getPooled(l,t,n,r),n.type=u+"enter",n.target=o,n.relatedTarget=c,r=t,i&&r)e:{for(t=i,o=r,u=0,a=t;a;a=_(a))u++;for(a=0,l=o;l;l=_(l))a++;for(;0<u-a;)t=_(t),u--;for(;0<a-u;)o=_(o),a--;for(;u--;){if(t===o||t===o.alternate)break e;t=_(t),o=_(o)}t=null}else t=null;for(o=t,t=[];i&&i!==o&&(null===(u=i.alternate)||u!==o);)t.push(i),i=_(i);for(i=[];r&&r!==o&&(null===(u=r.alternate)||u!==o);)i.push(r),r=_(r);for(r=0;r<t.length;r++)w(t[r],"bubbled",e);for(r=i.length;0<r--;)w(i[r],"captured",n);return[e,n]}},Ui=Object.prototype.hasOwnProperty;new Map,new Map,new Set,new Map;for(var Vi=P.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Hi=(P.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),qi=Ri.extend({relatedTarget:null}),Gi={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wi={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Zi=Ri.extend({key:function(e){if(e.key){var t=Gi[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=Ie(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?Wi[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Oe,charCode:function(e){return"keypress"===e.type?Ie(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ie(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ki=zi.extend({dataTransfer:null}),Xi=Ri.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Oe}),Yi=P.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),Ji=(zi.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null})),$i=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[Ro,"animationEnd",2],[Do,"animationIteration",2],[Io,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[Mo,"transitionEnd",2],["waiting","waiting",2]],Qi={},ea={},ta=0;ta<$i.length;ta++){var na=$i[ta],ra=na[0],oa=na[1],ia=na[2],aa="on"+(oa[0].toUpperCase()+oa.slice(1)),sa={phasedReg
1istrationNames:{bubbled:aa,captured:aa+"Capture"},dependencies:[ra],eventPriority:ia};Qi[oa]=sa,ea[ra]=sa}var la={eventTypes:Qi,getEventPriority:function(e){return e=ea[e],void 0!==e?e.eventPriority:2},extractEvents:function(e,t,n,r){var o=ea[e];if(!o)return null;switch(e){case"keypress":if(0===Ie(n))return null;case"keydown":case"keyup":e=Zi;break;case"blur":case"focus":e=qi;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=zi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=Ki;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=Xi;break;case Ro:case Do:case Io:e=Vi;break;case Mo:e=Yi;break;case"scroll":e=Ri;break;case"wheel":e=Ji;break;case"copy":case"cut":case"paste":e=Hi;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Fi;break;default:e=P}return t=e.getPooled(o,t,n,r),T(t),t}},ua=la.getEventPriority,ca=[],pa=!0,fa=new("function"===typeof WeakMap?WeakMap:Map),ha=So&&"documentMode"in document&&11>=document.documentMode,da={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ma=null,ya=null,ga=null,va=!1,_a={eventTypes:da,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Be(i),o=fo.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?g(t):window,e){case"focus":(G(i)||"true"===i.contentEditable)&&(ma=i,ya=t,ga=null);break;case"blur":ga=ya=ma=null;break;case"mousedown":va=!0;break;case"contextmenu":case"mouseup":case"dragend":return va=!1,Ze(n,r);case"selectionchange":if(ha)break;case"keydown":case"keyup":return Ze(n,r)}return null}};Eo.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_o=v,bo=y,xo=g,Eo.injectEventPluginsByName({SimpleEventPlugin:la,EnterLeaveEventPlugin:Bi,ChangeEventPlugin:Pi,SelectEventPlugin:_a,BeforeInputEventPlugin:Yo}
1);var ba={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},xa=void 0,wa=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==ba.svg||"innerHTML"in e)e.innerHTML=t;else{for(xa=xa||document.createElement("div"),xa.innerHTML="<svg>"+t+"</svg>",t=xa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Ea={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ta=["Webkit","ms","Moz","O"];Object.keys(Ea).forEach(function(e){Ta.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ea[t]=Ea[e]})});var Oa=io({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Ca=null,Sa=null,ka="function"===typeof setTimeout?setTimeout:void 0,Aa="function"===typeof clearTimeout?clearTimeout:void 0;new Set;var Pa=[],Ra=-1,Da={},Ia={current:Da},Ma={current:!1},La=Da,ja=ao.unstable_runWithPriority,za=ao.unstable_scheduleCallback,Fa=ao.unstable_cancelCallback,Na=ao.unstable_shouldYield,Ba=ao.unstable_requestPaint,Ua=ao.unstable_now,Va=ao.unstable_getCurrentPriorityLevel,Ha=ao.unstable_ImmediatePriority,qa=ao.unstable_UserBlockingPriority,Ga=ao.unstable_NormalPriority,Wa=ao.unstable_LowPriority,Za=ao.unstable_IdlePriority,Ka={},Xa=void 0!==Ba?Ba:function(){},Ya=null,Ja=null,$a=!1,Qa=Ua(),es=1e4>Qa?Ua:function(){return Ua()-Qa},ts={current:null},ns=null,rs=null,os=null,is=!1,as=ri.ReactCurrentBatchConfig,ss=(new oo.Component).refs,ls={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===Ae(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=sr(),o=as.suspense;r=lr(r,e,o),o=Ut(r,o),o.payload=t,void 0!==n&&null!==n&&(o.callback=n),Ht(e,o),ur(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=sr(),o=as.suspense;r=lr(r,e,o),o=Ut(r,o),o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),Ht(e,o),ur(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=sr(),r=as.suspense;n=lr(n,e,r),r=Ut(n,r),r.tag=2,void 0!==t&&null!==t&&(r.callback=t),Ht(e,r),ur(e,n)}},us=Array.isArray,cs=rn(!0),ps=rn(!1),fs={},hs={current:fs},ds={current:fs},ms={current:fs},ys=1,gs=1,vs=2,_s={current:0},bs=0,xs=2,ws=4,Es=8,Ts=16,Os=32,Cs=64,Ss=128,ks=ri.ReactCurrentDispatcher,As=0,Ps=null,Rs=null,Ds=null,Is=null,Ms=null,Ls=null,js=0,zs=null,Fs=0,Ns=!1,Bs=null,Us=0,Vs={readContext:Ft,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useLayoutEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useResponder:pn},Hs={readContext:Ft,useCallback:function(e,t){return mn().memoizedState=[e,void 0===t?null:t],e},useContext:Ft,useEffect:function(e,t){return bn(516,Ss|Cs,e,t)},useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,bn(4,ws|Os,wn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bn(4,ws|Os,e,t)},useMemo:function(e,t){var n=mn();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=mn();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Tn.bind(null,Ps,e),[r.memoizedState,e]},useRef:function(e){var t=mn();return e={current:e},t.memoizedState=e},useState:function(e){var t=mn();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={last:null,dispatch:null,lastRenderedReducer:gn,lastRenderedState:e},e=e.dispatch=Tn.bind(null,Ps,e),[t.memoizedState,e]},useDebugValue:En,useResponder:ke},qs={readContext:Ft,useCallback:function(e,t){var n=yn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fn(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:Ft,useEffect:function(e,t){return xn(516,Ss|Cs,e,t)},useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,xn(4,ws|Os,wn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xn(4,ws|Os,e,t)},useMemo:function(e,t){var n=yn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fn(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}
1,useReducer:vn,useRef:function(){return yn().memoizedState},useState:function(e){return vn(gn)},useDebugValue:En,useResponder:ke},Gs=null,Ws=null,Zs=!1,Ks=ri.ReactCurrentOwner,Xs=!1,Ys={},Js=void 0,$s=void 0,Qs=void 0,el=void 0;Js=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(20===n.tag)e.appendChild(n.stateNode.instance);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$s=function(){},Qs=function(e,t,n,r,o){var i=e.memoizedProps;if(i!==r){var a=t.stateNode;switch(on(hs.current),e=null,n){case"input":i=le(a,i),r=le(a,r),e=[];break;case"option":i=Xe(a,i),r=Xe(a,r),e=[];break;case"select":i=io({},i,{value:void 0}),r=io({},r,{value:void 0}),e=[];break;case"textarea":i=Je(a,i),r=Je(a,r),e=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(a.onclick=ut)}at(n,r),a=n=void 0;var s=null;for(n in i)if(!r.hasOwnProperty(n)&&i.hasOwnProperty(n)&&null!=i[n])if("style"===n){var l=i[n];for(a in l)l.hasOwnProperty(a)&&(s||(s={}),s[a]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(po.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var u=r[n];if(l=null!=i?i[n]:void 0,r.hasOwnProperty(n)&&u!==l&&(null!=u||null!=l))if("style"===n)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(s||(s={}),s[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(s||(s={}),s[a]=u[a])}else s||(e||(e=[]),e.push(n,s)),s=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(n,""+u)):"children"===n?l===u||"string"!==typeof u&&"number"!==typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(po.hasOwnProperty(n)?(null!=u&<(o,n),e||l===u||(e=[])):(e=e||[]).push(n,u))}s&&(e=e||[]).push("style",s),o=e,(t.updateQueue=o)&&qn(t)}},el=function(e,t,n,r){n!==r&&qn(t)};var tl="function"===typeof WeakSet?WeakSet:Set,nl="function"===typeof WeakMap?WeakMap:Map,rl=Math.ceil,ol=ri.ReactCurrentDispatcher,il=ri.ReactCurrentOwner,al=0,sl=8,ll=16,ul=32,cl=0,pl=1,fl=2,hl=3,dl=4,ml=al,yl=null,gl=null,vl=0,_l=cl,bl=1073741823,xl=1073741823,wl=null,El=!1,Tl=0,Ol=500,Cl=null,Sl=!1,kl=null,Al=null,Pl=!1,Rl=null,Dl=90,Il=0,Ml=null,Ll=0,jl=null,zl=0,Fl=0,Nl=void 0;Nl=function(e,t,n){var o=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||Ma.current)Xs=!0;else if(o<n){switch(Xs=!1,t.tag){case 3:Nn(t),Pn();break;case 5:if(ln(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:yt(t.type)&&xt(t);break;case 4:an(t,t.stateNode.containerInfo);break;case 10:Mt(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=n?Bn(e,t,n):(dt(_s,_s.current&ys,t),t=Hn(e,t,n),null!==t?t.sibling:null);dt(_s,_s.current&ys,t);break;case 19:if(o=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(o)return Vn(e,t,n);t.effectTag|=64}if(i=t.memoizedState,null!==i&&(i.rendering=null,i.tail=null),dt(_s,_s.current,t),!o)return null}return Hn(e,t,n)}}else Xs=!1;switch(t.expirationTime=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=mt(t,Ia.current),zt(t,n),i=hn(null,t,o,e,i,n),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,dn(),yt(o)){var a=!0;xt(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var s=o.getDerivedStateFromProps;"function"===typeof s&&Yt(t,o,s,e),i.updater=ls,t.stateNode=i,i._reactInternalFiber=t,en(t,o,e,n),t=Fn(null,t,o,!0,a,n)}else t.tag=0,Rn(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Dt(i),t.type=i,a=t.tag=jr(i),e=Rt(i,e),a){case 0:t=jn(null,t,i,e,n);break;case 1:t=zn(null,t,i,e,n);break;case 11:t=Dn(null,t,i,e,n);break;case 14:t=In(null,t,i,Rt(i.type,e),o,n);break;default:throw r(Error(306),i,"")}return t;case 0:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Rt(o,i),jn(e,t,o,i,n);case 1:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Rt(o,i),zn(e,t,o,i,n);case 3:if(Nn(t),null===(o=t.updateQueue))throw r(Error(282));return i=t.memoizedState,i=null!==i?i.element:null,Zt(t,o,t.pendingProps,null,
1n),o=t.memoizedState.element,o===i?(Pn(),t=Hn(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(Ws=ft(t.stateNode.containerInfo.firstChild),Gs=t,i=Zs=!0),i?(t.effectTag|=2,t.child=ps(t,null,o,n)):(Rn(e,t,o,n),Pn()),t=t.child),t;case 5:return ln(t),null===e&&Sn(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,pt(o,i)?s=null:null!==a&&pt(o,a)&&(t.effectTag|=16),Ln(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Rn(e,t,s,n),t=t.child),t;case 6:return null===e&&Sn(t),null;case 13:return Bn(e,t,n);case 4:return an(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=cs(t,null,o,n):Rn(e,t,o,n),t.child;case 11:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Rt(o,i),Dn(e,t,o,i,n);case 7:return Rn(e,t,t.pendingProps,n),t.child;case 8:case 12:return Rn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,Mt(t,a),null!==s){var l=s.value;if(0===(a=Ce(l,a)?0:0|("function"===typeof o._calculateChangedBits?o._calculateChangedBits(l,a):1073741823))){if(s.children===i.children&&!Ma.current){t=Hn(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===o&&0!==(c.observedBits&a)){1===l.tag&&(c=Ut(n,null),c.tag=2,Ht(l,c)),l.expirationTime<n&&(l.expirationTime=n),c=l.alternate,null!==c&&c.expirationTime<n&&(c.expirationTime=n),jt(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}}Rn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,o=a.children,zt(t,n),i=Ft(i,a.unstable_observedBits),o=o(i),t.effectTag|=1,Rn(e,t,o,n),t.child;case 14:return i=t.type,a=Rt(i,t.pendingProps),a=Rt(i.type,a),In(e,t,i,a,o,n);case 15:return Mn(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Rt(o,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,yt(o)?(e=!0,xt(t)):e=!1,zt(t,n),$t(t,o,i,n),en(t,o,i,n),Fn(null,t,o,!0,e,n);case 19:return Vn(e,t,n)}throw r(Error(156))};var Bl=null,Ul=null;Jo=function(e,t,n){switch(t){case"input":if(pe(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=v(o);if(!i)throw r(Error(90));J(o),pe(o,i)}}}break;case"textarea":Qe(e,n);break;case"select":null!=(t=n.value)&&Ye(e,!!n.multiple,t,!1)}},Kr.prototype.render=function(e){if(!this._defer)throw r(Error(250));this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,o=new Xr;return qr(e,t,null,n,null,o._onCommit),o},Kr.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Kr.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(!this._defer||null===t)throw r(Error(251));if(this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var o=null,i=t;i!==this;)o=i,i=i._next;if(null===o)throw r(Error(251));o._next=i._next,this._next=t,e.firstBatch=this}if(this._defer=!1,t=n,(ml&(ll|ul))!==al)throw r(Error(253));St(br.bind(null,e,t)),kt(),t=this._next,this._next=null,t=e.firstBatch=t,null!==t&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Kr.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Xr.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Xr.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];if("function"!==typeof n)throw r(Error(191),n);n()}}},Jr.prototype.render=Yr.prototype.render=function(e,t){var n=this._internalRoot,r=new Xr;return t=void 0===t?null:t,null!==t&&r.then(t),Gr(e,n,null,r._onCommit),r},Jr.prototype.unmount=Yr.prototype.unmount=function(e){var t=this._internalRoot,n=new Xr;return e=void 0===e?null:e,null!==e&&n.then(e),Gr(null,t,null,n._onCommit),n},Jr.prototype.createBatch=function(){var e=new Kr(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},U=yr,V=gr,H=hr,ei=function(e,t){var n=ml;ml|=2;try{return e(t)}finally{(ml=n)===al&&kt()}};var Vl={createPortal:to,findDOMNode:function(e){if(null==e)e=null;else if(1!==e.nodeType){var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw r(Error(188));throw r(Error(268),Object.keys(e))}e=De(t),e=null===e?null:e.stateNode}return e},hydrate:function(e,t,n){if(!$r(t))throw r(Error(200));return eo(null,e,t,!0,n)},render:function(e,t,n){if(!$r(t))throw r(Error(200));return eo(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){if(!$r(n))throw r(Error(200));if(null==e||void 0===e._reactInternalFiber)throw r(Error(38));return eo(e,t,n,!1,o)},unmountComponentAtNode:function(e){if(!$r(e))throw r(Error(40));return!!e._reactRootContainer&&(vr(function(){eo(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return to.apply(void 0,arguments)},unstable_batchedUpdates:yr,unstable_interactiveUpdates:function(e,t,n,r){return hr(),gr(e,t,n,r)},unstable_discreteUpdates:gr,unstable_flushDiscreteUpdates:hr,flushSync:function(e,t){if((ml&(ll|ul))!==al)throw r(Error(187));var n=ml;ml|=1;try{return Ot(99,e.bind(null,t))}finally{ml=n,kt()}}
1,unstable_createRoot:no,unstable_createSyncRoot:ro,unstable_flushControlled:function(e){var t=ml;ml|=1;try{Ot(99,e)}finally{(ml=t)===al&&kt()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[y,g,v,Eo.injectEventPluginsByName,co,T,function(e){p(e,E)},N,B,Ne,h,Cr,{current:!1}]}};!function(e){var t=e.findFiberByHostInstance;Dr(io({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ri.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=De(e),null===e?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:m,bundleType:0,version:"16.9.0",rendererPackageName:"react-dom"});var Hl={default:Vl},ql=Hl&&Vl||Hl;e.exports=ql.default||ql},function(e,t,n){"use strict";e.exports=n(153)},function(e,t,n){"use strict";function r(e,t){var n=e.next;if(n===e)j=null;else{e===j&&(j=n);var r=e.previous;r.next=n,n.previous=r}e.next=e.previous=null,n=e.callback,r=N;var o=F;N=e.priorityLevel,F=e;try{var i=e.expirationTime<=t;switch(N){case 1:var a=n(i);break;case 2:case 3:case 4:a=n(i);break;case 5:a=n(i)}}catch(e){throw e}finally{N=r,F=o}if("function"===typeof a)if(t=e.expirationTime,e.callback=a,null===j)j=e.next=e.previous=e;else{a=null,i=j;do{if(t<=i.expirationTime){a=i;break}i=i.next}while(i!==j);null===a?a=j:a===j&&(j=e),t=a.previous,t.next=a.previous=e,e.next=a,e.previous=t}}function o(e){if(null!==z&&z.startTime<=e)do{var t=z,n=t.next;if(t===n)z=null;else{z=n;var r=t.previous;r.next=n,n.previous=r}t.next=t.previous=null,l(t,t.expirationTime)}while(null!==z&&z.startTime<=e)}function i(e){V=!1,o(e),U||(null!==j?(U=!0,u(a)):null!==z&&c(i,z.startTime-e))}function a(e,n){U=!1,V&&(V=!1,p()),o(n),B=!0;try{if(e){if(null!==j)do{r(j,n),n=t.unstable_now(),o(n)}while(null!==j&&!f())}else for(;null!==j&&j.expirationTime<=n;)r(j,n),n=t.unstable_now(),o(n);return null!==j||(null!==z&&c(i,z.startTime-n),!1)}finally{B=!1}}function s(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}function l(e,t){if(null===j)j=e.next=e.previous=e;else{var n=null,r=j;do{if(t<r.expirationTime){n=r;break}r=r.next}while(r!==j);null===n?n=j:n===j&&(j=e),t=n.previous,t.next=n.previous=e,e.next=n,e.previous=t}}Object.defineProperty(t,"__esModule",{value:!0});var u=void 0,c=void 0,p=void 0,f=void 0,h=void 0;if(t.unstable_now=void 0,t.unstable_forceFrameRate=void 0,"undefined"===typeof window||"function"!==typeof MessageChannel){var d=null,m=null,y=function(){if(null!==d)try{var e=t.unstable_now();d(!0,e),d=null}catch(e){throw setTimeout(y,0),e}};t.unstable_now=function(){return Date.now()},u=function(e){null!==d?setTimeout(u,0,e):(d=e,setTimeout(y,0))},c=function(e,t){m=setTimeout(e,t)},p=function(){clearTimeout(m)},f=function(){return!1},h=t.unstable_forceFrameRate=function(){}}else{var g=window.performance,v=window.Date,_=window.setTimeout,b=window.clearTimeout,x=window.requestAnimationFrame,w=window.cancelAnimationFrame;"undefined"!==typeof console&&("function"!==typeof x&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof w&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),t.unstable_now="object"===typeof g&&"function"===typeof g.now?function(){return g.now()}:function(){return v.now()};var E=!1,T=null,O=-1,C=-1,S=33.33,k=-1,A=-1,P=0,R=!1;f=function(){return t.unstable_now()>=P},h=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):0<e?(S=Math.floor(1e3/e),R=!0):(S=33.33,R=!1)};var D=function(){if(null!==T){var e=t.unstable_now(),n=0<P-e;try{T(n,e)||(T=null)}catch(e){throw M.postMessage(null),e}}},I=new MessageChannel,M=I.port2;I.port1.onmessage=D;var L=function(e){if(null===T)A=k=-1,E=!1;else{E=!0,x(function(e){b(O),L(e)});var n=function(){P=t.unstable_now()+S/2,D(),O=_(n,3*S)};if(O=_(n,3*S),-1!==k&&.1<e-k){var r=e-k;!R&&-1!==A&&r<S&&A<S&&8.33>(S=r<A?A:r)&&(S=8.33),A=r}k=e,P=e+S,M.postMessage(null)}};u=function(e){T=e,E||(E=!0,x(function(e){L(e)}))},c=function(e,n){C=_(function(){e(t.unstable_now())},n)},p=function(){b(C),C=-1}}var j=null,z=null,F=null,N=3,B=!1,U=!1,V=!1,H=h;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,r){var o=t.unstable_now();if("object"===typeof r&&null!==r){var f=r.delay;f="number"===typeof f&&0<f?o+f:o,r="number"===typeof r.timeout?r.timeout:s(e)}else r=s(e),f=o;if(r=f+r,e={callback:n,priorityLevel:e,startTime:f,expirationTime:r,next:null,previous:null},f>o){if(r=f,null===z)z=e.next=e.previous=e;else{n=null;var h=z;do{if(r<h.startTime){n=h;break}h=h.next}while(h!==z);null===n?n=z:n===z&&(z=e),r=n.previous,r.next=n.previous=e,e.next=n,e.previous=r}null===j&&z===e&&(V?p():V=!0,c(i,f-o))}else l(e,r),U||B||(U=!0,u(a));return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(e===t)e===j?j=null:e===z&&(z=null);else{e===j?j=t:e===z&&(z=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_shouldYield=function(){var e=t.unstable_now();return o(e),null!==F&&null!==j&&j.startTime<=e&&j.expirationTime<F.expirationTime||f()},t.unstable_requestPaint=H,t.unstable_continueExecution=function(){U||B||(U=!0,u(a))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return j}},function(e,t){},function(e,t,n){"use strict";var r=n(156);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=n.n(a),l=n(157),u=n(240),c=n(284),p=n(336),f=n(339),h=n(22),d=n(347),m=n.n(d),y=n(21),g=n(348),v=n(349),_=n(352),b=n(1),x=n.n(b),w=n(140),E=n(24),T=n.n(E),O=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),C=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}
1return i(t,e),O(t,[{key:"componentDidMount",value:function(){this.props.getAllProjects(),this.fetchGeoJson()}},{key:"componentDidUpdate",value:function(e){e.mapType!==this.props.mapType&&this.fetchGeoJson()}},{key:"fetchGeoJson",value:function(){var e=w.a[this.props.mapType];this.props.getGeoJSON(e.geojsonUrl,e.topologyObjectsName)}},{key:"renderContent",value:function(){var e=this.props,t=e.activePage,n=e.mapType,r=T.a.parse(window.location.search);return"map"===t?s.a.createElement("div",{className:m.a.container},s.a.createElement(l.a,{idSelector:w.a[n].idSelector,idCol:w.a[n].idCol}),r.sheetName&&r.sheetName.includes("regional-recovery-map")&&s.a.createElement(p.a,null)):s.a.createElement(u.a,null)}},{key:"render",value:function(){var e=this.props,t=e.geojson,n=e.mapType;return null===t?s.a.createElement(v.a,null):s.a.createElement(g.a,null,s.a.createElement("div",{className:m.a.container},s.a.createElement(c.a,{nameSelector:w.a[n].nameSelector}),s.a.createElement(_.a,null),this.renderContent()))}}]),t}(s.a.Component),S=function(e){return{geojson:Object(h.k)(e),activePage:Object(h.e)(e),mapType:Object(h.o)(e)}};C.defaultProps={mapType:"lga"},C.propTypes={getGeoJSON:x.a.func.isRequired,getAllProjects:x.a.func.isRequired,mapType:x.a.string.isRequired,activePage:x.a.string,geojson:x.a.object};var k={getGeoJSON:f.b,getAllProjects:f.a};t.a=Object(y.b)(S,k)(C)},function(e,t,n){"use strict";var r=n(158);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=n(0),i=n.n(o),a=n(1),s=n.n(a),l=n(21),u=n(37),c=n(22),p=n(80),f=n(23),h=n(77),d=n.n(h),m=n(190),y=n.n(m),g=n(191),v=n.n(g),_=n(79),b=n.n(_),x=n(193),w=n.n(x),E=n(194),T=n.n(E),O=n(81),C=n(25),S=n(119),k=n.n(S),A=n(120),P=n.n(A),R=n(238),D=n(239),I=(n.n(D),n(24)),M=n.n(I),L=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),j=[140.99927903600008,-37.50507657099996,153.63883173500005,-28.157020554999974],z=M.a.parse(window.location.search),F=function(e){var t=e&&y()(v()(e));return function(n){if(!e)return!1;var r=b()(Object(f.a)(n));return!!d()(r,t)&&d()(r,e)}},N={zoom:10,width:window.innerWidth,height:z.sheetName&&z.sheetName.includes("regional-recovery-map")?window.innerHeight-45:window.innerHeight},B=new C.a(N).fitBounds([j.slice(0,2),j.slice(2,4)],{padding:{top:10,bottom:10,left:10,right:10}}),U=function(e){var t=Object(o.useState)(),n=L(t,2),a=n[0],s=n[1],l=Object(o.useState)(),c=L(l,2),h=c[0],d=c[1],m=Object(o.useState)(B),y=L(m,2),g=y[0],_=y[1],x=Object(o.useState)(),E=L(x,2),S=E[0],A=E[1],D=e.idSelector,I=e.activeFeature,M=e.searchedLocation,j=e.geojson,N=e.isFramed,U=e.isMultiple,V=e.basemap,H=e.projects,q=e.setActiveProject,G=e.activeMultipleProject;Object(o.useEffect)(function(){if(!I)return void _(Object.assign({},B,{transitionInterpolator:new O.a,transitionDuration:200}));var e=v()(I),t=new C.a(g).fitBounds([e.slice(0,2),e.slice(2,4)],{padding:{top:10,bottom:10,left:10,right:10}});_(function(e){return Object.assign({},e,t,{transitionInterpolator:new O.a,transitionDuration:200})})},[I]);var W=function(){return"ROADMAP"===V?k.a:P.a}(),Z=function(t){if(!t)return void(I&&Object(u.a)(null));var n=j.features.find(function(e){return D(e)===D(t)});
1D(t)!==D(I)&&e.setActiveFeature(n)},K=z.sheetName?"/index.html?sheetName="+z.sheetName:"/index.html",X=N&&i.a.createElement("a",{className:w.a.fullscreenButton,target:"_parent",href:K},i.a.createElement("img",{src:T.a,alt:""}));return i.a.createElement(O.g,Object.assign({onViewportChange:function(e){_(e)}},g,{mapboxApiAccessToken:"pk.eyJ1Ijoic21hbGxtdWx0aXBsZXMiLCJhIjoiY2swZDRqNzF5MDQ4YzNub2M5OThkaXB2dyJ9.ezZI2kiNzsVANAvJVwUEHQ",interactiveLayerIds:["fills"],onHover:function(e){if(!e.features||0===e.features.length)return void(S&&A());A(e.features[0])},onClick:function(e){if(a&&s(null),h&&d(null),!e.features||0===e.features.length)return void(I&&Z(null));Z(e.features[0])},width:"100%",height:z.sheetName&&z.sheetName.includes("regional-recovery-map")?window.innerHeight-45:window.innerHeight,mapStyle:Object.assign({},W,{sources:Object.assign({},W.sources,{fills:{type:"geojson",data:j},points:{type:"geojson",data:{type:"FeatureCollection",features:H.map(function(e){return b()(Object(f.a)(e),e)})}}}),layers:[].concat(r(W.layers),[{id:"fills",type:"fill",source:"fills",paint:{"fill-opacity":.3,"fill-color":["case",["==",["get",e.idCol],D(S)||null],"#0082be",["==",["get",e.idCol],D(I)||null],"#0082be","transparent"]}},{id:"borders",type:"line",source:"fills",paint:{"line-color":"#0082be"}}])})}),i.a.createElement(O.e,{redraw:function(e){var t=e.project,n=F(I);return H.map(function(e,r){if("Re-build Urunga Tidal Pool"===e.Project)return null;var o=t([parseFloat(e.Longitude),parseFloat(e.Latitude)]),a=L(o,2),l=a[0],u=a[1],c=I?D(I.properties):"no region",f={width:24,height:32};"Y"===e["Multiple locations"]&&(f={width:32,height:48});var h=i.a.createElement("circle",{onClick:function(t){return q(e)},onMouseEnter:function(t){return d(e)},onMouseLeave:function(e){return d(null)},key:"circle"+c+e.Project+r,"data-key":"circle"+c+e.Project+r,cx:l,cy:u,r:4,fill:"red"}),m=i.a.createElement("image",{onClick:function(t){return q(e)},onMouseEnter:function(t){return s(e)},onMouseLeave:function(e){return s(null)},key:c+e.Project+r,xlinkHref:"Y"===e["Multiple locations"]?"img-multiple"+Object(p.b)(e.fundName):Object(p.b)(e.fundName),height:f.height,x:l,y:u,width:f.width,"data-key":"circle"+c+e.Project+r,style:{transform:"translate(-"+f.width/2+"px,-"+f.height+"px)"}});return U?e.ID===G.ID?m:h:n(e)?m:h})}}),X,M&&i.a.createElement(O.b,{latitude:M[1],longitude:M[0]},i.a.createElement("img",{style:{transform:"translate(-50%, -50%)"},alt:"Marker icon, a star",src:"/img/star.svg"})),i.a.createElement("div",{className:w.a.navigationControlBtns},i.a.createElement(O.c,{showCompass:!1})),i.a.createElement(R.a,{item:h||a,offsetTop:Boolean(a)?-32:-4,nameSelector:function(e){return e.Project}}))},V={type:s.a.string.isRequired,geometry:s.a.object.isRequired,properties:s.a.object.isRequired};U.propTypes={idSelector:s.a.func.isRequired,projects:s.a.arrayOf(s.a.shape(f.c)),activeFeature:s.a.shape(V),setActiveFeature:s.a.func.isRequired,setActiveProject:s.a.func.isRequired,searchedLocation:s.a.arrayOf(s.a.number),isFramed:s.a.bool,isMultiple:s.a.bool,basemap:s.a.string.isRequired,idCol:s.a.string.isRequired,geojson:s.a.shape({type:s.a.string.isRequired,features:s.a.arrayOf(s.a.shape({type:s.a.string.isRequired,geometry:s.a.object.isRequired,properties:s.a.object.isRequired}).isRequired)}),activeMultipleProject:s.a.shape(f.c)};var H=function(e){return{activeFeature:Object(c.b)(e),searchedLocation:Object(c.q)(e),projects:Object(c.i)(e),isFramed:Object(c.l)(e),isMultiple:Object(c.n)(e),geojson:Object(c.k)(e),basemap:Object(c.h)(e),activeMultipleProject:Object(c.d)(e)}},q={setActiveFeature:u.a,setActiveProject:u.d};t.a=Object(l.b)(H,q)(U)},function(e,t,n){"use strict";var r=n(160),o=n(161),i=n(162);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,l){if(o(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,s,l],p=0;u=new Error(t.replace(/%s/g,function(){return c[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=(n.n(a),n(1)),l=n.n(s),u=n(99);n(73);t.a=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1],s=n||t+"Subscription",c=function(e){function n(i,a){r(this,n);var s=o(this,e.call(this,i,a));return s[t]=i.store,s}return i(n,e),n.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[s]=null,e},n.prototype.render=function(){return a.Children.only(this.props.children)},n}
1(a.Component);return c.propTypes={store:u.a.isRequired,children:l.a.element.isRequired},c.childContextTypes=(e={},e[t]=u.a.isRequired,e[s]=u.b,e),c}()},function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){var e=[],t=[];return{clear:function(){t=i,e=i},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==i&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}}n.d(t,"a",function(){return s});var i=null,a={notify:function(){}},s=function(){function e(t,n,o){r(this,e),this.store=t,this.parentSub=n,this.onStateChange=o,this.unsubscribe=null,this.listeners=a}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=o())},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=a)},e}()},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function i(e,t){return e===t}var a=n(100),s=n(167),l=n(168),u=n(183),c=n(184),p=n(185),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?a.a:t,h=e.mapStateToPropsFactories,d=void 0===h?u.a:h,m=e.mapDispatchToPropsFactories,y=void 0===m?l.a:m,g=e.mergePropsFactories,v=void 0===g?c.a:g,_=e.selectorFactory,b=void 0===_?p.a:_;return function(e,t,a){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=l.pure,c=void 0===u||u,p=l.areStatesEqual,h=void 0===p?i:p,m=l.areOwnPropsEqual,g=void 0===m?s.a:m,_=l.areStatePropsEqual,x=void 0===_?s.a:_,w=l.areMergedPropsEqual,E=void 0===w?s.a:w,T=r(l,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),O=o(e,d,"mapStateToProps"),C=o(t,y,"mapDispatchToProps"),S=o(a,v,"mergeProps");return n(b,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:O,initMapDispatchToProps:C,initMergeProps:S,pure:c,areStatesEqual:h,areOwnPropsEqual:g,areStatePropsEqual:x,areMergedPropsEqual:E},T))}}()},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!i.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}t.a=o;var i=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";function r(e){return"function"===typeof e?Object(s.b)(e,"mapDispatchToProps"):void 0}function o(e){return e?void 0:Object(s.a)(function(e){return{dispatch:e}})}function i(e){return e&&"object"===typeof e?Object(s.a)(function(t){return Object(a.b)(e,t)}):void 0}var a=n(41),s=n(106);t.a=[r,o,i]},function(e,t,n){"use strict";function r(e){return null==e?void 0===e?l:s:u&&u in Object(e)?Object(i.a)(e):Object(a.a)(e)}var o=n(103),i=n(172),a=n(173),s="[object Null]",l="[object Undef
1ined]",u=o.a?o.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";var r=n(171),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(t,n(15))},function(e,t,n){"use strict";function r(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[l]=n:delete e[l]),o}var o=n(103),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,l=o.a?o.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";function r(e){return i.call(e)}var o=Object.prototype,i=o.toString;t.a=r},function(e,t,n){"use strict";var r=n(175),o=Object(r.a)(Object.getPrototypeOf,Object);t.a=o},function(e,t,n){"use strict";function r(e,t){return function(n){return e(t(n))}}t.a=r},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t,n){"use strict";(function(e,r){var o,i=n(179);o="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:r;var a=Object(i.a)(o);t.a=a}).call(t,n(15),n(178)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}t.a=r},function(e,t,n){"use strict";function r(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function o(e){Object.keys(e).forEach(function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:a.a.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+a.a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function i(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var a=t[i];"function"===typeof e[a]&&(n[a]=e[a])}var s=Object.keys(n),l=void 0;try{o(n)}catch(e){l=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(l)throw l;for(var o=!1,i={},a=0;a<s.length;a++){var u=s[a],c=n[u],p=e[u],f=c(p,t);if("undefined"===typeof f){var h=r(u,t);throw new Error(h)}i[u]=f,o=o||f!==p}return o?i:e}}t.a=i;var a=n(102);n(74),n(104)},function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}function o(e,t){if("function"===typeof e)return r(e,t);if("object"!==typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),o={},i=0;i<n.length;i++){var a=n[i],s=e[a];"function"===typeof s&&(o[a]=r(s,t))}return o}t.a=o},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,a){var s=e(n,r,a),l=s.dispatch,u=[],c={getState:s.getState,dispatch:function(e){return l(e)}};return u=t.map(function(e){return e(c)}),l=o.a.apply(void 0,u)(s.dispatch),i({},s,{dispatch:l})}}}t.a=r;var o=n(105),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";function r(e){return"function"===typeof e?Object(i.b)(e,"mapStateToProps"):void 0}function o(e){return e?void 0:Object(i.a)(function(){return{}})}var i=n(106);t.a=[r,o]},function(e,t,n){"use strict";function r(e,t,n){return s({},n,e,t)}function o(e){return function(t,n){var r=(n.displayName,n.pure),o=n.areMergedPropsEqual,i=!1,a=void 0;return function(t,n,s){var l=e(t,n,s);return i?r&&o(l,a)||(a=l):(i=!0,a=l),a}}}function i(e){return"function"===typeof e?o(e):void 0}function a(e){return e?void 0:function(){return r}}var s=(n(107),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e});t.a=[i,a]},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function i(e,t,n,r,o){function i(o,i){return d=o,m=i,y=e(d,m),g=t(r,m),v=n(y,g,m),h=!0,v}
1function a(){return y=e(d,m),t.dependsOnOwnProps&&(g=t(r,m)),v=n(y,g,m)}function s(){return e.dependsOnOwnProps&&(y=e(d,m)),t.dependsOnOwnProps&&(g=t(r,m)),v=n(y,g,m)}function l(){var t=e(d,m),r=!f(t,y);return y=t,r&&(v=n(y,g,m)),v}function u(e,t){var n=!p(t,m),r=!c(e,d);return d=e,m=t,n&&r?a():n?s():r?l():v}var c=o.areStatesEqual,p=o.areOwnPropsEqual,f=o.areStatePropsEqual,h=!1,d=void 0,m=void 0,y=void 0,g=void 0,v=void 0;return function(e,t){return h?u(e,t):i(e,t)}}function a(e,t){var n=t.initMapStateToProps,a=t.initMapDispatchToProps,s=t.initMergeProps,l=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),u=n(e,l),c=a(e,l),p=s(e,l);return(l.pure?i:o)(u,c,p,e,l)}t.a=a;n(186)},function(e,t,n){"use strict";n(73)},function(e,t,n){"use strict";n.d(t,"d",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return p});var r=n(23),o=n(108),i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a={geojson:null,projectsByFundName:{}};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case"PROJECT:ALL:REQUEST":return e;case"GEOJSON:REQUEST":return Object.assign({},e,{geojson:null});case"GEOJSON:SUCCESS":return Object.assign({},e,{geojson:t.payload});case"GEOJSON:FAILURE":case"PROJECT:ALL:FAILURE":return console.error(t.payload),Object.assign({},e,{error:t.payload});case"PROJECT:ALL:SUCCESS":var n=t.payload.reduce(function(e,t){var n=t.fundName,o=t.data;return e[n]=o.filter(r.b),e},{});return Object.assign({},e,{projectsByFundName:n});default:return e}};var s=function(e){return function(t){return Object.assign({},t,{fundName:e})}},l=Object(o.a)(function(e){return e.projectsByFundName},function(e){return Object.entries(e).map(function(e){var t=i(e,2),n=t[0];return t[1].map(s(n))}).reduce(function(e,t){return e.concat(t)},[])}),u=function(e){return e.geojson},c=Object(o.a)(function(e){return e},function(e,t){return t},function(e,t,n){return l(n)},function(e,t,n){return t?n.filter(function(e){return e.fundName===t}):e&&e.length>0?n.filter(function(t){return!e.includes(t.fundName)}):n}),p=Object(o.a)(function(e){return e.projectsByFundName},function(e){return Object.keys(e)})},function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"l",function(){return l}),n.d(t,"m",function(){return u}),n.d(t,"f",function(){return c}),n.d(t,"d",function(){return p}),n.d(t,"c",function(){return f}),n.d(t,"e",function(){return h}),n.d(t,"h",function(){return d}),n.d(t,"j",function(){return m}),n.d(t,"k",function(){return y}),n.d(t,"n",function(){return g}),n.d(t,"i",function(){return v}),n.d(t,"g",function(){return _});var r=n(24),o=n.n(r),i=o.a.parse(window.location.search),a={activeFeature:null,searchBarVisible:!1,searchedLocation:null,activePage:"map",activeFilters:[],basemap:"ROADMAP",viewingFund:i.fund,isFramed:window.self!==window.top,isMultiple:!1,mapType:i.mapType||"lga",internal:"true"===i.internal};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case"ACTIVE_FEATURE:SET":return Object.assign({},e,{searchedLocation:null,activeFeature:t.payload,isMultiple:!1,activeMultipleProject:null});case"SEARCH_BAR_VISIBLE:SET":return Object.assign({},e,{searchBarVisible:t.payload});case"SEARCHED_LOCATION:SET":return Object.assign({},e,{searchedLocation:t.payload});case"ACTIVE_PROJECT:SET":return Object.assign({},e,{activeProject:t.payload,isMultiple:!1,activeMultipleProject:null});case"ACTIVE_FILTER:SET":var n=e.activeFilters,r=n.includes(t.payload)?n.filter(function(e){return e!==t.payload}):n.concat(t.payload);return Object.assign({},e,{activeFilters:r});case"ACTIVE_PAGE:SET":return Object.assign({},e,{activePage:t.payload});case"MAP_TYPE:SET":return Object.assign({},e,{mapType:t.payload});
1case"MAP:SET_BASEMAP":return Object.assign({},e,{basemap:t.payload});case"IS_MULTIPLE:SET":return Object.assign({},e,{isMultiple:!!t.payload,activeMultipleProject:t.payload,activeProject:null,activeFeature:null});default:return e}};var s=function(e){return e.activeFeature},l=function(e){return e.searchBarVisible},u=function(e){return e.searchedLocation},c=function(e){return e.activeProject},p=function(e){return e.activeMultipleProject},f=function(e){return e.activeFilters},h=function(e){return e.activePage},d=function(e){return e.isFramed},m=function(e){return e.isMultiple},y=function(e){return e.mapType},g=function(e){return e.viewingFund},v=function(e){return e.internal},_=function(e){return e.basemap}},function(e,t,n){"use strict";function r(e){if(!e)throw new Error("coord is required");if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates;if(Array.isArray(e)&&e.length>=2&&void 0===e[0].length&&void 0===e[1].length)return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function o(e){if(!e)throw new Error("coords is required");if("Feature"===e.type&&null!==e.geometry)return e.geometry.coordinates;if(e.coordinates)return e.coordinates;if(Array.isArray(e))return e;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function i(e){if(e.length>1&&Object(f.isNumber)(e[0])&&Object(f.isNumber)(e[1]))return!0;if(Array.isArray(e[0])&&e[0].length)return i(e[0]);throw new Error("coordinates must only contain numbers")}function a(e,t,n){if(!t||!n)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.type)}function s(e,t,n){if(!e)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!e||"Feature"!==e.type||!e.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!e.geometry||e.geometry.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.geometry.type)}function l(e,t,n){if(!e)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0;r<e.features.length;r++){var o=e.features[r];if(!o||"Feature"!==o.type||!o.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!o.geometry||o.geometry.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+o.geometry.type)}}function u(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}function c(){throw new Error("invariant.getGeomType has been deprecated in v5.0 in favor of invariant.getType")}function p(e,t){if(!e)throw new Error((t||"geojson")+" is required");if(e.geometry&&e.geometry.type)return e.geometry.type;if(e.type)return e.type;throw new Error((t||"geojson")+" is invalid")}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoord=r,t.getCoords=o,t.containsNumber=i,t.geojsonType=a,t.featureOf=s,t.collectionOf=l,t.getGeom=u,t.getGeomType=c,t.getType=p;var f=n(78);n.n(f)},function(e,t,n){"use strict";function r(e,t){void 0===t&&(t={});var n=Number(e[0]),r=Number(e[1]),i=Number(e[2]),a=Number(e[3]);if(6===e.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var s=[n,r],l=[n,a],u=[i,a],c=[i,r];return o.polygon([[s,c,u,l,s]],t.properties,{bbox:e,id:t.id})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(78);t.default=r},function(e,t,n){"use strict";function r(e){var t=[1/0,1/0,-1/0,-1/0];return o.coordEach(e,function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])}),t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(192);t.default=r},function(e,t,n){"use strict";function r(e,t,n){if(null!==e)for(var o,i,a,s,l,u,c,p,f=0,h=0,d=e.type,m="FeatureCollection"===d,y="Feature"===d,g=m?e.features.length:1,v=0;v<g;v++){c=m?e.features[v].geometry:y?e.geometry:e,p=!!c&&"GeometryCollection"===c.type,l=p?c.geometries.length:1;for(var _=0;_<l;_++){var b=0,x=0;if(null!==(s=p?c.geometries[_]:c)){u=s.coordinates;var w=s.type;switch(f=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===t(u,h,v,b,x))return!1;h++,b++;break;case"LineString":case"MultiPoint":for(o=0;o<u.length;o++){if(!1===t(u[o],h,v,b,x))return!1;h++,"MultiPoint"===w&&b++}"LineString"===w&&b++;break;case"Polygon":case"MultiLineString":for(o=0;o<u.length;o++){for(i=0;i<u[o].length-f;i++){if(!1===t(u[o][i],h,v,b,x))return!1;h++}"MultiLineString"===w&&b++,"Polygon"===w&&x++}"Polygon"===w&&b++;break;case"MultiPolygon":for(o=0;o<u.length;o++){for("MultiPolygon"===w&&(x=0),i=0;i<u[o].length;i++){for(a=0;a<u[o][i].length-f;a++){if(!1===t(u[o][i][a],h,v,b,x))return!1;h++}x++}b++}break;case"GeometryCollection":for(o=0;o<s.geometries.length;o++)if(!1===r(s.geometries[o],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(e,t,n,o){var i=n;return r(e,function(e,r,o,a,s){i=0===r&&void 0===n?e:t(i,e,r,o,a,s)},o),i}function i(e,t){var n;switch(e.type){case"FeatureCollection":for(n=0;n<e.features.length&&!1!==t(e.features[n].properties,n);n++);break;case"Feature":t(e.properties,0)}}function a(e,t,n){var r=n;return i(e,function(e,o){r=0===o&&void 0===n?e:t(r,e,o)}),r}function s(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var n=0;n<e.features.length&&!1!==t(e.features[n],n);n++);}function l(e,t,n){var r=n;return s(e,function(e,o){r=0===o&&void 0===n?e:t(r,e,o)}),r}function u(e){var t=[];return r(e,function(e){t.push(e)}),t}function c(e,t){var n,r,o,i,a,s,l,u,c,p,f=0,h="FeatureCollection"===e.type,d="Feature"===e.type,m=h?e.features.length:1;for(n=0;n<m;n++){for(s=h?e.features[n].geometry:d?e.geometry:e,u=h?e.features[n].properties:d?e.properties:{},c=h?e.features[n].bbox:d?e.bbox:void 0,p=h?e.features[n].id:d?e.id:void 0,l=!!s&&"GeometryCollection"===s.type,a=l?s.geometries.length:1,o=0;o<a;o++)if(null!==(i=l?s.geometries[o]:s))switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(i,f,u,c,p))return!1;break;case"GeometryCollection":for(r=0;r<i.geometries.length;r++)if(!1===t(i.geometries[r],f,u,c,p))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,f,u,c,p))return!1;f++}}function p(e,t,n){var r=n;return c(e,function(e,o,i,a,s){r=0===o&&void 0===n?e:t(r,e,o,i,a,s)}),r}function f(e,t){c(e,function(e,n,r,o,i){var a=null===e?null:e.type;switch(a){case null:case"Point":case"LineString":case"Polygon":if(!1===t(Object(b.feature)(e,r,{bbox:o,id:i}
1),n,0))return!1;return}var s;switch(a){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}for(var l=0;l<e.coordinates.length;l++){var u=e.coordinates[l],c={type:s,coordinates:u};if(!1===t(Object(b.feature)(c,r),n,l))return!1}})}function h(e,t,n){var r=n;return f(e,function(e,o,i){r=0===o&&0===i&&void 0===n?e:t(r,e,o,i)}),r}function d(e,t){f(e,function(e,n,o){var i=0;if(e.geometry){var a=e.geometry.type;if("Point"!==a&&"MultiPoint"!==a){var s;return!1!==r(e,function(r,a,l,u,c){if(void 0===s)return void(s=r);var p=Object(b.lineString)([s,r],e.properties);if(!1===t(p,n,o,c,i))return!1;i++,s=r})&&void 0}}})}function m(e,t,n){var r=n,o=!1;return d(e,function(e,i,a,s,l){r=!1===o&&void 0===n?e:t(r,e,i,a,s,l),o=!0}),r}function y(e,t){if(!e)throw new Error("geojson is required");f(e,function(e,n,r){if(null!==e.geometry){var o=e.geometry.type,i=e.geometry.coordinates;switch(o){case"LineString":if(!1===t(e,n,r,0,0))return!1;break;case"Polygon":for(var a=0;a<i.length;a++)if(!1===t(Object(b.lineString)(i[a],e.properties),n,r,a))return!1}}})}function g(e,t,n){var r=n;return y(e,function(e,o,i,a){r=0===o&&void 0===n?e:t(r,e,o,i,a)}),r}function v(e,t){if(t=t||{},!Object(b.isObject)(t))throw new Error("options is invalid");var n,r=t.featureIndex||0,o=t.multiFeatureIndex||0,i=t.geometryIndex||0,a=t.segmentIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":r<0&&(r=e.features.length+r),s=s||e.features[r].properties,n=e.features[r].geometry;break;case"Feature":s=s||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var l=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=l.length+a-1),Object(b.lineString)([l[a],l[a+1]],s,t);case"Polygon":return i<0&&(i=l.length+i),a<0&&(a=l[i].length+a-1),Object(b.lineString)([l[i][a],l[i][a+1]],s,t);case"MultiLineString":return o<0&&(o=l.length+o),a<0&&(a=l[o].length+a-1),Object(b.lineString)([l[o][a],l[o][a+1]],s,t);case"MultiPolygon":return o<0&&(o=l.length+o),i<0&&(i=l[o].length+i),a<0&&(a=l[o][i].length-a-1),Object(b.lineString)([l[o][i][a],l[o][i][a+1]],s,t)}throw new Error("geojson is invalid")}function _(e,t){if(t=t||{},!Object(b.isObject)(t))throw new Error("options is invalid");var n,r=t.featureIndex||0,o=t.multiFeatureIndex||0,i=t.geometryIndex||0,a=t.coordIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":r<0&&(r=e.features.length+r),s=s||e.features[r].properties,n=e.features[r].geometry;break;case"Feature":s=s||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var l=n.coordinates;switch(n.type){case"Point":return Object(b.point)(l,s,t);case"MultiPoint":return o<0&&(o=l.length+o),Object(b.point)(l[o],s,t);case"LineString":return a<0&&(a=l.length+a),Object(b.point)(l[a],s,t);case"Polygon":return i<0&&(i=l.length+i),a<0&&(a=l[i].length+a),Object(b.point)(l[i][a],s,t);case"MultiLineString":return o<0&&(o=l.length+o),a<0&&(a=l[o].length+a),Object(b.point)(l[o][a],s,t);case"MultiPolygon":return o<0&&(o=l.length+o),i<0&&(i=l[o].length+i),a<0&&(a=l[o][i].length-a),Object(b.point)(l[o][i][a],s,t)}throw new Error("geojson is invalid")}Object.defineProperty(t,"__esModule",{value:!0}),t.coordEach=r,t.coordReduce=o,t.propEach=i,t.propReduce=a,t.featureEach=s,t.featureReduce=l,t.coordAll=u,t.geomEach=c,t.geomReduce=p,t.flattenEach=f,t.flattenReduce=h,t.segmentEach=d,t.segmentReduce=m,t.lineEach=y,t.lineReduce=g,t.findSegment=v,t.findPoint=_;var b=n(78);n.n(b)},function(e,t){e.exports={fullscreenButton:"map-module__fullscreenButton___L_zZB",leafletMap:"map-module__leafletMap___1vpz-",region:"map-module__region___1AgaV",navigationControlBtns:"map-module__navigationControlBtns___2rBWn"}},function(e,t,n){e.exports=n.p+"static/media/fullscreen.3985d4d5.svg"},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return(o="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}t.a=o},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.a=r},function(e,t,n){"use strict";function r(){}function o(){}var i=n(198);o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;
1var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e){if(!e)return null;if("string"===typeof e)return e;e.toJS&&(e=e.toJS());var t=e.layers.reduce(function(e,t){return Object.assign(e,Object(o.a)({},t.id,t))},{});return e.layers=e.layers.map(function(e){e=Object.assign({},e),delete e.interactive;var n=t[e.ref];return n&&(delete e.ref,void 0!==n.type&&(e.type=n.type),void 0!==n.source&&(e.source=n.source),void 0!==n["source-layer"]&&(e["source-layer"]=n["source-layer"]),void 0!==n.minzoom&&(e.minzoom=n.minzoom),void 0!==n.maxzoom&&(e.maxzoom=n.maxzoom),void 0!==n.filter&&(e.filter=n.filter),void 0!==n.layout&&(e.layout=e.layout||{},e.layout=Object.assign({},e.layout,n.layout))),e}),e}t.a=r;var o=n(5)},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(14),o=n(2),i=n(3),a=n(42),s=n(39),l=n(111),u=Object(a.a)(),c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width,r=t.height,i=t.viewMatrix,s=void 0===i?u:i,c=t.projectionMatrix,p=void 0===c?u:c;Object(o.a)(this,e),this.width=n||1,this.height=r||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=s,this.projectionMatrix=p;var f=Object(a.a)();l.c(f,f,this.projectionMatrix),l.c(f,f,this.viewMatrix),this.viewProjectionMatrix=f;var h=Object(a.a)();l.g(h,h,[this.width/2,-this.height/2,1]),l.h(h,h,[1,-1,0]),l.c(h,h,this.viewProjectionMatrix);var d=l.b(Object(a.a)(),h);if(!d)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=h,this.pixelUnprojectionMatrix=d,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return Object(i.a)(e,[{key:"equals",value:function(t){return t instanceof e&&(t.width===this.width&&t.height===this.height&&l.a(t.projectionMatrix,this.projectionMatrix)&&l.a(t.viewMatrix,this.viewMatrix))}},{key:"project",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,o=void 0===n||n,i=this.projectPosition(e),a=Object(s.h)(i,this.pixelProjectionMatrix),l=Object(r.a)(a,2),u=l[0],c=l[1],p=o?c:this.height-c;return 2===e.length?[u,p]:[u,p,a[2]]}},{key:"unproject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,o=void 0===n||n,i=t.targetZ,a=Object(r.a)(e,3),l=a[0],u=a[1],c=a[2],p=o?u:this.height-u,f=i&&i*this.pixelsPerMeter,h=Object(s.e)([l,p,c],this.pixelUnprojectionMatrix,f),d=this.unprojectPosition(h),m=Object(r.a)(d,3),y=m[0],g=m[1],v=m[2];return Number.isFinite(c)?[y,g,v]:Number.isFinite(i)?[y,g,i]:[y,g]}},{key:"projectPosition",value:function(e){var t=this.projectFlat(e),n=Object(r.a)(t,2);return[n[0],n[1],(e[2]||0)*this.pixelsPerMeter]}},{key:"unprojectPosition",value:function(e){var t=this.unprojectFlat(e),n=Object(r.a)(t,2);return[n[0],n[1],(e[2]||0)/this.pixelsPerMeter]}},{key:"projectFlat",value:function(e){arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return e}},{key:"unprojectFlat",value:function(e){arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return e}}]),e}()},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}t.a=r},function(e,t,n){"use strict";function r(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}t.a=r},function(e,t,n){"use strict";
1function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}t.a=r},function(e,t,n){"use strict";function r(){var e=new a.a(4);return a.a!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function o(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function i(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3];return e[0]=n[0]*r+n[4]*o+n[8]*i+n[12]*a,e[1]=n[1]*r+n[5]*o+n[9]*i+n[13]*a,e[2]=n[2]*r+n[6]*o+n[10]*i+n[14]*a,e[3]=n[3]*r+n[7]*o+n[11]*i+n[15]*a,e}t.a=o,t.b=i;var a=n(43);!function(){var e=r()}()},function(e,t,n){"use strict";function r(){var e=new i.a(3);return i.a!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function o(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}t.a=o;var i=n(43);!function(){var e=r()}()},function(e,t,n){"use strict";function r(e){var t=e.width,n=e.height,r=e.longitude,l=e.latitude,u=e.zoom,c=e.pitch,p=void 0===c?0:c,f=e.bearing,h=void 0===f?0:f;(r<-180||r>180)&&(r=Object(i.c)(r+180,360)-180),(h<-180||h>180)&&(h=Object(i.c)(h+180,360)-180);var d=new o.a({width:t,height:n,longitude:r,latitude:l,zoom:u}),m=d.project([r,a])[1],y=d.project([r,s])[1],g=0;return y-m<n&&(u+=Math.log2(n/(y-m)),d=new o.a({width:t,height:n,longitude:r,latitude:l,zoom:u}),m=d.project([r,a])[1],y=d.project([r,s])[1]),m>0?g=m:y<n&&(g=y-n),g&&(l=d.unproject([t/2,n/2+g])[1]),{width:t,height:n,longitude:r,latitude:l,zoom:u,pitch:p,bearing:h}}t.a=r;var o=n(38),i=n(42),a=85.05113,s=-85.05113},function(e,t,n){"use strict";function r(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c={},p=o(e,t,r),f=p.startZoom,h=p.startCenterXY,d=p.uDelta,m=p.w0,y=p.u1,g=p.S,v=p.rho,_=p.rho2,b=p.r0;if(Math.abs(y)<l){for(var x=0,w=u;x<w.length;x++){var E=w[x],T=e[E],O=t[E];c[E]=Object(i.b)(T,O,n)}return c}var C=n*g,S=Math.cosh(b)/Math.cosh(b+v*C),k=m*((Math.cosh(b)*Math.tanh(b+v*C)-Math.sinh(b))/_)/y,A=1/S,P=f+Object(a.f)(A),R=s.e([],d,k);s.a(R,R,h),s.e(R,R,A);var D=Object(a.g)(R,Object(a.i)(P));return c.longitude=D[0],c.latitude=D[1],c.zoom=P,c}function o(e,t,n){n=Object.assign({},c,n);var r=n.curve,o=e.zoom,i=[e.longitude,e.latitude],l=Object(a.i)(o),u=t.zoom,p=[t.longitude,t.latitude],f=Object(a.i)(u-o),h=Object(a.d)(i,l),d=Object(a.d)(p,l),m=s.f([],d,h),y=Math.max(e.width,e.height),g=y/f,v=s.b(m),_=r*r,b=(g*g-y*y+_*_*v*v)/(2*y*_*v),x=(g*g-y*y-_*_*v*v)/(2*g*_*v),w=Math.log(Math.sqrt(b*b+1)-b),E=Math.log(Math.sqrt(x*x+1)-x);return{startZoom:o,startCenterXY:h,uDelta:m,w0:y,u1:v,S:(E-w)/r,rho:r,rho2:_,r0:w,r1:E}}t.a=r;var i=n(42),a=n(39),s=n(82),l=.01,u=["longitude","latitude","zoom"],c={curve:1.414,speed:1.2}},function(e,t,n){"use strict";(function(e){function r(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof self?self:e;var r="undefined"!==typeof document&&document.attachEvent;if(!r){var o=function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),i=function(){var e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}(),a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},l=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&i(this.__resizeRAF__),this.__resizeRAF__=o(function(){s(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},u=!1,c="",p="animationstart",f="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="",m=document.createElement("fakeelement");if(void 0!==m.style.animationName&&(u=!0),!1===u)for(var y=0;y<f.length;y++)if(void 0!==m.style[f[y]+"AnimationName"]){d=f[y],c="-"+d.toLowerCase()+"-",p=h[y],u=!0;break}var g="resizeanim",v="@"+c+"keyframes "+g+" { from { opacity: 0; } to { opacity: 0; } } ",_=c+"animation: 1ms "+g+"; "}var b=function(e){if(!e.getElementById("detectElementResize")){var n=(v||"")+".resize-triggers { "+(_||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],o=e.createElement("style");o.id="detectElementResize",o.type="text/css",null!=t&&o.setAttribute("nonce",t),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(e.createTextNode(n)),r.appendChild(o)}};return{addResizeListener:function(e,t){if(r)e.attachEvent("onresize",t);else{if(!e.__resizeTriggers__){var o=e.ownerDocument,i=n.getComputedStyle(e);i&&"static"==i.position&&(e.style.position="relative"),b(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',e.appendChild(e.__resizeTriggers__),a(e),e.addEventListener("scroll",l,!0),p&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==g&&a(e)},e.__resizeTriggers__.addEventListener(p,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(t)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(p,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}var o=n(0),i=(n.n(o),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},c=function(e){function t(){var e,n,r,o;i(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var i=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,u=parseInt(s.paddingRight,10)||0,c=parseInt(s.paddingTop,10)||0,p=parseInt(s.paddingBottom,10)||0,f=i-c-p,h=a-l-u;(!t&&r.state.height!==f||!n&&r.state.width!==h)&&(r.setState({height:i-c-p,width:a-l-u}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},o=n,u(r,o)}
1return l(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=r(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,i=e.disableWidth,a=e.style,l=this.state,u=l.height,c=l.width,p={overflow:"visible"},f={},h=!1;return r||(0===u&&(h=!0),p.height=0,f.height=u),i||(0===c&&(h=!0),p.width=0,f.width=c),Object(o.createElement)("div",{className:n,ref:this._setRef,style:s({},p,a)},!h&&t(f))}}]),t}(o.PureComponent);c.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},t.a=c}).call(t,n(15))},function(e,t,n){"use strict";(function(e){function r(){}function o(e){e&&console.error(e.error)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"component";e.debug&&c.a.checkPropTypes(f,e,"prop",t)}n.d(t,"a",function(){return d});var a=n(2),s=n(3),l=n(5),u=n(11),c=n.n(u),p=n(83),f={container:c.a.object,gl:c.a.object,mapboxApiAccessToken:c.a.string,mapboxApiUrl:c.a.string,attributionControl:c.a.bool,preserveDrawingBuffer:c.a.bool,reuseMaps:c.a.bool,transformRequest:c.a.func,mapOptions:c.a.object,mapStyle:c.a.oneOfType([c.a.string,c.a.object]),visible:c.a.bool,asyncRender:c.a.bool,onLoad:c.a.func,onError:c.a.func,width:c.a.number,height:c.a.number,viewState:c.a.object,longitude:c.a.number,latitude:c.a.number,zoom:c.a.number,bearing:c.a.number,pitch:c.a.number,altitude:c.a.number},h={container:p.a.body,mapboxApiAccessToken:function(){var t=null;if("undefined"!==typeof window&&window.location){var n=window.location.search.match(/access_token=([^&\/]*)/);t=n&&n[1]}return t||"undefined"===typeof e||(t=t||Object({NODE_ENV:"production",PUBLIC_URL:"",URL:"https://dpc-regional-growth.netlify.app",REACT_APP_MAPBOX_API_TOKEN:"pk.eyJ1Ijoic21hbGxtdWx0aXBsZXMiLCJhIjoiY2swZDRqNzF5MDQ4YzNub2M5OThkaXB2dyJ9.ezZI2kiNzsVANAvJVwUEHQ"}).MapboxAccessToken||Object({NODE_ENV:"production",PUBLIC_URL:"",URL:"https://dpc-regional-growth.netlify.app",REACT_APP_MAPBOX_API_TOKEN:"pk.eyJ1Ijoic21hbGxtdWx0aXBsZXMiLCJhIjoiY2swZDRqNzF5MDQ4YzNub2M5OThkaXB2dyJ9.ezZI2kiNzsVANAvJVwUEHQ"}).REACT_APP_MAPBOX_ACCESS_TOKEN),t||"no-token"}(),mapboxApiUrl:"https://api.mapbox.com",preserveDrawingBuffer:!1,attributionControl:!0,reuseMaps:!1,mapOptions:{},mapStyle:"mapbox://styles/mapbox/light-v8",visible:!0,asyncRender:!1,onLoad:r,onError:o,width:0,height:0,longitude:0,latitude:0,zoom:0,bearing:0,pitch:0},d=function(){function e(t){var n=this;if(Object(a.a)(this,e),Object(l.a)(this,"mapboxgl",void 0),Object(l.a)(this,"props",h),Object(l.a)(this,"_map",null),Object(l.a)(this,"width",0),Object(l.a)(this,"height",0),Object(l.a)(this,"_fireLoadEvent",function(){n.props.onLoad({type:"load",target:n._map})}),!t.mapboxgl)throw new Error("Mapbox not available");this.mapboxgl=t.mapboxgl,e.initialized||(e.initialized=!0,this._checkStyleSheet(this.mapboxgl.version)),this._initialize(t)}return Object(s.a)(e,[{key:"finalize",value:function(){return this._destroy(),this}},{key:"setProps",value:function(e){return this._update(this.props,e),this}},{key:"resize",value:function(){return this._map.resize(),this}},{key:"redraw",value:function(){var e=this._map;e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}},{key:"getMap",value:function(){return this._map}},{key:"_reuse",value:function(t){this._map=e.savedMap;var n=this._map.getContainer(),r=t.container;for(r.classList.add("mapboxgl-map");n.childNodes.length>0;)r.appendChild(n.childNodes[0]);this._map._container=r,e.savedMap=null,t.mapStyle&&this._map.setStyle(t.mapStyle,{diff:!1}),this._map.isStyleLoaded()?this._fireLoadEvent():this._map.once("styledata",this._fireLoadEvent)}},{key:"_create",value:function(t){if(t.reuseMaps&&e.savedMap)this._reuse(t);else{if(t.gl){var n=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=function(){return HTMLCanvasElement.prototype.getContext=n,t.gl}}var r={container:t.container,center:[0,0],zoom:8,pitch:0,bearing:0,maxZoom:24,style:t.mapStyle,interactive:!1,trackResize:!1,attributionControl:t.attributionControl,preserveDrawingBuffer:t.preserveDrawingBuffer};t.transformRequest&&(r.transformRequest=t.transformRequest),this._map=new this.mapboxgl.Map(Object.assign({},r,t.mapOptions)),this._map.once("load",t.onLoad),this._map.on("error",t.onError)}return this}},{key:"_destroy",value:function(){this._map&&(e.savedMap?this._map.remove():(e.savedMap=this._map,this._map.off("load",this.props.onLoad),this._map.off("error",this.props.onError),this._map.off("styledata",this._fireLoadEvent)),this._map=null)}},{key:"_initialize",value:function(e){var t=this;e=Object.assign({},h,e),i(e,"Mapbox"),this.mapboxgl.accessToken=e.mapboxApiAccessToken||h.mapboxApiAccessToken,this.mapboxgl.baseApiUrl=e.mapboxApiUrl,this._create(e);var n=e,r=n.container;Object.defineProperty(r,"offsetWidth",{get:function(){return t.width}}),Object.defineProperty(r,"clientWidth",{get:function(){return t.width}}),Object.defineProperty(r,"offsetHeight",{get:function(){return t.height}}),Object.defineProperty(r,"clientHeight",{get:function(){return t.height}});var o=this._map.getCanvas();o&&(o.style.outline="none"),this._updateMapViewport({},e),this._updateMapSize({},e),this.props=e}},{key:"_update",value:function(e,t){if(this._map){t=Object.assign({},this.props,t),i(t,"Mapbox");var n=this._updateMapViewport(e,t),r=this._updateMapSize(e,t);t.asyncRender||!n&&!r||this.redraw(),this.props=t}}},{key:"_updateMapSize",value:function(e,t){var n=e.width!==t.width||e.height!==t.height;return n&&(this.width=t.width,this.height=t.height,this.resize()),n}},{key:"_updateMapViewport",value:function(e,t){var n=this._getViewState(e),r=this._getViewState(t),o=r.latitude!==n.latitude||r.longitude!==n.longitude||r.zoom!==n.zoom||r.pitch!==n.pitch||r.bearing!==n.bearing||r.altitude!==n.altitude;return o&&(this._map.jumpTo(this._viewStateToMapboxProps(r)),r.altitude!==n.altitude&&(this._map.transform.altitude=r.altitude)),o}},{key:"_getViewState",value:function(e){var t=e.viewState||e,n=t.longitude,r=t.latitude,o=t.zoom,i=t.pitch,a=void 0===i?0:i,s=t.bearing,l=void 0===s?0:s,u=t.altitude;return{longitude:n,latitude:r,zoom:o,pitch:a,bearing:l,altitude:void 0===u?1.5:u}}},{key:"_checkStyleSheet",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0.47.0";if("undefined"!==typeof p.a)try{var t=p.a.createElement("div");t.className="mapboxgl-map",t.style.display="none",p.a.body.append(t);if(!("static"!==window.getComputedStyle(t).position)){var n=p.a.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("href","https://api.tiles.mapbox.com/mapbox-gl-js/v".concat(e,"/mapbox-gl.css")),p.a.head.append(n)}}catch(e){}}},{key:"_viewStateToMapboxProps",value:function(e){return{center:[e.longitude,e.latitude],zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}}}]),e}();Object(l.a)(d,"initialized",!1),Object(l.a)(d,"propTypes",f),Object(l.a)(d,"defaultProps",h),Object(l.a)(d,"savedMap",null)}
1).call(t,n(210))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){m&&h&&(m=!1,h.length?d=h.concat(d):y=-1,d.length&&s())}function s(){if(!m){var e=o(a);m=!0;for(var t=d.length;t;){for(h=d,d=[];++y<t;)h&&h[y].run();y=-1,t=d.length}h=null,m=!1,i(e)}}function l(e,t){this.fun=e,this.array=t}function u(){}var c,p,f=e.exports={};!function(){try{c="function"===typeof setTimeout?setTimeout:n}catch(e){c=n}try{p="function"===typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var h,d=[],m=!1,y=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new l(e,t)),1!==d.length||m||o(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e,o){if(t)if(n){var i="var sharedChunk = {}; ("+t+")(sharedChunk); ("+n+")(sharedChunk);",a={};t(a),r=o(a),r.workerUrl=window.URL.createObjectURL(new Blob([i],{type:"text/javascript"}))}else n=o;else t=o}var t,n,r;return e(["exports"],function(e){function t(e,t){return e(t={exports:{}},t.exports),t.exports}function n(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=n,this.p2y=r}function r(e,t){this.x=e,this.y=t}function o(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!o(e[n],t[n]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==t){if("object"!=typeof t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!o(e[r],t[r]))return!1;return!0}return e===t}function i(e,t,n,r){var o=new Dr(e,t,n,r);return function(e){return o.solve(e)}}function a(e,t,n){return Math.min(n,Math.max(t,e))}function s(e,t,n){var r=n-t,o=((e-t)%r+r)%r+t;return o===t?n:o}function l(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,o=t;r<o.length;r+=1){var i=o[r];for(var a in i)e[a]=i[a]}return e}function u(){return Nr++}function c(){return function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function p(e){return!!e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}function f(e,t){e.forEach(function(e){t[e]&&(t[e]=t[e].bind(t))})}function h(e,t){return-1!==e.indexOf(t,e.length-t.length)}function d(e,t,n){var r={};for(var o in e)r[o]=t.call(n||this,e[o],o,e);return r}function m(e,t,n){var r={};for(var o in e)t.call(n||this,e[o],o,e)&&(r[o]=e[o]);return r}function y(e){return Array.isArray(e)?e.map(y):"object"==typeof e&&e?d(e,y):e}function g(e){Br[e]||("undefined"!=typeof console&&console.warn(e),Br[e]=!0)}function v(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function _(e){for(var t=0,n=0,r=e.length,o=r-1,i=void 0,a=void 0;n<r;o=n++)i=e[n],t+=((a=e[o]).x-i.x)*(i.y+a.y);return t}function b(e){var t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(e,n,r,o){var i=r||o;return t[n]=!i||i.toLowerCase(),""}),t["max-age"]){var n=parseInt(t["max-age"],10);isNaN(n)?delete t["max-age"]:t["max-age"]=n}return t}function x(e){try{var t=self[e];return t.setItem("_mapbox_test_",1),t.removeItem("_mapbox_test_"),!0}catch(e){return!1}}function w(e){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,zr),e.isContextLost())return;Wr.supported=!0}
1catch(e){}e.deleteTexture(t),Zr=!0}function E(e){return 0===e.indexOf("mapbox:")}function T(e){return Yr.test(e)}function O(e){var t=e.match(Jr);if(!t)throw new Error("Unable to parse URL object");return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}function C(e){var t=e.params.length?"?"+e.params.join("&"):"";return e.protocol+"://"+e.authority+e.path+t}function S(e){if(!e)return null;var t,n=e.split(".");if(!n||3!==n.length)return null;try{return JSON.parse((t=n[1],decodeURIComponent(self.atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(e){return null}}function k(e,t,n){if(self.caches){var r={status:t.status,statusText:t.statusText,headers:new self.Headers};t.headers.forEach(function(e,t){return r.headers.set(t,e)});var o=b(t.headers.get("Cache-Control")||"");o["no-store"]||(o["max-age"]&&r.headers.set("Expires",new Date(n+1e3*o["max-age"]).toUTCString()),new Date(r.headers.get("Expires")).getTime()-n<lo||function(e,t){if(void 0===Qr)try{new Response(new ReadableStream),Qr=!0}catch(e){Qr=!1}Qr?t(e.body):e.blob().then(t)}(t,function(t){var n=new self.Response(t,r);self.caches.open(io).then(function(t){return t.put(A(e.url),n)})}))}}function A(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}function P(e,t){if(!self.caches)return t(null);var n=A(e.url);self.caches.open(io).catch(t).then(function(e){e.match(n).catch(t).then(function(r){var o=function(e){if(!e)return!1;var t=new Date(e.headers.get("Expires")),n=b(e.headers.get("Cache-Control")||"");return t>Date.now()&&!n["no-cache"]}(r);e.delete(n),o&&e.put(n,r.clone()),t(null,r,o)})})}function R(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function D(e,t){var n,r=new self.AbortController,o=new self.Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:mo(),signal:r.signal}),i=!1,a=!1,s=(n=o.url).indexOf("sku=")>0&&T(n);"json"===e.type&&o.headers.set("Accept","application/json");var l=function(n,r,i){if(!a){if(n&&"SecurityError"!==n.message&&g(n),r&&i)return u(r);var l=Date.now();self.fetch(o).then(function(n){if(n.ok){var r=s?n.clone():null;return u(n,r,l)}return t(new ho(n.statusText,n.status,e.url))}).catch(function(e){20!==e.code&&t(new Error(e.message))})}},u=function(n,r,s){("arrayBuffer"===e.type?n.arrayBuffer():"json"===e.type?n.json():n.text()).then(function(e){a||(r&&s&&k(o,r,s),i=!0,t(null,e,n.headers.get("Cache-Control"),n.headers.get("Expires")))}).catch(function(e){return t(new Error(e.message))})};return s?P(o,l):l(null,null),{cancel:function(){a=!0,i||r.abort()}}}function I(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function M(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}function L(e){var t=e.key,n=e.value;return n?[new To(t,n,"constants have been deprecated as of v8")]:[]}function j(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,o=t;r<o.length;r+=1){var i=o[r];for(var a in i)e[a]=i[a]}return e}function z(e){return e instanceof Number||e instanceof String||e instanceof Boolean}function F(e){return z(e)?e.valueOf():e}function N(e){if(Array.isArray(e))return e.map(N);if(e instanceof Object&&!z(e)){var t={};for(var n in e)t[n]=N(e[n]);return t}return F(e)}function B(e,t){return{kind:"array",itemType:e,N:t}}function U(e){if("array"===e.kind){var t=U(e.itemType);return"number"==typeof e.N?"array<"+t+", "+e.N+">":"value"===e.itemType.kind?"array":"array<"+t+">"}return e.kind}function V(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!V(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(var n=0,r=jo;n<r.length;n+=1)if(!V(r[n],t))return null}return"Expected "+U(e)+" but found "+U(t)+" instead."}function H(e,t,n,r){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[e,t,n,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function q(e){if(null===e)return So;if("string"==typeof e)return Ao;if("boolean"==typeof e)return Po;if("number"==typeof e)return ko;if(e instanceof Fo)return Ro;if(e instanceof No)return Mo;if(e instanceof Uo)return Lo;if(Array.isArray(e)){for(var t,n=e.length,r=0,o=e;r<o.length;r+=1){var i=q(o[r]);if(t){if(t===i)continue;t=Io;break}t=i}return B(t||Io,n)}return Do}function G(e){var t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Fo||e instanceof Uo?e.toString():JSON.stringify(e)}function W(e){if(e instanceof Jo){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}var t=!0;return e.eachChild(function(e){t&&!W(e)&&(t=!1)}),t}function Z(e){if(e instanceof Jo&&"feature-state"===e.name)return!1;var t=!0;return e.eachChild(function(e){t&&!Z(e)&&(t=!1)}),t}function K(e,t){if(e instanceof Jo&&t.indexOf(e.name)>=0)return!1;var n=!0;return e.eachChild(function(e){n&&!K(e,t)&&(n=!1)}),n}function X(e,t){for(var n,r,o=e.length-1,i=0,a=o,s=0;i<=a;
1)if(n=e[s=Math.floor((i+a)/2)],r=e[s+1],n<=t){if(s===o||t<r)return s;i=s+1}else{if(!(n>t))throw new Ho("Input is not a number.");a=s-1}return 0}function Y(e,t,n){return e*(1-n)+t*n}function J(e){return e>ui?Math.pow(e,1/3):e/li+ai}function $(e){return e>si?e*e*e:li*(e-ai)}function Q(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ee(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function te(e){var t=ee(e.r),n=ee(e.g),r=ee(e.b),o=J((.4124564*t+.3575761*n+.1804375*r)/ri),i=J((.2126729*t+.7151522*n+.072175*r)/oi);return{l:116*i-16,a:500*(o-i),b:200*(i-J((.0193339*t+.119192*n+.9503041*r)/ii)),alpha:e.a}}function ne(e){var t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=oi*$(t),n=ri*$(n),r=ii*$(r),new Fo(Q(3.2404542*n-1.5371385*t-.4985314*r),Q(-.969266*n+1.8760108*t+.041556*r),Q(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function re(e,t,n){var r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}function oe(e,t,n,r){var o=r-n,i=e-n;return 0===o?0:1===t?i/o:(Math.pow(t,i)-1)/(Math.pow(t,o)-1)}function ie(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function ae(e,t,n,r){return 0===r.compare(t,n)}function se(e,t,n){var r="=="!==e&&"!="!==e;return function(){function o(e,t,n){this.type=Po,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}return o.parse=function(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");var n=e[0],i=t.parse(e[1],1,Io);if(!i)return null;if(!ie(n,i.type))return t.concat(1).error('"'+n+"\" comparisons are not supported for type '"+U(i.type)+"'.");var a=t.parse(e[2],2,Io);if(!a)return null;if(!ie(n,a.type))return t.concat(2).error('"'+n+"\" comparisons are not supported for type '"+U(a.type)+"'.");if(i.type.kind!==a.type.kind&&"value"!==i.type.kind&&"value"!==a.type.kind)return t.error("Cannot compare types '"+U(i.type)+"' and '"+U(a.type)+"'.");r&&("value"===i.type.kind&&"value"!==a.type.kind?i=new Go(a.type,[i]):"value"!==i.type.kind&&"value"===a.type.kind&&(a=new Go(i.type,[a])));var s=null;if(4===e.length){if("string"!==i.type.kind&&"string"!==a.type.kind&&"value"!==i.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(s=t.parse(e[3],3,Mo)))return null}return new o(i,a,s)},o.prototype.evaluate=function(o){var i=this.lhs.evaluate(o),a=this.rhs.evaluate(o);if(r&&this.hasUntypedArgument){var s=q(i),l=q(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new Ho('Expected arguments for "'+e+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!r&&this.hasUntypedArgument){var u=q(i),c=q(a);if("string"!==u.kind||"string"!==c.kind)return t(o,i,a)}return this.collator?n(o,i,a,this.collator.evaluate(o)):t(o,i,a)},o.prototype.eachChild=function(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)},o.prototype.possibleOutputs=function(){return[!0,!1]},o.prototype.serialize=function(){var t=[e];return this.eachChild(function(e){t.push(e.serialize())}),t},o}()}function le(e,t){var n=t[0],r=t[1],o=t[2],i=t[3];n=n.evaluate(e),r=r.evaluate(e),o=o.evaluate(e);var a=i?i.evaluate(e):1,s=H(n,r,o,a);if(s)throw new Ho(s);return new Fo(n/255*a,r/255*a,o/255*a,a)}function ue(e,t){return e in t}function ce(e,t){var n=t[e];return void 0===n?null:n}function pe(e){return{type:e}}function fe(e){return{result:"success",value:e}}function he(e){return{result:"error",value:e}}function de(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function me(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function ye(e){return!!e.expression&&e.expression.interpolated}function ge(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function ve(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function _e(e){return e}function be(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function xe(e,t,n,r,o){return be(typeof n===o?r[n]:void 0,e.default,t.default)}function we(e,t,n){if("number"!==ge(n))return be(e.default,t.default);var r=e.stops.length;if(1===r)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];var o=X(e.stops.map(function(e){return e[0]}),n);return e.stops[o][1]}
vendor: 5,726 bytes, line 1
1function Ee(e,t,n){var r=void 0!==e.base?e.base:1;if("number"!==ge(n))return be(e.default,t.default);var o=e.stops.length;if(1===o)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[o-1][0])return e.stops[o-1][1];var i=X(e.stops.map(function(e){return e[0]}),n),a=function(e,t,n,r){var o=r-n,i=e-n;return 0===o?0:1===t?i/o:(Math.pow(t,i)-1)/(Math.pow(t,o)-1)}(n,r,e.stops[i][0],e.stops[i+1][0]),s=e.stops[i][1],l=e.stops[i+1][1],u=ni[t.type]||_e;if(e.colorSpace&&"rgb"!==e.colorSpace){var c=di[e.colorSpace];u=function(e,t){return c.reverse(c.interpolate(c.forward(e),c.forward(t),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=s.evaluate.apply(void 0,e),r=l.evaluate.apply(void 0,e);if(void 0!==n&&void 0!==r)return u(n,r,a)}}:u(s,l,a)}function Te(e,t,n){return"color"===t.type?n=Fo.parse(n):"formatted"===t.type?n=Uo.fromString(n.toString()):ge(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0),be(n,e.default,t.default)}function Oe(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in Ai}function Ce(e,t){var n=new ei(Ai,[],t?function(e){var t={color:Ro,string:Ao,number:ko,enum:Ao,boolean:Po,formatted:Lo};return"array"===e.type?B(t[e.value]||Io,e.length):t[e.type]}(t):void 0),r=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?fe(new Pi(r,t)):he(n.errors)}function Se(e,t){if("error"===(e=Ce(e,t)).result)return e;var n=e.value.expression,r=W(n);if(!r&&!de(t))return he([new Oo("","data expressions not supported")]);var o=K(n,["zoom"]);if(!o&&!me(t))return he([new Oo("","zoom expressions not supported")]);var i=function e(t){var n=null;if(t instanceof gi)n=e(t.result);else if(t instanceof yi)for(var r=0,o=t.args;r<o.length;r+=1){var i=o[r];if(n=e(i))break}else(t instanceof ti||t instanceof mi)&&t.input instanceof Jo&&"zoom"===t.input.name&&(n=t);return n instanceof Oo?n:(t.eachChild(function(t){var r=e(t);r instanceof Oo?n=r:!n&&r?n=new Oo("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new Oo("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n)}(n);if(!i&&!o)return he([new Oo("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(i instanceof Oo)return he([i]);if(i instanceof mi&&!ye(t))return he([new Oo("",'"interpolate" expressions cannot be used with this property')]);if(!i)return fe(new Ri(r?"constant":"source",e.value));var a=i instanceof mi?i.interpolation:void 0;return fe(new Di(r?"camera":"composite",e.value,i.labels,a))}function ke(e){var t=e.key,n=e.value,r=e.valueSpec||{},o=e.objectElementValidators||{},i=e.style,a=e.styleSpec,s=[],l=ge(n);if("object"!==l)return[new To(t,n,"object expected, "+l+" found")];for(var u in n){var c=u.split(".")[0],p=r[c]||r["*"],f=void 0;if(o[c])f=o[c];else if(r[c])f=Ye;else if(o["*"])f=o["*"];else{if(!r["*"]){s.push(new To(t,n[u],'unknown property "'+u+'"'));continue}f=Ye}s=s.concat(f({key:(t?t+".":t)+u,value:n[u],valueSpec:p,style:i,styleSpec:a,object:n,objectKey:u},n))}for(var h in r)o[h]||r[h].required&&void 0===r[h].default&&void 0===n[h]&&s.push(new To(t,n,'missing required property "'+h+'"'));return s}function Ae(e){var t=e.value,n=e.valueSpec,r=e.style,o=e.styleSpec,i=e.key,a=e.arrayElementValidator||Ye;if("array"!==ge(t))return[new To(i,t,"array expected, "+ge(t)+" found")];if(n.length&&t.length!==n.length)return[new To(i,t,"array length "+n.length+" expected, length "+t.length+" found")];if(n["min-length"]&&t.length<n["min-length"])return[new To(i,t,"array length at least "+n["min-length"]+" expected, length "+t.length+" found")];var s={type:n.value,values:n.values};o.$version<7&&(s.function=n.function),"object"===ge(n.value)&&(s=n.value);for(var l=[],u=0;u<t.length;u++)l=l.concat(a({array:t,arrayIndex:u,value:t[u],valueSpec:s,style:r,styleSpec:o,key:i+"["+u+"]"}));return l}function Pe(e){var t=e.key,n=e.value,r=e.valueSpec,o=ge(n);return"number"!==o?[new To(t,n,"number expected, "+o+" found")]:"minimum"in r&&n<r.minimum?[new To(t,n,n+" is less than the minimum value "+r.minimum)]:"maximum"in r&&n>r.maximum?[new To(t,n,n+" is greater than the maximum value "+r.maximum)]:[]}function Re(e){function t(e){var t=[],r=e.value,s=e.key;if("array"!==ge(r))return[new To(s,r,"array expected, "+ge(r)+" found")];if(2!==r.length)return[new To(s,r,"array length 2 expected, length "+r.length+" found")];if(p){if("object"!==ge(r[0]))return[new To(s,r,"object expected, "+ge(r[0])+" found")];if(void 0===r[0].zoom)return[new To(s,r,"object stop key must have zoom")];if(void 0===r[0].value)return[new To(s,r,"object stop key must have value")];if(i&&i>F(r[0].zoom))return[new To(s,r[0].zoom,"stop zoom values must appear in ascending order")];F(r[0].zoom)!==i&&(i=F(r[0].zoom),o=void 0,l={}),t=t.concat(ke({key:s+"[0]",value:r[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:Pe,value:n}}))}else t=t.concat(n({key:s+"[0]",value:r[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},r));return Oe(N(r[1]))?t.concat([new To(s+"[1]",r[1],"expressions are not allowed in function stops.")]):t.concat(Ye({key:s+"[1]",value:r[1],valueSpec:a,style:e.style,styleSpec:e.styleSpec}))}function n(e,t){var n=ge(e.value),i=F(e.value),u=null!==e.value?e.value:t;if(r){if(n!==r)return[new To(e.key,u,n+" stop domain type must match previous stop domain type "+r)]}else r=n;if("number"!==n&&"string"!==n&&"boolean"!==n)return[new To(e.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==n&&"categorical"!==s){var c="number expected, "+n+" found";
vendor: 6,392 bytes, line 1
1return de(a)&&void 0===s&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new To(e.key,u,c)]}return"categorical"!==s||"number"!==n||isFinite(i)&&Math.floor(i)===i?"categorical"!==s&&"number"===n&&void 0!==o&&i<o?[new To(e.key,u,"stop domain values must appear in ascending order")]:(o=i,"categorical"===s&&i in l?[new To(e.key,u,"stop domain values must be unique")]:(l[i]=!0,[])):[new To(e.key,u,"integer expected, found "+i)]}var r,o,i,a=e.valueSpec,s=F(e.value.type),l={},u="categorical"!==s&&void 0===e.value.property,c=!u,p="array"===ge(e.value.stops)&&"array"===ge(e.value.stops[0])&&"object"===ge(e.value.stops[0][0]),f=ke({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===s)return[new To(e.key,e.value,'identity function may not have a "stops" property')];var n=[],r=e.value;return n=n.concat(Ae({key:e.key,value:r,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:t})),"array"===ge(r)&&0===r.length&&n.push(new To(e.key,r,"array must have at least one stop")),n},default:function(e){return Ye({key:e.key,value:e.value,valueSpec:a,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===s&&u&&f.push(new To(e.key,e.value,'missing required property "property"')),"identity"===s||e.value.stops||f.push(new To(e.key,e.value,'missing required property "stops"')),"exponential"===s&&e.valueSpec.expression&&!ye(e.valueSpec)&&f.push(new To(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(c&&!de(e.valueSpec)?f.push(new To(e.key,e.value,"property functions not supported")):u&&!me(e.valueSpec)&&f.push(new To(e.key,e.value,"zoom functions not supported"))),"categorical"!==s&&!p||void 0!==e.value.property||f.push(new To(e.key,e.value,'"property" property is required')),f}function De(e){var t=("property"===e.expressionContext?Se:Ce)(N(e.value),e.valueSpec);if("error"===t.result)return t.value.map(function(t){return new To(""+e.key+t.key,e.value,t.message)});var n=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&-1!==n.possibleOutputs().indexOf(void 0))return[new To(e.key,e.value,'Invalid data expression for "'+e.propertyKey+'". Output values must be contained as literals within the expression.')];if("property"===e.expressionContext&&"layout"===e.propertyType&&!Z(n))return[new To(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!Z(n))return[new To(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!K(n,["zoom","feature-state"]))return[new To(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!W(n))return[new To(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Ie(e){var t=e.key,n=e.value,r=e.valueSpec,o=[];return Array.isArray(r.values)?-1===r.values.indexOf(F(n))&&o.push(new To(t,n,"expected one of ["+r.values.join(", ")+"], "+JSON.stringify(n)+" found")):-1===Object.keys(r.values).indexOf(F(n))&&o.push(new To(t,n,"expected one of ["+Object.keys(r.values).join(", ")+"], "+JSON.stringify(n)+" found")),o}function Me(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(var t=0,n=e.slice(1);t<n.length;t+=1){var r=n[t];if(!Me(r)&&"boolean"!=typeof r)return!1}return!0;default:return!0}}function Le(e){if(null==e)return function(){return!0};Me(e)||(e=ze(e));var t=Ce(e,Mi);if("error"===t.result)throw new Error(t.value.map(function(e){return e.key+": "+e.message}).join(", "));return function(e,n){return t.value.evaluate(e,n)}}function je(e,t){return e<t?-1:e>t?1:0}function ze(e){if(!e)return!0;var t,n=e[0];return e.length<=1?"any"!==n:"=="===n?Fe(e[1],e[2],"=="):"!="===n?Ue(Fe(e[1],e[2],"==")):"<"===n||">"===n||"<="===n||">="===n?Fe(e[1],e[2],n):"any"===n?(t=e.slice(1),["any"].concat(t.map(ze))):"all"===n?["all"].concat(e.slice(1).map(ze)):"none"===n?["all"].concat(e.slice(1).map(ze).map(Ue)):"in"===n?Ne(e[1],e.slice(2)):"!in"===n?Ue(Ne(e[1],e.slice(2))):"has"===n?Be(e[1]):"!has"!==n||Ue(Be(e[1]))}function Fe(e,t,n){switch(e){case"$type":return["filter-type-"+n,t];case"$id":return["filter-id-"+n,t];default:return["filter-"+n,e,t]}}function Ne(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(function(e){return typeof e!=typeof t[0]})?["filter-in-large",e,["literal",t.sort(je)]]:["filter-in-small",e,["literal",t]]}}function Be(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Ue(e){return["!",e]}function Ve(e){return Me(N(e.value))?De(j({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function e(t){var n=t.value,r=t.key;if("array"!==ge(n))return[new To(r,n,"array expected, "+ge(n)+" found")];var o,i=t.styleSpec,a=[];if(n.length<1)return[new To(r,n,"filter array must have at least 1 element")];switch(a=a.concat(Ie({key:r+"[0]",value:n[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),F(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===F(n[1])&&a.push(new To(r,n,'"$type" cannot be use with operator "'+n[0]+'"'));case"==":case"!=":3!==n.length&&a.push(new To(r,n,'filter array for operator "'+n[0]+'" must have 3 elements'));case"in":case"!in":n.length>=2&&"string"!==(o=ge(n[1]))&&a.push(new To(r+"[1]",n[1],"string expected, "+o+" found"));for(var s=2;s<n.length;s++)o=ge(n[s]),"$type"===F(n[1])?a=a.concat(Ie({key:r+"["+s+"]",value:n[s],valueSpec:i.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==o&&"number"!==o&&"boolean"!==o&&a.push(new To(r+"["+s+"]",n[s],"string, number, or boolean expected, "+o+" found"));break;case"any":case"all":case"none":for(var l=1;l<n.length;
vendor: 6,993 bytes, line 1
1l++)a=a.concat(e({key:r+"["+l+"]",value:n[l],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":o=ge(n[1]),2!==n.length?a.push(new To(r,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"string"!==o&&a.push(new To(r+"[1]",n[1],"string expected, "+o+" found"))}return a}(e)}function He(e,t){var n=e.key,r=e.style,o=e.styleSpec,i=e.value,a=e.objectKey,s=o[t+"_"+e.layerType];if(!s)return[];var l=a.match(/^(.*)-transition$/);if("paint"===t&&l&&s[l[1]]&&s[l[1]].transition)return Ye({key:n,value:i,valueSpec:o.transition,style:r,styleSpec:o});var u,c=e.valueSpec||s[a];if(!c)return[new To(n,i,'unknown property "'+a+'"')];if("string"===ge(i)&&de(c)&&!c.tokens&&(u=/^{([^}]+)}$/.exec(i)))return[new To(n,i,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(u[1])+" }`.")];var p=[];return"symbol"===e.layerType&&("text-field"===a&&r&&!r.glyphs&&p.push(new To(n,i,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&ve(N(i))&&"identity"===F(i.type)&&p.push(new To(n,i,'"text-font" does not support identity functions'))),p.concat(Ye({key:e.key,value:i,valueSpec:c,style:r,styleSpec:o,expressionContext:"property",propertyType:t,propertyKey:a}))}function qe(e){return He(e,"paint")}function Ge(e){return He(e,"layout")}function We(e){var t=[],n=e.value,r=e.key,o=e.style,i=e.styleSpec;n.type||n.ref||t.push(new To(r,n,'either "type" or "ref" is required'));var a,s=F(n.type),l=F(n.ref);if(n.id)for(var u=F(n.id),c=0;c<e.arrayIndex;c++){var p=o.layers[c];F(p.id)===u&&t.push(new To(r,n.id,'duplicate layer id "'+n.id+'", previously used at line '+p.id.__line__))}if("ref"in n)["type","source","source-layer","filter","layout"].forEach(function(e){e in n&&t.push(new To(r,n[e],'"'+e+'" is prohibited for ref layers'))}),o.layers.forEach(function(e){F(e.id)===l&&(a=e)}),a?a.ref?t.push(new To(r,n.ref,"ref cannot reference another ref layer")):s=F(a.type):t.push(new To(r,n.ref,'ref layer "'+l+'" not found'));else if("background"!==s)if(n.source){var f=o.sources&&o.sources[n.source],h=f&&F(f.type);f?"vector"===h&&"raster"===s?t.push(new To(r,n.source,'layer "'+n.id+'" requires a raster source')):"raster"===h&&"raster"!==s?t.push(new To(r,n.source,'layer "'+n.id+'" requires a vector source')):"vector"!==h||n["source-layer"]?"raster-dem"===h&&"hillshade"!==s?t.push(new To(r,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!n.paint||!n.paint["line-gradient"]||"geojson"===h&&f.lineMetrics||t.push(new To(r,n,'layer "'+n.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):t.push(new To(r,n,'layer "'+n.id+'" must specify a "source-layer"')):t.push(new To(r,n.source,'source "'+n.source+'" not found'))}else t.push(new To(r,n,'missing required property "source"'));return t=t.concat(ke({key:r,value:n,valueSpec:i.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return Ye({key:r+".type",value:n.type,valueSpec:i.layer.type,style:e.style,styleSpec:e.styleSpec,object:n,objectKey:"type"})},filter:Ve,layout:function(e){return ke({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return Ge(j({layerType:s},e))}}})},paint:function(e){return ke({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return qe(j({layerType:s},e))}}})}}}))}function Ze(e){var t=e.value,n=e.key,r=e.styleSpec,o=e.style;if(!t.type)return[new To(n,t,'"type" is required')];var i,a=F(t.type);switch(a){case"vector":case"raster":case"raster-dem":return i=ke({key:n,value:t,valueSpec:r["source_"+a.replace("-","_")],style:e.style,styleSpec:r});case"geojson":if(i=ke({key:n,value:t,valueSpec:r.source_geojson,style:o,styleSpec:r}),t.cluster)for(var s in t.clusterProperties){var l=t.clusterProperties[s],u=l[0],c=l[1],p="string"==typeof u?[u,["accumulated"],["get",s]]:u;i.push.apply(i,De({key:n+"."+s+".map",value:c,expressionContext:"cluster-map"})),i.push.apply(i,De({key:n+"."+s+".reduce",value:p,expressionContext:"cluster-reduce"}))}return i;case"video":return ke({key:n,value:t,valueSpec:r.source_video,style:o,styleSpec:r});case"image":return ke({key:n,value:t,valueSpec:r.source_image,style:o,styleSpec:r});case"canvas":return[new To(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Ie({key:n+".type",value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:o,styleSpec:r})}}function Ke(e){var t=e.value,n=e.styleSpec,r=n.light,o=e.style,i=[],a=ge(t);if(void 0===t)return i;if("object"!==a)return i=i.concat([new To("light",t,"object expected, "+a+" found")]);for(var s in t){var l=s.match(/^(.*)-transition$/);i=l&&r[l[1]]&&r[l[1]].transition?i.concat(Ye({key:s,value:t[s],valueSpec:n.transition,style:o,styleSpec:n})):r[s]?i.concat(Ye({key:s,value:t[s],valueSpec:r[s],style:o,styleSpec:n})):i.concat([new To(s,t[s],'unknown property "'+s+'"')])}return i}function Xe(e){var t=e.value,n=e.key,r=ge(t);return"string"!==r?[new To(n,t,"string expected, "+r+" found")]:[]}function Ye(e){var t=e.value,n=e.valueSpec,r=e.styleSpec;return n.expression&&ve(F(t))?Re(e):n.expression&&Oe(N(t))?De(e):n.type&&Li[n.type]?Li[n.type](e):ke(j({},e,{valueSpec:n.type?r[n.type]:n}))}function Je(e){var t=e.value,n=e.key,r=Xe(e);return r.length?r:(-1===t.indexOf("{fontstack}")&&r.push(new To(n,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&r.push(new To(n,t,'"glyphs" url must include a "{range}" token')),r)}function $e(e,t){t=t||Eo;var n=[];return n=n.concat(Ye({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:Je,"*":function(){return[]}}})),e.constants&&(n=n.concat(L({key:"constants",value:e.constants,style:e,styleSpec:t}))),Qe(n)}function Qe(e){return[].concat(e).sort(function(e,t){return e.line-t.line})}function et(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return Qe(e.apply(this,t))}}function tt(e,t){var n=!1;if(t&&t.length)for(var r=0,o=t;r<o.length;r+=1){var i=o[r];e.fire(new xo(new Error(i.message))),n=!0}return n}function nt(e,t,n){var r=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;var o=new Int32Array(this.arrayBuffer);e=o[0],t=o[1],n=o[2],this.d=t+2*n;for(var i=0;i<this.d*this.d;i++){var a=o[Ui+i],s=o[Ui+i+1];r.push(a===s?null:o.subarray(a,s))}var l=o[Ui+r.length],u=o[Ui+r.length+1];this.keys=o.subarray(l,u),this.bboxes=o.subarray(u),this.insert=this._insertReadonly}else{this.d=t+2*n;for(var c=0;c<this.d*this.d;c++)r.push([]);this.keys=[],this.bboxes=[]}this.n=t,this.extent=e,this.padding=n,this.scale=t/e,this.uid=0;var p=n/t*e;this.min=-p,this.max=e+p}function rt(e,t,n){void 0===n&&(n={}),Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}
1),Hi[e]={klass:t,omit:n.omit||[],shallow:n.shallow||[]}}function ot(e,t){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(e instanceof ArrayBuffer)return t&&t.push(e),e;if(ArrayBuffer.isView(e)){var n=e;return t&&t.push(n.buffer),n}if(e instanceof Vi)return t&&t.push(e.data.buffer),e;if(Array.isArray(e)){for(var r=[],o=0,i=e;o<i.length;o+=1){var a=i[o];r.push(ot(a,t))}return r}if("object"==typeof e){var s=e.constructor,l=s._classRegistryKey;if(!l)throw new Error("can't serialize object of unregistered class");var u=s.serialize?s.serialize(e,t):{};if(!s.serialize){for(var c in e)if(e.hasOwnProperty(c)&&!(Hi[l].omit.indexOf(c)>=0)){var p=e[c];u[c]=Hi[l].shallow.indexOf(c)>=0?p:ot(p,t)}e instanceof Error&&(u.message=e.message)}if(u.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==l&&(u.$name=l),u}throw new Error("can't serialize object of type "+typeof e)}function it(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof Vi)return e;if(Array.isArray(e))return e.map(it);if("object"==typeof e){var t=e.$name||"Object",n=Hi[t].klass;if(!n)throw new Error("can't deserialize unregistered class "+t);if(n.deserialize)return n.deserialize(e);for(var r=Object.create(n.prototype),o=0,i=Object.keys(e);o<i.length;o+=1){var a=i[o];if("$name"!==a){var s=e[a];r[a]=Hi[t].shallow.indexOf(a)>=0?s:it(s)}}return r}throw new Error("can't deserialize object of type "+typeof e)}function at(e){for(var t=0,n=e;t<n.length;t+=1)if(lt(n[t].charCodeAt(0)))return!0;return!1}function st(e){return!Zi.Arabic(e)&&!Zi["Arabic Supplement"](e)&&!Zi["Arabic Extended-A"](e)&&!Zi["Arabic Presentation Forms-A"](e)&&!Zi["Arabic Presentation Forms-B"](e)}function lt(e){return 746===e||747===e||!(e<4352)&&(!!Zi["Bopomofo Extended"](e)||!!Zi.Bopomofo(e)||!(!Zi["CJK Compatibility Forms"](e)||e>=65097&&e<=65103)||!!Zi["CJK Compatibility Ideographs"](e)||!!Zi["CJK Compatibility"](e)||!!Zi["CJK Radicals Supplement"](e)||!!Zi["CJK Strokes"](e)||!(!Zi["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||!!Zi["CJK Unified Ideographs Extension A"](e)||!!Zi["CJK Unified Ideographs"](e)||!!Zi["Enclosed CJK Letters and Months"](e)||!!Zi["Hangul Compatibility Jamo"](e)||!!Zi["Hangul Jamo Extended-A"](e)||!!Zi["Hangul Jamo Extended-B"](e)||!!Zi["Hangul Jamo"](e)||!!Zi["Hangul Syllables"](e)||!!Zi.Hiragana(e)||!!Zi["Ideographic Description Characters"](e)||!!Zi.Kanbun(e)||!!Zi["Kangxi Radicals"](e)||!!Zi["Katakana Phonetic Extensions"](e)||!(!Zi.Katakana(e)||12540===e)||!(!Zi["Halfwidth and Fullwidth Forms"](e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!Zi["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||!!Zi["Unified Canadian Aboriginal Syllabics"](e)||!!Zi["Unified Canadian Aboriginal Syllabics Extended"](e)||!!Zi["Vertical Forms"](e)||!!Zi["Yijing Hexagram Symbols"](e)||!!Zi["Yi Syllables"](e)||!!Zi["Yi Radicals"](e))}function ut(e){return!(lt(e)||function(e){return!(!Zi["Latin-1 Supplement"](e)||167!==e&&169!==e&&174!==e&&177!==e&&188!==e&&189!==e&&190!==e&&215!==e&&247!==e)||!(!Zi["General Punctuation"](e)||8214!==e&&8224!==e&&8225!==e&&8240!==e&&8241!==e&&8251!==e&&8252!==e&&8258!==e&&8263!==e&&8264!==e&&8265!==e&&8273!==e)||!!Zi["Letterlike Symbols"](e)||!!Zi["Number Forms"](e)||!(!Zi["Miscellaneous Technical"](e)||!(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215))||!(!Zi["Control Pictures"](e)||9251===e)||!!Zi["Optical Character Recognition"](e)||!!Zi["Enclosed Alphanumerics"](e)||!!Zi["Geometric Shapes"](e)||!(!Zi["Miscellaneous Symbols"](e)||e>=9754&&e<=9759)||!(!Zi["Miscellaneous Symbols and Arrows"](e)||!(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243))||!!Zi["CJK Symbols and Punctuation"](e)||!!Zi.Katakana(e)||!!Zi["Private Use Area"](e)||!!Zi["CJK Compatibility Forms"](e)||!!Zi["Small Form Variants"](e)||!!Zi["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e}(e))}function ct(e,t){return!(!t&&(e>=1424&&e<=2303||Zi["Arabic Presentation Forms-A"](e)||Zi["Arabic Presentation Forms-B"](e)))&&!(e>=2304&&e<=3583||e>=3840&&e<=4255||Zi.Khmer(e))}function pt(e,t){void 0===t&&(t=1);var n=0,r=0;return{members:e.map(function(e){var o,i=(o=e.type,ma[o].BYTES_PER_ELEMENT),a=n=ft(n,Math.max(t,i)),s=e.components||1;
1return r=Math.max(r,i),n+=i*s,{name:e.name,type:e.type,components:s,offset:a}}),size:ft(n,Math.max(r,t)),alignment:t}}function ft(e,t){return Math.ceil(e/t)*t}function ht(e,t){return 256*(e=a(Math.floor(e),0,255))+(t=a(Math.floor(t),0,255))}function dt(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function mt(e){return[ht(255*e.r,255*e.g),ht(255*e.b,255*e.a)]}function yt(e,t){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from"],"fill-pattern":["pattern_to","pattern_from"],"fill-extrusion-pattern":["pattern_to","pattern_from"]}[e]||[e.replace(t+"-","").replace(/-/g,"_")]}function gt(e,t,n){var r={color:{source:za,composite:Fa},number:{source:Ra,composite:za}},o=function(e){return{"line-pattern":{source:wa,composite:wa},"fill-pattern":{source:wa,composite:wa},"fill-extrusion-pattern":{source:wa,composite:wa}}[e]}(e);return o&&o[n]||r[t][n]}function vt(e){for(var t=gs/e.extent,n=e.loadGeometry(),r=0;r<n.length;r++)for(var o=n[r],i=0;i<o.length;i++){var s=o[i];s.x=Math.round(s.x*t),s.y=Math.round(s.y*t),(s.x<vs.min||s.x>vs.max||s.y<vs.min||s.y>vs.max)&&(g("Geometry exceeds allowed extent, reduce your vector tile buffer size"),s.x=a(s.x,vs.min,vs.max),s.y=a(s.y,vs.min,vs.max))}return n}function _t(e,t,n,r,o){e.emplaceBack(2*t+(r+1)/2,2*n+(o+1)/2)}function bt(e,t){for(var n=0;n<e.length;n++)if(At(t,e[n]))return!0;for(var r=0;r<t.length;r++)if(At(e,t[r]))return!0;return!!Tt(e,t)}function xt(e,t,n){return!!At(e,t)||!!Ct(t,e,n)}function wt(e,t){if(1===e.length)return kt(t,e[0]);for(var n=0;n<t.length;n++)for(var r=t[n],o=0;o<r.length;o++)if(At(e,r[o]))return!0;for(var i=0;i<e.length;i++)if(kt(t,e[i]))return!0;for(var a=0;a<t.length;a++)if(Tt(e,t[a]))return!0;return!1}function Et(e,t,n){if(e.length>1){if(Tt(e,t))return!0;for(var r=0;r<t.length;r++)if(Ct(t[r],e,n))return!0}for(var o=0;o<e.length;o++)if(Ct(e[o],t,n))return!0;return!1}function Tt(e,t){if(0===e.length||0===t.length)return!1;for(var n=0;n<e.length-1;n++)for(var r=e[n],o=e[n+1],i=0;i<t.length-1;i++)if(Ot(r,o,t[i],t[i+1]))return!0;return!1}function Ot(e,t,n,r){return v(e,n,r)!==v(t,n,r)&&v(e,t,n)!==v(e,t,r)}function Ct(e,t,n){var r=n*n;if(1===t.length)return e.distSqr(t[0])<r;for(var o=1;o<t.length;o++)if(St(e,t[o-1],t[o])<r)return!0;return!1}function St(e,t,n){var r=t.distSqr(n);if(0===r)return e.distSqr(t);var o=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;return o<0?e.distSqr(t):o>1?e.distSqr(n):e.distSqr(n.sub(t)._mult(o)._add(t))}function kt(e,t){for(var n,r,o,i=!1,a=0;a<e.length;a++)for(var s=0,l=(n=e[a]).length-1;s<n.length;l=s++)r=n[s],o=n[l],r.y>t.y!=o.y>t.y&&t.x<(o.x-r.x)*(t.y-r.y)/(o.y-r.y)+r.x&&(i=!i);return i}function At(e,t){for(var n=!1,r=0,o=e.length-1;r<e.length;o=r++){var i=e[r],a=e[o];i.y>t.y!=a.y>t.y&&t.x<(a.x-i.x)*(t.y-i.y)/(a.y-i.y)+i.x&&(n=!n)}return n}function Pt(e,t,n){var r=n[0],o=n[2];if(e.x<r.x&&t.x<r.x||e.x>o.x&&t.x>o.x||e.y<r.y&&t.y<r.y||e.y>o.y&&t.y>o.y)return!1;var i=v(e,t,n[0]);return i!==v(e,t,n[1])||i!==v(e,t,n[2])||i!==v(e,t,n[3])}function Rt(e,t,n){var r=t.paint.get(e).value;return"constant"===r.kind?r.value:n.programConfigurations.get(t.id).binders[e].maxValue}function Dt(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function It(e,t,n,r,o){if(!t[0]&&!t[1])return e;var i=Ir.convert(t)._mult(o);"viewport"===n&&i._rotate(-r);for(var a=[],s=0;s<e.length;s++){var l=e[s];a.push(l.sub(i))}return a}function Mt(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3];return e[0]=n[0]*r+n[4]*o+n[8]*i+n[12]*a,e[1]=n[1]*r+n[5]*o+n[9]*i+n[13]*a,e[2]=n[2]*r+n[6]*o+n[10]*i+n[14]*a,e[3]=n[3]*r+n[7]*o+n[11]*i+n[15]*a,e}function Lt(e,t){var n=Mt([],[e.x,e.y,0,1],t);return new Ir(n[0]/n[3],n[1]/n[3])}function jt(e,t,n,r){var o=t.width,i=t.height;if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==o*i*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(o*i*n);return e.width=o,e.height=i,e.data=r,e}function zt(e,t,n){var r=t.width,o=t.height;if(r!==e.width||o!==e.height){var i=jt({},{width:r,height:o},n);Ft(e,i,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,r),height:Math.min(e.height,o)},n),e.width=r,e.height=o,e.data=i.data}}
vendor: 4,014 bytes, line 1
1function Ft(e,t,n,r,o,i){if(0===o.width||0===o.height)return t;if(o.width>e.width||o.height>e.height||n.x>e.width-o.width||n.y>e.height-o.height)throw new RangeError("out of range source coordinates for image copy");if(o.width>t.width||o.height>t.height||r.x>t.width-o.width||r.y>t.height-o.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=e.data,s=t.data,l=0;l<o.height;l++)for(var u=((n.y+l)*e.width+n.x)*i,c=((r.y+l)*t.width+r.x)*i,p=0;p<o.width*i;p++)s[c+p]=a[u+p];return t}function Nt(e,t){for(var n=new Uint8Array(1024),r={},o=0,i=0;o<256;o++,i+=4){r[t]=o/255;var a=e.evaluate(r);n[i+0]=Math.floor(255*a.r/a.a),n[i+1]=Math.floor(255*a.g/a.a),n[i+2]=Math.floor(255*a.b/a.a),n[i+3]=Math.floor(255*a.a)}return new Ss({width:256,height:1},n)}function Bt(e,t,n){n=n||2;var r,o,i,a,s,l,u,c=t&&t.length,p=c?t[0]*n:e.length,f=Ut(e,0,p,n,!0),h=[];if(!f||f.next===f.prev)return h;if(c&&(f=function(e,t,n,r){var o,i,a,s,l,u=[];for(o=0,i=t.length;o<i;o++)a=t[o]*r,s=o<i-1?t[o+1]*r:e.length,(l=Ut(e,a,s,r,!1))===l.next&&(l.steiner=!0),u.push(Jt(l));for(u.sort(Kt),o=0;o<u.length;o++)Xt(u[o],n),n=Vt(n,n.next);return n}(e,t,f,n)),e.length>80*n){r=i=e[0],o=a=e[1];for(var d=n;d<p;d+=n)(s=e[d])<r&&(r=s),(l=e[d+1])<o&&(o=l),s>i&&(i=s),l>a&&(a=l);u=0!==(u=Math.max(i-r,a-o))?1/u:0}return Ht(f,h,n,r,o,u),h}function Ut(e,t,n,r,o){var i,a;if(o===un(e,t,n,r)>0)for(i=t;i<n;i+=r)a=an(i,e[i],e[i+1],a);else for(i=n-r;i>=t;i-=r)a=an(i,e[i],e[i+1],a);return a&&tn(a,a.next)&&(sn(a),a=a.next),a}function Vt(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!tn(r,r.next)&&0!==en(r.prev,r,r.next))r=r.next;else{if(sn(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function Ht(e,t,n,r,o,i,a){if(e){!a&&i&&function(e,t,n,r){var o=e;do{null===o.z&&(o.z=Yt(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,i,a,s,l,u=1;do{for(n=e,e=null,i=null,a=0;n;){for(a++,r=n,s=0,t=0;t<u&&(s++,r=r.nextZ);t++);for(l=u;s>0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,s--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;n=r}i.nextZ=null,u*=2}while(a>1)}(o)}(e,r,o,i);for(var s,l,u=e;e.prev!==e.next;)if(s=e.prev,l=e.next,i?Gt(e,r,o,i):qt(e))t.push(s.i/n),t.push(e.i/n),t.push(l.i/n),sn(e),e=l.next,u=l.next;else if((e=l)===u){a?1===a?Ht(e=Wt(e,t,n),t,n,r,o,i,2):2===a&&Zt(e,t,n,r,o,i):Ht(Vt(e),t,n,r,o,i,1);break}}}function qt(e){var t=e.prev,n=e,r=e.next;if(en(t,n,r)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if($t(t.x,t.y,n.x,n.y,r.x,r.y,o.x,o.y)&&en(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function Gt(e,t,n,r){var o=e.prev,i=e,a=e.next;if(en(o,i,a)>=0)return!1;for(var s=o.x<i.x?o.x<a.x?o.x:a.x:i.x<a.x?i.x:a.x,l=o.y<i.y?o.y<a.y?o.y:a.y:i.y<a.y?i.y:a.y,u=o.x>i.x?o.x>a.x?o.x:a.x:i.x>a.x?i.x:a.x,c=o.y>i.y?o.y>a.y?o.y:a.y:i.y>a.y?i.y:a.y,p=Yt(s,l,t,n,r),f=Yt(u,c,t,n,r),h=e.prevZ,d=e.nextZ;h&&h.z>=p&&d&&d.z<=f;){if(h!==e.prev&&h!==e.next&&$t(o.x,o.y,i.x,i.y,a.x,a.y,h.x,h.y)&&en(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,d!==e.prev&&d!==e.next&&$t(o.x,o.y,i.x,i.y,a.x,a.y,d.x,d.y)&&en(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;h&&h.z>=p;){if(h!==e.prev&&h!==e.next&&$t(o.x,o.y,i.x,i.y,a.x,a.y,h.x,h.y)&&en(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;d&&d.z<=f;){if(d!==e.prev&&d!==e.next&&$t(o.x,o.y,i.x,i.y,a.x,a.y,d.x,d.y)&&en(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function Wt(e,t,n){var r=e;do{var o=r.prev,i=r.next.next;!tn(o,i)&&nn(o,r,r.next,i)&&rn(o,i)&&rn(i,o)&&(t.push(o.i/n),t.push(r.i/n),t.push(i.i/n),sn(r),sn(r.next),r=e=i),r=r.next}while(r!==e);return r}function Zt(e,t,n,r,o,i){var a=e;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&Qt(a,s)){var l=on(a,s);return a=Vt(a,a.next),l=Vt(l,l.next),Ht(a,t,n,r,o,i),void Ht(l,t,n,r,o,i)}s=s.next}a=a.next}while(a!==e)}function Kt(e,t){return e.x-t.x}function Xt(e,t){if(t=function(e,t){var n,r=t,o=e.x,i=e.y,a=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y
vendor: 2,003 bytes, line 1
1);if(s<=o&&s>a){if(a=s,s===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(o===a)return n.prev;var l,u=n,c=n.x,p=n.y,f=1/0;for(r=n.next;r!==u;)o>=r.x&&r.x>=c&&o!==r.x&&$t(i<p?o:a,i,c,p,i<p?a:o,i,r.x,r.y)&&((l=Math.abs(i-r.y)/(o-r.x))<f||l===f&&r.x>n.x)&&rn(r,e)&&(n=r,f=l),r=r.next;return n}(e,t)){var n=on(t,e);Vt(n,n.next)}}function Yt(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Jt(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function $t(e,t,n,r,o,i,a,s){return(o-a)*(t-s)-(e-a)*(i-s)>=0&&(e-a)*(r-s)-(n-a)*(t-s)>=0&&(n-a)*(i-s)-(o-a)*(r-s)>=0}function Qt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&nn(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&rn(e,t)&&rn(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)}function en(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function tn(e,t){return e.x===t.x&&e.y===t.y}function nn(e,t,n,r){return!!(tn(e,t)&&tn(n,r)||tn(e,r)&&tn(n,t))||en(e,t,n)>0!=en(e,t,r)>0&&en(n,r,e)>0!=en(n,r,t)>0}function rn(e,t){return en(e.prev,e,e.next)<0?en(e,t,e.next)>=0&&en(e,e.prev,t)>=0:en(e,t,e.prev)<0||en(e,e.next,t)<0}function on(e,t){var n=new ln(e.i,e.x,e.y),r=new ln(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function an(e,t,n,r){var o=new ln(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function sn(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}
vendor: 1,807 bytes, line 1
1function ln(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function un(e,t,n,r){for(var o=0,i=t,a=n-r;i<n;i+=r)o+=(e[a]-e[i])*(e[i+1]+e[a+1]),a=i;return o}function cn(e,t,n,r,o){!function e(t,n,r,o,i){for(;o>r;){if(o-r>600){var a=o-r+1,s=n-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);e(t,n,Math.max(r,Math.floor(n-s*u/a+c)),Math.min(o,Math.floor(n+(a-s)*u/a+c)),i)}var p=t[n],f=r,h=o;for(pn(t,r,n),i(t[o],p)>0&&pn(t,r,o);f<h;){for(pn(t,f,h),f++,h--;i(t[f],p)<0;)f++;for(;i(t[h],p)>0;)h--}0===i(t[r],p)?pn(t,r,h):pn(t,++h,o),h<=n&&(r=h+1),n<=h&&(o=h-1)}}(e,t,n||0,r||e.length-1,o||fn)}function pn(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function fn(e,t){return e<t?-1:e>t?1:0}function hn(e,t){var n=e.length;if(n<=1)return[e];for(var r,o,i=[],a=0;a<n;a++){var s=_(e[a]);0!==s&&(e[a].area=Math.abs(s),void 0===o&&(o=s<0),o===s<0?(r&&i.push(r),r=[e[a]]):r.push(e[a]))}if(r&&i.push(r),t>1)for(var l=0;l<i.length;l++)i[l].length<=t||(cn(i[l],t,1,i[l].length-1,dn),i[l]=i[l].slice(0,t));return i}function dn(e,t){return t.area-e.area}function mn(e,t,n){for(var r=n.patternDependencies,o=!1,i=0,a=t;i<a.length;i+=1){var s=a[i].paint.get(e+"-pattern");s.isConstant()||(o=!0);var l=s.constantOr(null);l&&(o=!0,r[l.to]=!0,r[l.from]=!0)}return o}function yn(e,t,n,r,o){for(var i=o.patternDependencies,a=0,s=t;a<s.length;a+=1){var l=s[a],u=l.paint.get(e+"-pattern").value;if("constant"!==u.kind){var c=u.evaluate({zoom:r-1},n,{}),p=u.evaluate({zoom:r},n,{}),f=u.evaluate({zoom:r+1},n,{});i[c]=!0,i[p]=!0,i[f]=!0,n.patterns[l.id]={min:c,mid:p,max:f}}}return n}function gn(e,t,n,r,o){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=o,e.readFields(vn,this,t)}
1function vn(e,t,n){1==e?t.id=n.readVarint():2==e?function(e,t){for(var n=e.readVarint()+e.pos;e.pos<n;){var r=t._keys[e.readVarint()],o=t._values[e.readVarint()];t.properties[r]=o}}(n,t):3==e?t.type=n.readVarint():4==e&&(t._geometry=n.pos)}function _n(e){for(var t,n,r=0,o=0,i=e.length,a=i-1;o<i;a=o++)t=e[o],r+=((n=e[a]).x-t.x)*(t.y+n.y);return r}function bn(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(xn,this,t),this.length=this._features.length}function xn(e,t,n){15===e?t.version=n.readVarint():1===e?t.name=n.readString():5===e?t.extent=n.readVarint():2===e?t._features.push(n.pos):3===e?t._keys.push(n.readString()):4===e&&t._values.push(function(e){for(var t=null,n=e.readVarint()+e.pos;e.pos<n;){var r=e.readVarint()>>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(n))}function wn(e,t,n){if(3===e){var r=new Us(n,n.readVarint()+n.pos);r.length&&(t[r.name]=r)}}function En(e,t,n,r,o,i,a,s){e.emplaceBack(t,n,2*Math.floor(r*qs)+a,o*qs*2,i*qs*2,Math.round(s))}function Tn(e,t){return e.x===t.x&&(e.x<0||e.x>gs)||e.y===t.y&&(e.y<0||e.y>gs)}function On(e){return e.every(function(e){return e.x<0})||e.every(function(e){return e.x>gs})||e.every(function(e){return e.y<0})||e.every(function(e){return e.y>gs})}function Cn(e,t){return e.x*t.x+e.y*t.y}function Sn(e,t){if(1===e.length){var n=t[0],r=t[1],o=t[3],i=e[0],a=r.sub(n),s=o.sub(n),l=i.sub(n),u=Cn(a,a),c=Cn(a,s),p=Cn(s,s),f=Cn(l,a),h=Cn(l,s),d=u*p-c*c,m=(p*f-c*h)/d,y=(u*h-c*f)/d,g=1-m-y;
1return n.z*g+r.z*m+o.z*y}for(var v=1/0,_=0,b=t;_<b.length;_+=1){var x=b[_];v=Math.min(v,x.z)}return v}function kn(e,t){return t>0?t+2*e:e}function An(e,t,n){return e.sections.forEach(function(e){e.text=function(e,t,n){var r=t.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),$i.applyArabicShaping&&(e=$i.applyArabicShaping(e)),e}(e.text,t,n)}),e}function Pn(e,t,n,r,o,i,a,s,l,u,c){var p,f=pl.fromFeature(e,n);u===cl.vertical&&f.verticalizePunctuation();var h=$i.processBidirectionalText,d=$i.processStyledBidirectionalText;if(h&&1===f.sections.length){p=[];for(var m=0,y=h(f.toString(),Mn(f,s,r,t));m<y.length;m+=1){var g=y[m],v=new pl;v.text=g,v.sections=f.sections;for(var _=0;_<g.length;_++)v.sectionIndex.push(0);p.push(v)}}else if(d){p=[];for(var b=0,x=d(f.text,f.sectionIndex,Mn(f,s,r,t));b<x.length;b+=1){var w=x[b],E=new pl;E.text=w[0],E.sectionIndex=w[1],E.sections=f.sections,p.push(E)}}else p=function(e,t){for(var n=[],r=e.text,o=0,i=0,a=t;i<a.length;i+=1){var s=a[i];n.push(e.substring(o,s)),o=s}return o<r.length&&n.push(e.substring(o,r.length)),n}(f,Mn(f,s,r,t));var T=[],O={positionedGlyphs:T,text:f.toString(),top:l[1],bottom:l[1],left:l[0],right:l[0],writingMode:u,lineCount:p.length,yOffset:-17};return function(e,t,n,r,o,i,a,s,l){for(var u=0,c=e.yOffset,p=0,f=e.positionedGlyphs,h="right"===i?1:"left"===i?0:.5,d=0,m=n;d<m.length;d+=1){var y=m[d];y.trim();var g=y.getMaxScale();if(y.length()){for(var v=f.length,_=0;_<y.length();_++){var b=y.getSection(_),x=y.getSectionIndex(_),w=y.getCharCode(_),E=24*(g-b.scale),T=t[b.fontStack],O=T&&T[w];O&&(a===cl.horizontal||!l&&!lt(w)||l&&(fl[w]||(S=w,Zi.Arabic(S)||Zi["Arabic Supplement"](S)||Zi["Arabic Extended-A"](S)||Zi["Arabic Presentation Forms-A"](S)||Zi["Arabic Presentation Forms-B"](S)))?(f.push({glyph:w,x:u,y:c+E,vertical:!1,scale:b.scale,fontStack:b.fontStack,sectionIndex:x}),u+=O.metrics.advance*b.scale+s):(f.push({glyph:w,x:u,y:c+E,vertical:!0,scale:b.scale,fontStack:b.fontStack,sectionIndex:x}),u+=ul*b.scale+s))}if(f.length!==v){var C=u-s;p=Math.max(C,p),jn(f,t,v,f.length-1,h)}u=0,c+=r*g}else c+=r}var S,k=Ln(o),A=k.horizontalAlign,P=k.verticalAlign;!function(e,t,n,r,o,i,a){for(var s=(t-n)*o,l=(-r*a+.5)*i,u=0;u<e.length;u++)e[u].x+=s,e[u].y+=l}(f,h,A,P,p,r,n.length);var R=c-e.yOffset;e.top+=-P*R,e.bottom=e.top+R,e.left+=-A*p,e.right=e.left+p}(O,t,p,o,i,a,u,s,c),!!T.length&&O}function Rn(e,t,n,r){var o=Math.pow(e-t,2);return r?e<t?o/2:2*o:o+Math.abs(n)*n}
1function Dn(e,t,n){var r=0;return 10===e&&(r-=1e4),n&&(r+=150),40!==e&&65288!==e||(r+=50),41!==t&&65289!==t||(r+=50),r}function In(e,t,n,r,o,i){for(var a=null,s=Rn(t,n,o,i),l=0,u=r;l<u.length;l+=1){var c=u[l],p=Rn(t-c.x,n,o,i)+c.badness;p<=s&&(a=c,s=p)}return{index:e,x:t,priorBreak:a,badness:s}}function Mn(e,t,n,r){if(!n)return[];if(!e)return[];for(var o,i=[],a=function(e,t,n,r){for(var o=0,i=0;i<e.length();i++){var a=e.getSection(i),s=r[a.fontStack],l=s&&s[e.getCharCode(i)];l&&(o+=l.metrics.advance*a.scale+t)}return o/Math.max(1,Math.ceil(o/n))}(e,t,n,r),s=e.text.indexOf("\u200b")>=0,l=0,u=0;u<e.length();u++){var c=e.getSection(u),p=e.getCharCode(u),f=r[c.fontStack],h=f&&f[p];if(h&&!fl[p]&&(l+=h.metrics.advance*c.scale+t),u<e.length()-1){var d=!((o=p)<11904||!(Zi["Bopomofo Extended"](o)||Zi.Bopomofo(o)||Zi["CJK Compatibility Forms"](o)||Zi["CJK Compatibility Ideographs"](o)||Zi["CJK Compatibility"](o)||Zi["CJK Radicals Supplement"](o)||Zi["CJK Strokes"](o)||Zi["CJK Symbols and Punctuation"](o)||Zi["CJK Unified Ideographs Extension A"](o)||Zi["CJK Unified Ideographs"](o)||Zi["Enclosed CJK Letters and Months"](o)||Zi["Halfwidth and Fullwidth Forms"](o)||Zi.Hiragana(o)||Zi["Ideographic Description Characters"](o)||Zi["Kangxi Radicals"](o)||Zi["Katakana Phonetic Extensions"](o)||Zi.Katakana(o)||Zi["Vertical Forms"](o)||Zi["Yi Radicals"](o)||Zi["Yi Syllables"](o)));(hl[p]||d)&&i.push(In(u+1,l,a,i,Dn(p,e.getCharCode(u+1),d&&s),!1))}}return function e(t){return t?e(t.priorBreak).concat(t.index):[]}(In(e.length(),l,a,i,0,!0))}function Ln(e){var t=.5,n=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:t,verticalAlign:n}}function jn(e,t,n,r,o){if(o){var i=e[r],a=t[i.fontStack],s=a&&a[i.glyph];if(s)for(var l=s.metrics.advance*i.scale,u=(e[r].x+l)*o,c=n;c<=r;c++)e[c].x-=u}}function zn(e,t){var n=t.expression;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new Qi(e+1))};if("source"===n.kind)return{kind:"source"};for(var r=n.zoomStops,o=n.interpolationType,i=0;i<r.length&&r[i]<=e;)i++;for(var a=i=Math.max(0,i-1);a<r.length&&r[a]<e+1;)a++;a=Math.min(r.length-1,a);var s=r[i],l=r[a];return"composite"===n.kind?{kind:"composite",minZoom:s,maxZoom:l,interpolationType:o}:{kind:"camera",minZoom:s,maxZoom:l,minSize:n.evaluate(new Qi(s)),maxSize:n.evaluate(new Qi(l)),interpolationType:o}}function Fn(e,t,n){var r=t.uSize,o=t.uSizeT,i=n.lowerSize,a=n.upperSize;return"source"===e.kind?i/ml:"composite"===e.kind?Y(i/ml,a/ml,o):r}function Nn(e,t){var n=0,r=0;if("constant"===e.kind)r=e.layoutSize;else if("source"!==e.kind){var o=e.interpolationType,i=e.minZoom,s=e.maxZoom,l=o?a(mi.interpolationFactor(o,t,i,s),0,1):0;"camera"===e.kind?r=Y(e.minSize,e.maxSize,l):n=l}return{uSizeT:n,uSize:r}}function Bn(e,t,n,r,o,i,a,s){e.emplaceBack(t,n,Math.round(32*r),Math.round(32*o),i,a,s?s[0]:0,s?s[1]:0)}function Un(e,t,n){e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n)}function Vn(e){for(var t=0,n=0,r=0,o=e;r<o.length;r+=1){var i=o[r];t+=i.w*i.h,n=Math.max(n,i.w)}e.sort(function(e,t){return t.h-e.h});for(var a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}],s=0,l=0,u=0,c=e;u<c.length;u+=1)for(var p=c[u],f=a.length-1;f>=0;f--){var h=a[f];if(!(p.w>h.w||p.h>h.h)){if(p.x=h.x,p.y=h.y,l=Math.max(l,p.y+p.h),s=Math.max(s,p.x+p.w),p.w===h.w&&p.h===h.h){var d=a.pop();f<a.length&&(a[f]=d)}else p.h===h.h?(h.x+=p.w,h.w-=p.w):p.w===h.w?(h.y+=p.h,h.h-=p.h):(a.push({x:h.x+p.w,y:h.y,w:h.w-p.w,h:p.h}),h.y+=p.h,h.h-=p.h);break}}return{w:s,h:l,fill:t/(s*l)||0}}function Hn(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}function qn(e){return e.type===Hn.Bytes?e.readVarint()+e.pos:e.pos+1}function Gn(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function Wn(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var o=n.pos-1;o>=e;o--)n.buf[o+r]=n.buf[o]}function Zn(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function Kn(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function Xn(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function Yn(e,t){for(var n=0;n<e.length;
vendor: 3,555 bytes, line 1
1n++)t.writeDouble(e[n])}function Jn(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function $n(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function Qn(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function er(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function tr(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function nr(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function rr(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function or(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function ir(e,t,n){1===e&&n.readMessage(ar,t)}function ar(e,t,n){if(3===e){var r=n.readMessage(sr,{}),o=r.id,i=r.bitmap,a=r.width,s=r.height,l=r.left,u=r.top,c=r.advance;t.push({id:o,bitmap:new Cs({width:a+2*Hl,height:s+2*Hl},i),metrics:{width:a,height:s,left:l,top:u,advance:c}})}}function sr(e,t,n){1===e?t.id=n.readVarint():2===e?t.bitmap=n.readBytes():3===e?t.width=n.readVarint():4===e?t.height=n.readVarint():5===e?t.left=n.readSVarint():6===e?t.top=n.readSVarint():7===e&&(t.advance=n.readVarint())}function lr(e,t,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[e*r-2*Math.PI*6378137/2,t*r-2*Math.PI*6378137/2]}function ur(e){return Xl*Math.cos(e*Math.PI/180)}function cr(e){return(180+e)/360}function pr(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function fr(e,t){return e/ur(t)}function hr(e){var t=180-360*e;return 360/Math.PI*Math.atan(Math.exp(t*Math.PI/180))-90}function dr(e,t,n,r){(e*=2)<0&&(e=-1*e-1);var o=1<<t;return 32*(o*o*e+o*r+n)+t}function mr(e){for(var t=1/0,n=1/0,r=-1/0,o=-1/0,i=0,a=e;i<a.length;i+=1){var s=a[i];t=Math.min(t,s.x),n=Math.min(n,s.y),r=Math.max(r,s.x),o=Math.max(o,s.y)}return{minX:t,minY:n,maxX:r,maxY:o}}function yr(e,t){return t-e}function gr(e,t,n,r,o){if(void 0===t.segment)return!0;for(var i=t,a=t.segment+1,s=0;s>-n/2;){if(--a<0)return!1;s-=e[a].dist(i),i=e[a]}s+=e[a].dist(e[a+1]),a++;for(var l=[],u=0;s<n/2;){var c=e[a-1],p=e[a],f=e[a+1];if(!f)return!1;var h=c.angleTo(p)-p.angleTo(f);for(h=Math.abs((h+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:h}),u+=h;s-l[0].distance>r;)u-=l.shift().angleDelta;if(u>o)return!1;a++,s+=p.dist(f)}return!0}function vr(e){for(var t=0,n=0;n<e.length-1;n++)t+=e[n].dist(e[n+1]);return t}function _r(e,t,n){return e?.6*t*n:0}function br(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function xr(e,t,n,r,o,i){for(var a=_r(n,o,i),s=br(n,r)*i,l=0,u=vr(e)/2,c=0;c<e.length-1;c++){var p=e[c],f=e[c+1],h=p.dist(f);if(l+h>u){var d=(u-l)/h,m=Y(p.x,f.x,d),y=Y(p.y,f.y,d),g=new dl(m,y,f.angleTo(p),c);return g._round(),!a||gr(e,g,s,a,t)?g:void 0}l+=h}}function wr(e,t,n,r,o,i,a,s,l){var u=_r(r,i,a),c=br(r,o),p=c*a,f=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-p<t/4&&(t=p+t/4),function e(t,n,r,o,i,a,s,l,u){for(var c=a/2,p=vr(t),f=0,h=n-r,d=[],m=0;m<t.length-1;m++){for(var y=t[m],g=t[m+1],v=y.dist(g),_=g.angleTo(y);h+r<f+v;){var b=((h+=r)-f)/v,x=Y(y.x,g.x,b),w=Y(y.y,g.y,b);if(x>=0&&x<u&&w>=0&&w<u&&h-c>=0&&h+c<=p){var E=new dl(x,w,_,m);E._round(),o&&!gr(t,E,a,o,i)||d.push(E)}}f+=v}return l||d.length||s||(d=e(t,f/2,r,o,i,a,s,!0,u)),d}(e,f?t/2*s%t:(c/2+2*i)*a*s%t,t,u,n,p,f,!1,l)}function Er(e,t){return e<t?-1:e>t?1:0}function Tr(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!1);for(var r=1/0,o=1/0,i=-1/0,a=-1/0,s=e[0],l=0;l<s.length;l++){var u=s[l];(!l||u.x<r)&&(r=u.x),(!l||u.y<o)&&(o=u.y),(!l||u.x>i)&&(i=u.x),(!l||u.y>a)&&(a=u.y)}var c=i-r,p=a-o,f=Math.min(c,p),h=f/2,d=new uu([],Or);if(0===f)return new Ir(r,o);for(var m=r;m<i;m+=f)for(var y=o;y<a;
1y+=f)d.push(new Cr(m+h,y+h,h,e));for(var g=function(e){for(var t=0,n=0,r=0,o=e[0],i=0,a=o.length,s=a-1;i<a;s=i++){var l=o[i],u=o[s],c=l.x*u.y-u.x*l.y;n+=(l.x+u.x)*c,r+=(l.y+u.y)*c,t+=3*c}return new Cr(n/t,r/t,0,e)}(e),v=d.length;d.length;){var _=d.pop();(_.d>g.d||!g.d)&&(g=_,n&&console.log("found best %d after %d probes",Math.round(1e4*_.d)/1e4,v)),_.max-g.d<=t||(h=_.h/2,d.push(new Cr(_.p.x-h,_.p.y-h,h,e)),d.push(new Cr(_.p.x+h,_.p.y-h,h,e)),d.push(new Cr(_.p.x-h,_.p.y+h,h,e)),d.push(new Cr(_.p.x+h,_.p.y+h,h,e)),v+=4)}return n&&(console.log("num probes: "+v),console.log("best distance: "+g.d)),g.p}function Or(e,t){return t.max-e.max}function Cr(e,t,n,r){this.p=new Ir(e,t),this.h=n,this.d=function(e,t){for(var n=!1,r=1/0,o=0;o<t.length;o++)for(var i=t[o],a=0,s=i.length,l=s-1;a<s;l=a++){var u=i[a],c=i[l];u.y>e.y!=c.y>e.y&&e.x<(c.x-u.x)*(e.y-u.y)/(c.y-u.y)+u.x&&(n=!n),r=Math.min(r,St(e,u,c))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}function Sr(e,t){var n=0,r=0,o=t/Math.sqrt(2);switch(e){case"top-right":case"top-left":r=o-mu;break;case"bottom-right":case"bottom-left":r=-o+mu;break;case"bottom":r=-t+mu;break;case"top":r=t-mu}switch(e){case"top-right":case"bottom-right":n=-o;break;case"top-left":case"bottom-left":n=o;break;case"left":n=t;break;case"right":n=-t}return[n,r]}function kr(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Ar(e,t,n,r,o,i,a,s,l,u,c,p,f){var h=function(e,t,n,r,o,i,a,s){for(var l=r.layout.get("text-rotate").evaluate(i,{})*Math.PI/180,u=t.positionedGlyphs,c=[],p=0;p<u.length;p++){var f=u[p],h=a[f.fontStack],d=h&&h[f.glyph];if(d){var m=d.rect;if(m){var y=ql+1,g=d.metrics.advance*f.scale/2,v=o?[f.x+g,f.y]:[0,0],_=o?[0,0]:[f.x+g+n[0],f.y+n[1]],b=(o||s)&&f.vertical,x=[0,0];b&&(x=_,_=[0,0]);var w=(d.metrics.left-y)*f.scale-g+_[0],E=(-d.metrics.top-y)*f.scale+_[1],T=w+m.w*f.scale,O=E+m.h*f.scale,C=new Ir(w,E),S=new Ir(T,E),k=new Ir(w,O),A=new Ir(T,O);if(b){var P=new Ir(-g,g-t.yOffset),R=-Math.PI/2,D=ul/2-g,I=new Ir(5-t.yOffset-D,0),M=new(Function.prototype.bind.apply(Ir,[null].concat(x)));C._rotateAround(R,P)._add(I)._add(M),S._rotateAround(R,P)._add(I)._add(M),k._rotateAround(R,P)._add(I)._add(M),A._rotateAround(R,P)._add(I)._add(M)}if(l){var L=Math.sin(l),j=Math.cos(l),z=[j,-L,L,j];C._matMult(z),S._matMult(z),k._matMult(z),A._matMult(z)}c.push({tl:C,tr:S,bl:k,br:A,tex:m,writingMode:t.writingMode,glyphOffset:v,sectionIndex:f.sectionIndex})}}}return c}(0,n,a,r,o,i,p,e.allowVerticalPlacement),d=e.textSizeData,m=null;"source"===d.kind?(m=[ml*r.layout.get("text-size").evaluate(i,{})])[0]>yu&&g(e.layerIds[0]+': Value for "text-size" is >= 256. Reduce your "text-size".'):"composite"===d.kind&&((m=[ml*f.compositeTextSizes[0].evaluate(i,{}),ml*f.compositeTextSizes[1].evaluate(i,{})])[0]>yu||m[1]>yu)&&g(e.layerIds[0]+': Value for "text-size" is >= 256. Reduce your "text-size".'),e.addSymbols(e.text,h,m,a,o,i,l,t,s.lineStartIndex,s.lineLength);for(var y=0,v=u;y<v.length;y+=1)c[v[y]]=e.text.placedSymbolArray.length-1;return 4*h.length}function Pr(e){for(var t in e)return e[t];return null}function Rr(e,t,n,r){var o=e.compareText;if(t in o){for(var i=o[t],a=i.length-1;a>=0;a--)if(r.dist(i[a])<n)return!0}else o[t]=[];return o[t].push(r),!1}var Dr=n;n.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},n.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},n.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},n.prototype.solveCurveX=function(e,t){var n,r,o,i,a;for(void 0===t&&(t=1e-6),o=e,a=0;a<8;a++){if(i=this.sampleCurveX(o)-e,Math.abs(i)<t)return o;var s=this.sampleCurveDerivativeX(o);if(Math.abs(s)<1e-6)break;o-=i/s}if((o=e)<(n=0))return n;if(o>(r=1))return r;for(;n<r;){if(i=this.sampleCurveX(o),Math.abs(i-e)<t)return o;e>i?n=o:r=o,o=.5*(r-n)+n}return o},n.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var Ir=r;r.prototype={clone:function(){return new r(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)}
vendor: 3,220 bytes, line 1
1,rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=t*this.x-n*this.y,o=n*this.x+t*this.y;return this.x=r,this.y=o,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),o=t.x+n*(this.x-t.x)-r*(this.y-t.y),i=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=o,this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},r.convert=function(e){return e instanceof r?e:Array.isArray(e)?new r(e[0],e[1]):e};var Mr,Lr,jr,zr,Fr=i(.25,.1,.25,1),Nr=1,Br={},Ur=self.performance&&self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),Vr=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,Hr=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,qr={now:Ur,frame:function(e){var t=Vr(e);return{cancel:function(){return Hr(t)}}},getImageData:function(e){var t=self.document.createElement("canvas"),n=t.getContext("2d");if(!n)throw new Error("failed to create canvas 2d context");return t.width=e.width,t.height=e.height,n.drawImage(e,0,0,e.width,e.height),n.getImageData(0,0,e.width,e.height)},resolveURL:function(e){return Mr||(Mr=self.document.createElement("a")),Mr.href=e,Mr.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&&(null==Lr&&(Lr=self.matchMedia("(prefers-reduced-motion: reduce)")),Lr.matches)}},Gr={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16}
1,Wr={supported:!1,testSupport:function(e){!Zr&&zr&&(Kr?w(e):jr=e)}},Zr=!1,Kr=!1;self.document&&((zr=self.document.createElement("img")).onload=function(){jr&&w(jr),jr=null,Kr=!0},zr.onerror=function(){Zr=!0,jr=null},zr.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Xr=function(e,t){this._transformRequestFn=e,this._customAccessToken=t,this._createSkuToken()};Xr.prototype._createSkuToken=function(){var e=function(){for(var e="",t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1","01",e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt},Xr.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Xr.prototype.transformRequest=function(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}},Xr.prototype.normalizeStyleURL=function(e,t){if(!E(e))return e;var n=O(e);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},Xr.prototype.normalizeGlyphsURL=function(e,t){if(!E(e))return e;var n=O(e);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},Xr.prototype.normalizeSourceURL=function(e,t){if(!E(e))return e;var n=O(e);return n.path="/v4/"+n.authority+".json",n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||t)},Xr.prototype.normalizeSpriteURL=function(e,t,n,r){var o=O(e);return E(e)?(o.path="/styles/v1"+o.path+"/sprite"+t+n,this._makeAPIURL(o,this._customAccessToken||r)):(o.path+=""+t+n,C(o))},Xr.prototype.normalizeTileURL=function(e,t,n){if(this._isSkuTokenExpired()&&this._createSkuToken(),!t||!E(t))return e;var r=O(e),o=qr.devicePixelRatio>=2||512===n?"@2x":"",i=Wr.supported?".webp":"$1";return r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+o+i),r.path=r.path.replace(/^.+\/v4\//,"/"),r.path="/v4"+r.path,Gr.REQUIRE_ACCESS_TOKEN&&(Gr.ACCESS_TOKEN||this._customAccessToken)&&this._skuToken&&r.params.push("sku="+this._skuToken),this._makeAPIURL(r,this._customAccessToken)},Xr.prototype.canonicalizeTileURL=function(e){var t=O(e);if(!t.path.match(/(^\/v4\/)/)||!t.path.match(/\.[\w]+$/))return e;var n="mapbox://tiles/";n+=t.path.replace("/v4/","");var r=t.params.filter(function(e){return!e.match(/^access_token=/)});return r.length&&(n+="?"+r.join("&")),n},Xr.prototype.canonicalizeTileset=function(e,t){if(!E(t))return e.tiles||[];for(var n=[],r=0,o=e.tiles;r<o.length;r+=1){var i=o[r],a=this.canonicalizeTileURL(i);n.push(a)}return n},Xr.prototype._makeAPIURL=function(e,t){var n="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",r=O(Gr.API_URL);if(e.protocol=r.protocol,e.authority=r.authority,"/"!==r.path&&(e.path=""+r.path+e.path),!Gr.REQUIRE_ACCESS_TOKEN)return C(e);if(!(t=t||Gr.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===t[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n);return e.params=e.params.filter(function(e){return-1===e.indexOf("access_token")}),e.params.push("access_token="+t),C(e)};var Yr=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i,Jr=/^(\w+):\/\/([^\/?]*)(\/[^?]+)?\??(.+)?/,$r=function(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};$r.prototype.getStorageKey=function(e){var t,n=S(Gr.ACCESS_TOKEN),r="";return n&&n.u?(t=n.u,r=self.btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(Number("0x"+t))}))):r=Gr.ACCESS_TOKEN||"",e?"mapbox.eventData."+e+":"+r:"mapbox.eventData:"+r},$r.prototype.fetchEventData=function(){var e=x("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{var r=self.localStorage.getItem(t);r&&(this.eventData=JSON.parse(r));var o=self.localStorage.getItem(n);o&&(this.anonId=o)}catch(e){g("Unable to read from LocalStorage")}},$r.prototype.saveEventData=function(){var e=x("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{self.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&self.localStorage.setItem(t,JSON.stringify(this.eventData))}catch(e){g("Unable to write to LocalStorage")}},$r.prototype.processRequests=function(e){},$r.prototype.postEvent=function(e,t,n,r){var o=this;if(Gr.EVENTS_URL){var i=O(Gr.EVENTS_URL);i.params.push("access_token="+(r||Gr.ACCESS_TOKEN||""));var a={event:this.type,created:new Date(e).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.3.1",skuId:"01",userId:this.anonId},s=t?l(a,t):a,u={url:C(i),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=vo(u,function(e){o.pendingRequest=null,n(e),o.saveEventData(),o.processRequests(r)})}},$r.prototype.queueRequest=function(e,t){this.queue.push(e),this.processRequests(t)};var Qr,eo=function(e){function t(){e.call(this,"map.load"),this.success={},this.skuToken=""}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.postMapLoadEvent=function(e,t,n,r){this.skuToken=n,(Gr.EVENTS_URL&&r||Gr.ACCESS_TOKEN&&Array.isArray(e)&&e.some(function(e){return E(e)||T(e)}))&&this.queueRequest({id:t,timestamp:Date.now()},r)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){var n=this.queue.shift(),r=n.id,o=n.timestamp;r&&this.success[r]||(this.anonId||this.fetchEventData(),p(this.anonId)||(this.anonId=c()),this.postEvent(o,{skuToken:this.skuToken},function(e){e||r&&(t.success[r]=!0)},e))}},t}($r),to=new(function(e){function t(t){e.call(this,"appUserTurnstile"),this._customAccessToken=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.postTurnstileEvent=function(e,t){Gr.EVENTS_URL&&Gr.ACCESS_TOKEN&&Array.isArray(e)&&e.some(function(e){return E(e)||T(e)})&&this.queueRequest(Date.now(),t)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var n=S(Gr.ACCESS_TOKEN),r=n?n.u:Gr.ACCESS_TOKEN,o=r!==this.eventData.tokenU;p(this.anonId)||(this.anonId=c(),o=!0);var i=this.queue.shift();if(this.eventData.lastSuccess){var a=new Date(this.eventData.lastSuccess),s=new Date(i),l=(i-this.eventData.lastSuccess)/864e5;o=o||l>=1||l<-1||a.getDate()!==s.getDate()}else o=!0;if(!o)return this.processRequests();this.postEvent(i,{"enabled.telemetry":!1},function(e){e||(t.eventData.lastSuccess=i,t.eventData.tokenU=r)},e)}},t}($r)),no=to.postTurnstileEvent.bind(to),ro=new eo,oo=ro.postMapLoadEvent.bind(ro),io="mapbox-tiles",ao=500,so=50,lo=42e4,uo=1/0,co={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(co);var po,fo,ho=function(e){function t(t,n,r){401===n&&T(r)&&(t+=":
1you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),e.call(this,t),this.status=n,this.url=r,this.name=this.constructor.name,this.message=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},t}(Error),mo=R()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===self.location.protocol?self.parent:self).location.href},yo=function(e,t){if(n=e.url,!(/^file:/.test(n)||/^file:/.test(mo())&&!/^\w+:/.test(n))){if(self.fetch&&self.Request&&self.AbortController&&self.Request.prototype.hasOwnProperty("signal"))return D(e,t);if(R()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t)}var n;return function(e,t){var n=new self.XMLHttpRequest;for(var r in n.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(n.responseType="arraybuffer"),e.headers)n.setRequestHeader(r,e.headers[r]);return"json"===e.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===e.credentials,n.onerror=function(){t(new Error(n.statusText))},n.onload=function(){if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){var r=n.response;if("json"===e.type)try{r=JSON.parse(n.response)}catch(e){return t(e)}t(null,r,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else t(new ho(n.statusText,n.status,e.url))},n.send(e.body),{cancel:function(){return n.abort()}}}(e,t)},go=function(e,t){return yo(l(e,{type:"arrayBuffer"}),t)},vo=function(e,t){return yo(l(e,{method:"POST"}),t)};po=[],fo=0;var _o=function(e,t){if(fo>=Gr.MAX_PARALLEL_IMAGE_REQUESTS){var n={requestParameters:e,callback:t,cancelled:!1,cancel:function(){this.cancelled=!0}};return po.push(n),n}fo++;var r=!1,o=function(){if(!r)for(r=!0,fo--;po.length&&fo<Gr.MAX_PARALLEL_IMAGE_REQUESTS;){var e=po.shift(),t=e.requestParameters,n=e.callback;e.cancelled||(e.cancel=_o(t,n).cancel)}},i=go(e,function(e,n,r,i){if(o(),e)t(e);else if(n){var a=new self.Image,s=self.URL||self.webkitURL;a.onload=function(){t(null,a),s.revokeObjectURL(a.src)},a.onerror=function(){return t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var l=new self.Blob([new Uint8Array(n)],{type:"image/png"});a.cacheControl=r,a.expires=i,a.src=n.byteLength?s.createObjectURL(l):"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="}});return{cancel:function(){i.cancel(),o()}}},bo=function(e,t){void 0===t&&(t={}),l(this,t),this.type=e},xo=function(e){function t(t,n){void 0===n&&(n={}),e.call(this,"error",l({error:t},n))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(bo),wo=function(){};wo.prototype.on=function(e,t){return this._listeners=this._listeners||{},I(e,t,this._listeners),this},wo.prototype.off=function(e,t){return M(e,t,this._listeners),M(e,t,this._oneTimeListeners),this},wo.prototype.once=function(e,t){return this._oneTimeListeners=this._oneTimeListeners||{},I(e,t,this._oneTimeListeners),this},wo.prototype.fire=function(e,t){"string"==typeof e&&(e=new bo(e,t||{}));var n=e.type;if(this.listens(n)){e.target=this;for(var r=0,o=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];r<o.length;r+=1)o[r].call(this,e);for(var i=0,a=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];i<a.length;i+=1){var s=a[i];M(n,s,this._oneTimeListeners),s.call(this,e)}var u=this._eventedParent;u&&(l(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),u.fire(e))}else e instanceof xo&&console.error(e.error);return this},wo.prototype.listens=function(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)},wo.prototype.setEventedParent=function(e,t){return this._eventedParent=e,this._eventedParentData=t,this};var Eo={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"}
vendor: 4,182 bytes, line 1
1,bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{}
vendor: 6,999 bytes, line 1
1,miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"string",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}
vendor: 9,415 bytes, line 1
1,"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"},{"!":"text-variable-anchor"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum: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"},"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:"string",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:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}
vendor: 6,727 bytes, line 1
1,"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"string",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"}
vendor: 8,615 bytes, line 1
1,"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:"string",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"}}},To=function(e,t,n,r){this.message=(e?e+": ":"")+n,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)},Oo=function(e){function t(t,n){e.call(this,n),this.message=n,this.key=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),Co=function(e,t){void 0===t&&(t=[]),this.parent=e,this.bindings={};for(var n=0,r=t;n<r.length;n+=1){var o=r[n],i=o[0],a=o[1];this.bindings[i]=a}};Co.prototype.concat=function(e){return new Co(this,e)},Co.prototype.get=function(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(e+" not found in scope.")},Co.prototype.has=function(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)};var So={kind:"null"},ko={kind:"number"},Ao={kind:"string"},Po={kind:"boolean"},Ro={kind:"color"},Do={kind:"object"},Io={kind:"value"},Mo={kind:"collator"},Lo={kind:"formatted"},jo=[So,ko,Ao,Po,Ro,Lo,Do,B(Io)],zo=t(function(e,t){function n(e){return(e=Math.round(e))<0?0:e>255?255:e}function r(e){return e<0?0:e>1?1:e}function o(e){return n("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function i(e){return r("%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))}function a(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}var s={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};try{t.parseCSSColor=function(e){var t,r=e.replace(/ /g,"").toLowerCase();if(r in s)return s[r].slice();if("#"===r[0])return 4===r.length?(t=parseInt(r.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===r.length&&(t=parseInt(r.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var l=r.indexOf("("),u=r.indexOf(")");if(-1!==l&&u+1===r.length){var c=r.substr(0,l),p=r.substr(l+1,u-(l+1)).split(","),f=1;switch(c){case"rgba":if(4!==p.length)return null;f=i(p.pop());
vendor: 4,222 bytes, line 1
1case"rgb":return 3!==p.length?null:[o(p[0]),o(p[1]),o(p[2]),f];case"hsla":if(4!==p.length)return null;f=i(p.pop());case"hsl":if(3!==p.length)return null;var h=(parseFloat(p[0])%360+360)%360/360,d=i(p[1]),m=i(p[2]),y=m<=.5?m*(d+1):m+d-m*d,g=2*m-y;return[n(255*a(g,y,h+1/3)),n(255*a(g,y,h)),n(255*a(g,y,h-1/3)),f];default:return null}}return null}}catch(e){}}).parseCSSColor,Fo=function(e,t,n,r){void 0===r&&(r=1),this.r=e,this.g=t,this.b=n,this.a=r};Fo.parse=function(e){if(e){if(e instanceof Fo)return e;if("string"==typeof e){var t=zo(e);if(t)return new Fo(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}}},Fo.prototype.toString=function(){var e=this.toArray(),t=e[0],n=e[1],r=e[2],o=e[3];return"rgba("+Math.round(t)+","+Math.round(n)+","+Math.round(r)+","+o+")"},Fo.prototype.toArray=function(){var e=this.r,t=this.g,n=this.b,r=this.a;return 0===r?[0,0,0,0]:[255*e/r,255*t/r,255*n/r,r]},Fo.black=new Fo(0,0,0,1),Fo.white=new Fo(1,1,1,1),Fo.transparent=new Fo(0,0,0,0),Fo.red=new Fo(1,0,0,1);var No=function(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};No.prototype.compare=function(e,t){return this.collator.compare(e,t)},No.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Bo=function(e,t,n,r){this.text=e,this.scale=t,this.fontStack=n,this.textColor=r},Uo=function(e){this.sections=e};Uo.fromString=function(e){return new Uo([new Bo(e,null,null,null)])},Uo.prototype.toString=function(){return this.sections.map(function(e){return e.text}).join("")},Uo.prototype.serialize=function(){for(var e=["format"],t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e.push(r.text);var o={};r.fontStack&&(o["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(o["font-scale"]=r.scale),r.textColor&&(o["text-color"]=["rgba"].concat(r.textColor.toArray())),e.push(o)}return e};var Vo=function(e,t){this.type=e,this.value=t};Vo.parse=function(e,t){if(2!==e.length)return t.error("'literal' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(!function e(t){if(null===t)return!0;if("string"==typeof t)return!0;if("boolean"==typeof t)return!0;if("number"==typeof t)return!0;if(t instanceof Fo)return!0;if(t instanceof No)return!0;if(t instanceof Uo)return!0;if(Array.isArray(t)){for(var n=0,r=t;n<r.length;n+=1)if(!e(r[n]))return!1;return!0}if("object"==typeof t){for(var o in t)if(!e(t[o]))return!1;return!0}return!1}(e[1]))return t.error("invalid value");var n=e[1],r=q(n),o=t.expectedType;return"array"!==r.kind||0!==r.N||!o||"array"!==o.kind||"number"==typeof o.N&&0!==o.N||(r=o),new Vo(r,n)},Vo.prototype.evaluate=function(){return this.value},Vo.prototype.eachChild=function(){},Vo.prototype.possibleOutputs=function(){return[this.value]},Vo.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Fo?["rgba"].concat(this.value.toArray()):this.value instanceof Uo?this.value.serialize():this.value};var Ho=function(e){this.name="ExpressionEvaluationError",this.message=e};Ho.prototype.toJSON=function(){return this.message};var qo={string:Ao,number:ko,boolean:Po,object:Do},Go=function(e,t){this.type=e,this.args=t};Go.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n,r=1,o=e[0];if("array"===o){var i,a;if(e.length>2){var s=e[1];if("string"!=typeof s||!(s in qo)||"object"===s)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=qo[s],r++}else i=Io;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);a=e[2],r++}n=B(i,a)}else n=qo[o];for(var l=[];r<e.length;r++){var u=t.parse(e[r],r,Io);if(!u)return null;l.push(u)}return new Go(n,l)},Go.prototype.evaluate=function(e){for(var t=0;t<this.args.length;t++){var n=this.args[t].evaluate(e);if(!V(this.type,q(n)))return n;if(t===this.args.length-1)throw new Ho("Expected value to be of type "+U(this.type)+", but found "+U(q(n))+" instead.")}return null}
1,Go.prototype.eachChild=function(e){this.args.forEach(e)},Go.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.args.map(function(e){return e.possibleOutputs()}))},Go.prototype.serialize=function(){var e=this.type,t=[e.kind];if("array"===e.kind){var n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);var r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map(function(e){return e.serialize()}))};var Wo=function(e){this.type=Lo,this.sections=e};Wo.parse=function(e,t){if(e.length<3)return t.error("Expected at least two arguments.");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");for(var n=[],r=1;r<e.length-1;r+=2){var o=t.parse(e[r],1,Io);if(!o)return null;var i=o.type.kind;if("string"!==i&&"value"!==i&&"null"!==i)return t.error("Formatted text type must be 'string', 'value', or 'null'.");var a=e[r+1];if("object"!=typeof a||Array.isArray(a))return t.error("Format options argument must be an object.");var s=null;if(a["font-scale"]&&!(s=t.parse(a["font-scale"],1,ko)))return null;var l=null;if(a["text-font"]&&!(l=t.parse(a["text-font"],1,B(Ao))))return null;var u=null;if(a["text-color"]&&!(u=t.parse(a["text-color"],1,Ro)))return null;n.push({text:o,scale:s,font:l,textColor:u})}return new Wo(n)},Wo.prototype.evaluate=function(e){return new Uo(this.sections.map(function(t){return new Bo(G(t.text.evaluate(e)),t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)}))},Wo.prototype.eachChild=function(e){for(var t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e(r.text),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor)}},Wo.prototype.possibleOutputs=function(){return[void 0]},Wo.prototype.serialize=function(){for(var e=["format"],t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e.push(r.text.serialize());var o={};r.scale&&(o["font-scale"]=r.scale.serialize()),r.font&&(o["text-font"]=r.font.serialize()),r.textColor&&(o["text-color"]=r.textColor.serialize()),e.push(o)}return e};var Zo={"to-boolean":Po,"to-color":Ro,"to-number":ko,"to-string":Ao},Ko=function(e,t){this.type=e,this.args=t};Ko.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");for(var r=Zo[n],o=[],i=1;i<e.length;i++){var a=t.parse(e[i],i,Io);if(!a)return null;o.push(a)}return new Ko(r,o)},Ko.prototype.evaluate=function(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){for(var t,n,r=0,o=this.args;r<o.length;r+=1){if(n=null,(t=o[r].evaluate(e))instanceof Fo)return t;if("string"==typeof t){var i=e.parseColor(t);if(i)return i}else if(Array.isArray(t)&&!(n=t.length<3||t.length>4?"Invalid rbga value "+JSON.stringify(t)+": expected an array containing either three or four numeric values.":H(t[0],t[1],t[2],t[3])))return new Fo(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new Ho(n||"Could not parse color from value '"+("string"==typeof t?t:String(JSON.stringify(t)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,l=this.args;s<l.length;s+=1){if(null===(a=l[s].evaluate(e)))return 0;var u=Number(a);if(!isNaN(u))return u}throw new Ho("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?Uo.fromString(G(this.args[0].evaluate(e))):G(this.args[0].evaluate(e))},Ko.prototype.eachChild=function(e){this.args.forEach(e)},Ko.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.args.map(function(e){return e.possibleOutputs()}))},Ko.prototype.serialize=function(){if("formatted"===this.type.kind)return new Wo([{text:this.args[0],scale:null,font:null,textColor:null}]).serialize();var e=["to-"+this.type.kind];return this.eachChild(function(t){e.push(t.serialize())}),e};var Xo=["Unknown","Point","LineString","Polygon"],Yo=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={}};Yo.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},Yo.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?Xo[this.feature.type]:this.feature.type:null},Yo.prototype.properties=function(){return this.feature&&this.feature.properties||{}},Yo.prototype.parseColor=function(e){var t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=Fo.parse(e)),t};var Jo=function(e,t,n,r){this.name=e,this.type=t,this._evaluate=n,this.args=r};Jo.prototype.evaluate=function(e){return this._evaluate(e,this.args)}
vendor: 4,640 bytes, line 1
1,Jo.prototype.eachChild=function(e){this.args.forEach(e)},Jo.prototype.possibleOutputs=function(){return[void 0]},Jo.prototype.serialize=function(){return[this.name].concat(this.args.map(function(e){return e.serialize()}))},Jo.parse=function(e,t){var n,r=e[0],o=Jo.definitions[r];if(!o)return t.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0);for(var i=Array.isArray(o)?o[0]:o.type,a=Array.isArray(o)?[[o[1],o[2]]]:o.overloads,s=a.filter(function(t){var n=t[0];return!Array.isArray(n)||n.length===e.length-1}),l=null,u=0,c=s;u<c.length;u+=1){var p=c[u],f=p[0],h=p[1];l=new ei(t.registry,t.path,null,t.scope);for(var d=[],m=!1,y=1;y<e.length;y++){var g=e[y],v=Array.isArray(f)?f[y-1]:f.type,_=l.parse(g,1+d.length,v);if(!_){m=!0;break}d.push(_)}if(!m)if(Array.isArray(f)&&f.length!==d.length)l.error("Expected "+f.length+" arguments, but found "+d.length+" instead.");else{for(var b=0;b<d.length;b++){var x=Array.isArray(f)?f[b]:f.type,w=d[b];l.concat(b+1).checkSubtype(x,w.type)}if(0===l.errors.length)return new Jo(r,i,h,d)}}if(1===s.length)(n=t.errors).push.apply(n,l.errors);else{for(var E=(s.length?s:a).map(function(e){var t;return t=e[0],Array.isArray(t)?"("+t.map(U).join(", ")+")":"("+U(t.type)+"...)"}).join(" | "),T=[],O=1;O<e.length;O++){var C=t.parse(e[O],1+T.length);if(!C)return null;T.push(U(C.type))}t.error("Expected arguments of type "+E+", but found ("+T.join(", ")+") instead.")}return null},Jo.register=function(e,t){for(var n in Jo.definitions=t,t)e[n]=Jo};var $o=function(e,t,n){this.type=Mo,this.locale=n,this.caseSensitive=e,this.diacriticSensitive=t};$o.parse=function(e,t){if(2!==e.length)return t.error("Expected one argument.");var n=e[1];if("object"!=typeof n||Array.isArray(n))return t.error("Collator options argument must be an object.");var r=t.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,Po);if(!r)return null;var o=t.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,Po);if(!o)return null;var i=null;return n.locale&&!(i=t.parse(n.locale,1,Ao))?null:new $o(r,o,i)},$o.prototype.evaluate=function(e){return new No(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)},$o.prototype.eachChild=function(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)},$o.prototype.possibleOutputs=function(){return[void 0]},$o.prototype.serialize=function(){var e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]};var Qo=function(e,t){this.type=t.type,this.name=e,this.boundExpression=t};Qo.parse=function(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");var n=e[1];return t.scope.has(n)?new Qo(n,t.scope.get(n)):t.error('Unknown variable "'+n+'". Make sure "'+n+'" has been bound in an enclosing "let" expression before using it.',1)},Qo.prototype.evaluate=function(e){return this.boundExpression.evaluate(e)},Qo.prototype.eachChild=function(){},Qo.prototype.possibleOutputs=function(){return[void 0]},Qo.prototype.serialize=function(){return["var",this.name]};var ei=function(e,t,n,r,o){void 0===t&&(t=[]),void 0===r&&(r=new Co),void 0===o&&(o=[]),this.registry=e,this.path=t,this.key=t.map(function(e){return"["+e+"]"}).join(""),this.scope=r,this.errors=o,this.expectedType=n};ei.prototype.parse=function(e,t,n,r,o){return void 0===o&&(o={}),t?this.concat(t,n,r)._parse(e,o):this._parse(e,o)},ei.prototype._parse=function(e,t){function n(e,t,n){return"assert"===n?new Go(t,[e]):"coerce"===n?new Ko(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var r=e[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+typeof r+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var o=this.registry[r];if(o){var i=o.parse(e,this);if(!i)return null;if(this.expectedType){var a=this.expectedType,s=i.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else i=n(i,a,t.typeAnnotation||"coerce");else i=n(i,a,t.typeAnnotation||"assert")}if(!(i instanceof Vo)&&function e(t){if(t instanceof Qo)return e(t.boun
1dExpression);if(t instanceof Jo&&"error"===t.name)return!1;if(t instanceof $o)return!1;var n=t instanceof Ko||t instanceof Go,r=!0;return t.eachChild(function(t){r=n?r&&e(t):r&&t instanceof Vo}),!!r&&(W(t)&&K(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]))}(i)){var l=new Yo;try{i=new Vo(i.type,i.evaluate(l))}catch(e){return this.error(e.message),null}}return i}return this.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===e?this.error("'undefined' value invalid. Use null instead."):"object"==typeof e?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof e+" instead.")},ei.prototype.concat=function(e,t,n){var r="number"==typeof e?this.path.concat(e):this.path,o=n?this.scope.concat(n):this.scope;return new ei(this.registry,r,t||null,o,this.errors)},ei.prototype.error=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=""+this.key+t.map(function(e){return"["+e+"]"}).join("");this.errors.push(new Oo(r,e))},ei.prototype.checkSubtype=function(e,t){var n=V(e,t);return n&&this.error(n),n};var ti=function(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(var r=0,o=n;r<o.length;r+=1){var i=o[r],a=i[0],s=i[1];this.labels.push(a),this.outputs.push(s)}};ti.parse=function(e,t){if(e.length-1<4)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");var n=t.parse(e[1],1,ko);if(!n)return null;var r=[],o=null;t.expectedType&&"value"!==t.expectedType.kind&&(o=t.expectedType);for(var i=1;i<e.length;i+=2){var a=1===i?-1/0:e[i],s=e[i+1],l=i,u=i+1;if("number"!=typeof a)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(r.length&&r[r.length-1][0]>=a)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var c=t.parse(s,u,o);if(!c)return null;o=o||c.type,r.push([a,c])}return new ti(o,n,r)},ti.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var o=t.length;return r>=t[o-1]?n[o-1].evaluate(e):n[X(t,r)].evaluate(e)},ti.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},ti.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.outputs.map(function(e){return e.possibleOutputs()}))},ti.prototype.serialize=function(){for(var e=["step",this.input.serialize()],t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e};var ni=Object.freeze({number:Y,color:function(e,t,n){return new Fo(Y(e.r,t.r,n),Y(e.g,t.g,n),Y(e.b,t.b,n),Y(e.a,t.a,n))},array:function(e,t,n){return e.map(function(e,r){return Y(e,t[r],n)})}}),ri=.95047,oi=1,ii=1.08883,ai=4/29,si=6/29,li=3*si*si,ui=si*si*si,ci=Math.PI/180,pi=180/Math.PI,fi={forward:te,reverse:ne,interpolate:function(e,t,n){return{l:Y(e.l,t.l,n),a:Y(e.a,t.a,n),b:Y(e.b,t.b,n),alpha:Y(e.alpha,t.alpha,n)}}},hi={forward:function(e){var t=te(e),n=t.l,r=t.a,o=t.b,i=Math.atan2(o,r)*pi;return{h:i<0?i+360:i,c:Math.sqrt(r*r+o*o),l:n,alpha:e.a}},reverse:function(e){var t=e.h*ci,n=e.c;return ne({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:re(e.h,t.h,n),c:Y(e.c,t.c,n),l:Y(e.l,t.l,n),alpha:Y(e.alpha,t.alpha,n)}}},di=Object.freeze({lab:fi,hcl:hi}),mi=function(e,t,n,r,o){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(var i=0,a=o;i<a.length;i+=1){var s=a[i],l=s[0],u=s[1];this.labels.push(l),this.outputs.push(u)}};mi.interpolationFactor=function(e,t,n,r){var o=0;if("exponential"===e.name)o=oe(t,e.base,n,r);else if("linear"===e.name)o=oe(t,1,n,r);else if("cubic-bezier"===e.name){var i=e.controlPoints;o=new Dr(i[0],i[1],i[2],i[3]).solve(oe(t,1,n,r))}return o},mi.parse=function(e,t){var n=e[0],r=e[1],o=e[2],i=e.slice(3);if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){var a=r[1];if("number"!=typeof a)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:a}}else{if("cubic-bezier"!==r[0])return t.error("Unknown interpolation type "+String(r[0]),1,0);var s=r.slice(1);if(4!==s.length||s.some(function(e){return"number"!=typeof e||e<0||e>1}))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:s}}if(e.length-1<4)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(!(o=t.parse(o,2,ko)))return null;var l=[],u=null;"interpolate-hcl"===n||"interpolate-lab"===n?u=Ro:t.expectedType&&"value"!==t.expectedType.kind&&(u=t.expectedType);for(var c=0;c<i.length;c+=2){var p=i[c],f=i[c+1],h=c+3,d=c+4;if("number"!=typeof p)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not c
1omputed expressions) for the input values.',h);if(l.length&&l[l.length-1][0]>=p)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',h);var m=t.parse(f,d,u);if(!m)return null;u=u||m.type,l.push([p,m])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new mi(u,n,r,o,l):t.error("Type "+U(u)+" is not interpolatable.")},mi.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var o=t.length;if(r>=t[o-1])return n[o-1].evaluate(e);var i=X(t,r),a=t[i],s=t[i+1],l=mi.interpolationFactor(this.interpolation,r,a,s),u=n[i].evaluate(e),c=n[i+1].evaluate(e);return"interpolate"===this.operator?ni[this.type.kind.toLowerCase()](u,c,l):"interpolate-hcl"===this.operator?hi.reverse(hi.interpolate(hi.forward(u),hi.forward(c),l)):fi.reverse(fi.interpolate(fi.forward(u),fi.forward(c),l))},mi.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},mi.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.outputs.map(function(e){return e.possibleOutputs()}))},mi.prototype.serialize=function(){var e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var t=[this.operator,e,this.input.serialize()],n=0;n<this.labels.length;n++)t.push(this.labels[n],this.outputs[n].serialize());return t};var yi=function(e,t){this.type=e,this.args=t};yi.parse=function(e,t){if(e.length<2)return t.error("Expectected at least one argument.");var n=null,r=t.expectedType;r&&"value"!==r.kind&&(n=r);for(var o=[],i=0,a=e.slice(1);i<a.length;i+=1){var s=a[i],l=t.parse(s,1+o.length,n,void 0,{typeAnnotation:"omit"});if(!l)return null;n=n||l.type,o.push(l)}var u=r&&o.some(function(e){return V(r,e.type)});return new yi(u?Io:n,o)},yi.prototype.evaluate=function(e){for(var t=null,n=0,r=this.args;n<r.length&&null===(t=r[n].evaluate(e));n+=1);return t},yi.prototype.eachChild=function(e){this.args.forEach(e)},yi.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.args.map(function(e){return e.possibleOutputs()}))},yi.prototype.serialize=function(){var e=["coalesce"];return this.eachChild(function(t){e.push(t.serialize())}),e};var gi=function(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t};gi.prototype.evaluate=function(e){return this.result.evaluate(e)},gi.prototype.eachChild=function(e){for(var t=0,n=this.bindings;t<n.length;t+=1)e(n[t][1]);e(this.result)},gi.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found "+(e.length-1)+" instead.");for(var n=[],r=1;r<e.length-1;r+=2){var o=e[r];if("string"!=typeof o)return t.error("Expected string, but found "+typeof o+" instead.",r);if(/[^a-zA-Z0-9_]/.test(o))return t.error("Variable names must contain only alphanumeric characters or '_'.",r);var i=t.parse(e[r+1],r+1);if(!i)return null;n.push([o,i])}var a=t.parse(e[e.length-1],e.length-1,t.expectedType,n);return a?new gi(n,a):null},gi.prototype.possibleOutputs=function(){return this.result.possibleOutputs()},gi.prototype.serialize=function(){for(var e=["let"],t=0,n=this.bindings;t<n.length;t+=1){var r=n[t],o=r[0],i=r[1];e.push(o,i.serialize())}return e.push(this.result.serialize()),e};var vi=function(e,t,n){this.type=e,this.index=t,this.input=n};vi.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,ko),r=t.parse(e[2],2,B(t.expectedType||Io));if(!n||!r)return null;var o=r.type;return new vi(o.itemType,n,r)},vi.prototype.evaluate=function(e){var t=this.index.evaluate(e),n=this.input.evaluate(e);if(t<0)throw new Ho("Array index out of bounds: "+t+" < 0.");if(t>=n.length)throw new Ho("Array index out of bounds: "+t+" > "+(n.length-1)+".");if(t!==Math.floor(t))throw new Ho("Array index must be an integer, but found "+t+" instead.");return n[t]},vi.prototype.eachChild=function(e){e(this.index),e(this.input)},vi.prototype.possibleOutputs=function(){return[void 0]},vi.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var _i=function(e,t,n,r,o,i){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=o,this.otherwise=i};_i.parse=function(e,t){if(e.length<5)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if(e.length%2!=1)return t.error("Expected an even number of arguments.");var n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(var o={},i=[],a=2;a<e.length-1;a+=2){var s=e[a],l=e[a+1];Array.isArray(s)||(s=[s]);var u=t.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var c=0,p=s;c<p.length;c+=1){var f=p[c];if("number"!=typeof f&&"string"!=typeof f)return u.error("Branch labels must be numbers or strings.");if("number"==typeof f&&Math.abs(f)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof f&&Math.floor(f)!==f)return u.error("Numeric branch labels must be integer values.");if(n){if(u.checkSubtype(n,q(f)))return null}else n=q(f);if(void 0!==o[String(f)])return u.error("Branch labels must be unique.");o[String(f)]=i.length}var h=t.parse(l,a,r);if(!h)return null;r=r||h.type,i.push(h)}var d=t.parse(e[1],1,Io);if(!d)return null;var m=t.parse(e[e.length-1],e.length-1,r);return m?"value"!==d.type.kind&&t.concat(1).checkSubtype(n,d.type)?null:new _i(n,r,d,o,i,m):null},_i.prototype.evaluate=function(e){var t=this.input.evaluate(e);return(q(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)},_i.prototype.eachChild=function(e){e(this.input),this.outputs.forEac
vendor: 17,678 bytes, line 1
1h(e),e(this.otherwise)},_i.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.outputs.map(function(e){return e.possibleOutputs()})).concat(this.otherwise.possibleOutputs())},_i.prototype.serialize=function(){for(var e=this,t=["match",this.input.serialize()],n=[],r={},o=0,i=Object.keys(this.cases).sort();o<i.length;o+=1){var a=i[o];void 0===(p=r[this.cases[a]])?(r[this.cases[a]]=n.length,n.push([this.cases[a],[a]])):n[p][1].push(a)}for(var s=function(t){return"number"===e.inputType.kind?Number(t):t},l=0,u=n;l<u.length;l+=1){var c=u[l],p=c[0],f=c[1];1===f.length?t.push(s(f[0])):t.push(f.map(s)),t.push(this.outputs[outputIndex$1].serialize())}return t.push(this.otherwise.serialize()),t};var bi=function(e,t,n){this.type=e,this.branches=t,this.otherwise=n};bi.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found only "+(e.length-1)+".");if(e.length%2!=0)return t.error("Expected an odd number of arguments.");var n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(var r=[],o=1;o<e.length-1;o+=2){var i=t.parse(e[o],o,Po);if(!i)return null;var a=t.parse(e[o+1],o+1,n);if(!a)return null;r.push([i,a]),n=n||a.type}var s=t.parse(e[e.length-1],e.length-1,n);return s?new bi(n,r,s):null},bi.prototype.evaluate=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],o=r[0],i=r[1];if(o.evaluate(e))return i.evaluate(e)}return this.otherwise.evaluate(e)},bi.prototype.eachChild=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],o=r[0],i=r[1];e(o),e(i)}e(this.otherwise)},bi.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.branches.map(function(e){return e[0],e[1].possibleOutputs()})).concat(this.otherwise.possibleOutputs())},bi.prototype.serialize=function(){var e=["case"];return this.eachChild(function(t){e.push(t.serialize())}),e};var xi=se("==",function(e,t,n){return t===n},ae),wi=se("!=",function(e,t,n){return t!==n},function(e,t,n,r){return!ae(0,t,n,r)}),Ei=se("<",function(e,t,n){return t<n},function(e,t,n,r){return r.compare(t,n)<0}),Ti=se(">",function(e,t,n){return t>n},function(e,t,n,r){return r.compare(t,n)>0}),Oi=se("<=",function(e,t,n){return t<=n},function(e,t,n,r){return r.compare(t,n)<=0}),Ci=se(">=",function(e,t,n){return t>=n},function(e,t,n,r){return r.compare(t,n)>=0}),Si=function(e,t,n,r,o){this.type=Ao,this.number=e,this.locale=t,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=o};Si.parse=function(e,t){if(3!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,ko);if(!n)return null;var r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");var o=null;if(r.locale&&!(o=t.parse(r.locale,1,Ao)))return null;var i=null;if(r.currency&&!(i=t.parse(r.currency,1,Ao)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=t.parse(r["min-fraction-digits"],1,ko)))return null;var s=null;return r["max-fraction-digits"]&&!(s=t.parse(r["max-fraction-digits"],1,ko))?null:new Si(n,o,i,a,s)},Si.prototype.evaluate=function(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))},Si.prototype.eachChild=function(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)},Si.prototype.possibleOutputs=function(){return[void 0]},Si.prototype.serialize=function(){var e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]};var ki=function(e){this.type=ko,this.input=e};ki.parse=function(e,t){if(2!==e.length)return t.error("Expected 1 argument, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error("Expected argument of type string or array, but found "+U(n.type)+" instead."):new ki(n):null},ki.prototype.evaluate=function(e){var t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new Ho("Expected value to be of type string or array, but found "+U(q(t))+" instead.")},ki.prototype.eachChild=function(e){e(this.input)},ki.prototype.possibleOutputs=function(){return[void 0]},ki.prototype.serialize=function(){var e=["length"];return this.eachChild(function(t){e.push(t.serialize())}),e};var Ai={"==":xi,"!=":wi,">":Ti,"<":Ei,">=":Ci,"<=":Oi,array:Go,at:vi,boolean:Go,case:bi,coalesce:yi,collator:$o,format:Wo,interpolate:mi,"interpolate-hcl":mi,"interpolate-lab":mi,length:ki,let:gi,literal:Vo,match:_i,number:Go,"number-format":Si,object:Go,step:ti,string:Go,"to-boolean":Ko,"to-color":Ko,"to-number":Ko,"to-string":Ko,var:Qo};Jo.register(Ai,{error:[{kind:"error"},[Ao],function(e,t){var n=t[0];throw new Ho(n.evaluate(e))}],typeof:[Ao,[Io],function(e,t){return U(q(t[0].evaluate(e)))}],"to-rgba":[B(ko,4),[Ro],function(e,t){return t[0].evaluate(e).toArray()}],rgb:[Ro,[ko,ko,ko],le],rgba:[Ro,[ko,ko,ko,ko],le],has:{type:Po,overloads:[[[Ao],function(e,t){return ue(t[0].evaluate(e),e.properties())}],[[Ao,Do],function(e,t){var n=t[0],r=t[1];return ue(n.evaluate(e),r.evaluate(e))}]]},get:{type:Io,overloads:[[[Ao],function(e,t){return ce(t[0].evaluate(e),e.properties())}],[[Ao,Do],function(e,t){var n=t[0],r=t[1];return ce(n.evaluate(e),r.evaluate(e))}]]},"feature-state":[Io,[Ao],function(e,t){return ce(t[0].evaluate(e),e.featureState||{})}],properties:[Do,[],function(e){return e.properties()}],"geometry-type":[Ao,[],function(e){return e.geometryType()}],id:[Io,[],function(e){return e.id()}],zoom:[ko,[],function(e){return e.globals.zoom}],"heatmap-density":[ko,[],function(e){return e.globals.heatmapDensity||0}],"line-progress":[ko,[],function(e){return e.globals.lineProgress||0}],accumulated:[Io,[],function(e){return void 0===e.globals.accumulated?null:e.globals.accumulated}],"+":[ko,pe(ko),function(e,t){for(var n=0,r=0,o=t;r<o.length;r+=1)n+=o[r].evaluate(e);return n}],"*":[ko,pe(ko),function(e,t){for(var n=1,r=0,o=t;r<o.length;r+=1)n*=o[r].evaluate(e);return n}],"-":{type:ko,overloads:[[[ko,ko],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)-r.evaluate(e)}],[[ko],function(e,t){return-t[0].evaluate(e)}]]},"/":[ko,[ko,ko],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)/r.evaluate(e)}],"%":[ko,[ko,ko],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)%r.evaluate(e)}],ln2:[ko,[],function(){return Math.LN2}],pi:[ko,[],function(){return Math.PI}],e:[ko,[],function(){return Math.E}],"^":[ko,[ko,ko],function(e,t){var n=t[0],r=t[1];return Math.pow(n.evaluate(e),r.evaluate(e))}],sqrt:[ko,[ko],function(e,t){var n=t[0];return Math.sqrt(n.evaluate(e))}],log10:[ko,[ko],function(e,t){var n=t[0];return Math.log(n.evaluate(e))/Math.LN10}],ln:[ko,[ko],function(e,t){var n=t[0];return Math.log(n.evaluate(e))}],log2:[ko,[ko],function(e,t){var n=t[0];return Math.log(n.evaluate(e))/Math.LN2}],sin:[ko,[ko],function(e,t){var n=t[0];return Math.sin(n.evaluate(e))}],cos:[ko,[ko],function(e,t){var n=t[0];return Math.cos(n.evaluate(e))}],tan:[ko,[ko],function(e,t){var n=t[0];return Math.tan(n.evaluate(e))}],asin:[ko,[ko],function(e,t){var n=t[0];return Math.asin(n.evaluate(e))}],acos:[ko,[ko],function(e,t){var n=t[0];return Math.acos(n.evaluate(e))}],atan:[ko,[ko],function(e,t){var n=t[0];return Math.atan(n.evaluate(e))}],min:[ko,pe(ko),function(e,t){return Math.min.apply(Math,t.map(function(t){return t.evaluate(e)}))}],max:[ko,pe(ko),function(e,t){return Math.max.apply(Math,t.map(function(t){return t.evaluate(e)}))}],abs:[ko,[ko],function(e,t){var n=t[0];return Math.abs(n.evaluate(e))}],round:[ko,[ko],function(e,t){var n=t[0].evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[ko,[ko],function(e,t){var n=t[0];return Math.floor(n.evaluate(e))}],ceil:[ko,[ko],function(e,t){var n=t[0];return Math.ceil(n.evaluate(e))}],"filter-==":[Po,[Ao,Io],function(e,t){var n=t[0],r=t[1];return e.properties()[n.value]===r.value}],"filter-id-==":[Po,[Io],function(e,t){var n=t[0];return e.id()===n.value}],"filter-type-==":[Po,[Ao],function(e,t){var n=t[0];return e.geometryType()===n.value}],"filter-<":[Po,[Ao,Io],function(e,t){var n=t[0],r=t[1],o=e.properties()[n.value],i=r.value;return typeof o==typeof i&&o<i}],"filter-id-<":[Po,[Io],function(e,t){var n=t[0],r=e.id(),o=n.value;return typeof r==typeof o&&r<o}],"filter->":[Po,[Ao,Io],function(e,t){var n=t[0],r=t[1],o=e.properties()[n.value],i=r.value;return typeof o==typeof i&&o>i}],"filter-id->":[Po,[Io],function(e,t){var n=t[0],r=e.id(),o=n.value;return typeof r==typeof o&&r>o}],"filter-<=":[Po,[Ao,Io],function(e,t){var n=t[0],r=t[1],o=e.properties()[n.value],i=r.value;return typeof o==typeof i&&o<=i}],"filter-id-<=":[Po,[Io],function(e,t){var n=t[0],r=e.id(),o=n.value;return typeof r==typeof o&&r<=o}],"filter->=":[Po,[Ao,Io],function(e,t){var n=t[0],r=t[1],o=e.properties()[n.value],i=r.value;return typeof o==typeof i&&o>=i}],"filter-id->=":[Po,[Io],function(e,t){var n=t[0],r=e.id(),o=n.value;return typeof r==typeof o&&r>=o}],"filter-has":[Po,[Io],function(e,t){return t[0].value in e.properties()}],"filter-has-id":[Po,[],function(e){return null!==e.id()}],"filter-type-in":[Po,[B(Ao)],function(e,t){return t[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[Po,[B(Io)],function(e,t){return t[0].value.indexOf(e.id())>=0}],"filter-in-small":[Po,[Ao,B(Io)],function(e,t){var n=t[0];return t[1].value.indexOf(e.properties()[n.value])>=0}],"filter-in-large":[Po,[Ao,B(Io)],function(e,t){var n=t[0],r=t[1];return function(e,t,n,r){for(;n<=r;){var o=n+r>>1;if(t[o]===e)return!0;t[o]>e?r=o-1:n=o+1}return!1}(e.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:Po,overloads:[[[Po,Po],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)&&r.evaluate(e)}],[pe(Po),function(e,t){for(var n=0,r=t;n<r.length;n+=1)if(!r[n].evaluate(e))return!1;return!0}]]},any:{type:Po,overloads:[[[Po,Po],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)||r.evaluate(e)}],[pe(Po),function(e,t){for(var n=0,r=t;n<r.length;n+=1)if(r[n].evaluate(e))return!0;return!1}]]},"!":[Po,[Po],function(e,t){return!t[0].evaluate(e)}],"is-supported-script":[Po,[Ao],function(e,t){var n=t[0],r=e.globals&&e.globals.isSupportedScript;return!r||r(n.evaluate(e))}],upcase:[Ao,[Ao],function(e,t){return t[0].evaluate(e).toUpperCase()}],downcase:[Ao,[Ao],function(e,t){return t[0].evaluate(e).toLowerCase()}],concat:[Ao,pe(Io),function(e,t){return t.map(function(t){return G(t.evaluate(e))}).join("")}],"resolved-locale":[Ao,[Mo],function(e,t){return t[0].evaluate(e).resolvedLocale()}]});var Pi=function(e,t){this.expression=e,this._warningHistory={},this._evaluator=new Yo,this._defaultValue=t?function(e){return"color"===e.type&&ve(e.default)?new Fo(0,0,0,0):"color"===e.type?Fo.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null};Pi.prototype.evaluateWithoutErrorHandling=function(e,t,n,r){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.formattedSection=r,this.expression.evaluate(this._evaluator)},Pi.prototype.evaluate=function(e,t,n,r){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.formattedSection=r||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new Ho("Expected value to be one of "+Object.keys(this._enumValues).map(function(e){return JSON.stringify(e)}).join(", ")+", but found "+JSON.stringify(o)+" instead.");return o}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}};var Ri=function(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!Z(t.expression)};Ri.prototype.evaluateWithoutErrorHandling=function(e,t,n,r){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r)},Ri.prototype.evaluate=function(e,t,n,r){return this._styleExpression.evaluate(e,t,n,r)};var Di=function(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!Z(t.expression),this.interpolationType=r};Di.prototype.evaluateWithoutErrorHandling=function(e,t,n,r){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r)},Di.prototype.evaluate=function(e,t,n,r){return this._styleExpression.evaluate(e,t,n,r)},Di.prototype.interpolationFactor=function(e,t,n){return this.interpolationType?mi.interpolationFactor(this.interpolationType,e,t,n):0};var Ii=function(e,t){this._parameters=e,this._specification=t,j(this,function e(t,n){var r,o,i,a="color"===n.type,s=t.stops&&"object"==typeof t.stops[0][0],l=s||void 0!==t.property,u=s||!l,c=t.type||(ye(n)?"exponential":"interval");if(a&&((t=j({},t)).stops&&(t.stops=t.stops.map(function(e){return[e[0],Fo.parse(e[1])]})),t.default?t.default=Fo.parse(t.default):t.default=Fo.parse(n.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!di[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);if("exponential"===c)r=Ee;else if("interval"===c)r=we;else if("categorical"===c){r=xe,o=Object.create(null);for(var p=0,f=t.stops;p<f.length;p+=1){var h=f[p];o[h[0]]=h[1]}i=typeof t.stops[0][0]}else{if("identity"!==c)throw new Error('Unknown function type "'+c+'"');r=Te}if(s){for(var d={},m=[],y=0;y<t.stops.length;y++){var g=t.stops[y],v=g[0].zoom;void 0===d[v]&&(d[v]={zoom:v,type:t.type,property:t.property,default:t.default,stops:[]},m.push(v)),d[v].stops.push([g[0].value,g[1]])}for(var _=[],b=0,x=m;b<x.length;b+=1){var w=x[b];_.push([d[w].zoom,e(d[w],n)])}var E={name:"linear"};return{kind:"composite",interpolationType:E,interpolationFactor:mi.interpolationFactor.bind(void 0,E),zoomStops:_.map(function(e){return e[0]}),evaluate:function(e,r){var o=e.zoom;return Ee({stops:_,base:t.base},n,o).evaluate(o,r)}}}if(u){var T="exponential"===c?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:T,interpolationFactor:mi.interpolationFactor.bind(void 0,T),zoomStops:t.stops.map(function(e){return e[0]}),evaluate:function(e){var a=e.zoom;return r(t,n,a,o,i)}}}return{kind:"source",evaluate:function(e,a){var s=a&&a.properties?a.properties[t.property]:void 0;return void 0===s?be(t.default,n.default):r(t,n,s,o,i)}}}(this._parameters,this._specification))};Ii.deserialize=function(e){return new Ii(e._parameters,e._specification)},Ii.serialize=function(e){return{_parameters:e._parameters,_specification:e._specification}};var Mi={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},Li={"*":function(){return[]},array:Ae,boolean:function(e){var t=e.value,n=e.key,r=ge(t);return"boolean"!==r?[new To(n,t,"boolean expected, "+r+" found")]:[]},number:Pe,color:function(e){var t=e.key,n=e.value,r=ge(n);return"string"!==r?[new To(t,n,"color expected, "+r+" found")]:null===zo(n)?[new To(t,n,'color expected, "'+n+'" found')]:[]},constants:L,enum:Ie,filter:Ve,function:Re,layer:We,object:ke,source:Ze,light:Ke,string:Xe,formatted:function(e){return 0===Xe(e).length?[]:De(e)}};$e.source=et(Ze),$e.light=et(Ke),$e.layer=et(We),$e.filter=et(Ve),$e.paintProperty=et(qe),$e.layoutProperty=et(Ge);var ji=$e,zi=ji.light,Fi=ji.paintProperty,Ni=ji.layoutProperty,Bi=nt,Ui=3;nt.prototype.insert=function(e,t,n,r,o){this._forEachCell(t,n,r,o,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(o)},nt.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},nt.prototype._insertCell=function(e,t,n,r,o,i){this.cells[o].push(i)},nt.prototype.query=function(e,t,n,r,o){var i=this.min,a=this.max;if(e<=i&&t<=i&&a<=n&&a<=r&&!o)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(e,t,n,r,this._queryCell,s,{},o),s},nt.prototype._queryCell=function(e,t,n,r,o,i,a,s){var l=this.cells[o];if(null!==l)for(var u=this.keys,c=this.bboxes,p=0;p<l.length;p++){var f=l[p];if(void 0===a[f]){var h=4*f;(s?s(c[h+0],c[h+1],c[h+2],c[h+3]):e<=c[h+2]&&t<=c[h+3]&&n>=c[h+0]&&r>=c[h+1])?(a[f]=!0,i.push(u[f])):a[f]=!1}}},nt.prototype._forEachCell=function(e,t,n,r,o,i,a,s){for(var l=this._convertToCellCoord(e),u=this._convertToCellCoord(t),c=this._convertToCellCoord(n),p=this._convertToCellCoord(r),f=l;f<=c;f++)for(var h=u;h<=p;h++){var d=this.d*h+f;if((!s||s(this._convertFromCellCoord(f),this._convertFromCellCoord(h),this._convertFromCellCoord(f+1),this._convertFromCellCoord(h+1)))&&o.call(this,e,t,n,r,d,i,a,s))return}},nt.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},nt.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},nt.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=Ui+this.cells.length+1+1,n=0,r=0;r<this.cells.length;r++)n+=this.cells[r].length;var o=new Int32Array(t+n+this.keys.length+this.bboxes.length);o[0]=this.extent,o[1]=this.n,o[2]=this.padding;
1for(var i=t,a=0;a<e.length;a++){var s=e[a];o[Ui+a]=i,o.set(s,i),i+=s.length}return o[Ui+e.length]=i,o.set(this.keys,i),i+=this.keys.length,o[Ui+e.length+1]=i,o.set(this.bboxes,i),i+=this.bboxes.length,o.buffer};var Vi=self.ImageData,Hi={};for(var qi in rt("Object",Object),Bi.serialize=function(e,t){var n=e.toArrayBuffer();return t&&t.push(n),{buffer:n}},Bi.deserialize=function(e){return new Bi(e.buffer)},rt("Grid",Bi),rt("Color",Fo),rt("Error",Error),rt("StylePropertyFunction",Ii),rt("StyleExpression",Pi,{omit:["_evaluator"]}),rt("ZoomDependentExpression",Di),rt("ZoomConstantExpression",Ri),rt("CompoundExpression",Jo,{omit:["_evaluate"]}),Ai)Ai[qi]._classRegistryKey||rt("Expression_"+qi,Ai[qi]);var Gi=function(){this.first=!0};Gi.prototype.update=function(e,t){var n=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=t):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=t),e!==this.lastZoom&&(this.lastZoom=e,this.lastFloorZoom=n,!0))};var Wi,Zi={"Latin-1 Supplement":function(e){return e>=128&&e<=255},Arabic:function(e){return e>=1536&&e<=1791},"Arabic Supplement":function(e){return e>=1872&&e<=1919},"Arabic Extended-A":function(e){return e>=2208&&e<=2303},"Hangul Jamo":function(e){return e>=4352&&e<=4607},"Unified Canadian Aboriginal Syllabics":function(e){return e>=5120&&e<=5759},Khmer:function(e){return e>=6016&&e<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(e){return e>=6320&&e<=6399},"General Punctuation":function(e){return e>=8192&&e<=8303},"Letterlike Symbols":function(e){return e>=8448&&e<=8527},"Number Forms":function(e){return e>=8528&&e<=8591},"Miscellaneous Technical":function(e){return e>=8960&&e<=9215},"Control Pictures":function(e){return e>=9216&&e<=9279},"Optical Character Recognition":function(e){return e>=9280&&e<=9311},"Enclosed Alphanumerics":function(e){return e>=9312&&e<=9471},"Geometric Shapes":function(e){return e>=9632&&e<=9727},"Miscellaneous Symbols":function(e){return e>=9728&&e<=9983},"Miscellaneous Symbols and Arrows":function(e){return e>=11008&&e<=11263},"CJK Radicals Supplement":function(e){return e>=11904&&e<=12031},"Kangxi Radicals":function(e){return e>=12032&&e<=12255},"Ideographic Description Characters":function(e){return e>=12272&&e<=12287},"CJK Symbols and Punctuation":function(e){return e>=12288&&e<=12351},Hiragana:function(e){return e>=12352&&e<=12447},Katakana:function(e){return e>=12448&&e<=12543},Bopomofo:function(e){return e>=12544&&e<=12591},"Hangul Compatibility Jamo":function(e){return e>=12592&&e<=12687},Kanbun:function(e){return e>=12688&&e<=12703},"Bopomofo Extended":function(e){return e>=12704&&e<=12735},"CJK Strokes":function(e){return e>=12736&&e<=12783},"Katakana Phonetic Extensions":function(e){return e>=12784&&e<=12799},"Enclosed CJK Letters and Months":function(e){return e>=12800&&e<=13055},"CJK Compatibility":function(e){return e>=13056&&e<=13311},"CJK Unified Ideographs Extension A":function(e){return e>=13312&&e<=19903},"Yijing Hexagram Symbols":function(e){return e>=19904&&e<=19967},"CJK Unified Ideographs":function(e){return e>=19968&&e<=40959},"Yi Syllables":function(e){return e>=40960&&e<=42127},"Yi Radicals":function(e){return e>=42128&&e<=42191},"Hangul Jamo Extended-A":function(e){return e>=43360&&e<=43391},"Hangul Syllables":function(e){return e>=44032&&e<=55215},"Hangul Jamo Extended-B":function(e){return e>=55216&&e<=55295},"Private Use Area":function(e){return e>=57344&&e<=63743},"CJK Compatibility Ideographs":function(e){return e>=63744&&e<=64255},"Arabic Presentation Forms-A":function(e){return e>=64336&&e<=65023},"Vertical Forms":function(e){return e>=65040&&e<=65055},"CJK Compatibility Forms":function(e){return e>=65072&&e<=65103},"Small Form Variants":function(e){return e>=65104&&e<=65135},"Arabic Presentation Forms-B":function(e){return e>=65136&&e<=65279},"Halfwidth and Fullwidth Forms":function(e){return e>=65280&&e<=65519}},Ki=!1,Xi=null,Yi=!1,Ji=new wo,$i={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Yi||null!=$i.applyArabicShaping}},Qi=function(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Gi,this.transition={})};Qi.prototype.isSupportedScript=function(e){return function(e,t){for(var n=0,r=e;n<r.length;
vendor: 18,354 bytes, line 1
1n+=1)if(!ct(r[n].charCodeAt(0),t))return!1;return!0}(e,$i.isLoaded())},Qi.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Qi.prototype.getCrossfadeParameters=function(){var e=this.zoom,t=e-Math.floor(e),n=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*t}};var ea=function(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(ve(e))return new Ii(e,t);if(Oe(e)){var n=Se(e,t);if("error"===n.result)throw new Error(n.value.map(function(e){return e.key+": "+e.message}).join(", "));return n.value}var r=e;return"string"==typeof e&&"color"===t.type&&(r=Fo.parse(e)),{kind:"constant",evaluate:function(){return r}}}(void 0===t?e.specification.default:t,e.specification)};ea.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},ea.prototype.possiblyEvaluate=function(e){return this.property.possiblyEvaluate(this,e)};var ta=function(e){this.property=e,this.value=new ea(e,void 0)};ta.prototype.transitioned=function(e,t){return new ra(this.property,this.value,t,l({},e.transition,this.transition),e.now)},ta.prototype.untransitioned=function(){return new ra(this.property,this.value,null,{},0)};var na=function(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)};na.prototype.getValue=function(e){return y(this._values[e].value.value)},na.prototype.setValue=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new ta(this._values[e].property)),this._values[e].value=new ea(this._values[e].property,null===t?void 0:y(t))},na.prototype.getTransition=function(e){return y(this._values[e].transition)},na.prototype.setTransition=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new ta(this._values[e].property)),this._values[e].transition=y(t)||void 0},na.prototype.serialize=function(){for(var e={},t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t],o=this.getValue(r);void 0!==o&&(e[r]=o);var i=this.getTransition(r);void 0!==i&&(e[r+"-transition"]=i)}return e},na.prototype.transitioned=function(e,t){for(var n=new oa(this._properties),r=0,o=Object.keys(this._values);r<o.length;r+=1){var i=o[r];n._values[i]=this._values[i].transitioned(e,t._values[i])}return n},na.prototype.untransitioned=function(){for(var e=new oa(this._properties),t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t];e._values[r]=this._values[r].untransitioned()}return e};var ra=function(e,t,n,r,o){this.property=e,this.value=t,this.begin=o+r.delay||0,this.end=this.begin+r.duration||0,e.specification.transition&&(r.delay||r.duration)&&(this.prior=n)};ra.prototype.possiblyEvaluate=function(e){var t=e.now||0,n=this.value.possiblyEvaluate(e),r=this.prior;if(r){if(t>this.end)return this.prior=null,n;if(this.value.isDataDriven())return this.prior=null,n;if(t<this.begin)return r.possiblyEvaluate(e);var o=(t-this.begin)/(this.end-this.begin);return this.property.interpolate(r.possiblyEvaluate(e),n,function(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}(o))}return n};var oa=function(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)};oa.prototype.possiblyEvaluate=function(e){for(var t=new sa(this._properties),n=0,r=Object.keys(this._values);n<r.length;n+=1){var o=r[n];t._values[o]=this._values[o].possiblyEvaluate(e)}return t},oa.prototype.hasTransition=function(){for(var e=0,t=Object.keys(this._values);e<t.length;e+=1){var n=t[e];if(this._values[n].prior)return!0}return!1};var ia=function(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)};ia.prototype.getValue=function(e){return y(this._values[e].value)},ia.prototype.setValue=function(e,t){this._values[e]=new ea(this._values[e].property,null===t?void 0:y(t))},ia.prototype.serialize=function(){for(var e={},t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t],o=this.getValue(r);void 0!==o&&(e[r]=o)}return e},ia.prototype.possiblyEvaluate=function(e){for(var t=new sa(this._properties),n=0,r=Object.keys(this._values);n<r.length;n+=1){var o=r[n];t._values[o]=this._values[o].possiblyEvaluate(e)}return t};var aa=function(e,t,n){this.property=e,this.value=t,this.parameters=n};aa.prototype.isConstant=function(){return"constant"===this.value.kind},aa.prototype.constantOr=function(e){return"constant"===this.value.kind?this.value.value:e},aa.prototype.evaluate=function(e,t){return this.property.evaluate(this.value,this.parameters,e,t)};var sa=function(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)};sa.prototype.get=function(e){return this._values[e]};var la=function(e){this.specification=e};la.prototype.possiblyEvaluate=function(e,t){return e.expression.evaluate(t)},la.prototype.interpolate=function(e,t,n){var r=ni[this.specification.type];return r?r(e,t,n):e};var ua=function(e,t){this.specification=e,this.overrides=t};ua.prototype.possiblyEvaluate=function(e,t){return"constant"===e.expression.kind||"camera"===e.expression.kind?new aa(this,{kind:"constant",value:e.expression.evaluate(t)},t):new aa(this,e.expression,t)},ua.prototype.interpolate=function(e,t,n){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new aa(this,{kind:"constant",value:void 0},e.parameters);var r=ni[this.specification.type];return r?new aa(this,{kind:"constant",value:r(e.value.value,t.value.value,n)},e.parameters):e},ua.prototype.evaluate=function(e,t,n,r){return"constant"===e.kind?e.value:e.evaluate(t,n,r)};var ca=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.possiblyEvaluate=function(e,t){if(void 0===e.value)return new aa(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){var n=e.expression.evaluate(t),r=this._calculate(n,n,n,t);return new aa(this,{kind:"constant",value:r},t)}if("camera"===e.expression.kind){var o=this._calculate(e.expression.evaluate({zoom:t.zoom-1}),e.expression.evaluate({zoom:t.zoom}),e.expression.evaluate({zoom:t.zoom+1}),t);return new aa(this,{kind:"constant",value:o},t)}return new aa(this,e.expression,t)},t.prototype.evaluate=function(e,t,n,r){if("source"===e.kind){var o=e.evaluate(t,n,r);return this._calculate(o,o,o,t)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(t.zoom)-1},n,r),e.evaluate({zoom:Math.floor(t.zoom)},n,r),e.evaluate({zoom:Math.floor(t.zoom)+1},n,r),t):e.value},t.prototype._calculate=function(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}},t.prototype.interpolate=function(e){return e},t}(ua),pa=function(e){this.specification=e};pa.prototype.possiblyEvaluate=function(e,t){if(void 0!==e.value){if("constant"===e.expression.kind){var n=e.expression.evaluate(t);return this._calculate(n,n,n,t)}return this._calculate(e.expression.evaluate(new Qi(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Qi(Math.floor(t.zoom),t)),e.expression.evaluate(new Qi(Math.floor(t.zoom+1),t)),t)}},pa.prototype._calculate=function(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}},pa.prototype.interpolate=function(e){return e};var fa=function(e){this.specification=e};fa.prototype.possiblyEvaluate=function(e,t){return!!e.expression.evaluate(t)},fa.prototype.interpolate=function(){return!1};var ha=function(e){for(var t in this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],e){var n=e[t];n.specification.overridable&&this.overridableProperties.push(t);var r=this.defaultPropertyValues[t]=new ea(n,void 0),o=this.defaultTransitionablePropertyValues[t]=new ta(n);this.defaultTransitioningPropertyValues[t]=o.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=r.possiblyEvaluate({})}};rt("DataDrivenProperty",ua),rt("DataConstantProperty",la),rt("CrossFadedDataDrivenProperty",ca),rt("CrossFadedProperty",pa),rt("ColorRampProperty",fa);var da=function(e){function t(t,n){if(e.call(this),this.id=t.id,this.type=t.type,this._featureFilter=function(){return!0},"custom"!==t.type&&(t=t,this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),n.layout&&(this._unevaluatedLayout=new ia(n.layout)),n.paint)){for(var r in this._transitionablePaint=new na(n.paint),t.paint)this.setPaintProperty(r,t.paint[r],{validate:!1});for(var o in t.layout)this.setLayoutProperty(o,t.layout[o],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned()}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},t.prototype.getLayoutProperty=function(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)},t.prototype.setLayoutProperty=function(e,t,n){if(void 0===n&&(n={}),null!=t){var r="layers."+this.id+".layout."+e;if(this._validate(Ni,r,e,t,n))return}"visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t},t.prototype.getPaintProperty=function(e){return h(e,"-transition")?this._transitionablePaint.getTransition(e.slice(0,-"-transition".length)):this._transitionablePaint.getValue(e)},t.prototype.setPaintProperty=function(e,t,n){if(void 0===n&&(n={}),null!=t){var r="layers."+this.id+".paint."+e;if(this._validate(Fi,r,e,t,n))return!1}if(h(e,"-transition"))return this._transitionablePaint.setTransition(e.slice(0,-"-transition".length),t||void 0),!1;var o=this._transitionablePaint._values[e],i="cross-faded-data-driven"===o.property.specification["property-type"],a=o.value.isDataDriven(),s=o.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);var l=this._transitionablePaint._values[e].value;return l.isDataDriven()||a||i||this._handleOverridablePaintPropertyUpdate(e,s,l)},t.prototype._handleSpecialPaintPropertyUpdate=function(e){},t.prototype._handleOverridablePaintPropertyUpdate=function(e,t,n){return!1},t.prototype.isHidden=function(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility},t.prototype.updateTransitions=function(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)},t.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},t.prototype.recalculate=function(e){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e)),this.paint=this._transitioningPaint.possiblyEvaluate(e)},t.prototype.serialize=function(){var e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),m(e,function(e,t){return!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length)})},t.prototype._validate=function(e,t,n,r,o){return void 0===o&&(o={}),(!o||!1!==o.validate)&&tt(this,e.call(ji,{key:t,layerType:this.type,objectKey:n,value:r,styleSpec:Eo,style:{glyphs:!0,sprite:!0}}))},t.prototype.is3D=function(){return!1},t.prototype.isTileClipped=function(){return!1},t.prototype.hasOffscreenPass=function(){return!1},t.prototype.resize=function(){},t.prototype.isStateDependent=function(){for(var e in this.paint._values){var t=this.paint.get(e);if(t instanceof aa&&de(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1},t}(wo),ma={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},ya=function(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ga=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};ga.serialize=function(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}},ga.deserialize=function(e){var t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t},ga.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ga.prototype.clear=function(){this.length=0},ga.prototype.resize=function(e){this.reserve(e),this.length=e},ga.prototype.reserve=function(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}},ga.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var va=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.int16[r+0]=t,this.int16[r+1]=n,e},t}(ga);va.prototype.bytesPerElement=4,rt("StructArrayLayout2i4",va);var _a=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,o){var i=4*e;return this.int16[i+0]=t,this.int16[i+1]=n,this.int16[i+2]=r,this.int16[i+3]=o,e},t}(ga);_a.prototype.bytesPerElement=8,rt("StructArrayLayout4i8",_a);var ba=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,o,i){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,o,i)},t.prototype.emplace=function(e,t,n,r,o,i,a){var s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=o,this.int16[s+4]=i,this.int16[s+5]=a,e},t}(ga);ba.prototype.bytesPerElement=12,rt("StructArrayLayout2i4i12",ba);var xa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,o,i){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,o,i)},t.prototype.emplace=function(e,t,n,r,o,i,a){var s=4*e,l=8*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.uint8[l+4]=r,this.uint8[l+5]=o,this.uint8[l+6]=i,this.uint8[l+7]=a,e},t}(ga);xa.prototype.bytesPerElement=8,rt("StructArrayLayout2i4ub8",xa);var wa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,o,i,a,s){var l=this.length;return this.resize(l+1),this.emplace(l,e,t,n,r,o,i,a,s)},t.prototype.emplace=function(e,t,n,r,o,i,a,s,l){var u=8*e;return this.uint16[u+0]=t,this.uint16[u+1]=n,this.uint16[u+2]=r,this.uint16[u+3]=o,this.uint16[u+4]=i,this.uint16[u+5]=a,this.uint16[u+6]=s,this.uint16[u+7]=l,e},t}(ga);wa.prototype.bytesPerElement=16,rt("StructArrayLayout8ui16",wa);var Ea=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,o,i,a,s){var l=this.length;return this.resize(l+1),this.emplace(l,e,t,n,r,o,i,a,s)},t.prototype.emplace=function(e,t,n,r,o,i,a,s,l){var u=8*e;return this.int16[u+0]=t,this.int16[u+1]=n,this.int16[u+2]=r,this.int16[u+3]=o,this.uint16[u+4]=i,this.uint16[u+5]=a,this.uint16[u+6]=s,this.uint16[u+7]=l,e},t}(ga);Ea.prototype.bytesPerElement=16,rt("StructArrayLayout4i4ui16",Ea);var Ta=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var o=3*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=r,e},t}(ga);Ta.prototype.bytesPerElement=12,rt("StructArrayLayout3f12",Ta);var Oa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){var n=1*e;return this.uint32[n+0]=t,e},t}(ga);Oa.prototype.bytesPerElement=4,rt("StructArrayLayout1ul4",Oa);
vendor: 22,859 bytes, line 1
1var Ca=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,o,i,a,s,l,u,c){var p=this.length;return this.resize(p+1),this.emplace(p,e,t,n,r,o,i,a,s,l,u,c)},t.prototype.emplace=function(e,t,n,r,o,i,a,s,l,u,c,p){var f=12*e,h=6*e;return this.int16[f+0]=t,this.int16[f+1]=n,this.int16[f+2]=r,this.int16[f+3]=o,this.int16[f+4]=i,this.int16[f+5]=a,this.uint32[h+3]=s,this.uint16[f+8]=l,this.uint16[f+9]=u,this.int16[f+10]=c,this.int16[f+11]=p,e},t}(ga);Ca.prototype.bytesPerElement=24,rt("StructArrayLayout6i1ul2ui2i24",Ca);var Sa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,o,i){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,o,i)},t.prototype.emplace=function(e,t,n,r,o,i,a){var s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=o,this.int16[s+4]=i,this.int16[s+5]=a,e},t}(ga);Sa.prototype.bytesPerElement=12,rt("StructArrayLayout2i2i2i12",Sa);var ka=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,o){var i=12*e,a=3*e;return this.uint8[i+0]=t,this.uint8[i+1]=n,this.float32[a+1]=r,this.float32[a+2]=o,e},t}(ga);ka.prototype.bytesPerElement=12,rt("StructArrayLayout2ub2f12",ka);var Aa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,o,i,a,s,l,u,c,p,f,h,d,m){var y=this.length;return this.resize(y+1),this.emplace(y,e,t,n,r,o,i,a,s,l,u,c,p,f,h,d,m)},t.prototype.emplace=function(e,t,n,r,o,i,a,s,l,u,c,p,f,h,d,m,y){var g=22*e,v=11*e,_=44*e;return this.int16[g+0]=t,this.int16[g+1]=n,this.uint16[g+2]=r,this.uint16[g+3]=o,this.uint32[v+2]=i,this.uint32[v+3]=a,this.uint32[v+4]=s,this.uint16[g+10]=l,this.uint16[g+11]=u,this.uint16[g+12]=c,this.float32[v+7]=p,this.float32[v+8]=f,this.uint8[_+36]=h,this.uint8[_+37]=d,this.uint8[_+38]=m,this.uint32[v+10]=y,e},t}(ga);Aa.prototype.bytesPerElement=44,rt("StructArrayLayout2i2ui3ul3ui2f3ub1ul44",Aa);var Pa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,o,i,a,s,l,u,c,p,f,h,d,m,y,g,v,_){var b=this.length;return this.resize(b+1),this.emplace(b,e,t,n,r,o,i,a,s,l,u,c,p,f,h,d,m,y,g,v,_)},t.prototype.emplace=function(e,t,n,r,o,i,a,s,l,u,c,p,f,h,d,m,y,g,v,_,b){var x=24*e,w=12*e;return this.int16[x+0]=t,this.int16[x+1]=n,this.int16[x+2]=r,this.int16[x+3]=o,this.int16[x+4]=i,this.int16[x+5]=a,this.uint16[x+6]=s,this.uint16[x+7]=l,this.uint16[x+8]=u,this.uint16[x+9]=c,this.uint16[x+10]=p,this.uint16[x+11]=f,this.uint16[x+12]=h,this.uint16[x+13]=d,this.uint16[x+14]=m,this.uint16[x+15]=y,this.uint16[x+16]=g,this.uint32[w+9]=v,this.float32[w+10]=_,this.float32[w+11]=b,e},t}(ga);Pa.prototype.bytesPerElement=48,rt("StructArrayLayout6i11ui1ul2f48",Pa);var Ra=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){var n=1*e;return this.float32[n+0]=t,e},t}(ga);Ra.prototype.bytesPerElement=4,rt("StructArrayLayout1f4",Ra);var Da=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var o=3*e;return this.int16[o+0]=t,this.int16[o+1]=n,this.int16[o+2]=r,e},t}(ga);Da.prototype.bytesPerElement=6,rt("StructArrayLayout3i6",Da);var Ia=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var o=2*e,i=4*e;return this.uint32[o+0]=t,this.uint16[i+2]=n,this.uint16[i+3]=r,e},t}(ga);Ia.prototype.bytesPerElement=8,rt("StructArrayLayout1ul2ui8",Ia);var Ma=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var o=3*e;return this.uint16[o+0]=t,this.uint16[o+1]=n,this.uint16[o+2]=r,e},t}(ga);Ma.prototype.bytesPerElement=6,rt("StructArrayLayout3ui6",Ma);var La=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.uint16[r+0]=t,this.uint16[r+1]=n,e},t}(ga);La.prototype.bytesPerElement=4,rt("StructArrayLayout2ui4",La);var ja=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){var n=1*e;return this.uint16[n+0]=t,e},t}(ga);ja.prototype.bytesPerElement=2,rt("StructArrayLayout1ui2",ja);var za=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.float32[r+0]=t,this.float32[r+1]=n,e},t}(ga);za.prototype.bytesPerElement=8,rt("StructArrayLayout2f8",za);var Fa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,o){var i=4*e;return this.float32[i+0]=t,this.float32[i+1]=n,this.float32[i+2]=r,this.float32[i+3]=o,e},t}(ga);Fa.prototype.bytesPerElement=16,rt("StructArrayLayout4f16",Fa);var Na=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},radius:{configurable:!0},signedDistanceFromAnchor:{configurable:!0},anchorPoint:{configurable:!0}};return n.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorPointX.set=function(e){this._structArray.int16[this._pos2+0]=e},n.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},n.anchorPointY.set=function(e){this._structArray.int16[this._pos2+1]=e},n.x1.get=function(){return this._structArray.int16[this._pos2+2]},n.x1.set=function(e){this._structArray.int16[this._pos2+2]=e},n.y1.get=function(){return this._structArray.int16[this._pos2+3]},n.y1.set=function(e){this._structArray.int16[this._pos2+3]=e},n.x2.get=function(){return this._structArray.int16[this._pos2+4]},n.x2.set=function(e){this._structArray.int16[this._pos2+4]=e},n.y2.get=function(){return this._structArray.int16[this._pos2+5]},n.y2.set=function(e){this._structArray.int16[this._pos2+5]=e},n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.featureIndex.set=function(e){this._structArray.uint32[this._pos4+3]=e},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},n.sourceLayerIndex.set=function(e){this._structArray.uint16[this._pos2+8]=e},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.bucketIndex.set=function(e){this._structArray.uint16[this._pos2+9]=e},n.radius.get=function(){return this._structArray.int16[this._pos2+10]},n.radius.set=function(e){this._structArray.int16[this._pos2+10]=e},n.signedDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+11]},n.signedDistanceFromAnchor.set=function(e){this._structArray.int16[this._pos2+11]=e},n.anchorPoint.get=function(){return new Ir(this.anchorPointX,this.anchorPointY)},Object.defineProperties(t.prototype,n),t}(ya);Na.prototype.size=24;var Ba=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Na(this,e)},t}(Ca);rt("CollisionBoxArray",Ba);var Ua=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorX.set=function(e){this._structArray.int16[this._pos2+0]=e},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.anchorY.set=function(e){this._structArray.int16[this._pos2+1]=e},n.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.glyphStartIndex.set=function(e){this._structArray.uint16[this._pos2+2]=e},n.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},n.numGlyphs.set=function(e){this._structArray.uint16[this._pos2+3]=e},n.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},n.vertexStartIndex.set=function(e){this._structArray.uint32[this._pos4+2]=e},n.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.lineStartIndex.set=function(e){this._structArray.uint32[this._pos4+3]=e},n.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},n.lineLength.set=function(e){this._structArray.uint32[this._pos4+4]=e},n.segment.get=function(){return this._structArray.uint16[this._pos2+10]},n.segment.set=function(e){this._structArray.uint16[this._pos2+10]=e},n.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},n.lowerSize.set=function(e){this._structArray.uint16[this._pos2+11]=e},n.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},n.upperSize.set=function(e){this._structArray.uint16[this._pos2+12]=e},n.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},n.lineOffsetX.set=function(e){this._structArray.float32[this._pos4+7]=e},n.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},n.lineOffsetY.set=function(e){this._structArray.float32[this._pos4+8]=e},n.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},n.writingMode.set=function(e){this._structArray.uint8[this._pos1+36]=e},n.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},n.placedOrientation.set=function(e){this._structArray.uint8[this._pos1+37]=e},n.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},n.hidden.set=function(e){this._structArray.uint8[this._pos1+38]=e},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},n.crossTileID.set=function(e){this._structArray.uint32[this._pos4+10]=e},Object.defineProperties(t.prototype,n),t}(ya);Ua.prototype.size=44;var Va=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Ua(this,e)},t}(Aa);rt("PlacedSymbolArray",Va);var Ha=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},radialTextOffset:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorX.set=function(e){this._structArray.int16[this._pos2+0]=e},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.anchorY.set=function(e){this._structArray.int16[this._pos2+1]=e},n.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},n.rightJustifiedTextSymbolIndex.set=function(e){this._structArray.int16[this._pos2+2]=e},n.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},n.centerJustifiedTextSymbolIndex.set=function(e){this._structArray.int16[this._pos2+3]=e},n.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},n.leftJustifiedTextSymbolIndex.set=function(e){this._structArray.int16[this._pos2+4]=e},n.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},n.verticalPlacedTextSymbolIndex.set=function(e){this._structArray.int16[this._pos2+5]=e},n.key.get=function(){return this._structArray.uint16[this._pos2+6]},n.key.set=function(e){this._structArray.uint16[this._pos2+6]=e},n.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+7]},n.textBoxStartIndex.set=function(e){this._structArray.uint16[this._pos2+7]=e},n.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+8]},n.textBoxEndIndex.set=function(e){this._structArray.uint16[this._pos2+8]=e},n.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.verticalTextBoxStartIndex.set=function(e){this._structArray.uint16[this._pos2+9]=e},n.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},n.verticalTextBoxEndIndex.set=function(e){this._structArray.uint16[this._pos2+10]=e},n.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},n.iconBoxStartIndex.set=function(e){this._structArray.uint16[this._pos2+11]=e},n.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},n.iconBoxEndIndex.set=function(e){this._structArray.uint16[this._pos2+12]=e},n.featureIndex.get=function(){return this._structArray.uint16[this._pos2+13]},n.featureIndex.set=function(e){this._structArray.uint16[this._pos2+13]=e},n.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+14]},n.numHorizontalGlyphVertices.set=function(e){this._structArray.uint16[this._pos2+14]=e},n.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+15]},n.numVerticalGlyphVertices.set=function(e){this._structArray.uint16[this._pos2+15]=e},n.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+16]},n.numIconVertices.set=function(e){this._structArray.uint16[this._pos2+16]=e},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+9]},n.crossTileID.set=function(e){this._structArray.uint32[this._pos4+9]=e},n.textBoxScale.get=function(){return this._structArray.float32[this._pos4+10]},n.textBoxScale.set=function(e){this._structArray.float32[this._pos4+10]=e},n.radialTextOffset.get=function(){return this._structArray.float32[this._pos4+11]},n.radialTextOffset.set=function(e){this._structArray.float32[this._pos4+11]=e},Object.defineProperties(t.prototype,n),t}(ya);Ha.prototype.size=48;var qa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Ha(this,e)},t}(Pa);rt("SymbolInstanceArray",qa);var Ga=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={offsetX:{configurable:!0}};return n.offsetX.get=function(){return this._structArray.float32[this._pos4+0]},n.offsetX.set=function(e){this._structArray.float32[this._pos4+0]=e},Object.defineProperties(t.prototype,n),t}(ya);Ga.prototype.size=4;var Wa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getoffsetX=function(e){return this.float32[1*e+0]},t.prototype.get=function(e){return new Ga(this,e)},t}(Ra);rt("GlyphOffsetArray",Wa);var Za=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={x:{configurable:!0},y:{configurable:!0},tileUnitDistanceFromAnchor:{configurable:!0}};return n.x.get=function(){return this._structArray.int16[this._pos2+0]},n.x.set=function(e){this._structArray.int16[this._pos2+0]=e},n.y.get=function(){return this._structArray.int16[this._pos2+1]},n.y.set=function(e){this._structArray.int16[this._pos2+1]=e},n.tileUnitDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+2]},n.tileUnitDistanceFromAnchor.set=function(e){this._structArray.int16[this._pos2+2]=e},Object.defineProperties(t.prototype,n),t}(ya);Za.prototype.size=6;var Ka=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getx=function(e){return this.int16[3*e+0]},t.prototype.gety=function(e){return this.int16[3*e+1]},t.prototype.gettileUnitDistanceFromAnchor=function(e){return this.int16[3*e+2]},t.prototype.get=function(e){return new Za(this,e)},t}(Da);rt("SymbolLineVertexArray",Ka);var Xa=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},n.featureIndex.set=function(e){this._structArray.uint32[this._pos4+0]=e},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.sourceLayerIndex.set=function(e){this._structArray.uint16[this._pos2+2]=e},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},n.bucketIndex.set=function(e){this._structArray.uint16[this._pos2+3]=e},Object.defineProperties(t.prototype,n),t}(ya);Xa.prototype.size=8;var Ya=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Xa(this,e)},t}(Ia);rt("FeatureIndexArray",Ya);var Ja=pt([{name:"a_pos",components:2,type:"Int16"}],4).members,$a=function(e){void 0===e&&(e=[]),this.segments=e};$a.prototype.prepareSegment=function(e,t,n,r){var o=this.segments[this.segments.length-1];return e>$a.MAX_VERTEX_ARRAY_LENGTH&&g("Max vertices per segment is "+$a.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+e),(!o||o.vertexLength+e>$a.MAX_VERTEX_ARRAY_LENGTH||o.sortKey!==r)&&(o={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(o.sortKey=r),this.segments.push(o)),o},$a.prototype.get=function(){return this.segments},$a.prototype.destroy=function(){for(var e=0,t=this.segments;e<t.length;e+=1){var n=t[e];for(var r in n.vaos)n.vaos[r].destroy()}},$a.simpleSegment=function(e,t,n,r){return new $a([{vertexOffset:e,primitiveOffset:t,vertexLength:n,primitiveLength:r,vaos:{},sortKey:0}])},$a.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,rt("SegmentVector",$a);var Qa=function(){this.ids=[],this.positions=[],this.indexed=!1}
vendor: 37,668 bytes, line 1
1;Qa.prototype.add=function(e,t,n,r){this.ids.push(e),this.positions.push(t,n,r)},Qa.prototype.getPositions=function(e){for(var t=0,n=this.ids.length-1;t<n;){var r=t+n>>1;this.ids[r]>=e?n=r:t=r+1}for(var o=[];this.ids[t]===e;){var i=this.positions[3*t],a=this.positions[3*t+1],s=this.positions[3*t+2];o.push({index:i,start:a,end:s}),t++}return o},Qa.serialize=function(e,t){var n=new Float64Array(e.ids),r=new Uint32Array(e.positions);return function e(t,n,r,o){if(!(r>=o)){for(var i=t[r+o>>1],a=r-1,s=o+1;;){do{a++}while(t[a]<i);do{s--}while(t[s]>i);if(a>=s)break;dt(t,a,s),dt(n,3*a,3*s),dt(n,3*a+1,3*s+1),dt(n,3*a+2,3*s+2)}e(t,n,r,s),e(t,n,s+1,o)}}(n,r,0,n.length-1),t.push(n.buffer,r.buffer),{ids:n,positions:r}},Qa.deserialize=function(e){var t=new Qa;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t},rt("FeaturePositionMap",Qa);var es=function(e,t){this.gl=e.gl,this.location=t},ts=function(e){function t(t,n){e.call(this,t,n),this.current=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))},t}(es),ns=function(e){function t(t,n){e.call(this,t,n),this.current=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))},t}(es),rs=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){e[0]===this.current[0]&&e[1]===this.current[1]||(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))},t}(es),os=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0,0]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]||(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))},t}(es),is=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0,0,0]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]&&e[3]===this.current[3]||(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))},t}(es),as=function(e){function t(t,n){e.call(this,t,n),this.current=Fo.transparent}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){e.r===this.current.r&&e.g===this.current.g&&e.b===this.current.b&&e.a===this.current.a||(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))},t}(es),ss=new Float32Array(16),ls=function(e){function t(t,n){e.call(this,t,n),this.current=ss}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){if(e[12]!==this.current[12]||e[0]!==this.current[0])return this.current=e,void this.gl.uniformMatrix4fv(this.location,!1,e);for(var t=1;t<16;t++)if(e[t]!==this.current[t]){this.current=e,this.gl.uniformMatrix4fv(this.location,!1,e);break}},t}(es),us=function(e,t,n){this.value=e,this.names=t,this.uniformNames=this.names.map(function(e){return"u_"+e}),this.type=n,this.maxValue=-1/0};us.prototype.defines=function(){return this.names.map(function(e){return"#define HAS_UNIFORM_u_"+e})},us.prototype.setConstantPatternPositions=function(){},us.prototype.populatePaintArray=function(){},us.prototype.updatePaintArray=function(){},us.prototype.upload=function(){},us.prototype.destroy=function(){},us.prototype.setUniforms=function(e,t,n,r){t.set(r.constantOr(this.value))},us.prototype.getBinding=function(e,t){return"color"===this.type?new as(e,t):new ns(e,t)},us.serialize=function(e){var t=e.value,n=e.names,r=e.type;return{value:ot(t),names:n,type:r}},us.deserialize=function(e){var t=e.value,n=e.names,r=e.type;return new us(it(t),n,r)};var cs=function(e,t,n){this.value=e,this.names=t,this.uniformNames=this.names.map(function(e){return"u_"+e}),this.type=n,this.maxValue=-1/0,this.patternPositions={patternTo:null,patternFrom:null}};cs.prototype.defines=function(){return this.names.map(function(e){return"#define HAS_UNIFORM_u_"+e})},cs.prototype.populatePaintArray=function(){},cs.prototype.updatePaintArray=function(){},cs.prototype.upload=function(){},cs.prototype.destroy=function(){},cs.prototype.setConstantPatternPositions=function(e,t){this.patternPositions.patternTo=e.tlbr,this.patternPositions.patternFrom=t.tlbr},cs.prototype.setUniforms=function(e,t,n,r,o){var i=this.patternPositions;"u_pattern_to"===o&&i.patternTo&&t.set(i.patternTo),"u_pattern_from"===o&&i.patternFrom&&t.set(i.patternFrom)},cs.prototype.getBinding=function(e,t){return new is(e,t)};var ps=function(e,t,n,r){this.expression=e,this.names=t,this.type=n,this.uniformNames=this.names.map(function(e){return"a_"+e}),this.maxValue=-1/0,this.paintVertexAttributes=t.map(function(e){return{name:"a_"+e,type:"Float32",components:"color"===n?2:1,offset:0}}),this.paintVertexArray=new r};ps.prototype.defines=function(){return[]},ps.prototype.setConstantPatternPositions=function(){},ps.prototype.populatePaintArray=function(e,t,n,r){var o=this.paintVertexArray,i=o.length;o.reserve(e);var a=this.expression.evaluate(new Qi(0),t,{},r);if("color"===this.type)for(var s=mt(a),l=i;l<e;l++)o.emplaceBack(s[0],s[1]);else{for(var u=i;u<e;u++)o.emplaceBack(a);this.maxValue=Math.max(this.maxValue,a)}},ps.prototype.updatePaintArray=function(e,t,n,r){var o=this.paintVertexArray,i=this.expression.evaluate({zoom:0},n,r);if("color"===this.type)for(var a=mt(i),s=e;s<t;s++)o.emplace(s,a[0],a[1]);else{for(var l=e;l<t;l++)o.emplace(l,i);this.maxValue=Math.max(this.maxValue,i)}},ps.prototype.upload=function(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},ps.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},ps.prototype.setUniforms=function(e,t){t.set(0)},ps.prototype.getBinding=function(e,t){return new ns(e,t)};var fs=function(e,t,n,r,o,i){this.expression=e,this.names=t,this.uniformNames=this.names.map(function(e){return"u_"+e+"_t"}),this.type=n,this.useIntegerZoom=r,this.zoom=o,this.maxValue=-1/0;var a=i;this.paintVertexAttributes=t.map(function(e){return{name:"a_"+e,type:"Float32",components:"color"===n?4:2,offset:0}}),this.paintVertexArray=new a};fs.prototype.defines=function(){return[]},fs.prototype.setConstantPatternPositions=function(){},fs.prototype.populatePaintArray=function(e,t,n,r){var o=this.paintVertexArray,i=o.length;o.reserve(e);var a=this.expression.evaluate(new Qi(this.zoom),t,{},r),s=this.expression.evaluate(new Qi(this.zoom+1),t,{},r);if("color"===this.type)for(var l=mt(a),u=mt(s),c=i;c<e;c++)o.emplaceBack(l[0],l[1],u[0],u[1]);else{for(var p=i;p<e;p++)o.emplaceBack(a,s);this.maxValue=Math.max(this.maxValue,a,s)}},fs.prototype.updatePaintArray=function(e,t,n,r){var o=this.paintVertexArray,i=this.expression.evaluate({zoom:this.zoom},n,r),a=this.expression.evaluate({zoom:this.zoom+1},n,r);if("color"===this.type)for(var s=mt(i),l=mt(a),u=e;u<t;u++)o.emplace(u,s[0],s[1],l[0],l[1]);else{for(var c=e;c<t;c++)o.emplace(c,i,a);this.maxValue=Math.max(this.maxValue,i,a)}},fs.prototype.upload=function(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},fs.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},fs.prototype.interpolationFactor=function(e){return this.useIntegerZoom?this.expression.interpolationFactor(Math.floor(e),this.zoom,this.zoom+1):this.expression.interpolationFactor(e,this.zoom,this.zoom+1)},fs.prototype.setUniforms=function(e,t,n){t.set(this.interpolationFactor(n.zoom))},fs.prototype.getBinding=function(e,t){return new ns(e,t)};var hs=function(e,t,n,r,o,i,a){this.expression=e,this.names=t,this.type=n,this.uniformNames=this.names.map(function(e){return"u_"+e+"_t"}),this.useIntegerZoom=r,this.zoom=o,this.maxValue=-1/0,this.layerId=a,this.paintVertexAttributes=t.map(function(e){return{name:"a_"+e,type:"Uint16",components:4,offset:0}}),this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};hs.prototype.defines=function(){return[]},hs.prototype.setConstantPatternPositions=function(){},hs.prototype.populatePaintArray=function(e,t,n){var r=this.zoomInPaintVertexArray,o=this.zoomOutPaintVertexArray,i=this.layerId,a=r.length;if(r.reserve(e),o.reserve(e),n&&t.patterns&&t.patterns[i]){var s=t.patterns[i],l=s.min,u=s.mid,c=s.max,p=n[l],f=n[u],h=n[c];if(!p||!f||!h)return;for(var d=a;d<e;d++)r.emplaceBack(f.tl[0],f.tl[1],f.br[0],f.br[1],p.tl[0],p.tl[1],p.br[0],p.br[1]),o.emplaceBack(f.tl[0],f.tl[1],f.br[0],f.br[1],h.tl[0],h.tl[1],h.br[0],h.br[1])}},hs.prototype.updatePaintArray=function(e,t,n,r,o){var i=this.zoomInPaintVertexArray,a=this.zoomOutPaintVertexArray,s=this.layerId;if(o&&n.patterns&&n.patterns[s]){var l=n.patterns[s],u=l.min,c=l.mid,p=l.max,f=o[u],h=o[c],d=o[p];if(!f||!h||!d)return;for(var m=e;m<t;m++)i.emplace(m,h.tl[0],h.tl[1],h.br[0],h.br[1],f.tl[0],f.tl[1],f.br[0],f.br[1]),a.emplace(m,h.tl[0],h.tl[1],h.br[0],h.br[1],d.tl[0],d.tl[1],d.br[0],d.br[1])}},hs.prototype.upload=function(e){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=e.createVertexBuffer(this.zoomInPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=e.createVertexBuffer(this.zoomOutPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},hs.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()},hs.prototype.setUniforms=function(e,t){t.set(0)},hs.prototype.getBinding=function(e,t){return new ns(e,t)};var ds=function(){this.binders={},this.cacheKey="",this._buffers=[],this._featureMap=new Qa,this._bufferOffset=0};ds.createDynamic=function(e,t,n){var r=new ds,o=[];for(var i in e.paint._values)if(n(i)){var a=e.paint.get(i);if(a instanceof aa&&de(a.property.specification)){var s=yt(i,e.type),l=a.property.specification.type,u=a.property.useIntegerZoom;if("cross-faded"===a.property.specification["property-type"]||"cross-faded-data-driven"===a.property.specification["property-type"])if("constant"===a.value.kind)r.binders[i]=new cs(a.value.value,s,l),o.push("/u_"+i);else{var c=gt(i,l,"source");r.binders[i]=new hs(a.value,s,l,u,t,c,e.id),o.push("/a_"+i)}else if("constant"===a.value.kind)r.binders[i]=new us(a.value.value,s,l),o.push("/u_"+i);else if("source"===a.value.kind){var p=gt(i,l,"source");r.binders[i]=new ps(a.value,s,l,p),o.push("/a_"+i)}else{var f=gt(i,l,"composite");r.binders[i]=new fs(a.value,s,l,u,t,f),o.push("/z_"+i)}}}return r.cacheKey=o.sort().join(""),r},ds.prototype.populatePaintArrays=function(e,t,n,r,o){for(var i in this.binders)this.binders[i].populatePaintArray(e,t,r,o);void 0!==t.id&&this._featureMap.add(+t.id,n,this._bufferOffset,e),this._bufferOffset=e},ds.prototype.setConstantPatternPositions=function(e,t){for(var n in this.binders)this.binders[n].setConstantPatternPositions(e,t)},ds.prototype.updatePaintArrays=function(e,t,n,r){var o=!1;for(var i in e)for(var a=0,s=this._featureMap.getPositions(+i);a<s.length;a+=1){var l=s[a],u=t.feature(l.index);for(var c in this.binders){var p=this.binders[c];if(!(p instanceof us||p instanceof cs)&&!0===p.expression.isStateDependent){var f=n.paint.get(c);p.expression=f.value,p.updatePaintArray(l.start,l.end,u,e[i],r),o=!0}}}return o},ds.prototype.defines=function(){var e=[];for(var t in this.binders)e.push.apply(e,this.binders[t].defines());return e},ds.prototype.getPaintVertexBuffers=function(){return this._buffers},ds.prototype.getUniforms=function(e,t){var n=[];for(var r in this.binders)for(var o=this.binders[r],i=0,a=o.uniformNames;i<a.length;i+=1){var s=a[i];if(t[s]){var l=o.getBinding(e,t[s]);n.push({name:s,property:r,binding:l})}}return n},ds.prototype.setUniforms=function(e,t,n,r){for(var o=0,i=t;o<i.length;o+=1){var a=i[o],s=a.name,l=a.property,u=a.binding;this.binders[l].setUniforms(e,u,r,n.get(l),s)}},ds.prototype.updatePatternPaintBuffers=function(e){var t=[];for(var n in this.binders){var r=this.binders[n];if(r instanceof hs){var o=2===e.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;o&&t.push(o)}else(r instanceof ps||r instanceof fs)&&r.paintVertexBuffer&&t.push(r.paintVertexBuffer)}this._buffers=t},ds.prototype.upload=function(e){for(var t in this.binders)this.binders[t].upload(e);var n=[];for(var r in this.binders){var o=this.binders[r];(o instanceof ps||o instanceof fs)&&o.paintVertexBuffer&&n.push(o.paintVertexBuffer)}this._buffers=n},ds.prototype.destroy=function(){for(var e in this.binders)this.binders[e].destroy()};var ms=function(e,t,n,r){void 0===r&&(r=function(){return!0}),this.programConfigurations={};for(var o=0,i=t;o<i.length;o+=1){var a=i[o];this.programConfigurations[a.id]=ds.createDynamic(a,n,r),this.programConfigurations[a.id].layoutAttributes=e}this.needsUpload=!1};ms.prototype.populatePaintArrays=function(e,t,n,r,o){for(var i in this.programConfigurations)this.programConfigurations[i].populatePaintArrays(e,t,n,r,o);this.needsUpload=!0},ms.prototype.updatePaintArrays=function(e,t,n,r){for(var o=0,i=n;o<i.length;o+=1){var a=i[o];this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(e,t,a,r)||this.needsUpload}},ms.prototype.get=function(e){return this.programConfigurations[e]},ms.prototype.upload=function(e){if(this.needsUpload){for(var t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}},ms.prototype.destroy=function(){for(var e in this.programConfigurations)this.programConfigurations[e].destroy()},rt("ConstantBinder",us),rt("CrossFadedConstantBinder",cs),rt("SourceExpressionBinder",ps),rt("CrossFadedCompositeBinder",hs),rt("CompositeExpressionBinder",fs),rt("ProgramConfiguration",ds,{omit:["_buffers"]}),rt("ProgramConfigurationSet",ms);var ys,gs=8192,vs=(ys=15,{min:-1*Math.pow(2,ys-1),max:Math.pow(2,ys-1)-1}),_s=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(function(e){return e.id}),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new va,this.indexArray=new Ma,this.segments=new $a,this.programConfigurations=new ms(Ja,e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(function(e){return e.isStateDependent()}).map(function(e){return e.id})};_s.prototype.populate=function(e,t){var n=this.layers[0],r=[],o=null;"circle"===n.type&&(o=n.layout.get("circle-sort-key"));for(var i=0,a=e;i<a.length;i+=1){var s=a[i],l=s.feature,u=s.index,c=s.sourceLayerIndex;if(this.layers[0]._featureFilter(new Qi(this.zoom),l)){var p=vt(l),f=o?o.evaluate(l,{}):void 0,h={id:l.id,properties:l.properties,type:l.type,sourceLayerIndex:c,index:u,geometry:p,patterns:{},sortKey:f};r.push(h)}}o&&r.sort(function(e,t){return e.sortKey-t.sortKey});for(var d=0,m=r;d<m.length;d+=1){var y=m[d],g=y,v=g.geometry,_=g.index,b=g.sourceLayerIndex,x=e[_].feature;this.addFeature(y,v,_),t.featureIndex.insert(x,v,_,b,this.index)}},_s.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},_s.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},_s.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},_s.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ja),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},_s.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},_s.prototype.addFeature=function(e,t,n){for(var r=0,o=t;r<o.length;r+=1)for(var i=0,a=o[r];i<a.length;i+=1){var s=a[i],l=s.x,u=s.y;if(!(l<0||l>=gs||u<0||u>=gs)){var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),p=c.vertexLength;_t(this.layoutVertexArray,l,u,-1,-1),_t(this.layoutVertexArray,l,u,1,-1),_t(this.layoutVertexArray,l,u,1,1),_t(this.layoutVertexArray,l,u,-1,1),this.indexArray.emplaceBack(p,p+1,p+2),this.indexArray.emplaceBack(p,p+3,p+2),c.vertexLength+=4,c.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{})},rt("CircleBucket",_s,{omit:["layers"]});var bs=new ha({"circle-sort-key":new ua(Eo.layout_circle["circle-sort-key"])}),xs={paint:new ha({"circle-radius":new ua(Eo.paint_circle["circle-radius"]),"circle-color":new ua(Eo.paint_circle["circle-color"]),"circle-blur":new ua(Eo.paint_circle["circle-blur"]),"circle-opacity":new ua(Eo.paint_circle["circle-opacity"]),"circle-translate":new la(Eo.paint_circle["circle-translate"]),"circle-translate-anchor":new la(Eo.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new la(Eo.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new la(Eo.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new ua(Eo.paint_circle["circle-stroke-width"]),"circle-stroke-color":new ua(Eo.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new ua(Eo.paint_circle["circle-stroke-opacity"])}),layout:bs},ws="undefined"!=typeof Float32Array?Float32Array:Array;Math.PI;var Es;Es=new ws(3),ws!=Float32Array&&(Es[0]=0,Es[1]=0,Es[2]=0),function(){!function(){var e=new ws(4);ws!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0)}()}();var Ts=function(e){function t(t){e.call(this,t,xs)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createBucket=function(e){return new _s(e)},t.prototype.queryRadius=function(e){var t=e;return Rt("circle-radius",this,t)+Rt("circle-stroke-width",this,t)+Dt(this.paint.get("circle-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,o,i,a,s){for(var l=It(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),i.angle,a),u=this.paint.get("circle-radius").evaluate(t,n)+this.paint.get("circle-stroke-width").evaluate(t,n),c="map"===this.paint.get("circle-pitch-alignment"),p=c?l:function(e,t){return e.map(function(e){return Lt(e,t)})}(l,s),f=c?u*a:u,h=0,d=r;h<d.length;h+=1)for(var m=0,y=d[h];m<y.length;m+=1){var g=y[m],v=c?g:Lt(g,s),_=f,b=Mt([],[g.x,g.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?_*=b[3]/i.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(_*=i.cameraToCenterDistance/b[3]),xt(p,v,_))return!0}return!1},t}(da),Os=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_s);rt("HeatmapBucket",Os,{omit:["layers"]});var Cs=function(e,t){jt(this,e,1,t)};Cs.prototype.resize=function(e){zt(this,e,1)},Cs.prototype.clone=function(){return new Cs({width:this.width,height:this.height},new Uint8Array(this.data))},Cs.copy=function(e,t,n,r,o){Ft(e,t,n,r,o,1)};var Ss=function(e,t){jt(this,e,4,t)};Ss.prototype.resize=function(e){zt(this,e,4)},Ss.prototype.replace=function(e,t){t?this.data.set(e):e instanceof Uint8ClampedArray?this.data=new Uint8Array(e.buffer):this.data=e},Ss.prototype.clone=function(){return new Ss({width:this.width,height:this.height},new Uint8Array(this.data))},Ss.copy=function(e,t,n,r,o){Ft(e,t,n,r,o,4)},rt("AlphaImage",Cs),rt("RGBAImage",Ss);var ks={paint:new ha({"heatmap-radius":new ua(Eo.paint_heatmap["heatmap-radius"]),"heatmap-weight":new ua(Eo.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new la(Eo.paint_heatmap["heatmap-intensity"]),"heatmap-color":new fa(Eo.paint_heatmap["heatmap-color"]),"heatmap-opacity":new la(Eo.paint_heatmap["heatmap-opacity"])})},As=function(e){function t(t){e.call(this,t,ks),this._updateColorRamp()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createBucket=function(e){return new Os(e)},t.prototype._handleSpecialPaintPropertyUpdate=function(e){"heatmap-color"===e&&this._updateColorRamp()},t.prototype._updateColorRamp=function(){var e=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=Nt(e,"heatmapDensity"),this.colorRampTexture=null},t.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},t.prototype.queryRadius=function(){return 0},t.prototype.queryIntersectsFeature=function(){return!1},t.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility},t}(da),Ps={paint:new ha({"hillshade-illumination-direction":new la(Eo.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new la(Eo.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new la(Eo.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new la(Eo.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new la(Eo.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new la(Eo.paint_hillshade["hillshade-accent-color"])})},Rs=function(e){function t(t){e.call(this,t,Ps)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility},t}(da),Ds=pt([{name:"a_pos",components:2,type:"Int16"}],4).members,Is=Bt,Ms=Bt;Bt.deviation=function(e,t,n,r){var o=t&&t.length,i=o?t[0]*n:e.length,a=Math.abs(un(e,0,i,n));if(o)for(var s=0,l=t.length;s<l;s++){var u=t[s]*n,c=s<l-1?t[s+1]*n:e.length;a-=Math.abs(un(e,u,c,n))}var p=0;for(s=0;s<r.length;s+=3){var f=r[s]*n,h=r[s+1]*n,d=r[s+2]*n;p+=Math.abs((e[f]-e[d])*(e[h+1]-e[f+1])-(e[f]-e[h])*(e[d+1]-e[f+1]))}return 0===a&&0===p?0:Math.abs((p-a)/a)},Bt.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var i=0;i<e[o].length;i++)for(var a=0;a<t;a++)n.vertices.push(e[o][i][a]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n},Is.default=Ms;var Ls=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(function(e){return e.id}),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new va,this.indexArray=new Ma,this.indexArray2=new La,this.programConfigurations=new ms(Ds,e.layers,e.zoom),this.segments=new $a,this.segments2=new $a,this.stateDependentLayerIds=this.layers.filter(function(e){return e.isStateDependent()}).map(function(e){return e.id})};Ls.prototype.populate=function(e,t){this.hasPattern=mn("fill",this.layers,t);for(var n=this.layers[0].layout.get("fill-sort-key"),r=[],o=0,i=e;o<i.length;o+=1){var a=i[o],s=a.feature,l=a.index,u=a.sourceLayerIndex;if(this.layers[0]._featureFilter(new Qi(this.zoom),s)){var c=vt(s),p=n?n.evaluate(s,{}):void 0,f={id:s.id,properties:s.properties,type:s.type,sourceLayerIndex:u,index:l,geometry:c,patterns:{},sortKey:p};r.push(f)}}n&&r.sort(function(e,t){return e.sortKey-t.sortKey});for(var h=0,d=r;h<d.length;h+=1){var m=d[h],y=m,g=y.geometry,v=y.index,_=y.sourceLayerIndex;if(this.hasPattern){var b=yn("fill",this.layers,m,this.zoom,t);this.patternFeatures.push(b)}else this.addFeature(m,g,v,{});var x=e[v].feature;t.featureIndex.insert(x,g,v,_,this.index)}},Ls.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},Ls.prototype.addFeatures=function(e,t){for(var n=0,r=this.patternFeatures;n<r.length;n+=1){var o=r[n];this.addFeature(o,o.geometry,o.index,t)}},Ls.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Ls.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Ls.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ds),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0},Ls.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},Ls.prototype.addFeature=function(e,t,n,r){for(var o=0,i=hn(t,500);o<i.length;o+=1){for(var a=i[o],s=0,l=0,u=a;l<u.length;l+=1)s+=u[l].length;for(var c=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray),p=c.vertexLength,f=[],h=[],d=0,m=a;d<m.length;d+=1){var y=m[d];if(0!==y.length){y!==a[0]&&h.push(f.length/2);var g=this.segments2.prepareSegment(y.length,this.layoutVertexArray,this.indexArray2),v=g.vertexLength;this.layoutVertexArray.emplaceBack(y[0].x,y[0].y),this.indexArray2.emplaceBack(v+y.length-1,v),f.push(y[0].x),f.push(y[0].y);for(var _=1;_<y.length;_++)this.layoutVertexArray.emplaceBack(y[_].x,y[_].y),this.indexArray2.emplaceBack(v+_-1,v+_),f.push(y[_].x),f.push(y[_].y);g.vertexLength+=y.length,g.primitiveLength+=y.length}}for(var b=Is(f,h),x=0;x<b.length;x+=3)this.indexArray.emplaceBack(p+b[x],p+b[x+1],p+b[x+2]);c.vertexLength+=s,c.primitiveLength+=b.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,r)},rt("FillBucket",Ls,{omit:["layers","patternFeatures"]});var js=new ha({"fill-sort-key":new ua(Eo.layout_fill["fill-sort-key"])}),zs={paint:new ha({"fill-antialias":new la(Eo.paint_fill["fill-antialias"]),"fill-opacity":new ua(Eo.paint_fill["fill-opacity"]),"fill-color":new ua(Eo.paint_fill["fill-color"]),"fill-outline-color":new ua(Eo.paint_fill["fill-outline-color"]),"fill-translate":new la(Eo.paint_fill["fill-translate"]),"fill-translate-anchor":new la(Eo.paint_fill["fill-translate-anchor"]),"fill-pattern":new ca(Eo.paint_fill["fill-pattern"])}),layout:js},Fs=function(e){function t(t){e.call(this,t,zs)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.recalculate=function(t){e.prototype.recalculate.call(this,t);var n=this.paint._values["fill-outline-color"];"constant"===n.value.kind&&void 0===n.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])},t.prototype.createBucket=function(e){return new Ls(e)},t.prototype.queryRadius=function(){return Dt(this.paint.get("fill-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,o,i,a){return wt(It(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),i.angle,a),r)},t.prototype.isTileClipped=function(){return!0},t}(da),Ns=pt([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4).members,Bs=gn;gn.types=["Unknown","Point","LineString","Polygon"],gn.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,n=e.readVarint()+e.pos,r=1,o=0,i=0,a=0,s=[];e.pos<n;){if(o<=0){var l=e.readVarint();r=7&l,o=l>>3}if(o--,1===r||2===r)i+=e.readSVarint(),a+=e.readSVarint(),1===r&&(t&&s.push(t),t=[]),t.push(new Ir(i,a));else{if(7!==r)throw new Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&s.push(t),s},gn.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,o=0,i=0,a=1/0,s=-1/0,l=1/0,u=-1/0;e.pos<t;){if(r<=0){var c=e.readVarint();n=7&c,r=c>>3}if(r--,1===n||2===n)(o+=e.readSVarint())<a&&(a=o),o>s&&(s=o),(i+=e.readSVarint())<l&&(l=i),i>u&&(u=i);else if(7!==n)throw new Error("unknown command "+n)}return[a,l,s,u]},gn.prototype.toGeoJSON=function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=180-360*(n.y+l)/a;e[t]=[360*(n.x+s)/a-180,360/Math.PI*Math.atan(Math.exp(r*Math.PI/180))-90]}}var o,i,a=this.extent*Math.pow(2,n),s=this.extent*e,l=this.extent*t,u=this.loadGeometry(),c=gn.types[this.type];switch(this.type){case 1:var p=[];for(o=0;o<u.length;o++)p[o]=u[o][0];r(u=p);break;case 2:for(o=0;o<u.length;o++)r(u[o]);break;case 3:for(u=function(e){var t=e.length;if(t<=1)return[e];for(var n,r,o=[],i=0;i<t;i++){var a=_n(e[i]);0!==a&&(void 0===r&&(r=a<0),r===a<0?(n&&o.push(n),n=[e[i]]):n.push(e[i]))}return n&&o.push(n),o}(u),o=0;o<u.length;o++)for(i=0;i<u[o].length;i++)r(u[o][i])}1===u.length?u=u[0]:c="Multi"+c;var f={type:"Feature",geometry:{type:c,coordinates:u},properties:this.properties};return"id"in this&&(f.id=this.id),f};var Us=bn;bn.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new Bs(this._pbf,t,this.extent,this._keys,this._values)};var Vs={VectorTile:function(e,t){this.layers=e.readFields(wn,{},t)},VectorTileFeature:Bs,VectorTileLayer:Us},Hs=Vs.VectorTileFeature.types,qs=Math.pow(2,13),Gs=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(function(e){return e.id}),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new ba,this.indexArray=new Ma,this.programConfigurations=new ms(Ns,e.layers,e.zoom),this.segments=new $a,this.stateDependentLayerIds=this.layers.filter(function(e){return e.isStateDependent()}).map(function(e){return e.id})};Gs.prototype.populate=function(e,t){this.features=[],this.hasPattern=mn("fill-extrusion",this.layers,t);for(var n=0,r=e;n<r.length;n+=1){var o=r[n],i=o.feature,a=o.index,s=o.sourceLayerIndex;if(this.layers[0]._featureFilter(new Qi(this.zoom),i)){var l=vt(i),u={sourceLayerIndex:s,index:a,geometry:l,properties:i.properties,type:i.type,patterns:{}};void 0!==i.id&&(u.id=i.id),this.hasPattern?this.features.push(yn("fill-extrusion",this.layers,u,this.zoom,t)):this.addFeature(u,l,a,{}),t.featureIndex.insert(i,l,a,s,this.index,!0)}}},Gs.prototype.addFeatures=function(e,t){for(var n=0,r=this.features;n<r.length;n+=1){var o=r[n],i=o.geometry;this.addFeature(o,i,o.index,t)}},Gs.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},Gs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Gs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Gs.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ns),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},Gs.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Gs.prototype.addFeature=function(e,t,n,r){for(var o=0,i=hn(t,500);o<i.length;o+=1){for(var a=i[o],s=0,l=0,u=a;l<u.length;l+=1)s+=u[l].length;for(var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),p=0,f=a;p<f.length;p+=1){var h=f[p];if(0!==h.length&&!On(h))for(var d=0,m=0;m<h.length;m++){var y=h[m];if(m>=1){var g=h[m-1];if(!Tn(y,g)){c.vertexLength+4>$a.MAX_VERTEX_ARRAY_LENGTH&&(c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var v=y.sub(g)._perp()._unit(),_=g.dist(y);d+_>32768&&(d=0),En(this.layoutVertexArray,y.x,y.y,v.x,v.y,0,0,d),En(this.layoutVertexArray,y.x,y.y,v.x,v.y,0,1,d),d+=_,En(this.layoutVertexArray,g.x,g.y,v.x,v.y,0,0,d),En(this.layoutVertexArray,g.x,g.y,v.x,v.y,0,1,d);var b=c.vertexLength;this.indexArray.emplaceBack(b,b+2,b+1),this.indexArray.emplaceBack(b+1,b+2,b+3),c.vertexLength+=4,c.primitiveLength+=2}}}}if(c.vertexLength+s>$a.MAX_VERTEX_ARRAY_LENGTH&&(c=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray)),"Polygon"===Hs[e.type]){for(var x=[],w=[],E=c.vertexLength,T=0,O=a;T<O.length;T+=1){var C=O[T];if(0!==C.length){C!==a[0]&&w.push(x.length/2);for(var S=0;S<C.length;S++){var k=C[S];En(this.layoutVertexArray,k.x,k.y,0,0,1,1,0),x.push(k.x),x.push(k.y)}}}for(var A=Is(x,w),P=0;P<A.length;P+=3)this.indexArray.emplaceBack(E+A[P],E+A[P+2],E+A[P+1]);c.primitiveLength+=A.length/3,c.vertexLength+=s}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,r)},rt("FillExtrusionBucket",Gs,{omit:["layers","features"]});var Ws={paint:new ha({"fill-extrusion-opacity":new la(Eo["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new ua(Eo["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new la(Eo["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new la(Eo["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ca(Eo["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new ua(Eo["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new ua(Eo["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new la(Eo["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},Zs=function(e){function t(t){e.call(this,t,Ws)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createBucket=function(e){return new Gs(e)},t.prototype.queryRadius=function(){return Dt(this.paint.get("fill-extrusion-translate"))},t.prototype.is3D=function(){return!0},t.prototype.queryIntersectsFeature=function(e,t,n,r,o,i,a,s){var l=It(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),i.angle,a),u=this.paint.get("fill-extrusion-height").evaluate(t,n),c=this.paint.get("fill-extrusion-base").evaluate(t,n),p=function(e,t,n,r){for(var o=[],i=0,a=e;i<a.length;i+=1){var s=a[i],l=[s.x,s.y,0,1];Mt(l,l,t),o.push(new Ir(l[0]/l[3],l[1]/l[3]))}return o}(l,s),f=function(e,t,n,r){for(var o=[],i=[],a=r[8]*t,s=r[9]*t,l=r[10]*t,u=r[11]*t,c=r[8]*n,p=r[9]*n,f=r[10]*n,h=r[11]*n,d=0,m=e;d<m.length;d+=1){for(var y=m[d],g=[],v=[],_=0,b=y;_<b.length;_+=1){var x=b[_],w=x.x,E=x.y,T=r[0]*w+r[4]*E+r[12],O=r[1]*w+r[5]*E+r[13],C=r[2]*w+r[6]*E+r[14],S=r[3]*w+r[7]*E+r[15],k=C+l,A=S+u,P=T+c,R=O+p,D=C+f,I=S+h,M=new Ir((T+a)/A,(O+s)/A);M.z=k/A,g.push(M);var L=new Ir(P/I,R/I);L.z=D/I,v.push(L)}o.push(g),i.push(v)}return[o,i]}(r,c,u,s);return function(e,t,n){var r=1/0;wt(n,t)&&(r=Sn(n,t[0]));for(var o=0;o<t.length;o++)for(var i=t[o],a=e[o],s=0;s<i.length-1;s++){var l=i[s],u=i[s+1],c=a[s],p=a[s+1],f=[l,u,p,c,l];bt(n,f)&&(r=Math.min(r,Sn(n,f)))}return r!==1/0&&r}(f[0],f[1],p)},t}(da),Ks=pt([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,Xs=Vs.VectorTileFeature.types,Ys=Math.cos(Math.PI/180*37.5),Js=Math.pow(2,14)/.5,$s=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(function(e){return e.id}),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new xa,this.indexArray=new Ma,this.programConfigurations=new ms(Ks,e.layers,e.zoom),this.segments=new $a,this.stateDependentLayerIds=this.layers.filter(function(e){return e.isStateDependent()}).map(function(e){return e.id})};$s.prototype.populate=function(e,t){this.hasPattern=mn("line",this.layers,t);for(var n=this.layers[0].layout.get("line-sort-key"),r=[],o=0,i=e;o<i.length;o+=1){var a=i[o],s=a.feature,l=a.index,u=a.sourceLayerIndex;if(this.layers[0]._featureFilter(new Qi(this.zoom),s)){var c=vt(s),p=n?n.evaluate(s,{}):void 0,f={id:s.id,properties:s.properties,type:s.type,sourceLayerIndex:u,index:l,geometry:c,patterns:{},sortKey:p};r.push(f)}}n&&r.sort(function(e,t){return e.sortKey-t.sortKey});for(var h=0,d=r;h<d.length;h+=1){var m=d[h],y=m,g=y.geometry,v=y.index,_=y.sourceLayerIndex;if(this.hasPattern){var b=yn("line",this.layers,m,this.zoom,t);this.patternFeatures.push(b)}else this.addFeature(m,g,v,{});var x=e[v].feature;t.featureIndex.insert(x,g,v,_,this.index)}},$s.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},$s.prototype.addFeatures=function(e,t){for(var n=0,r=this.patternFeatures;n<r.length;n+=1){var o=r[n];this.addFeature(o,o.geometry,o.index,t)}},$s.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},$s.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},$s.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ks),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},$s.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},$s.prototype.addFeature=function(e,t,n,r){for(var o=this.layers[0].layout,i=o.get("line-join").evaluate(e,{}),a=o.get("line-cap"),s=o.get("line-miter-limit"),l=o.get("line-round-limit"),u=0,c=t;u<c.length;u+=1){var p=c[u];this.addLine(p,e,i,a,s,l,n,r)}}
vendor: 4,228 bytes, line 1
1,$s.prototype.addLine=function(e,t,n,r,o,i,a,s){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,t.properties&&t.properties.hasOwnProperty("mapbox_clip_start")&&t.properties.hasOwnProperty("mapbox_clip_end")){this.clipStart=+t.properties.mapbox_clip_start,this.clipEnd=+t.properties.mapbox_clip_end;for(var l=0;l<e.length-1;l++)this.totalDistance+=e[l].dist(e[l+1])}for(var u="Polygon"===Xs[t.type],c=e.length;c>=2&&e[c-1].equals(e[c-2]);)c--;for(var p=0;p<c-1&&e[p].equals(e[p+1]);)p++;if(!(c<(u?3:2))){"bevel"===n&&(o=1.05);var f,h=gs/(512*this.overscaling)*15,d=this.segments.prepareSegment(10*c,this.layoutVertexArray,this.indexArray),m=void 0,y=void 0,g=void 0,v=void 0;this.e1=this.e2=-1,u&&(f=e[c-2],v=e[p].sub(f)._unit()._perp());for(var _=p;_<c;_++)if(!(y=u&&_===c-1?e[p+1]:e[_+1])||!e[_].equals(y)){v&&(g=v),f&&(m=f),f=e[_],v=y?y.sub(f)._unit()._perp():g;var b=(g=g||v).add(v);0===b.x&&0===b.y||b._unit();var x=g.x*v.x+g.y*v.y,w=b.x*v.x+b.y*v.y,E=0!==w?1/w:1/0,T=2*Math.sqrt(2-2*w),O=w<Ys&&m&&y,C=g.x*v.y-g.y*v.x>0;if(O&&_>p){var S=f.dist(m);if(S>2*h){var k=f.sub(f.sub(m)._mult(h/S)._round());this.updateDistance(m,k),this.addCurrentVertex(k,g,0,0,d),m=k}}var A=m&&y,P=A?n:u?"butt":r;if(A&&"round"===P&&(E<i?P="miter":E<=2&&(P="fakeround")),"miter"===P&&E>o&&(P="bevel"),"bevel"===P&&(E>2&&(P="flipbevel"),E<o&&(P="miter")),m&&this.updateDistance(m,f),"miter"===P)b._mult(E),this.addCurrentVertex(f,b,0,0,d);else if("flipbevel"===P){if(E>100)b=v.mult(-1);else{var R=E*g.add(v).mag()/g.sub(v).mag();b._perp()._mult(R*(C?-1:1))}this.addCurrentVertex(f,b,0,0,d),this.addCurrentVertex(f,b.mult(-1),0,0,d)}else if("bevel"===P||"fakeround"===P){var D=-Math.sqrt(E*E-1),I=C?D:0,M=C?0:D;if(m&&this.addCurrentVertex(f,g,I,M,d),"fakeround"===P)for(var L=Math.round(180*T/Math.PI/20),j=1;j<L;j++){var z=j/L;if(.5!==z){var F=z-.5;z+=z*F*(z-1)*((1.0904+x*(x*(3.55645-1.43519*x)-3.2452))*F*F+(.848013+x*(.215638*x-1.06021)))}var N=v.sub(g)._mult(z)._add(g)._unit()._mult(C?-1:1);this.addHalfVertex(f,N.x,N.y,!1,C,0,d)}y&&this.addCurrentVertex(f,v,-I,-M,d)}else if("butt"===P)this.addCurrentVertex(f,b,0,0,d);else if("square"===P){var B=m?1:-1;this.addCurrentVertex(f,b,B,B,d)}else"round"===P&&(m&&(this.addCurrentVertex(f,g,0,0,d),this.addCurrentVertex(f,g,1,1,d,!0)),y&&(this.addCurrentVertex(f,v,-1,-1,d,!0),this.addCurrentVertex(f,v,0,0,d)));if(O&&_<c-1){var U=f.dist(y);if(U>2*h){var V=f.add(y.sub(f)._mult(h/U)._round());this.updateDistance(f,V),this.addCurrentVertex(V,v,0,0,d),f=V}}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,a,s)}},$s.prototype.addCurrentVertex=function(e,t,n,r,o,i){void 0===i&&(i=!1);var a=t.x+t.y*n,s=t.y-t.x*n,l=-t.x+t.y*r,u=-t.y-t.x*r;this.addHalfVertex(e,a,s,i,!1,n,o),this.addHalfVertex(e,l,u,i,!0,-r,o),this.distance>Js/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(e,t,n,r,o,i))},$s.prototype.addHalfVertex=function(e,t,n,r,o,i,a){var s=e.x,l=e.y,u=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((s<<1)+(r?1:0),(l<<1)+(o?1:0),Math.round(63*t)+128,Math.round(63*n)+128,1+(0===i?0:i<0?-1:1)|(63&u)<<2,u>>6);var c=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,c),a.primitiveLength++),o?this.e2=c:this.e1=c},$s.prototype.updateDistance=function(e,t){this.distance+=e.dist(t),this.scaledDistance=this.totalDistance>0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(Js-1):this.distance},rt("LineBucket",$s,{omit:["layers","patternFeatures"]});var Qs=new ha({"line-cap":new la(Eo.layout_line["line-cap"]),"line-join":new ua(Eo.layout_line["line-join"]),"line-miter-limit":new la(Eo.layout_line["line-miter-limit"]),"line-round-limit":new la(Eo.layout_line["line-round-limit"]),"line-sort-key":new ua(Eo.layout_line["line-sort-key"])}),el={paint:new ha({"line-opacity":new ua(Eo.paint_line["line-opacity"]),"line-color":new ua(Eo.paint_line["line-color"]),"line-translate":new la(Eo.paint_line["line-translate"]),"line-translate-anchor":new la(Eo.paint_line["line-translate-anchor"]),"line-width":new ua(Eo.paint_line["line-width"]),"line-gap-width":new ua(Eo.paint_line["line-gap-width"]),"line-offset":new ua(Eo.paint_line["line-offset"]),"line-blur"
1:new ua(Eo.paint_line["line-blur"]),"line-dasharray":new pa(Eo.paint_line["line-dasharray"]),"line-pattern":new ca(Eo.paint_line["line-pattern"]),"line-gradient":new fa(Eo.paint_line["line-gradient"])}),layout:Qs},tl=new(function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.possiblyEvaluate=function(t,n){return n=new Qi(Math.floor(n.zoom),{now:n.now,fadeDuration:n.fadeDuration,zoomHistory:n.zoomHistory,transition:n.transition}),e.prototype.possiblyEvaluate.call(this,t,n)},t.prototype.evaluate=function(t,n,r,o){return n=l({},n,{zoom:Math.floor(n.zoom)}),e.prototype.evaluate.call(this,t,n,r,o)},t}(ua))(el.paint.properties["line-width"].specification);tl.useIntegerZoom=!0;var nl=function(e){function t(t){e.call(this,t,el)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._handleSpecialPaintPropertyUpdate=function(e){"line-gradient"===e&&this._updateGradient()},t.prototype._updateGradient=function(){var e=this._transitionablePaint._values["line-gradient"].value.expression;this.gradient=Nt(e,"lineProgress"),this.gradientTexture=null},t.prototype.recalculate=function(t){e.prototype.recalculate.call(this,t),this.paint._values["line-floorwidth"]=tl.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)},t.prototype.createBucket=function(e){return new $s(e)},t.prototype.queryRadius=function(e){var t=e,n=kn(Rt("line-width",this,t),Rt("line-gap-width",this,t)),r=Rt("line-offset",this,t);return n/2+Math.abs(r)+Dt(this.paint.get("line-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,o,i,a){var s=It(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),i.angle,a),l=a/2*kn(this.paint.get("line-width").evaluate(t,n),this.paint.get("line-gap-width").evaluate(t,n)),u=this.paint.get("line-offset").evaluate(t,n);return u&&(r=function(e,t){for(var n=[],r=new Ir(0,0),o=0;o<e.length;o++){for(var i=e[o],a=[],s=0;s<i.length;s++){var l=i[s-1],u=i[s],c=i[s+1],p=0===s?r:u.sub(l)._unit()._perp(),f=s===i.length-1?r:c.sub(u)._unit()._perp(),h=p._add(f)._unit(),d=h.x*f.x+h.y*f.y;h._mult(1/d),a.push(h._mult(t)._add(u))}n.push(a)}return n}(r,u*a)),function(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];if(e.length>=3)for(var i=0;i<o.length;i++)if(At(e,o[i]))return!0;if(Et(e,o,n))return!0}return!1}(s,r,l)},t.prototype.isTileClipped=function(){return!0},t}(da),rl=pt([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"}]),ol=pt([{name:"a_projected_pos",components:3,type:"Float32"}],4),il=(pt([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),pt([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),al=(pt([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"},{type:"Int16",name:"radius"},{type:"Int16",name:"signedDistanceFromAnchor"}]),pt([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),sl=pt([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4);pt([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"}]),pt([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"radialTextOffset"}]),pt([{type:"Float32",name:"offsetX"}]),pt([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var ll={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42"},ul=24,cl={horizontal:1,vertical:2,horizontalOnly:3},pl=function(){this.text="",this.sectionIndex=[],this.sections=[]};pl.fromFeature=function(e,t){for(var n=new pl,r=0;r<e.sections.length;r++){var o=e.sections[r];n.sections.push({scale:o.scale||1,fontStack:o.fontStack||t}),n.text+=o.text;for(var i=0;i<o.text.length;i++)n.sectionIndex.push(r)}return n},pl.prototype.length=function(){return this.text.length},pl.prototype.getSection=function(e){return this.sections[this.sectionIndex[e]]},pl.prototype.getSectionIndex=function(e){return this.sectionIndex[e]},pl.prototype.getCharCode=function(e){return this.text.charCodeAt(e)},pl.prototype.verticalizePunctuation=function(){this.text=function(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n+1)||null,o=e.charCodeAt(n-1)||null;r&&ut(r)&&!ll[e[n+1]]||o&&ut(o)&&!ll[e[n-1]]||!ll[e[n]]?t+=e[n]:t
1+=ll[e[n]]}return t}(this.text)},pl.prototype.trim=function(){for(var e=0,t=0;t<this.text.length&&fl[this.text.charCodeAt(t)];t++)e++;for(var n=this.text.length,r=this.text.length-1;r>=0&&r>=e&&fl[this.text.charCodeAt(r)];r--)n--;this.text=this.text.substring(e,n),this.sectionIndex=this.sectionIndex.slice(e,n)},pl.prototype.substring=function(e,t){var n=new pl;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n},pl.prototype.toString=function(){return this.text},pl.prototype.getMaxScale=function(){var e=this;return this.sectionIndex.reduce(function(t,n){return Math.max(t,e.sections[n].scale)},0)};var fl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},hl={};hl[10]=!0,hl[32]=!0,hl[38]=!0,hl[40]=!0,hl[41]=!0,hl[43]=!0,hl[45]=!0,hl[47]=!0,hl[173]=!0,hl[183]=!0,hl[8203]=!0,hl[8208]=!0,hl[8211]=!0,hl[8231]=!0;var dl=function(e){function t(t,n,r,o){e.call(this,t,n),this.angle=r,void 0!==o&&(this.segment=o)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){return new t(this.x,this.y,this.angle,this.segment)},t}(Ir);rt("Anchor",dl);var ml=256,yl=Object.freeze({getSizeData:zn,evaluateSizeForFeature:Fn,evaluateSizeForZoom:Nn,SIZE_PACK_FACTOR:ml}),gl=Vs.VectorTileFeature.types,vl=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}],_l=function(e){this.layoutVertexArray=new Ea,this.indexArray=new Ma,this.programConfigurations=e,this.segments=new $a,this.dynamicLayoutVertexArray=new Ta,this.opacityVertexArray=new Oa,this.placedSymbolArray=new Va};_l.prototype.upload=function(e,t,n,r){n&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,rl.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,ol.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,vl,!0),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(e)},_l.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},rt("SymbolBuffers",_l);var bl=function(e,t,n){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new n,this.segments=new $a,this.collisionVertexArray=new ka};bl.prototype.upload=function(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,il.members,!0)},bl.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},rt("CollisionBuffers",bl);var xl=function(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(function(e){return e.id}),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasPaintOverrides=!1;var t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=zn(this.zoom,t["text-size"]),this.iconSizeData=zn(this.zoom,t["icon-size"]);var n=this.layers[0].layout,r=n.get("symbol-sort-key"),o=n.get("symbol-z-order");this.sortFeaturesByKey="viewport-y"!==o&&void 0!==r.constantOr(1);var i="viewport-y"===o||"auto"===o&&!this.sortFeaturesByKey;this.sortFeaturesByY=i&&(n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement")),"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map(function(e){return cl[e]})),this.stateDependentLayerIds=this.layers.filter(function(e){return e.isStateDependent()}).map(function(e){return e.id}),this.sourceID=e.sourceID};xl.prototype.createArrays=function(){var e=this.layers[0].layout;this.hasPaintOverrides=Ol.hasPaintOverrides(e),this.text=new _l(new ms(rl.members,this.layers,this.zoom,function(e){return/^text/.test(e)})),this.icon=new _l(new ms(rl.members,this.layers,this.zoom,function(e){return/^icon/.test(e)})),this.collisionBox=new bl(Sa,al.members,La),this.collisionCircle=new bl(Sa,sl.members,Ma),this.glyphOffsetArray=new Wa,this.lineVertexArray=new Ka,this.symbolInstances=new qa},xl.prototype.calculateGlyphDependencies=function(e,t,n,r,o){for(var i=0;i<e.length;i++)if(t[e.charCodeAt(i)]=!0,(n||r)&&o){var a=ll[e.charAt(i)];a&&(t[a.charCodeAt(0)]=!0)}},xl.prototype.populate=function(e,t){var n=this.layers[0],r=n.layout,o=r.get("text-font"),i=r.get("text-field"),a=r.get("icon-image"),s=("constant"!==i.value.kind||i.value.value.toString().length>0)&&("constant"!==o.value.kind||o.value.value.length>0),l="constant"!==a.value.kind||a.value.value&&a.value.value.length>0,u=r.get("symbol-sort-key");if(this.features=[],s||l){for(var c=t.iconDependencies,p=t.glyphDependencies,f=new Qi(this.zoom),h=0,d=e;h<d.length;h+=1){var m=d[h],y=m.feature,g=m.index,v=m.sourceLayerIndex;if(n._featureFilter(f,y)){var _=void 0;if(s){var b=n.getValueAndResolveTokens("text-field",y);_=An(b instanceof Uo?b:Uo.fromString(b),n,y)}var x=void 0;if(l&&(x=n.getValueAndResolveTokens("icon-image",y)),_||x){var w=this.sortFeaturesByKey?u.evaluate(y,{}):void 0,E={text:_,icon:x,index:g,sourceLayerIndex:v,geometry:vt(y),properties:y.properties,type:gl[y.type],sortKey:w};if(void 0!==y.id&&(E.id=y.id),this.features.push(E),x&&(c[x]=!0),_){var T=o.evaluate(y,{}).join(","),O="map"===r.get("text-rotation-alignment")&&"point"!==r.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(cl.vertical)>=0;for(var C=0,S=_.sections;C<S.length;C+=1){var k=S[C],A=at(_.toString()),P=k.fontStack||T,R=p[P]=p[P]||{};this.calculateGlyphDependencies(k.text,R,O,this.allowVerticalPlacement,A)}}}}}"line"===r.get("symbol-placement")&&(this.features=function(e){function t(t){s.push(e[t]),l
vendor: 17,632 bytes, line 1
1++}function n(e,t,n){var r=a[e];return delete a[e],a[t]=r,s[r].geometry[0].pop(),s[r].geometry[0]=s[r].geometry[0].concat(n[0]),r}function r(e,t,n){var r=i[t];return delete i[t],i[e]=r,s[r].geometry[0].shift(),s[r].geometry[0]=n[0].concat(s[r].geometry[0]),r}function o(e,t,n){var r=n?t[0][t[0].length-1]:t[0][0];return e+":"+r.x+":"+r.y}for(var i={},a={},s=[],l=0,u=0;u<e.length;u++){var c=e[u],p=c.geometry,f=c.text?c.text.toString():null;if(f){var h=o(f,p),d=o(f,p,!0);if(h in a&&d in i&&a[h]!==i[d]){var m=r(h,d,p),y=n(h,d,s[m].geometry);delete i[h],delete a[d],a[o(f,s[y].geometry,!0)]=y,s[m].geometry=null}else h in a?n(h,d,p):d in i?r(h,d,p):(t(u),i[h]=l-1,a[d]=l-1)}else t(u)}return s.filter(function(e){return e.geometry})}(this.features)),this.sortFeaturesByKey&&this.features.sort(function(e,t){return e.sortKey-t.sortKey})}},xl.prototype.update=function(e,t,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,n),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,n))},xl.prototype.isEmpty=function(){return 0===this.symbolInstances.length},xl.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},xl.prototype.upload=function(e){this.uploaded||(this.collisionBox.upload(e),this.collisionCircle.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},xl.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.collisionBox.destroy(),this.collisionCircle.destroy()},xl.prototype.addToLineVertexArray=function(e,t){var n=this.lineVertexArray.length;if(void 0!==e.segment){for(var r=e.dist(t[e.segment+1]),o=e.dist(t[e.segment]),i={},a=e.segment+1;a<t.length;a++)i[a]={x:t[a].x,y:t[a].y,tileUnitDistanceFromAnchor:r},a<t.length-1&&(r+=t[a+1].dist(t[a]));for(var s=e.segment||0;s>=0;s--)i[s]={x:t[s].x,y:t[s].y,tileUnitDistanceFromAnchor:o},s>0&&(o+=t[s-1].dist(t[s]));for(var l=0;l<t.length;l++){var u=i[l];this.lineVertexArray.emplaceBack(u.x,u.y,u.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}},xl.prototype.addSymbols=function(e,t,n,r,o,i,a,s,l,u){var c=this,p=e.indexArray,f=e.layoutVertexArray,h=e.dynamicLayoutVertexArray,d=e.segments.prepareSegment(4*t.length,e.layoutVertexArray,e.indexArray,i.sortKey),m=this.glyphOffsetArray.length,y=d.vertexLength,g=this.allowVerticalPlacement&&a===cl.vertical?Math.PI/2:0,v=function(e){var t=e.tl,r=e.tr,o=e.bl,i=e.br,a=e.tex,l=d.vertexLength,u=e.glyphOffset[1];Bn(f,s.x,s.y,t.x,u+t.y,a.x,a.y,n),Bn(f,s.x,s.y,r.x,u+r.y,a.x+a.w,a.y,n),Bn(f,s.x,s.y,o.x,u+o.y,a.x,a.y+a.h,n),Bn(f,s.x,s.y,i.x,u+i.y,a.x+a.w,a.y+a.h,n),Un(h,s,g),p.emplaceBack(l,l+1,l+2),p.emplaceBack(l+1,l+2,l+3),d.vertexLength+=4,d.primitiveLength+=2,c.glyphOffsetArray.emplaceBack(e.glyphOffset[0])};if(i.text&&i.text.sections){var _=i.text.sections;if(this.hasPaintOverrides){for(var b,x=function(t,n){void 0===b||b===t&&!n||e.programConfigurations.populatePaintArrays(e.layoutVertexArray.length,i,i.index,{},_[b]),b=t},w=0,E=t;w<E.length;w+=1){var T=E[w];x(T.sectionIndex,!1),v(T)}x(b,!0)}else{for(var O=0,C=t;O<C.length;O+=1)v(C[O]);e.programConfigurations.populatePaintArrays(e.layoutVertexArray.length,i,i.index,{},_[0])}}else{for(var S=0,k=t;S<k.length;S+=1)v(k[S]);e.programConfigurations.populatePaintArrays(e.layoutVertexArray.length,i,i.index,{})}e.placedSymbolArray.emplaceBack(s.x,s.y,m,this.glyphOffsetArray.length-m,y,l,u,s.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],a,0,!1,0)},xl.prototype._addCollisionDebugVertex=function(e,t,n,r,o,i){return t.emplaceBack(0,0),e.emplaceBack(n.x,n.y,r,o,Math.round(i.x),Math.round(i.y))},xl.prototype.addCollisionDebugVertices=function(e,t,n,r,o,i,a,s){var l=o.segments.prepareSegment(4,o.layoutVertexArray,o.indexArray),u=l.vertexLength,c=o.layoutVertexArray,p=o.collisionVertexArray,f=a.anchorX,h=a.anchorY;if(this._addCollisionDebugVertex(c,p,i,f,h,new Ir(e,t)),this._addCollisionDebugVertex(c,p,i,f,h,new Ir(n,t)),this._addCollisionDebugVertex(c,p,i,f,h,new Ir(n,r)),this._addCollisionDebugVertex(c,p,i,f,h,new Ir(e,r)),l.vertexLength+=4,s){var d=o.indexArray;d.emplaceBack(u,u+1,u+2),d.emplaceBack(u,u+2,u+3),l.primitiveLength+=2}else{var m=o.indexArray;m.emplaceBack(u,u+1),m.emplaceBack(u+1,u+2),m.emplaceBack(u+2,u+3),m.emplaceBack(u+3,u),l.primitiveLength+=4}},xl.prototype.addDebugCollisionBoxes=function(e,t,n){for(var r=e;r<t;r++){var o=this.collisionBoxArray.get(r),i=o.x1,a=o.y1,s=o.x2,l=o.y2,u=o.radius>0;this.addCollisionDebugVertices(i,a,s,l,u?this.collisionCircle:this.collisionBox,o.anchorPoint,n,u)}},xl.prototype.generateCollisionDebugBuffers=function(){for(var e=0;e<this.symbolInstances.length;e++){var t=this.symbolInstances.get(e);this.addDebugCollisionBoxes(t.textBoxStartIndex,t.textBoxEndIndex,t),this.addDebugCollisionBoxes(t.verticalTextBoxStartIndex,t.verticalTextBoxEndIndex,t),this.addDebugCollisionBoxes(t.iconBoxStartIndex,t.iconBoxEndIndex,t)}},xl.prototype._deserializeCollisionBoxesForSymbol=function(e,t,n,r,o,i,a){for(var s={},l=t;l<n;l++){var u=e.get(l);if(0===u.radius){s.textBox={x1:u.x1,y1:u.y1,x2:u.x2,y2:u.y2,anchorPointX:u.anchorPointX,anchorPointY:u.anchorPointY},s.textFeatureIndex=u.featureIndex;break}s.textCircles||(s.textCircles=[],s.textFeatureIndex=u.featureIndex),s.textCircles.push(u.anchorPointX,u.anchorPointY,u.radius,u.signedDistanceFromAnchor,1)}for(var c=r;c<o;c++){var p=e.get(c);if(0===p.radius){s.verticalTextBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},s.verticalTextFeatureIndex=p.featureIndex;break}}for(var f=i;f<a;f++){var h=e.get(f);if(0===h.radius){s.iconBox={x1:h.x1,y1:h.y1,x2:h.x2,y2:h.y2,anchorPointX:h.anchorPointX,anchorPointY:h.anchorPointY},s.iconFeatureIndex=h.featureIndex;break}}return s},xl.prototype.deserializeCollisionBoxes=function(e){this.collisionArrays=[];for(var t=0;t<this.symbolInstances.length;t++){var n=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex))}},xl.prototype.hasTextData=function(){return this.text.segments.get().length>0},xl.prototype.hasIconData=function(){return this.icon.segments.get().length>0},xl.prototype.hasCollisionBoxData=function(){return this.collisionBox.segments.get().length>0},xl.prototype.hasCollisionCircleData=function(){return this.collisionCircle.segments.get().length>0},xl.prototype.addIndicesForPlacedTextSymbol=function(e){for(var t=this.text.placedSymbolArray.get(e),n=t.vertexStartIndex+4*t.numGlyphs,r=t.vertexStartIndex;r<n;r+=4)this.text.indexArray.emplaceBack(r,r+1,r+2),this.text.indexArray.emplaceBack(r+1,r+2,r+3)},xl.prototype.getSortedSymbolIndexes=function(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var t=Math.sin(e),n=Math.cos(e),r=[],o=[],i=[],a=0;a<this.symbolInstances.length;++a){i.push(a);var s=this.symbolInstances.get(a);r.push(0|Math.round(t*s.anchorX+n*s.anchorY)),o.push(s.featureIndex)}return i.sort(function(e,t){return r[e]-r[t]||o[t]-o[e]}),i},xl.prototype.sortFeatures=function(e){var t=this;if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var n=0,r=this.symbolInstanceIndexes;n<r.length;n+=1){var o=r[n],i=this.symbolInstances.get(o);this.featureSortOrder.push(i.featureIndex),[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach(function(e,n,r){e>=0&&r.indexOf(e)===n&&t.addIndicesForPlacedTextSymbol(e)}),i.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedTextSymbol(i.verticalPlacedTextSymbolIndex);var a=this.icon.placedSymbolArray.get(o);if(a.numGlyphs){var s=a.vertexStartIndex;this.icon.indexArray.emplaceBack(s,s+1,s+2),this.icon.indexArray.emplaceBack(s+1,s+2,s+3)}}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},rt("SymbolBucket",xl,{omit:["layers","collisionBoxArray","features","compareText"]}),xl.MAX_GLYPHS=65535,xl.addDynamicAttributes=Un;var wl=new ha({"symbol-placement":new la(Eo.layout_symbol["symbol-placement"]),"symbol-spacing":new la(Eo.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new la(Eo.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new ua(Eo.layout_symbol["symbol-sort-key"]),"symbol-z-order":new la(Eo.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new la(Eo.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new la(Eo.layout_symbol["icon-ignore-placement"]),"icon-optional":new la(Eo.layout_symbol["icon-optional"]),"icon-rotation-alignment":new la(Eo.layout_symbol["icon-rotation-alignment"]),"icon-size":new ua(Eo.layout_symbol["icon-size"]),"icon-text-fit":new la(Eo.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new la(Eo.layout_symbol["icon-text-fit-padding"]),"icon-image":new ua(Eo.layout_symbol["icon-image"]),"icon-rotate":new ua(Eo.layout_symbol["icon-rotate"]),"icon-padding":new la(Eo.layout_symbol["icon-padding"]),"icon-keep-upright":new la(Eo.layout_symbol["icon-keep-upright"]),"icon-offset":new ua(Eo.layout_symbol["icon-offset"]),"icon-anchor":new ua(Eo.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new la(Eo.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new la(Eo.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new la(Eo.layout_symbol["text-rotation-alignment"]),"text-field":new ua(Eo.layout_symbol["text-field"]),"text-font":new ua(Eo.layout_symbol["text-font"]),"text-size":new ua(Eo.layout_symbol["text-size"]),"text-max-width":new ua(Eo.layout_symbol["text-max-width"]),"text-line-height":new la(Eo.layout_symbol["text-line-height"]),"text-letter-spacing":new ua(Eo.layout_symbol["text-letter-spacing"]),"text-justify":new ua(Eo.layout_symbol["text-justify"]),"text-radial-offset":new ua(Eo.layout_symbol["text-radial-offset"]),"text-variable-anchor":new la(Eo.layout_symbol["text-variable-anchor"]),"text-anchor":new ua(Eo.layout_symbol["text-anchor"]),"text-max-angle":new la(Eo.layout_symbol["text-max-angle"]),"text-writing-mode":new la(Eo.layout_symbol["text-writing-mode"]),"text-rotate":new ua(Eo.layout_symbol["text-rotate"]),"text-padding":new la(Eo.layout_symbol["text-padding"]),"text-keep-upright":new la(Eo.layout_symbol["text-keep-upright"]),"text-transform":new ua(Eo.layout_symbol["text-transform"]),"text-offset":new ua(Eo.layout_symbol["text-offset"]),"text-allow-overlap":new la(Eo.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new la(Eo.layout_symbol["text-ignore-placement"]),"text-optional":new la(Eo.layout_symbol["text-optional"])}),El={paint:new ha({"icon-opacity":new ua(Eo.paint_symbol["icon-opacity"]),"icon-color":new ua(Eo.paint_symbol["icon-color"]),"icon-halo-color":new ua(Eo.paint_symbol["icon-halo-color"]),"icon-halo-width":new ua(Eo.paint_symbol["icon-halo-width"]),"icon-halo-blur":new ua(Eo.paint_symbol["icon-halo-blur"]),"icon-translate":new la(Eo.paint_symbol["icon-translate"]),"icon-translate-anchor":new la(Eo.paint_symbol["icon-translate-anchor"]),"text-opacity":new ua(Eo.paint_symbol["text-opacity"]),"text-color":new ua(Eo.paint_symbol["text-color"],{runtimeType:Ro,getOverride:function(e){return e.textColor},hasOverride:function(e){return!!e.textColor}}),"text-halo-color":new ua(Eo.paint_symbol["text-halo-color"]),"text-halo-width":new ua(Eo.paint_symbol["text-halo-width"]),"text-halo-blur":new ua(Eo.paint_symbol["text-halo-blur"]),"text-translate":new la(Eo.paint_symbol["text-translate"]),"text-translate-anchor":new la(Eo.paint_symbol["text-translate-anchor"])}),layout:wl},Tl=function(e){this.type=e.property.overrides?e.property.overrides.runtimeType:So,this.defaultValue=e};Tl.prototype.evaluate=function(e){if(e.formattedSection){var t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default},Tl.prototype.eachChild=function(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)},Tl.prototype.possibleOutputs=function(){return[void 0]},Tl.prototype.serialize=function(){return null},rt("FormatSectionOverride",Tl,{omit:["defaultValue"]});var Ol=function(e){function t(t){e.call(this,t,El)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.recalculate=function(t){if(e.prototype.recalculate.call(this,t),"auto"===this.layout.get("icon-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var n=this.layout.get("text-writing-mode");if(n){for(var r=[],o=0,i=n;o<i.length;o+=1){var a=i[o];r.indexOf(a)<0&&r.push(a)}this.layout._values["text-writing-mode"]=r}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},t.prototype.getValueAndResolveTokens=function(e,t){var n=this.layout.get(e).evaluate(t,{}),r=this._unevaluatedLayout._values[e];return r.isDataDriven()||Oe(r.value)?n:function(e,t){return t.replace(/{([^{}]+)}/g,function(t,n){return n in e?String(e[n]):""})}(t.properties,n)},t.prototype.createBucket=function(e){return new xl(e)},t.prototype.queryRadius=function(){return 0},t.prototype.queryIntersectsFeature=function(){return!1},t.prototype._setPaintOverrides=function(){for(var e=0,n=El.paint.overridableProperties;e<n.length;e+=1){var r=n[e];if(t.hasPaintOverride(this.layout,r)){var o=this.paint.get(r),i=new Tl(o),a=new Pi(i,o.property.specification),s=null;s="constant"===o.value.kind||"source"===o.value.kind?new Ri("source",a):new Di("composite",a,o.value.zoomStops,o.value._interpolationType),this.paint._values[r]=new aa(o.property,s,o.parameters)}}},t.prototype._handleOverridablePaintPropertyUpdate=function(e,n,r){return!(!this.layout||n.isDataDriven()||r.isDataDriven())&&t.hasPaintOverride(this.layout,e)},t.hasPaintOverride=function(e,t){var n=e.get("text-field"),r=El.paint.properties[t],o=!1,i=function(e){for(var t=0,n=e;t<n.length;t+=1){var i=n[t];if(r.overrides&&r.overrides.hasOverride(i))return void(o=!0)}};if("constant"===n.value.kind&&n.value.value instanceof Uo)i(n.value.value.sections);else if("source"===n.value.kind){var a=function(e){if(!o)if(e instanceof Vo&&q(e.value)===Lo){var t=e.value;i(t.sections)}else e instanceof Wo?i(e.sections):e.eachChild(a)},s=n.value;s._styleExpression&&a(s._styleExpression.expression)}return o},t.hasPaintOverrides=function(e){for(var n=0,r=El.paint.overridableProperties;n<r.length;n+=1){var o=r[n];if(t.hasPaintOverride(e,o))return!0}return!1},t}(da),Cl={paint:new ha({"background-color":new la(Eo.paint_background["background-color"]),"background-pattern":new pa(Eo.paint_background["background-pattern"]),"background-opacity":new la(Eo.paint_background["background-opacity"])})},Sl=function(e){function t(t){e.call(this,t,Cl)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(da),kl={paint:new ha({"raster-opacity":new la(Eo.paint_raster["raster-opacity"]),"raster-hue-rotate":new la(Eo.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new la(Eo.paint_raster["raster-brightness-min"]),"raster-brightness-max":new la(Eo.paint_raster["raster-brightness-max"]),"raster-saturation":new la(Eo.paint_raster["raster-saturation"]),"raster-contrast":new la(Eo.paint_raster["raster-contrast"]),"raster-resampling":new la(Eo.paint_raster["raster-resampling"]),"raster-fade-duration":new la(Eo.paint_raster["raster-fade-duration"])})},Al=function(e){function t(t){e.call(this,t,kl)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(da),Pl=function(e){function t(t){e.call(this,t,{}),this.implementation=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.is3D=function(){return"3d"===this.implementation.renderingMode},t.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},t.prototype.recalculate=function(){},t.prototype.updateTransitions=function(){},t.prototype.hasTransition=function(){},t.prototype.serialize=function(){},t.prototype.onAdd=function(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)},t.prototype.onRemove=function(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)},t}(da),Rl={circle:Ts,heatmap:As,hillshade:Rs,fill:Fs,"fill-extrusion":Zs,line:nl,symbol
vendor: 4,666 bytes, line 1
1:Ol,background:Sl,raster:Al},Dl=function(e,t){var n=t.pixelRatio,r=t.version;this.paddedRect=e,this.pixelRatio=n,this.version=r},Il={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};Il.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},Il.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},Il.tlbr.get=function(){return this.tl.concat(this.br)},Il.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(Dl.prototype,Il);var Ml=function(e,t){var n={},r={};this.haveRenderCallbacks=[];var o=[];this.addImages(e,n,o),this.addImages(t,r,o);var i=Vn(o),a=i.w,s=i.h,l=new Ss({width:a||1,height:s||1});for(var u in e){var c=e[u],p=n[u].paddedRect;Ss.copy(c.data,l,{x:0,y:0},{x:p.x+1,y:p.y+1},c.data)}for(var f in t){var h=t[f],d=r[f].paddedRect,m=d.x+1,y=d.y+1,g=h.data.width,v=h.data.height;Ss.copy(h.data,l,{x:0,y:0},{x:m,y:y},h.data),Ss.copy(h.data,l,{x:0,y:v-1},{x:m,y:y-1},{width:g,height:1}),Ss.copy(h.data,l,{x:0,y:0},{x:m,y:y+v},{width:g,height:1}),Ss.copy(h.data,l,{x:g-1,y:0},{x:m-1,y:y},{width:1,height:v}),Ss.copy(h.data,l,{x:0,y:0},{x:m+g,y:y},{width:1,height:v})}this.image=l,this.iconPositions=n,this.patternPositions=r};Ml.prototype.addImages=function(e,t,n){for(var r in e){var o=e[r],i={x:0,y:0,w:o.data.width+2,h:o.data.height+2};n.push(i),t[r]=new Dl(i,o),o.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},Ml.prototype.patchUpdatedImages=function(e,t){for(var n in e.dispatchRenderCallbacks(this.haveRenderCallbacks),e.updatedImages)this.patchUpdatedImage(this.iconPositions[n],e.getImage(n),t),this.patchUpdatedImage(this.patternPositions[n],e.getImage(n),t)},Ml.prototype.patchUpdatedImage=function(e,t,n){if(e&&t&&e.version!==t.version){e.version=t.version;var r=e.tl,o=r[0],i=r[1];n.update(t.data,void 0,{x:o,y:i})}},rt("ImagePosition",Dl),rt("ImageAtlas",Ml);var Ll=self.HTMLImageElement,jl=self.HTMLCanvasElement,zl=self.HTMLVideoElement,Fl=self.ImageData,Nl=function(e,t,n,r){this.context=e,this.format=n,this.texture=e.gl.createTexture(),this.update(t,r)};Nl.prototype.update=function(e,t,n){var r=e.width,o=e.height,i=!(this.size&&this.size[0]===r&&this.size[1]===o||n),a=this.context,s=a.gl;if(this.useMipmap=Boolean(t&&t.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),a.pixelStoreUnpackFlipY.set(!1),a.pixelStoreUnpack.set(1),a.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&&(!t||!1!==t.premultiply)),i)this.size=[r,o],e instanceof Ll||e instanceof jl||e instanceof zl||e instanceof Fl?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,e):s.texImage2D(s.TEXTURE_2D,0,this.format,r,o,0,this.format,s.UNSIGNED_BYTE,e.data);else{var l=n||{x:0,y:0},u=l.x,c=l.y;e instanceof Ll||e instanceof jl||e instanceof zl||e instanceof Fl?s.texSubImage2D(s.TEXTURE_2D,0,u,c,s.RGBA,s.UNSIGNED_BYTE,e):s.texSubImage2D(s.TEXTURE_2D,0,u,c,r,o,s.RGBA,s.UNSIGNED_BYTE,e.data)}this.useMipmap&&this.isSizePowerOfTwo()&&s.generateMipmap(s.TEXTURE_2D)},Nl.prototype.bind=function(e,t,n){var r=this.context.gl;r.bindTexture(r.TEXTURE_2D,this.texture),n!==r.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(n=r.LINEAR),e!==this.filter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,n||e),this.filter=e),t!==this.wrap&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,t),this.wrap=t)},Nl.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},Nl.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Bl=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,u=l>>1,c=-7,p=n?o-1:0,f=n?-1:1,h=e[t+p];for(p+=f,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+e[t+p],p+=f,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+p],p+=f,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=u}return(h?-1:1)*a*Math.pow(2,i-r)},Ul=function(e,t,n,r,o,i){var a,s,l,u=8*i-o-1,c=(1<<u)-1,p=c>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+p>=1?f/l:f*Math.pow(2,1-p))*l>=2&&(a++,l/=2),a+p>=c?(s=0,a=c):a+p>=1?(s=(t*l-1)*Math.pow(2,o),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+h]=255&a,h+=d,a/=256,u-=8);e[n+h-d]|=128*m},Vl=Hn;Hn.Varint=0,Hn.Fixed64=1,Hn.Bytes=2,Hn.Fixed32=5,Hn.prototype={de
vendor: 8,102 bytes, line 1
1stroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),o=r>>3,i=this.pos;this.type=7&r,e(o,t,this),this.pos===i&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=nr(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=or(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=nr(this.buf,this.pos)+4294967296*nr(this.buf,this.pos+4);return this.pos+=8,e},readSFixed64:function(){var e=nr(this.buf,this.pos)+4294967296*or(this.buf,this.pos+4);return this.pos+=8,e},readFloat:function(){var e=Bl(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=Bl(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,o,i=n.buf;if(o=i[n.pos++],r=(112&o)>>4,o<128)return Gn(e,r,t);if(o=i[n.pos++],r|=(127&o)<<3,o<128)return Gn(e,r,t);if(o=i[n.pos++],r|=(127&o)<<10,o<128)return Gn(e,r,t);if(o=i[n.pos++],r|=(127&o)<<17,o<128)return Gn(e,r,t);if(o=i[n.pos++],r|=(127&o)<<24,o<128)return Gn(e,r,t);if(o=i[n.pos++],r|=(1&o)<<31,o<128)return Gn(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=function(e,t,n){for(var r="",o=t;o<n;){var i,a,s,l=e[o],u=null,c=l>239?4:l>223?3:l>191?2:1;if(o+c>n)break;1===c?l<128&&(u=l):2===c?128==(192&(i=e[o+1]))&&(u=(31&l)<<6|63&i)<=127&&(u=null):3===c?(i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&((u=(15&l)<<12|(63&i)<<6|63&a)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,r+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),r+=String.fromCharCode(u),o+=c}return r}(this.buf,this.pos,e);return this.pos=e,t},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==Hn.Bytes)return e.push(this.readVarint(t));var n=qn(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==Hn.Bytes)return e.push(this.readSVarint());var t=qn(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==Hn.Bytes)return e.push(this.readBoolean());var t=qn(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==Hn.Bytes)return e.push(this.readFloat());var t=qn(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==Hn.Bytes)return e.push(this.readDouble());var t=qn(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==Hn.Bytes)return e.push(this.readFixed32());var t=qn(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==Hn.Bytes)return e.push(this.readSFixed32());var t=qn(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==Hn.Bytes)return e.push(this.readFixed64());var t=qn(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==Hn.Bytes)return e.push(this.readSFixed64());var t=qn(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===Hn.Varint)for(;this.buf[this.pos++]>127;);else if(t===Hn.Bytes)this.pos=this.readVarint()+this.pos;else if(t===Hn.Fixed32)this.pos+=4;else{if(t!==Hn.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var n=new Uint8Array(t);n.set(this.buf),this.buf=n,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),rr(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),rr(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),rr(this.buf,-1&e,this.pos),rr(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),rr(this.buf,-1&e,this.pos),rr(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var n,r;if(e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos]=127&e}(n,0,t),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var r,o,i=0;i<t.length;i++){if((r=t.charCodeAt(i))>55295&&r<57344){if(!o){r>56319||i+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):o=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,o=r;continue}r=o-55296<<10|r-56320|65536,o=null}else o&&(e[n++]=239,e[n++]=191,e[n++]=189,o=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&Wn(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),Ul(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),Ul(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n<t;n++)this.buf[this.pos++]=e[n]},writeRawMessage:function(e,t){this.pos++;var n=this.pos;e(t,this);var r=this.pos-n;r>=128&&Wn(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,Hn.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,Zn,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,Kn,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,Jn,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,Xn,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,Yn,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,$n,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,Qn,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,er,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,tr,t)},writeBytesField:function(e,t){this.writeTag(e,Hn.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,Hn.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,Hn.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,Hn.Fixed64),this.writeFixed64
1(t)},writeSFixed64Field:function(e,t){this.writeTag(e,Hn.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,Hn.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,Hn.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,Hn.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,Hn.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,Hn.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};var Hl=3,ql=Hl,Gl=function(e){var t=this;this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){t._triggered=!1,t._callback()})};Gl.prototype.trigger=function(){var e=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(function(){e._triggered=!1,e._callback()},0))};var Wl=function(e,t,n){this.target=e,this.parent=t,this.mapId=n,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},f(["receive","process"],this),this.invoker=new Gl(this.process),this.target.addEventListener("message",this.receive,!1)};Wl.prototype.send=function(e,t,n,r){var o=this,i=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(this.callbacks[i]=n);var a=[];return this.target.postMessage({id:i,type:e,hasCallback:!!n,targetMapId:r,sourceMapId:this.mapId,data:ot(t,a)},a),{cancel:function(){n&&delete o.callbacks[i],o.target.postMessage({id:i,type:"<cancel>",targetMapId:r,sourceMapId:o.mapId})}}},Wl.prototype.receive=function(e){var t=e.data,n=t.id;if(n&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){delete this.tasks[n];var r=this.cancelCallbacks[n];delete this.cancelCallbacks[n],r&&r()}else this.tasks[n]=t,this.taskQueue.push(n),this.invoker.trigger()},Wl.prototype.process=function(){var e=this;if(this.taskQueue.length){var t=this.taskQueue.shift(),n=this.tasks[t];if(delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),n)if("<response>"===n.type){var r=this.callbacks[t];delete this.callbacks[t],r&&(n.error?r(it(n.error)):r(null,it(n.data)))}else{var o=!1,i=n.hasCallback?function(n,r){o=!0,delete e.cancelCallbacks[t];var i=[];e.target.postMessage({id:t,type:"<response>",sourceMapId:e.mapId,error:n?ot(n):null,data:ot(r,i)},i)}:function(e){o=!0},a=null,s=it(n.data);if(this.parent[n.type])a=this.parent[n.type](n.sourceMapId,s,i);else if(this.parent.getWorkerSource){var l=n.type.split(".");a=this.parent.getWorkerSource(n.sourceMapId,l[0],s.source)[l[1]](s,i)}else i(new Error("Could not find function "+n.type));!o&&a&&a.cancel&&(this.cancelCallbacks[t]=a.cancel)}}},Wl.prototype.remove=function(){this.target.removeEventListener("message",this.receive,!1)};var Zl=function(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))};Zl.prototype.setNorthEast=function(e){return this._ne=e instanceof Kl?new Kl(e.lng,e.lat):Kl.convert(e),this},Zl.prototype.setSouthWest=function(e){return this._sw=e instanceof Kl?new Kl(e.lng,e.lat):Kl.convert(e),this},Zl.prototype.extend=function(e){var t,n,r=this._sw,o=this._ne;if(e instanceof Kl)t=e,n=e;else{if(!(e instanceof Zl))return Array.isArray(e)?e.every(Array.isArray)?this.extend(Zl.convert(e)):this.extend(Kl.convert(e)):this;if(t=e._sw,n=e._ne,!t||!n)return this}return r||o?(r.lng=Math.min(t.lng,r.lng),r.lat=Math.min(t.lat,r.lat),o.lng=Math.max(n.lng,o.lng),o.lat=Math.max(n.lat,o.lat)):(this._sw=new Kl(t.lng,t.lat),this._ne=new Kl(n.lng,n.lat)),this},Zl.prototype.getCenter=function(){return new Kl((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Zl.prototype.getSouthWest=function(){return this._sw},Zl.prototype.getNorthEast=function(){return this._ne},Zl.prototype.getNorthWest=function(){return new Kl(this.getWest(),this.getNorth())},Zl.prototype.getSouthEast=function(){return new Kl(this.getEast(),this.getSouth())},Zl.prototype.getWest=function(){return this._sw.lng},Zl.prototype.getSouth=function(){return this._sw.lat},Zl.prototype.getEast=function(){return this._ne.lng},Zl.prototype.getNorth=function(){return this._ne.lat},Zl.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Zl.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Zl.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Zl.convert=function(e){return!e||e instanceof Zl?e:new Zl(e)};var Kl=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid LngLat object: ("+e+", "+t+")");if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Kl.prototype.wrap=function(){return new Kl(s(this.lng,-180,180),this.lat)},Kl.prototype.toArray=function(){return[this.lng,this.lat]},Kl.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Kl.prototype.toBounds=function(e){void 0===e&&(e=0);var t=360*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);
1return new Zl(new Kl(this.lng-n,this.lat-t),new Kl(this.lng+n,this.lat+t))},Kl.convert=function(e){if(e instanceof Kl)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Kl(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Kl(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")};var Xl=2*Math.PI*6378137,Yl=function(e,t,n){void 0===n&&(n=0),this.x=+e,this.y=+t,this.z=+n};Yl.fromLngLat=function(e,t){void 0===t&&(t=0);var n=Kl.convert(e);return new Yl(cr(n.lng),pr(n.lat),fr(t,n.lat))},Yl.prototype.toLngLat=function(){return new Kl(360*this.x-180,hr(this.y))},Yl.prototype.toAltitude=function(){return e=this.z,t=this.y,e*ur(hr(t));var e,t},Yl.prototype.meterInMercatorCoordinateUnits=function(){return 1/Xl*(e=hr(this.y),1/Math.cos(e*Math.PI/180));var e};var Jl=function(e,t,n){this.z=e,this.x=t,this.y=n,this.key=dr(0,e,t,n)};Jl.prototype.equals=function(e){return this.z===e.z&&this.x===e.x&&this.y===e.y},Jl.prototype.url=function(e,t){var n,r,o,i,a,s=(n=this.x,r=this.y,o=this.z,i=lr(256*n,256*(r=Math.pow(2,o)-r-1),o),a=lr(256*(n+1),256*(r+1),o),i[0]+","+i[1]+","+a[0]+","+a[1]),l=function(e,t,n){for(var r,o="",i=e;i>0;i--)o+=(t&(r=1<<i-1)?1:0)+(n&r?2:0);return o}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",l).replace("{bbox-epsg-3857}",s)},Jl.prototype.getTilePoint=function(e){var t=Math.pow(2,this.z);return new Ir((e.x*t-this.x)*gs,(e.y*t-this.y)*gs)};var $l=function(e,t){this.wrap=e,this.canonical=t,this.key=dr(e,t.z,t.x,t.y)},Ql=function(e,t,n,r,o){this.overscaledZ=e,this.wrap=t,this.canonical=new Jl(n,+r,+o),this.key=dr(t,e,r,o)};Ql.prototype.equals=function(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)},Ql.prototype.scaledTo=function(e){var t=this.canonical.z-e;return e>this.canonical.z?new Ql(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Ql(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)},Ql.prototype.isChildOf=function(e){if(e.wrap!==this.wrap)return!1;var t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t},Ql.prototype.children=function(e){if(this.overscaledZ>=e)return[new Ql(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var t=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new Ql(t,this.wrap,t,n,r),new Ql(t,this.wrap,t,n+1,r),new Ql(t,this.wrap,t,n,r+1),new Ql(t,this.wrap,t,n+1,r+1)]},Ql.prototype.isLessThan=function(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))},Ql.prototype.wrapped=function(){return new Ql(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Ql.prototype.unwrapTo=function(e){return new Ql(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)},Ql.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Ql.prototype.toUnwrapped=function(){return new $l(this.wrap,this.canonical)},Ql.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},Ql.prototype.getTilePoint=function(e){return this.canonical.getTilePoint(new Yl(e.x-this.wrap,e.y))},rt("CanonicalTileID",Jl),rt("OverscaledTileID",Ql,{omit:["posMatrix"]});var eu=function(e,t,n){if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return g('"'+n+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');var r=this.dim=t.height;this.stride=this.dim+2,this.data=new Int32Array(this.stride*this.stride);for(var o=t.data,i="terrarium"===n?this._unpackTerrarium:this._unpackMapbox,a=0;a<r;a++)for(var s=0;s<r;s++){var l=4*(a*r+s);this.set(s,a,i(o[l],o[l+1],o[l+2]))}for(var u=0;u<r;u++)this.set(-1,u,this.get(0,u)),this.set(r,u,this.get(r-1,u)),this.set(u,-1,this.get(u,0)),this.set(u,r,this.get(u,r-1));this.set(-1,-1,this.get(0,0)),this.set(r,-1,this.get(r-1,0)),this.set(-1,r,this.get(0,r-1)),this.set(r,r,this.get(r-1,r-1))};eu.prototype.set=function(e,t,n){this.data[this._idx(e,t)]=n+65536},eu.prototype.get=function(e,t){return this.data[this._idx(e,t)]-65536},eu.prototype._idx=function(e,t){if(e<-1||e>=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)},eu.prototype._unpackMapbox=function(e,t,n){return(256*e*256+256*t+n)/10-1e4},eu.prototype._unpackTerrarium=function(e,t,n){return 256*e+t+n/256-32768},eu.prototype.getPixels=function(){return new Ss({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},eu.prototype.backfillBorder=function(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");var r=t*this.dim,o=t*this.dim+this.dim,i=n*this.dim,a=n*this.dim+this.dim;switch(t){case-1:r=o-1;break;case 1:o=r+1}switch(n){case-1:i=a-1;break;case 1:a=i+1}for(var s=-t*this.dim,l=-n*this.dim,u=i;u<a;u++)for(var c=r;c<o;c++)this.set(c,u,e.get(c+s,u+l))},rt("DEMData",eu);var tu=pt([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),nu=function(e){this._stringToNumber={},this._numberToString=[];for(var t=0;t<e.length;t++){var n=e[t];this._stringToNumber[n]=t,this._numberToString[t]=n}};nu.prototype.encode=function(e){return this._stringToNumber[e]},nu.prototype.decode=function(e){return this._numberToString[e]};var ru=function(e,t,n,r){this.type="Feature",this._vectorTileFeature=e,e._z=t,e._x=n,e._y=r,this.properties=e.properties,null!=e.id&&
1(this.id=e.id)},ou={geometry:{configurable:!0}};ou.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},ou.geometry.set=function(e){this._geometry=e},ru.prototype.toJSON=function(){var e={geometry:this.geometry};for(var t in this)"_geometry"!==t&&"_vectorTileFeature"!==t&&(e[t]=this[t]);return e},Object.defineProperties(ru.prototype,ou);var iu=function(){this.state={},this.stateChanges={},this.deletedStates={}};iu.prototype.updateState=function(e,t,n){var r=String(t);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][r]=this.stateChanges[e][r]||{},l(this.stateChanges[e][r],n),null===this.deletedStates[e])for(var o in this.deletedStates[e]={},this.state[e])o!==r&&(this.deletedStates[e][o]=null);else if(this.deletedStates[e]&&null===this.deletedStates[e][r])for(var i in this.deletedStates[e][r]={},this.state[e][r])n[i]||(this.deletedStates[e][r][i]=null);else for(var a in n)this.deletedStates[e]&&this.deletedStates[e][r]&&null===this.deletedStates[e][r][a]&&delete this.deletedStates[e][r][a]},iu.prototype.removeFeatureState=function(e,t,n){if(null!==this.deletedStates[e]){var r=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},n&&void 0!==t&&t>=0)null!==this.deletedStates[e][r]&&(this.deletedStates[e][r]=this.deletedStates[e][r]||{},this.deletedStates[e][r][n]=null);else if(void 0!==t&&t>=0)if(this.stateChanges[e]&&this.stateChanges[e][r])for(n in this.deletedStates[e][r]={},this.stateChanges[e][r])this.deletedStates[e][r][n]=null;else this.deletedStates[e][r]=null;else this.deletedStates[e]=null}},iu.prototype.getState=function(e,t){var n=String(t),r=this.state[e]||{},o=this.stateChanges[e]||{},i=l({},r[n],o[n]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){var a=this.deletedStates[e][t];if(null===a)return{};for(var s in a)delete i[s]}return i},iu.prototype.initializeTileState=function(e,t){e.setFeatureState(this.state,t)},iu.prototype.coalesceChanges=function(e,t){var n={};for(var r in this.stateChanges){this.state[r]=this.state[r]||{};var o={};for(var i in this.stateChanges[r])this.state[r][i]||(this.state[r][i]={}),l(this.state[r][i],this.stateChanges[r][i]),o[i]=this.state[r][i];n[r]=o}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 p=0,f=Object.keys(this.deletedStates[a][c]);p<f.length;p+=1){var h=f[p];delete this.state[a][c][h]}s[c]=this.state[a][c]}n[a]=n[a]||{},l(n[a],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(var d in e)e[d].setFeatureState(n,t)};var au=function(e,t,n){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=t||new Bi(gs,16,0),this.grid3D=new Bi(gs,16,0),this.featureIndexArray=n||new Ya};au.prototype.insert=function(e,t,n,r,o,i){var a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,o);for(var s=i?this.grid3D:this.grid,l=0;l<t.length;l++){for(var u=t[l],c=[1/0,1/0,-1/0,-1/0],p=0;p<u.length;p++){var f=u[p];c[0]=Math.min(c[0],f.x),c[1]=Math.min(c[1],f.y),c[2]=Math.max(c[2],f.x),c[3]=Math.max(c[3],f.y)}c[0]<gs&&c[1]<gs&&c[2]>=0&&c[3]>=0&&s.insert(a,c[0],c[1],c[2],c[3])}},au.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Vs.VectorTile(new Vl(this.rawTileData)).layers,this.sourceLayerCoder=new nu(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},au.prototype.query=function(e,t,n){var r=this;this.loadVTLayers();for(var o=e.params||{},i=gs/e.tileSize/e.scale,a=Le(o.filter),s=e.queryGeometry,l=e.queryPadding*i,u=mr(s),c=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),p=mr(e.cameraQueryGeometry),f=this.grid3D.query(p.minX-l,p.minY-l,p.maxX+l,p.maxY+l,function(t,n,r,o){return function(e,t,n,r,o){for(var i=0,a=e;i<a.length;i+=1){var s=a[i];if(t<=s.x&&n<=s.y&&r>=s.x&&o>=s.y)return!0}var l=[new Ir(t,n),new Ir(t,o),new Ir(r,o),new Ir(r,n)];if(e.length>2)for(var u=0,c=l;u<c.length;u+=1)if(At(e,c[u]))return!0;for(var p=0;p<e.length-1;p++)if(Pt(e[p],e[p+1],l))return!0;return!1}(e.cameraQueryGeometry,t-l,n-l,r+l,o+l)}),h=0,d=f;h<d.length;h+=1){var m=d[h];c.push(m)}c.sort(yr);for(var y,g={},v=0;v<c.length;v++)!function(l){var u=c[l];if(u!==y){y=u;var p=r.featureIndexArray.get(u),f=null;
1r.loadMatchingFeature(g,p.bucketIndex,p.sourceLayerIndex,p.featureIndex,a,o.layers,t,function(t,o){f||(f=vt(t));var a={};return t.id&&(a=n.getState(o.sourceLayer||"_geojsonTileLayer",t.id)),o.queryIntersectsFeature(s,t,a,f,r.z,e.transform,i,e.pixelPosMatrix)})}}(v);return g},au.prototype.loadMatchingFeature=function(e,t,n,r,o,i,a,s){var l=this.bucketLayerIDs[t];if(!i||function(e,t){for(var n=0;n<e.length;n++)if(t.indexOf(e[n])>=0)return!0;return!1}(i,l)){var u=this.sourceLayerCoder.decode(n),c=this.vtLayers[u].feature(r);if(o(new Qi(this.tileID.overscaledZ),c))for(var p=0;p<l.length;p++){var f=l[p];if(!(i&&i.indexOf(f)<0)){var h=a[f];if(h){var d=!s||s(c,h);if(d){var m=new ru(c,this.z,this.x,this.y);m.layer=h.serialize();var y=e[f];void 0===y&&(y=e[f]=[]),y.push({featureIndex:r,feature:m,intersectionZ:d})}}}}}},au.prototype.lookupSymbolFeatures=function(e,t,n,r,o,i){var a={};this.loadVTLayers();for(var s=Le(r),l=0,u=e;l<u.length;l+=1){var c=u[l];this.loadMatchingFeature(a,t,n,c,s,o,i)}return a},au.prototype.hasLayer=function(e){for(var t=0,n=this.bucketLayerIDs;t<n.length;t+=1)for(var r=0,o=n[t];r<o.length;r+=1)if(e===o[r])return!0;return!1},rt("FeatureIndex",au,{omit:["rawTileData","sourceLayerCoder"]});var su=function(e,t){this.tileID=e,this.uid=u(),this.uses=0,this.tileSize=t,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.expiredRequestCount=0,this.state="loading"};su.prototype.registerFadeDuration=function(e){var t=e+this.timeAdded;t<qr.now()||this.fadeEndTime&&t<this.fadeEndTime||(this.fadeEndTime=t)},su.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},su.prototype.loadVectorData=function(e,t,n){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",e){for(var r in e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestFeatureIndex.rawTileData=e.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=function(e,t){var n={};if(!t)return n;for(var r=0,o=e;r<o.length;r+=1)!function(){var e=o[r],i=e.layerIds.map(function(e){return t.getLayer(e)}).filter(Boolean);if(0!==i.length){e.layers=i,e.stateDependentLayerIds&&(e.stateDependentLayers=e.stateDependentLayerIds.map(function(e){return i.filter(function(t){return t.id===e})[0]}));for(var a=0,s=i;a<s.length;a+=1){var l=s[a];n[l.id]=e}}}();return n}(e.buckets,t.style),this.hasSymbolBuckets=!1,this.buckets){var o=this.buckets[r];if(o instanceof xl){if(this.hasSymbolBuckets=!0,!n)break;o.justReloaded=!0}}for(var i in this.queryPadding=0,this.buckets){var a=this.buckets[i];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(i).queryRadius(a))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage)}else this.collisionBoxArray=new Ba},su.prototype.unloadVectorData=function(){for(var e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"},su.prototype.unloadDEMData=function(){this.dem=null,this.neighboringTiles=null,this.state="unloaded"},su.prototype.getBucket=function(e){return this.buckets[e.id]},su.prototype.upload=function(e){for(var t in this.buckets){var n=this.buckets[t];n.uploadPending()&&n.upload(e)}var r=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Nl(e,this.imageAtlas.image,r.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Nl(e,this.glyphAtlasImage,r.ALPHA),this.glyphAtlasImage=null)},su.prototype.prepare=function(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)},su.prototype.queryRenderedFeatures=function(e,t,n,r,o,i,a,s,l){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:r,scale:o,tileSize:this.tileSize,pixelPosMatrix:l,transform:a,params:i,queryPadding:this.queryPadding*s},e,t):{}},su.prototype.querySourceFeatures=function(e,t){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData){var n=this.latestFeatureIndex.loadVTLayers(),r=t?t.sourceLayer:"",o=n._geojsonTileLayer||n[r];if(o)for(var i=Le(t&&t.filter),a=this.tileID.canonical,s=a.z,l=a.x,u=a.y,c={z:s,x:l,y:u},p=0;p<o.length;p++){var f=o.feature(p);
1if(i(new Qi(this.tileID.overscaledZ),f)){var h=new ru(f,s,l,u);h.tile=c,e.push(h)}}}},su.prototype.clearMask=function(){this.segments&&(this.segments.destroy(),delete this.segments),this.maskedBoundsBuffer&&(this.maskedBoundsBuffer.destroy(),delete this.maskedBoundsBuffer),this.maskedIndexBuffer&&(this.maskedIndexBuffer.destroy(),delete this.maskedIndexBuffer)},su.prototype.setMask=function(e,t){if(!o(this.mask,e)&&(this.mask=e,this.clearMask(),!o(e,{0:!0}))){var n=new _a,r=new Ma;this.segments=new $a,this.segments.prepareSegment(0,n,r);for(var i=Object.keys(e),a=0;a<i.length;a++){var s=e[+i[a]],l=gs>>s.z,u=new Ir(s.x*l,s.y*l),c=new Ir(u.x+l,u.y+l),p=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 f=p.vertexLength;r.emplaceBack(f,f+1,f+2),r.emplaceBack(f+1,f+2,f+3),p.vertexLength+=4,p.primitiveLength+=2}this.maskedBoundsBuffer=t.createVertexBuffer(n,tu.members),this.maskedIndexBuffer=t.createIndexBuffer(r)}},su.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},su.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},su.prototype.setExpiryData=function(e){var t=this.expirationTime;if(e.cacheControl){var n=b(e.cacheControl);n["max-age"]&&(this.expirationTime=Date.now()+1e3*n["max-age"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){var r=Date.now(),o=!1;if(this.expirationTime>r)o=!1;else if(t)if(this.expirationTime<t)o=!0;else{var i=this.expirationTime-t;i?this.expirationTime=r+Math.max(i,3e4):o=!0}else o=!0;o?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},su.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},su.prototype.setFeatureState=function(e,t){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&0!==Object.keys(e).length){var n=this.latestFeatureIndex.loadVTLayers();for(var r in this.buckets){var o=this.buckets[r],i=o.layers[0].sourceLayer||"_geojsonTileLayer",a=n[i],s=e[i];a&&s&&0!==Object.keys(s).length&&(o.update(s,a,this.imageAtlas&&this.imageAtlas.patternPositions||{}),t&&t.style&&(this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(r).queryRadius(o))))}}},su.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},su.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<qr.now()},su.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},su.prototype.setHoldDuration=function(e){this.symbolFadeHoldUntil=qr.now()+e};var lu=function(e,t,n,r,o,i,a,s,l,u,c,p){var f=a.top*s-l,h=a.bottom*s+l,d=a.left*s-l,m=a.right*s+l;if(this.boxStartIndex=e.length,u){var y=h-f,g=m-d;y>0&&(y=Math.max(10*s,y),this._addLineCollisionCircles(e,t,n,n.segment,g,y,r,o,i,c))}else{if(p){var v=new Ir(d,f),_=new Ir(m,f),b=new Ir(d,h),x=new Ir(m,h),w=p*Math.PI/180;v._rotate(w),_._rotate(w),b._rotate(w),x._rotate(w),d=Math.min(v.x,_.x,b.x,x.x),m=Math.max(v.x,_.x,b.x,x.x),f=Math.min(v.y,_.y,b.y,x.y),h=Math.max(v.y,_.y,b.y,x.y)}e.emplaceBack(n.x,n.y,d,f,m,h,r,o,i,0,0)}this.boxEndIndex=e.length};lu.prototype._addLineCollisionCircles=function(e,t,n,r,o,i,a,s,l,u){var c=i/2,p=Math.floor(o/c)||1,f=1+.4*Math.log(u)/Math.LN2,h=Math.floor(p*f/2),d=-i/2,m=n,y=r+1,g=d,v=-o/2,_=v-o/4;do{if(--y<0){if(g>v)return;y=0;break}g-=t[y].dist(m),m=t[y]}while(g>_);for(var b=t[y].dist(t[y+1]),x=-h;x<p+h;x++){var w=x*c,E=v+w;if(w<0&&(E+=w),w>o&&(E+=w-o),!(E<g)){for(;g+b<E;){if(g+=b,++y+1>=t.length)return;b=t[y].dist(t[y+1])}var T=E-g,O=t[y],C=t[y+1].sub(O)._unit()._mult(T)._add(O)._round(),S=Math.abs(E-d)<c?0:.8*(E-d);e.emplaceBack(C.x,C.y,-i/2,-i/2,i/2,i/2,a,s,l,i/2,S)}}};var uu=function(e,t){if(void 0===e&&(e=[]),void 0===t&&(t=Er),this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)};uu.prototype.push=function(e){this.data.push(e),this.length++,this._up(this.length-1)},uu.prototype.pop=function(){if(0!==this.length){var e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}},uu.prototype.peek=function(){return this.data[0]},uu.prototype._up=function(e){for(var t=this.data,n=this.compare,r=t[e];e>0;){var o=e-1>>1,i=t[o];if(n(r,i)>=0)break;t[e]=i,e=o}t[e]=r},uu.prototype._down=function(e){for(var t=this.data,n=this.compare,r=this.length>>1,o=t[e];e<r;){var i=1+(e<<1),a=t[i],s=i+1;if(s<this.length&&n(t[s],a)<0&&(i=s,a=t[s]),n(a,o)>=0)break;t[e]=a,e=i}t[e]=o};var cu=t(function(e){e.exports=function(e,t){var n,r,o,i,a,s,l,u;for(n=3&e.length,r=e.length-n,o=t,a=3432918353,s=461845907,u=0;u<r;)l=255&e.charCodeAt(u)|(255&e.charCodeAt(++u))<<8|(255&e.charCodeAt(++u))<<16|(255&e.charCodeAt(++u))<<24,++u,o=27492+(65535&(i=5*(65535&(o=(o^=l=(65535&(l=(l=(65535&l)*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(i>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&e.charCodeAt(u+2))<<16;case 2:l^=(255&e.charCodeAt(u+1))<<8;case 1:o^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(u)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}
1return o^=e.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0}}),pu=t(function(e){e.exports=function(e,t){for(var n,r=e.length,o=t^r,i=0;r>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(n>>>16)&65535)<<16),o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++i;switch(r){case 3:o^=(255&e.charCodeAt(i+2))<<16;case 2:o^=(255&e.charCodeAt(i+1))<<8;case 1:o=1540483477*(65535&(o^=255&e.charCodeAt(i)))+((1540483477*(o>>>16)&65535)<<16)}return o=1540483477*(65535&(o^=o>>>13))+((1540483477*(o>>>16)&65535)<<16),(o^=o>>>15)>>>0}}),fu=cu,hu=cu,du=pu;fu.murmur3=hu,fu.murmur2=du;var mu=7,yu=65535;e.Actor=Wl,e.AlphaImage=Cs,e.CanonicalTileID=Jl,e.CollisionBoxArray=Ba,e.Color=Fo,e.DEMData=eu,e.DataConstantProperty=la,e.DictionaryCoder=nu,e.EXTENT=gs,e.ErrorEvent=xo,e.EvaluationParameters=Qi,e.Event=bo,e.Evented=wo,e.FeatureIndex=au,e.FillBucket=Ls,e.FillExtrusionBucket=Gs,e.ImageAtlas=Ml,e.ImagePosition=Dl,e.LineBucket=$s,e.LngLat=Kl,e.LngLatBounds=Zl,e.MercatorCoordinate=Yl,e.ONE_EM=ul,e.OverscaledTileID=Ql,e.Point=Ir,e.Point$1=Ir,e.ProgramConfiguration=ds,e.Properties=ha,e.Protobuf=Vl,e.RGBAImage=Ss,e.RequestManager=Xr,e.ResourceType=co,e.SegmentVector=$a,e.SourceFeatureState=iu,e.StructArrayLayout1ui2=ja,e.StructArrayLayout2i4=va,e.StructArrayLayout2ui4=La,e.StructArrayLayout3ui6=Ma,e.StructArrayLayout4i8=_a,e.SymbolBucket=xl,e.Texture=Nl,e.Tile=su,e.Transitionable=na,e.Uniform1f=ns,e.Uniform1i=ts,e.Uniform2f=rs,e.Uniform3f=os,e.Uniform4f=is,e.UniformColor=as,e.UniformMatrix4f=ls,e.UnwrappedTileID=$l,e.ValidationError=To,e.WritingMode=cl,e.ZoomHistory=Gi,e.addDynamicAttributes=Un,e.asyncAll=function(e,t,n){if(!e.length)return n(null,[]);var r=e.length,o=new Array(e.length),i=null;e.forEach(function(e,a){t(e,function(e,t){e&&(i=e),o[a]=t,0==--r&&n(i,o)})})},e.bezier=i,e.bindAll=f,e.browser=qr,e.cacheEntryPossiblyAdded=function(e){++uo>so&&(e.getActor().send("enforceCacheSizeLimit",ao),uo=0)},e.clamp=a,e.clearTileCache=function(e){var t=self.caches.delete(io);e&&t.catch(e).then(function(){return e()})},e.clone=function(e){var t=new ws(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.clone$1=y,e.config=Gr,e.create=function(){var e=new ws(16);return ws!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},e.create$1=function(){var e=new ws(9);return ws!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e},e.create$2=function(){var e=new ws(4);return ws!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e},e.createCommonjsModule=t,e.createExpression=Ce,e.createLayout=pt,e.createStyleLayer=function(e){return"custom"===e.type?new Pl(e):new Rl[e.type](e)},e.deepEqual=o,e.ease=Fr,e.emitValidationErrors=tt,e.endsWith=h,e.enforceCacheSizeLimit=function(e){self.caches&&self.caches.open(io).then(function(t){t.keys().then(function(n){for(var r=0;r<n.length-e;r++)t.delete(n[r])})})},e.evaluateRadialOffset=Sr,e.evaluateSizeForFeature=Fn,e.evaluateSizeForZoom=Nn,e.evented=Ji,e.extend=l,e.featureFilter=Le,e.filterObject=m,e.fromRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},e.getAnchorAlignment=Ln,e.getAnchorJustification=kr,e.getArrayBuffer=go,e.getImage=_o,e.getJSON=function(e,t){return yo(l(e,{type:"json"}),t)},e.getReferrer=mo,e.getVideo=function(e,t){var n,r,o=self.document.createElement("video");o.muted=!0,o.onloadstart=function(){t(null,o)};for(var i=0;i<e.length;i++){var a=self.document.createElement("source");n=e[i],r=void 0,(r=self.document.createElement("a")).href=n,(r.protocol!==self.document.location.protocol||r.host!==self.document.location.host)&&(o.crossOrigin="Anonymous"),a.src=e[i],o.appendChild(a)}return{cancel:function(){}}},e.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10
1]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},e.invert=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=t[6],u=t[7],c=t[8],p=t[9],f=t[10],h=t[11],d=t[12],m=t[13],y=t[14],g=t[15],v=n*s-r*a,_=n*l-o*a,b=n*u-i*a,x=r*l-o*s,w=r*u-i*s,E=o*u-i*l,T=c*m-p*d,O=c*y-f*d,C=c*g-h*d,S=p*y-f*m,k=p*g-h*m,A=f*g-h*y,P=v*A-_*k+b*S+x*C-w*O+E*T;return P?(P=1/P,e[0]=(s*A-l*k+u*S)*P,e[1]=(o*k-r*A-i*S)*P,e[2]=(m*E-y*w+g*x)*P,e[3]=(f*w-p*E-h*x)*P,e[4]=(l*C-a*A-u*O)*P,e[5]=(n*A-o*C+i*O)*P,e[6]=(y*b-d*E-g*_)*P,e[7]=(c*E-f*b+h*_)*P,e[8]=(a*k-s*C+u*T)*P,e[9]=(r*C-n*k-i*T)*P,e[10]=(d*w-m*b+g*v)*P,e[11]=(p*b-c*w-h*v)*P,e[12]=(s*O-a*S-l*T)*P,e[13]=(n*S-r*O+o*T)*P,e[14]=(m*_-d*x-y*v)*P,e[15]=(c*x-p*_+f*v)*P,e):null},e.isChar=Zi,e.isMapboxURL=E,e.keysDifference=function(e,t){var n=[];for(var r in e)r in t||n.push(r);return n},e.makeRequest=yo,e.mapObject=d,e.mercatorXfromLng=cr,e.mercatorYfromLat=pr,e.mercatorZfromAltitude=fr,e.multiply=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],p=t[8],f=t[9],h=t[10],d=t[11],m=t[12],y=t[13],g=t[14],v=t[15],_=n[0],b=n[1],x=n[2],w=n[3];return e[0]=_*r+b*s+x*p+w*m,e[1]=_*o+b*l+x*f+w*y,e[2]=_*i+b*u+x*h+w*g,e[3]=_*a+b*c+x*d+w*v,_=n[4],b=n[5],x=n[6],w=n[7],e[4]=_*r+b*s+x*p+w*m,e[5]=_*o+b*l+x*f+w*y,e[6]=_*i+b*u+x*h+w*g,e[7]=_*a+b*c+x*d+w*v,_=n[8],b=n[9],x=n[10],w=n[11],e[8]=_*r+b*s+x*p+w*m,e[9]=_*o+b*l+x*f+w*y,e[10]=_*i+b*u+x*h+w*g,e[11]=_*a+b*c+x*d+w*v,_=n[12],b=n[13],x=n[14],w=n[15],e[12]=_*r+b*s+x*p+w*m,e[13]=_*o+b*l+x*f+w*y,e[14]=_*i+b*u+x*h+w*g,e[15]=_*a+b*c+x*d+w*v,e},e.mvt=Vs,e.number=Y,e.ortho=function(e,t,n,r,o,i,a){var s=1/(t-n),l=1/(r-o),u=1/(i-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+n)*s,e[13]=(o+r)*l,e[14]=(a+i)*u,e[15]=1,e},e.parseGlyphPBF=function(e){return new Vl(e).readFields(ir,[])},e.pbf=Vl,e.performSymbolLayout=function(e,t,n,r,o,i){e.createArrays();var a=512*e.overscaling;e.tilePixelRatio=gs/a,e.compareText={},e.iconsNeedLinear=!1;var s=e.layers[0].layout,l=e.layers[0]._unevaluatedLayout._values,u={};if("composite"===e.textSizeData.kind){var c=e.textSizeData,p=c.minZoom,f=c.maxZoom;u.compositeTextSizes=[l["text-size"].possiblyEvaluate(new Qi(p)),l["text-size"].possiblyEvaluate(new Qi(f))]}if("composite"===e.iconSizeData.kind){var h=e.iconSizeData,d=h.minZoom,m=h.maxZoom;u.compositeIconSizes=[l["icon-size"].possiblyEvaluate(new Qi(d)),l["icon-size"].possiblyEvaluate(new Qi(m))]}u.layoutTextSize=l["text-size"].possiblyEvaluate(new Qi(e.zoom+1)),u.layoutIconSize=l["icon-size"].possiblyEvaluate(new Qi(e.zoom+1)),u.textMaxSize=l["text-size"].possiblyEvaluate(new Qi(18));for(var y=s.get("text-line-height")*ul,v="map"===s.get("text-rotation-alignment")&&"point"!==s.get("symbol-placement"),_=s.get("text-keep-upright"),b=0,x=e.features;b<x.length;b+=1)!function(){var i=x[b],a=s.get("text-font").evaluate(i,{}).join(","),l=n,c={horizontal:{},vertical:void 0},p=i.text,f=[0,0];if(p){var h=p.toString(),d=s.get("text-letter-spacing").evaluate(i,{})*ul,m=function(e){for(var t=0,n=e;t<n.length;t+=1)if(!st(n[t].charCodeAt(0)))return!1;return!0}(h)?d:0,w=s.get("text-anchor").evaluate(i,{}),E=s.get("text-variable-anchor"),T=s.get("text-radial-offset").evaluate(i,{});E||(f=T?Sr(w,T*ul):s.get("text-offset").evaluate(i,{}).map(function(e){return e*ul}));var O=v?"center":s.get("text-justify").evaluate(i,{}),C="point"===s.get("symbol-placement")?s.get("text-max-width").evaluate(i,{})*ul:0,S=function(){e.allowVerticalPlacement&&at(h)&&(c.vertical=Pn(p,t,a,C,y,w,"left",m,f,cl.vertical,!0))};if(!v&&E){for(var k="auto"===O?E.map(function(e){return kr(e)}):[O],A=!1,P=0;P<k.length;P++){var R=k[P];if(!c.horizontal[R])if(A)c.horizontal[R]=c.horizontal[0];else{var D=Pn(p,t,a,C,y,"center",R,m,f,cl.horizontal,!1);D&&(c.horizontal[R]=D,A=1===D.lineCount)}}S()}else{"auto"===O&&(O=kr(w));var I=Pn(p,t,a,C,y,w,O,m,f,cl.horizontal,!1);I&&(c.horizontal[O]=I),S(),at(h)&&v&&_&&(c.vertical=Pn(p,t,a,C,y,w,O,m,f,cl.vertical,!1))}}var M=void 0;if(i.icon){var L=r[i.icon];L&&(M=function(e,t,n){var r=Ln(n),o=r.horizontalAlign,i=r.verticalAlign,a=t[0],s=t[1],l=a-e.displaySize[0]*o,u=l+e.displaySize[0],c=s-e.displaySize[1]*i;return{image:e,top:c,bottom:c+e.displaySize[1],left:l,right:u}}(o[i.icon],s.get("icon-offset").evaluate(i,{}),s.get("icon-anchor").evaluate(i,{})),void 0===e.sdfIcons?e.sdfIcons=L.sdf:e.sdfIcons!==L.sdf&&g("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),L.pixelRatio!==e.pixelRatio?e.iconsNeedLinear=!0:0!==s.get("icon-rotate").constantOr(1)&&(e.iconsNeedLinear=!0))}(Object.keys(c.horizontal).length||M)&&function(e,t,n,r,o,i,a){var s=i.layoutTextSize.evaluate(t,{}),l=i.layoutIconSize.evaluate(t,{}),u=i.textMaxSize.evaluate(t,{});void 0===u&&(u=s);var c=e.layers[0].layout,p=c.get("icon-offset").evaluate(t,{}),f=Pr(n.horizontal),h=s/24,d=e.tilePixelRatio*h,m=e.tilePixelRatio*u/24,y=e.tilePixelRatio*l,v=e.tilePixelRatio*c.get("symbol-spacing"),_=c.get("text-padding")*e.tilePixelRatio,b=c.get("icon-padding")*e.tilePixelRatio,x=c.get("text-max-angle")/180*Math.PI,w="map"===c.get("text-rotation-alignment")&&"point"!==c.get("symbol-placement"),E="map"===c.get("icon-rotation-alignment")&&"point"!==c.get("symbol-placement"),T=c.get("symbol-placement"),O=v/2,C=function(s,l){l.x<0||l.x>=gs||l.y<0||l.y>=gs||function(e,t,n,r,o,i,a,s,l,u,c,p,f,h,d,m,y,v,_,b,x){var w,E,T,O=e.addToLineVertexArray(t,n),C=0,S=0,k=0,A={},P=fu(""),R=(i.layout.get("text-radial-offset").evaluate(_,{})||0)*ul;if(e.allowVerticalPlacement&&r.vertical){var D=i.layout.get("text-rotate").evaluate(_,{})+90,I=r.vertical;T=new lu(a,n,t,s,l,u,I,c,p,f,e.overscaling,D)}for(var M in r.horizontal){var L=r.horizontal[M];if(!w){P=fu(L.text);var j=i.layout.get("text-rotate").evaluate(_,{});w=new lu(a,n,t,s,l,u,L,c,p,f,e.overscaling,j)}var z=1===L.lineCount;if(S+=Ar(e,t,L,i,f,_,h,O,r.vertical?cl.horizontal:cl.horizontalOnly,z?Object.keys(r.horizontal):[M],A,b,x),z)break}r.vertical&&(k+=Ar(e,t,r.vertical,i,f,_,h,O,cl.vertical,["vertical"],A,b,x));var F=w?w.boxStartIndex:e.collisionBoxArray.length,N=w?w.boxEndIndex:e.collisionBoxArray.length,B=T?T.boxStartIndex:e.collisionBoxArray.length,U=T?T.boxEndIndex:e.collisionBoxArray.length;if(o){var V=function(e,t,n,r,o,i){var a,s,l,u,c=t.image,p=n.layout,f=t.top-1/c.pixelRatio,h=t.left-1/c.pixelRatio,d=t.bottom+1/c.pixelRatio,m=t.right+1/c.pixelRatio;if("none"!==p.get("icon-text-fit")&&o){var y=m-h,g=d-f,v=p.get("text-size").evaluate(i,{})/24,_=o.left*v,b=o.right*v,x=o.top*v,w=b-_,E=o.bottom*v-x,T=p.get("icon-text-fit-padding")[0],O=p.get("icon-text-fit-padding")[1],C=p.get("icon-text-fit-padding")[2],S=p.get("icon-text-fit-padding")[3],k="width"===p.get("icon-text-fit")?.5*(E-g):0,A="height"===p.get("icon-text-fit")?.5*(w-y):0,P="width"===p.get("icon-text-fit")||"both"===p.get("icon-text-fit")?w:y,R="height"===p.get("icon-text-fit")||"both"===p.get("icon-text-fit")?E:g;a=new Ir(_+A-S,x+k-T),s=new Ir(_+A+O+P,x+k-T),l=new Ir(_+A+O+P,x+k+C+R),u=new Ir(_+A-S,x+k+C+R)}else a=new Ir(h,f),s=new Ir(m,f),l=new Ir(m,d),u=new Ir(h,d);var D=n.layout.get("icon-rotate").evaluate(i,{})*Math.PI/180;if(D){var I=Math.sin(D),M=Math.cos(D),L=[M,-I,I,M];a._matMult(L),s._matMult(L),u._matMult(L),l._matMult(L)}return[{tl:a,tr:s,bl:u,br:l,tex:c.paddedRect,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0}]}(0,o,i,0,Pr(r.horizontal),_),H=i.layout.get("icon-rotate").evaluate(_,{});E=new lu(a,n,t,s,l,u,o,d,m,!1,e.overscaling,H),C=4*V.length;var q=e.iconSizeData,G=null;"source"===q.kind?(G=[ml*i.layout.get("icon-size").evaluate(_,{})])[0]>yu&&g(e.layerIds[0]+': Value for "icon-size" is >= 256. Reduce your "icon-size".'):"composite"===q.kind&&((G=[ml*x.compositeIconSizes[0].evaluate(_,{}),ml*x.compositeIconSizes[1].evaluate(_,{})])[0]>yu||G[1]>yu)&&g(e.layerIds[0]+': Value for "icon-size" is >= 256. Reduce your "icon-size".'),e.addSymbols(e.icon,V,G,v,y,_,!1,t,O.lineStartIndex,O.lineLength)}var W=E?E.boxStartIndex:e.collisionBoxArray.length,Z=E?E.boxEndIndex:e.collisionBoxArray.length;e.glyphOffsetArray.length>=xl.MAX_GLYPHS&&g("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),e.symbolInstances.emplaceBack(t.x,t.y,A.right>=0?A.right:-1,A.center>=0?A.center:-1,A.left>=0?A.left:-1,A.vertical||-1,P,F,N,B,U,W,Z,s,S,k,C,0,c,R)}(e,l,s,n,r,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,d,_,w,a,y,b,E,p,t,o,i)};if("line"===T)for(var S=0,k=function(e,t,n,r,o){for(var i=[],a=0;a<e.length;a++)for(var s=e[a],l=void 0,u=0;u<s.length-1;u++){var c=s[u],p=s[u+1];c.x<0&&p.x<0||(c.x<0?c=new Ir(0,c.y+(p.y-c.y)*((0-c.x)/(p.x-c.x)))._round():p.x<0&&(p=new Ir(0,c.y+(p.y-c.y)*((0-c.x)/(p.x-c.x)))._round()),c.y<0&&p.y<0||(c.y<0?c=new Ir(c.x+(p.x-c.x)*((0-c.y)/(p.y-c.y)),0)._round():p.y<0&&(p=new Ir(c.x+(p.x-c.x)*((0-c.y)/(p.y-c.y)),0)._round()),c.x>=r&&p.x>=r||(c.x>=r?c=new Ir(r,c.y+(p.y-c.y)*((r-c.x)/(p.x-c.x)))._round():p.x>=r&&(p=new Ir(r,c.y+(p.y-c.y)*((r-c.x)/(p.x-c.x)))._round()),c.y>=o&&p.y>=o||(c.y>=o?c=new Ir(c.x+(p.x-c.x)*((o-c.y)/(p.y-c.y)),o)._round():p.y>=o&&(p=new Ir(c.x+(p.x-c.x)*((o-c.y)/(p.y-c.y)),o)._round()),l&&c.equals(l[l.length-1])||(l=[c],i.push(l)),l.push(p)))))}return i}(t.geometry,0,0,gs,gs);S<k.length;S+=1)for(var A=k[S],P=wr(A,v,x,n.vertical||f,r,24,m,e.overscaling,gs),R=0,D=P;R<D.length;R+=1){var I=D[R],M=f;M&&Rr(e,M.text,O,I)||C(A,I)}else if("line-center"===T)for(var L=0,j=t.geometry;L<j.length;L+=1){var z=j[L];if(z.length>1){var F=xr(z,x,n.vertical||f,r,24,m);F&&C(z,F)}}else if("Polygon"===t.type)for(var N=0,B=hn(t.geometry,0);N<B.length;N+=1){var U=B[N],V=Tr(U,16);C(U[0],new dl(V.x,V.y,0))}else if("LineString"===t.type)for(var H=0,q=t.geometry;H<q.length;H+=1){var G=q[H];C(G,new dl(G[0].x,G[0].y,0))}else if("Point"===t.type)for(var W=0,Z=t.geometry;W<Z.length;W+=1)for(var K=Z[W],X=0,Y=K;X<Y.length;X+=1){var J=Y[X];C([J],new dl(J.x,J.y,0))}}(e,i,c,M,l,u,f)}();i&&e.generateCollisionDebugBuffers()},e.perspective=function(e,t,n,r,o){var i,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=o&&o!==1/0?(i=1/(r-o),e[10]=(o+r)*i,e[14]=2*o*r*i):(e[10]=-1,e[14]=-2*r),e},e.pick=function(e,t){for(var n={},r=0;r<t.length;r++){var o=t[r];o in e&&(n[o]=e[o])}return n},e.plugin=$i,e.polygonIntersectsPolygon=bt,e.postMapLoadEvent=oo,e.postTurnstileEvent=no,e.potpack=Vn,e.rasterBoundsAttributes=tu,e.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],e.register=rt,e.registerForPluginAvailability=function(e){return Xi?e({pluginURL:Xi,completionCallback:Wi}):Ji.once("pluginAvailable",e),e},e.rotate=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l+i*s,e[1]=o*l+a*s,e[2]=r*-s+i*l,e[3]=o*-s+a*l,e},e.rotateX=function(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],p=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*o+u*r,e[5]=a*o+c*r,e[6]=s*o+p*r,e[7]=l*o+f*r,e[8]=u*o-i*r,e[9]=c*o-a*r,e[10]=p*o-s*r,e[11]=f*o-l*r,e},e.rotateZ=function(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[0],a=t[1],s=t[2],l=t[3],u=t[4],c=t[5],p=t[6],f=t[7];return t!==e&&(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[0]=i*o+u*r,e[1]=a*o+c*r,e[2]=s*o+p*r,e[3]=l*o+f*r,e[4]=u*o-i*r,e[5]=c*o-a*r,e[6]=p*o-s*r,e[7]=f*o-l*r,e},e.scale=function(e,t,n){var r=n[0],o=n[1],i=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*o,e[5]=t[5]*o,e[6]=t[6]*o,e[7]=t[7]*o,e[8]=t[8]*i,e[9]=t[9]*i,e[10
1]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.setCacheLimits=function(e,t){ao=e,so=t},e.setRTLTextPlugin=function(e,t){if(Ki)throw new Error("setRTLTextPlugin cannot be called multiple times.");Ki=!0,Xi=qr.resolveURL(e),Wi=function(e){e?(Ki=!1,Xi=null,t&&t(e)):Yi=!0},Ji.fire(new bo("pluginAvailable",{pluginURL:Xi,completionCallback:Wi}))},e.sphericalToCartesian=function(e){var t=e[0],n=e[1],r=e[2];return n+=90,n*=Math.PI/180,r*=Math.PI/180,{x:t*Math.cos(n)*Math.sin(r),y:t*Math.sin(n)*Math.sin(r),z:t*Math.cos(r)}},e.styleSpec=Eo,e.symbolSize=yl,e.transformMat3=function(e,t,n){var r=t[0],o=t[1],i=t[2];return e[0]=r*n[0]+o*n[3]+i*n[6],e[1]=r*n[1]+o*n[4]+i*n[7],e[2]=r*n[2]+o*n[5]+i*n[8],e},e.transformMat4=Mt,e.translate=function(e,t,n){var r,o,i,a,s,l,u,c,p,f,h,d,m=n[0],y=n[1],g=n[2];return t===e?(e[12]=t[0]*m+t[4]*y+t[8]*g+t[12],e[13]=t[1]*m+t[5]*y+t[9]*g+t[13],e[14]=t[2]*m+t[6]*y+t[10]*g+t[14],e[15]=t[3]*m+t[7]*y+t[11]*g+t[15]):(r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],p=t[8],f=t[9],h=t[10],d=t[11],e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=s,e[5]=l,e[6]=u,e[7]=c,e[8]=p,e[9]=f,e[10]=h,e[11]=d,e[12]=r*m+s*y+p*g+t[12],e[13]=o*m+l*y+f*g+t[13],e[14]=i*m+u*y+h*g+t[14],e[15]=a*m+c*y+d*g+t[15]),e},e.uniqueId=u,e.validateCustomStyleLayer=function(e){var t=[],n=e.id;return void 0===n&&t.push({message:"layers."+n+': missing required property "id"'}),void 0===e.render&&t.push({message:"layers."+n+': missing required method "render"'}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:"layers."+n+': property "renderingMode" must be either "2d" or "3d"'}),t},e.validateLight=zi,e.validateStyle=ji,e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.vectorTile=Vs,e.version="1.3.1",e.warnOnce=g,e.webpSupported=Wr,e.window=self,e.wrap=s}),e(["./shared"],function(e){function t(e){var n=typeof e;if("number"===n||"boolean"===n||"string"===n||null==e)return JSON.stringify(e);if(Array.isArray(e)){for(var r="[",o=0,i=e;o<i.length;o+=1)r+=t(i[o])+",";return r+"]"}for(var a=Object.keys(e).sort(),s="{",l=0;l<a.length;l++)s+=JSON.stringify(a[l])+":"+t(e[a[l]])+",";return s+"}"}function n(n){for(var r="",o=0,i=e.refProperties;o<i.length;o+=1)r+="/"+t(n[i[o]]);return r}function r(t,n){for(var r=new e.EvaluationParameters(n),o=0,i=t;o<i.length;o+=1)i[o].recalculate(r)}function o(t,n){var r=e.getArrayBuffer(t.request,function(t,r,o,i){t?n(t):r&&n(null,{vectorTile:new e.vectorTile.VectorTile(new e.pbf(r)),rawData:r,cacheControl:o,expires:i})});return function(){r.cancel(),n()}}function i(e){var t=0;if(e&&e.length>0){t+=Math.abs(a(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(a(e[n]))}return t}function a(e){var t,n,r,o,i,a,l=0,u=e.length;if(u>2){for(a=0;a<u;a++)a===u-2?(r=u-2,o=u-1,i=0):a===u-1?(r=u-1,o=0,i=1):(r=a,o=a+1,i=a+2),t=e[r],n=e[o],l+=(s(e[i][0])-s(t[0]))*Math.sin(s(n[1]));l=l*me.RADIUS*me.RADIUS/2}return l}function s(e){return e*Math.PI/180}function l(e,t){return function(n){return e(n,t)}}function u(e,t){t=!!t,e[0]=c(e[0],t);for(var n=1;n<e.length;n++)e[n]=c(e[n],!t);return e}function c(e,t){return function(e){return ye.ring(e)>=0}(e)===t?e:e.reverse()}function p(e,t){this.options=t||{},this.features=e,this.length=e.length}function f(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}function h(t){var n=new e.pbf;return function(e,t){for(var n in e.layers)t.writeMessage(3,d,e.layers[n])}(t,n),n.finish()}function d(e,t){var n;t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<e.length;n++)r.feature=e.feature(n),t.writeMessage(2,m,r);var o=r.keys;for(n=0;n<o.length;n++)t.writeStringField(3,o[n]);var i=r.values;for(n=0;n<i.length;n++)t.writeMessage(4,b,i[n])}function m(e,t){var n=e.feature;void 0!==n.id&&t.writeVarintField(1,n.id),t.writeMessage(2,y,e),t.writeVarintField(3,n.type),t.writeMessage(4,_,n)}function y(e,t){var n=e.feature,r=e.keys,o=e.values,i=e.keycache,a=e.valuecache;for(var s in n.properties){var l=i[s];void 0===l&&(r.push(s),l=r.length-1,i[s]=l),t.writeVarint(l);var u=n.properties[s],c=typeof u;"string"!==c&&"boolean"!==c&&"number"!==c&&(u=JSON.stringify(u));var p=c+":"+u,f=a[p];void 0===f&&(o.push(u),f=o.length-1,a[p]=f),t.writeVarint(f)}}function g(e,t){return(t<<3)+(7&e)}function v(e){return e<<1^e>>31}function _(e,t){for(var n=e.loadGeometry(),r=e.type,o=0,i=0,a=n.length,s=0;s<a;s++){var l=n[s],u=1;1===r&&(u=l.length),t.writeVarint(g(1,u));for(var c=3===r?l.length-1:l.length,p=0;p<c;p++){1===p&&1!==r&&t.writeVarint(g(2,c-1));var f=l[p].x-o,h=l[p].y-i;t.writeVarint(v(f)),t.writeVarint(v(h)),o+=f,i+=h}3===r&&t.writeVarint(g(7,1))}}function b(e,t){var n=typeof e;"string"===n?t.writeStringField(1,e):"boolean"===n?t.writeBooleanField(7,e):"number"===n&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}
vendor: 4,107 bytes, line 1
1function x(e,t,n,r,o,i){if(!(o-r<=n)){var a=r+o>>1;!function e(t,n,r,o,i,a){for(;i>o;){if(i-o>600){var s=i-o+1,l=r-o+1,u=Math.log(s),c=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);e(t,n,r,Math.max(o,Math.floor(r-l*c/s+p)),Math.min(i,Math.floor(r+(s-l)*c/s+p)),a)}var f=n[2*r+a],h=o,d=i;for(w(t,n,o,r),n[2*i+a]>f&&w(t,n,o,i);h<d;){for(w(t,n,h,d),h++,d--;n[2*h+a]<f;)h++;for(;n[2*d+a]>f;)d--}n[2*o+a]===f?w(t,n,o,d):w(t,n,++d,i),d<=r&&(o=d+1),r<=d&&(i=d-1)}}(e,t,a,r,o,i%2),x(e,t,n,r,a-1,i+1),x(e,t,n,a+1,o,i+1)}}function w(e,t,n,r){E(e,n,r),E(t,2*n,2*r),E(t,2*n+1,2*r+1)}function E(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function T(e,t,n,r){var o=e-n,i=t-r;return o*o+i*i}function O(e,t,n,r,o){return{x:e,y:t,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:o}}function C(e,t){var n=e.geometry.coordinates,r=n[0],o=n[1];return{x:A(r),y:P(o),zoom:1/0,index:t,parentId:-1}}function S(e){return{type:"Feature",id:e.id,properties:k(e),geometry:{type:"Point",coordinates:[360*(e.x-.5),(t=e.y,n=(180-360*t)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var t,n}function k(e){var t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return R(R({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function A(e){return e/360+.5}function P(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function R(e,t){for(var n in t)e[n]=t[n];return e}function D(e){return e.x}function I(e){return e.y}function M(e,t,n,r,o,i){var a=o-n,s=i-r;if(0!==a||0!==s){var l=((e-n)*a+(t-r)*s)/(a*a+s*s);l>1?(n=o,r=i):l>0&&(n+=a*l,r+=s*l)}return(a=e-n)*a+(s=t-r)*s}function L(e,t,n,r){var o={id:void 0===e?null:e,type:t,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,n=e.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)j(e,t);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<t.length;r++)j(e,t[r]);else if("MultiPolygon"===n)for(r=0;r<t.length;r++)for(var o=0;o<t[r].length;o++)j(e,t[r][o])}(o),o}function j(e,t){for(var n=0;n<t.length;n+=3)e.minX=Math.min(e.minX,t[n]),e.minY=Math.min(e.minY,t[n+1]),e.maxX=Math.max(e.maxX,t[n]),e.maxY=Math.max(e.maxY,t[n+1])}function z(e,t,n,r){if(t.geometry){var o=t.geometry.coordinates,i=t.geometry.type,a=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),s=[],l=t.id;if(n.promoteId?l=t.properties[n.promoteId]:n.generateId&&(l=r||0),"Point"===i)F(o,s);else if("MultiPoint"===i)for(var u=0;u<o.length;u++)F(o[u],s);else if("LineString"===i)N(o,s,a,!1);else if("MultiLineString"===i){if(n.lineMetrics){for(u=0;u<o.length;u++)s=[],N(o[u],s,a,!1),e.push(L(l,"LineString",s,t.properties));return}B(o,s,a,!1)}else if("Polygon"===i)B(o,s,a,!0);else{if("MultiPolygon"!==i){if("GeometryCollection"===i){for(u=0;u<t.geometry.geometries.length;u++)z(e,{id:l,geometry:t.geometry.geometries[u],properties:t.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(u=0;u<o.length;u++){var c=[];B(o[u],c,a,!0),s.push(c)}}e.push(L(l,i,s,t.properties))}}function F(e,t){t.push(U(e[0])),t.push(V(e[1])),t.push(0)}function N(e,t,n,r){for(var o,i,a=0,s=0;s<e.length;s++){var l=U(e[s][0]),u=V(e[s][1]);t.push(l),t.push(u),t.push(0),s>0&&(a+=r?(o*u-l*i)/2:Math.sqrt(Math.pow(l-o,2)+Math.pow(u-i,2))),o=l,i=u}var c=t.length-3;t[2]=1,function e(t,n,r,o){for(var i,a=o,s=r-n>>1,l=r-n,u=t[n],c=t[n+1],p=t[r],f=t[r+1],h=n+3;h<r;h+=3){var d=M(t[h],t[h+1],u,c,p,f);if(d>a)i=h,a=d;else if(d===a){var m=Math.abs(h-s);m<l&&(i=h,l=m)}}a>o&&(i-n>3&&e(t,n,i,o),t[i+2]=a,r-i>3&&e(t,i,r,o))}(t,0,c,n),t[c+2]=1,t.size=Math.abs(a),t.start=0,t.end=t.size}function B(e,t,n,r){for(var o=0;o<e.length;o++){var i=[];N(e[o],i,n,r),t.push(i)}}function U(e){return e/360+.5}function V(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function H(e,t,n,r,o,i,a,s){if(r/=t,i>=(n/=t)&&a<r)return e;if(a<n||i>=r)return null;for(var l=[],u=0;u<e.length;u++){var c=e[u],p=c.geometry,f=c.type,h=0===o?c.minX:c.minY,d=0===o?c.maxX:c.maxY;if(h>=n&&d<r)l.push(c);else if(!(d<n||h>=r)){var m=[];
vendor: 6,210 bytes, line 1
1if("Point"===f||"MultiPoint"===f)q(p,m,n,r,o);else if("LineString"===f)G(p,m,n,r,o,!1,s.lineMetrics);else if("MultiLineString"===f)Z(p,m,n,r,o,!1);else if("Polygon"===f)Z(p,m,n,r,o,!0);else if("MultiPolygon"===f)for(var y=0;y<p.length;y++){var g=[];Z(p[y],g,n,r,o,!0),g.length&&m.push(g)}if(m.length){if(s.lineMetrics&&"LineString"===f){for(y=0;y<m.length;y++)l.push(L(c.id,f,m[y],c.tags));continue}"LineString"!==f&&"MultiLineString"!==f||(1===m.length?(f="LineString",m=m[0]):f="MultiLineString"),"Point"!==f&&"MultiPoint"!==f||(f=3===m.length?"Point":"MultiPoint"),l.push(L(c.id,f,m,c.tags))}}}return l.length?l:null}function q(e,t,n,r,o){for(var i=0;i<e.length;i+=3){var a=e[i+o];a>=n&&a<=r&&(t.push(e[i]),t.push(e[i+1]),t.push(e[i+2]))}}function G(e,t,n,r,o,i,a){for(var s,l,u=W(e),c=0===o?X:Y,p=e.start,f=0;f<e.length-3;f+=3){var h=e[f],d=e[f+1],m=e[f+2],y=e[f+3],g=e[f+4],v=0===o?h:d,_=0===o?y:g,b=!1;a&&(s=Math.sqrt(Math.pow(h-y,2)+Math.pow(d-g,2))),v<n?_>n&&(l=c(u,h,d,y,g,n),a&&(u.start=p+s*l)):v>r?_<r&&(l=c(u,h,d,y,g,r),a&&(u.start=p+s*l)):K(u,h,d,m),_<n&&v>=n&&(l=c(u,h,d,y,g,n),b=!0),_>r&&v<=r&&(l=c(u,h,d,y,g,r),b=!0),!i&&b&&(a&&(u.end=p+s*l),t.push(u),u=W(e)),a&&(p+=s)}var x=e.length-3;h=e[x],d=e[x+1],m=e[x+2],(v=0===o?h:d)>=n&&v<=r&&K(u,h,d,m),x=u.length-3,i&&x>=3&&(u[x]!==u[0]||u[x+1]!==u[1])&&K(u,u[0],u[1],u[2]),u.length&&t.push(u)}function W(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function Z(e,t,n,r,o,i){for(var a=0;a<e.length;a++)G(e[a],t,n,r,o,i,!1)}function K(e,t,n,r){e.push(t),e.push(n),e.push(r)}function X(e,t,n,r,o,i){var a=(i-t)/(r-t);return e.push(i),e.push(n+(o-n)*a),e.push(1),a}function Y(e,t,n,r,o,i){var a=(i-n)/(o-n);return e.push(t+(r-t)*a),e.push(i),e.push(1),a}function J(e,t){for(var n=[],r=0;r<e.length;r++){var o,i=e[r],a=i.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)o=$(i.geometry,t);else if("MultiLineString"===a||"Polygon"===a){o=[];for(var s=0;s<i.geometry.length;s++)o.push($(i.geometry[s],t))}else if("MultiPolygon"===a)for(o=[],s=0;s<i.geometry.length;s++){for(var l=[],u=0;u<i.geometry[s].length;u++)l.push($(i.geometry[s][u],t));o.push(l)}n.push(L(i.id,a,o,i.tags))}return n}function $(e,t){var n=[];n.size=e.size,void 0!==e.start&&(n.start=e.start,n.end=e.end);for(var r=0;r<e.length;r+=3)n.push(e[r]+t,e[r+1],e[r+2]);return n}function Q(e,t){if(e.transformed)return e;var n,r,o,i=1<<e.z,a=e.x,s=e.y;for(n=0;n<e.features.length;n++){var l=e.features[n],u=l.geometry,c=l.type;if(l.geometry=[],1===c)for(r=0;r<u.length;r+=2)l.geometry.push(ee(u[r],u[r+1],t,i,a,s));else for(r=0;r<u.length;r++){var p=[];for(o=0;o<u[r].length;o+=2)p.push(ee(u[r][o],u[r][o+1],t,i,a,s));l.geometry.push(p)}}return e.transformed=!0,e}function ee(e,t,n,r,o,i){return[Math.round(n*(e*r-o)),Math.round(n*(t*r-i))]}function te(e,t,n,r,o){for(var i=t===o.maxZoom?0:o.tolerance/((1<<t)*o.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:r,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<e.length;s++){a.numFeatures++,ne(a,e[s],i,o);var l=e[s].minX,u=e[s].minY,c=e[s].maxX,p=e[s].maxY;l<a.minX&&(a.minX=l),u<a.minY&&(a.minY=u),c>a.maxX&&(a.maxX=c),p>a.maxY&&(a.maxY=p)}return a}function ne(e,t,n,r){var o=t.geometry,i=t.type,a=[];if("Point"===i||"MultiPoint"===i)for(var s=0;s<o.length;s+=3)a.push(o[s]),a.push(o[s+1]),e.numPoints++,e.numSimplified++;else if("LineString"===i)re(a,o,e,n,!1,!1);else if("MultiLineString"===i||"Polygon"===i)for(s=0;s<o.length;s++)re(a,o[s],e,n,"Polygon"===i,0===s);else if("MultiPolygon"===i)for(var l=0;l<o.length;l++){var u=o[l];for(s=0;s<u.length;s++)re(a,u[s],e,n,!0,0===s)}if(a.length){var c=t.tags||null;if("LineString"===i&&r.lineMetrics){for(var p in c={},t.tags)c[p]=t.tags[p];c.mapbox_clip_start=o.start/o.size,c.mapbox_clip_end=o.end/o.size}var f={geometry:a,type:"Polygon"===i||"MultiPolygon"===i?3:"LineString"===i||"MultiLineString"===i?2:1,tags:c};null!==t.id&&(f.id=t.id),e.features.push(f)}}function re(e,t,n,r,o,i){var a=r*r;if(r>0&&t.size<(o?a:r))n.numPoints+=t.length/3;else{for(var s=[],l=0;l<t.length;l+=3)(0===r||t[l+2]>a)&&(n.numSimplified++,s.push(t[l]),s.push(t[l+1])),n.numPoints++;o&&function(e,t){for(var n=0,r=0,o=e.length,i=o-2;r<o;i=r,r+=2)n+=(e[r]-e[i])*(e[r+1]+e[i+1]);if(n>0===t)for(r=0,o=e.length;r<o/2;r+=2){var a=e[r],s=e[r+1];e[r]=e[o-2-r],e[r+1]=e[o-1-r],e[o-2-r]=a,e[o-1-r]=s}}(s,i),e.push(s)}}function oe(e,t){var n=(t=this.options=function(e,t){for(var n in t)e[n]=t[n];return e}(Object.create(this.options),t)).debug;if(n&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(e,t){var n=[];if("FeatureCollection"===e.type)for(var r=0;r<e.features.length;r++)z(n,e.features[r],t,r);else"Feature"===e.type?z(n,e,t):z(n,{geometry:e},t);return n}(e,t);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(r=function(e,t){var n=t.buffer/t.extent,r=e,o=H(e,1,-1-n,n,0,-1,2,t),i=H(e,1,1-n,2+n,0,-1,2,t);return(o||i)&&(r=H(e,1,-n,1+n,0,-1,2,t)||[],o&&(r=J(o,1).concat(r)),i&&(r=r.concat(J(i,-1)))),r}(r,t)).length&&this.splitTile(r,0,0,0),n&&(r.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function ie(e,t,n){return 32*((1<<e)*n+t)+e}function ae(e,t){var n=e.tileID.canonical;if(!this._geoJSONIndex)return t(null,null);var r=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!r)return t(null,null);var o=new be(r.features),i=Ee(o);0===i.byteOffset&&i.byteLength===i.buffer.byteLength||(i=new Uint8Array(i)),t(null,{vectorTile:o,rawData:i.buffer})}var se=function(e){this.keyCache={},e&&this.replace(e)};se.prototype.replace=function(e){this._layerConfigs={},this._layers={},this.update(e,[])},se.prototype.update=function(t,r){for(var o=this,i=0,a=t;i<a.length;i+=1){var s=a[i];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=e.createStyleLayer(s);
1l._featureFilter=e.featureFilter(l.filter),this.keyCache[s.id]&&delete this.keyCache[s.id]}for(var u=0,c=r;u<c.length;u+=1){var p=c[u];delete this.keyCache[p],delete this._layerConfigs[p],delete this._layers[p]}this.familiesBySource={};for(var f=0,h=function(e,t){for(var r={},o=0;o<e.length;o++){var i=t&&t[e[o].id]||n(e[o]);t&&(t[e[o].id]=i);var a=r[i];a||(a=r[i]=[]),a.push(e[o])}var s=[];for(var l in r)s.push(r[l]);return s}(e.values(this._layerConfigs),this.keyCache);f<h.length;f+=1){var d=h[f].map(function(e){return o._layers[e.id]}),m=d[0];if("none"!==m.visibility){var y=m.source||"",g=this.familiesBySource[y];g||(g=this.familiesBySource[y]={});var v=m.sourceLayer||"_geojsonTileLayer",_=g[v];_||(_=g[v]=[]),_.push(d)}}};var le=function(t){var n={},r=[];for(var o in t){var i=t[o],a=n[o]={};for(var s in i){var l=i[+s];if(l&&0!==l.bitmap.width&&0!==l.bitmap.height){var u={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};r.push(u),a[s]={rect:u,metrics:l.metrics}}}}var c=e.potpack(r),p=c.w,f=c.h,h=new e.AlphaImage({width:p||1,height:f||1});for(var d in t){var m=t[d];for(var y in m){var g=m[+y];if(g&&0!==g.bitmap.width&&0!==g.bitmap.height){var v=n[d][y].rect;e.AlphaImage.copy(g.bitmap,h,{x:0,y:0},{x:v.x+1,y:v.y+1},g.bitmap)}}}this.image=h,this.positions=n};e.register("GlyphAtlas",le);var ue=function(t){this.tileID=new e.OverscaledTileID(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies};ue.prototype.parse=function(t,n,o,i){function a(){if(c)return i(c);if(p&&f&&h){var t=new le(p),n=new e.ImageAtlas(f,h);for(var o in d){var a=d[o];a instanceof e.SymbolBucket?(r(a.layers,this.zoom),e.performSymbolLayout(a,p,t.positions,f,n.iconPositions,this.showCollisionBoxes)):a.hasPattern&&(a instanceof e.LineBucket||a instanceof e.FillBucket||a instanceof e.FillExtrusionBucket)&&(r(a.layers,this.zoom),a.addFeatures(m,n.patternPositions))}this.status="done",i(null,{buckets:e.values(d).filter(function(e){return!e.isEmpty()}),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,imageAtlas:n,glyphMap:this.returnDependencies?p:null,iconMap:this.returnDependencies?f:null,glyphPositions:this.returnDependencies?t.positions:null})}}var s=this;this.status="parsing",this.data=t,this.collisionBoxArray=new e.CollisionBoxArray;var l=new e.DictionaryCoder(Object.keys(t.layers).sort()),u=new e.FeatureIndex(this.tileID);u.bucketLayerIDs=[];var c,p,f,h,d={},m={featureIndex:u,iconDependencies:{},patternDependencies:{},glyphDependencies:{}},y=n.familiesBySource[this.source];for(var g in y){var v=t.layers[g];if(v){1===v.version&&e.warnOnce('Vector tile source "'+this.source+'" layer "'+g+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var _=l.encode(g),b=[],x=0;x<v.length;x++){var w=v.feature(x);b.push({feature:w,index:x,sourceLayerIndex:_})}for(var E=0,T=y[g];E<T.length;E+=1){var O=T[E],C=O[0];C.minzoom&&this.zoom<Math.floor(C.minzoom)||C.maxzoom&&this.zoom>=C.maxzoom||"none"!==C.visibility&&(r(O,this.zoom),(d[C.id]=C.createBucket({index:u.bucketLayerIDs.length,layers:O,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:_,sourceID:this.source})).populate(b,m),u.bucketLayerIDs.push(O.map(function(e){return e.id})))}}}var S=e.mapObject(m.glyphDependencies,function(e){return Object.keys(e).map(Number)});Object.keys(S).length?o.send("getGlyphs",{uid:this.uid,stacks:S},function(e,t){c||(c=e,p=t,a.call(s))}):p={};var k=Object.keys(m.iconDependencies);k.length?o.send("getImages",{icons:k},function(e,t){c||(c=e,f=t,a.call(s))}):f={};var A=Object.keys(m.patternDependencies);A.length?o.send("getImages",{icons:A},function(e,t){c||(c=e,h=t,a.call(s))}):h={},a.call(this)};var ce="undefined"!=typeof performance,pe={getEntriesByName:function(e){return!!(ce&&performance&&performance.getEntriesByName)&&performance.getEntriesByName(e)},mark:function(e){return!!(ce&&performance&&performance.mark)&&performance.mark(e)},measure:function(e,t,n){return!!(ce&&performance&&performance.measure)&&performance.measure(e,t,n)},clearMarks:function(e){return!!(ce&&performance&&performance.clearMarks)&&performance.clearMarks(e)},clearMeasures:function(e){return!!(ce&&performance&&performance.clearMeasures)&&performance.clearMeasures(e)}},fe=function(e){this._marks={start:[e.url,"start"].join("#"),end:[e.url,"end"].join("#"),measure:e.url.toString()},pe.mark(this._marks.start)};fe.prototype.finish=function(){pe.mark(this._marks.end);var e=pe.getEntriesByName(this._marks.measure);return 0===e.length&&(pe.measure(this._marks.measure,this._marks.start,this._marks.end),e=pe.getEntriesByName(this._marks.measure),pe.clearMarks(this._marks.start),pe.clearMarks(this._marks.end),pe.clearMeasures(this._marks.measure)),e},pe.Performance=fe;var he=function(e,t,n){this.actor=e,this.layerIndex=t,this.loadVectorData=n||o,this.loading={},this.loaded={}};he.prototype.loadTile=function(t,n){var r=this,o=t.uid;this.loading||(this.loading={});var i=!!(t&&t.request&&t.request.collectResourceTiming)&&new pe.Performance(t.request),a=this.loading[o]=new ue(t);a.abort=this.loadVectorData(t,function(t,s){if(delete r.loading[o],t||!s)return a.status="done",r.loaded[o]=a,n(t);var l=s.rawData,u={};s.expires&&(u.expires=s.expires),s.cacheControl&&(u.cacheControl=s.cacheControl);var c={};if(i){var p=i.finish();p&&(c.resourceTiming=JSON.parse(JSON.stringify(p)))}a.vectorTile=s.vectorTile,a.parse(s.vectorTile,r.layerIndex,r.actor,function(t,r){if(t||!r)return n(t);n(null,e.extend({rawTileData:l.slice(0)}
1,r,u,c))}),r.loaded=r.loaded||{},r.loaded[o]=a})},he.prototype.reloadTile=function(e,t){var n=this.loaded,r=e.uid,o=this;if(n&&n[r]){var i=n[r];i.showCollisionBoxes=e.showCollisionBoxes;var a=function(e,n){var r=i.reloadCallback;r&&(delete i.reloadCallback,i.parse(i.vectorTile,o.layerIndex,o.actor,r)),t(e,n)};"parsing"===i.status?i.reloadCallback=a:"done"===i.status&&(i.vectorTile?i.parse(i.vectorTile,this.layerIndex,this.actor,a):a())}},he.prototype.abortTile=function(e,t){var n=this.loading,r=e.uid;n&&n[r]&&n[r].abort&&(n[r].abort(),delete n[r]),t()},he.prototype.removeTile=function(e,t){var n=this.loaded,r=e.uid;n&&n[r]&&delete n[r],t()};var de=function(){this.loaded={}};de.prototype.loadTile=function(t,n){var r=t.uid,o=t.encoding,i=t.rawImageData,a=new e.DEMData(r,i,o);this.loaded=this.loaded||{},this.loaded[r]=a,n(null,a)},de.prototype.removeTile=function(e){var t=this.loaded,n=e.uid;t&&t[n]&&delete t[n]};var me={RADIUS:6378137,FLATTENING:1/298.257223563,POLAR_RADIUS:6356752.3142},ye={geometry:function e(t){var n,r=0;switch(t.type){case"Polygon":return i(t.coordinates);case"MultiPolygon":for(n=0;n<t.coordinates.length;n++)r+=i(t.coordinates[n]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(n=0;n<t.geometries.length;n++)r+=e(t.geometries[n]);return r}},ring:a},ge=function e(t,n){switch(t&&t.type||null){case"FeatureCollection":return t.features=t.features.map(l(e,n)),t;case"GeometryCollection":return t.geometries=t.geometries.map(l(e,n)),t;case"Feature":return t.geometry=e(t.geometry,n),t;case"Polygon":case"MultiPolygon":return function(e,t){return"Polygon"===e.type?e.coordinates=u(e.co
vendor: 9,421 bytes, line 1
1ordinates,t):"MultiPolygon"===e.type&&(e.coordinates=e.coordinates.map(l(u,t))),e}(t,n);default:return t}},ve=e.vectorTile.VectorTileFeature.prototype.toGeoJSON,_e=function(t){this._feature=t,this.extent=e.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))};_e.prototype.loadGeometry=function(){if(1===this._feature.type){for(var t=[],n=0,r=this._feature.geometry;n<r.length;n+=1){var o=r[n];t.push([new e.Point$1(o[0],o[1])])}return t}for(var i=[],a=0,s=this._feature.geometry;a<s.length;a+=1){for(var l=[],u=0,c=s[a];u<c.length;u+=1){var p=c[u];l.push(new e.Point$1(p[0],p[1]))}i.push(l)}return i},_e.prototype.toGeoJSON=function(e,t,n){return ve.call(this,e,t,n)};var be=function(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.EXTENT,this.length=t.length,this._features=t};be.prototype.feature=function(e){return new _e(this._features[e])};var xe=e.vectorTile.VectorTileFeature,we=p;p.prototype.feature=function(e){return new f(this.features[e],this.options.extent)},f.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var n=0;n<t.length;n++){for(var r=t[n],o=[],i=0;i<r.length;i++)o.push(new e.Point$1(r[i][0],r[i][1]));this.geometry.push(o)}return this.geometry},f.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,n=-1/0,r=1/0,o=-1/0,i=0;i<e.length;i++)for(var a=e[i],s=0;s<a.length;s++){var l=a[s];t=Math.min(t,l.x),n=Math.max(n,l.x),r=Math.min(r,l.y),o=Math.max(o,l.y)}return[t,r,n,o]},f.prototype.toGeoJSON=xe.prototype.toGeoJSON;var Ee=h,Te=h,Oe=function(e,t){t=t||{};var n={};for(var r in e)n[r]=new we(e[r].features,t),n[r].name=r,n[r].version=t.version,n[r].extent=t.extent;return h({layers:n})},Ce=we;Ee.fromVectorTileJs=Te,Ee.fromGeojsonVt=Oe,Ee.GeoJSONWrapper=Ce;var Se=function(e){return e[0]},ke=function(e){return e[1]},Ae=function(e,t,n,r,o){void 0===t&&(t=Se),void 0===n&&(n=ke),void 0===r&&(r=64),void 0===o&&(o=Float64Array),this.nodeSize=r,this.points=e;for(var i=e.length<65536?Uint16Array:Uint32Array,a=this.ids=new i(e.length),s=this.coords=new o(2*e.length),l=0;l<e.length;l++)a[l]=l,s[2*l]=t(e[l]),s[2*l+1]=n(e[l]);x(a,s,r,0,a.length-1,0)};Ae.prototype.range=function(e,t,n,r){return function(e,t,n,r,o,i,a){for(var s,l,u=[0,e.length-1,0],c=[];u.length;){var p=u.pop(),f=u.pop(),h=u.pop();if(f-h<=a)for(var d=h;d<=f;d++)s=t[2*d],l=t[2*d+1],s>=n&&s<=o&&l>=r&&l<=i&&c.push(e[d]);else{var m=Math.floor((h+f)/2);s=t[2*m],l=t[2*m+1],s>=n&&s<=o&&l>=r&&l<=i&&c.push(e[m]);var y=(p+1)%2;(0===p?n<=s:r<=l)&&(u.push(h),u.push(m-1),u.push(y)),(0===p?o>=s:i>=l)&&(u.push(m+1),u.push(f),u.push(y))}}return c}(this.ids,this.coords,e,t,n,r,this.nodeSize)},Ae.prototype.within=function(e,t,n){return function(e,t,n,r,o,i){for(var a=[0,e.length-1,0],s=[],l=o*o;a.length;){var u=a.pop(),c=a.pop(),p=a.pop();if(c-p<=i)for(var f=p;f<=c;f++)T(t[2*f],t[2*f+1],n,r)<=l&&s.push(e[f]);else{var h=Math.floor((p+c)/2),d=t[2*h],m=t[2*h+1];T(d,m,n,r)<=l&&s.push(e[h]);var y=(u+1)%2;(0===u?n-o<=d:r-o<=m)&&(a.push(p),a.push(h-1),a.push(y)),(0===u?n+o>=d:r+o>=m)&&(a.push(h+1),a.push(c),a.push(y))}}return s}(this.ids,this.coords,e,t,n,this.nodeSize)};var Pe={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,reduce:null,map:function(e){return e}},Re=function(e){this.options=R(Object.create(Pe),e),this.trees=new Array(this.options.maxZoom+1)};Re.prototype.load=function(e){var t=this.options,n=t.log,r=t.minZoom,o=t.maxZoom,i=t.nodeSize;n&&console.time("total time");var a="prepare "+e.length+" points";n&&console.time(a),this.points=e;for(var s=[],l=0;l<e.length;l++)e[l].geometry&&s.push(C(e[l],l));this.trees[o+1]=new Ae(s,D,I,i,Float32Array),n&&console.timeEnd(a);for(var u=o;u>=r;u--){var c=+Date.now();s=this._cluster(s,u),this.trees[u]=new Ae(s,D,I,i,Float32Array),n&&console.log("z%d: %d clusters in %dms",u,s.length,+Date.now()-c)}return n&&console.timeEnd("total time"),this},Re.prototype.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),o=180===e[2]?180:((e[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,o=180;else if(n>o){var a=this.getClusters([n,r,180,i],t),s=this.getClusters([-180,r,o,i],t);return a.concat(s)}for(var l=this.trees[this._limitZoom(t)],u=[],c=0,p=l.range(A(n),P(i),A(o),P(r));c<p.length;c+=1){var f=p[c],h=l.points[f];u.push(h.numPoints?S(h):this.points[h.index])}return u},Re.prototype.getChildren=function(e){var t=e>>5,n=e%32,r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);var i=o.points[t];if(!i)throw new Error(r);for(var a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=[],l=0,u=o.within(i.x,i.y,a);l<u.length;l+=1){var c=u[l],p=o.points[c];p.parentId===e&&s.push(p.numPoints?S(p):this.points[p.index])}if(0===s.length)throw new Error(r);return s},Re.prototype.getLeaves=function(e,t,n){t=t||10,n=n||0;var r=[];return this._appendLeaves(r,e,t,n,0),r},Re.prototype.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],o=Math.pow(2,e),i=this.options,a=i.extent,s=i.radius/a,l=(n-s)/o,u=(n+1+s)/o,c={features:[]};return this._addTileFeatures(r.range((t-s)/o,l,(t+1+s)/o,u),r.points,t,n,o,c),0===t&&this._addTileFeatures(r.range(1-s/o,l,1,u),r.points,o,n,o,c),t===o-1&&this._addTileFeatures(r.range(0,l,s/o,u),r.points,-1,n,o,c),c.features.length?c:null},Re.prototype.getClusterExpansionZoom=function(e){for(var t=e%32-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t},Re.prototype._appendLeaves=function(e,t,n,r,o){for(var i=0,a=this.getChildren(t);i<a.length;i+=1){var s=a[i],l=s.properties;if(l&&l.cluster?o+l.point_count<=r?o+=l.point_count:o=this._appendLeaves(e,l.cluster_id,n,r,o):o<r?o++:e.push(s),e.length===n)break}return o},Re.prototype._addTileFeatures=function(e,t,n,r,o,i){for(var a=0,s=e;a<s.length;a+=1){var l=t[s[a]],u={type:1,geometry:[[Math.round(this.options.extent*(l.x*o-n)),Math.round(this.options.extent*(l.y*o-r))]],tags:l.numPoints?k(l):this.points[l.index].properties},c=l.numPoints?l.id:this.points[l.index].id;void 0!==c&&(u.id=c),i.features.push(u)}},Re.prototype._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(e,this.options.maxZoom+1))},Re.prototype._cluster=function(e,t){for(var n=[],r=this.options,o=r.radius,i=r.extent,a=r.reduce,s=o/(i*Math.pow(2,t)),l=0;l<e.length;l++){var u=e[l];if(!(u.zoom<=t)){u.zoom=t;for(var c=this.trees[t+1],p=c.within(u.x,u.y,s),f=u.numPoints||1,h=u.x*f,d=u.y*f,m=a&&f>1?this._map(u,!0):null,y=(l<<5)+(t+1),g=0,v=p;g<v.length;g+=1){var _=v[g],b=c.points[_];if(!(b.zoom<=t)){b.zoom=t;var x=b.numPoints||1;h+=b.x*x,d+=b.y*x,f+=x,b.parentId=y,a&&(m||(m=this._map(u,!0)),a(m,this._map(b)))}}1===f?n.push(u):(u.parentId=y,n.push(O(h/f,d/f,y,f,m)))}}return n},Re.prototype._map=function(e,t){if(e.numPoints)return t?R({},e.properties):e.properties;var n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?R({},r):r},oe.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},oe.prototype.splitTile=function(e,t,n,r,o,i,a){for(var s=[e,t,n,r],l=this.options,u=l.debug;s.length;){r=s.pop(),n=s.pop(),t=s.pop(),e=s.pop();var c=1<<t,p=ie(t,n,r),f=this.tiles[p];if(!f&&(u>1&&console.time("creation"),f=this.tiles[p]=te(e,t,n,r,l),this.tileCoords.push({z:t,x:n,y:r}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,n,r,f.numFeatures,f.numPoints,f.numSimplified),console.timeEnd("creation"));var h="z"+t;this.stats[h]=(this.stats[h]||0)+1,this.total++}if(f.source=e,o){if(t===l.maxZoom||t===o)continue;var d=1<<o-t;if(n!==Math.floor(i/d)||r!==Math.floor(a/d))continue}else if(t===l.indexMaxZoom||f.numPoints<=l.indexMaxPoints)continue;if(f.source=null,0!==e.length){u>1&&console.time("clipping");var m,y,g,v,_,b,x=.5*l.buffer/l.extent,w=.5-x,E=.5+x,T=1+x;m=y=g=v=null,_=H(e,c,n-x,n+E,0,f.minX,f.maxX,l),b=H(e,c,n+w,n+T,0,f.minX,f.maxX,l),e=null,_&&(m=H(_,c,r-x,r+E,1,f.minY,f.maxY,l),y=H(_,c,r+w,r+T,1,f.minY,f.maxY,l),_=null),b&&(g=H(b,c,r-x,r+E,1,f.minY,f.maxY,l),v=H(b,c,r+w,r+T,1,f.minY,f.maxY,l),b=null),u>1&&console.timeEnd("clipping"),s.push(m||[],t+1,2*n,2*r),s.push(y||[],t+1,2*n,2*r+1),s.push(g||[],t+1,2*n+1,2*r),s.push(v||[],t+1,2*n+1,2*r+1)}}},oe.prototype.getTile=function(e,t,n){var r=this.options,o=r.extent,i=r.debug;if(e<0||e>24)return null;var a=1<<e,s=ie(e,t=(t%a+a)%a,n);if(this.tiles[s])return Q(this.tiles[s],o);i>1&&console.log("drilling down to z%d-%d-%d",e,t,n);for(var l,u=e,c=t,p=n;!l&&u>0;)u--,c=Math.floor(c/2),p=Math.floor(p/2),l=this.tiles[ie(u,c,p)];return l&&l.source?(i>1&&console.log("found parent tile z%d-%d-%d",u,c,p),i>1&&console.time("drilling down"),this.splitTile(l.source,u,c,p,e,t,n),i>1&&console.timeEnd("drilling down"),this.tiles[s]?Q(this.tiles[s],o):null):null};var De=function(t){function n(e,n,r){t.call(this,e,n,ae),r&&(this.loadGeoJSON=r)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.loadData=function(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=t,this._pendingLoadDataParams=e,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},n.prototype._loadData=function(){var t=this;
1if(this._pendingCallback&&this._pendingLoadDataParams){var n=this._pendingCallback,r=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var o=!!(r&&r.request&&r.request.collectResourceTiming)&&new pe.Performance(r.request);this.loadGeoJSON(r,function(i,a){if(i||!a)return n(i);if("object"!=typeof a)return n(new Error("Input data given to '"+r.source+"' is not a valid GeoJSON object."));ge(a,!0);try{t._geoJSONIndex=r.cluster?new Re(function(t){var n=t.superclusterOptions,r=t.clusterProperties;if(!r||!n)return n;for(var o={},i={},a={accumulated:null,zoom:0},s={properties:null},l=Object.keys(r),u=0,c=l;u<c.length;u+=1){var p=c[u],f=r[p],h=f[0],d=f[1],m=e.createExpression(d),y=e.createExpression("string"==typeof h?[h,["accumulated"],["get",p]]:h);o[p]=m.value,i[p]=y.value}return n.map=function(e){s.properties=e;for(var t={},n=0,r=l;n<r.length;n+=1){var i=r[n];t[i]=o[i].evaluate(a,s)}return t},n.reduce=function(e,t){s.properties=t;for(var n=0,r=l;n<r.length;n+=1){var o=r[n];a.accumulated=e[o],e[o]=i[o].evaluate(a,s)}},n}(r)).load(a.features):function(e,t){return new oe(e,t)}(a,r.geojsonVtOptions)}catch(i){return n(i)}t.loaded={};var s={};if(o){var l=o.finish();l&&(s.resourceTiming={},s.resourceTiming[r.source]=JSON.parse(JSON.stringify(l)))}n(null,s)})}},n.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())},n.prototype.reloadTile=function(e,n){var r=this.loaded,o=e.uid;return r&&r[o]?t.prototype.reloadTile.call(this,e,n):this.loadTile(e,n)},n.prototype.loadGeoJSON=function(t,n){if(t.request)e.getJSON(t.request,n);else{if("string"!=typeof t.data)return n(new Error("Input data given to '"+t.source+"' is not a valid GeoJSON object."));try{return n(null,JSON.parse(t.data))}catch(e){return n(new Error("Input data given to '"+t.source+"' is not a valid GeoJSON object."))}}},n.prototype.removeSource=function(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),t()},n.prototype.getClusterExpansionZoom=function(e,t){t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))},n.prototype.getClusterChildren=function(e,t){t(null,this._geoJSONIndex.getChildren(e.clusterId))},n.prototype.getClusterLeaves=function(e,t){t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))},n}(he),Ie=function(t){var n=this;this.self=t,this.actor=new e.Actor(t,this),this.layerIndexes={},this.workerSourceTypes={vector:he,geojson:De},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(e,t){if(n.workerSourceTypes[e])throw new Error('Worker source with name "'+e+'" already registered.');n.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=function(t){if(e.plugin.isLoaded())throw new Error("RTL text plugin already registered.");e.plugin.applyArabicShaping=t.applyArabicShaping,e.plugin.processBidirectionalText=t.processBidirectionalText,e.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText}};return Ie.prototype.setReferrer=function(e,t){this.referrer=t},Ie.prototype.setLayers=function(e,t,n){this.getLayerIndex(e).replace(t),n()},Ie.prototype.updateLayers=function(e,t,n){this.getLayerIndex(e).update(t.layers,t.removedIds),n()},Ie.prototype.loadTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).loadTile(t,n)},Ie.prototype.loadDEMTile=function(e,t,n){this.getDEMWorkerSource(e,t.source).loadTile(t,n)},Ie.prototype.reloadTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).reloadTile(t,n)},Ie.prototype.abortTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).abortTile(t,n)},Ie.prototype.removeTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).removeTile(t,n)},Ie.prototype.removeDEMTile=function(e,t){this.getDEMWorkerSource(e,t.source).removeTile(t)},Ie.prototype.removeSource=function(e,t,n){if(this.workerSources[e]&&this.workerSources[e][t.type]&&this.workerSources[e][t.type][t.source]){var r=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==r.removeSource?r.removeSource(t,n):n()}},Ie.prototype.loadWorkerSource=function(e,t,n){try{this.self.importScripts(t.url),n()}catch(e){n(e.toString())}},Ie.prototype.loadRTLTextPlugin=function(t,n,r){try{e.plugin.isLoaded()||(this.self.importScripts(n),r(e.plugin.isLoaded()?null:new Error("RTL Text Plugin failed to import scripts from "+n)))}catch(e){r(e.toString())}},Ie.prototype.getLayerIndex=function(e){var t=this.layerIndexes[e];return t||(t=this.layerIndexes[e]=new se),t},Ie.prototype.getWorkerSource=function(e,t,n){var r=this;if(this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),!this.workerSources[e][t][n]){var o={send:function(t,n,o){r.actor.send(t,n,o,e)}};this.workerSources[e][t][n]=new this.workerSourceTypes[t](o,this.getLayerIndex(e))}return this.workerSources[e][t][n]},Ie.prototype.getDEMWorkerSource=function(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new de),this.demWorkerSources[e][t]},Ie.prototype.enforceCacheSizeLimit=function(t,n){e.enforceCacheSizeLimit(n)},"undefined"!=typeof WorkerGlobalScope&&void 0!==e.window&&e.window instanceof WorkerGlobalScope&&(e.window.worker=new Ie(e.window)),Ie}),e(["./shared"],function(e){function t(e){if(!ve)return e[0];for(var t=0;t<e.length;t++)if(e[t]in ve)return e[t];return e[0]}function n(e){var t=e.userImage;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}function r(e,t,n,r,o,i){this.fontSize=e||24,this.buffer=void 0===t?3:t,this.cutoff=r||.25,this.fontFamily=o||"sans-serif",this.fontWeight=i||"normal",this.radius=n||8;var a=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.d=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Int16Array(a),this.middle=Math.round(a/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function o(e,t,n,r,o,a,s){for(var l=0;l<t;l++){for(var u=0;u<n;u++)r[u]=e[u*t+l];for(i(r,o,a,s,n),u=0;u<n;u++)e[u*t+l]=o[u]}for(u=0;
vendor: 4,550 bytes, line 1
1u<n;u++){for(l=0;l<t;l++)r[l]=e[u*t+l];for(i(r,o,a,s,t),l=0;l<t;l++)e[u*t+l]=Math.sqrt(o[l])}}function i(e,t,n,r,o){n[0]=0,r[0]=-Se,r[1]=+Se;for(var i=1,a=0;i<o;i++){for(var s=(e[i]+i*i-(e[n[a]]+n[a]*n[a]))/(2*i-2*n[a]);s<=r[a];)a--,s=(e[i]+i*i-(e[n[a]]+n[a]*n[a]))/(2*i-2*n[a]);n[++a]=i,r[a]=s,r[a+1]=+Se}for(i=0,a=0;i<o;i++){for(;r[a+1]<i;)a++;t[i]=(i-n[a])*(i-n[a])+e[n[a]]}}function a(t,n,r){var o=function(o,i){if(o)return r(o);if(i){var a=e.pick(e.extend(i,t),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);i.vector_layers&&(a.vectorLayers=i.vector_layers,a.vectorLayerIds=a.vectorLayers.map(function(e){return e.id})),t.url&&(a.tiles=n.canonicalizeTileset(a,t.url)),r(null,a)}};return t.url?e.getJSON(n.transformRequest(n.normalizeSourceURL(t.url),e.ResourceType.Source),o):e.browser.frame(function(){return o(null,t)})}function s(t,n){var r=e.identity([]);return e.translate(r,r,[1,1,0]),e.scale(r,r,[.5*t.width,.5*t.height,1]),e.multiply(r,r,t.calculatePosMatrix(n.toUnwrapped()))}function l(e,t,n,r,o){var i=function(e,t,n){if(e)for(var r=0,o=e;r<o.length;r+=1){var i=t[o[r]];if(i&&i.source===n&&"fill-extrusion"===i.type)return!0}else for(var a in t){var s=t[a];if(s.source===n&&"fill-extrusion"===s.type)return!0}return!1}(r&&r.layers,t,e.id),a=o.maxPitchScaleFactor(),l=e.tilesIn(n,a,i);l.sort(u);for(var c=[],p=0,f=l;p<f.length;p+=1){var h=f[p];c.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(t,e._state,h.queryGeometry,h.cameraQueryGeometry,h.scale,r,o,a,s(e.transform,h.tileID))})}var d=function(e){for(var t={},n={},r=0,o=e;r<o.length;r+=1){var i=o[r],a=i.queryResults,s=i.wrappedTileID,l=n[s]=n[s]||{};for(var u in a)for(var c=a[u],p=l[u]=l[u]||{},f=t[u]=t[u]||[],h=0,d=c;h<d.length;h+=1){var m=d[h];p[m.featureIndex]||(p[m.featureIndex]=!0,f.push(m))}}return t}(c);for(var m in d)d[m].forEach(function(t){var n=t.feature,r=e.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=r});return d}function u(e,t){var n=e.tileID,r=t.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}function c(e,t){return e%32-t%32||t-e}function p(e){return"raster"===e||"image"===e||"video"===e}function f(){return new e.window.Worker(to.workerUrl)}function h(t,n){var r={};for(var o in t)"ref"!==o&&(r[o]=t[o]);return e.refProperties.forEach(function(e){e in n&&(r[e]=n[e])}),r}function d(e){e=e.slice();for(var t=Object.create(null),n=0;n<e.length;n++)t[e[n].id]=e[n];for(var r=0;r<e.length;r++)"ref"in e[r]&&(e[r]=h(e[r],t[e[r].ref]));return e}function m(e,t,n){n.push({command:Nt.addSource,args:[e,t[e]]})}function y(e,t,n){t.push({command:Nt.removeSource,args:[e]}),n[e]=!0}function g(e,t,n,r){y(e,n,r),m(e,t,n)}function v(t,n,r){var o;for(o in t[r])if(t[r].hasOwnProperty(o)&&"data"!==o&&!e.deepEqual(t[r][o],n[r][o]))return!1;for(o in n[r])if(n[r].hasOwnProperty(o)&&"data"!==o&&!e.deepEqual(t[r][o],n[r][o]))return!1;return!0}function _(t,n,r,o,i,a){var s;for(s in n=n||{},t=t||{})t.hasOwnProperty(s)&&(e.deepEqual(t[s],n[s])||r.push({command:a,args:[o,s,n[s],i]}));for(s in n)n.hasOwnProperty(s)&&!t.hasOwnProperty(s)&&(e.deepEqual(t[s],n[s])||r.push({command:a,args:[o,s,n[s],i]}))}function b(e){return e.id}function x(e,t){return e[t.id]=t,e}function w(t,n){if(!t)return[{command:Nt.setStyle,args:[n]}];var r=[];try{if(!e.deepEqual(t.version,n.version))return[{command:Nt.setStyle,args:[n]}];e.deepEqual(t.center,n.center)||r.push({command:Nt.setCenter,args:[n.center]}),e.deepEqual(t.zoom,n.zoom)||r.push({command:Nt.setZoom,args:[n.zoom]}),e.deepEqual(t.bearing,n.bearing)||r.push({command:Nt.setBearing,args:[n.bearing]}),e.deepEqual(t.pitch,n.pitch)||r.push({command:Nt.setPitch,args:[n.pitch]}),e.deepEqual(t.sprite,n.sprite)||r.push({command:Nt.setSprite,args:[n.sprite]}),e.deepEqual(t.glyphs,n.glyphs)||r.push({command:Nt.setGlyphs,args:[n.glyphs]}),e.deepEqual(t.transition,n.transition)||r.push({command:Nt.setTransition,args:[n.transition]}),e.deepEqual(t.light,n.light)||r.push({command:Nt.setLight,args:[n.light]});var o={},i=[];!function(t,n,r,o){var i;for(i in n=n||{},t=t||{})t.hasOwnProperty(i)&&(n.hasOwnProperty(i)||y(i,r,o));for(i in n)n.hasOwnProperty(i)&&(t.hasOwnProperty(i)?e.deepEqual(t[i],n[i])||("geojson"===t[i].type&&"geojson"===n[i].type&&v(t,n,i)?r.push({command:Nt.setGeoJSONSourceData,args:[i,n[i].data]}):g(i,n,r,o)):m(i,n,r))}(t.sources,n.sources,i,o);var a=[];
vendor: 5,170 bytes, line 1
1t.layers&&t.layers.forEach(function(e){o[e.source]?r.push({command:Nt.removeLayer,args:[e.id]}):a.push(e)}),r=r.concat(i),function(t,n,r){n=n||[];var o,i,a,s,l,u,c,p=(t=t||[]).map(b),f=n.map(b),h=t.reduce(x,{}),d=n.reduce(x,{}),m=p.slice(),y=Object.create(null);for(o=0,i=0;o<p.length;o++)a=p[o],d.hasOwnProperty(a)?i++:(r.push({command:Nt.removeLayer,args:[a]}),m.splice(m.indexOf(a,i),1));for(o=0,i=0;o<f.length;o++)a=f[f.length-1-o],m[m.length-1-o]!==a&&(h.hasOwnProperty(a)?(r.push({command:Nt.removeLayer,args:[a]}),m.splice(m.lastIndexOf(a,m.length-i),1)):i++,u=m[m.length-o],r.push({command:Nt.addLayer,args:[d[a],u]}),m.splice(m.length-o,0,a),y[a]=!0);for(o=0;o<f.length;o++)if(s=h[a=f[o]],l=d[a],!y[a]&&!e.deepEqual(s,l))if(e.deepEqual(s.source,l.source)&&e.deepEqual(s["source-layer"],l["source-layer"])&&e.deepEqual(s.type,l.type)){for(c in _(s.layout,l.layout,r,a,null,Nt.setLayoutProperty),_(s.paint,l.paint,r,a,null,Nt.setPaintProperty),e.deepEqual(s.filter,l.filter)||r.push({command:Nt.setFilter,args:[a,l.filter]}),e.deepEqual(s.minzoom,l.minzoom)&&e.deepEqual(s.maxzoom,l.maxzoom)||r.push({command:Nt.setLayerZoomRange,args:[a,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?_(s[c],l[c],r,a,c.slice(6),Nt.setPaintProperty):e.deepEqual(s[c],l[c])||r.push({command:Nt.setLayerProperty,args:[a,c,l[c]]}));for(c in l)l.hasOwnProperty(c)&&!s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?_(s[c],l[c],r,a,c.slice(6),Nt.setPaintProperty):e.deepEqual(s[c],l[c])||r.push({command:Nt.setLayerProperty,args:[a,c,l[c]]}))}else r.push({command:Nt.removeLayer,args:[a]}),u=m[m.lastIndexOf(a)+1],r.push({command:Nt.addLayer,args:[l,u]})}(a,n.layers,r)}catch(e){console.warn("Unable to compute style diff:",e),r=[{command:Nt.setStyle,args:[n]}]}return r}function E(t,n,r,o,i){var a=e.create();return n?(e.scale(a,a,[1/i,1/i,1]),r||e.rotateZ(a,a,o.angle)):e.multiply(a,o.labelPlaneMatrix,t),a}function T(t,n,r,o,i){if(n){var a=e.clone(t);return e.scale(a,a,[i,i,1]),r||e.rotateZ(a,a,-o.angle),a}return o.glCoordMatrix}function O(t,n){var r=[t.x,t.y,0,1];M(r,r,n);var o=r[3];return{point:new e.Point(r[0]/o,r[1]/o),signedDistanceFromCamera:o}}function C(e,t){var n=e[0]/e[3],r=e[1]/e[3];return n>=-t[0]&&n<=t[0]&&r>=-t[1]&&r<=t[1]}function S(t,n,r,o,i,a,s,l){var u=o?t.textSizeData:t.iconSizeData,c=e.evaluateSizeForZoom(u,r.transform.zoom),p=[256/r.width*2+1,256/r.height*2+1],f=o?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;f.clear();for(var h=t.lineVertexArray,d=o?t.text.placedSymbolArray:t.icon.placedSymbolArray,m=r.transform.width/r.transform.height,y=!1,g=0;g<d.length;g++){var v=d.get(g);if(v.hidden||v.writingMode===e.WritingMode.vertical&&!y)I(v.numGlyphs,f);else{y=!1;var _=[v.anchorX,v.anchorY,0,1];if(e.transformMat4(_,_,n),C(_,p)){var b=.5+_[3]/r.transform.cameraToCenterDistance*.5,x=e.evaluateSizeForFeature(u,c,v),w=s?x*b:x/b,E=new e.Point(v.anchorX,v.anchorY),T=O(E,i).point,S={},k=P(v,w,!1,l,n,i,a,t.glyphOffsetArray,h,f,T,E,S,m);y=k.useVertical,(k.notEnoughRoom||y||k.needsFlipping&&P(v,w,!0,l,n,i,a,t.glyphOffsetArray,h,f,T,E,S,m).notEnoughRoom)&&I(v.numGlyphs,f)}else I(v.numGlyphs,f)}}o?t.text.dynamicLayoutVertexBuffer.updateData(f):t.icon.dynamicLayoutVertexBuffer.updateData(f)}function k(e,t,n,r,o,i,a,s,l,u,c,p){var f=s.glyphStartIndex+s.numGlyphs,h=s.lineStartIndex,d=s.lineStartIndex+s.lineLength,m=t.getoffsetX(s.glyphStartIndex),y=t.getoffsetX(f-1),g=D(e*m,n,r,o,i,a,s.segment,h,d,l,u,c,p);if(!g)return null;var v=D(e*y,n,r,o,i,a,s.segment,h,d,l,u,c,p);return v?{first:g,last:v}:null}function A(t,n,r,o){return t===e.WritingMode.horizontal&&Math.abs(r.y-n.y)>Math.abs(r.x-n.x)*o?{useVertical:!0}:(t===e.WritingMode.vertical?n.y<r.y:n.x>r.x)?{needsFlipping:!0}:null}function P(t,n,r,o,i,a,s,l,u,c,p,f,h,d){var m,y=n/24,g=t.lineOffsetX*y,v=t.lineOffsetY*y;if(t.numGlyphs>1){var _=t.glyphStartIndex+t.numGlyphs,b=t.lineStartIndex,x=t.lineStartIndex+t.lineLength,w=k(y,l,g,v,r,p,f,t,u,a,h,!1);if(!w)return{notEnoughRoom:!0};var E=O(w.first.point,s).point,T=O(w.last.point,s).point;if(o&&!r){var C=A(t.writingMode,E,T,d);if(C)return C}m=[w.first];for(var S=t.glyphStartIndex+1;S<_-1;S++)m.push(D(y*l.getoffsetX(S),g,v,r,p,f,t.segment,b,x,u,a,h,!1));m.push(w.last)}else{if(o&&!r){var P=O(f,i).point,I=t.lineStartIndex+t.segment+1,M=new e.Point(u.getx(I),u.gety(I)),L=O(M,i),j=L.signedDistanceFromCamera>0?L.point:R(f,M,P,1,i),z=A(t.writingMode,P,j,d);if(z)return z}var F=D(y*l.getoffsetX(t.glyphStartIndex),g,v,r,p,f,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,u,a,h,!1);if(!F)return{notEnoughRoom:!0};m=[F]}for(var N=0,B=m;N<B.length;N+=1){var U=B[N];e.addDynamicAttributes(c,U.point,U.angle)}return{}}function R(e,t,n,r,o){var i=O(e.add(e.sub(t)._unit()),o).point,a=n.sub(i);return n.add(a._mult(r/a.mag()))}function D(t,n,r,o,i,a,s,l,u,c,p,f,h){var d=o?t-n:t+n,m=d>0?1:-1,y=0;o&&(m*=-1,y=Math.PI),m<0&&(y+=Math.PI);for(var g=m>0?l+s:l+s+1,v=g,_=i,b=i,x=0,w=0,E=Math.abs(d);x+w<=E;){if((g+=m)<l||g>=u)return null;
1if(b=_,void 0===(_=f[g])){var T=new e.Point(c.getx(g),c.gety(g)),C=O(T,p);if(C.signedDistanceFromCamera>0)_=f[g]=C.point;else{var S=g-m;_=R(0===x?a:new e.Point(c.getx(S),c.gety(S)),T,b,E-x+1,p)}}x+=w,w=b.dist(_)}var k=(E-x)/w,A=_.sub(b),P=A.mult(k)._add(b);return P._add(A._unit()._perp()._mult(r*m)),{point:P,angle:y+Math.atan2(_.y-b.y,_.x-b.x),tileDistance:h?{prevTileDistance:g-m===v?0:c.gettileUnitDistanceFromAnchor(g-m),lastSegmentViewportDistance:E-x}:null}}function I(e,t){for(var n=0;n<e;n++){var r=t.length;t.resize(r+4),t.float32.set(Ut,3*r)}}function M(e,t,n){var r=t[0],o=t[1];return e[0]=n[0]*r+n[4]*o+n[12],e[1]=n[1]*r+n[5]*o+n[13],e[3]=n[3]*r+n[7]*o+n[15],e}function L(e,t,n){e[t+4]=n?1:0}function j(t,n,r){return n*(e.EXTENT/(t.tileSize*Math.pow(2,r-t.tileID.overscaledZ)))}function z(t,n,r,o,i){var a=e.getAnchorAlignment(t),s=-(a.horizontalAlign-.5)*n,l=-(a.verticalAlign-.5)*r,u=e.evaluateRadialOffset(t,o);return new e.Point(s+u[0]*i,l+u[1]*i)}function F(e,t,n,r,o){e.emplaceBack(t?1:0,n?1:0,r||0,o||0),e.emplaceBack(t?1:0,n?1:0,r||0,o||0),e.emplaceBack(t?1:0,n?1:0,r||0,o||0),e.emplaceBack(t?1:0,n?1:0,r||0,o||0)}function N(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;var t=e.placed?1:0,n=Math.floor(127*e.opacity);return n*Xt+t*Yt+n*Jt+t*$t+n*Qt+t*en+n*tn+t}function B(e,t){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r={};return{fragmentSource:e=e.replace(n,function(e,t,n,o,i){return r[i]=!0,"define"===t?"\n#ifndef HAS_UNIFORM_u_"+i+"\nvarying "+n+" "+o+" "+i+";\n#else\nuniform "+n+" "+o+" u_"+i+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+i+"\n "+n+" "+o+" "+i+" = u_"+i+";\n#endif\n"}),vertexSource:t=t.replace(n,function(e,t,n,o,i){var a="float"===o?"vec2":"vec4",s=i.match(/color/)?"color":a;return r[i]?"define"===t?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+a+" a_"+i+";\nvarying "+n+" "+o+" "+i+";\n#else\nuniform "+n+" "+o+" u_"+i+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = a_"+i+";\n#else\n "+n+" "+o+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = unpack_mix_"+s+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+o+" "+i+" = u_"+i+";\n#endif\n":"define"===t?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+a+" a_"+i+";\n#else\nuniform "+n+" "+o+" u_"+i+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+o+" "+i+" = a_"+i+";\n#else\n "+n+" "+o+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+o+" "+i+" = unpack_mix_"+s+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+o+" "+i+" = u_"+i+";\n#endif\n"})}}function U(t,n,r){var o=1/j(r,1,n.transform.tileZoom),i=Math.pow(2,r.tileID.overscaledZ),a=r.tileSize*Math.pow(2,n.transform.tileZoom)/i,s=a*(r.tileID.canonical.x+r.tileID.wrap*i),l=a*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[e.browser.devicePixelRatio,o,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[s>>16,l>>16],u_pixel_coord_lower:[65535&s,65535&l]}}function V(t,n){var r=Math.pow(2,n.canonical.z),o=n.canonical.y;return[new e.MercatorCoordinate(0,o/r).toLngLat().lat,new e.MercatorCoordinate(0,(o+1)/r).toLngLat().lat]}function H(e,t){return 1/j(e,1,t.tileZoom)}function q(e,t,n){return e.translatePosMatrix(t.tileID.posMatrix,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}function G(e){e*=Math.PI/180;var t=Math.sin(e),n=Math.cos(e);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}function W(t,n){for(var r=t.sort(function(e,t){return e.tileID.isLessThan(t.tileID)?-1:t.tileID.isLessThan(e.tileID)?1:0}),o=0;o<r.length;o++){var i={},a=r[o],s=r.slice(o+1);Z(a.tileID.wrapped(),a.tileID,s,new e.OverscaledTileID(0,a.tileID.wrap+1,0,0,0),i),a.setMask(i,n)}}function Z(t,n,r,o,i){for(var a=0;a<r.length;a++){var s=r[a];if(o.isLessThan(s.tileID))break;if(n.key===s.tileID.key)return;if(s.tileID.isChildOf(n)){for(var l=n.children(1/0),u=0;u<l.length;u++)Z(t,l[u],r.slice(a),o,i);return}}var c=n.overscaledZ-t.overscaledZ,p=new e.CanonicalTileID(c,n.canonical.x-(t.canonical.x<<c),n.canonical.y-(t.canonical.y<<c));i[p.key]=i[p.key]||p}function K(e,t,n,r,o){for(var i=e.context,a=i.gl,s=o?e.useProgram("collisionCircle"):e.useProgram("collisionBox"),l=0;l<r.length;l++){var u=r[l],c=t.getTile(u),p=c.getBucket(n);if(p){var f=o?p.collisionCircle:p.collisionBox;
1f&&s.draw(i,o?a.TRIANGLES:a.LINES,Pt.disabled,Rt.disabled,e.colorModeForRenderPass(),It.disabled,Jn(u.posMatrix,e.transform,c),n.id,f.layoutVertexBuffer,f.indexBuffer,f.segments,null,e.transform.zoom,null,null,f.collisionVertexBuffer)}}}function X(t,n,r,o,i,a){var s=e.getAnchorAlignment(t),l=-(s.horizontalAlign-.5)*n,u=-(s.verticalAlign-.5)*r,c=e.evaluateRadialOffset(t,o);return new e.Point((l/i+c[0])*a,(u/i+c[1])*a)}function Y(t,n,r,o,i,a,s,l,u,c){var p=t.text.placedSymbolArray,f=t.text.dynamicLayoutVertexArray;f.clear();for(var h=0;h<p.length;h++){var d=p.get(h),m=t.allowVerticalPlacement&&!d.placedOrientation,y=d.hidden||!d.crossTileID||m?null:o[d.crossTileID];if(y){var g=new e.Point(d.anchorX,d.anchorY),v=O(g,r?l:s),_=.5+a.cameraToCenterDistance/v.signedDistanceFromCamera*.5,b=i.evaluateSizeForFeature(t.textSizeData,c,d)*_/e.ONE_EM;r&&(b*=t.tilePixelRatio/u);for(var x=y.width,w=y.height,E=y.radialOffset,T=y.textBoxScale,C=X(y.anchor,x,w,E,T,b),S=r?O(g.add(C),s).point:v.point.add(n?C.rotate(-a.angle):C),k=t.allowVerticalPlacement&&d.placedOrientation===e.WritingMode.vertical?Math.PI/2:0,A=0;A<d.numGlyphs;A++)e.addDynamicAttributes(f,S,k)}else I(d.numGlyphs,f)}t.text.dynamicLayoutVertexBuffer.updateData(f)}function J(t){var n=t.text.placedSymbolArray,r=t.text.dynamicLayoutVertexArray;r.clear();for(var o=0;o<n.length;o++){var i=n.get(o);if(i.hidden||!i.placedOrientation)I(i.numGlyphs,r);else for(var a=new e.Point(i.anchorX,i.anchorY),s=t.allowVerticalPlacement&&i.placedOrientation===e.WritingMode.vertical?Math.PI/2:0,l=0;l<i.numGlyphs;l++)e.addDynamicAttributes(r,a,s)}t.text.dynamicLayoutVertexBuffer.updateData(r)}function $(t,n,r,o,i,a,s,l,u,c,p,f,h){for(var d,m,y=t.context,g=y.gl,v=t.transform,_="map"===l,b="map"===u,x=_&&"point"!==r.layout.get("symbol-placement"),w=_&&!b&&!x,O=void 0!==r.layout.get("symbol-sort-key").constantOr(1),C=t.depthModeForSublayer(0,Pt.ReadOnly),k=r.layout.get("text-variable-anchor"),A=[],P=0,R=o;P<R.length;P+=1){var D=R[P],I=n.getTile(D),M=I.getBucket(r);if(M){var L=i?M.text:M.icon;if(L&&L.segments.get().length){var z=L.programConfigurations.get(r.id),F=i||M.sdfIcons,N=i?M.textSizeData:M.iconSizeData;d||(d=t.useProgram(F?"symbolSDF":"symbolIcon",z),m=e.evaluateSizeForZoom(N,v.zoom)),y.activeTexture.set(g.TEXTURE0);var B=void 0,U=void 0,V=void 0;if(i)U=I.glyphAtlasTexture,V=g.LINEAR,B=I.glyphAtlasTexture.size;else{var H=1!==r.layout.get("icon-size").constantOr(0)||M.iconsNeedLinear,q=b||0!==v.pitch;U=I.imageAtlasTexture,V=F||t.options.rotating||t.options.zooming||H||q?g.LINEAR:g.NEAREST,B=I.imageAtlasTexture.size}var G=j(I,1,t.transform.zoom),W=E(D.posMatrix,b,_,t.transform,G),Z=T(D.posMatrix,b,_,t.transform,G);if(x)S(M,D.posMatrix,t,i,W,Z,b,c);else if(i&&m&&k){var K=Math.pow(2,v.zoom-I.tileID.overscaledZ);Y(M,_,b,h,e.symbolSize,v,W,D.posMatrix,K,m)}else i&&m&&M.allowVerticalPlacement&&J(M);var X=t.translatePosMatrix(D.posMatrix,I,a,s),$=x||i&&k?dr:W,ee=t.translatePosMatrix(Z,I,a,s,!0),te=F&&0!==r.paint.get(i?"text-halo-width":"icon-halo-width").constantOr(1),ne={program:d,buffers:L,uniformValues:F?cr(N.kind,m,w,b,t,X,$,ee,i,B,!0):ur(N.kind,m,w,b,t,X,$,ee,i,B),atlasTexture:U,atlasInterpolation:V,isSDF:F,hasHalo:te};if(O)for(var re=0,oe=L.segments.get();re<oe.length;re+=1){var ie=oe[re];A.push({segments:new e.SegmentVector([ie]),sortKey:ie.sortKey,state:ne})}else A.push({segments:L.segments,sortKey:0,state:ne})}}}O&&A.sort(function(e,t){return e.sortKey-t.sortKey});for(var ae=0,se=A;ae<se.length;ae+=1){var le=se[ae],ue=le.state;if(ue.atlasTexture.bind(ue.atlasInterpolation,g.CLAMP_TO_EDGE),ue.isSDF){var ce=ue.uniformValues;ue.hasHalo&&(ce.u_is_halo=1,Q(ue.buffers,le.segments,r,t,ue.program,C,p,f,ce)),ce.u_is_halo=0}Q(ue.buffers,le.segments,r,t,ue.program,C,p,f,ue.uniformValues)}}function Q(e,t,n,r,o,i,a,s,l){var u=r.context,c=u.gl;o.draw(u,c.TRIANGLES,i,a,s,It.disabled,l,n.id,e.layoutVertexBuffer,e.indexBuffer,t,n.paint,r.transform.zoom,e.programConfigurations.get(n.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function ee(e,t,n,r,o,i,a){var s,l,u,c,p,f=e.context.gl,h=n.paint.get("fill-pattern"),d=h&&h.constantOr(1),m=n.getCrossfadeParameters();a?(l=d&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=f.LINES):(l=d?"fillPattern":"fill",s=f.TRIANGLES);for(var y=0,g=r;y<g.length;y+=1){var v=g[y],_=t.getTile(v);
1if(!d||_.patternsLoaded()){var b=_.getBucket(n);if(b){var x=b.programConfigurations.get(n.id),w=e.useProgram(l,x);d&&(e.context.activeTexture.set(f.TEXTURE0),_.imageAtlasTexture.bind(f.LINEAR,f.CLAMP_TO_EDGE),x.updatePatternPaintBuffers(m));var E=h.constantOr(null);if(E&&_.imageAtlas){var T=_.imageAtlas.patternPositions[E.to],O=_.imageAtlas.patternPositions[E.from];T&&O&&x.setConstantPatternPositions(T,O)}var C=e.translatePosMatrix(v.posMatrix,_,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(a){c=b.indexBuffer2,p=b.segments2;var S=[f.drawingBufferWidth,f.drawingBufferHeight];u="fillOutlinePattern"===l&&d?Kn(C,e,m,_,S):Zn(C,S)}else c=b.indexBuffer,p=b.segments,u=d?Wn(C,e,m,_):Gn(C);w.draw(e.context,s,o,e.stencilModeForClipping(v),i,It.disabled,u,n.id,b.layoutVertexBuffer,c,p,n.paint,e.transform.zoom,x)}}}}function te(e,t,n,r,o,i,a){for(var s=e.context,l=s.gl,u=n.paint.get("fill-extrusion-pattern"),c=u.constantOr(1),p=n.getCrossfadeParameters(),f=n.paint.get("fill-extrusion-opacity"),h=0,d=r;h<d.length;h+=1){var m=d[h],y=t.getTile(m),g=y.getBucket(n);if(g){var v=g.programConfigurations.get(n.id),_=e.useProgram(c?"fillExtrusionPattern":"fillExtrusion",v);c&&(e.context.activeTexture.set(l.TEXTURE0),y.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),v.updatePatternPaintBuffers(p));var b=u.constantOr(null);if(b&&y.imageAtlas){var x=y.imageAtlas.patternPositions[b.to],w=y.imageAtlas.patternPositions[b.from];x&&w&&v.setConstantPatternPositions(x,w)}var E=e.translatePosMatrix(m.posMatrix,y,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),T=n.paint.get("fill-extrusion-vertical-gradient"),O=c?qn(E,e,T,f,m,p,y):Hn(E,e,T,f);_.draw(s,s.gl.TRIANGLES,o,i,a,It.backCCW,O,n.id,g.layoutVertexBuffer,g.indexBuffer,g.segments,n.paint,e.transform.zoom,v)}}}function ne(e,t,n,r,o,i){var a=e.context,s=a.gl,l=t.fbo;if(l){var u=e.useProgram("hillshade");a.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l.colorAttachment.get());var c=nr(e,t,n);t.maskedBoundsBuffer&&t.maskedIndexBuffer&&t.segments?u.draw(a,s.TRIANGLES,r,o,i,It.disabled,c,n.id,t.maskedBoundsBuffer,t.maskedIndexBuffer,t.segments):u.draw(a,s.TRIANGLES,r,o,i,It.disabled,c,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}function re(t,n,r,o,i,a,s){var l=t.context,u=l.gl;if(n.dem&&n.dem.data){var c=n.dem.dim,p=n.dem.stride,f=n.dem.getPixels();if(l.activeTexture.set(u.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||t.getTileTexture(p),n.demTexture){var h=n.demTexture;h.update(f,{premultiply:!1}),h.bind(u.NEAREST,u.CLAMP_TO_EDGE)}else n.demTexture=new e.Texture(l,f,u.RGBA,{premultiply:!1}),n.demTexture.bind(u.NEAREST,u.CLAMP_TO_EDGE);l.activeTexture.set(u.TEXTURE0);var d=n.fbo;if(!d){var m=new e.Texture(l,{width:c,height:c,data:null},u.RGBA);m.bind(u.LINEAR,u.CLAMP_TO_EDGE),(d=n.fbo=l.createFramebuffer(c,c)).colorAttachment.set(m.texture)}l.bindFramebuffer.set(d.framebuffer),l.viewport.set([0,0,c,c]),t.useProgram("hillshadePrepare").draw(l,u.TRIANGLES,i,a,s,It.disabled,rr(n,o),r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),n.needsHillshadePrepare=!1}}function oe(t,n,r,o,i){var a=o.paint.get("raster-fade-duration");if(a>0){var s=e.browser.now(),l=(s-t.timeAdded)/a,u=n?(s-n.timeAdded)/a:-1,c=r.getSource(),p=i.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),f=!n||Math.abs(n.tileID.overscaledZ-p)>Math.abs(t.tileID.overscaledZ-p),h=f&&t.refreshedUponExpiration?1:e.clamp(f?l:1-u,0,1);return t.refreshedUponExpiration&&l>=1&&(t.refreshedUponExpiration=!1),n?{opacity:1,mix:1-h}:{opacity:h,mix:0}}return{opacity:1,mix:0}}function ie(t,n,r){var o=t.context,i=o.gl,a=r.posMatrix,s=t.useProgram("debug"),l=Pt.disabled,u=Rt.disabled,c=t.colorModeForRenderPass(),p="$debug";s.draw(o,i.LINE_STRIP,l,u,c,It.disabled,$n(a,e.Color.red),p,t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments);for(var f=n.getTileByID(r.key).latestRawTileData,h=f&&f.byteLength||0,d=Math.floor(h/1024),m=n.getTile(r).tileSize,y=512/Math.min(m,512),g=function(e,t,n,r){r=r||1;var o,i,a,s,l,u,c,p,f=[];for(o=0,i=e.length;o<i;o++)if(l=mr[e[o]]){for(p=null,a=0,s=l[1].length;a<s;a+=2)-1===l[1][a]&&-1===l[1][a+1]?p=null:(u=t+l[1][a]*r,c=n-l[1][a+1]*r,p&&f.push(p.x,p.y,u,c),p={x:u,y:c});t+=l[0]*r}return f}(r.toString()+" "+d+"kb",50,200*y,5*y),v=new e.StructArrayLayout2i4,_=new e.StructArrayLayout2ui4,b=0;b<g.length;b+=2)v.emplaceBack(g[b],g[b+1]),_.emplaceBack(b,b+1);for(var x=o.createVertexBuffer(v,dn.members),w=o.createIndexBuffer(_),E=e.SegmentVector.simpleSegment(0,0,v.length/2,v.length/2),T=e.EXTENT/(Math.pow(2,t.transform.zoom-r.overscaledZ
1)*m*y),O=[],C=-1;C<=1;C++)for(var S=-1;S<=1&&(0!==C||0!==S);S++)O.push([C,S]);for(var k=0;k<O.length;k++){var A=O[k];s.draw(o,i.LINES,l,u,c,It.disabled,$n(e.translate([],a,[T*A[0],T*A[1],0]),e.Color.white),p,x,w,E)}s.draw(o,i.LINES,l,u,c,It.disabled,$n(a,e.Color.black),p,x,w,E)}function ae(e,t){if(e.y>t.y){var n=e;e=t,t=n}return{x0:e.x,y0:e.y,x1:t.x,y1:t.y,dx:t.x-e.x,dy:t.y-e.y}}function se(e,t,n,r,o){var i=Math.max(n,Math.floor(t.y0)),a=Math.min(r,Math.ceil(t.y1));if(e.x0===t.x0&&e.y0===t.y0?e.x0+t.dy/e.dy*e.dx<t.x1:e.x1-t.dy/e.dy*e.dx<t.x0){var s=e;e=t,t=s}for(var l=e.dx/e.dy,u=t.dx/t.dy,c=e.dx>0,p=t.dx<0,f=i;f<a;f++){var h=l*Math.max(0,Math.min(e.dy,f+c-e.y0))+e.x0,d=u*Math.max(0,Math.min(t.dy,f+p-t.y0))+t.x0;o(Math.floor(d),Math.ceil(h),f)}}function le(e,t,n,r,o,i){var a,s=ae(e,t),l=ae(t,n),u=ae(n,e);s.dy>l.dy&&(a=s,s=l,l=a),s.dy>u.dy&&(a=s,s=u,u=a),l.dy>u.dy&&(a=l,l=u,u=a),s.dy&&se(u,s,r,o,i),l.dy&&se(u,l,r,o,i)}function ue(e){return e*(2-e)}function ce(e){e.parentNode&&e.parentNode.removeChild(e)}function pe(t,n,r){if(t=new e.LngLat(t.lng,t.lat),n){var o=new e.LngLat(t.lng-360,t.lat),i=new e.LngLat(t.lng+360,t.lat),a=r.locationPoint(t).distSqr(n);r.locationPoint(o).distSqr(n)<a?t=o:r.locationPoint(i).distSqr(n)<a&&(t=i)}for(;Math.abs(t.lng-r.center.lng)>180;){var s=r.locationPoint(t);if(s.x>=0&&s.y>=0&&s.x<=r.width&&s.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}function fe(e,t,n){var r=e.classList;for(var o in Wr)r.remove("mapboxgl-"+n+"-anchor-"+o);r.add("mapboxgl-"+n+"-anchor-"+t)}function he(e,t,n){var r,o,i,a,s,l,u=n&&n.maxWidth||100,c=e._container.clientHeight/2,p=(r=e.unproject([0,c]),o=e.unproject([u,c]),i=Math.PI/180,a=r.lat*i,s=o.lat*i,l=Math.sin(a)*Math.sin(s)+Math.cos(a)*Math.cos(s)*Math.cos((o.lng-r.lng)*i),6371e3*Math.acos(Math.min(l,1)));if(n&&"imperial"===n.unit){var f=3.2808*p;f>5280?de(t,u,f/5280,"mi"):de(t,u,f,"ft")}else n&&"nautical"===n.unit?de(t,u,p/1852,"nm"):de(t,u,p,"m")}function de(e,t,n,r){var o,i,a,s=(o=n,i=Math.pow(10,(""+Math.floor(o)).length-1),a=(a=o/i)>=10?10:a>=5?5:a>=3?3:a>=2?2:a>=1?1:function(e){var t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(a),i*a),l=s/n;"m"===r&&s>=1e3&&(s/=1e3,r="km"),e.style.width=t*l+"px",e.innerHTML=s+r}var me,ye=e.createCommonjsModule(function(e){function t(e){return!!("undefined"!=typeof window&&"undefined"!=typeof document&&Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray&&Function.prototype&&Function.prototype.bind&&Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions&&"JSON"in window&&"parse"in JSON&&"stringify"in JSON&&function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var e,t,n=new Blob([""],{type:"text/javascript"}),r=URL.createObjectURL(n);try{t=new Worker(r),e=!0}catch(t){e=!1}return t&&t.terminate(),URL.revokeObjectURL(r),e}()&&"Uint8ClampedArray"in window&&ArrayBuffer.isView&&function(e){return void 0===n[e]&&(n[e]=function(e){var n=document.createElement("canvas"),r=Object.create(t.webGLContextAttributes);return r.failIfMajorPerformanceCaveat=e,n.probablySupportsContext?n.probablySupportsContext("webgl",r)||n.probablySupportsContext("experimental-webgl",r):n.supportsContext?n.supportsContext("webgl",r)||n.supportsContext("experimental-webgl",r):n.getContext("webgl",r)||n.getContext("experimental-webgl",r)}(e)),n[e]}(e&&e.failIfMajorPerformanceCaveat))}e.exports?e.exports=t:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=t);var n={};t.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}}),ge={create:function(t,n,r){var o=e.window.document.createElement(t);return void 0!==n&&(o.className=n),r&&r.appendChild(o),o},createNS:function(t,n){return e.window.document.createElementNS(t,n)}},ve=e.window.document.documentElement.style,_e=t(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);ge.disableDrag=function(){ve&&_e&&(me=ve[_e],ve[_e]="none")},ge.enableDrag=function(){ve&&_e&&(ve[_e]=me)};var be=t(["transform","WebkitTransform"]);ge.setTransform=function(e,t){e.style[be]=t};var xe=!1;try{var we=Object.defineProperty({},"passive",{get:function(){xe=!0}});e.window.addEventListener("test",we,we),e.window.removeEventListener("test",we,we)}catch(e){xe=!1}ge.addEventListener=function(e,t,n,r){void 0===r&&(r={}),"passive"in r&&xe?e.addEventListener(t,n,r):e.addEventListener(t,n,r.capture)},ge.removeEventListener=function(e,t,n,r){void 0===r&&(r={}),"passive"in r&&xe?e.removeEventListener(t,n,r):e.removeEventListener(t,n,r.capture)};
1var Ee=function(t){t.preventDefault(),t.stopPropagation(),e.window.removeEventListener("click",Ee,!0)};ge.suppressClick=function(){e.window.addEventListener("click",Ee,!0),e.window.setTimeout(function(){e.window.removeEventListener("click",Ee,!0)},0)},ge.mousePos=function(t,n){var r=t.getBoundingClientRect(),o=e.window.TouchEvent&&n instanceof e.window.TouchEvent?n.touches[0]:n;return new e.Point(o.clientX-r.left-t.clientLeft,o.clientY-r.top-t.clientTop)},ge.touchPos=function(t,n){for(var r=t.getBoundingClientRect(),o=[],i="touchend"===n.type?n.changedTouches:n.touches,a=0;a<i.length;a++)o.push(new e.Point(i[a].clientX-r.left-t.clientLeft,i[a].clientY-r.top-t.clientTop));return o},ge.mouseButton=function(t){return void 0!==e.window.InstallTrigger&&2===t.button&&t.ctrlKey&&e.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button},ge.remove=function(e){e.parentNode&&e.parentNode.removeChild(e)};var Te=function(t){function r(){t.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.RGBAImage({width:1,height:1}),this.dirty=!0}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(e){if(this.loaded!==e&&(this.loaded=e,e)){for(var t=0,n=this.requestors;t<n.length;t+=1){var r=n[t],o=r.ids,i=r.callback;this._notify(o,i)}this.requestors=[]}},r.prototype.getImage=function(e){return this.images[e]},r.prototype.addImage=function(e,t){this.images[e]=t},r.prototype.updateImage=function(e,t){var n=this.images[e];t.version=n.version+1,this.images[e]=t,this.updatedImages[e]=!0},r.prototype.removeImage=function(e){var t=this.images[e];delete this.images[e],delete this.patterns[e],t.userImage&&t.userImage.onRemove&&t.userImage.onRemove()},r.prototype.listImages=function(){return Object.keys(this.images)},r.prototype.getImages=function(e,t){var n=!0;if(!this.isLoaded())for(var r=0,o=e;r<o.length;r+=1){var i=o[r];this.images[i]||(n=!1)}this.isLoaded()||n?this._notify(e,t):this.requestors.push({ids:e,callback:t})},r.prototype._notify=function(t,n){for(var r={},o=0,i=t;o<i.length;o+=1){var a=i[o];this.images[a]||this.fire(new e.Event("styleimagemissing",{id:a}));var s=this.images[a];s?r[a]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,hasRenderCallback:Boolean(s.userImage&&s.userImage.render)}:e.warnOnce('Image "'+a+'" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.')}n(null,r)},r.prototype.getPixelSize=function(){var e=this.atlasImage;return{width:e.width,height:e.height}},r.prototype.getPattern=function(t){var n=this.patterns[t],r=this.getImage(t);if(!r)return null;if(n&&n.position.version===r.version)return n.position;if(n)n.position.version=r.version;else{var o={w:r.data.width+2,h:r.data.height+2,x:0,y:0},i=new e.ImagePosition(o,r);this.patterns[t]={bin:o,position:i}}return this._updatePatternAtlas(),this.patterns[t].position},r.prototype.bind=function(t){var n=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new e.Texture(t,this.atlasImage,n.RGBA),this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)},r.prototype._updatePatternAtlas=function(){var t=[];for(var n in this.patterns)t.push(this.patterns[n].bin);var r=e.potpack(t),o=r.w,i=r.h,a=this.atlasImage;for(var s in a.resize({width:o||1,height:i||1}),this.patterns){var l=this.patterns[s].bin,u=l.x+1,c=l.y+1,p=this.images[s].data,f=p.width,h=p.height;e.RGBAImage.copy(p,a,{x:0,y:0},{x:u,y:c},{width:f,height:h}),e.RGBAImage.copy(p,a,{x:0,y:h-1},{x:u,y:c-1},{width:f,height:1}),e.RGBAImage.copy(p,a,{x:0,y:0},{x:u,y:c+h},{width:f,height:1}),e.RGBAImage.copy(p,a,{x:f-1,y:0},{x:u-1,y:c},{width:1,height:h}),e.RGBAImage.copy(p,a,{x:0,y:0},{x:u+f,y:c},{width:1,height:h})}this.dirty=!0},r.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},r.prototype.dispatchRenderCallbacks=function(e){for(var t=0,r=e;t<r.length;t+=1){var o=r[t];if(!this.callbackDispatchedThisFrame[o]){this.callbackDispatchedThisFrame[o]=!0;var i=this.images[o];n(i)&&this.updateImage(o,i)}}},r}(e.Evented),Oe=r,Ce=r,Se=1e20;r.prototype.draw=function(e){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(e,this.buffer,this.middle);for(var t=this.ctx.getImageData(0,0,this.size,this.size),n=new Uint8ClampedArray(this.size*this.size),r=0;r<this.size*this.size;r++){var i=t.data[4*r+3]/255;this.gridOuter[r]=1===i?0:0===i?Se:Math.pow(Math.max(0,.5-i),2),this.gridInner[r]=1===i?Se:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(o(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),o(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),r=0;r<this.size*this.size;r++){var a=this.gridOuter[r]-this.gridInner[r];n[r]=Math.max(0,Math.min(255,Math.round(255-255*(a/this.radius+this.cutoff))))}return n},Oe.default=Ce;var ke=function(e,t){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={}};ke.prototype.setURL=function(e){this.url=e},ke.prototype.getGlyphs=function(t,n){var r=this,o=[];for(var i in t)for(var a=0,s=t[i];a<s.length;a+=1){var l=s[a];o.push({stack:i,id:l})}e.asyncAll(o,function(e,t){var n=e.stack,o=e.id,i=r.entries[n];i||(i=r.entries[n]={glyphs:{},requests:{}});var a=i.glyphs[o];if(void 0===a){if(a=r._tinySDF(i,n,o))return i.glyphs[o]=a,void t(null,{stack:n,id:o,glyph:a});var s=Math.floor(o/256);if(256*s>65535)t(new Error("glyphs > 65535 not supported"));else{var l=i.requests[s];l||(l=i.requests[s]=[],ke.loadGlyphRange(n,s,r.url,r.requestManager,function(e,t){if(t)for(var n in t)r._doesCharSupportLocalGlyph(+n)||(i.glyphs[+n]=t[+n]);for(var o=0,a=l;o<a.length;o+=1)(0,a[o])(e,t);delete i.requests[s]})),l.push(function(e,r){e?t(e):r&&t(null,{stack:n,id:o,glyph:r[o]||null})})}}else t(null,{stack:n,id:o,glyph:a})},function(e,t){if(e)n(e);else if(t){for(var r={},o=0,i=t;o<i.length;o+=1){var a=i[o],s=a.stack,l=a.id,u=a.glyph;(r[s]||(r[s]={}))[l]=u&&{id:u.id,bitmap:u.bitmap.clone(),metrics:u.metrics}}n(null,r)}})},ke.prototype._doesCharSupportLocalGlyph=function(t){return!!this.localIdeographFontFamily&&
vendor: 4,223 bytes, line 1
1(e.isChar["CJK Unified Ideographs"](t)||e.isChar["Hangul Syllables"](t)||e.isChar.Hiragana(t)||e.isChar.Katakana(t))},ke.prototype._tinySDF=function(t,n,r){var o=this.localIdeographFontFamily;if(o&&this._doesCharSupportLocalGlyph(r)){var i=t.tinySDF;if(!i){var a="400";/bold/i.test(n)?a="900":/medium/i.test(n)?a="500":/light/i.test(n)&&(a="200"),i=t.tinySDF=new ke.TinySDF(24,3,8,.25,o,a)}return{id:r,bitmap:new e.AlphaImage({width:30,height:30},i.draw(String.fromCharCode(r))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},ke.loadGlyphRange=function(t,n,r,o,i){var a=256*n,s=a+255,l=o.transformRequest(o.normalizeGlyphsURL(r).replace("{fontstack}",t).replace("{range}",a+"-"+s),e.ResourceType.Glyphs);e.getArrayBuffer(l,function(t,n){if(t)i(t);else if(n){for(var r={},o=0,a=e.parseGlyphPBF(n);o<a.length;o+=1){var s=a[o];r[s.id]=s}i(null,r)}})},ke.TinySDF=Oe;var Ae=function(){this.specification=e.styleSpec.light.position};Ae.prototype.possiblyEvaluate=function(t,n){return e.sphericalToCartesian(t.expression.evaluate(n))},Ae.prototype.interpolate=function(t,n,r){return{x:e.number(t.x,n.x,r),y:e.number(t.y,n.y,r),z:e.number(t.z,n.z,r)}};var Pe=new e.Properties({anchor:new e.DataConstantProperty(e.styleSpec.light.anchor),position:new Ae,color:new e.DataConstantProperty(e.styleSpec.light.color),intensity:new e.DataConstantProperty(e.styleSpec.light.intensity)}),Re=function(t){function n(n){t.call(this),this._transitionable=new e.Transitionable(Pe),this.setLight(n),this._transitioning=this._transitionable.untransitioned()}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.getLight=function(){return this._transitionable.serialize()},n.prototype.setLight=function(t,n){if(void 0===n&&(n={}),!this._validate(e.validateLight,t,n))for(var r in t){var o=t[r];e.endsWith(r,"-transition")?this._transitionable.setTransition(r.slice(0,-"-transition".length),o):this._transitionable.setValue(r,o)}},n.prototype.updateTransitions=function(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)},n.prototype.hasTransition=function(){return this._transitioning.hasTransition()},n.prototype.recalculate=function(e){this.properties=this._transitioning.possiblyEvaluate(e)},n.prototype._validate=function(t,n,r){return(!r||!1!==r.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.styleSpec})))},n}(e.Evented),De=function(e,t){this.width=e,this.height=t,this.nextRow=0,this.bytes=4,this.data=new Uint8Array(this.width*this.height*this.bytes),this.positions={}};De.prototype.getDash=function(e,t){var n=e.join(",")+String(t);return this.positions[n]||(this.positions[n]=this.addDash(e,t)),this.positions[n]},De.prototype.addDash=function(t,n){var r=n?7:0,o=2*r+1;if(this.nextRow+o>this.height)return e.warnOnce("LineAtlas out of space"),null;for(var i=0,a=0;a<t.length;a++)i+=t[a];for(var s=this.width/i,l=s/2,u=t.length%2==1,c=-r;c<=r;c++)for(var p=this.nextRow+r+c,f=this.width*p,h=u?-t[t.length-1]:0,d=t[0],m=1,y=0;y<this.width;y++){for(;d<y/s;)h=d,d+=t[m],u&&m===t.length-1&&(d+=t[0]),m++;var g=Math.abs(y-h*s),v=Math.abs(y-d*s),_=Math.min(g,v),b=m%2==1,x=void 0;if(n){var w=r?c/r*(l+1):0;if(b){var E=l-Math.abs(w);x=Math.sqrt(_*_+E*E)}else x=l-Math.sqrt(_*_+w*w)}else x=(b?1:-1)*_;this.data[3+4*(f+y)]=Math.max(0,Math.min(255,x+128))}var T={y:(this.nextRow+r+.5)/this.height,height:2*r/this.height,width:i};return this.nextRow+=o,this.dirty=!0,T},De.prototype.bind=function(e){var t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.RGBA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.width,this.height,0,t.RGBA,t.UNSIGNED_BYTE,this.data))};var Ie=function t(n,r){this.workerPool=n,this.actors=[],this.currentActor=0,this.id=e.uniqueId();
1for(var o=this.workerPool.acquire(this.id),i=0;i<o.length;i++){var a=o[i],s=new t.Actor(a,r,this.id);s.name="Worker "+i,this.actors.push(s)}};Ie.prototype.broadcast=function(t,n,r){r=r||function(){},e.asyncAll(this.actors,function(e,r){e.send(t,n,r)},r)},Ie.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},Ie.prototype.remove=function(){this.actors.forEach(function(e){e.remove()}),this.actors=[],this.workerPool.release(this.id)},Ie.Actor=e.Actor;var Me=function(t,n,r){this.bounds=e.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=r||24};Me.prototype.validateBounds=function(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]},Me.prototype.contains=function(t){var n=Math.pow(2,t.z),r=Math.floor(e.mercatorXfromLng(this.bounds.getWest())*n),o=Math.floor(e.mercatorYfromLat(this.bounds.getNorth())*n),i=Math.ceil(e.mercatorXfromLng(this.bounds.getEast())*n),a=Math.ceil(e.mercatorYfromLat(this.bounds.getSouth())*n);return t.x>=r&&t.x<i&&t.y>=o&&t.y<a};var Le=function(t){function n(n,r,o,i){if(t.call(this),this.id=n,this.dispatcher=o,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.extend(this,e.pick(r,["url","scheme","tileSize"])),this._options=e.extend({type:"vector"},r),this._collectResourceTiming=r.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(i)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=a(this._options,this.map._requestManager,function(n,r){t._tileJSONRequest=null,t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(e.extend(t,r),r.bounds&&(t.tileBounds=new Me(r.bounds,t.minzoom,t.maxzoom)),e.postTurnstileEvent(r.tiles,t.map._requestManager._customAccessToken),e.postMapLoadEvent(r.tiles,t.map._getMapId(),t.map._requestManager._skuToken,t.map._requestManager._customAccessToken),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})},n.prototype.loaded=function(){return this._loaded},n.prototype.hasTile=function(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return e.extend({},this._options)},n.prototype.loadTile=function(t,n){function r(r,o){return delete t.request,t.aborted?n(null):r&&404!==r.status?n(r):(o&&o.resourceTiming&&(t.resourceTiming=o.resourceTiming),this.map._refreshExpiredTiles&&o&&t.setExpiryData(o),t.loadVectorData(o,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}var o=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),this.url,null),i={request:this.map._requestManager.transformRequest(o,e.ResourceType.Tile),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.t
1ype,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};i.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state?"loading"===t.state?t.reloadCallback=n:t.request=t.actor.send("reloadTile",i,r.bind(this)):(t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",i,r.bind(this)))},n.prototype.abortTile=function(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id},void 0)},n.prototype.unloadTile=function(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id},void 0)},n.prototype.hasTransition=function(){return!1},n}(e.Evented),je=function(t){function n(n,r,o,i){t.call(this),this.id=n,this.dispatcher=o,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.extend({type:"raster"},r),e.extend(this,e.pick(r,["url","scheme","tileSize"]))}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=a(this._options,this.map._requestManager,function(n,r){t._tileJSONRequest=null,t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(e.extend(t,r),r.bounds&&(t.tileBounds=new Me(r.bounds,t.minzoom,t.maxzoom)),e.postTurnstileEvent(r.tiles),e.postMapLoadEvent(r.tiles,t.map._getMapId(),t.map._requestManager._skuToken),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})},n.prototype.loaded=function(){return this._loaded},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return e.extend({},this._options)},n.prototype.hasTile=function(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)},n.prototype.loadTile=function(t,n){var r=this,o=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),this.url,this.tileSize);t.request=e.getImage(this.map._requestManager.transformRequest(o,e.ResourceType.Tile),function(o,i){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(o)t.state="errored",n(o);else if(i){r.map._refreshExpiredTiles&&t.setExpiryData(i),delete i.cacheControl,delete i.expires;var a=r.map.painter.context,s=a.gl;t.texture=r.map.painter.getTileTexture(i.width),t.texture?t.texture.update(i,{useMipmap:!0}):(t.texture=new e.Texture(a,i,s.RGBA,{useMipmap:!0}),t.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),a.extTextureFilterAnisotropic&&s.texParameterf(s.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax)),t.state="loaded",e.cacheEntryPossiblyAdded(r.dispatcher),n(null)}})},n.prototype.abortTile=function(e,t){e.request&&(e.request.cancel(),delete e.request),t()},n.prototype.unloadTile=function(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()},n.prototype.hasTransition=function(){return!1},n}(e.Evented),ze=function(t){function n(n,r,o,i){t.call(this,n,r,o,i),this.type="raster-dem",this.maxzoom=22,this._options=e.extend({type:"raster-dem"},r),this.encoding=r.encoding||"mapbox"}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},n.prototype.loadTile=function(t,n){var r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),this.url,this.tileSize);t.request=e.getImage(this.map._requestManager.transformRequest(r,e.ResourceType.Tile),function(r,o){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(r)t.state="errored",n(r);else if(o){this.map._refreshExpiredTiles&&t.setExpiryData(o),delete o.cacheControl,delete o.expires;
1var i=e.browser.getImageData(o),a={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:i,encoding:this.encoding};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",a,function(e,r){e&&(t.state="errored",n(e)),r&&(t.dem=r,t.needsHillshadePrepare=!0,t.state="loaded",n(null))}.bind(this)))}}.bind(this)),t.neighboringTiles=this._getNeighboringTiles(t.tileID)},n.prototype._getNeighboringTiles=function(t){var n=t.canonical,r=Math.pow(2,n.z),o=(n.x-1+r)%r,i=0===n.x?t.wrap-1:t.wrap,a=(n.x+1+r)%r,s=n.x+1===r?t.wrap+1:t.wrap,l={};return l[new e.OverscaledTileID(t.overscaledZ,i,n.z,o,n.y).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y).key]={backfilled:!1},n.y>0&&(l[new e.OverscaledTileID(t.overscaledZ,i,n.z,o,n.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y-1).key]={backfilled:!1}),n.y+1<r&&(l[new e.OverscaledTileID(t.overscaledZ,i,n.z,o,n.y+1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y+1).key]={backfilled:!1}),l},n.prototype.unloadTile=function(e){e.demTexture&&this.map.painter.saveTileTexture(e.demTexture),e.fbo&&(e.fbo.destroy(),delete e.fbo),e.dem&&delete e.dem,delete e.neighboringTiles,e.state="unloaded",e.actor&&e.actor.send("removeDEMTile",{uid:e.uid,source:this.id})},n}(je),Fe=function(t){function n(n,r,o,i){t.call(this),this.id=n,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=o.getActor(),this.setEventedParent(i),this._data=r.data,this._options=e.extend({},r),this._collectResourceTiming=r.collectResourceTiming,this._resourceTiming=[],void 0!==r.maxzoom&&(this.maxzoom=r.maxzoom),r.type&&(this.type=r.type),r.attribution&&(this.attribution=r.attribution);var a=e.EXTENT/this.tileSize;this.workerOptions=e.extend({source:this.id,cluster:r.cluster||!1,geojsonVtOptions:{buffer:(void 0!==r.buffer?r.buffer:128)*a,tolerance:(void 0!==r.tolerance?r.tolerance:.375)*a,extent:e.EXTENT,maxZoom:this.maxzoom,lineMetrics:r.lineMetrics||!1,generateId:r.generateId||!1},superclusterOptions:{maxZoom:void 0!==r.clusterMaxZoom?Math.min(r.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:e.EXTENT,radius:(r.clusterRadius||50)*a,log:!1},clusterProperties:r.clusterProperties},r.workerOptions)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){var t=this;this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(n){if(n)t.fire(new e.ErrorEvent(n));else{var r={dataType:"source",sourceDataType:"metadata"};t._collectResourceTiming&&t._resourceTiming&&t._resourceTiming.length>0&&(r.resourceTiming=t._resourceTiming,t._resourceTiming=[]),t.fire(new e.Event("data",r))}})},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setData=function(t){var n=this;return this._data=t,this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(t){if(t)n.fire(new e.ErrorEvent(t));else{var r={dataType:"source",sourceDataType:"content"};n._collectResourceTiming&&n._resourceTiming&&n._resourceTiming.length>0&&(r.resourceTiming=n._resourceTiming,n._resourceTiming=[]),n.fire(new e.Event("data",r))}}),this},n.prototype.getClusterExpansionZoom=function(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this},n.prototype.getClusterChildren=function(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this},n.prototype.getClusterLeaves=function(e,t,n,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:n},r),this},n.prototype._updateWorkerData=function(t){var n=this;this._loaded=!1;var r=e.extend({},this.workerOptions),o=this._data;"string"==typeof o?(r.request=this.map._requestManager.transformRequest(e.browser.resolveURL(o),e.ResourceType.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(o),this.actor.send(this.type+".loadData",r,function(e,o){n._removed||o&&o.abandoned||(n._loaded=!0,o&&o.resourceTiming&&o.resourceTiming[n.id]&&(n._resourceTiming=o.resourceTiming[n.id].slice(0)),n.actor.send(n.t
1ype+".coalesce",{source:r.source},null),t(e))})},n.prototype.loaded=function(){return this._loaded},n.prototype.loadTile=function(t,n){var r=this,o=t.actor?"reloadTile":"loadTile";t.actor=this.actor;var i={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};t.request=this.actor.send(o,i,function(e,i){return delete t.request,t.unloadVectorData(),t.aborted?n(null):e?n(e):(t.loadVectorData(i,r.map.painter,"reloadTile"===o),n(null))})},n.prototype.abortTile=function(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0},n.prototype.unloadTile=function(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})},n.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},n.prototype.serialize=function(){return e.extend({},this._options,{type:this.type,data:this._data})},n.prototype.hasTransition=function(){return!1},n}(e.Evented),Ne=function(t){function n(e,n,r,o){t.call(this),this.id=e,this.dispatcher=r,this.coordinates=n.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(o),this.options=n}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(t,n){var r=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),function(o,i){r._loaded=!0,o?r.fire(new e.ErrorEvent(o)):i&&(r.image=i,t&&(r.coordinates=t),n&&n(),r._finishLoading())})},n.prototype.loaded=function(){return this._loaded},n.prototype.updateImage=function(e){var t=this;return this.image&&e.url?(this.options.url=e.url,this.load(e.coordinates,function(){t.texture=null}),this):this},n.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setCoordinates=function(t){var n=this;this.coordinates=t;var r=t.map(e.MercatorCoordinate.fromLngLat);this.tileID=function(t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0,s=t;a<s.length;a+=1){var l=s[a];n=Math.min(n,l.x),r=Math.min(r,l.y),o=Math.max(o,l.x),i=Math.max(i,l.y)}var u=o-n,c=i-r,p=Math.max(u,c),f=Math.max(0,Math.floor(-Math.log(p)/Math.LN2)),h=Math.pow(2,f);return new e.CanonicalTileID(f,Math.floor((n+o)/2*h),Math.floor((r+i)/2*h))}(r),this.minzoom=this.maxzoom=this.tileID.z;var o=r.map(function(e){return n.tileID.getTilePoint(e)._round()});return this._boundsArray=new e.StructArrayLayout4i8,this._boundsArray.emplaceBack(o[0].x,o[0].y,0,0),this._boundsArray.emplaceBack(o[1].x,o[1].y,e.EXTENT,0),this._boundsArray.emplaceBack(o[3].x,o[3].y,0,e.EXTENT),this._boundsArray.emplaceBack(o[2].x,o[2].y,e.EXTENT,e.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this},n.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var t=this.map.painter.context,n=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,e.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new e.Texture(t,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var o=this.tiles[r];"loaded"!==o.state&&(o.state="loaded",o.texture=this.texture)}}},n.prototype.loadTile=function(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))},n.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return!1},n}(e.Evented),Be=function(t){function n(e,n,r,o){t.call(this,e,n,r,o),this.roundZoom=!0,this.type="video",this.options=n}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1;var n=this.options;this.urls=[];for(var r=0,o=n.urls;r<o.length;r+=1){var i=o[r];this.urls.push(this.map._requestManager.transformRequest(i,e.ResourceType.Source).url)}e.getVideo(this.urls,function(n,r){t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(t.video=r,t.video.loop=!0,t.video.addEventListener("playing",function(){t.map.triggerRepaint()}),t.map&&t.video.play(),t._finishLoading())})},n.prototype.pause=function(){this.video&&this.video.pause()},n.prototype.play=function(){this.video&&this.video.play()},n.prototype.seek=function(t){if(this.video){var n=this.video.seekable;t<n.start(0)||t>n.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError("Playback for this video can be set only between the "+n.start(0)+" and "+n.end(0)+"-second mark."))):this.video.currentTime=t}},n.prototype.getVideo=function(){return this.video}
vendor: 9,223 bytes, line 1
1,n.prototype.onAdd=function(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},n.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var t=this.map.painter.context,n=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,e.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var o=this.tiles[r];"loaded"!==o.state&&(o.state="loaded",o.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this.video&&!this.video.paused},n}(Ne),Ue=function(t){function n(n,r,o,i){t.call(this,n,r,o,i),r.coordinates?Array.isArray(r.coordinates)&&4===r.coordinates.length&&!r.coordinates.some(function(e){return!Array.isArray(e)||2!==e.length||e.some(function(e){return"number"!=typeof e})})||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'optional "animate" property must be a boolean value'))),r.canvas?"string"==typeof r.canvas||r.canvas instanceof e.window.HTMLCanvasElement||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,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 e.ErrorEvent(new e.ValidationError("sources."+n,null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},n.prototype.getCanvas=function(){return this.canvas},n.prototype.onAdd=function(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()},n.prototype.onRemove=function(){this.pause()},n.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 n=this.map.painter.context,r=n.gl;for(var o in this.boundsBuffer||(this.boundsBuffer=n.createVertexBuffer(this._boundsArray,e.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(n,this.canvas,r.RGBA,{premultiply:!0}),this.tiles){var i=this.tiles[o];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this._playing},n.prototype._hasInvalidDimensions=function(){for(var e=0,t=[this.canvas.width,this.canvas.height];e<t.length;e+=1){var n=t[e];if(isNaN(n)||n<=0)return!0}return!1},n}(Ne),Ve={vector:Le,raster:je,"raster-dem":ze,geojson:Fe,video:Be,image:Ne,canvas:Ue},He=function(t,n,r,o){var i=new Ve[n.type](t,n,r,o);if(i.id!==t)throw new Error("Expected Source id to be "+t+" instead of "+i.id);return e.bindAll(["load","abort","unload","serialize","prepare"],i),i},qe=function(e,t){this.max=e,this.onRemove=t,this.reset()};qe.prototype.reset=function(){for(var e in this.data)for(var t=0,n=this.data[e];t<n.length;t+=1){var r=n[t];r.timeout&&clearTimeout(r.timeout),this.onRemove(r.value)}return this.data={},this.order=[],this},qe.prototype.add=function(e,t,n){var r=this,o=e.wrapped().key;void 0===this.data[o]&&(this.data[o]=[]);var i={value:t,timeout:void 0};if(void 0!==n&&(i.timeout=setTimeout(function(){r.remove(e,i)},n)),this.data[o].push(i),this.order.push(o),this.order.length>this.max){var a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this},qe.prototype.has=function(e){return e.wrapped().key in this.data},qe.prototype.getAndRemove=function(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null},qe.prototype._getAndRemoveByKey=function(e){var t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value},qe.prototype.get=function(e){return this.has(e)?this.data[e.wrapped().key][0].value:null},qe.prototype.remove=function(e,t){if(!this.has(e))return this;var n=e.wrapped().key,r=void 0===t?0:this.data[n].indexOf(t),o=this.data[n][r];return this.data[n].splice(r,1),o.timeout&&clearTimeout(o.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(o.value),this.order.splice(this.order.indexOf(n),1),this},qe.prototype.setMaxSize=function(e){for(this.max=e;this.order.length>this.max;){var t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this};var Ge=function(e,t,n){this.context=e;var r=e.gl;this.buffer=r.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer};Ge.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},Ge.prototype.updateData=function(e){var t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)},Ge.prototype.destroy=function(){var e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)};var We={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},Ze=function(e,t,n,r){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.context=e;var o=e.gl;this.buffer=o.createBuffer(),e.bindVertexBuffer.set(this.buffer),o.bufferData(o.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?o.DYNAMIC_DRAW:o.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer};Ze.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},Ze.prototype.updateData=function(e){var t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)},Ze.prototype.enableAttributes=function(e,t){for(var n=0;n<this.attributes.length;n++){var r=this.attributes[n],o=t.attributes[r.name];void 0!==o&&e.enableVertexAttribArray(o)}},Ze.prototype.setVertexAttribPointers=function(e,t,n){for(var r=0;r<this.attributes.length;r++){var o=this.attributes[r],i=t.attributes[o.name];void 0!==i&&e.vertexAttribPointer(i,o.components,e[We[o.type]],!1,this.itemSize,o.offset+this.itemSize*(n||0))}},Ze.prototype.destroy=function(){var e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)};var Ke=function(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};Ke.prototype.get=function(){return this.current},Ke.prototype.set=function(e){},Ke.prototype.getDefault=function(){return this.default},Ke.prototype.setDefault=function(){this.set(this.default)};var Xe=function(t){function n(){t.apply(this,arguments)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.getDefault=function(){return e.Color.transparent},n.prototype.set=function(e){var t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)},n}(Ke),Ye=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return 1},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)},t}(Ke),Je=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return 0},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)},t}(Ke),$e=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return[!0,
vendor: 10,722 bytes, line 1
1!0,!0,!0]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)},t}(Ke),Qe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!0},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)},t}(Ke),et=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return 255},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)},t}(Ke),tt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},t.prototype.set=function(e){var t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)},t}(Ke),nt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)},t}(Ke),rt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}},t}(Ke),ot=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return[0,1]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)},t}(Ke),it=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}},t}(Ke),at=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.LESS},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)},t}(Ke),st=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}},t}(Ke),lt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[e.ONE,e.ZERO]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)},t}(Ke),ut=function(t){function n(){t.apply(this,arguments)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.getDefault=function(){return e.Color.transparent},n.prototype.set=function(e){var t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)},n}(Ke),ct=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.FUNC_ADD},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)},t}(Ke),pt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}},t}(Ke),ft=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.BACK},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)},t}(Ke),ht=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.CCW},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)},t}(Ke),dt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)},t}(Ke),mt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.TEXTURE0},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)},t}(Ke),yt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)},t}(Ke),gt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}},t}(Ke),vt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},t}(Ke),_t=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}},t}(Ke),bt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},t}(Ke),xt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){var t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1},t}(Ke),wt=function(e){function t(t){e.call(this,t),this.vao=t.extVertexArrayObject}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){this.vao&&(e!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(e),this.current=e,this.dirty=!1)},t}(Ke),Et=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return 4},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}},t}(Ke),Tt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}},t}(Ke),Ot=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}},t}(Ke),Ct=function(e){function t(t,n){e.call(this,t),this.context=t,this.parent=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t}(Ke),St=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setDirty=function(){this.dirty=!0},t.prototype.set=function(e){if(e!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}},t}(Ct),kt=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){if(e!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},t}(Ct),At=function(e,t,n){this.context=e,this.width=t,this.height=n;var r=e.gl,o=this.framebuffer=r.createFramebuffer();
1this.colorAttachment=new St(e,o),this.depthAttachment=new kt(e,o)};At.prototype.destroy=function(){var e=this.context.gl,t=this.colorAttachment.get();t&&e.deleteTexture(t);var n=this.depthAttachment.get();n&&e.deleteRenderbuffer(n),e.deleteFramebuffer(this.framebuffer)};var Pt=function(e,t,n){this.func=e,this.mask=t,this.range=n};Pt.ReadOnly=!1,Pt.ReadWrite=!0,Pt.disabled=new Pt(519,Pt.ReadOnly,[0,1]);var Rt=function(e,t,n,r,o,i){this.test=e,this.ref=t,this.mask=n,this.fail=r,this.depthFail=o,this.pass=i};Rt.disabled=new Rt({func:519,mask:0},0,0,7680,7680,7680);var Dt=function(e,t,n){this.blendFunction=e,this.blendColor=t,this.mask=n};Dt.Replace=[1,0],Dt.disabled=new Dt(Dt.Replace,e.Color.transparent,[!1,!1,!1,!1]),Dt.unblended=new Dt(Dt.Replace,e.Color.transparent,[!0,!0,!0,!0]),Dt.alphaBlended=new Dt([1,771],e.Color.transparent,[!0,!0,!0,!0]);var It=function(e,t,n){this.enable=e,this.mode=t,this.frontFace=n};It.disabled=new It(!1,1029,2305),It.backCCW=new It(!0,1029,2305);var Mt=function(e){this.gl=e,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new Xe(this),this.clearDepth=new Ye(this),this.clearStencil=new Je(this),this.colorMask=new $e(this),this.depthMask=new Qe(this),this.stencilMask=new et(this),this.stencilFunc=new tt(this),this.stencilOp=new nt(this),this.stencilTest=new rt(this),this.depthRange=new ot(this),this.depthTest=new it(this),this.depthFunc=new at(this),this.blend=new st(this),this.blendFunc=new lt(this),this.blendColor=new ut(this),this.blendEquation=new ct(this),this.cullFace=new pt(this),this.cullFaceSide=new ft(this),this.frontFace=new ht(this),this.program=new dt(this),this.activeTexture=new mt(this),this.viewport=new yt(this),this.bindFramebuffer=new gt(this),this.bindRenderbuffer=new vt(this),this.bindTexture=new _t(this),this.bindVertexBuffer=new bt(this),this.bindElementBuffer=new xt(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new wt(this),this.pixelStoreUnpack=new Et(this),this.pixelStoreUnpackPremultiplyAlpha=new Tt(this),this.pixelStoreUnpackFlipY=new Ot(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=e.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&e.getExtension("OES_texture_half_float_linear")};Mt.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Mt.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Mt.prototype.createIndexBuffer=function(e,t){return new Ge(this,e,t)},Mt.prototype.createVertexBuffer=function(e,t,n){return new Ze(this,e,t,n)},Mt.prototype.createRenderbuffer=function(e,t,n){var r=this.gl,o=r.createRenderbuffer();return this.bindRenderbuffer.set(o),r.renderbufferStorage(r.RENDERBUFFER,e,t,n),this.bindRenderbuffer.set(null),o},Mt.prototype.createFramebuffer=function(e,t){return new At(this,e,t)},Mt.prototype.clear=function(e){var t=e.color,n=e.depth,r=this.gl,o=0;t&&(o|=r.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),void 0!==n&&(o|=r.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(n),this.depthMask.set(!0)),r.clear(o)},Mt.prototype.setCullFace=function(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))},Mt.prototype.setDepthMode=function(e){e.func!==this.gl.ALWAYS||e.mask?(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range)):this.depthTest.set(!1)},Mt.prototype.setStencilMode=function(e){e.test.func!==this.gl.ALWAYS||e.mask?(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask})):this.stencilTest.set(!1)},Mt.prototype.setColorMode=function(t){e.deepEqual(t.blendFunction,Dt.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask)},Mt.prototype.unbindVAO=function(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)};var Lt=function(t){function n(n,r,o){var i=this;t.call(this),this.id=n,this.dispatcher=o,this.on("data",function(e){"source"===e.dataType&&"metadata"===e.sourceDataType&&(i._sourceLoaded=!0),i._sourceLoaded&&!i._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(i.reload(),i.transform&&i.update(i.transform))}),this.on("error",function(){i._sourceErrored=!0}),this._source=He(n,r,o,this),this._tiles={},this._cache=new qe(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={}
1,this._maxTileCacheSize=null,this._coveredTiles={},this._state=new e.SourceFeatureState}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.onAdd=function(e){this.map=e,this._maxTileCacheSize=e?e._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(e)},n.prototype.onRemove=function(e){this._source&&this._source.onRemove&&this._source.onRemove(e)},n.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var e in this._tiles){var t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0},n.prototype.getSource=function(){return this._source},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){if(this._paused){var e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}},n.prototype._loadTile=function(e,t){return this._source.loadTile(e,t)},n.prototype._unloadTile=function(e){if(this._source.unloadTile)return this._source.unloadTile(e,function(){})},n.prototype._abortTile=function(e){if(this._source.abortTile)return this._source.abortTile(e,function(){})},n.prototype.serialize=function(){return this._source.serialize()},n.prototype.prepare=function(e){for(var t in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var n=this._tiles[t];n.upload(e),n.prepare(this.map.style.imageManager)}},n.prototype.getIds=function(){return Object.keys(this._tiles).map(Number).sort(c)},n.prototype.getRenderableIds=function(t){var n=this,r=[];for(var o in this._tiles)this._isIdRenderable(+o,t)&&r.push(+o);return t?r.sort(function(t,r){var o=n._tiles[t].tileID,i=n._tiles[r].tileID,a=new e.Point(o.canonical.x,o.canonical.y)._rotate(n.transform.angle),s=new e.Point(i.canonical.x,i.canonical.y)._rotate(n.transform.angle);return o.overscaledZ-i.overscaledZ||s.y-a.y||s.x-a.x}):r.sort(c)},n.prototype.hasRenderableParent=function(e){var t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)},n.prototype._isIdRenderable=function(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())},n.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var e in this._cache.reset(),this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(e,"reloading")},n.prototype._reloadTile=function(e,t){var n=this._tiles[e];n&&("loading"!==n.state&&(n.state=t),this._loadTile(n,this._tileLoaded.bind(this,n,e,t)))},n.prototype._tileLoaded=function(t,n,r,o){if(o)return t.state="errored",void(404!==o.status?this._source.fire(new e.ErrorEvent(o,{tile:t})):this.update(this.transform));t.timeAdded=e.browser.now(),"expired"===r&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(n,t),"raster-dem"===this.getSource().type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),this._source.fire(new e.Event("data",{dataType:"source",tile:t,coord:t.tileID}))},n.prototype._backfillDEM=function(e){function t(e,t){e.needsHillshadePrepare=!0;var n=t.tileID.canonical.x-e.tileID.canonical.x,r=t.tileID.canonical.y-e.tileID.canonical.y,o=Math.pow(2,e.tileID.canonical.z),i=t.tileID.key;0===n&&0===r||Math.abs(r)>1||(Math.abs(n)>1&&(1===Math.abs(n+o)?n+=o:1===Math.abs(n-o)&&(n-=o)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,r),e.neighboringTiles&&e.neighboringTiles[i]&&(e.neighboringTiles[i].backfilled=!0)))}for(var n=this.getRenderableIds(),r=0;r<n.length;r++){var o=n[r];if(e.neighboringTiles&&e.neighboringTiles[o]){var i=this.getTileByID(o);t(e,i),t(i,e)}}},n.prototype.getTile=function(e){return this.getTileByID(e.key)},n.prototype.getTileByID=function(e){return this._tiles[e]},n.prototype.getZoom=function(e){return e.zoom+e.scaleZoom(e.tileSize/this._source.tileSize)},n.prototype._retainLoadedChildren=function(e,t,n,r){for(var o in this._tiles){var i=this._tiles[o];if(!(r[o]||!i.hasData()||i.tileID.overscaledZ<=t||i.tileID.overscaledZ>n)){for(var a=i.tileID;i&&i.tileID.overscaledZ>t+1;){var s=i.tileID.scaledTo(i.tileID.overscaledZ-1);(i=this._tiles[s.key])&&i.hasData()&&(a=s)}for(var l=a;l.overscaledZ>t;)if(e[(l=l.scaledTo(l.overscaledZ-1)).key]){r[a.key]=a;break}}}},n.prototype.findLoadedParent=function(e,t){for(var n=e.overscaledZ-1;n>=t;n--){var r=e.scaledTo(n);if(!r)return;var o=String(r.key),i=this._tiles[o];if(i&&i.hasData())return i;if(this._cache.has(r))return this._cache.get(r)}},n.prototype.updateCacheSize=function(e){var t=(Math.ceil(e.width/this._source.tileSize)+1)*(Math.ceil(e.height/this._source.tileSize)+1),n=Math.floor(5*t),r="number"==typeof this._maxTileC
vendor: 4,875 bytes, line 1
1acheSize?Math.min(this._maxTileCacheSize,n):n;this._cache.setMaxSize(r)},n.prototype.handleWrapJump=function(e){var t=(e-(void 0===this._prevLng?e:this._prevLng))/360,n=Math.round(t);if(this._prevLng=e,n){var r={};for(var o in this._tiles){var i=this._tiles[o];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+n),r[i.tileID.key]=i}for(var a in this._tiles=r,this._timers)clearTimeout(this._timers[a]),delete this._timers[a];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},n.prototype.update=function(t){var r=this;if(this.transform=t,this._sourceLoaded&&!this._paused){var o;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?o=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(t){return new e.OverscaledTileID(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)}):(o=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(o=o.filter(function(e){return r._source.hasTile(e)}))):o=[];var i=(this._source.roundZoom?Math.round:Math.floor)(this.getZoom(t)),a=Math.max(i-n.maxOverzooming,this._source.minzoom),s=Math.max(i+n.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(o,i);if(p(this._source.type)){for(var u={},c={},f=0,h=Object.keys(l);f<h.length;f+=1){var d=h[f],m=l[d],y=this._tiles[d];if(y&&!(y.fadeEndTime&&y.fadeEndTime<=e.browser.now())){var g=this.findLoadedParent(m,a);g&&(this._addTile(g.tileID),u[g.tileID.key]=g.tileID),c[d]=m}}for(var v in this._retainLoadedChildren(c,i,s,l),u)l[v]||(this._coveredTiles[v]=!0,l[v]=u[v])}for(var _ in l)this._tiles[_].clearFadeHold();for(var b=0,x=e.keysDifference(this._tiles,l);b<x.length;b+=1){var w=x[b],E=this._tiles[w];E.hasSymbolBuckets&&!E.holdingForFade()?E.setHoldDuration(this.map._fadeDuration):E.hasSymbolBuckets&&!E.symbolFadeFinished()||this._removeTile(w)}}},n.prototype.releaseSymbolFadeTiles=function(){for(var e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(e)},n.prototype._updateRetainedTiles=function(e,t){for(var r={},o={},i=Math.max(t-n.maxOverzooming,this._source.minzoom),a=Math.max(t+n.maxUnderzooming,this._source.minzoom),s={},l=0,u=e;l<u.length;l+=1){var c=u[l],p=this._addTile(c);r[c.key]=c,p.hasData()||t<this._source.maxzoom&&(s[c.key]=c)}this._retainLoadedChildren(s,t,a,r);for(var f=0,h=e;f<h.length;f+=1){var d=h[f],m=this._tiles[d.key];if(!m.hasData()){if(t+1>this._source.maxzoom){var y=d.children(this._source.maxzoom)[0],g=this.getTile(y);if(g&&g.hasData()){r[y.key]=y;continue}}else{var v=d.children(this._source.maxzoom);if(r[v[0].key]&&r[v[1].key]&&r[v[2].key]&&r[v[3].key])continue}for(var _=m.wasRequested(),b=d.overscaledZ-1;b>=i;--b){var x=d.scaledTo(b);if(o[x.key])break;if(o[x.key]=!0,!(m=this.getTile(x))&&_&&(m=this._addTile(x)),m&&(r[x.key]=x,_=m.wasRequested(),m.hasData()))break}}}return r},n.prototype._addTile=function(t){var n=this._tiles[t.key];if(n)return n;(n=this._cache.getAndRemove(t))&&(this._setTileReloadTimer(t.key,n),n.tileID=t,this._state.initializeTileState(n,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,n)));var r=Boolean(n);return r||(n=new e.Tile(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(n,this._tileLoaded.bind(this,n,t.key,n.state))),n?(n.uses++,this._tiles[t.key]=n,r||this._source.fire(new e.Event("dataloading",{tile:n,coord:n.tileID,dataType:"source"})),n):null},n.prototype._setTileReloadTimer=function(e,t){var n=this;e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);var r=t.getExpiryTimeout();r&&(this._timers[e]=setTimeout(function(){n._reloadTile(e,"expired"),delete n._timers[e]},r))},n.prototype._removeTile=function(e){var t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))},n.prototype.clearTiles=function(){for(var e in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(e);this._cache.reset()},n.prototype.tilesIn=function(t,n,r){var o=this,i=[],a=this.transform;if(!a)return i;for(var s=r?a.getCameraQueryGeometry(t):t,l=t.map(function(e){return a.pointCoordinate(e)}),u=s.map(function(e){return a.pointCoordinate(e)}),c=this.getIds(),p=1/0,f=1/0,h=-1/0,d=-1/0,m=0,y=u;m<y.length;m+=1){var g=y[m];p=Math.min(p,g.x),f=Math.min(f,g.y),h=Math.max(h,g.x),d=Math.max(d,g.y)}for(var v=0;v<c.length;v++)!function(t){var r=o._tiles[c[t]];if(!r.holdingForFade()){var s=r.tileID,m=Math.pow(2,a.zoom-r.tileID.overscaledZ
1),y=n*r.queryPadding*e.EXTENT/r.tileSize/m,g=[s.getTilePoint(new e.MercatorCoordinate(p,f)),s.getTilePoint(new e.MercatorCoordinate(h,d))];if(g[0].x-y<e.EXTENT&&g[0].y-y<e.EXTENT&&g[1].x+y>=0&&g[1].y+y>=0){var v=l.map(function(e){return s.getTilePoint(e)}),_=u.map(function(e){return s.getTilePoint(e)});i.push({tile:r,tileID:s,queryGeometry:v,cameraQueryGeometry:_,scale:m})}}}(v);return i},n.prototype.getVisibleCoordinates=function(e){for(var t=this,n=this.getRenderableIds(e).map(function(e){return t._tiles[e].tileID}),r=0,o=n;r<o.length;r+=1){var i=o[r];i.posMatrix=this.transform.calculatePosMatrix(i.toUnwrapped())}return n},n.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(p(this._source.type))for(var t in this._tiles){var n=this._tiles[t];if(void 0!==n.fadeEndTime&&n.fadeEndTime>=e.browser.now())return!0}return!1},n.prototype.setFeatureState=function(e,t,n){e=e||"_geojsonTileLayer",this._state.updateState(e,t,n)},n.prototype.removeFeatureState=function(e,t,n){e=e||"_geojsonTileLayer",this._state.removeFeatureState(e,t,n)},n.prototype.getFeatureState=function(e,t){return e=e||"_geojsonTileLayer",this._state.getState(e,t)},n}(e.Evented);Lt.maxOverzooming=10,Lt.maxUnderzooming=3;var jt=function(){this.active={}};jt.prototype.acquire=function(e){if(!this.workers)for(this.workers=[];this.workers.length<jt.workerCount;)this.workers.push(new f);return this.active[e]=!0,this.workers.slice()},jt.prototype.release=function(e){delete this.active[e],0===Object.keys(this.active).length&&(this.workers.forEach(function(e){e.terminate()}),this.workers=null)};var zt,Ft=Math.floor(e.browser.hardwareConcurrency/2);jt.workerCount=Math.max(Math.min(Ft,6),1);var Nt={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"},Bt=function(e,t,n){var r=this.boxCells=[],o=this.circleCells=[];this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(t/n);for(var i=0;i<this.xCellCount*this.yCellCount;i++)r.push([]),o.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=e,this.height=t,this.xScale=this.xCellCount/e,this.yScale=this.yCellCount/t,this.boxUid=0,this.circleUid=0};Bt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Bt.prototype.insert=function(e,t,n,r,o){this._forEachCell(t,n,r,o,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(o)},Bt.prototype.insertCircle=function(e,t,n,r){this._forEachCell(t-r,n-r,t+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(n),this.circles.push(r)},Bt.prototype._insertBoxCell=function(e,t,n,r,o,i){this.boxCells[o].push(i)},Bt.prototype._insertCircleCell=function(e,t,n,r,o,i){this.circleCells[o].push(i)},Bt.prototype._query=function(e,t,n,r,o,i){if(n<0||e>this.width||r<0||t>this.height)return!o&&[];var a=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(o)return!0;for(var s=0;s<this.boxKeys.length;s++)a.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l<this.circleKeys.length;l++){var u=this.circles[3*l],c=this.circles[3*l+1],p=this.circles[3*l+2];a.push({key:this.circleKeys[l],x1:u-p,y1:c-p,x2:u+p,y2:c+p})}return i?a.filter(i):a}var f={hitTest:o,seenUids:{box:{},circle:{}}};return this._forEachCell(e,t,n,r,this._queryCell,a,f,i),o?a.length>0:a},Bt.prototype._queryCircle=function(e,t,n,r,o){var i=e-n,a=e+n,s=t-n,l=t+n;if(a<0||i>this.width||l<0||s>this.height)return!r&&[];var u=[],c={hitTest:r,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}};
vendor: 4,447 bytes, line 1
1return this._forEachCell(i,s,a,l,this._queryCellCircle,u,c,o),r?u.length>0:u},Bt.prototype.query=function(e,t,n,r,o){return this._query(e,t,n,r,!1,o)},Bt.prototype.hitTest=function(e,t,n,r,o){return this._query(e,t,n,r,!0,o)},Bt.prototype.hitTestCircle=function(e,t,n,r){return this._queryCircle(e,t,n,!0,r)},Bt.prototype._queryCell=function(e,t,n,r,o,i,a,s){var l=a.seenUids,u=this.boxCells[o];if(null!==u)for(var c=this.bboxes,p=0,f=u;p<f.length;p+=1){var h=f[p];if(!l.box[h]){l.box[h]=!0;var d=4*h;if(e<=c[d+2]&&t<=c[d+3]&&n>=c[d+0]&&r>=c[d+1]&&(!s||s(this.boxKeys[h]))){if(a.hitTest)return i.push(!0),!0;i.push({key:this.boxKeys[h],x1:c[d],y1:c[d+1],x2:c[d+2],y2:c[d+3]})}}}var m=this.circleCells[o];if(null!==m)for(var y=this.circles,g=0,v=m;g<v.length;g+=1){var _=v[g];if(!l.circle[_]){l.circle[_]=!0;var b=3*_;if(this._circleAndRectCollide(y[b],y[b+1],y[b+2],e,t,n,r)&&(!s||s(this.circleKeys[_]))){if(a.hitTest)return i.push(!0),!0;var x=y[b],w=y[b+1],E=y[b+2];i.push({key:this.circleKeys[_],x1:x-E,y1:w-E,x2:x+E,y2:w+E})}}}},Bt.prototype._queryCellCircle=function(e,t,n,r,o,i,a,s){var l=a.circle,u=a.seenUids,c=this.boxCells[o];if(null!==c)for(var p=this.bboxes,f=0,h=c;f<h.length;f+=1){var d=h[f];if(!u.box[d]){u.box[d]=!0;var m=4*d;if(this._circleAndRectCollide(l.x,l.y,l.radius,p[m+0],p[m+1],p[m+2],p[m+3])&&(!s||s(this.boxKeys[d])))return i.push(!0),!0}}var y=this.circleCells[o];if(null!==y)for(var g=this.circles,v=0,_=y;v<_.length;v+=1){var b=_[v];if(!u.circle[b]){u.circle[b]=!0;var x=3*b;if(this._circlesCollide(g[x],g[x+1],g[x+2],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[b])))return i.push(!0),!0}}},Bt.prototype._forEachCell=function(e,t,n,r,o,i,a,s){for(var l=this._convertToXCellCoord(e),u=this._convertToYCellCoord(t),c=this._convertToXCellCoord(n),p=this._convertToYCellCoord(r),f=l;f<=c;f++)for(var h=u;h<=p;h++){var d=this.xCellCount*h+f;if(o.call(this,e,t,n,r,d,i,a,s))return}},Bt.prototype._convertToXCellCoord=function(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))},Bt.prototype._convertToYCellCoord=function(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))},Bt.prototype._circlesCollide=function(e,t,n,r,o,i){var a=r-e,s=o-t,l=n+i;return l*l>a*a+s*s},Bt.prototype._circleAndRectCollide=function(e,t,n,r,o,i,a){var s=(i-r)/2,l=Math.abs(e-(r+s));if(l>s+n)return!1;var u=(a-o)/2,c=Math.abs(t-(o+u));if(c>u+n)return!1;if(l<=s||c<=u)return!0;var p=l-s,f=c-u;return p*p+f*f<=n*n};var Ut=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]),Vt=function(e,t,n){void 0===t&&(t=new Bt(e.width+200,e.height+200,25)),void 0===n&&(n=new Bt(e.width+200,e.height+200,25)),this.transform=e,this.grid=t,this.ignoredGrid=n,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+100,this.screenBottomBoundary=e.height+100,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200};Vt.prototype.placeCollisionBox=function(e,t,n,r,o){var i=this.projectAndGetPerspectiveRatio(r,e.anchorPointX,e.anchorPointY),a=n*i.perspectiveRatio,s=e.x1*a+i.point.x,l=e.y1*a+i.point.y,u=e.x2*a+i.point.x,c=e.y2*a+i.point.y;return!this.isInsideGrid(s,l,u,c)||!t&&this.grid.hitTest(s,l,u,c,o)?{box:[],offscreen:!1}:{box:[s,l,u,c],offscreen:this.isOffscreen(s,l,u,c)}},Vt.prototype.approximateTileDistance=function(e,t,n,r,o){var i=o?1:r/this.pitchfactor,a=e.lastSegmentViewportDistance*n;return e.prevTileDistance+a+(i-1)*a*Math.abs(Math.sin(t))},Vt.prototype.placeCollisionCircles=function(t,n,r,o,i,a,s,l,u,c,p,f,h){var d=[],m=this.projectAnchor(u,i.anchorX,i.anchorY),y=l/24,g=i.lineOffsetX*l,v=i.lineOffsetY*l,_=new e.Point(i.anchorX,i.anchorY),b=k(y,s,g,v,!1,O(_,c).point,_,i,a,c,{},!0),x=!1,w=!1,E=!0,T=m.perspectiveRatio*o,C=1/(o*r),S=0,A=0;b&&(S=this.approximateTileDistance(b.first.tileDistance,b.first.angle,C,m.cameraDistance,f),A=this.approximateTileDistance(b.last.tileDistance,b.last.angle,C,m.cameraDistance,f));for(var P=0;P<t.length;P+=5){var R=t[P],D=t[P+1],I=t[P+2],M=t[P+3];if(!b||M<-S||M>A)L(t,P,!1);else{var j=this.projectPoint(u,R,D),z=I*T;if(d.length>0){var F=j.x-d[d.length-4],N=j.y-d[d.length-3];if(z*z*2>F*F+N*N&&P+8<t.length){var B=t[P+8];if(B>-S&&B<A){L(t,P,!1);continue}}}var U=P/5;d.push(j.x,j.y,z,U),L(t,P,!0);var V=j.x-z,H=j.y-z,q=j.x+z,G=j.y+z;if(E=E&&this.isOffscreen(V,H,q,G),w=w||this.isInsideGrid(V,H,q,G),!n&&this.grid.hitTestCircle(j.x,j.y,z,h)){if(!p)return{circles:[],offscreen:!1};x=!0}}}
1return{circles:x||!w?[]:d,offscreen:E}},Vt.prototype.queryRenderedSymbols=function(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var n=[],r=1/0,o=1/0,i=-1/0,a=-1/0,s=0,l=t;s<l.length;s+=1){var u=l[s],c=new e.Point(u.x+100,u.y+100);r=Math.min(r,c.x),o=Math.min(o,c.y),i=Math.max(i,c.x),a=Math.max(a,c.y),n.push(c)}for(var p={},f={},h=0,d=this.grid.query(r,o,i,a).concat(this.ignoredGrid.query(r,o,i,a));h<d.length;h+=1){var m=d[h],y=m.key;if(void 0===p[y.bucketInstanceId]&&(p[y.bucketInstanceId]={}),!p[y.bucketInstanceId][y.featureIndex]){var g=[new e.Point(m.x1,m.y1),new e.Point(m.x2,m.y1),new e.Point(m.x2,m.y2),new e.Point(m.x1,m.y2)];e.polygonIntersectsPolygon(n,g)&&(p[y.bucketInstanceId][y.featureIndex]=!0,void 0===f[y.bucketInstanceId]&&(f[y.bucketInstanceId]=[]),f[y.bucketInstanceId].push(y.featureIndex))}}return f},Vt.prototype.insertCollisionBox=function(e,t,n,r,o){var i={bucketInstanceId:n,featureIndex:r,collisionGroupID:o};(t?this.ignoredGrid:this.grid).insert(i,e[0],e[1],e[2],e[3])},Vt.prototype.insertCollisionCircles=function(e,t,n,r,o){for(var i=t?this.ignoredGrid:this.grid,a={bucketInstanceId:n,featureIndex:r,collisionGroupID:o},s=0;s<e.length;s+=4)i.insertCircle(a,e[s],e[s+1],e[s+2])},Vt.prototype.projectAnchor=function(e,t,n){var r=[t,n,0,1];return M(r,r,e),{perspectiveRatio:.5+this.transform.cameraToCenterDistance/r[3]*.5,cameraDistance:r[3]}},Vt.prototype.projectPoint=function(t,n,r){var o=[n,r,0,1];return M(o,o,t),new e.Point((o[0]/o[3]+1)/2*this.transform.width+100,(-o[1]/o[3]+1)/2*this.transform.height+100)},Vt.prototype.projectAndGetPerspectiveRatio=function(t,n,r){var o=[n,r,0,1];return M(o,o,t),{point:new e.Point((o[0]/o[3]+1)/2*this.transform.width+100,(-o[1]/o[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/o[3]*.5}},Vt.prototype.isOffscreen=function(e,t,n,r){return n<100||e>=this.screenRightBoundary||r<100||t>this.screenBottomBoundary},Vt.prototype.isInsideGrid=function(e,t,n,r){return n>=0&&e<this.gridRightBoundary&&r>=0&&t<this.gridBottomBoundary};var Ht=function(e,t,n,r){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):r&&n?1:0,this.placed=n};Ht.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var qt=function(e,t,n,r,o){this.text=new Ht(e?e.text:null,t,n,o),this.icon=new Ht(e?e.icon:null,t,r,o)};qt.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var Gt=function(e,t,n){this.text=e,this.icon=t,this.skipFade=n},Wt=function(e,t,n,r,o){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=o},Zt=function(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}};Zt.prototype.get=function(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){var t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:function(e){return e.collisionGroupID===t}}}return this.collisionGroups[e]};var Kt=function(e,t,n,r){this.transform=e.clone(),this.collisionIndex=new Vt(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new Zt(n),this.prevPlacement=r,r&&(r.prevPlacement=void 0),this.placedOrientations={}};Kt.prototype.placeLayerTile=function(t,n,r,o){var i=n.getBucket(t),a=n.latestFeatureIndex;if(i&&a&&t.id===i.layerIds[0]){var s=n.collisionBoxArray,l=i.layers[0].layout,u=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),c=n.tileSize/e.EXTENT,p=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),f=E(p,"map"===l.get("text-pitch-alignment"),"map"===l.get("text-rotation-alignment"),this.transform,j(n,1,this.transform.zoom)),h=E(p,"map"===l.get("icon-pitch-alignment"),"map"===l.get("icon-rotation-alignment"),this.transform,j(n,1,this.transform.zoom));this.retainedQueryData[i.bucketInstanceId]=new Wt(i.bucketInstanceId,a,i.sourceLayerIndex,i.index,n.tileID),this.placeLayerBucket(i,p,f,h,u,c,r,n.holdingForFade(),o,s)}},Kt.prototype.attemptAnchorPlacement=function(t,n,r,o,i,a,s,l,u,c,p,f,h,d,m){var y,g=z(t,r,o,i,a),v=this.collisionIndex.placeCollisionBox(function(t,n,r,o,i,a){var s=t.x1,l=t.x2,u=t.y1,c=t.y2,p=t.anchorPointX,f=t.anchorPointY,h=new e.Point(n,r);return o&&h._rotate(i?a:-a),{x1:s+h.x,y1:u+h.y,x2:l+h.x,y2:c+h.y,anchorPointX:p,anchorPointY:f}}(n,g.x,g.y,s,l,this.transform.angle),f,u,c,p.predicate);if(v.box.length>0)return this.prevPlacement&&this.prevPlacement.variableOffsets[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID].text&&(y=this.prevPlacement.variableOffsets[h.crossTileID].anchor),this.variableOffsets[h.crossTileID]={radialOffset:i,width:r,height:o,anchor:t,textBoxScale:a,prevAnchor:y},this.markUsedJustification(d,t,h,m),d.allowVerticalPlacement&&(this.markUsedOrientation(d,m,h),this.placedOrientations[h.crossTileID]=m),v},Kt.prototype.placeLayerBucket=function(t,n,r,o,i,a,s,l,u,c){var p=this,f=t.layers[0].layout,h=e.evaluateSizeForZoom(t.textSizeData,this.transform.zoom),d=f.get("text-optional"),m=f.get("icon-optional"),y=f.get("text-allow-overlap"),g=f.get("icon-allow-overlap"),v=y&&(g||!t.hasIconData()||m),_=g&&(y||!t.hasTextData()||d),b=this.collisionGroups.get(t.sourceID),x="map"===f.get("text-rotation-alignment"),w="map"===f.get("text-pitch-alignment"),E="viewport-y"===f.get("symbol-z-order");!t.collisionArrays&&c&&t.deserializeCollisionBoxes(c);var T=function(o,c){if(!u[o.crossTileID])if(l)p.placements[o.crossTileID]=new Gt(!1,!1,!1);else{var g,E=!1,T=!1,O=!0,C={box:null,offscreen:null},S={box:null,offscreen:null},k=null,A=null,P=0,R=0,D=0;c.textFeatureIndex&&(P=c.textFeatureIndex),c.verticalTextFeatureIndex&&(R=c.verticalTextFeatureIndex);var I=c.textBox;if(I){var M=function(n){var r=e.WritingMode.horizontal;if(t.allowVerticalPlacement&&!n&&p.prevPlacement){var i=p.prevPlacement.placedOrientations[o.crossTileID];i&&(p.placedOrientations[o.crossTileID]=i,r=i,p.markUsedOrientation(t,r,o))}return r},L=function(n,r){if(t.allowVerticalPlacement&&o.numVerticalGlyphVertices>0&&c.verticalTextBox)for(var i=0,a=t.writingModes;i<a.length&&(a[i]===e.WritingMode.vertical?(C=r(),S=C):C=n(),!(C&&C.box&&C.box.length));i+=1);else C=n()};if(f.get("text-variable-anchor")){var j=f.get("text-variable-anchor");if(p.prevPlacement&&p.prevPlacement.variableOffsets[o.crossTileID]){var z=p.prevPlacement.variableOffsets[o.crossTileID];j.indexOf(z.anchor)>0&&(j=j.filter(function(e){return e!==z.anchor})).unshift(z.anchor)}var F=function(e,r){for(var i=e.x2-e.x1,s=e.y2-e.y1,l=o.textBoxScale,u={box:[],offscreen:!1},c=y?2*j.length:j.length,f=0;f<c;++f){var h=j[f%j.length],d=f>=j.length;if((u=p.attemptAnchorPlacement(h,e,i,s,o.radialTextOffset,l,x,w,a,n,b,d,o,t,r))&&u.box&&u.box.length){E=!0;break}}return u};L(function(){return F(I,e.WritingMode.horizontal)},function(){var n=c.verticalTextBox,r=C&&C.box&&C.box.length;return t.allowVerticalPlacement&&!r&&o.numVerticalGlyphVertices>0&&n?F(n,e.WritingMode.vertical):{box:null,offscreen:null}}),C&&(E=C.box,O=C.offscreen);var N=M(C&&C.box);if(!E&&p.prevPlacement){var B=p.prevPlacement.variableOffsets[o.crossTileID];B&&(p.variableOffsets[o.crossTileID]=B,p.markUsedJustification(t,B.anchor,o,N))}}else{var U=function(e,r){var i=p.collisionIndex.placeCollisionBox(e,f.get("text-allow-overlap"),a,n,b.predicate);return i&&i.box&&i.box.length&&(p.markUsedOrientation(t,r,o),p.placedOrientations[o.crossTileID]=r),i};L(function(){return U(I,e.WritingMode.horizontal)},function(){var n=c.verticalTextBox;return t.allowVerticalPlacement&&o.numVerticalGlyphVertices>0&&n?U(n,e.WritingMode.vertical):{box:null,offscreen:null}}),M(C&&C.box&&C.box.length)}}E=(g=C)&&g.box&&g.box.length>0,O=g&&g.offscreen;var V=c.textCircles;if(V){var H=t.text.placedSymbolArray.get(o.centerJustifiedTextSymbolIndex),q=e.evaluateSizeForFeature
1(t.textSizeData,h,H);k=p.collisionIndex.placeCollisionCircles(V,f.get("text-allow-overlap"),i,a,H,t.lineVertexArray,t.glyphOffsetArray,q,n,r,s,w,b.predicate),E=f.get("text-allow-overlap")||k.circles.length>0,O=O&&k.offscreen}c.iconFeatureIndex&&(D=c.iconFeatureIndex),c.iconBox&&(T=(A=p.collisionIndex.placeCollisionBox(c.iconBox,f.get("icon-allow-overlap"),a,n,b.predicate)).box.length>0,O=O&&A.offscreen);var G=d||0===o.numHorizontalGlyphVertices&&0===o.numVerticalGlyphVertices,W=m||0===o.numIconVertices;G||W?W?G||(T=T&&E):E=T&&E:T=E=T&&E,E&&g&&g.box&&(S&&S.box&&R?p.collisionIndex.insertCollisionBox(g.box,f.get("text-ignore-placement"),t.bucketInstanceId,R,b.ID):p.collisionIndex.insertCollisionBox(g.box,f.get("text-ignore-placement"),t.bucketInstanceId,P,b.ID)),T&&A&&p.collisionIndex.insertCollisionBox(A.box,f.get("icon-ignore-placement"),t.bucketInstanceId,D,b.ID),E&&k&&p.collisionIndex.insertCollisionCircles(k.circles,f.get("text-ignore-placement"),t.bucketInstanceId,P,b.ID),p.placements[o.crossTileID]=new Gt(E||v,T||_,O||t.justReloaded),u[o.crossTileID]=!0}};if(E)for(var O=t.getSortedSymbolIndexes(this.transform.angle),C=O.length-1;C>=0;--C){var S=O[C];T(t.symbolInstances.get(S),t.collisionArrays[S])}else for(var k=0;k<t.symbolInstances.length;++k)T(t.symbolInstances.get(k),t.collisionArrays[k]);t.justReloaded=!1},Kt.prototype.markUsedJustification=function(t,n,r,o){var i,a={left:r.leftJustifiedTextSymbolIndex,center:r.centerJustifiedTextSymbolIndex,right:r.rightJustifiedTextSymbolIndex};i=o===e.WritingMode.vertical?r.verticalPlacedTextSymbolIndex:a[e.getAnchorJustification(n)];for(var s=0,l=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex,r.verticalPlacedTextSymbolIndex];s<l.length;s+=1){var u=l[s];u>=0&&(t.text.placedSymbolArray.get(u).crossTileID=i>=0&&u!==i?0:r.crossTileID)}},Kt.prototype.markUsedOrientation=function(t,n,r){for(var o=n===e.WritingMode.horizontal||n===e.WritingMode.horizontalOnly?n:0,i=n===e.WritingMode.vertical?n:0,a=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];a<s.length;a+=1){var l=s[a];t.text.placedSymbolArray.get(l).placedOrientation=o}r.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=i)},Kt.prototype.commit=function(e){this.commitTime=e;var t=this.prevPlacement,n=!1,r=t&&0!==this.fadeDuration?(this.commitTime-t.commitTime)/this.fadeDuration:1,o=t?t.opacities:{},i=t?t.variableOffsets:{},a=t?t.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],u=o[s];u?(this.opacities[s]=new qt(u,r,l.text,l.icon),n=n||l.text!==u.text.placed||l.icon!==u.icon.placed):(this.opacities[s]=new qt(null,r,l.text,l.icon,l.skipFade),n=n||l.text||l.icon)}for(var c in o){var p=o[c];if(!this.opacities[c]){var f=new qt(p,r,!1,!1);f.isHidden()||(this.opacities[c]=f,n=n||p.text.placed||p.icon.placed)}}for(var h in i)this.variableOffsets[h]||!this.opacities[h]||this.opacities[h].isHidden()||(this.variableOffsets[h]=i[h]);for(var d in a)this.placedOrientations[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.placedOrientations[d]=a[d]);n?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)},Kt.prototype.updateLayerOpacities=function(e,t){for(var n={},r=0,o=t;r<o.length;r+=1){var i=o[r],a=i.getBucket(e);a&&i.latestFeatureIndex&&e.id===a.layerIds[0]&&this.updateBucketOpacities(a,n,i.collisionBoxArray)}},Kt.prototype.updateBucketOpacities=function(t,n,r){t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasCollisionBoxData()&&t.collisionBox.collisionVertexArray.clear(),t.hasCollisionCircleData()&&t.collisionCircle.collisionVertexArray.clear();var o=t.layers[0].layout,i=new qt(null,0,!1,!1,!0),a=o.get("text-allow-overlap"),s=o.get("icon-allow-overlap"),l=o.get("text-variable-anchor"),u="map"===o.get("text-rotation-alignment"),c="map"===o.get("text-pitch-alignment"),p=new qt(null,0,a&&(s||!t.hasIconData()||o.get("icon-optional")),s&&(a||!t.hasTextData()||o.get("text-optional")),!0);!t.collisionArrays&&r&&(t.hasCollisionBoxData()||t.hasCollisionCircleData())&&t.deserializeCollisionBoxes(r);for(var f=0;f<t.symbolInstances.length;f++){var h=t.symbolInstances.get(f),d=h.numHorizontalGlyphVertices,m=h.num
1VerticalGlyphVertices,y=h.crossTileID,g=n[y],v=this.opacities[y];g?v=i:v||(v=p,this.opacities[y]=v),n[y]=!0;var _=d>0||m>0,b=h.numIconVertices>0;if(_){for(var x=N(v.text),w=(d+m)/4,E=0;E<w;E++)t.text.opacityVertexArray.emplaceBack(x);var T=v.text.isHidden()?1:0,O=this.placedOrientations[h.crossTileID],C=O===e.WritingMode.horizontal||O===e.WritingMode.horizontalOnly?1:0,S=O===e.WritingMode.vertical?1:0;[h.rightJustifiedTextSymbolIndex,h.centerJustifiedTextSymbolIndex,h.leftJustifiedTextSymbolIndex].forEach(function(e){e>=0&&(t.text.placedSymbolArray.get(e).hidden=T||S)}),h.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(h.verticalPlacedTextSymbolIndex).hidden=T||C);var k=this.variableOffsets[h.crossTileID];k&&this.markUsedJustification(t,k.anchor,h,O);var A=this.placedOrientations[h.crossTileID];A&&(this.markUsedJustification(t,"left",h,A),this.markUsedOrientation(t,A,h))}if(b){for(var P=N(v.icon),R=0;R<h.numIconVertices/4;R++)t.icon.opacityVertexArray.emplaceBack(P);t.icon.placedSymbolArray.get(f).hidden=v.icon.isHidden()}if(t.hasCollisionBoxData()||t.hasCollisionCircleData()){var D=t.collisionArrays[f];if(D){if(D.textBox){var I=new e.Point(0,0),M=!0;if(l){var L=this.variableOffsets[y];L?(I=z(L.anchor,L.width,L.height,L.radialOffset,L.textBoxScale),u&&I._rotate(c?this.transform.angle:-this.transform.angle)):M=!1}F(t.collisionBox.collisionVertexArray,v.text.placed,!M,I.x,I.y)}D.iconBox&&F(t.collisionBox.collisionVertexArray,v.icon.placed,!1);var j=D.textCircles;if(j&&t.hasCollisionCircleData())for(var B=0;B<j.length;B+=5){var U=g||0===j[B+4];F(t.collisionCircle.collisionVertexArray,v.text.placed,U)}}}}t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasCollisionBoxData()&&t.collisionBox.collisionVertexBuffer&&t.collisionBox.collisionVertexBuffer.updateData(t.collisionBox.collisionVertexArray),t.hasCollisionCircleData()&&t.collisionCircle.collisionVertexBuffer&&t.collisionCircle.collisionVertexBuffer.updateData(t.collisionCircle.collisionVertexArray)},Kt.prototype.symbolFadeChange=function(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration},Kt.prototype.hasTransitions=function(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration},Kt.prototype.stillRecent=function(e){return this.commitTime+this.fadeDuration>e},Kt.prototype.setStale=function(){this.stale=!0};var Xt=Math.pow(2,25),Yt=Math.pow(2,24),Jt=Math.pow(2,17),$t=Math.pow(2,16),Qt=Math.pow(2,9),en=Math.pow(2,8),tn=Math.pow(2,1),nn=function(){this._currentTileIndex=0,this._seenCrossTileIDs={}};nn.prototype.continuePlacement=function(e,t,n,r,o){for(;this._currentTileIndex<e.length;){var i=e[this._currentTileIndex];if(t.placeLayerTile(r,i,n,this._seenCrossTileIDs),this._currentTileIndex++,o())return!0}};var rn=function(e,t,n,r,o,i,a){this.placement=new Kt(e,o,i,a),this._currentPlacementIndex=t.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=r,this._done=!1};rn.prototype.isDone=function(){return this._done},rn.prototype.continuePlacement=function(t,n,r){for(var o=this,i=e.browser.now(),a=function(){var t=e.browser.now()-i;return!o._forceFullPlacement&&t>2};this._currentPlacementIndex>=0;){var s=n[t[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(this._inProgressLayer||(this._inProgressLayer=new nn),this._inProgressLayer.continuePlacement(r[s.source],this.placement,this._showCollisionBoxes,s,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},rn.prototype.commit=function(e){return this.placement.commit(e),this.placement};var on=512/e.EXTENT/2,an=function(e,t,n){this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(var r=0;r<t.length;r++){var o=t.get(r),i=o.key;this.indexedSymbolInstances[i]||(this.indexedSymbolInstances[i]=[]),this.indexedSymbolInstances[i].push({crossTileID:o.crossTileID,coord:this.getScaledCoordinates(o,e)})}};an.prototype.getScaledCoordinates=function(t,n){var r=n.canonical.z-this.tileID.canonical.z,o=on/Math.pow(2,r);return{x:Math.floor((n.canonical.x*e.EXTENT+t.anchorX)*o),y:Math.floor((n.canonical.y*e.EXTENT+t.anchorY)*o)}},an.prototype.findMatches=function(e,t,n){for(var r=this.tileID.canonical.z<t.canonical.z?1:Math.pow(2,this.tileID.canonical.z-t.canonical.z),o=0;o<e.length;o++){var i=e.get(o);if(!i.crossTileID){var a=this.indexedSymbolInstances[i.key];if(a)for(var s=this.getScaledCoordinates(i,t),l=0,u=a;l<u.length;l+=1){var c=u[l];
1if(Math.abs(c.coord.x-s.x)<=r&&Math.abs(c.coord.y-s.y)<=r&&!n[c.crossTileID]){n[c.crossTileID]=!0,i.crossTileID=c.crossTileID;break}}}}};var sn=function(){this.maxCrossTileID=0};sn.prototype.generate=function(){return++this.maxCrossTileID};var ln=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};ln.prototype.handleWrapJump=function(e){var t=Math.round((e-this.lng)/360);if(0!==t)for(var n in this.indexes){var r=this.indexes[n],o={};for(var i in r){var a=r[i];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+t),o[a.tileID.key]=a}this.indexes[n]=o}this.lng=e},ln.prototype.addBucket=function(e,t,n){if(this.indexes[e.overscaledZ]&&this.indexes[e.overscaledZ][e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(var r=0;r<t.symbolInstances.length;r++)t.symbolInstances.get(r).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]={});var o=this.usedCrossTileIDs[e.overscaledZ];for(var i in this.indexes){var a=this.indexes[i];if(Number(i)>e.overscaledZ)for(var s in a){var l=a[s];l.tileID.isChildOf(e)&&l.findMatches(t.symbolInstances,e,o)}else{var u=a[e.scaledTo(Number(i)).key];u&&u.findMatches(t.symbolInstances,e,o)}}for(var c=0;c<t.symbolInstances.length;c++){var p=t.symbolInstances.get(c);p.crossTileID||(p.crossTileID=n.generate(),o[p.crossTileID]=!0)}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new an(e,t.symbolInstances,t.bucketInstanceId),!0},ln.prototype.removeBucketCrossTileIDs=function(e,t){for(var n in t.indexedSymbolInstances)for(var r=0,o=t.indexedSymbolInstances[n];r<o.length;r+=1){var i=o[r];delete this.usedCrossTileIDs[e][i.crossTileID]}},ln.prototype.removeStaleBuckets=function(e){var t=!1;for(var n in this.indexes){var r=this.indexes[n];for(var o in r)e[r[o].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[o]),delete r[o],t=!0)}return t};var un=function(){this.layerIndexes={},this.crossTileIDs=new sn,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};un.prototype.addLayer=function(e,t,n){var r=this.layerIndexes[e.id];void 0===r&&(r=this.layerIndexes[e.id]=new ln);var o=!1,i={};r.handleWrapJump(n);for(var a=0,s=t;a<s.length;a+=1){var l=s[a],u=l.getBucket(e);u&&e.id===u.layerIds[0]&&(u.bucketInstanceId||(u.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(l.tileID,u,this.crossTileIDs)&&(o=!0),i[u.bucketInstanceId]=!0)}return r.removeStaleBuckets(i)&&(o=!0),o},un.prototype.pruneUnusedLayers=function(e){var t={};for(var n in e.forEach(function(e){t[e]=!0}),this.layerIndexes)t[n]||delete this.layerIndexes[n]};var cn=function(t,n){return e.emitValidationErrors(t,n&&n.filter(function(e){return"source.canvas"!==e.identifier}))},pn=e.pick(Nt,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),fn=e.pick(Nt,["setCenter","setZoom","setBearing","setPitch"]),hn=function(t){function n(r,o){var i=this;void 0===o&&(o={}),t.call(this),this.map=r,this.dispatcher=new Ie((zt||(zt=new jt),zt),this),this.imageManager=new Te,this.imageManager.setEventedParent(this),this.glyphManager=new ke(r._requestManager,o.localIdeographFontFamily),this.lineAtlas=new De(256,512),this.crossTileSymbolIndex=new un,this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new e.ZoomHistory,this._loaded=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",e.getReferrer());var a=this;this._rtlTextPluginCallback=n.registerForPluginAvailability(function(e){for(var t in a.dispatcher.broadcast("loadRTLTextPlugin",e.pluginURL,e.completionCallback),a.sourceCaches)a.sourceCaches[t].reload()}),this.on("data",function(e){if("source"===e.dataType&&"metadata"===e.sourceDataType){var t=i.sourceCaches[e.sourceId];if(t){var n=t.getSource();if(n&&n.vectorLayerIds)for(var r in i._layers){var o=i._layers[r];o.source===n.id&&i._validateLayer(o)}}}})}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.loadURL=function(t,n){var r=this;void 0===n&&(n={}),this.fire(new e.Event("dataloading",{dataType:"style"}));var o="boolean"==typeof n.validate?n.validate:!e.isMapboxURL(t);t=this.map._requestManager.normalizeStyleURL(t,n.accessToken);var i=this.map._requestManager.transformRequest(t,e.ResourceType.Style);this._request=e.getJSON(i,function(t,n){r._request=null,t?r.fire(new e.ErrorEvent(t)):n&&r._load(n,o)})},n.prototype.loadJSON=function(t,n){var r=this;void 0===n&&(n={}),this.fire(new e.Event("dataloading",{dataType:"style"})),this._request=e.browser.frame(function(){r._request=null,r._load(t,!1!==n.validate)})},n.prototype._load=function(t,n){var r=this;if(!n||!cn(this,e.validateStyle(t))){for(var o in this._loaded=!0,this.stylesheet=t,t.sources)this.addSource(o,t.sources[o],{validate:!1});t.sprite?this._spriteRequest=function(t,n,r){function o(){if(s)r(s);else if(i&&a){var t=e.browser.getImageData(a),n={};for(var o in i){var l=i[o],u=l.width,c=l.height,p=l.x,f=l.y,h=l.sdf,d=l.pixelRatio,m=new e.RGBAImage({width:u,height:c});e.RGBAImage.copy(t,m,{x:p,y:f},{x:0,y:0},{width:u,height:c}),n[o]={data:m,pixelRatio:d,sdf:h}}r(null,n)}}var i,a,s,l=e.browser.devicePixelRatio>1?"@2x":"",u=e.getJSON(n.transformRequest(n.normalizeSpriteURL(t,l,".json"),e.ResourceType.SpriteJSON),function(e,t){u=null,s||(s=e,i=t,o())}),c=e.getImage(n.transformRequest(n.normalizeSpriteURL(t,l,".png"),e.ResourceType.SpriteImage),function(e,t){c=null,s||(s=e,a=t,o())});return{cancel:function(){u&&(u.cancel(),u=null),c&&(c.cancel(),c=null)}}}(t.sprite,this.map._requestManager,function(t,n){if(r._spriteRequest=null,t)r.fire(new e.ErrorEvent(t));else if(n)for(var o in n)r.imageManager.addImage(o,n[o]);r.imageManager.setLoaded(!0),r.fire(new e.Event("data",{dataType:"style"}))}):this.imageManager.setLoaded(!0),this.glyphManager.setURL(t.glyphs);
1var i=d(this.stylesheet.layers);this._order=i.map(function(e){return e.id}),this._layers={};for(var a=0,s=i;a<s.length;a+=1){var l=s[a];(l=e.createStyleLayer(l)).setEventedParent(this,{layer:{id:l.id}}),this._layers[l.id]=l}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new Re(this.stylesheet.light),this.fire(new e.Event("data",{dataType:"style"})),this.fire(new e.Event("style.load"))}},n.prototype._validateLayer=function(t){var n=this.sourceCaches[t.source];if(n){var r=t.sourceLayer;if(r){var o=n.getSource();("geojson"===o.type||o.vectorLayerIds&&-1===o.vectorLayerIds.indexOf(r))&&this.fire(new e.ErrorEvent(new Error('Source layer "'+r+'" does not exist on source "'+o.id+'" as specified by style layer "'+t.id+'"')))}}},n.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var e in this.sourceCaches)if(!this.sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()},n.prototype._serializeLayers=function(e){for(var t=[],n=0,r=e;n<r.length;n+=1){var o=r[n],i=this._layers[o];"custom"!==i.type&&t.push(i.serialize())}return t},n.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var e in this.sourceCaches)if(this.sourceCaches[e].hasTransition())return!0;for(var t in this._layers)if(this._layers[t].hasTransition())return!0;return!1},n.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},n.prototype.update=function(t){if(this._loaded){var n=this._changed;if(this._changed){var r=Object.keys(this._updatedLayers),o=Object.keys(this._removedLayers);for(var i in(r.length||o.length)&&this._updateWorkerLayers(r,o),this._updatedSources){var a=this._updatedSources[i];"reload"===a?this._reloadSource(i):"clear"===a&&this._clearSource(i)}for(var s in this._updatedPaintProps)this._layers[s].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}for(var l in this.sourceCaches)this.sourceCaches[l].used=!1;for(var u=0,c=this._order;u<c.length;u+=1){var p=c[u],f=this._layers[p];f.recalculate(t),!f.isHidden(t.zoom)&&f.source&&(this.sourceCaches[f.source].used=!0)}this.light.recalculate(t),this.z=t.zoom,n&&this.fire(new e.Event("data",{dataType:"style"}))}},n.prototype._updateWorkerLayers=function(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(e),removedIds:t})},n.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={}},n.prototype.setState=function(t){var n=this;if(this._checkLoaded(),cn(this,e.validateStyle(t)))return!1;(t=e.clone$1(t)).layers=d(t.layers);var r=w(this.serialize(),t).filter(function(e){return!(e.command in fn)});if(0===r.length)return!1;var o=r.filter(function(e){return!(e.command in pn)});if(o.length>0)throw new Error("Unimplemented: "+o.map(function(e){return e.command}).join(", ")+".");return r.forEach(function(e){"setTransition"!==e.command&&n[e.command].apply(n,e.args)}),this.stylesheet=t,!0},n.prototype.addImage=function(t,n){if(this.getImage(t))return this.fire(new e.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(t,n),this.fire(new e.Event("data",{dataType:"style"}))},n.prototype.updateImage=function(e,t){this.imageManager.updateImage(e,t)},n.prototype.getImage=function(e){return this.imageManager.getImage(e)},n.prototype.removeImage=function(t){if(!this.getImage(t))return this.fire(new e.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(t),this.fire(new e.Event("data",{dataType:"style"}))},n.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},n.prototype.addSource=function(t,n,r){var o=this;if(void 0===r&&(r={}),this._checkLoaded(),void 0!==this.sourceCaches[t])throw new Error("There is already a source with this ID");if(!n.type)throw new Error("The type property must be defined, but the only the following properties were given: "+Object.keys(n).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(n.type)>
1=0)||!this._validate(e.validateStyle.source,"sources."+t,n,null,r)){this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);var i=this.sourceCaches[t]=new Lt(t,n,this.dispatcher);i.style=this,i.setEventedParent(this,function(){return{isSourceLoaded:o.loaded(),source:i.serialize(),sourceId:t}}),i.onAdd(this.map),this._changed=!0}},n.prototype.removeSource=function(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error("There is no source with this ID");for(var n in this._layers)if(this._layers[n].source===t)return this.fire(new e.ErrorEvent(new Error('Source "'+t+'" cannot be removed while layer "'+n+'" is using it.')));var r=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],r.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),r.setEventedParent(null),r.clearTiles(),r.onRemove&&r.onRemove(this.map),this._changed=!0},n.prototype.setGeoJSONSourceData=function(e,t){this._checkLoaded(),this.sourceCaches[e].getSource().setData(t),this._changed=!0},n.prototype.getSource=function(e){return this.sourceCaches[e]&&this.sourceCaches[e].getSource()},n.prototype.addLayer=function(t,n,r){void 0===r&&(r={}),this._checkLoaded();var o=t.id;if(this.getLayer(o))this.fire(new e.ErrorEvent(new Error('Layer with i
1d "'+o+'" already exists on this map')));else{var i;if("custom"===t.type){if(cn(this,e.validateCustomStyleLayer(t)))return;i=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(o,t.source),t=e.clone$1(t),t=e.extend(t,{source:o})),this._validate(e.validateStyle.layer,"layers."+o,t,{arrayIndex:-1},r))return;i=e.createStyleLayer(t),this._validateLayer(i),i.setEventedParent(this,{layer:{id:o}})}var a=n?this._order.indexOf(n):this._order.length;if(n&&-1===a)this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.')));else{if(this._order.splice(a,0,o),this._layerOrderChanged=!0,this._layers[o]=i,this._removedLayers[o]&&i.source&&"custom"!==i.type){var s=this._removedLayers[o];delete this._removedLayers[o],s.type!==i.type?this._updatedSources[i.source]="clear":(this._updatedSources[i.source]="reload",this.sourceCaches[i.source].pause())}this._updateLayer(i),i.onAdd&&i.onAdd(this.map)}}},n.prototype.moveLayer=function(t,n){if(this._checkLoaded(),this._changed=!0,this._layers[t]){if(t!==n){var r=this._order.indexOf(t);this._order.splice(r,1);var o=n?this._order.indexOf(n):this._order.length;
1n&&-1===o?this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.'))):(this._order.splice(o,0,t),this._layerOrderChanged=!0)}}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be moved.")))},n.prototype.removeLayer=function(t){this._checkLoaded();var n=this._layers[t];if(n){n.setEventedParent(null);var r=this._order.indexOf(t);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map)}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be removed.")))},n.prototype.getLayer=function(e){return this._layers[e]},n.prototype.setLayerZoomRange=function(t,n,r){this._checkLoaded();var o=this.getLayer(t);o?o.minzoom===n&&o.maxzoom===r||(null!=n&&(o.minzoom=n),null!=r&&(o.maxzoom=r),this._updateLayer(o)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot have zoom extent.")))},n.prototype.setFilter=function(t,n,r){void 0===r&&(r={}),this._checkLoaded();var o=this.getLayer(t);if(o){if(!e.deepEqual(o.filter,n))return null==n?(o.filter=void 0,void this._updateLayer(o)):void(this._validate(e.validateStyle.filter,"layers."+o.id+".filter",n,null,r)||(o.filter=e.clone$1(n),this._updateLayer(o)))}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be filtered.")))},n.prototype.getFilter=function(t){return e.clone$1(this.getLayer(t).filter)},n.prototype.setLayoutProperty=function(t,n,r,o){void 0===o&&(o={}),this._checkLoaded();var i=this.getLayer(t);i?e.deepEqual(i.getLayoutProperty(n),r)||(i.setLayoutProperty(n,r,o),this._updateLayer(i)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getLayoutProperty=function(t,n){var r=this.getLayer(t);if(r)return r.getLayoutProperty(n);this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style.")))},n.prototype.setPaintProperty=function(t,n,r,o){void 0===o&&(o={}),this._checkLoaded();var i=this.getLayer(t);i?e.deepEqual(i.getPaintProperty(n),r)||(i.setPaintProperty(n,r,o)&&this._updateLayer(i),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getPaintProperty=function(e,t){return this.getLayer(e).getPaintProperty(t)},n.prototype.setFeatureState=function(t,n){this._checkLoaded();var r=t.source,o=t.sourceLayer,i=this.sourceCaches[r],a=parseInt(t.id,10);if(void 0!==i){var s=i.getSource().type;"geojson"===s&&o?this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==s||o?isNaN(a)||a<0?this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided and non-negative."))):i.setFeatureState(o,a,n):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.removeFeatureState=function(t,n){this._checkLoaded();var r=t.source,o=this.sourceCaches[r];if(void 0!==o){var i=o.getSource().type,a="vector"===i?t.sourceLayer:void 0,s=parseInt(t.id,10);"vector"!==i||a?void 0!==t.id&&isNaN(s)||s<0?this.fire(new e.ErrorEvent(new Error("The feature id parameter must be non-negative."))):n&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new e.ErrorEvent(new Error("A feature id is requred to remove its specific state property."))):o.removeFeatureState(a,s,n):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.getFeatureState=function(t){this._checkLoaded();var n=t.source,r=t.sourceLayer,o=this.sourceCaches[n],i=parseInt(t.id,10);if(void 0!==o)if("vector"!==o.getSource().type||r){if(!(isNaN(i)||i<0))return o.getFeatureState(r,i);this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided and non-negative.")))}else this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));else this.fire(new e.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},n.prototype.getTransition=function(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},n.prototype.serialize=function(){return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:e.mapObject(this.sourceCaches,function(e){return e.serialize()}),layers:this._serializeLayers(this._order)},function(e){return void 0!==e})},n.prototype._updateLayer=function(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&(this._updatedSources[e.source]="reload",this.sourceCaches[e.source].pause()),this._changed=!0},n.prototype._flattenAndSortRenderedFeatures=function(e){for(var t=this,n=function(e){return"fill-extrusion"===t._layers[e].type},r={},o=[],i=this._order.length-1;i>=0;i--){var a=this._order[i];if(n(a)){r[a]=i;for(var s=0,l=e;s<l.length;s+=1){var u=l[s][a];if(u)for(var c=0,p=u;c<p.length;c+=1){var f=p[c];o.push(f)}}}}o.sort(function(e,t){return t.intersectionZ-e.intersectionZ});for(var h=[],d=this._order.length-1;d>=0;d--){var m=this._order[d];if(n(m))for(var y=o.length-1;y>=0;y--){var g=o[y].feature;if(r[g.layer.id]<d)break;h.push(g),o.pop()}else for(var v=0,_=e;v<_.length;v+=1){var b=_[v][m];if(b)for(var x=0,w=b;x<w.length;x+=1){var E=w[x];h.push(E.feature)}}}return h},n.prototype.queryRenderedFeatures=function(t,n,r){n&&n.filter&&this._val
1idate(e.validateStyle.filter,"queryRenderedFeatures.filter",n.filter,null,n);var o={};if(n&&n.layers){if(!Array.isArray(n.layers))return this.fire(new e.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(var i=0,a=n.layers;i<a.length;i+=1){var s=a[i],c=this._layers[s];if(!c)return this.fire(new e.ErrorEvent(new Error("The layer '"+s+"' does not exist in the map's style and cannot be queried for features."))),[];o[c.source]=!0}}var p=[];for(var f in this.sourceCaches)n.layers&&!o[f]||p.push(l(this.sourceCaches[f],this._layers,t,n,r));return this.placement&&p.push(function(e,t,n,r,o,i){for(var a={},s=o.queryRenderedSymbols(n),l=[],c=0,p=Object.keys(s).map(Number);c<p.length;c+=1){var f=p[c];l.push(i[f])}l.sort(u);for(var h=0,d=l;h<d.length;h+=1)!function(){var t=d[h],n=t.featureIndex.lookupSymbolFeatures(s[t.bucketInstanceId],t.bucketIndex,t.sourceLayerIndex,r.filter,r.layers,e);for(var o in n){var i=a[o]=a[o]||[],l=n[o];l.sort(function(e,n){var r=t.featureSortOrder;if(r){var o=r.indexOf(e.featureIndex);return r.indexOf(n.featureIndex)-o}return n.featureIndex-e.featureIndex});for(var u=0,c=l;u<c.length;u+=1){var p=c[u];i.push(p)}}}();for(var m in a)!function(n){a[n].forEach(function(r){var o=r.feature,i=e[n],a=t[i.source].getFeatureState(o.layer["source-layer"],o.id);o.source=o.layer.source,o.layer["source-layer"]&&(o.sourceLayer=o.layer["source-layer"]),o.state=a})}(m);return a}(this._layers,this.sourceCaches,t,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(p)},n.prototype.querySourceFeatures=function(t,n){n&&n.filter&&this._validate(e.validateStyle.filter,"querySourceFeatures.filter",n.filter,null,n);var r=this.sourceCaches[t];return r?function(e,t){for(var n=e.getRenderableIds().map(function(t){return e.getTileByID(t)}),r=[],o={},i=0;i<n.length;i++){var a=n[i],s=a.tileID.canonical.key;o[s]||(o[s]=!0,a.querySourceFeatures(r,t))}return r}(r,n):[]},n.prototype.addSourceType=function(e,t,r){return n.getSourceType(e)?r(new Error('A source type called "'+e+'" already exists.')):(n.setSourceType(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},r):r(null,null))},n.prototype.getLight=function(){return this.light.getLight()},n.prototype.setLight=function(t,n){void 0===n&&(n={}),this._checkLoaded();var r=this.light.getLight(),o=!1;for(var i in t)if(!e.deepEqual(t[i],r[i])){o=!0;break}if(o){var a={now:e.browser.now(),transition:e.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,n),this.light.updateTransitions(a)}},n.prototype._validate=function(t,n,r,o,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&cn(this,t.call(e.validateStyle,e.extend({key:n,style:this.serialize(),value:r,styleSpec:e.styleSpec},o)))},n.prototype._remove=function(){for(var t in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.evented.off("pluginAvailable",this._rtlTextPluginCallback),this.sourceCaches)this.sourceCaches[t].clearTiles();this.dispatcher.remove()},n.prototype._clearSource=function(e){this.sourceCaches[e].clearTiles()},n.prototype._reloadSource=function(e){this.sourceCaches[e].resume(),this.sourceCaches[e].reload()},n.prototype._updateSources=function(e){for(var t in this.sourceCaches)this.sourceCaches[t].update(e)},n.prototype._generateCollisionBoxes=function(){for(var e in this.sourceCaches)this._reloadSource(e)},n.prototype._updatePlacement=function(t,n,r,o){for(var i=!1,a=!1,s={},l=0,u=this._order;l<u.length;l+=1){var c=u[l],p=this._layers[c];if("symbol"===p.type){if(!s[p.source]){var f=this.sourceCaches[p.source];s[p.source]=f.getRenderableIds(!0).map(function(e){return f.getTileByID(e)}).sort(function(e,t){return t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1)})}var h=this.crossTileSymbolIndex.addLayer(p,s[p.source],t.center.lng);i=i||h}}this.crossTileSymbolIndex.pruneUnusedLayers(this._order);var d=this._layerOrderChanged||0===r;if((d||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.browser.now()))&&(this.pauseablePlacement=new rn(t,this._order,d,n,r,o,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.browser.now()),a=!0),i&&this.pauseablePlacement.placement.setStale()),a||i)for(var m=0,y=this._order;m<y.length;m+=1){var g=y[m],v=this._layers[g];"symbol"===v.type&&this.placement.updateLayerOpacities(v,s[v.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.browser.now())},n.prototype._releaseSymbolFadeTiles=function(){for(var e in this.sourceCaches)this.sourceCaches[e].releaseSymbolFadeTiles()},n.prototype.getImages=function(e,t,n){this.imageManager.getImages(t.icons,n)},n.prototype.getGlyphs=function(e,t,n){this.glyphManager.getGlyphs(t.stacks,n)}
1,n.prototype.getResource=function(t,n,r){return e.makeRequest(n,r)},n}(e.Evented);hn.getSourceType=function(e){return Ve[e]},hn.setSourceType=function(e,t){Ve[e]=t},hn.registerForPluginAvailability=e.registerForPluginAvailability;var dn=e.createLayout([{name:"a_pos",type:"Int16",components:2}]),mn=B("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}"),yn=B("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),gn=B("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),vn=B("varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius
1/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),_n=B("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),bn=B("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),xn=B("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),wn=B("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),En=B("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;}"),Tn=B("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);}"),On=B("#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);}"),Cn=B("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;}"),Sn=B("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;}"),kn=B("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);}"),An=B("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;}"),Pn=B("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
1_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;}"),Rn=B("#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;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;return (data.r+data.g*256.0+data.b*256.0*256.0)/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;}"),Dn=B("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;}"),In=B("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);}"),Mn=B("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);}"),Ln=B("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);}"),jn=B("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;
1uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),zn=B("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;}"),Fn=B("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));}"),Nn=B("#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);}"),Bn=Object.freeze({prelude:mn,background:yn,backgroundPattern:gn,circle:vn,clippingMask:_n,heatmap:bn,heatmapTexture:xn,collisionBox:wn,collisionCircle:En,debug:Tn,fill:On,fillOutline:Cn,fillOutlinePattern:Sn,fillPattern:kn,fillExtrusion:An,fillExtrusionPattern:Pn,hillshadePrepare:Rn,hillshade:Dn,line:In,lineGradient:Mn,linePattern:Ln,lineSDF:jn,raster:zn,symbolIcon:Fn,symbolSDF:Nn}),Un=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Un.prototype.bind=function(e,t,n,r,o,i,a,s){this.context=e;for(var l=this.boundPaintVertexBuffers.length!==r.length,u=0;!l&&u<r.length;u++)this.boundPaintVertexBuffers[u]!==r[u]&&(l=!0);var c=!this.vao||this.boundProgram!==t||this.boundLayoutVertexBuffer!==n||l||this.boundIndexBuffer!==o||this.boundVertexOffset!==i||this.boundDynamicVertexBuffer!==a||this.boundDynamicVertexBuffer2!==s;
vendor: 4,443 bytes, line 1
1!e.extVertexArrayObject||c?this.freshBind(t,n,r,o,i,a,s):(e.bindVertexArrayOES.set(this.vao),a&&a.bind(),o&&o.dynamicDraw&&o.bind(),s&&s.bind())},Un.prototype.freshBind=function(e,t,n,r,o,i,a){var s,l=e.numAttributes,u=this.context,c=u.gl;if(u.extVertexArrayObject)this.vao&&this.destroy(),this.vao=u.extVertexArrayObject.createVertexArrayOES(),u.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=r,this.boundVertexOffset=o,this.boundDynamicVertexBuffer=i,this.boundDynamicVertexBuffer2=a;else{s=u.currentNumAttributes||0;for(var p=l;p<s;p++)c.disableVertexAttribArray(p)}t.enableAttributes(c,e);for(var f=0,h=n;f<h.length;f+=1)h[f].enableAttributes(c,e);i&&i.enableAttributes(c,e),a&&a.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,o);for(var d=0,m=n;d<m.length;d+=1){var y=m[d];y.bind(),y.setVertexAttribPointers(c,e,o)}i&&(i.bind(),i.setVertexAttribPointers(c,e,o)),r&&r.bind(),a&&(a.bind(),a.setVertexAttribPointers(c,e,o)),u.currentNumAttributes=l},Un.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var Vn=function(e,t,n,r,o){var i=e.gl;this.program=i.createProgram();var a=n.defines();o&&a.push("#define OVERDRAW_INSPECTOR;");var s=a.concat(mn.fragmentSource,t.fragmentSource).join("\n"),l=a.concat(mn.vertexSource,t.vertexSource).join("\n"),u=i.createShader(i.FRAGMENT_SHADER);i.shaderSource(u,s),i.compileShader(u),i.attachShader(this.program,u);var c=i.createShader(i.VERTEX_SHADER);i.shaderSource(c,l),i.compileShader(c),i.attachShader(this.program,c);for(var p=n.layoutAttributes||[],f=0;f<p.length;f++)i.bindAttribLocation(this.program,f,p[f].name);i.linkProgram(this.program),this.numAttributes=i.getProgramParameter(this.program,i.ACTIVE_ATTRIBUTES),this.attributes={};for(var h={},d=0;d<this.numAttributes;d++){var m=i.getActiveAttrib(this.program,d);m&&(this.attributes[m.name]=i.getAttribLocation(this.program,m.name))}for(var y=i.getProgramParameter(this.program,i.ACTIVE_UNIFORMS),g=0;g<y;g++){var v=i.getActiveUniform(this.program,g);v&&(h[v.name]=i.getUniformLocation(this.program,v.name))}this.fixedUniforms=r(e,h),this.binderUniforms=n.getUniforms(e,h)};Vn.prototype.draw=function(e,t,n,r,o,i,a,s,l,u,c,p,f,h,d,m){var y,g=e.gl;for(var v in e.program.set(this.program),e.setDepthMode(n),e.setStencilMode(r),e.setColorMode(o),e.setCullFace(i),this.fixedUniforms)this.fixedUniforms[v].set(a[v]);h&&h.setUniforms(e,this.binderUniforms,p,{zoom:f});for(var _=(y={},y[g.LINES]=2,y[g.TRIANGLES]=3,y[g.LINE_STRIP]=1,y)[t],b=0,x=c.get();b<x.length;b+=1){var w=x[b],E=w.vaos||(w.vaos={});(E[s]||(E[s]=new Un)).bind(e,this,l,h?h.getPaintVertexBuffers():[],u,w.vertexOffset,d,m),g.drawElements(t,w.primitiveLength*_,g.UNSIGNED_SHORT,w.primitiveOffset*_*2)}};var Hn=function(t,n,r,o){var i=n.style.light,a=i.properties.get("position"),s=[a.x,a.y,a.z],l=e.create$1();"viewport"===i.properties.get("anchor")&&e.fromRotation(l,-n.transform.angle),e.transformMat3(s,s,l);var u=i.properties.get("color");return{u_matrix:t,u_lightpos:s,u_lightintensity:i.properties.get("intensity"),u_lightcolor:[u.r,u.g,u.b],u_vertical_gradient:+r,u_opacity:o}},qn=function(t,n,r,o,i,a,s){return e.extend(Hn(t,n,r,o),U(a,n,s),{u_height_factor:-Math.pow(2,i.overscaledZ)/s.tileSize/8})},Gn=function(e){return{u_matrix:e}},Wn=function(t,n,r,o){return e.extend(Gn(t),U(r,n,o))},Zn=function(e,t){return{u_matrix:e,u_world:t}},Kn=function(t,n,r,o,i){return e.extend(Wn(t,n,r,o),{u_world:i})},Xn=function(t,n,r,o){var i,a,s=t.transform;if("map"===o.paint.get("circle-pitch-alignment")){var l=j(r,1,s.zoom);i=!0,a=[l,l]}else i=!1,a=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+("map"===o.paint.get("circle-pitch-scale")),u_matrix:t.translatePosMatrix(n.posMatrix,r,o.paint.get("circle-translate"),o.paint.get("circle-translate-anchor")),u_pitch_with_map:+i,u_device_pixel_ratio:e.browser.devicePixelRatio,u_extrude_scale:a}},Yn=function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pixels_to_tile_units:new e.Uniform1f(t,n.u_pixels_to_tile_units),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_overscale_factor:new e.Uniform1f(t,n.u_overscale_factor)}},Jn=function(e,t,n){var r=j(n,1,t.zoom),o=Math.pow(2,t.zoom-n.tileID.overscaledZ
vendor: 4,343 bytes, line 1
1),i=n.tileID.overscaleFactor();return{u_matrix:e,u_camera_to_center_distance:t.cameraToCenterDistance,u_pixels_to_tile_units:r,u_extrude_scale:[t.pixelsToGLUnits[0]/(r*o),t.pixelsToGLUnits[1]/(r*o)],u_overscale_factor:i}},$n=function(e,t){return{u_matrix:e,u_color:t}},Qn=function(e){return{u_matrix:e}},er=function(e,t,n,r){return{u_matrix:e,u_extrude_scale:j(t,1,n),u_intensity:r}},tr=function(t,n,r,o){var i=e.create();e.ortho(i,0,t.width,t.height,0,0,1);var a=t.context.gl;return{u_matrix:i,u_world:[a.drawingBufferWidth,a.drawingBufferHeight],u_image:r,u_color_ramp:o,u_opacity:n.paint.get("heatmap-opacity")}},nr=function(e,t,n){var r=n.paint.get("hillshade-shadow-color"),o=n.paint.get("hillshade-highlight-color"),i=n.paint.get("hillshade-accent-color"),a=n.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===n.paint.get("hillshade-illumination-anchor")&&(a-=e.transform.angle);var s=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(t.tileID.toUnwrapped(),s),u_image:0,u_latrange:V(e,t.tileID),u_light:[n.paint.get("hillshade-exaggeration"),a],u_shadow:r,u_highlight:o,u_accent:i}},rr=function(t,n){var r=t.dem.stride,o=e.create();return e.ortho(o,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate(o,o,[0,-e.EXTENT,0]),{u_matrix:o,u_image:1,u_dimension:[r,r],u_zoom:t.tileID.overscaledZ,u_maxzoom:n}},or=function(t,n,r){var o=t.transform;return{u_matrix:q(t,n,r),u_ratio:1/j(n,1,o.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},ir=function(t,n,r){return e.extend(or(t,n,r),{u_image:0})},ar=function(t,n,r,o){var i=t.transform,a=H(n,i);return{u_matrix:q(t,n,r),u_texsize:n.imageAtlasTexture.size,u_ratio:1/j(n,1,i.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_image:0,u_scale:[e.browser.devicePixelRatio,a,o.fromScale,o.toScale],u_fade:o.t,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},sr=function(t,n,r,o,i){var a=t.transform,s=t.lineAtlas,l=H(n,a),u="round"===r.layout.get("line-cap"),c=s.getDash(o.from,u),p=s.getDash(o.to,u),f=c.width*i.fromScale,h=p.width*i.toScale;return e.extend(or(t,n,r),{u_patternscale_a:[l/f,-c.height/2],u_patternscale_b:[l/h,-p.height/2],u_sdfgamma:s.width/(256*Math.min(f,h)*e.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:p.y,u_mix:i.t})},lr=function(e,t,n,r,o){return{u_matrix:e,u_tl_parent:t,u_scale_parent:n,u_buffer_scale:1,u_fade_t:r.mix,u_opacity:r.opacity*o.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:o.paint.get("raster-brightness-min"),u_brightness_high:o.paint.get("raster-brightness-max"),u_saturation_factor:(a=o.paint.get("raster-saturation"),a>0?1-1/(1.001-a):-a),u_contrast_factor:(i=o.paint.get("raster-contrast"),i>0?1/(1-i):1+i),u_spin_weights:G(o.paint.get("raster-hue-rotate"))};var i,a},ur=function(e,t,n,r,o,i,a,s,l,u){var c=o.transform;return{u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:c.cameraToCenterDistance,u_pitch:c.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:c.width/c.height,u_fade_change:o.options.fadeDuration?o.symbolFadeChange:1,u_matrix:i,u_label_plane_matrix:a,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+r,u_texsize:u,u_texture:0}},cr=function(t,n,r,o,i,a,s,l,u,c,p){var f=i.transform;return e.extend(ur(t,n,r,o,i,a,s,l,u,c),{u_gamma_scale:o?Math.cos(f._pitch)*f.cameraToCenterDistance:1,u_device_pixel_ratio:e.browser.devicePixelRatio,u_is_halo:+p})},pr=function(e,t,n){return{u_matrix:e,u_opacity:t,u_color:n}},fr=function(t,n,r,o,i,a){return e.extend(function(e,t,n,r){var o=n.imageManager.getPattern(e.from),i=n.imageManager.getPattern(e.to),a=n.imageManager.getPixelSize(),s=a.width,l=a.height,u=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/u,p=c*(r.tileID.canonical.x+r.tileID.wrap*u),f=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:o.tl,u_pattern_br_a:o.br,u_pattern_tl_b:i.tl,u_pattern_br_b:i.br,u_texsize:[s,l],u_mix:t.t,u_pattern_size_a:o.displaySize,u_pattern_size_b:i.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/j(r,1,n.transform.tileZoom),u_pixel_coord_upper:[p>>16,f>>16],u_pixel_coord_lower:[65535&p,65535&f]}}(o,a,r,i),{u_matrix:t,u_opacity:n}
1)},hr={fillExtrusion:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_opacity:new e.Uniform1f(t,n.u_opacity)}},fillExtrusionPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_height_factor:new e.Uniform1f(t,n.u_height_factor),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform4f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade),u_opacity:new e.Uniform1f(t,n.u_opacity)}},fill:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},fillPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform4f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},fillOutline:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world)}},fillOutlinePattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform4f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},circle:function(t,n){return{u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_scale_with_map:new e.Uniform1i(t,n.u_scale_with_map),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},collisionBox:Yn,collisionCircle:Yn,debug:function(t,n){return{u_color:new e.UniformColor(t,n.u_color),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},clippingMask:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},heatmap:function(t,n){return{u_extrude_scale:new e.Uniform1f(t,n.u_extrude_scale),u_intensity:new e.Uniform1f(t,n.u_intensity),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},heatmapTexture:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_color_ramp:new e.Uniform1i(t,n.u_color_ramp),u_opacity:new e.Uniform1f(t,n.u_opacity)}},hillshade:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_latrange:new e.Uniform2f(t,n.u_latrange),u_light:new e.Uniform2f(t,n.u_light),u_shadow:new e.UniformColor(t,n.u_shadow),u_highlight:new e.UniformColor(t,n.u_highlight),u_accent:new e.UniformColor(t,n.u_accent)}},hillshadePrepare:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_dimension:new e.Uniform2f(t,n.u_dimension),u_zoom:new e.Uniform1f(t,n.u_zoom),u_maxzoom:new e.Uniform1f(t,n.u_maxzoom)}},line:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels)}},lineGradient:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_image:new e.Uniform1i(t,n.u_image)}},linePattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_texsize:new e.Uniform2f(t,n.u_texsize),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_image:new e.Uniform1i(t,n.u_image),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_scale:new e.Uniform4f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},lineSDF:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_patternscale_a:new e.Uniform2f(t,n.u_patternscale_a),u_patternscale_b:new e.Uniform2f(t,n.u_patternscale_b),u_sdfgamma:new e.Uniform1f(t,n.u_sdfgamma),u_image:new e.Uniform1i(t,n.u_image),u_tex_y_a:new e.Uniform1f(t,n.u_tex_y_a),u_tex_y_b:new e.Uniform1f(t,n.u_tex_y_b),u_mix:new e.Uniform1f(t,n.u_mix)}},raster:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_tl_parent:new e.Uniform2f(t,n.u_tl_parent),u_scale_parent:new e.Uniform1f(t,n.u_scale_parent),u_buffer_scale:new e.Uniform1f(t,n.u_buffer_scale),u_fade_t:new e.Uniform1f(t,n.u_fade_t),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image0:new e.Uniform1i(t,n.u_image0),u_image1:new e.Uniform1i(t,n.u_image1),u_brightness_low:new e.Uniform1f(t,n.u_brightness_low),u_brightness_high:new e.Uniform1f(t,n.u_brightness_high),u_saturation_factor:new e.Uniform1f(t,n.u_saturation_factor),u_contrast_factor:new e.Uniform1f(t,n.u_contrast_factor),u_spin_weights:new e.Uniform3f(t,n.u_spin_weights)}},symbolIcon:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix
vendor: 6,683 bytes, line 1
1),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1f(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture)}},symbolSDF:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1f(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_is_halo:new e.Uniform1f(t,n.u_is_halo)}},background:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_color:new e.UniformColor(t,n.u_color)}},backgroundPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image:new e.Uniform1i(t,n.u_image),u_pattern_tl_a:new e.Uniform2f(t,n.u_pattern_tl_a),u_pattern_br_a:new e.Uniform2f(t,n.u_pattern_br_a),u_pattern_tl_b:new e.Uniform2f(t,n.u_pattern_tl_b),u_pattern_br_b:new e.Uniform2f(t,n.u_pattern_br_b),u_texsize:new e.Uniform2f(t,n.u_texsize),u_mix:new e.Uniform1f(t,n.u_mix),u_pattern_size_a:new e.Uniform2f(t,n.u_pattern_size_a),u_pattern_size_b:new e.Uniform2f(t,n.u_pattern_size_b),u_scale_a:new e.Uniform1f(t,n.u_scale_a),u_scale_b:new e.Uniform1f(t,n.u_scale_b),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_tile_units_to_pixels:new e.Uniform1f(t,n.u_tile_units_to_pixels)}}},dr=e.identity(new Float32Array(16)),mr={" ":[16,[]],"!":[10,[5,21,5,7,-1,-1,5,2,4,1,5,0,6,1,5,2]],'"':[16,[4,21,4,14,-1,-1,12,21,12,14]],"#":[21,[11,25,4,-7,-1,-1,17,25,10,-7,-1,-1,4,12,18,12,-1,-1,3,6,17,6]],$:[20,[8,25,8,-4,-1,-1,12,25,12,-4,-1,-1,17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],"%":[24,[21,21,3,0,-1,-1,8,21,10,19,10,17,9,15,7,14,5,14,3,16,3,18,4,20,6,21,8,21,10,20,13,19,16,19,19,20,21,21,-1,-1,17,7,15,6,14,4,14,2,16,0,18,0,20,1,21,3,21,5,19,7,17,7]],"&":[26,[23,12,23,13,22,14,21,14,20,13,19,11,17,6,15,3,13,1,11,0,7,0,5,1,4,2,3,4,3,6,4,8,5,9,12,13,13,14,14,16,14,18,13,20,11,21,9,20,8,18,8,16,9,13,11,10,16,3,18,1,20,0,22,0,23,1,23,2]],"'":[10,[5,19,4,20,5,21,6,20,6,18,5,16,4,15]],"(":[14,[11,25,9,23,7,20,5,16,4,11,4,7,5,2,7,-2,9,-5,11,-7]],")":[14,[3,25,5,23,7,20,9,16,10,11,10,7,9,2,7,-2,5,-5,3,-7]],"*":[16,[8,21,8,9,-1,-1,3,18,13,12,-1,-1,13,18,3,12]],"+":[26,[13,18,13,0,-1,-1,4,9,22,9]],",":[10,[6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],"-":[26,[4,9,22,9]],".":[10,[5,2,4,1,5,0,6,1,5,2]],"/":[22,[20,25,2,-7]],0:[20,[9,21,6,20,4,17,3,12,3,9,4,4,6,1,9,0,11,0,14,1,16,4,17,9,17,12,16,17,14,20,11,21,9,21]],1:[20,[6,17,8,18,11,21,11,0]],2:[20,[4,16,4,17,5,19,6,20,8,21,12,21,14,20,15,19,16,17,16,15,15,13,13,10,3,0,17,0]],3:[20,[5,21,16,21,10,13,13,13,15,12,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],4:[20,[13,21,3,7,18,7,-1,-1,13,21,13,0]],5:[20,[15,21,5,21,4,12,5,13,8,14,11,14,14,13,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],6:[20,[16,18,15,20,12,21,10,21,7,20,5,17,4,12,4,7,5,3,7,1,10,0,11,0,14,1,16,3,17,6,17,7,16,10,14,12,11,13,10,13,7,12,5,10,4,7]],7:[20,[17,21,7,0,-1,-1,3,21,17,21]],8:[20,[8,21,5,20,4,18,4,16,5,14,7,13,11,12,14,11,16,9,17,7,17,4,16,2,15,1,12,0,8,0,5,1,4,2,3,4,3,7,4,9,6,11,9,12,13,13,15,14,16,16,16,18,15,20,12,21,8,21]],9:[20,[16,14,15,11,13,9,10,8,9,8,6,9,4,11,3,14,3,15,4,18,6,20,9,21,10,21,13,20,15,18,16,14,16,9,15,4,13,1,10,0,8,0,5,1,4,3]],":":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,5,2,4,1,5,0,6,1,5,2]],";":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],"<":[24,[20,18,4,9,20,0]],"=":[26,[4,12,22,12,-1,-1,4,6,22,6]],">":[24,[4,18,20,9,4,0]],"?":[18,[3,16,3,17,4,19,5,20,7,21,11,21,13,20,14,19,15,17,15,15,14,13,13,12,9,10,9,7,-1,-1,9,2,8,1,9,0,10,1,9,2]],"@":[27,[18,13,17,15,15,16,12,16,10,15,9,14,8,11,8,8,9,6,11,5,14,5,16,6,17,8,-1,-1,12,16,10,14,9,11,9,8,10,6,11,5,-1,-1,18,16,17,8,17,6,19,5,21,5,23,7,24,10,24,12,23,15,22,17,20,19,18,20,15,21,12,21,9,20,7,19,5,17,4,15,3,12,3,9,4,6,5,4,7,2,9,1,12,0,15,0,18,1,20,2,21,3,-1,-1,19,16,18,8,18,6,19,5]],A:[18,[9,21,1,0,-1,-1,9,21,17,0,-1,-1,4,7,14,7]],B:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,-1,-1,4,11,13,11,16,10,17,9,18,7,18,4,17,2,16,1,13,0,4,0]],C:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5]],D:[21,[4,21,4,0,-1,-1,4,21,11,21,14,20,16,18,17,16,18,13,18,8,17,5,16,3,14,1,11,0,4,0]],E:[19,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11,-1,-1,4,0,17,0]],F:[18,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11]],G:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,18,8,-1,-1,13,8,18,8]],H:[22,[4,21,4,0,-1,-1,18,21,18,0,-1,-1,4,11,18,11]],I:[8,[4,21,4,0]],J:[16,[12,21,12,5,11,2,10,1,8,0,6,0,4,1,3,2,2,5,2,7]],K:[21,[4,21,4,0,-1,-1,18,21,4,7,-1,-1,9,12,18,0]],L:[17,[4,21,4,0,-1,-1,4,0,16,0]],M:[24,[4,21,4,0,-1,-1,4,21,12,0,-1,-1,20,21,12,0,-1,-1,20,21,20,0]],N:[22,[4,21,4,0,-1,-1,4,21,18,0,-1,-1,18,21,18,0]],O:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21]],P:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,14,17,12,16,11,13,10,4,10]],Q:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21,-1,-1,12,4,18,-2]],R:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,4,11,-1,-1,11,11,18,0]],S:[20,[17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],T:[16,[8,21,8,0,-1,-1,1,21,15,21]],U:[22,[4,21,4,6,5,3,7,1,10,0,12,0,15,1,17,3,18,6,18,21]],V:[18,[1,21,9,0,-1,-1,17,21,9,0]],W:[24,[2,21,7,0,-1,-1,12,21,7,0,-1,-1,12,21,17,0,-1,-1,22,21,17,0]],X:[20,[3,21,17,0,-1,-1,17,21,3,0]],Y:[18,[1,21,9,11,9,0,-1,-1,17,21,9,11]],Z:[20,[17,21,3,0,-1,-1,3,21,17,21,-1,-1,3,0,17,0]],"[":[14,[4,25,4,-7,-1,-1,5,25,5,-7,-1,-1,4,25,
111,25,-1,-1,4,-7,11,-7]],"\\":[14,[0,21,14,-3]],"]":[14,[9,25,9,-7,-1,-1,10,25,10,-7,-1,-1,3,25,10,25,-1,-1,3,-7,10,-7]],"^":[16,[6,15,8,18,10,15,-1,-1,3,12,8,17,13,12,-1,-1,8,17,8,0]],_:[16,[0,-2,16,-2]],"`":[10,[6,21,5,20,4,18,4,16,5,15,6,16,5,17]],a:[19,[15,14,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],b:[19,[4,21,4,0,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],c:[18,[15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],d:[19,[15,21,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],e:[18,[3,8,15,8,15,10,14,12,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],f:[12,[10,21,8,21,6,20,5,17,5,0,-1,-1,2,14,9,14]],g:[19,[15,14,15,-2,14,-5,13,-6,11,-7,8,-7,6,-6,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],h:[19,[4,21,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],i:[8,[3,21,4,20,5,21,4,22,3,21,-1,-1,4,14,4,0]],j:[10,[5,21,6,20,7,21,6,22,5,21,-1,-1,6,14,6,-3,5,-6,3,-7,1,-7]],k:[17,[4,21,4,0,-1,-1,14,14,4,4,-1,-1,8,8,15,0]],l:[8,[4,21,4,0]],m:[30,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0,-1,-1,15,10,18,13,20,14,23,14,25,13,26,10,26,0]],n:[19,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],o:[19,[8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3,16,6,16,8,15,11,13,13,11,14,8,14]],p:[19,[4,14,4,-7,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],q:[19,[15,14,15,-7,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],r:[13,[4,14,4,0,-1,-1,4,8,5,11,7,13,9,14,12,14]],s:[17,[14,11,13,13,10,14,7,14,4,13,3,11,4,9,6,8,11,7,13,6,14,4,14,3,13,1,10,0,7,0,4,1,3,3]],t:[12,[5,21,5,4,6,1,8,0,10,0,-1,-1,2,14,9,14]],u:[19,[4,14,4,4,5,1,7,0,10,0,12,1,15,4,-1,-1,15,14,15,0]],v:[16,[2,14,8,0,-1,-1,14,14,8,0]],w:[22,[3,14,7,0,-1,-1,11,14,7,0,-1,-1,11,14,15,0,-1,-1,19,14,15,0]],x:[17,[3,14,14,0,-1,-1,14,14,3,0]],y:[16,[2,14,8,0,-1,-1,14,14,8,0,6,-4,4,-6,2,-7,1,-7]],z:[17,[14,14,3,0,-1,-1,3,14,14,14,-1,-1,3,0,14,0]],"{":[14,[9,25,7,24,6,23,5,21,5,19,6,17,7,16,8,14,8,12,6,10,-1,-1,7,24,6,22,6,20,7,18,8,17,9,15,9,13,8,11,4,9,8,7,9,5,9,3,8,1,7,0,6,-2,6,-4,7,-6,-1,-1,6,8,8,6,8,4,7,2,6,1,5,-1,5,-3,6,-5,7,-6,9,-7]],"|":[8,[4,25,4,-7]],"}":[14,[5,25,7,24,8,23,9,21,9,19,8,17,7,16,6,14,6,12,8,10,-1,-1,7,24,8,22,8,20,7,18,6,17,5,15,5,13,6,11,10,9,6,7,5,5,5,3,6,1,7,0,8,-2,8,-4,7,-6,-1,-1,8,8,6,6,6,4,7,2,8,1,9,-1,9,-3,8,-5,7,-6,5,-7]],"~":[24,[3,6,3,8,4,11,6,12,8,12,10,11,14,8,16,7,18,7,20,8,21,10,-1,-1,3,8,4,10,6,11,8,11,10,10,14,7,16,6,18,6,20,7,21,10,21,12]]},yr={symbol:function(e,t,n,r,o){if("translucent"===e.renderPass){var i=Rt.disabled,a=e.colorModeForRenderPass();0!==n.paint.get("icon-opacity").constantOr(1)&&$(e,t,n,r,!1,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),n.layout.get("icon-rotation-alignment"),n.layout.get("icon-pitch-alignment"),n.layout.get("icon-keep-upright"),i,a,o),0!==n.paint.get("text-opacity").constantOr(1)&&$(e,t,n,r,!0,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),n.layout.get("text-keep-upright"),i,a,o),t.map.showCollisionBoxes&&function(e,t,n,r){K(e,t,n,r,!1),K(e,t,n,r,!0)}(e,t,n,r)}},circle:function(t,n,r,o){if("translucent"===t.renderPass){var i=r.paint.get("circle-opacity"),a=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=void 0!==r.layout.get("circle-sort-key").constantOr(1);if(0!==i.constantOr(1)||0!==a.constantOr(1)&&0!==s.constantOr(1)){for(var u=t.context,c=u.gl,p=t.depthModeForSublayer(0,Pt.ReadOnly),f=Rt.disabled,h=t.colorModeForRenderPass(),d=[],m=0;m<o.length;m++){var y=o[m],g=n.getTile(y),v=g.getBucket(r);if(v){var _=v.programConfigurations.get(r.id),b={programConfiguration:_,program:t.useProgram("circle",_),layoutVertexBuffer:v.layoutVertexBuffer,indexBuffer:v.indexBuffer,uniformValues:Xn(t,y,g,r)};if(l)for(var x=0,w=v.segments.get();x<w.length;x+=1){var E=w[x];d.push({segments:new e.SegmentVector([E]),sortKey:E.sortKey,state:b})}else d.push({segments:v.segments,sortKey:0,state:b})}}l&&d.sort(function(e,t){return e.sortKey-t.sortKey});for(var T=0,O=d;T<O.length;T+=1){var C=O[T],S=C.state,k=S.programConfiguration,A=S.program,P=S.layoutVertexBuffer,R=S.indexBuffer,D=S.uniformValues,I=C.segments;A.draw(u,c.TRIANGLES,p,f,h,It.disabled,D,r.id,P,R,I,r.paint,t.transform.zoom,k)}}}},heatmap:function(t,n,r,o){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){var i=t.context,a=i.gl,s=t.depthModeForSublayer(0,Pt.ReadOnly),l=Rt.disabled,u=new Dt([a.ONE,a.ONE],e.Color.transparent,[!0,!0,!0,!0]);!function(e,t,n){var r=e.gl;e.activeTexture.set(r.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);var o=n.heatmapFbo;if(o)r.bindTexture(r.TEXTURE_2D,o.colorAttachment.get()),e.bindFramebuffer.set(o.framebuffer);else{var i=r.createTexture();r.bindTexture(r.TEXTURE_2D,i),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),o=n.heatmapFbo=e.createFramebuffer(t.width/4,t.height/4),function e(t,n,r,o){var i=t.gl;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,n.width/4,n.height/4,0,i.RGBA,t.extTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE,null),o.colorAttachment.set(r),t.extTextureHalfFloat&&i.checkFramebufferStatus(i.FRAMEBUFFER)!==i.FRAMEBUFFER_COMPLETE&&(t.extTextureHalfFloat=null,o.colorAttachment.setDirty(),e(t,n,r,o))}(e,t,i,o)}}(i,t,r),i.clear({color:e.Color.transparent});for(var c=0;c<o.length;c++){var p=o[c];if(!n.hasRenderableParent(p)){var f=n.getTile(p),h=f.getBucket(r);
1if(h){var d=h.programConfigurations.get(r.id),m=t.useProgram("heatmap",d),y=t.transform.zoom;m.draw(i,a.TRIANGLES,s,l,u,It.disabled,er(p.posMatrix,f,y,r.paint.get("heatmap-intensity")),r.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,r.paint,t.transform.zoom,d)}}}i.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,n){var r=t.context,o=r.gl,i=n.heatmapFbo;if(i){r.activeTexture.set(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,i.colorAttachment.get()),r.activeTexture.set(o.TEXTURE1);var a=n.colorRampTexture;a||(a=n.colorRampTexture=new e.Texture(r,n.colorRamp,o.RGBA)),a.bind(o.LINEAR,o.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(r,o.TRIANGLES,Pt.disabled,Rt.disabled,t.colorModeForRenderPass(),It.disabled,tr(t,n,0,1),n.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,n.paint,t.transform.zoom)}}(t,r))},line:function(t,n,r,o){if("translucent"===t.renderPass){var i=r.paint.get("line-opacity"),a=r.paint.get("line-width");if(0!==i.constantOr(1)&&0!==a.constantOr(1)){var s=t.depthModeForSublayer(0,Pt.ReadOnly),l=t.colorModeForRenderPass(),u=r.paint.get("line-dasharray"),c=r.paint.get("line-pattern"),p=c.constantOr(1),f=r.paint.get("line-gradient"),h=r.getCrossfadeParameters(),d=u?"lineSDF":p?"linePattern":f?"lineGradient":"line",m=t.context,y=m.gl,g=!0;if(f){m.activeTexture.set(y.TEXTURE0);var v=r.gradientTexture;if(!r.gradient)return;v||(v=r.gradientTexture=new e.Texture(m,r.gradient,y.RGBA)),v.bind(y.LINEAR,y.CLAMP_TO_EDGE)}for(var _=0,b=o;_<b.length;_+=1){var x=b[_],w=n.getTile(x);if(!p||w.patternsLoaded()){var E=w.getBucket(r);if(E){var T=E.programConfigurations.get(r.id),O=t.context.program.get(),C=t.useProgram(d,T),S=g||C.program!==O,k=c.constantOr(null);if(k&&w.imageAtlas){var A=w.imageAtlas.patternPositions[k.to],P=w.imageAtlas.patternPositions[k.from];A&&P&&T.setConstantPatternPositions(A,P)}var R=u?sr(t,w,r,u,h):p?ar(t,w,r,h):f?ir(t,w,r):or(t,w,r);u&&(S||t.lineAtlas.dirty)?(m.activeTexture.set(y.TEXTURE0),t.lineAtlas.bind(m)):p&&(m.activeTexture.set(y.TEXTURE0),w.imageAtlasTexture.bind(y.LINEAR,y.CLAMP_TO_EDGE),T.updatePatternPaintBuffers(h)),C.draw(m,y.TRIANGLES,s,t.stencilModeForClipping(x),l,It.disabled,R,r.id,E.layoutVertexBuffer,E.indexBuffer,E.segments,r.paint,t.transform.zoom,T),g=!1}}}}}},fill:function(t,n,r,o){var i=r.paint.get("fill-color"),a=r.paint.get("fill-opacity");if(0!==a.constantOr(1)){var s=t.colorModeForRenderPass(),l=r.paint.get("fill-pattern"),u=t.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===i.constantOr(e.Color.transparent).a&&1===a.constantOr(0)?"opaque":"translucent";if(t.renderPass===u){ee(t,n,r,o,t.depthModeForSublayer(1,"opaque"===t.renderPass?Pt.ReadWrite:Pt.ReadOnly),s,!1)}if("translucent"===t.renderPass&&r.paint.get("fill-antialias")){ee(t,n,r,o,t.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,Pt.ReadOnly),s,!0)}}},"fill-extrusion":function(e,t,n,r){var o=n.paint.get("fill-extrusion-opacity");if(0!==o&&"translucent"===e.renderPass){var i=new Pt(e.context.gl.LEQUAL,Pt.ReadWrite,e.depthRangeFor3D);if(1!==o||n.paint.get("fill-extrusion-pattern").constantOr(1))te(e,t,n,r,i,Rt.disabled,Dt.disabled),te(e,t,n,r,i,e.stencilModeFor3D(),e.colorModeForRenderPass());else{var a=e.colorModeForRenderPass();te(e,t,n,r,i,Rt.disabled,a)}}},hillshade:function(e,t,n,r){if("offscreen"===e.renderPass||"translucent"===e.renderPass){for(var o=e.context,i=t.getSource().maxzoom,a=e.depthModeForSublayer(0,Pt.ReadOnly),s=Rt.disabled,l=e.colorModeForRenderPass(),u=0,c=r;u<c.length;u+=1){var p=c[u],f=t.getTile(p);f.needsHillshadePrepare&&"offscreen"===e.renderPass?re(e,f,n,i,a,s,l):"translucent"===e.renderPass&&ne(e,f,n,a,s,l)}o.viewport.set([0,0,e.width,e.height])}},raster:function(e,t,n,r){if("translucent"===e.renderPass&&0!==n.paint.get("raster-opacity"))for(var o=e.context,i=o.gl,a=t.getSource(),s=e.useProgram("raster"),l=Rt.disabled,u=e.colorModeForRenderPass(),c=r.length&&r[0].overscaledZ,p=!e.options.moving,f=0,h=r;f<h.length;f+=1){var d=h[f],m=e.depthModeForSublayer(d.overscaledZ-c,1===n.paint.get("raster-opacity")?Pt.ReadWrite:Pt.ReadOnly,i.LESS),y=t.getTile(d),g=e.transform.calculatePosMatrix(d.toUnwrapped(),p);y.registerFadeDuration(n.paint.get("raster-fade-duration"));var v=t.findLoadedParent(d,0),_=oe(y,v,t,n,e.transform),b=void 0,x=void 0,w="nearest"===n.paint.get("raster-resampling")?i.NEAREST:i.LINEAR;o.activeTexture.set(i.TEXTURE0),y.texture.bind(w,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST),o.activeTexture.set(i.TEXTURE1),v?(v.texture.bind(w,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST),b=Math.pow(2,v.tileID.overscaledZ-y.tileID.overscaledZ
vendor: 5,289 bytes, line 1
1),x=[y.tileID.canonical.x*b%1,y.tileID.canonical.y*b%1]):y.texture.bind(w,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST);var E=lr(g,x||[0,0],b||1,_,n);a instanceof Ne?s.draw(o,i.TRIANGLES,m,l,u,It.disabled,E,n.id,a.boundsBuffer,e.quadTriangleIndexBuffer,a.boundsSegments):y.maskedBoundsBuffer&&y.maskedIndexBuffer&&y.segments?s.draw(o,i.TRIANGLES,m,l,u,It.disabled,E,n.id,y.maskedBoundsBuffer,y.maskedIndexBuffer,y.segments,n.paint,e.transform.zoom):s.draw(o,i.TRIANGLES,m,l,u,It.disabled,E,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}},background:function(e,t,n){var r=n.paint.get("background-color"),o=n.paint.get("background-opacity");if(0!==o){var i=e.context,a=i.gl,s=e.transform,l=s.tileSize,u=n.paint.get("background-pattern");if(!e.isPatternMissing(u)){var c=!u&&1===r.a&&1===o&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass===c){var p=Rt.disabled,f=e.depthModeForSublayer(0,"opaque"===c?Pt.ReadWrite:Pt.ReadOnly),h=e.colorModeForRenderPass(),d=e.useProgram(u?"backgroundPattern":"background"),m=s.coveringTiles({tileSize:l});u&&(i.activeTexture.set(a.TEXTURE0),e.imageManager.bind(e.context));for(var y=n.getCrossfadeParameters(),g=0,v=m;g<v.length;g+=1){var _=v[g],b=e.transform.calculatePosMatrix(_.toUnwrapped()),x=u?fr(b,o,e,u,{tileID:_,tileSize:l},y):pr(b,o,r);d.draw(i,a.TRIANGLES,f,p,h,It.disabled,x,n.id,e.tileExtentBuffer,e.quadTriangleIndexBuffer,e.tileExtentSegments)}}}}},debug:function(e,t,n){for(var r=0;r<n.length;r++)ie(e,t,n[r])},custom:function(e,t,n){var r=e.context,o=n.implementation;if("offscreen"===e.renderPass){var i=o.prerender;i&&(e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),i.call(o,r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState())}else if("translucent"===e.renderPass){e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),r.setStencilMode(Rt.disabled);var a="3d"===o.renderingMode?new Pt(e.context.gl.LEQUAL,Pt.ReadWrite,e.depthRangeFor3D):e.depthModeForSublayer(0,Pt.ReadOnly);r.setDepthMode(a),o.render(r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState(),r.bindFramebuffer.set(null)}}},gr=function(t,n){this.context=new Mt(t),this.transform=n,this._tileTextures={},this.setup(),this.numSublayers=Lt.maxUnderzooming+Lt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.depthRboNeedsClear=!0,this.emptyProgramConfiguration=new e.ProgramConfiguration,this.crossTileSymbolIndex=new un};gr.prototype.resize=function(t,n){var r=this.context.gl;if(this.width=t*e.browser.devicePixelRatio,this.height=n*e.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var o=0,i=this.style._order;o<i.length;o+=1){var a=i[o];this.style._layers[a].resize()}this.depthRbo&&(r.deleteRenderbuffer(this.depthRbo),this.depthRbo=null)},gr.prototype.setup=function(){var t=this.context,n=new e.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(e.EXTENT,0),n.emplaceBack(0,e.EXTENT),n.emplaceBack(e.EXTENT,e.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(n,dn.members),this.tileExtentSegments=e.SegmentVector.simpleSegment(0,0,4,2);var r=new e.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(e.EXTENT,0),r.emplaceBack(0,e.EXTENT),r.emplaceBack(e.EXTENT,e.EXTENT),this.debugBuffer=t.createVertexBuffer(r,dn.members),this.debugSegments=e.SegmentVector.simpleSegment(0,0,4,5);var o=new e.StructArrayLayout4i8;o.emplaceBack(0,0,0,0),o.emplaceBack(e.EXTENT,0,e.EXTENT,0),o.emplaceBack(0,e.EXTENT,0,e.EXTENT),o.emplaceBack(e.EXTENT,e.EXTENT,e.EXTENT,e.EXTENT),this.rasterBoundsBuffer=t.createVertexBuffer(o,e.rasterBoundsAttributes.members),this.rasterBoundsSegments=e.SegmentVector.simpleSegment(0,0,4,2);var i=new e.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(1,0),i.emplaceBack(0,1),i.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(i,dn.members),this.viewportSegments=e.SegmentVector.simpleSegment(0,0,4,2);var a=new e.StructArrayLayout1ui2;a.emplaceBack(0),a.emplaceBack(1),a.emplaceBack(3),a.emplaceBack(2),a.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(a);var s=new e.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(s);var l=this.context.gl;this.stencilClearMode=new Rt({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},gr.prototype.clearStencil=function(){var t=this.context,n=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var r=e.create();e.ortho(r,0,this.width,this.height,0,0,1),e.scale(r,r,[n.drawingBufferWidth,n.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(t,n.TRIANGLES,Pt.disabled,this.stencilClearMode,Dt.disabled,It.disabled,Qn(r),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},gr.prototype._renderTileClippingMasks=function(e,t){if(this.currentStencilSource!==e.source&&e.isTileClipped()&&t&&t.length){this.currentStencilSource=e.source;var n=this.context,r=n.gl;this.nextStencilID+t.length>256&&this.clearStencil(),n.setColorMode(Dt.disabled),n.setDepthMode(Pt.disabled);var o=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var i=0,a=t;i<a.length;i+=1){var s=a[i],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;o.draw(n,r.TRIANGLES,Pt.disabled,new Rt({func:r.ALWAYS,mask:0}
1,l,255,r.KEEP,r.KEEP,r.REPLACE),Dt.disabled,It.disabled,Qn(s.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},gr.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();var e=this.nextStencilID++,t=this.context.gl;return new Rt({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)},gr.prototype.stencilModeForClipping=function(e){var t=this.context.gl;return new Rt({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)},gr.prototype.colorModeForRenderPass=function(){var t=this.context.gl;return this._showOverdrawInspector?new Dt([t.CONSTANT_COLOR,t.ONE],new e.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?Dt.unblended:Dt.alphaBlended},gr.prototype.depthModeForSublayer=function(e,t,n){if(!this.opaquePassEnabledForLayer())return Pt.disabled;var r=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new Pt(n||this.context.gl.LEQUAL,t,[r,r])},gr.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer<this.opaquePassCutoff},gr.prototype.render=function(t,n){this.style=t,this.options=n,this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.browser.now()),this.imageManager.beginFrame();var r=this.style._order,o=this.style.sourceCaches;for(var i in o){var a=o[i];a.used&&a.prepare(this.context)}var s={},l={},u={};for(var c in o){var p=o[c];s[c]=p.getVisibleCoordinates(),l[c]=s[c].slice().reverse(),u[c]=p.getVisibleCoordinates(!0).reverse()}for(var f in o){var h=o[f],d=h.getSource();if("raster"===d.type||"raster-dem"===d.type){for(var m=[],y=0,g=s[f];y<g.length;y+=1){var v=g[y];m.push(h.getTile(v))}W(m,this.context)}}this.opaquePassCutoff=1/0;for(var _=0;_<r.length;_++){var b=r[_];if(this.style._layers[b].is3D()){this.opaquePassCutoff=_;break}}this.renderPass="offscreen",this.depthRboNeedsClear=!0;for(var x=0,w=r;x<w.length;x+=1){var E=w[x],T=this.style._layers[E];if(T.hasOffscreenPass()&&!T.isHidden(this.transform.zoom)){var O=l[T.source];("custom"===T.type||O.length)&&this.renderLayer(this,o[T.source],T,O)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:n.showOverdrawInspector?e.Color.black:e.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=n.showOverdrawInspector,this.depthRangeFor3D=[0,1-(t._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass="opaque",this.currentLayer=r.length-1;this.currentLayer>=0;this.currentLayer--){var C=this.style._layers[r[this.currentLayer]],S=o[C.source],k=s[C.source];this._renderTileClippingMasks(C,k),this.renderLayer(this,S,C,k)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<r.length;this.currentLayer++){var A=this.style._layers[r[this.currentLayer]],P=o[A.source],R=("symbol"===A.type?u:l)[A.source];this._renderTileClippingMasks(A,s[A.source]),this.renderLayer(this,P,A,R)}if(this.options.showTileBoundaries)for(var D in o){yr.debug(this,o[D],s[D]);break}this.context.setDefault()},gr.prototype.setupOffscreenDepthRenderbuffer=function(){var e=this.context;this.depthRbo||(this.depthRbo=e.createRenderbuffer(e.gl.DEPTH_COMPONENT16,this.width,this.height))},gr.prototype.renderLayer=function(e,t,n,r){n.isHidden(this.transform.zoom)||("background"===n.type||"custom"===n.type||r.length)&&(this.id=n.id,yr[n.type](e,t,n,r,this.style.placement.variableOffsets))},gr.prototype.translatePosMatrix=function(t,n,r,o,i){if(!r[0]&&!r[1])return t;var a=i?"map"===o?this.transform.angle:0:"viewport"===o?-this.transform.angle:0;if(a){var s=Math.sin(a),l=Math.cos(a);r=[r[0]*l-r[1]*s,r[0]*s+r[1]*l]}var u=[i?r[0]:j(n,r[0],this.transform.zoom),i?r[1]:j(n,r[1],this.transform.zoom),0],c=new Float32Array(16);return e.translate(c,t,u),c},gr.prototype.saveTileTexture=function(e){var t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]},gr.prototype.getTileTexture=function(e){var t=this._tileTextures[e];return t&&t.length>0?t.pop():null},gr.prototype.isPatternMissing=function(e){if(!e)return!1;var t=this.imageManager.getPattern(e.from),n=this.imageManager.getPattern(e.to);return!t||!n},gr.prototype.useProgram=function(e,t){void 0===t&&(t=this.emptyProgramConfiguration),this.cache=this.cache||{};var n=""+e+(t.cacheKey||"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[n]||(this.cache[n]=new Vn(this.context,Bn[e],t,hr[e],this._showOverdrawInspector)),this.cache[n]},gr.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},gr.prototype.setBaseState=function(){var e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)};var vr=function(t,n,r){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===r||r,this._minZoom=t||0,this._maxZoom=n||22,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._posMatrixCache={},this._alignedPosMatrixCache={}},_r={minZoom:{configurable:!0},maxZoom:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerPoint:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};vr.prototype.clone=function(){var e=new vr(this._minZoom,this._maxZoom,this._renderWorldCopies);return e.tileSize=this.tileSize,e.latRange=this.latRange,e.width=this.width,e.height=this.height,e._center=this._center,e.zoom=this.zoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._unmodified=this._unmodified,e._calcMatrices(),e},_r.minZoom.get=function(){return this._minZoom},_r.minZoom.set=function(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))},_r.maxZoom.get=function(){return this._maxZoom},_r.maxZoom.set=function(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))},_r.renderWorldCopies.get=function(){return this._renderWorldCopies},_r.renderWorldCopies.set=function(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e},_r.worldSize.get=function(){return this.tileSize*this.scale},_r.centerPoint.get=function(){return this.size._div(2)},_r.size.get=function(){return new e.Point(this.width,this.height)},_r.bearing.get=function(){return-this.angle/Math.PI*180},_r.bearing.set=function(t){var n=-e.wrap(t,-180,180)*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=e.create$2(),e.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},_r.pitch.get=function(){return this._pitch/Math.PI*180},_r.pitch.set=function(t){var n=e.clamp(t,0,60)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())},_r.fov.get=function(){return this._fov/Math.PI*180},_r.fov.set=function(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())},_r.zoom.get=function(){return this._zoom},_r.zoom.set=function(e){var t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom,this._constrain(),this._calcMatrices())},_r.center.get=function(){return this._center},_r.center.set=function(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())},vr.prototype.coveringZoomLevel=function(e){return(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize))},vr.prototype.getVisibleUnwrappedCoordinates=function(t){var n=[new e.UnwrappedTileID(0,t)];if(this._renderWorldCopies)for(var r=this.pointCoordinate(new e.Point(0,0)),o=this.pointCoordinate(new e.Point(this.width,0)),i=this.pointCoordinate(new e.Point(this.width,this.height)),a=this.pointCoordinate(new e.Point(0,this.height)),s=Math.floor(Math.min(r.x,o.x,i.x,a.x)),l=Math.floor(Math.max(r.x,o.x,i.x,a.x)),u=s-1;u<=l+1;u++)0!==u&&n.push(new e.UnwrappedTileID(u,t));return n},vr.prototype.coveringTiles=function(t){var n=this.coveringZoomLevel(t),r=n;if(void 0!==t.minzoom&&n<t.minzoom)return[];void 0!==t.maxzoom&&n>t.maxzoom&&(n=t.maxzoom);var o=e.MercatorCoordinate.fromLngLat(this.center),i=Math.pow(2,n),a=new e.Point(i*o.x-.5,i*o.y-.5);return function(t,n,r,o){function i(n,i,l){var u,c,p,f;if(l>=0&&l<=a)for(u=n;u<i;u++)c=Math.floor(u/a),p=(u%a+a)%a,0!==c&&!0!==o||(f=new e.OverscaledTileID(r,c,t,p,l),s[f.key]=f)}void 0===o&&(o=!0);var a=1<<t,s={},l=n.map(function(t){return new e.Point(t.x,t.y)._mult(a)});return le(l[0],l[1],l[2],0,a,i),le(l[2],l[3],l[0],0,a,i),Object.keys(s).map(function(e){return s[e]})}(n,[this.pointCoordinate(new e.Point(0,0)),this.pointCoordinate(new e.Point(this.width,0)),this.pointCoordinate(new e.Point(this.width,this.height)),this.pointCoordinate(new e.Point(0,this.height))],t.reparseOverscaled?r:n,this._renderWorldCopies).sort(function(e,t){return a.dist(e.canonical)-a.dist(t.canonical)})},vr.prototype.resize=function(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()},_r.unmodified.get=function(){return this._unmodified},vr.prototype.zoomScale=function(e){return Math.pow(2,e)},vr.prototype.scaleZoom=function(e){return Math.log(e)/Math.LN2},vr.prototype.project=function(t){var n=e.clamp(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new e.Point(e.mercatorXfromLng(t.lng)*this.worldSize,e.mercatorYfromLat(n)
vendor: 4,631 bytes, line 1
1*this.worldSize)},vr.prototype.unproject=function(t){return new e.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()},_r.point.get=function(){return this.project(this.center)},vr.prototype.setLocationAtPoint=function(t,n){var r=this.pointCoordinate(n),o=this.pointCoordinate(this.centerPoint),i=this.locationCoordinate(t),a=new e.MercatorCoordinate(i.x-(r.x-o.x),i.y-(r.y-o.y));this.center=this.coordinateLocation(a),this._renderWorldCopies&&(this.center=this.center.wrap())},vr.prototype.locationPoint=function(e){return this.coordinatePoint(this.locationCoordinate(e))},vr.prototype.pointLocation=function(e){return this.coordinateLocation(this.pointCoordinate(e))},vr.prototype.locationCoordinate=function(t){return e.MercatorCoordinate.fromLngLat(t)},vr.prototype.coordinateLocation=function(e){return e.toLngLat()},vr.prototype.pointCoordinate=function(t){var n=[t.x,t.y,0,1],r=[t.x,t.y,1,1];e.transformMat4(n,n,this.pixelMatrixInverse),e.transformMat4(r,r,this.pixelMatrixInverse);var o=n[3],i=r[3],a=n[0]/o,s=r[0]/i,l=n[1]/o,u=r[1]/i,c=n[2]/o,p=r[2]/i,f=c===p?0:(0-c)/(p-c);return new e.MercatorCoordinate(e.number(a,s,f)/this.worldSize,e.number(l,u,f)/this.worldSize)},vr.prototype.coordinatePoint=function(t){var n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix),new e.Point(n[0]/n[3],n[1]/n[3])},vr.prototype.getBounds=function(){return(new e.LngLatBounds).extend(this.pointLocation(new e.Point(0,0))).extend(this.pointLocation(new e.Point(this.width,0))).extend(this.pointLocation(new e.Point(this.width,this.height))).extend(this.pointLocation(new e.Point(0,this.height)))},vr.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new e.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},vr.prototype.setMaxBounds=function(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},vr.prototype.calculatePosMatrix=function(t,n){void 0===n&&(n=!1);var r=t.key,o=n?this._alignedPosMatrixCache:this._posMatrixCache;if(o[r])return o[r];var i=t.canonical,a=this.worldSize/this.zoomScale(i.z),s=i.x+Math.pow(2,i.z)*t.wrap,l=e.identity(new Float64Array(16));return e.translate(l,l,[s*a,i.y*a,0]),e.scale(l,l,[a/e.EXTENT,a/e.EXTENT,1]),e.multiply(l,n?this.alignedProjMatrix:this.projMatrix,l),o[r]=new Float32Array(l),o[r]},vr.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},vr.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var t,n,r,o,i=-90,a=90,s=-180,l=180,u=this.size,c=this._unmodified;if(this.latRange){var p=this.latRange;i=e.mercatorYfromLat(p[1])*this.worldSize,t=(a=e.mercatorYfromLat(p[0])*this.worldSize)-i<u.y?u.y/(a-i):0}if(this.lngRange){var f=this.lngRange;s=e.mercatorXfromLng(f[0])*this.worldSize,n=(l=e.mercatorXfromLng(f[1])*this.worldSize)-s<u.x?u.x/(l-s):0}var h=this.point,d=Math.max(n||0,t||0);if(d)return this.center=this.unproject(new e.Point(n?(l+s)/2:h.x,t?(a+i)/2:h.y)),this.zoom+=this.scaleZoom(d),this._unmodified=c,void(this._constraining=!1);if(this.latRange){var m=h.y,y=u.y/2;m-y<i&&(o=i+y),m+y>a&&(o=a-y)}if(this.lngRange){var g=h.x,v=u.x/2;g-v<s&&(r=s+v),g+v>l&&(r=l-v)}void 0===r&&void 0===o||(this.center=this.unproject(new e.Point(void 0!==r?r:h.x,void 0!==o?o:h.y))),this._unmodified=c,this._constraining=!1}},vr.prototype._calcMatrices=function(){if(this.height){this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var t=this._fov/2,n=Math.PI/2+this._pitch,r=Math.sin(t)*this.cameraToCenterDistance/Math.sin(Math.PI-n-t),o=this.point,i=o.x,a=o.y,s=1.01*(Math.cos(Math.PI/2-this._pitch)*r+this.cameraToCenterDistance),l=this.height/50,u=new Float64Array(16);e.perspective(u,this._fov,this.width/this.height,l,s),e.scale(u,u,[1,-1,1]),e.translate(u,u,[0,0,-this.cameraToCenterDistance]),e.rotateX(u,u,this._pitch),e.rotateZ(u,u,this.angle),e.translate(u,u,[-i,-a,0]),this.mercatorMatrix=e.scale([],u,[this.worldSize,this.worldSize,this.worldSize]),e.scale(u,u,[1,1,e.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=u;var c=this.width%2/2,p=this.height%2/2,f=Math.cos(this.angle),h=Math.sin(this.angle),d=i-Math.round(i)+f*c+h*p,m=a-Math.round(a)+f*p+h*c,y=new Float64Array(u);if(e.translate(y,y,[d>.5?d-1:d,m>.5?m-1:m,0]),this.alignedProjMatrix=y,u=e.create(),e.scale(u,u,[this.width/2,-this.height/2,1]),e.translate(u,u,[1,-1,0]),this.labelPlaneMatr
1ix=u,u=e.create(),e.scale(u,u,[1,-1,1]),e.translate(u,u,[-1,-1,0]),e.scale(u,u,[2/this.width,2/this.height,1]),this.glCoordMatrix=u,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(u=e.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=u,this._posMatrixCache={},this._alignedPosMatrixCache={}}},vr.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var t=this.pointCoordinate(new e.Point(0,0)),n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance},vr.prototype.getCameraPoint=function(){var t=this._pitch,n=Math.tan(t)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.Point(0,n))},vr.prototype.getCameraQueryGeometry=function(t){var n=this.getCameraPoint();if(1===t.length)return[t[0],n];for(var r=n.x,o=n.y,i=n.x,a=n.y,s=0,l=t;s<l.length;s+=1){var u=l[s];r=Math.min(r,u.x),o=Math.min(o,u.y),i=Math.max(i,u.x),a=Math.max(a,u.y)}return[new e.Point(r,o),new e.Point(i,o),new e.Point(i,a),new e.Point(r,a),new e.Point(r,o)]},Object.defineProperties(vr.prototype,_r);var br=function(){var t,n,r,o,i;e.bindAll(["_onHashChange","_updateHash"],this),this._updateHash=(t=this._updateHashUnthrottled.bind(this),n=300,r=!1,o=null,i=function(){o=null,r&&(t(),o=setTimeout(i,n),r=!1)},function(){return r=!0,o||i(),o})};br.prototype.addTo=function(t){return this._map=t,e.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},br.prototype.remove=function(){return e.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},br.prototype.getHashString=function(e){var t=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,r=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,r),i=Math.round(t.lng*o)/o,a=Math.round(t.lat*o)/o,s=this._map.getBearing(),l=this._map.getPitch(),u="";return u+=e?"#/"+i+"/"+a+"/"+n:"#"+n+"/"+a+"/"+i,(s||l)&&(u+="/"+Math.round(10*s)/10),l&&(u+="/"+Math.round(l)),u},br.prototype._onHashChange=function(){var t=e.window.location.hash.replace("#","").split("/");return t.length>=3&&(this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:+(t[3]||0),pitch:+(t[4]||0)}),!0)},br.prototype._updateHashUnthrottled=function(){var t=this.getHashString();try{e.window.history.replaceState(e.window.history.state,"",t)}catch(e){}};var xr=function(t){function n(n,r,o,i){void 0===i&&(i={});var a=ge.mousePos(r.getCanvasContainer(),o),s=r.unproject(a);t.call(this,n,e.extend({point:a,lngLat:s,originalEvent:o},i)),this._defaultPrevented=!1,this.target=r}t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n;var r={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,r),n}(e.Event),wr=function(t){function n(n,r,o){var i=ge.touchPos(r.getCanvasContainer(),o),a=i.map(function(e){return r.unproject(e)}),s=i.reduce(function(e,t,n,r){return e.add(t.div(r.length))},new e.Point(0,0)),l=r.unproject(s);t.call(this,n,{points:i,point:s,lngLats:a,lngLat:l,originalEvent:o}),this._defaultPrevented=!1}t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n;var r={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,r),n}(e.Event),Er=function(e){function t(t,n,r){e.call(this,t,{originalEvent:r}),this._defaultPrevented=!1}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={defaultPrevented:{configurable:!0}};return t.prototype.preventDefault=function(){this._defaultPrevented=!0},n.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(t.prototype,n),t}(e.Event),Tr=function(t){this._map=t,this._el=t.getCanvasContainer(),this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,e.bindAll(["_onWheel","_onTimeout","_onScrollFrame","_onScrollFinished"],this)};Tr.prototype.setZoomRate=function(e){this._defaultZoomRate=e},Tr.prototype.setWheelZoomRate=function(e){this._wheelZoomRate=e},Tr.prototype.isEnabled=function(){return!!this._enabled},Tr.prototype.isActive=function(){return!!this._active},Tr.prototype.isZooming=function(){return!!this._zooming},Tr.prototype.enable=function(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=e&&"center"===e.around)},Tr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Tr.prototype.onWheel=function(t){if(this.isEnabled()){var n=t.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,r=e.browser.now(),o=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%4.000244140625==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":o>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(o*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this.isActive()||this._start(t)),t.preventDefault()}}
1,Tr.prototype._onTimeout=function(e){this._type="wheel",this._delta-=this._lastValue,this.isActive()||this._start(e)},Tr.prototype._start=function(t){if(this._delta){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0,this._map.fire(new e.Event("movestart",{originalEvent:t})),this._map.fire(new e.Event("zoomstart",{originalEvent:t}))),this._finishTimeout&&clearTimeout(this._finishTimeout);var n=ge.mousePos(this._el,t);this._around=e.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame))}},Tr.prototype._onScrollFrame=function(){var t=this;if(this._frameId=null,this.isActive()){var n=this._map.transform;if(0!==this._delta){var r="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,o=2/(1+Math.exp(-Math.abs(this._delta*r)));this._delta<0&&0!==o&&(o=1/o);var i="number"==typeof this._targetZoom?n.zoomScale(this._targetZoom):n.scale;this._targetZoom=Math.min(n.maxZoom,Math.max(n.minZoom,n.scaleZoom(i*o))),"wheel"===this._type&&(this._startZoom=n.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var a="number"==typeof this._targetZoom?this._targetZoom:n.zoom,s=this._startZoom,l=this._easing,u=!1;if("wheel"===this._type&&s&&l){var c=Math.min((e.browser.now()-this._lastWheelEventTime)/200,1),p=l(c);n.zoom=e.number(s,a,p),c<1?this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame)):u=!0}else n.zoom=a,u=!0;n.setLocationAtPoint(this._around,this._aroundPoint),this._map.fire(new e.Event("move",{originalEvent:this._lastWheelEvent})),this._map.fire(new e.Event("zoom",{originalEvent:this._lastWheelEvent})),u&&(this._active=!1,this._finishTimeout=setTimeout(function(){t._zooming=!1,t._map.fire(new e.Event("zoomend",{originalEvent:t._lastWheelEvent})),t._map.fire(new e.Event("moveend",{originalEvent:t._lastWheelEvent})),delete t._targetZoom},200))}},Tr.prototype._smoothOutEasing=function(t){var n=e.ease;if(this._prevEase){var r=this._prevEase,o=(e.browser.now()-r.start)/r.duration,i=r.easing(o+.01)-r.easing(o),a=.27/Math.sqrt(i*i+1e-4)*.01,s=Math.sqrt(.0729-a*a);n=e.bezier(a,s,.25,1)}return this._prevEase={start:e.browser.now(),duration:t,easing:n},n};var Or=function(t,n){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=n.clickTolerance||1,e.bindAll(["_onMouseMove","_onMouseUp","_onKeyDown"],this)};Or.prototype.isEnabled=function(){return!!this._enabled},Or.prototype.isActive=function(){return!!this._active},Or.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Or.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Or.prototype.onMouseDown=function(t){this.isEnabled()&&t.shiftKey&&0===t.button&&(e.window.document.addEventListener("mousemove",this._onMouseMove,!1),e.window.document.addEventListener("keydown",this._onKeyDown,!1),e.window.document.addEventListener("mouseup",this._onMouseUp,!1),ge.disableDrag(),this._startPos=this._lastPos=ge.mousePos(this._el,t),this._active=!0)},Or.prototype._onMouseMove=function(e){var t=ge.mousePos(this._el,e);if(!(this._lastPos.equals(t)||!this._box&&t.dist(this._startPos)<this._clickTolerance)){var n=this._startPos;this._lastPos=t,this._box||(this._box=ge.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));var r=Math.min(n.x,t.x),o=Math.max(n.x,t.x),i=Math.min(n.y,t.y),a=Math.max(n.y,t.y);ge.setTransform(this._box,"translate("+r+"px,"+i+"px)"),this._box.style.width=o-r+"px",this._box.style.height=a-i+"px"}},Or.prototype._onMouseUp=function(t){if(0===t.button){var n=this._startPos,r=ge.mousePos(this._el,t);this._finish(),ge.suppressClick(),n.x===r.x&&n.y===r.y?this._fireEvent("boxzoomcancel",t):this._map.fitScreenCoordinates(n,r,this._map.getBearing(),{linear:!0}).fire(new e.Event("boxzoomend",{originalEvent:t}))}}
1,Or.prototype._onKeyDown=function(e){27===e.keyCode&&(this._finish(),this._fireEvent("boxzoomcancel",e))},Or.prototype._finish=function(){this._active=!1,e.window.document.removeEventListener("mousemove",this._onMouseMove,!1),e.window.document.removeEventListener("keydown",this._onKeyDown,!1),e.window.document.removeEventListener("mouseup",this._onMouseUp,!1),this._container.classList.remove("mapboxgl-crosshair"),this._box&&(ge.remove(this._box),this._box=null),ge.enableDrag(),delete this._startPos,delete this._lastPos},Or.prototype._fireEvent=function(t,n){return this._map.fire(new e.Event(t,{originalEvent:n}))};var Cr=e.bezier(0,0,.25,1),Sr=function(t,n){this._map=t,this._el=n.element||t.getCanvasContainer(),this._state="disabled",this._button=n.button||"right",this._bearingSnap=n.bearingSnap||0,this._pitchWithRotate=!1!==n.pitchWithRotate,e.bindAll(["onMouseDown","_onMouseMove","_onMouseUp","_onBlur","_onDragFrame"],this)};Sr.prototype.isEnabled=function(){return"disabled"!==this._state},Sr.prototype.isActive=function(){return"active"===this._state},Sr.prototype.enable=function(){this.isEnabled()||(this._state="enabled")},Sr.prototype.disable=function(){if(this.isEnabled())switch(this._state){case"active":this._state="disabled",this._unbind(),this._deactivate(),this._fireEvent("rotateend"),this._pitchWithRotate&&this._fireEvent("pitchend"),this._fireEvent("moveend");break;case"pending":this._state="disabled",this._unbind();break;default:this._state="disabled"}},Sr.prototype.onMouseDown=function(t){if("enabled"===this._state){var n="touchstart"===t.type;if(n)this._startTime=Date.now();else if("right"===this._button){if(this._eventButton=ge.mouseButton(t),this._eventButton!==(t.ctrlKey?0:2))return}else{if(t.ctrlKey||0!==ge.mouseButton(t))return;this._eventButton=0}ge.disableDrag(),n?(e.window.document.addEventListener("touchmove",this._onMouseMove,{capture:!0}),e.window.document.addEventListener("touchend",this._onMouseUp)):(e.window.document.addEventListener("mousemove",this._onMouseMove,{capture:!0}),e.window.document.addEventListener("mouseup",this._onMouseUp)),e.window.addEventListener("blur",this._onBlur),this._state="pending",this._inertia=[[e.browser.now(),this._map.getBearing()]],this._startPos=this._prevPos=this._lastPos=ge.mousePos(this._el,t),this._center=this._map.transform.centerPoint,t.preventDefault()}},Sr.prototype._onMouseMove=function(e){var t=ge.mousePos(this._el,e);this._lastPos.equals(t)||(this._lastMoveEvent=e,this._lastPos=t,"pending"===this._state&&(this._state="active",this._fireEvent("rotatestart",e),this._fireEvent("movestart",e),this._pitchWithRotate&&this._fireEvent("pitchstart",e)),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame)))},Sr.prototype._onDragFrame=function(){this._frameId=null;var t=this._lastMoveEvent;if(t){var n=this._map.transform,r=this._prevPos,o=this._lastPos,i=.8*(r.x-o.x),a=-.5*(r.y-o.y),s=n.bearing-i,l=n.pitch-a,u=this._inertia,c=u[u.length-1];this._drainInertiaBuffer(),u.push([e.browser.now(),this._map._normalizeBearing(s,c[1])]),n.bearing=s,this._pitchWithRotate&&(this._fireEvent("pitch",t),n.pitch=l),this._fireEvent("rotate",t),this._fireEvent("move",t),delete this._lastMoveEvent,this._prevPos=this._lastPos}},Sr.prototype._onMouseUp=function(e){if("touchend"===e.type&&this._startPos===this._lastPos&&Date.now()-this._startTime<300&&this._el.click(),ge.mouseButton(e)===this._eventButton)switch(this._state){case"active":this._state="enabled",ge.suppressClick(),this._unbind(),this._deactivate(),this._inertialRotate(e);break;case"pending":this._state="enabled",this._unbind()}},Sr.prototype._onBlur=function(e){switch(this._state){case"active":this._state="enabled",this._unbind(),this._deactivate(),this._fireEvent("rotateend",e),this._pitchWithRotate&&this._fireEvent("pitchend",e),this._fireEvent("moveend",e);break;case"pending":this._state="enabled",this._unbind()}},Sr.prototype._unbind=function(){e.window.document.removeEventListener("mousemove",this._onMouseMove,{capture:!0}),e.window.document.removeEventListener("mouseup",this._onMouseUp),e.window.document.removeEventListener("touchmove",this._onMouseMove,{capture:!0}),e.window.document.removeEventListener("touchend",this._onMouseUp),e.window.removeEventListener("blur",this._onBlur),ge.enableDrag()},Sr.prototype._deactivate=function(){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._startPos,delete this._prevPos,delete this._lastPos},Sr.prototype._inertialRotate=function(e){var t=this;this._fireEvent("rotateend",e),this._drainInertiaBuffer();var n=this._map,r=n.getBearing(),o=this._inertia,i=function(){Math.abs(r)<t._bearingSnap?n.resetNorth({noMoveStart:!0},{originalEvent:e}):t._fireEvent("moveend",e),t._pitchWithRotate&&t._fireEvent("pitchend",e)};if(o.length<2)i();else{var a=o[0],s=o[o.length-1],l=o[o.length-2],u=n._normalizeBearing(r,l[1]),c=s[1]-a[1],p=c<0?-1:1,f=(s[0]-a[0])/1e3;if(0!==c&&0!==f){var h=Math.abs(c*(.25/f));h>180&&(h=180);var d=h/180;u+=p*h*(d/2),Math.abs(n._normalizeBearing(u,0))<this._bearingSnap&&(u=n._normalizeBearing(0,u)),n.rotateTo(u,{duration:1e3*d,easing:Cr,noMoveStart:!0},{originalEvent:e})}else i()}},Sr.prototype._fireEvent=function(t,n){return this._map.fire(new e.Event(t,n?{originalEvent:n}:{}))},Sr.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,n=e.browser.now();t.length>0&&n-t[0][0]>160;)t.shift()};var kr=e.bezier(0,0,.3,1),Ar=function(t,n){this._map=t,this._el=t.getCanvasContainer(),this._state="disabled",this._clickTolerance=n.clickTolerance||1,e.bindAll(["_onMove","_onMouseUp","_onTouchEnd","_onBlur","_onDragFrame"],this)};Ar.prototype.isEnabled=function(){return"disabled"!==this._state},Ar.prototype.isActive=function(){return"active"===this._state},Ar.prototype.enable=function(){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-drag-pan"),this._state="enabled")},Ar.prototype.disable=function(){if(this.isEnabled())switch(this._el.classList.remove("mapboxgl-touch-drag-pan"),this._state){case"active":this._state="disabled",this._unbind(),this._deactivate(),this._fireEvent("dragend"),this._fireEvent("moveend");break;
1case"pending":this._state="disabled",this._unbind();break;default:this._state="disabled"}},Ar.prototype.onMouseDown=function(t){"enabled"===this._state&&(t.ctrlKey||0!==ge.mouseButton(t)||(ge.addEventListener(e.window.document,"mousemove",this._onMove,{capture:!0}),ge.addEventListener(e.window.document,"mouseup",this._onMouseUp),this._start(t)))},Ar.prototype.onTouchStart=function(t){"enabled"===this._state&&(t.touches.length>1||(ge.addEventListener(e.window.document,"touchmove",this._onMove,{capture:!0,passive:!1}),ge.addEventListener(e.window.document,"touchend",this._onTouchEnd),this._start(t)))},Ar.prototype._start=function(t){e.window.addEventListener("blur",this._onBlur),this._state="pending",this._startPos=this._mouseDownPos=this._prevPos=this._lastPos=ge.mousePos(this._el,t),this._inertia=[[e.browser.now(),this._startPos]]},Ar.prototype._onMove=function(t){t.preventDefault();var n=ge.mousePos(this._el,t);this._lastPos.equals(n)||"pending"===this._state&&n.dist(this._mouseDownPos)<this._clickTolerance||(this._lastMoveEvent=t,this._lastPos=n,this._drainInertiaBuffer(),this._inertia.push([e.browser.now(),this._lastPos]),"pending"===this._state&&(this._state="active",this._fireEvent("dragstart",t),this._fireEvent("movestart",t)),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame)))},Ar.prototype._onDragFrame=function(){this._frameId=null;var e=this._lastMoveEvent;if(e){var t=this._map.transform;t.setLocationAtPoint(t.pointLocation(this._prevPos),this._lastPos),this._fireEvent("drag",e),this._fireEvent("move",e),this._prevPos=this._lastPos,delete this._lastMoveEvent}},Ar.prototype._onMouseUp=function(e){if(0===ge.mouseButton(e))switch(this._state){case"active":this._state="enabled",ge.suppressClick(),this._unbind(),this._deactivate(),this._inertialPan(e);break;case"pending":this._state="enabled",this._unbind()}},Ar.prototype._onTouchEnd=function(e){switch(this._state){case"active":this._state="enabled",this._unbind(),this._deactivate(),this._inertialPan(e);break;case"pending":this._state="enabled",this._unbind()}},Ar.prototype._onBlur=function(e){switch(this._state){case"active":this._state="enabled",this._unbind(),this._deactivate(),this._fireEvent("dragend",e),this._fireEvent("moveend",e);break;case"pending":this._state="enabled",this._unbind()}},Ar.prototype._unbind=function(){ge.removeEventListener(e.window.document,"touchmove",this._onMove,{capture:!0,passive:!1}),ge.removeEventListener(e.window.document,"touchend",this._onTouchEnd),ge.removeEventListener(e.window.document,"mousemove",this._onMove,{capture:!0}),ge.removeEventListener(e.window.document,"mouseup",this._onMouseUp),ge.removeEventListener(e.window,"blur",this._onBlur)},Ar.prototype._deactivate=function(){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._startPos,delete this._prevPos,delete this._mouseDownPos,delete this._lastPos},Ar.prototype._inertialPan=function(e){this._fireEvent("dragend",e),this._drainInertiaBuffer();var t=this._inertia;if(t.length<2)this._fireEvent("moveend",e);else{var n=t[t.length-1],r=t[0],o=n[1].sub(r[1]),i=(n[0]-r[0])/1e3;if(0===i||n[1].equals(r[1]))this._fireEvent("moveend",e);else{var a=o.mult(.3/i),s=a.mag();s>1400&&(s=1400,a._unit()._mult(s));var l=s/750,u=a.mult(-l/2);this._map.panBy(u,{duration:1e3*l,easing:kr,noMoveStart:!0},{originalEvent:e})}}},Ar.prototype._fireEvent=function(t,n){return this._map.fire(new e.Event(t,n?{originalEvent:n}:{}))},Ar.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,n=e.browser.now();t.length>0&&n-t[0][0]>160;)t.shift()};var Pr=function(t){this._map=t,this._el=t.getCanvasContainer(),e.bindAll(["_onKeyDown"],this)};Pr.prototype.isEnabled=function(){return!!this._enabled},Pr.prototype.enable=function(){this.isEnabled()||(this._el.addEventListener("keydown",this._onKeyDown,!1),this._enabled=!0)},Pr.prototype.disable=function(){this.isEnabled()&&(this._el.removeEventListener("keydown",this._onKeyDown),this._enabled=!1)},Pr.prototype._onKeyDown=function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t=0,n=0,r=0,o=0,i=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?n=-1:(e.preventDefault(),o=-1);break;case 39:e.shiftKey?n=1:(e.preventDefault(),o=1);break;case 38:e.shiftKey?r=1:(e.preventDefault(),i=-1);break;case 40:e.shiftKey?r=-1:(i=1,e.preventDefault());break;default:return}var a=this._map,s=a.getZoom(),l={duration:300,delayEndEvents:500,easing:ue,zoom:t?Math.round(s)+t*(e.shiftKey?2:1):s,bearing:a.getBearing()+15*n,pitch:a.getPitch()+10*r,offset:[100*-o,100*-i],center:a.getCenter()};a.easeTo(l,{originalEvent:e})}};var Rr=function(t){this._map=t,e.bindAll(["_onDblClick","_onZoomEnd"],this)};Rr.prototype.isEnabled=function(){return!!this._enabled},Rr.prototype.isActive=function(){return!!this._active},Rr.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Rr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Rr.prototype.onTouchStart=function(e){var t=this;if(this.isEnabled()&&!(e.points.length>1))if(this._tapped){var n=e.points[0],r=this._tappedPoint;if(r&&r.dist(n)<=30){e.originalEvent.preventDefault();var o=function(){t._tapped&&t._zoom(e),t._map.off("touchcancel",i),t._resetTapped()},i=function(){t._map.off("touchend",o),t._resetTapped()};this._map.once("touchend",o),this._map.once("touchcancel",i)}else this._resetTapped()}else this._tappedPoint=e.points[0],this._tapped=setTimeout(function(){t._tapped=null,t._tappedPoint=null},300)},Rr.prototype._resetTapped=function(){clearTimeout(this._tapped),this._tapped=null,this._tappedPoint=null},Rr.prototype.onDblClick=function(e){this.isEnabled()&&(e.originalEvent.preventDefault(),this._zoom(e))},Rr.prototype._zoom=function(e){this._active=!0,this._map.on("zoomend",this._onZoomEnd),this._map.zoomTo(this._map.getZoom()+(e.originalEvent.shiftKey?-1:1),{around:e.lngLat},e)},Rr.prototype._onZoomEnd=function(){this._active=!1,this._map.off("zoomend",this._onZoomEnd)};
vendor: 8,924 bytes, line 1
1var Dr=e.bezier(0,0,.15,1),Ir=function(t){this._map=t,this._el=t.getCanvasContainer(),e.bindAll(["_onMove","_onEnd","_onTouchFrame"],this)};Ir.prototype.isEnabled=function(){return!!this._enabled},Ir.prototype.enable=function(e){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-zoom-rotate"),this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around)},Ir.prototype.disable=function(){this.isEnabled()&&(this._el.classList.remove("mapboxgl-touch-zoom-rotate"),this._enabled=!1)},Ir.prototype.disableRotation=function(){this._rotationDisabled=!0},Ir.prototype.enableRotation=function(){this._rotationDisabled=!1},Ir.prototype.onStart=function(t){if(this.isEnabled()&&2===t.touches.length){var n=ge.mousePos(this._el,t.touches[0]),r=ge.mousePos(this._el,t.touches[1]),o=n.add(r).div(2);this._startVec=n.sub(r),this._startAround=this._map.transform.pointLocation(o),this._gestureIntent=void 0,this._inertia=[],ge.addEventListener(e.window.document,"touchmove",this._onMove,{passive:!1}),ge.addEventListener(e.window.document,"touchend",this._onEnd)}},Ir.prototype._getTouchEventData=function(e){var t=ge.mousePos(this._el,e.touches[0]),n=ge.mousePos(this._el,e.touches[1]),r=t.sub(n);return{vec:r,center:t.add(n).div(2),scale:r.mag()/this._startVec.mag(),bearing:this._rotationDisabled?0:180*r.angleWith(this._startVec)/Math.PI}},Ir.prototype._onMove=function(t){if(2===t.touches.length){var n=this._getTouchEventData(t),r=n.vec,o=n.scale,i=n.bearing;if(!this._gestureIntent){var a=this._rotationDisabled&&1!==o||Math.abs(1-o)>.15;Math.abs(i)>10?this._gestureIntent="rotate":a&&(this._gestureIntent="zoom"),this._gestureIntent&&(this._map.fire(new e.Event(this._gestureIntent+"start",{originalEvent:t})),this._map.fire(new e.Event("movestart",{originalEvent:t})),this._startVec=r)}this._lastTouchEvent=t,this._frameId||(this._frameId=this._map._requestRenderFrame(this._onTouchFrame)),t.preventDefault()}},Ir.prototype._onTouchFrame=function(){this._frameId=null;var t=this._gestureIntent;if(t){var n=this._map.transform;this._startScale||(this._startScale=n.scale,this._startBearing=n.bearing);var r=this._getTouchEventData(this._lastTouchEvent),o=r.center,i=r.bearing,a=r.scale,s=n.pointLocation(o),l=n.locationPoint(s);"rotate"===t&&(n.bearing=this._startBearing+i),n.zoom=n.scaleZoom(this._startScale*a),n.setLocationAtPoint(this._startAround,l),this._map.fire(new e.Event(t,{originalEvent:this._lastTouchEvent})),this._map.fire(new e.Event("move",{originalEvent:this._lastTouchEvent})),this._drainInertiaBuffer(),this._inertia.push([e.browser.now(),a,o])}},Ir.prototype._onEnd=function(t){ge.removeEventListener(e.window.document,"touchmove",this._onMove,{passive:!1}),ge.removeEventListener(e.window.document,"touchend",this._onEnd);var n=this._gestureIntent,r=this._startScale;if(this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._gestureIntent,delete this._startScale,delete this._startBearing,delete this._lastTouchEvent,n){this._map.fire(new e.Event(n+"end",{originalEvent:t})),this._drainInertiaBuffer();var o=this._inertia,i=this._map;if(o.length<2)i.snapToNorth({},{originalEvent:t});else{var a=o[o.length-1],s=o[0],l=i.transform.scaleZoom(r*a[1]),u=i.transform.scaleZoom(r*s[1]),c=l-u,p=(a[0]-s[0])/1e3,f=a[2];if(0!==p&&l!==u){var h=.15*c/p;Math.abs(h)>2.5&&(h=h>0?2.5:-2.5);var d=1e3*Math.abs(h/(12*.15)),m=l+h*d/2e3;m<0&&(m=0),i.easeTo({zoom:m,duration:d,easing:Dr,around:this._aroundCenter?i.getCenter():i.unproject(f),noMoveStart:!0},{originalEvent:t})}else i.snapToNorth({},{originalEvent:t})}}},Ir.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,n=e.browser.now();t.length>2&&n-t[0][0]>160;)t.shift()};var Mr={scrollZoom:Tr,boxZoom:Or,dragRotate:Sr,dragPan:Ar,keyboard:Pr,doubleClickZoom:Rr,touchZoomRotate:Ir},Lr=function(t){function n(n,r){t.call(this),this._moving=!1,this._zooming=!1,this.transform=n,this._bearingSnap=r.bearingSnap,e.bindAll(["_renderFrameCallback"],this)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.getCenter=function(){return new e.LngLat(this.transform.center.lng,this.transform.center.lat)},n.prototype.setCenter=function(e,t){return this.jumpTo({center:e},t)},n.prototype.panBy=function(t,n,r){return t=e.Point.convert(t).mult(-1),this.panTo(this.transform.center,e.extend({offset:t},n),r)},n.prototype.panTo=function(t,n,r){return this.easeTo(e.extend({center:t},n),r)},n.prototype.getZoom=function(){return this.transform.zoom},n.prototype.setZoom=function(e,t){return this.jumpTo({zoom:e},t),this},n.prototype.zoomTo=function(t,n,r){return this.easeTo(e.extend({zoom:t},n),r)},n.prototype.zoomIn=function(e,t){return this.zoomTo(this.getZoom()+1,e,t),this},n.prototype.zoomOut=function(e,t){return this.zoomTo(this.getZoom()-1,e,t),this},n.prototype.getBearing=function(){return this.transform.bearing},n.prototype.setBearing=function(e,t){return this.jumpTo({bearing:e},t),this},n.prototype.rotateTo=function(t,n,r){return this.easeTo(e.extend({bearing:t},n),r)},n.prototype.resetNorth=function(t,n){return this.rotateTo(0,e.extend({duration:1e3},t),n),this},n.prototype.resetNorthPitch=function(t,n){return this.easeTo(e.extend({bearing:0,pitch:0,duration:1e3},t),n),this},n.prototype.snapToNorth=function(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this},n.prototype.getPitch=function(){return this.transform.pitch},n.prototype.setPitch=function(e,t){return this.jumpTo({pitch:e},t),this},n.prototype.cameraForBounds=function(t,n){return t=e.LngLatBounds.convert(t),this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),0,n)},n.prototype._cameraForBoxAndBearing=function(t,n,r,o){if("number"==typeof(o=e.extend({padding:{top:0,bottom:0,right:0,left:0},offset:[0,0],maxZoom:this.transform.maxZoom},o)).padding){var i=o.padding;o.padding={top:i,bottom:i,right:i,left:i}}if(e.deepEqual(Object.keys(o.padding).sort(function(e,t){return e<t?-1:e>t?1:0}),["bottom","left","right","top"])){var a=this.transform,s=a.project(e.LngLat.convert(t)),l=a.project(e.LngLat.convert(n)),u=s.rotate(-r*Math.PI/180),c=l.rotate(-r*Math.PI/180),p=new e.Point(Math.max(u.x,c.x),Math.max(u.y,c.y)),f=new e.Point(Math.min(u.x,c.x),Math.min(u.y,c.y)),h=p.sub(f),d=(a.width-o.padding.left-o.padding.right)/h.x,m=(a.height-o.padding.top-o.padding.bottom)/h.y;if(!(m<0||d<0)){var y=Math.min(a.scaleZoom(a.scale*Math.min(d,m)),o.maxZoom),g=e.Point.convert(o.offset),v=(o.padding.left-o.padding.right)/2,_=(o.padding.top-o.padding.bottom)/2,b=new e.Point(g.x+v,g.y+_).mult(a.scale/a.zoomScale(y));return{center:a.unproject(s.add(l).div(2).sub(b)),zoom:y,bearing:r}}e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}else e.warnOnce("options.padding must be a positive number, or an Object with keys 'bottom', 'left', 'right', 'top'")},n.prototype.fitBounds=function(e,t,n){return this._fitInternal(this.cameraForBounds(e,t),t,n)},n.prototype.fitScreenCoordinates=function(t,n,r,o,i){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(e.Point.convert(t)),this.transform.pointLocation(e.Point.convert(n)),r,o),o,i)},n.prototype._fitInternal=function(t,n,r){return t?(n=e.extend(t,n)).linear?this.easeTo(n,r):this.flyTo(n,r):this},n.prototype.jumpTo=function(t,n){this.stop();var r=this.transform,o=!1,i=!1,a=!1;return"zoom"in t&&r.zoom!==+t.zoom&&(o=!0,r.zoom=+t.zoom),void 0!==t.center&&(r.center=e.LngLat.convert(t.center)),"bearing"in t&&r.bearing!==+t.bearing&&(i=!0,r.bearing=+t.bearing),"pitch"in t&&r.pitch!==+t.pitch&&(a=!0,r.pitch=+t.pitch),this.fire(new e.Event("movestart",n)).fire(new e.Event("move",n)),o&&this.fire(new e.Event("zoomstart",n)).fire(new e.Event("zoom",n)).fire(new e.Event("zoomend",n)),i&&this.fire(new e.Event("rotatestart",n)).fire(new e.Event("rotate",n)).fire(new e.Event("rotateend",n)),a&&this.fire(new e.Event("pitchstart",n)).fire(new e.Event("pitch",n)).fire(new e.Event("pitchend",n)),this.fire(new e.Event("moveend",n))},n.prototype.easeTo=function(t,n){var r=this;this.stop(),(!1===(t=e.extend({offset:[0,0],duration:500,easing:e.ease},t)).animate||e.browser.prefersReducedMotion)&&(t.duration=0);var o=this.transform,i=this.getZoom(),a=this.getBearing(),s=this.getPitch(),l="zoom"in t?+t.zoom:i,u="bearing"in t?this._normalizeBearing(t.bearing,a):a,c="pitch"in t?+t.pitch:s,p=o.centerPoint.add(e.Point.convert(t.offset)),f=o.pointLocation(p),h=e.LngLat.convert(t.center||f);this._normalizeCenter(h);var d,m,y=o.project(f),g=o.project(h).sub(y),v=o.zoomScale(l-i);return t.around&&(d=e.LngLat.convert(t.around),m=o.locationPoint(d)),this._zooming=l!==i,this._rotating=a!==u,this._pitching=c!==s,this._prepareEase(n,t.noMoveStart),clearTimeout(this._easeEndTimeoutID),this._ease(function(t){if(r._zooming&&(o.zoom=e.number(i,l,t)),r._rotating&&(o.bearing=e.number(a,u,t)),r._pitching&&(o.pitch=e.number(s,c,t)),d)o.set
1LocationAtPoint(d,m);else{var f=o.zoomScale(o.zoom-i),h=l>i?Math.min(2,v):Math.max(.5,v),_=Math.pow(h,1-t),b=o.unproject(y.add(g.mult(t*_)).mult(f));o.setLocationAtPoint(o.renderWorldCopies?b.wrap():b,p)}r._fireMoveEvents(n)},function(){t.delayEndEvents?r._easeEndTimeoutID=setTimeout(function(){return r._afterEase(n)},t.delayEndEvents):r._afterEase(n)},t),this},n.prototype._prepareEase=function(t,n){this._moving=!0,n||this.fire(new e.Event("movestart",t)),this._zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&this.fire(new e.Event("pitchstart",t))},n.prototype._fireMoveEvents=function(t){this.fire(new e.Event("move",t)),this._zooming&&this.fire(new e.Event("zoom",t)),this._rotating&&this.fire(new e.Event("rotate",t)),this._pitching&&this.fire(new e.Event("pitch",t))},n.prototype._afterEase=function(t){var n=this._zooming,r=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,n&&this.fire(new e.Event("zoomend",t)),r&&this.fire(new e.Event("rotateend",t)),o&&this.fire(new e.Event("pitchend",t)),this.fire(new e.Event("moveend",t))},n.prototype.flyTo=function(t,n){function r(e){var t=(E*E-w*w+(e?-1:1)*S*S*T*T)/(2*(e?E:w)*S*T);return Math.log(Math.sqrt(t*t+1)-t)}function o(e){return(Math.exp(e)-Math.exp(-e))/2}function i(e){return(Math.exp(e)+Math.exp(-e))/2}var a=this;if(e.browser.prefersReducedMotion){var s=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(s,n)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);var l=this.transform,u=this.getZoom(),c=this.getBearing(),p=this.getPitch(),f="zoom"in t?e.clamp(+t.zoom,l.minZoom,l.maxZoom):u,h="bearing"in t?this._normalizeBearing(t.bearing,c):c,d="pitch"in t?+t.pitch:p,m=l.zoomScale(f-u),y=l.centerPoint.add(e.Point.convert(t.offset)),g=l.pointLocation(y),v=e.LngLat.convert(t.center||g);this._normalizeCenter(v);var _=l.project(g),b=l.project(v).sub(_),x=t.curve,w=Math.max(l.width,l.height),E=w/m,T=b.mag();if("minZoom"in t){var O=e.clamp(Math.min(t.minZoom,u,f),l.minZoom,l.maxZoom),C=w/l.zoomScale(O-u);x=Math.sqrt(C/T*2)}var S=x*x,k=r(0),A=function(e){return i(k)/i(k+x*e)},P=function(e){return w*((i(k)*(o(t=k+x*e)/i(t))-o(k))/S)/T;var t},R=(r(1)-k)/x;if(Math.abs(T)<1e-6||!isFinite(R)){if(Math.abs(w-E)<1e-6)return this.easeTo(t,n);var D=E<w?-1:1;R=Math.abs(Math.log(E/w))/x,P=function(){return 0},A=function(e){return Math.exp(D*x*e)}}if("duration"in t)t.duration=+t.duration;else{var I="screenSpeed"in t?+t.screenSpeed/x:+t.speed;t.duration=1e3*R/I}return t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=c!==h,this._pitching=d!==p,this._prepareEase(n,!1),this._ease(function(t){var r=t*R,o=1/A(r);l.zoom=1===t?f:u+l.scaleZoom(o),a._rotating&&(l.bearing=e.number(c,h,t)),a._pitching&&(l.pitch=e.number(p,d,t));var i=1===t?v:l.unproject(_.add(b.mult(P(r))).mult(o));l.setLocationAtPoint(l.renderWorldCopies?i.wrap():i,y),a._fireMoveEvents(n)},function(){return a._afterEase(n)},t),this},n.prototype.isEasing=function(){return!!this._easeFrameId},n.prototype.stop=function(){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var e=this._onEaseEnd;delete this._onEaseEnd,e.call(this)}return this},n.prototype._ease=function(t,n,r){!1===r.animate||0===r.duration?(t(1),n()):(this._easeStart=e.browser.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},n.prototype._renderFrameCallback=function(){var t=Math.min((e.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},n.prototype._normalizeBearing=function(t,n){t=e.wrap(t,-180,180);var r=Math.abs(t-n);return Math.abs(t-360-n)<r&&(t-=360),Math.abs(t+360-n)<r&&(t+=360),t},n.prototype._normalizeCenter=function(e){var t=this.transform;if(t.renderWorldCopies&&!t.lngRange){var n=e.lng-t.center.lng;e.lng+=n>180?-360:n<-180?360:0}},n}(e.Evented),jr=function(t){void 0===t&&(t={}),this.options=t,e.bindAll(["_updateEditLink","_updateData","_updateCompact"],this)};jr.prototype.getDefaultPosition=function(){return"bottom-right"},jr.prototype.onAdd=function(e){var t=this.options&&this.options.compact;return this._map=e,this._container=ge.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._innerContainer=ge.create("div","mapboxgl-ctrl-attrib-inner",this._container),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},jr.prototype.onRemove=function(){ge.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0},jr.prototype._updateEditLink=function(){var t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));var n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(t){var r=n.reduce(function(e,t,r){return t.value&&(e+=t.key+"="+t.value+(r<n.length-1?"&":"")),e},"?");t.href=e.config.FEEDBACK_URL+"/"+r+(this._map._hash?this._map._hash.getHashString(!0):""),t.rel="noopener nofollow"}},jr.prototype._updateData=function(e){!e||"metadata"!==e.sourceDataType&&"style"!==e.dataType||(this._updateAttributions(),this._updateEditLink())},jr.prototype._updateAttributions=function(){if(this._map.style){var e=[];
1if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map(function(e){return"string"!=typeof e?"":e})):"string"==typeof this.options.customAttribution&&e.push(this.options.customAttribution)),this._map.style.stylesheet){var t=this._map.style.stylesheet;this.styleOwner=t.owner,this.styleId=t.id}var n=this._map.style.sourceCaches;for(var r in n){var o=n[r];if(o.used){var i=o.getSource();i.attribution&&e.indexOf(i.attribution)<0&&e.push(i.attribution)}}e.sort(function(e,t){return e.length-t.length});var a=(e=e.filter(function(t,n){for(var r=n+1;r<e.length;r++)if(e[r].indexOf(t)>=0)return!1;return!0})).join(" | ");a!==this._attribHTML&&(this._attribHTML=a,e.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},jr.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact")};var zr=function(){e.bindAll(["_updateLogo"],this),e.bindAll(["_updateCompact"],this)};zr.prototype.onAdd=function(e){this._map=e,this._container=ge.create("div","mapboxgl-ctrl");var t=ge.create("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label","Mapbox logo"),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},zr.prototype.onRemove=function(){ge.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},zr.prototype.getDefaultPosition=function(){return"bottom-left"},zr.prototype._updateLogo=function(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},zr.prototype._logoRequired=function(){if(this._map.style){var e=this._map.style.sourceCaches;for(var t in e)if(e[t].getSource().mapbox_logo)return!0;return!1}},zr.prototype._updateCompact=function(){var e=this._container.children;if(e.length){var t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}};var Fr=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Fr.prototype.add=function(e){var t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t},Fr.prototype.remove=function(e){for(var t=this._currentlyRunning,n=0,r=t?this._queue.concat(t):this._queue;n<r.length;n+=1){var o=r[n];if(o.id===e)return void(o.cancelled=!0)}},Fr.prototype.run=function(){var e=this._currentlyRunning=this._queue;this._queue=[];for(var t=0,n=e;t<n.length;t+=1){var r=n[t];if(!r.cancelled&&(r.callback(),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},Fr.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var Nr=e.window.HTMLImageElement,Br=e.window.HTMLElement,Ur={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:0,maxZoom:22,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,bearingSnap:7,clickTolerance:3,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Vr=function(t){function n(n){var r=this;if(null!=(n=e.extend({},Ur,n)).minZoom&&null!=n.maxZoom&&n.minZoom>n.maxZoom)throw new Error("maxZoom must be greater than minZoom");var o=new vr(n.minZoom,n.maxZoom,n.renderWorldCopies);if(t.call(this,o,n),this._interactive=n.interactive,this._maxTileCacheSize=n.maxTileCacheSize,this._failIfMajorPerformanceCaveat=n.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=n.preserveDrawingBuffer,this._antialias=n.antialias,this._trackResize=n.trackResize,this._bearingSnap=n.bearingSnap,this._refreshExpiredTiles=n.refreshExpiredTiles,this._fadeDuration=n.fadeDuration,this._crossSourceCollisions=n.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=n.collectResourceTiming,this._renderTaskQueue=new Fr,this._controls=[],this._mapId=e.uniqueId(),this._requestManager=new e.RequestManager(n.transformRequest,n.accessToken),"string"==typeof n.container){if(this._container=e.window.document.getElementById(n.container),!this._container)throw new Error("Container '"+n.container+"' not found.")}else{if(!(n.container instanceof Br))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=n.container}if(n.maxBounds&&this.setMaxBounds(n.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return r._update(!1)}),this.on("moveend",function(){return r._update(!1)}),this.on("zoom",function(){return r._update(!0)}),void 0!==e.window&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1)),function(e,t){var n=e.getCanvasContainer(),r=null,o=!1,i=null;for(var a in Mr)e[a]=new Mr[a](e,t),t.interactive&&t[a]&&e[a].enable(t[a]);ge.addEventListener(n,"mouseout",function(t){e.fire(new xr("mouseout",e,t))}),ge.addEventListener(n,"mousedown",function(r){o=!0,i=ge.mousePos(n,r);var a=new xr("mousedown",e,r);e.fire(a),a.defaultPrevented||(t.interactive&&!e.doubleClickZoom.isActive()&&e.stop(),e.boxZoom.onMouseDown(r),e.boxZoom.isActive()||e.dragPan.isActive()||e.dragRotate.onMouseDown(r),e.boxZoom.isActive()||e.dragRotate.isActive()||e.dragPan.onMouseDown(r))}),ge.addEventListener(n,"mouseup",function(t){var n=e.dragRotate.isActive();r&&!n&&e.fire(new xr("contextmenu",e,r)),r=null,o=!1,e.fire(new xr("mouseup",e,t))}),ge.addEventListener(n,"mousemove",function(t){if(!e.dragPan.isActive()&&!e.dragRotate.isActive()){for(var r=t.target;r&&r!==n;)r=r.parentNode;r===n&&e.fire(new xr("mousemove",e,t))}}),ge.addEventListener(n,"mouseover",function(t){for(var r=t.target;r&&r!==n;)r=r.parentNode;r===n&&e.fire(new xr("mouseover",e,t))}),ge.addEventListener(n,"touchstart",function(n){var r=new wr("touchstart",e,n);e.fire(r),r.defaultPrevented||(t.interactive&&e.stop(),e.boxZoom.isActive()||e.dragRotate.isActive()||e.dragPan.onTouchStart(n),e.touchZoomRotate.onStart(n),e.doubleClickZoom.onTouchStart(r))},{passive:!1}),ge.addEventListener(n,"touchmove",function(t){e.fire(new wr("touchmove",e,t))},{passive:!1}),ge.addEventListener(n,"touchend",function(t){e.fire(new wr("touchend",e,t))}),ge.addEventListener(n,"touchcancel",function(t){e.fire(new wr("touchcancel",e,t))}),ge.addEventListener(n,"click",function(r){var o=ge.mousePos(n,r);(!i||o.equals(i)||o.dist(i)<t.clickTolerance)&&e.fire(new xr("click",e,r))}),ge.addEventListener(n,"dblclick",function(t){var n=new xr("dblclick",e,t);e.fire(n),n.defaultPrevented||e.doubleClickZoom.onDblClick(n)}),ge.addEventListener(n,"contextmenu",function(t){var n=e.dragRotate.isActive();o||n?o&&(r=t):e.fire(new xr("contextmenu",e,t)),(e.dragRotate.isEnabled()||e.listens("contextmenu"))&&t.preventDefault()}),ge.addEventListener(n,"wheel",function(n){t.interactive&&e.stop();var r=new Er("wheel",e,n);e.fire(r),r.defaultPrevented||e.scrollZoom.onWheel(n)},{passive:!1})}(this,n),this._hash=n.hash&&(new br).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:n.center,zoom:n.zoom,bearing:n.bearing,pitch:n.pitch}),n.bounds&&(this.resize(),this.fitBounds(n.bounds,e.extend({},n.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=n.localIdeographFontFamily,n.style&&this.setStyle(n.style,{localIdeographFontFamily:n.localIdeographFontFamily}),n.attributionControl&&this.addControl(new jr({customAttribution:n.customAttribution})),this.addControl(new zr,n.logoPosition),this.on("style.load",function(){r.transform.unmodified&&r.jumpTo(r.style.stylesheet)}),this.on("data",function(t){r._update("style"===t.dataType),r.fire(new e.Event(t.dataType+"data",t))}),this.on("dataloading",function(t){r.fire(new e.Event(t.dataType+"dataloading",t))})}t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n;var r={showTileBoundaries:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return n.prototype._getMapId=function(){return this._mapId},n.prototype.addControl=function(t,n){if(void 0===n&&t.getDefaultPosition&&(n=t.getDefaultPosition()),void 0===n&&(n="top-right"),!t||!t.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var r=t.onAdd(this);this._controls.push(t);var o=this._controlPositions[n];return-1!==n.indexOf("bottom")?o.insertBefore(r,o.firstChild):o.appendChild(r),this},n.prototype.removeControl=function(t){if(!t||!t.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var n=this._controls.indexOf(t);return n>-1&&this._controls.splice(n,1),t.onRemove(this),this},n.prototype.resize=function(t){var n=this._containerDimensions(),r=n[0],o=n[1];return this._resizeCanvas(r,o),this.transform.resize(r,o),this.painter.resize(r,o),this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t)).fire(new e.Event("resize",t)).fire(new e.Event("moveend",t)),this},n.prototype.getBounds=function(){return this.transform.getBounds()},n.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},n.prototype.setMaxBounds=function(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()},n.prototype.setMinZoom=function(e){if((e=null==e?0:e)>=0&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()<e&&this.setZoom(e),this;throw new Error("minZoom must be between 0 and the current maxZoom, inclusive")}
vendor: 4,549 bytes, line 1
1,n.prototype.getMinZoom=function(){return this.transform.minZoom},n.prototype.setMaxZoom=function(e){if((e=null==e?22:e)>=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")},n.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},n.prototype.setRenderWorldCopies=function(e){return this.transform.renderWorldCopies=e,this._update()},n.prototype.getMaxZoom=function(){return this.transform.maxZoom},n.prototype.project=function(t){return this.transform.locationPoint(e.LngLat.convert(t))},n.prototype.unproject=function(t){return this.transform.pointLocation(e.Point.convert(t))},n.prototype.isMoving=function(){return this._moving||this.dragPan.isActive()||this.dragRotate.isActive()||this.scrollZoom.isActive()},n.prototype.isZooming=function(){return this._zooming||this.scrollZoom.isZooming()},n.prototype.isRotating=function(){return this._rotating||this.dragRotate.isActive()},n.prototype.on=function(e,n,r){var o=this;if(void 0===r)return t.prototype.on.call(this,e,n);var i=function(){var t;if("mouseenter"===e||"mouseover"===e){var i=!1;return{layer:n,listener:r,delegates:{mousemove:function(t){var a=o.getLayer(n)?o.queryRenderedFeatures(t.point,{layers:[n]}):[];a.length?i||(i=!0,r.call(o,new xr(e,o,t.originalEvent,{features:a}))):i=!1},mouseout:function(){i=!1}}}}if("mouseleave"===e||"mouseout"===e){var a=!1;return{layer:n,listener:r,delegates:{mousemove:function(t){(o.getLayer(n)?o.queryRenderedFeatures(t.point,{layers:[n]}):[]).length?a=!0:a&&(a=!1,r.call(o,new xr(e,o,t.originalEvent)))},mouseout:function(t){a&&(a=!1,r.call(o,new xr(e,o,t.originalEvent)))}}}}return{layer:n,listener:r,delegates:(t={},t[e]=function(e){var t=o.getLayer(n)?o.queryRenderedFeatures(e.point,{layers:[n]}):[];t.length&&(e.features=t,r.call(o,e),delete e.features)},t)}}();for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(i),i.delegates)this.on(a,i.delegates[a]);return this},n.prototype.off=function(e,n,r){if(void 0===r)return t.prototype.off.call(this,e,n);if(this._delegatedListeners&&this._delegatedListeners[e])for(var o=this._delegatedListeners[e],i=0;i<o.length;i++){var a=o[i];if(a.layer===n&&a.listener===r){for(var s in a.delegates)this.off(s,a.delegates[s]);return o.splice(i,1),this}}return this},n.prototype.queryRenderedFeatures=function(t,n){if(!this.style)return[];var r;if(void 0!==n||void 0===t||t instanceof e.Point||Array.isArray(t)||(n=t,t=void 0),n=n||{},(t=t||[[0,0],[this.transform.width,this.transform.height]])instanceof e.Point||"number"==typeof t[0])r=[e.Point.convert(t)];else{var o=e.Point.convert(t[0]),i=e.Point.convert(t[1]);r=[o,new e.Point(i.x,o.y),i,new e.Point(o.x,i.y),o]}return this.style.queryRenderedFeatures(r,n,this.transform)},n.prototype.querySourceFeatures=function(e,t){return this.style.querySourceFeatures(e,t)},n.prototype.setStyle=function(t,n){return!1!==(n=e.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},n)).diff&&n.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&t?(this._diffStyle(t,n),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._updateStyle(t,n))},n.prototype._updateStyle=function(e,t){return this.style&&(this.style.setEventedParent(null),this.style._remove()),e?(this.style=new hn(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e):this.style.loadJSON(e),this):(delete this.style,this)},n.prototype._diffStyle=function(t,n){var r=this;if("string"==typeof t){var o=this._requestManager.normalizeStyleURL(t),i=this._requestManager.transformRequest(o,e.ResourceType.Style);e.getJSON(i,function(t,o){t?r.fire(new e.ErrorEvent(t)):o&&r._updateDiff(o,n)})}else"object"==typeof t&&this._updateDiff(t,n)},n.prototype._updateDiff=function(t,n){try{this.style.setState(t)&&this._update(!0)}catch(r){e.warnOnce("Unable to perform style diff: "+(r.message||r.error||r)+". Rebuilding the style from scratch."),this._updateStyle(t,n)}},n.prototype.getStyle=function(){if(this.style)return this.style.serialize()},n.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():e.warnOnce("There is no style added to the map.")},n.prototype.addSource=function(e,t){return this.style.addSource(e,t),this._update(!0)},n.prototype.isSourceLoaded=function(t){var n=this.style&&this.style.sourceCaches[t];
1if(void 0!==n)return n.loaded();this.fire(new e.ErrorEvent(new Error("There is no source with ID '"+t+"'")))},n.prototype.areTilesLoaded=function(){var e=this.style&&this.style.sourceCaches;for(var t in e){var n=e[t]._tiles;for(var r in n){var o=n[r];if("loaded"!==o.state&&"errored"!==o.state)return!1}}return!0},n.prototype.addSourceType=function(e,t,n){return this.style.addSourceType(e,t,n)},n.prototype.removeSource=function(e){return this.style.removeSource(e),this._update(!0)},n.prototype.getSource=function(e){return this.style.getSource(e)},n.prototype.addImage=function(t,n,r){void 0===r&&(r={});var o=r.pixelRatio;void 0===o&&(o=1);var i=r.sdf;if(void 0===i&&(i=!1),n instanceof Nr){var a=e.browser.getImageData(n),s=a.width,l=a.height,u=a.data;this.style.addImage(t,{data:new e.RGBAImage({width:s,height:l},u),pixelRatio:o,sdf:i,version:0})}else{if(void 0===n.width||void 0===n.height)return this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));var c=n.width,p=n.height,f=n.data,h=n;this.style.addImage(t,{data:new e.RGBAImage({width:c,height:p},new Uint8Array(f)),pixelRatio:o,sdf:i,version:0,userImage:h}),h.onAdd&&h.onAdd(this,t)}},n.prototype.updateImage=function(t,n){var r=this.style.getImage(t);if(!r)return this.fire(new e.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var o=n instanceof Nr?e.browser.getImageData(n):n,i=o.width,a=o.height,s=o.data;if(void 0===i||void 0===a)return this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(i!==r.data.width||a!==r.data.height)return this.fire(new e.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image")));var l=!(n instanceof Nr);r.data.replace(s,l),this.style.updateImage(t,r)},n.prototype.hasImage=function(t){return t?!!this.style.getImage(t):(this.fire(new e.ErrorEvent(new Error("Missing required image id"))),!1)},n.prototype.removeImage=function(e){this.style.removeImage(e)},n.prototype.loadImage=function(t,n){e.getImage(this._requestManager.transformRequest(t,e.ResourceType.Image),n)},n.prototype.listImages=function(){return this.style.listImages()},n.prototype.addLayer=function(e,t){return this.style.addLayer(e,t),this._update(!0)},n.prototype.moveLayer=function(e,t){return this.style.moveLayer(e,t),this._update(!0)},n.prototype.removeLayer=function(e){return this.style.removeLayer(e),this._update(!0)},n.prototype.getLayer=function(e){return this.style.getLayer(e)},n.prototype.setFilter=function(e,t,n){return void 0===n&&(n={}),this.style.setFilter(e,t,n),this._update(!0)},n.prototype.setLayerZoomRange=function(e,t,n){return this.style.setLayerZoomRange(e,t,n),this._update(!0)},n.prototype.getFilter=function(e){return this.style.getFilter(e)},n.prototype.setPaintProperty=function(e,t,n,r){return void 0===r&&(r={}),this.style.setPaintProperty(e,t,n,r),this._update(!0)},n.prototype.getPaintProperty=function(e,t){return this.style.getPaintProperty(e,t)},n.prototype.setLayoutProperty=function(e,t,n,r){return void 0===r&&(r={}),this.style.setLayoutProperty(e,t,n,r),this._update(!0)},n.prototype.getLayoutProperty=function(e,t){return this.style.getLayoutProperty(e,t)},n.prototype.setLight=function(e,t){return void 0===t&&(t={}),this.style.setLight(e,t),this._update(!0)},n.prototype.getLight=function(){return this.style.getLight()},n.prototype.setFeatureState=function(e,t){return this.style.setFeatureState(e,t),this._update()},n.prototype.removeFeatureState=function(e,t){return this.style.removeFeatureState(e,t),this._update()},n.prototype.getFeatureState=function(e){return this.style.getFeatureState(e)},n.prototype.getContainer=function(){return this._container},n.prototype.getCanvasContainer=function(){return this._canvasContainer},n.prototype.getCanvas=function(){return this._canvas},n.prototype._containerDimensions=function(){var e=0,t=0;return this._container&&(e=this._container.clientWidth||400,t=this._container.clientHeight||300),[e,t]},n.prototype._detectMissingCSS=function(){"rgb(250, 128, 114)"!==e.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&e.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described
1in https://www.mapbox.com/mapbox-gl-js/api/.")},n.prototype._setupContainer=function(){var e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=ge.create("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();var t=this._canvasContainer=ge.create("div","mapboxgl-canvas-container",e);this._interactive&&t.classList.add("mapboxgl-interactive"),this._canvas=ge.create("canvas","mapboxgl-canvas",t),this._canvas.style.position="absolute",this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map");var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var r=this._controlContainer=ge.create("div","mapboxgl-control-container",e),o=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(function(e){o[e]=ge.create("div","mapboxgl-ctrl-"+e,r)})},n.prototype._resizeCanvas=function(t,n){var r=e.window.devicePixelRatio||1;this._canvas.width=r*t,this._canvas.height=r*n,this._canvas.style.width=t+"px",this._canvas.style.height=n+"px"},n.prototype._setupPainter=function(){var t=e.extend({},ye.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._canvas.getContext("webgl",t)||this._canvas.getContext("experimental-webgl",t);n?(this.painter=new gr(n,this.transform),e.webpSupported.testSupport(n)):this.fire(new e.ErrorEvent(new Error("Failed to initialize WebGL")))},n.prototype._contextLost=function(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.Event("webglcontextlost",{originalEvent:t}))},n.prototype._contextRestored=function(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.Event("webglcontextrestored",{originalEvent:t}))},n.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},n.prototype._update=function(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this},n.prototype._requestRenderFrame=function(e){return this._update(),this._renderTaskQueue.add(e)},n.prototype._cancelRenderFrame=function(e){this._renderTaskQueue.remove(e)},n.prototype._render=function(){this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run();var t=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var n=this.transform.zoom,r=e.browser.now();this.style.zoomHistory.update(n,r);var o=new e.EvaluationParameters(n,{now:r,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),i=o.crossFadingFactor();1===i&&i===this._crossFadingFactor||(t=!0,this._crossFadingFactor=i),this.style.update(o)}return this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration}),this.fire(new e.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new e.Event("load"))),this.style&&(this.style.hasTransitions()||t)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this._sourcesDirty||this._repaint||this._styleDirty||this._placementDirty?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new e.Event("idle")),this},n.prototype.remove=function(){this._hash&&this._hash.remove();for(var t=0,n=this._controls;t<n.length;t+=1)n[t].onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.setStyle(null),void 0!==e.window&&(e.window.removeEventListener("resize",this._onWindowResize,!1),e.window.removeEventListener("online",this._onWindowOnline,!1));var r=this.painter.context.gl.getExtension("WEBGL_lose_context");r&&r.loseContext(),ce(this._canvasContainer),ce(this._controlContainer),ce(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),this.fire(new e.Event("remove"))},n.prototype.triggerRepaint=function(){var t=this;this.style&&!this._frame&&(this._frame=e.browser.frame(function(){t._frame=null,t._render()}))},n.prototype._onWindowOnline=function(){this._update()},n.prototype._onWindowResize=function(){this._trackResize&&this.resize()._update()},r.showTileBoundaries.get=function(){return!!this._showTileBoundaries},r.showTileBoundaries.set=function(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())},r.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},r.showCollisionBoxes.set=function(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())},r.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},r.showOverdrawInspector.set=function(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())},r.repaint.get=function(){return!!this._repaint},r.repaint.set=function(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())},r.vertices.get=function(){return!!this._vertices}
1,r.vertices.set=function(e){this._vertices=e,this._update()},n.prototype._setCacheLimits=function(t,n){e.setCacheLimits(t,n)},r.version.get=function(){return e.version},Object.defineProperties(n.prototype,r),n}(Lr),Hr={showCompass:!0,showZoom:!0,visualizePitch:!1},qr=function(t){var n=this;this.options=e.extend({},Hr,t),this._container=ge.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",function(e){return e.preventDefault()}),this.options.showZoom&&(e.bindAll(["_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-icon mapboxgl-ctrl-zoom-in","Zoom in",function(){return n._map.zoomIn()}),this._zoomOutButton=this._createButton("mapboxgl-ctrl-icon mapboxgl-ctrl-zoom-out","Zoom out",function(){return n._map.zoomOut()})),this.options.showCompass&&(e.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-icon mapboxgl-ctrl-compass","Reset bearing to north",function(){n.options.visualizePitch?n._map.resetNorthPitch():n._map.resetNorth()}),this._compassArrow=ge.create("span","mapboxgl-ctrl-compass-arrow",this._compass))};qr.prototype._updateZoomButtons=function(){var e=this._map.getZoom();e===this._map.getMaxZoom()?this._zoomInButton.classList.add("mapboxgl-ctrl-icon-disabled"):this._zoomInButton.classList.remove("mapboxgl-ctrl-icon-disabled"),e===this._map.getMinZoom()?this._zoomOutButton.classList.add("mapboxgl-ctrl-icon-disabled"):this._zoomOutButton.classList.remove("mapboxgl-ctrl-icon-disabled")},qr.prototype._rotateCompassArrow=function(){var e=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassArrow.style.transform=e},qr.prototype.onAdd=function(e){return this._map=e,this.options.showZoom&&(this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Sr(e,{button:"left",element:this._compass}),ge.addEventListener(this._compass,"mousedown",this._handler.onMouseDown),ge.addEventListener(this._compass,"touchstart",this._handler.onMouseDown,{passive:!1}),this._handler.enable()),this._container},qr.prototype.onRemove=function(){ge.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),ge.removeEventListener(this._compass,"mousedown",this._handler.onMouseDown),ge.removeEventListener(this._compass,"touchstart",this._handler.onMouseDown,{passive:!1}),this._handler.disable(),delete this._handler),delete this._map},qr.prototype._createButton=function(e,t,n){var r=ge.create("button",e,this._container);return r.type="button",r.title=t,r.setAttribute("aria-label",t),r.addEventListener("click",n),r};var Gr,Wr={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"},Zr=function(t){function n(n,r){if(t.call(this),(n instanceof e.
1window.HTMLElement||r)&&(n=e.extend({element:n},r)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick"],this),this._anchor=n&&n.anchor||"center",this._color=n&&n.color||"#3FB1CE",this._draggable=n&&n.draggable||!1,this._state="inactive",n&&n.element)this._element=n.element,this._offset=e.Point.convert(n&&n.offset||[0,0]);else{this._defaultMarker=!0,this._element=ge.create("div");var o=ge.createNS("http://www.w3.org/2000/svg","svg");o.setAttributeNS(null,"display","block"),o.setAttributeNS(null,"height","41px"),o.setAttributeNS(null,"width","27px"),o.setAttributeNS(null,"viewBox","0 0 27 41");var i=ge.createNS("http://www.w3.org/2000/svg","g");i.setAttributeNS(null,"stroke","none"),i.setAttributeNS(null,"stroke-width","1"),i.setAttributeNS(null,"fill","none"),i.setAttributeNS(null,"fill-rule","evenodd");var a=ge.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"fill-rule","nonzero");var s=ge.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"transform","translate(3.0, 29.0)"),s.setAttributeNS(null,"fill","#000000");for(var l=0,u=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];l<u.length;l+=1){var c=u[l],p=ge.createNS("http://www.w3.org/2000/svg","ellipse");p.setAttributeNS(null,"opacity","0.04"),p.setAttributeNS(null,"cx","10.5"),p.setAttributeNS(null,"cy","5.80029008"),p.setAttributeNS(null,"rx",c.rx),p.setAttributeNS(null,"ry",c.ry),s.appendChild(p)}var f=ge.createNS("http://www.w3.org/2000/svg","g");f.setAttributeNS(null,"fill",this._color);var h=ge.createNS("http://www.w3.org/2000/svg","path");h.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),f.appendChild(h);var d=ge.createNS("http://www.w3.org/2000/svg","g");d.setAttributeNS(null,"opacity","0.25"),d.setAttributeNS(null,"fill","#000000");var m=ge.createNS("http://www.w3.org/2000/svg","path");m.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),d.appendChild(m);var y=ge.createNS("http://www.w3.org/2000/svg","g");y.setAttributeNS(null,"transform","translate(6.0, 7.0)"),y.setAttributeNS(null,"fill","#FFFFFF");var g=ge.createNS("http://www.w3.org/2000/svg","g");g.setAttributeNS(null,"transform","translate(8.0, 8.0)");var v=ge.createNS("http://www.w3.org/2000/svg","circle");v.setAttributeNS(null,"fill","#000000"),v.setAttributeNS(null,"opacity","0.25"),v.setAttributeNS(null,"cx","5.5"),v.setAttributeNS(null,"cy","5.5"),v.setAttributeNS(null,"r","5.4999962");var _=ge.createNS("http://www.w3.org/2000/svg","circle");_.setAttributeNS(null,"fill","#FFFFFF"),_.setAttributeNS(null,"cx","5.5"),_.setAttributeNS(null,"cy","5.5"),_.setAttributeNS(null,"r","5.4999962"),g.appendChild(v),g.appendChild(_),a.appendChild(s),a.appendChild(f),a.appendChild(d),a.appendChild(y),a.appendChild(g),o.appendChild(a),this._element.appendChild(o),this._offset=e.Point.convert(n&&n.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",function(e){e.preventDefault()}),fe(this._element,this._anchor,"marker"),this._popup=null}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.addTo=function(e){return this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this},n.prototype.remove=function(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),ge.remove(this._element),this._popup&&this._popup.remove(),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},n.prototype.getElement=function(){return this._element},n.prototype.setPopup=function(e){if(this._popup&&(this._popup.remove(),this._popup=null),e){if(!("offset"in e.options)){var t=Math.sqrt(Math.pow(13.5,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[
10,-38.1],"bottom-left":[t,-1*(24.6+t)],"bottom-right":[-t,-1*(24.6+t)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=e,this._lngLat&&this._popup.setLngLat(this._lngLat)}return this},n.prototype._onMapClick=function(e){var t=e.originalEvent.target,n=this._element;this._popup&&(t===n||n.contains(t))&&this.togglePopup()},n.prototype.getPopup=function(){return this._popup},n.prototype.togglePopup=function(){var e=this._popup;return e?(e.isOpen()?e.remove():e.addTo(this._map),this):this},n.prototype._update=function(e){this._map&&(this._map.transform.renderWorldCopies&&(this._lngLat=pe(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset),e&&"moveend"!==e.type||(this._pos=this._pos.round()),ge.setTransform(this._element,Wr[this._anchor]+" translate("+this._pos.x+"px, "+this._pos.y+"px)"))},n.prototype.getOffset=function(){return this._offset},n.prototype.setOffset=function(t){return this._offset=e.Point.convert(t),this._update(),this},n.prototype._onMove=function(t){this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.Event("dragstart"))),this.fire(new e.Event("drag"))},n.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new e.Event("dragend")),this._state="inactive"},n.prototype._addDragHandler=function(e){this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos).add(this._offset),this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},n.prototype.setDraggable=function(e){return this._draggable=!!e,this._map&&(e?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n}(e.Evented),Kr={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showUserLocation:!0},Xr=function(t){function n(n){t.call(this),this.options=e.extend({},Kr,n),e.bindAll(["_onSuccess","_onError","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.onAdd=function(t){var n;return this._map=t,this._container=ge.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),n=this._setupUI,void 0!==Gr?n(Gr):void 0!==e.window.navigator.permissions?e.window.navigator.permissions.query({name:"geolocation"}).then(function(e){Gr="denied"!==e.state,n(Gr)}):(Gr=!!e.window.navigator.geolocation,n(Gr)),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),ge.remove(this._container),this._map=void 0},n.prototype._onSuccess=function(t){if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()},n.prototype._updateCamera=function(t){var n=new e.LngLat(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,o=this._map.getBearing(),i=e.extend({bearing:o},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),i,{geolocateSource:!0})},n.prototype._updateMarker=function(e){e?this._userLocationDotMarker.setLngLat([e.coords.longitude,e.coords.latitude]).addTo(this._map):this._userLocationDotMarker.remove()},n.prototype._onError=function(t){if(this.options.trackUserLocation)if(1===t.code)this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),void 0!==this._geolocationWatchID&&this._clearWatch();else switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_E
1RROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()},n.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(t){var n=this;!1!==t?(this._container.addEventListener("contextmenu",function(e){return e.preventDefault()}),this._geolocateButton=ge.create("button","mapboxgl-ctrl-icon mapboxgl-ctrl-geolocate",this._container),this._geolocateButton.type="button",this._geolocateButton.setAttribute("aria-label","Geolocate"),this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=ge.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Zr(this._dotElement),this.options.trackUserLocation&&(this._watchState="OFF")),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(t){t.geolocateSource||"ACTIVE_LOCK"!==n._watchState||(n._watchState="BACKGROUND",n._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),n._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),n.fire(new e.Event("trackuserlocationend")))})):e.warnOnce("Geolocation support is not available, the GeolocateControl will not be visible.")},n.prototype.trigger=function(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}"OFF"===this._watchState&&void 0!==this._geolocationWatchID?this._clearWatch():void 0===this._geolocationWatchID&&(this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._geolocationWatchID=e.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,this.options.positionOptions))}else e.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","fal
1se"),this.options.showUserLocation&&this._updateMarker(null)},n}(e.Evented),Yr={maxWidth:100,unit:"metric"},Jr=function(t){this.options=e.extend({},Yr,t),e.bindAll(["_onMove","setUnit"],this)};Jr.prototype.getDefaultPosition=function(){return"bottom-left"},Jr.prototype._onMove=function(){he(this._map,this._container,this.options)},Jr.prototype.onAdd=function(e){return this._map=e,this._container=ge.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Jr.prototype.onRemove=function(){ge.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Jr.prototype.setUnit=function(e){this.options.unit=e,he(this._map,this._container,this.options)};var $r=function(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof e.window.HTMLElement?this._container=t.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in e.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in e.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in e.window.document&&(this._fullscreenchange="MSFullscreenChange"),this._className="mapboxgl-ctrl"};$r.prototype.onAdd=function(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=ge.create("div",this._className+" mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},$r.prototype.onRemove=function(){ge.remove(this._controlContainer),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},$r.prototype._checkFullscreenSupport=function(){return!!(e.window.document.fullscreenEnabled||e.window.document.mozFullScreenEnabled||e.window.document.msFullscreenEnabled||e.window.document.webkitFullscreenEnabled)},$r.prototype._setupUI=function(){(this._fullscreenButton=ge.create("button",this._className+"-icon "+this._className+"-fullscreen",this._controlContainer)).type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},$r.prototype._updateTitle=function(){var e=this._isFullscreen()?"Exit fullscreen":"Enter fullscreen";this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e},$r.prototype._isFullscreen=function(){return this._fullscreen},$r.prototype._changeIcon=function(){(e.window.document.fullscreenElement||e.window.document.mozFullScreenElement||e.window.document.webkitFullscreenElement||e.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(this._className+"-shrink"),this._fullscreenButton.classList.toggle(this._className+"-fullscreen"),this._updateTitle())},$r.prototype._onClickFullscreen=function(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.mozCancelFullScreen?e.window.document.mozCancelFullScreen():e.window.document.msExitFullscreen?e.window.document.msExitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Qr={closeButton:!0,closeOnClick:!0,className:"",maxWidth:"240px"},eo=function(t){function n(n){t.call(this),this.options=e.extend(Object.create(Qr),n),e.bindAll(["_update","_onClickClose","remove"],this)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.addTo=function(t){var n=this;return this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClickClose),this._map.on("remove",this.remove),this._update(),this._trackPointer?(this._map.on("mousemove",function(e){n._update(e.point)}),this._map.on("mouseup",function(e){n._update(e.point)}),this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new e.Event("open")),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&&ge.remove(this._content),this._container&&(ge.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("click",this._onClickClose),this._map.off("remove",this.remove),this._map.off("mousemove"),delete this._map),this.fire(new e.Event("close")),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove"),this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},n.prototype.trackPointer=function(){var e=this;return this._trackPointer=!0,this._pos=null,this._map&&(this._map.off("move",this._update),this._map.on("mousemove",function(t){e._update(t.point)}),this._map.on("drag",function(t){e._update(t.point)}),this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(t){return this.setDOMContent(e.window.document.createTextNode(t))},n.prototype.setHTML=function(t){var n,r=e.window.document.createDocumentFragment(),o=e.window.document.createElement("body");for(o.innerHTML=t;n=o.firstChild;)r.appendChild(n);return this.setDOMContent(r)},n.prototype.getMaxWidth=function(){return this._container.style.maxWidth},n.prototype.setMaxWidth=function(e){return this.options.maxWidth=e,this._update(),this},n.prototype.setDOMContent=function(e){return this._createContent(),this._content.appendChild(e),this._update(),this},n.prototype._createContent=function(){this._content&&ge.remove(this._content),this._content=ge.create("div","mapboxgl-popup-content",this._container),this.options.closeButton&&(this._closeButton=ge.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClickClose))},n.prototype._update=function(t){var n=this,r=this._lngLat||this._trackPointer;if(this._map&&r&&this._content&&(this._container||(this._container=ge.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=ge.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(e){return n._container.classList.add(e)})),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=pe(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||t)){var o=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat),i=this.options.anchor,a=function t(n){if(n){if("number"==typeof n){var r=Math.round(Math.sqrt(.5*Math.pow(n,2)));return{center:new e.Point(0,0),top:new e.Point(0,n),"top-left":new e.Point(r,r),"top-right":new e.Point(-r,r),bottom:new e.Point(0,-n),"bottom-left":new e.Point(r,-r),"bottom-right":new e.Point(-r,-r),left:new e.Point(n,0),right:new e.Point(-n,0)}}if(n instanceof e.Point||Array.isArray(n)){var o=e.Point.convert(n);return{center:o,top:o,"top-left":o,"top-right":o,bottom:o,"bottom-left":o,"bottom-right":o,left
1:o,right:o}}return{center:e.Point.convert(n.center||[0,0]),top:e.Point.convert(n.top||[0,0]),"top-left":e.Point.convert(n["top-left"]||[0,0]),"top-right":e.Point.convert(n["top-right"]||[0,0]),bottom:e.Point.convert(n.bottom||[0,0]),"bottom-left":e.Point.convert(n["bottom-left"]||[0,0]),"bottom-right":e.Point.convert(n["bottom-right"]||[0,0]),left:e.Point.convert(n.left||[0,0]),right:e.Point.convert(n.right||[0,0])}}return t(new e.Point(0,0))}(this.options.offset);if(!i){var s,l=this._container.offsetWidth,u=this._container.offsetHeight;s=o.y+a.bottom.y<u?["top"]:o.y>this._map.transform.height-u?["bottom"]:[],o.x<l/2?s.push("left"):o.x>this._map.transform.width-l/2&&s.push("right"),i=0===s.length?"bottom":s.join("-")}var c=o.add(a[i]).round();ge.setTransform(this._container,Wr[i]+" translate("+c.x+"px,"+c.y+"px)"),fe(this._container,i,"popup")}},n.prototype._onClickClose=function(){this.remove()},n}(e.Evented),to={version:e.version,supported:ye,setRTLTextPlugin:e.setRTLTextPlugin,Map:Vr,NavigationControl:qr,GeolocateControl:Xr,AttributionControl:jr,ScaleControl:Jr,FullscreenControl:$r,Popup:eo,Marker:Zr,Style:hn,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.Point,MercatorCoordinate:e.MercatorCoordinate,Evented:e.Evented,config:e.config,get accessToken(){return e.config.ACCESS_TOKEN},set accessToken(t){e.config.ACCESS_TOKEN=t},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(t){e.config.API_URL=t},get workerCount(){return jt.workerCount},set workerCount(e){jt.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage:function(t){e.clearTileCache(t)},workerUrl:""};return to}),r})},function(e,t,n){"use strict";function r(e){return e[0].toLowerCase()+e.slice(1)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a;for(var n in t){var o=n.slice(0,3),a=r(n.slice(3));if("min"===o&&e[a]<t[n])return!1;if("max"===o&&e[a]>t[n])return!1}return!0}t.a=o;var i=n(26)},function(e,t,n){"use strict";n.d(t,"a",function(){return v});var r=n(2),o=n(3),i=n(7),a=n(6),s=n(10),l=n(8),u=n(5),c=n(40),p=n(85),f=n(25),h=n(114),d=n(45),m=["longitude","latitude","zoom","bearing","pitch"],y=["latitude","longitude","zoom","width","height"],g=["bearing","pitch"],v=function(e){function t(){var e,n;Object(r.a)(this,t);for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=Object(i.a)(this,(e=Object(a.a)(t)).call.apply(e,[this].concat(l))),Object(u.a)(Object(s.a)(n),"propNames",m),n}return Object(l.a)(t,e),Object(o.a)(t,[{key:"initializeProps",value:function(e,t){for(var n={},r={},o=0,i=y;o<i.length;o++){var a=i[o],s=e[a],l=t[a];Object(c.a)(Object(h.b)(s)&&Object(h.b)(l),"".concat(a," must be supplied for transition")),n[a]=s,r[a]=Object(h.a)(a,s,l)}for(var u=0,p=g;u<p.length;u++){var f=p[u],d=e[f]||0,m=t[f]||0;n[f]=d,r[f]=Object(h.a)(f,d,m)}return{start:n,end:r}}},{key:"interpolateProps",value:function(e,t,n){for(var r=Object(f.b)(e,t,n),o=0,i=g;o<i.length;o++){var a=i[o];r[a]=Object(d.c)(e[a],t[a],n)}return r}}]),t}(p.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return g});var r=n(14),o=n(2),i=n(3),a=n(7),s=n(6),l=n(10),u=n(8),c=n(5),p=n(25),f=n(40),h=n(85),d=n(114),m=n(45),y=["longitude","latitude","zoom","bearing","pitch"],g=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(o.a)(this,t),e=Object(a.a)(this,Object(s.a)(t).call(this)),Object(c.a)(Object(l.a)(e),"around",void 0),Array.isArray(n)&&(n={transitionProps:n}),e.propNames=n.transitionProps||y,n.around&&(e.around=n.around),e}return Object(u.a)(t,e),Object(i.a)(t,[{key:"initializeProps",value:function(e,t){var n={},r={};if(this.around){n.around=this.around;var o=new p.a(e).unproject(this.around);Object.assign(r,t,{around:new p.a(t).project(o),aroundLngLat:o})}var i=!0,a=!1,s=void 0;try{for(var l,u=this.propNames[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=l.value,h=e[c],m=t[c];Object(f.a)(Object(d.b)(h)&&Object(d.b)(m),"".concat(c," must be supplied for transition")),n[c]=h,r[c]=Object(d.a)(c,h,m)}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return{start:n,end:r}}},{key:"interpolateProps",value:function(e,t,n){var o={},i=!0,a=!1,s=void 0;try{for(var l,u=this.propNames[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=l.value;o[c]=Object(m.c)(e[c],t[c],n)}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}if(t.around){var f=new p.a(Object.assign({},t,o)).getMapCenterByLngLatPosition({lngLat:t.aroundLngLat,pos:Object(m.c)(e.around,t.around,n)}),h=Object(r.a)(f,2),d=h[0],y=h[1];o.longitude=d,o.latitude=y}return o}}]),t}(h.a)},function(e,t,n){"use strict";var r=n(216);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(14),o=n(2),i=n(3),a=n(115),s=n(219),l=n(221),u=n(222),c=n(223),p=n(224),f=n(48),h={events:null,recognizers:null,recognizerOptions:{},Manager:a.a,touchAction:"none"},d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(o.a)(this,e),this.options=Object.assign({},h,n),this.events=new Map,this._onBasicInput=this._onBasicInput.bind(this),this._onOtherEvent=this._onOtherEvent.bind(this),this.setElement(t);var r=n.events;r&&this.on(r)}return Object(i.a)(e,[{key:"setElement",value:function(e){var t=this;if(this.element&&this.destroy(),this.element=e,e){var n=this.options,o=n.Manager;this.manager=new o(e,{touchAction:n.touchAction,recognizers:n.recognizers||f.e}).on("hammer.input",this._onBasicInput),n.recognizers||Object.keys(f.f).forEach(function(e){var n=t.manager.get(e);n&&f.f[e].forEach(function(e){n.recognizeWith(e)})});for(var i in n.recognizerOptions){var a=this.manager.get(i);if(a){var p=n.recognizerOptions[i];delete p.enable,a.set(p)}}this.wheelInput=new s.a(e,this._onOtherEvent,{enable:!1}),this.moveInput=new l.a(e,this._onOtherEvent,{enable:!1}
1),this.keyInput=new u.a(e,this._onOtherEvent,{enable:!1}),this.contextmenuInput=new c.a(e,this._onOtherEvent,{enable:!1});var h=!0,d=!1,m=void 0;try{for(var y,g=this.events[Symbol.iterator]();!(h=(y=g.next()).done);h=!0){var v=Object(r.a)(y.value,2),_=v[0],b=v[1];b.isEmpty()||(this._toggleRecognizer(b.recognizerName,!0),this.manager.on(_,b.handleEvent))}}catch(e){d=!0,m=e}finally{try{h||null==g.return||g.return()}finally{if(d)throw m}}}}},{key:"destroy",value:function(){this.element&&(this.wheelInput.destroy(),this.moveInput.destroy(),this.keyInput.destroy(),this.contextmenuInput.destroy(),this.manager.destroy(),this.wheelInput=null,this.moveInput=null,this.keyInput=null,this.contextmenuInput=null,this.manager=null,this.element=null)}},{key:"on",value:function(e,t,n){this._addEventHandler(e,t,n,!1)}},{key:"once",value:function(e,t,n){this._addEventHandler(e,t,n,!0)}},{key:"off",value:function(e,t){this._removeEventHandler(e,t)}},{key:"_toggleRecognizer",value:function(e,t){var n=this.manager;if(n){var r=n.get(e);if(r&&r.options.enable!==t){r.set({enable:t});var o=f.g[e];o&&!this.options.recognizers&&o.forEach(function(o){var i=n.get(o);t?(i.requireFailure(e),r.dropRequireFailure(o)):i.dropRequireFailure(e)})}this.wheelInput.enableEventType(e,t),this.moveInput.enableEventType(e,t),this.keyInput.enableEventType(e,t),this.contextmenuInput.enableEventType(e,t)}}},{key:"_addEventHandler",value:function(e,t,n,r){if("string"===typeof e){var o=this.manager,i=this.events,a=f.c[e]||e,s=i.get(a);s||(s=new p.a(this),i.set(a,s),s.recognizerName=f.b[a]||a,o&&o.on(a,s.handleEvent)),this._toggleRecognizer(s.recognizerName,!0),s.add(e,t,n,r)}else{n=t;for(var l in e)this._addEventHandler(l,e[l],n,r)}}},{key:"_removeEventHandler",value:function(e,t){if("string"===typeof e){var n=this.events,r=f.c[e]||e,o=n.get(r);if(o&&(o.remove(e,t),o.isEmpty())){var i=o.recognizerName,a=!1,s=!0,l=!1,u=void 0;try{for(var c,p=n.values()[Symbol.iterator]();!(s=(c=p.next()).done);s=!0){var h=c.value;if(h.recognizerName===i&&!h.isEmpty()){a=!0;break}}}catch(e){l=!0,u=e}finally{try{s||null==p.return||p.return()}finally{if(l)throw u}}a||this._toggleRecognizer(i,!1)}}else for(var d in e)this._removeEventHandler(d,e[d])}},{key:"_onBasicInput",value:function(e){var t=e.srcEvent,n=f.a[t.type];n&&this.manager.emit(n,e)}},{key:"_onOtherEvent",value:function(e){this.manager.emit(e.type,e)}}]),e}()},function(e,t,n){var r;!function(o,i,a,s){"use strict";function l(e,t,n){return setTimeout(h(e,n),t)}function u(e,t,n){return!!Array.isArray(e)&&(c(e,n[t],n),!0)}function c(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function p(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),e.apply(this,arguments)}}function f(e,t,n){var r,o=t.prototype;r=e.prototype=Object.create(o),r.constructor=e,r._super=o,n&&de(r,n)}function h(e,t){return function(){return e.apply(t,arguments)}}function d(e,t){return typeof e==ge?e.apply(t?t[0]||s:s,t):e}function m(e,t){return e===s?t:e}function y(e,t,n){c(b(t),function(t){e.addEventListener(t,n,!1)})}function g(e,t,n){c(b(t),function(t){e.removeEventListener(t,n,!1)})}function v(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function _(e,t){return e.indexOf(t)>-1}function b(e){return e.trim().split(/\s+/g)}function x(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function w(e){return Array.prototype.slice.call(e,0)}function E(e,t,n){for(var r=[],o=[],i=0;i<e.length;){var a=t?e[i][t]:e[i];x(o,a)<0&&r.push(e[i]),o[i]=a,i++}return n&&(r=t?r.sort(function(e,n){return e[t]>n[t]}):r.sort()),r}function T(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),i=0;i<me.length;){if(n=me[i],(r=n?n+o:t)in e)return r;i++}return s}function O(){return Ee++}function C(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}function S(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){d(e.options.enable,[e])&&n.handler(t)},this.init()}function k(e){var t=e.options.inputClass;return new(t||(Ce?V:Se?G:Oe?Z:U))(e,A)}function A(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,i=t&Ae&&r-o===0,a=t&(Re|De)&&r-o===0;n.isFirst=!!i,n.isFinal=!!a,i&&(e.session={}),n.eventType=t,P(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function P(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=I(t)),o>1&&!n.firstMultiple?n.firstMultiple=I(t):1===o&&(n.firstMultiple=!1);
vendor: 16,777 bytes, line 1
1var i=n.firstInput,a=n.firstMultiple,s=a?a.center:i.center,l=t.center=M(r);t.timeStamp=be(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=F(s,l),t.distance=z(s,l),R(n,t),t.offsetDirection=j(t.deltaX,t.deltaY);var u=L(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=_e(u.x)>_e(u.y)?u.x:u.y,t.scale=a?B(a.pointers,r):1,t.rotation=a?N(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,D(n,t);var c=e.element;v(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function R(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},i=e.prevInput||{};t.eventType!==Ae&&i.eventType!==Re||(o=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}function D(e,t){var n,r,o,i,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(t.eventType!=De&&(l>ke||a.velocity===s)){var u=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,p=L(l,u,c);r=p.x,o=p.y,n=_e(p.x)>_e(p.y)?p.x:p.y,i=j(u,c),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,i=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=i}function I(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:ve(e.pointers[n].clientX),clientY:ve(e.pointers[n].clientY)},n++;return{timeStamp:be(),pointers:t,center:M(t),deltaX:e.deltaX,deltaY:e.deltaY}}function M(e){var t=e.length;if(1===t)return{x:ve(e[0].clientX),y:ve(e[0].clientY)};for(var n=0,r=0,o=0;o<t;)n+=e[o].clientX,r+=e[o].clientY,o++;return{x:ve(n/t),y:ve(r/t)}}function L(e,t,n){return{x:t/e||0,y:n/e||0}}function j(e,t){return e===t?Ie:_e(e)>=_e(t)?e<0?Me:Le:t<0?je:ze}function z(e,t,n){n||(n=Ue);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function F(e,t,n){n||(n=Ue);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}function N(e,t){return F(t[1],t[0],Ve)+F(e[1],e[0],Ve)}function B(e,t){return z(t[0],t[1],Ve)/z(e[0],e[1],Ve)}function U(){this.evEl=qe,this.evWin=Ge,this.pressed=!1,S.apply(this,arguments)}function V(){this.evEl=Ke,this.evWin=Xe,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function H(){this.evTarget=Je,this.evWin=$e,this.started=!1,S.apply(this,arguments)}function q(e,t){var n=w(e.touches),r=w(e.changedTouches);return t&(Re|De)&&(n=E(n.concat(r),"identifier",!0)),[n,r]}function G(){this.evTarget=et,this.targetIds={},S.apply(this,arguments)}function W(e,t){var n=w(e.touches),r=this.targetIds;if(t&(Ae|Pe)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,i,a=w(e.changedTouches),s=[],l=this.target;if(i=n.filter(function(e){return v(e.target,l)}),t===Ae)for(o=0;o<i.length;)r[i[o].identifier]=!0,o++;for(o=0;o<a.length;)r[a[o].identifier]&&s.push(a[o]),t&(Re|De)&&delete r[a[o].identifier],o++;return s.length?[E(i.concat(s),"identifier",!0),s]:void 0}function Z(){S.apply(this,arguments);var e=h(this.handler,this);this.touch=new G(this.manager,e),this.mouse=new U(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function K(e,t){e&Ae?(this.primaryTouch=t.changedPointers[0].identifier,X.call(this,t)):e&(Re|De)&&X.call(this,t)}function X(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches,o=function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)};setTimeout(o,tt)}}function Y(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var o=this.lastTouches[r],i=Math.abs(t-o.x),a=Math.abs(n-o.y);if(i<=nt&&a<=nt)return!0}return!1}function J(e,t){this.manager=e,this.set(t)}function $(e){if(_(e,st))return st;var t=_(e,lt),n=_(e,ut);return t&&n?st:t||n?t?lt:ut:_(e,at)?at:it}function Q(e){this.options=de({},this.defaults,e||{}),this.id=O(),this.manager=null,this.options.enable=m(this.options.enable,!0),this.state=pt,this.simultaneous={},this.requireFail=[]}function ee(e){return e&yt?"cancel":e&dt?"end":e&ht?"move":e&ft?"start":""}function te(e){return e==ze?"down":e==je?"up":e==Me?"left":e==Le?"right":""}function ne(e,t){var n=t.manager;return n?n.get(e):e}function re(){Q.apply(this,arguments)}function oe(){re.apply(this,arguments),this.pX=null,this.pY=null}function ie(){re.apply(this,arguments)}function ae(){Q.apply(this,arguments),this._timer=null,this._input=null}function se(){re.apply(this,arguments)}function le(){re.apply(this,arguments)}function ue(){Q.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ce(e,t){return t=t||{},t.recognizers=m(t.recognizers,ce.defaults.preset),new pe(e,t)}function pe(e,t){this.options=de({},ce.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=k(this),this.touchAction=new J(this,this.options.touchAction),fe(this,!0),c(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function fe(e,t){var n=e.element;if(n.style){var r;c(e.options.cssProps,function(o,i){r=T(n.style,i),t?(e.oldCssProps[r]=n.style[r],n.style[r]=o):n.style[r]=e.oldCssProps[r]||""}),t||(e.oldCssProps={})}}function he(e,t){var n=i.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}var de,me=["","webkit","Moz","MS","ms","o"],ye=i.createElement("div"),ge="function",ve=Math.round,_e=Math.abs,be=Date.now;de="function"!==typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var xe=p(function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&e[r[o]]===s)&&(e[r[o]]=t[r[o]]),o++;return e},"extend","Use `assign`."),we=p(function(e,t){return xe(e,t,!0)},"merge","Use `assign`."),Ee=1,Te=/mobile|tablet|ip(ad|hone|od)|android/i,Oe="ontouchstart"in o,Ce=T(o,"PointerEvent")!==s,Se=Oe&&Te.test(navigator.userAgent),ke=25,Ae=1,Pe=2,Re=4,De=8,Ie=1,Me=2,Le=4,je=8,ze=16,Fe=Me|Le,Ne=je|ze,Be=Fe|Ne,Ue=["x","y"],Ve=["clientX","clientY"];S.prototype={handler:function(){},init:function(){this.evEl&&y(this.element,this.evEl,this.domHandler),this.evTarget&&y(this.target,this.evTarget,this.domHandler),this.evWin&&y(C(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(C(this.element),this.evWin,this.domHandler)}};var He={mousedown:Ae,mousemove:Pe,mouseup:Re},qe="mousedown",Ge="mousemove mouseup";f(U,S,{handler:function(e){var t=He[e.type];t&Ae&&0===e.button&&(this.pressed=!0),t&Pe&&1!==e.which&&(t=Re),this.pressed&&(t&Re&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var We={pointerdown:Ae,pointermove:Pe,pointerup:Re,pointercancel:De,pointerout:De},Ze={2:"touch",3:"pen",4:"mouse",5:"kinect"},Ke="pointerdown",Xe="pointermove pointerup pointercancel";o.MSPointerEvent&&!o.PointerEvent&&(Ke="MSPointerDown",Xe="MSPointerMove MSPointerUp MSPointerCancel"),f(V,S,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=We[r],i=Ze[e.pointerType]||e.pointerType,a="touch"==i,s=x(t,e.pointerId,"pointerId");o&Ae&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):o&(Re|De)&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(s,1))}});var Ye={touchstart:Ae,touchmove:Pe,touchend:Re,touchcancel:De},Je="touchstart",$e="touchstart touchmove touchend touchcancel";f(H,S,{handler:function(e){var t=Ye[e.type];if(t===Ae&&(this.started=!0),this.started){var n=q.call(this,e,t);t&(Re|De)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var Qe={touchstart:Ae,touchmove:Pe,touchend:Re,touchcancel:De},et="touchstart touchmove touchend touchcancel";f(G,S,{handler:function(e){var t=Qe[e.type],n=W.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});var tt=2500,nt=25;f(Z,S,{handler:function(e,t,n){var r="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)K.call(this,t,n);else if(o&&Y.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var rt=T(ye.style,"touchAction"),ot=rt!==s,it="auto",at="manipulation",st="none",lt="pan-x",ut="pan-y",ct=function(){if(!ot)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){e[n]=!t||o.CSS.supports("touch-action",n)}),e}();J.prototype={set:function(e){"compute"==e&&(e=this.compute()),ot&&this.manager.element.style&&ct[e]&&(this.manager.element.style[rt]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return c(this.manager.recognizers,function(t){d(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),$(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var r=this.actions,o=_(r,st)&&!ct[st],i=_(r,ut)&&!ct[ut],a=_(r,lt)&&!ct[lt];if(o){var s=1===e.pointers.length,l=e.distance<2,u=e.deltaTime<250;if(s&&l&&u)return}return a&&i?void 0:o||i&&n&Fe||a&&n&Ne?this.preventSrc(t):void 0},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var pt=1,ft=2,ht=4,dt=8,mt=dt,yt=16;Q.prototype={defaults:{},set:function(e){return de(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(u(e,"recognizeWith",this))return this;var t=this.simultaneous;return e=ne(e,this),t[e.id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return u(e,"dropRecognizeWith",this)?this:(e=ne(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(u(e,"requireFailure",this))return this;var t=this.requireFail;return e=ne(e,this),-1===x(t,e)&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(u(e,"dropRequireFailure",this))return this;e=ne(e,this);var t=x(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,r=this.state;r<dt&&t(n.options.event+ee(r)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),r>=dt&&t(n.options.event+ee(r))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|pt)))return!1;e++}return!0},recognize:function(e){var t=de({},e);if(!d(this.options.enable,[this,t]))return this.reset(),void(this.state=32);this.state&(mt|yt|32)&&(this.state=pt),this.state=this.process(t),this.state&(ft|ht|dt|yt)&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},f(re,Q,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=t&(ft|ht),o=this.attrTest(e);return r&&(n&De||!o)?t|yt:r||o?n&Re?t|dt:t&ft?t|ht:ft:32}}),f(oe,re,{defaults:{event:"pan",threshold:10,pointers:1,direction:Be},getTouchAction:function(){var e=this.options.direction,t=[];return e&Fe&&t.push(ut),e&Ne&&t.push(lt),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,o=e.direction,i=e.deltaX,a=e.deltaY;return o&t.direction||(t.direction&Fe?(o=0===i?Ie:i<0?Me:Le,n=i!=this.pX,r=Math.abs(e.deltaX)):(o=0===a?Ie:a<0?je:ze,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return re.prototype.attrTest.call(this,e)&&(this.state&ft||!(this.state&ft)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=te(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),f(ie,re,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[st]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&ft)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),f(ae,Q,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[it]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!r||!n||e.eventType&(Re|De)&&!o)this.reset();else if(e.eventType&Ae)this.reset(),this._timer=l(function(){this.state=mt,this.tryEmit()},t.time,this);else if(e.eventType&Re)return mt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===mt&&(e&&e.eventType&Re?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=be(),this.manager.emit(this.options.event,this._input)))}}),f(se,re,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[st]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&ft)}}),f(le,re,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Fe|Ne,pointers:1},getTouchAction:function(){return oe.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Fe|Ne)?t=e.overallVelocity:n&Fe?t=e.overallVelocityX:n&Ne&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&_e(t)>this.options.velocity&&e.eventType&Re},emit:function(e){var t=te(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),f(ue,Q,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[at]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),e.eventType&Ae&&0===this.count)return this.failTimeout();if(r&&o&&n){if(e.eventType!=Re)return this.failTimeout();var i=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||z(this.pCenter,e.center)<t.posThreshold;this.pTime=e.timeStamp,this.pCenter=e.center,a&&i?this.count+=1:this.count=1,this._input=e;if(0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=l(function(){this.state=mt,this.tryEmit()},t.interval,this),ft):mt}return 32},failTimeout:function(){return this._timer=l(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==mt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ce.VERSION="2.0.7",ce.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[se,{enable:!1}],[ie,{enable:!1},["rotate"]],[le,{direction:Fe}],[oe,{direction:Fe},["swipe"]],[ue],[ue,{event:"doubletap",taps:2},["tap"]],[ae]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};pe.prototype={set:function(e){return de(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,r=this.recognizers,o=t.curRecognizer;(!o||o&&o.state&mt)&&(o=t.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&n.state&(ft|ht|dt)&&(o=t.curRecognizer=n),i++}},get:function(e){if(e instanceof Q)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(u(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(u(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=x(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return c(b(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==s){var n=this.handlers;
1return c(b(e),function(e){t?n[e]&&n[e].splice(x(n[e],t),1):delete n[e]}),this}},emit:function(e,t){this.options.domEvents&&he(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&fe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},de(ce,{INPUT_START:Ae,INPUT_MOVE:Pe,INPUT_END:Re,INPUT_CANCEL:De,STATE_POSSIBLE:pt,STATE_BEGAN:ft,STATE_CHANGED:ht,STATE_ENDED:dt,STATE_RECOGNIZED:mt,STATE_CANCELLED:yt,STATE_FAILED:32,DIRECTION_NONE:Ie,DIRECTION_LEFT:Me,DIRECTION_RIGHT:Le,DIRECTION_UP:je,DIRECTION_DOWN:ze,DIRECTION_HORIZONTAL:Fe,DIRECTION_VERTICAL:Ne,DIRECTION_ALL:Be,Manager:pe,Input:S,TouchAction:J,TouchInput:G,MouseInput:U,PointerEventInput:V,TouchMouseInput:Z,SingleTouchInput:H,Recognizer:Q,AttrRecognizer:re,Tap:ue,Pan:oe,Swipe:le,Pinch:ie,Rotate:se,Press:ae,on:y,off:g,each:c,merge:we,extend:xe,assign:de,inherit:f,bindFn:h,prefixed:T}),("undefined"!==typeof o?o:"undefined"!==typeof self?self:{}).Hammer=ce,(r=function(){return ce}.call(t,n,t,e))!==s&&(e.exports=r)}(window,document)},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function o(e){var t=e.prototype.handler;e.prototype.handler=function(e){var n=this.store;e.button>0&&(r(n,function(t){return t.pointerId===e.pointerId})||n.push(e)),t.call(this,e)}}function i(e){e.prototype.handler=function(e){var t=u[e.type];t&a&&e.button>=0&&(this.pressed=!0),t&s&&0===e.which&&(t=l),this.pressed&&(t&l&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}}t.b=o,t.a=i;var a=1,s=2,l=4,u={mousedown:a,mousemove:s,mouseup:l}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(2),o=n(3),i=n(48),a=n(220),s=-1!==a.b.indexOf("firefox"),l=i.d.WHEEL_EVENTS,u=function(){function e(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(r.a)(this,e),this.element=t,this.callback=n,this.options=Object.assign({enable:!0},i),this.events=l.concat(i.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEach(function(e){return t.addEventListener(e,o.handleEvent,!!a.a&&{passive:!1})})}return Object(o.a)(e,[{key:"destroy",value:function(){var e=this;this.events.forEach(function(t){return e.element.removeEventListener(t,e.handleEvent)})}},{key:"enableEventType",value:function(e,t){"wheel"===e&&(this.options.enable=t)}},{key:"handleEvent",value:function(e){if(this.options.enable){var t=e.deltaY;a.c.WheelEvent&&(s&&e.deltaMode===a.c.WheelEvent.DOM_DELTA_PIXEL&&(t/=a.c.devicePixelRatio),e.deltaMode===a.c.WheelEvent.DOM_DELTA_LINE&&(t*=40));var n={x:e.clientX,y:e.clientY};0!==t&&t%4.000244140625===0&&(t=Math.floor(t/4.000244140625)),e.shiftKey&&t&&(t*=.25),this._onWheel(e,-t,n)}}},{key:"_onWheel",value:function(e,t,n){this.callback({type:"wheel",center:n,delta:t,srcEvent:e,pointerType:"mouse",target:e.target})}}]),e}()},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"a",function(){return i});var r="undefined"!==typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",o="undefined"!==typeof window?window:e,i=("undefined"!==typeof e||window,"undefined"!==typeof document&&document,!1);try{var a={get passive(){return i=!0,!0}};o.addEventListener("test",a,a),o.removeEventListener("test",a,a)}catch(e){}}).call(t,n(15))},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(2),o=n(3),i=n(48),a=i.d.MOUSE_EVENTS,s=function(){function e(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(r.a)(this,e),this.element=t,this.callback=n,this.pressed=!1,this.options=Object.assign({enable:!0},i),this.enableMoveEvent=this.options.enable,this.enableLeaveEvent=this.options.enable,this.enableOutEvent=this.options.enable,this.enableOverEvent=this.options.enable,this.events=a.concat(i.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEac
1h(function(e){return t.addEventListener(e,o.handleEvent)})}return Object(o.a)(e,[{key:"destroy",value:function(){var e=this;this.events.forEach(function(t){return e.element.removeEventListener(t,e.handleEvent)})}},{key:"enableEventType",value:function(e,t){"pointermove"===e&&(this.enableMoveEvent=t),"pointerover"===e&&(this.enableOverEvent=t),"pointerout"===e&&(this.enableOutEvent=t),"pointerleave"===e&&(this.enableLeaveEvent=t)}},{key:"handleEvent",value:function(e){this.handleOverEvent(e),this.handleOutEvent(e),this.handleLeaveEvent(e),this.handleMoveEvent(e)}},{key:"handleOverEvent",value:function(e){this.enableOverEvent&&"mouseover"===e.type&&this.callback({type:"pointerover",srcEvent:e,pointerType:"mouse",target:e.target})}},{key:"handleOutEvent",value:function(e){this.enableOutEvent&&"mouseout"===e.type&&this.callback({type:"pointerout",srcEvent:e,pointerType:"mouse",target:e.target})}},{key:"handleLeaveEvent",value:function(e){this.enableLeaveEvent&&"mouseleave"===e.type&&this.callback({type:"pointerleave",srcEvent:e,pointerType:"mouse",target:e.target})}},{key:"handleMoveEvent",value:function(e){if(this.enableMoveEvent)switch(e.type){case"mousedown":e.button>=0&&(this.pressed=!0);break;case"mousemove":0===e.which&&(this.pressed=!1),this.pressed||this.callback({type:"pointermove",srcEvent:e,pointerType:"mouse",target:e.target});break;case"mouseup":this.pressed=!1}}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(2),o=n(3),i=n(48),a=i.d.KEY_EVENTS,s=function(){function e(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(r.a)(this,e),this.element=t,this.callback=n,this.options=Object.assign({enable:!0},i),this.enableDownEvent=this.options.enable,this.enableUpEvent=this.options.enable,this.events=a.concat(i.events||[]),this.handleEvent=this.handleEvent.bind(this),t.tabIndex=1,t.style.outline="none",this.events.forEach(function(e){return t.addEventListener(e,o.handleEvent)})}return Object(o.a)(e,[{key:"destroy",value:function(){var e=this;this.events.forEach(function(t){return e.element.removeEventListener(t,e.handleEvent)})}},{key:"enableEventType",value:function(e,t){"keydown"===e&&(this.enableDownEvent=t),"keyup"===e&&(this.enableUpEvent=t)}},{key:"handleEvent",value:function(e){var t=e.target||e.srcElement;"INPUT"===t.tagName&&"text"===t.type||"TEXTAREA"===t.tagName||(this.enableDownEvent&&"keydown"===e.type&&this.callback({type:"keydown",srcEvent:e,key:e.key,target:e.target}),this.enableUpEvent&&"keyup"===e.type&&this.callback({type:"keyup",srcEvent:e,key:e.key,target:e.target}))}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(2),o=n(3),i=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(r.a)(this,e),this.element=t,this.callback=n,this.options=Object.assign({enable:!0},o),this.handleEvent=this.handleEvent.bind(this),t.addEventListener("contextmenu",this.handleEvent)}return Object(o.a)(e,[{key:"destroy",value:function(){this.element.removeEventListener("contextmenu",this.handleEvent)}},{key:"enableEventType",value:function(e,t){"contextmenu"===e&&(this.options.enable=t)}},{key:"handleEvent",value:function(e){this.options.enable&&this.callback({type:"contextmenu",center:{x:e.clientX,y:e.clientY},srcEvent:e,pointerType:"mouse",target:e.target})}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(2),o=n(3),i=n(225),a=function(){function e(t){Object(r.a)(this,e),this.eventManager=t,this.handlers=[],this.handlersByElement=new Map,this.handleEvent=this.handleEvent.bind(this)}return Object(o.a)(e,[{key:"isEmpty",value:function(){return 0===this.handlers.length}},{key:"add",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"root",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.handlers,i=this.handlersByElement;i.has(n)||i.set(n,[]);var a={type:e,handler:t,srcElement:n,once:r};o.push(a),i.get(n).push(a)}},{key:"remove",value:function(e,t){for(var n=this.handlers,r=this.handlersByElement,o=n.length-1;o>=0;o--){var i=n[o];if(i.type===e&&i.handler===t){n.splice(o,1);var a=r.get(i.srcElement);a.splice(a.indexOf(i),1),0===a.length&&r.delete(i.srcElement)}}}},{key:"handleEvent",value:function(e){if(!this.isEmpty()){for(var t=this._normalizeEvent(e),n=e.srcEvent.target;n&&n!==t.rootElement;){if(this._emit(t,n),t.handled)return;n=n.parentNode}this._emit(t,"root")}}},{key:"_emit",value:function(e,t){var n=this.handlersByElement.get(t);if(n){for(var r=!1,o=function(){e.handled=!0},i=function(){e.handled=!0,r=!0},a=[],s=0;s<n.length;s++){var l=n[s],u=l.type,c=l.handler,p=l.once;if(c(Object.assign({},e,{type:u,stopPropagation:o,stopImmediatePropagation:i})),p&&a.push(n[s]),r)break}for(var f=0;f<a.length;f++){var h=a[f],u=h.type,c=h.handler;this.remove(u,c)}}}},{key:"_normalizeEvent",value:function(e){var t=this.eventManager.element;return Object.assign({},e,Object(i.b)(e),Object(i.a)(e,t),{handled:!1,rootElement:t})}}]),e}()},function(e,t,n){"use strict";function r(e){var t=l[e.srcEvent.type];if(!t)return null;var n=e.srcEvent,r=n.buttons,o=n.button,v=n.which,_=!1,b=!1,x=!1;return t===s||t===a&&!Number.isFinite(r)?(_=v===u,b=v===c,x=v===p):t===a?(_=Boolean(r&m),b=Boolean(r&g),x=Boolean(r&y)):t===i&&(_=o===f,b
1=o===h,x=o===d),{leftButton:_,middleButton:b,rightButton:x}}function o(e,t){var n=e.srcEvent;if(!e.center&&!Number.isFinite(n.clientX))return null;var r=e.center||{x:n.clientX,y:n.clientY},o=t.getBoundingClientRect(),i=o.width/t.offsetWidth,a=o.height/t.offsetHeight;return{center:r,offsetCenter:{x:(r.x-o.left-t.clientLeft)/i,y:(r.y-o.top-t.clientTop)/a}}}t.b=r,t.a=o;var i=1,a=2,s=4,l={pointerdown:i,pointermove:a,pointerup:s,mousedown:i,mousemove:a,mouseup:s},u=1,c=2,p=3,f=0,h=1,d=2,m=1,y=2,g=4},function(e,t,n){"use strict";function r(e,t){var n,r,o,i=function(){return o=null,e.apply(n,r)};return function(){n=this,r=arguments,o&&clearTimeout(o),o=setTimeout(i,t)}}t.a=r},function(e,t,n){"use strict";n.d(t,"a",function(){return g});var r=n(14),o=n(2),i=n(3),a=n(7),s=n(10),l=n(6),u=n(118),c=n(8),p=n(5),f=n(11),h=n.n(f),d=n(17),m=Object.assign({},d.a.propTypes,{draggable:h.a.bool,onDrag:h.a.func,onDragEnd:h.a.func,onDragStart:h.a.func,offsetLeft:h.a.number,offsetTop:h.a.number}),y=Object.assign({},d.a.defaultProps,{draggable:!1,offsetLeft:0,offsetTop:0}),g=function(e){function t(){var e,n;Object(o.a)(this,t);for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];return n=Object(a.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i))),Object(p.a)(Object(s.a)(n),"state",{dragPos:null,dragOffset:null}),Object(p.a)(Object(s.a)(n),"_dragEvents",null),Object(p.a)(Object(s.a)(n),"_onDragStart",function(e){var t=n.props,r=t.draggable,o=t.captureDrag;if((r||o)&&e.stopPropagation(),r){var i=n._getDragEventPosition(e),a=n._getDragEventOffset(e);n.setState({dragPos:i,dragOffset:a}),n._setupDragEvents();var s=n.props.onDragStart;if(s&&a){var l=Object.assign({},e);l.lngLat=n._getDragLngLat(i,a),s(l)}}}),Object(p.a)(Object(s.a)(n),"_onDrag",function(e){e.stopPropagation();var t=n._getDragEventPosition(e);n.setState({dragPos:t});var r=n.props.onDrag,o=n.state.dragOffset;if(r&&o){var i=Object.assign({},e);i.lngLat=n._getDragLngLat(t,o),r(i)}}),Object(p.a)(Object(s.a)(n),"_onDragEnd",function(e){var t=n.state,r=t.dragPos,o=t.dragOffset;e.stopPropagation(),n.setState({dragPos:null,dragOffset:null}),n._removeDragEvents();var i=n.props.onDragEnd;if(i&&r&&o){var a=Object.assign({},e);a.lngLat=n._getDragLngLat(r,o),i(a)}}),Object(p.a)(Object(s.a)(n),"_onDragCancel",function(e){e.stopPropagation(),n.setState({dragPos:null,dragOffset:null}),n._removeDragEvents()}),n}return Object(c.a)(t,e),Object(i.a)(t,[{key:"componentWillUnmount",value:function(){Object(u.a)(Object(l.a)(t.prototype),"componentWillUnmount",this).call(this),this._removeDragEvents()}},{key:"_setupDragEvents",value:function(){var e=this._context.eventManager;e&&(this._dragEvents={panmove:this._onDrag,panend:this._onDragEnd,pancancel:this._onDragCancel},e.on(this._dragEvents))}},{key:"_removeDragEvents",value:function(){var e=this._context.eventManager;e&&this._dragEvents&&(e.off(this._dragEvents),this._dragEvents=null)}},{key:"_getDragEventPosition",value:function(e){var t=e.offsetCenter;return[t.x,t.y]}},{key:"_getDragEventOffset",value:function(e){var t=e.center,n=t.x,r=t.y,o=this._containerRef.current;if(o){var i=o.getBoundingClientRect();return[i.left-n,i.top-r]}return null}},{key:"_getDraggedPosition",value:function(e,t){return[e[0]+t[0],e[1]+t[1]]}},{key:"_getDragLngLat",value:function(e,t){var n=this.props,o=n.offsetLeft,i=n.offsetTop,a=this._getDraggedPosition(e,t),s=Object(r.a)(a,2),l=s[0],u=s[1];return this._context.viewport.unproject([l-o,u-i])}}]),t}(d.a);Object(p.a)(g,"propTypes",m),Object(p.a)(g,"defaultProps",y)},function(e,t,n){"use strict";function r(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(o.a)(e)););return e}t.a=r;var o=n(6)},function(e,t,n){"use strict";n.d(t,"a",function(){return _});var r=n(14),o=n(2),i=n(3),a=n(7),s=n(10),l=n(6),u=n(118),c=n(8),p=n(5),f=n(0),h=(n.n(f),n(11)),d=n.n(h),m=n(17),y=n(230),g=Object.assign({},m.a.propTypes,{className:d.a.string,longitude:d.a.number.isRequired,latitude:d.a.number.isRequired,altitude:d.a.number,offsetLeft:d.a.number,offsetTop:d.a.number,tipSize:d.a.number,closeButton:d.a.bool,closeOnClick:d.a.bool,anchor:d.a.oneOf(Object.keys(y.a)),dynamicPosition:d.a.bool,sortByDepth:d.a.bool,onClose:d.a.func}),v=Object.assign({},m.a.defaultProps,{className:"",altitude:0,offsetLeft:0,offsetTop:0,tipSize:10,anchor:"bottom",dynamicPosition:!0,sortByDepth:!1,closeButton:!0,closeOnClick:!0,onClose:function(){}}),_=function(e){function t(){var e,n;Object(o.a)(this,t);for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];return n=Object(a.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i))),Object(p.a)(Object(s.a)(n),"_closeOnClick",!1),Object(p.a)(Object(s.a)(n),"_contentRef",Object(f.createRef)()),Object(p.a)(Object(s.a)(n),"_onClick",function(e){if(n.props.captureClick&&e.stopPropagation(),n.props.closeOnClick||"mapboxgl-popup-close-button"===e.target.className){n.props.onClose();
1var t=n._context.eventManager;t&&t.once("click",function(e){return e.stopPropagation()},e.target)}}),n}return Object(c.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){Object(u.a)(Object(l.a)(t.prototype),"componentDidMount",this).call(this),this.forceUpdate()}},{key:"_getPosition",value:function(e,t){var n=this._context.viewport,r=this.props,o=r.anchor,i=r.dynamicPosition,a=r.tipSize,s=this._contentRef.current;return s&&i?Object(y.b)({x:e,y:t,anchor:o,padding:a,width:n.width,height:n.height,selfWidth:s.clientWidth,selfHeight:s.clientHeight}):o}},{key:"_getContainerStyle",value:function(e,t,n,r){var o=this._context.viewport,i=this.props,a=i.offsetLeft,s=i.offsetTop,l=i.sortByDepth,u=y.a[r],c=e+a,p=t+s,f={position:"absolute",transform:"\n translate(".concat(100*-u.x,"%, ").concat(100*-u.y,"%)\n translate(").concat(c,"px, ").concat(p,"px)\n "),display:void 0,zIndex:void 0};return l?(n>1||n<-1||e<0||e>o.width||t<0||t>o.height?f.display="none":f.zIndex=Math.floor((1-n)/2*1e5),f):f}},{key:"_renderTip",value:function(e){var t=this.props.tipSize;return Object(f.createElement)("div",{key:"tip",className:"mapboxgl-popup-tip",style:{borderWidth:t}})}},{key:"_renderContent",value:function(){var e=this.props,t=e.closeButton,n=e.children,r=this._context.eventManager?null:this._onClick;return Object(f.createElement)("div",{key:"content",ref:this._contentRef,className:"mapboxgl-popup-content",onClick:r},[t&&Object(f.createElement)("button",{key:"close-button",className:"mapboxgl-popup-close-button",type:"button"},"\xd7"),n])}},{key:"_render",value:function(){var e=this.props,t=e.className,n=e.longitude,o=e.latitude,i=e.altitude,a=this._context.viewport.project([n,o,i]),s=Object(r.a)(a,3),l=s[0],u=s[1],c=s[2],p=this._getPosition(l,u),h=this._getContainerStyle(l,u,c,p);return Object(f.createElement)("div",{className:"mapboxgl-popup mapboxgl-popup-anchor-".concat(p," ").concat(t),style:h,ref:this._containerRef},[this._renderTip(p),this._renderContent()])}}]),t}(m.a);Object(p.a)(_,"propTypes",g),Object(p.a)(_,"defaultProps",v)},function(e,t,n){"use strict";function r(e){var t=e.x,n=e.y,r=e.width,a=e.height,s=e.selfWidth,l=e.selfHeight,u=e.anchor,c=e.padding,p=void 0===c?0:c,f=o[u],h=f.x,d=f.y,m=n-d*l,y=m+l;if(m<p)for(;m<p&&d>=.5;)d-=.5,m+=.5*l;else if(y>a-p)for(;y>a-p&&d<=.5;)d+=.5,y-=.5*l;var g=t-h*s,v=g+s,_=.5;if(.5===d&&(h=Math.floor(h),_=1),g<p)for(;g<p&&h>=_;)h-=_,g+=_*s;else if(v>r-p)for(;v>r-p&&h<=1-_;)h+=_,v-=_*s;return i.find(function(e){var t=o[e];return t.x===h&&t.y===d})||u}n.d(t,"a",function(){return o}),t.b=r;var o={top:{x:.5,y:0},"top-left":{x:0,y:0},"top-right":{x:1,y:0},bottom:{x:.5,y:1},"bottom-left":{x:0,y:1},"bottom-right":{x:1,y:1},left:{x:0,y:.5},right:{x:1,y:.5}},i=Object.keys(o)},function(e,t,n){"use strict";var r=n(2),o=n(3),i=n(7),a=n(6),s=n(10),l=n(8),u=n(5),c=n(83),p=n(11),f=n.n(p),h=n(17),d=n(0),m=(n.n(d),n(84)),y=Object.assign({},h.a.propTypes,{className:f.a.string,container:f.a.object}),g=Object.assign({},h.a.defaultProps,{className:"",container:null}),v=function(e){function t(){var e,n;Object(r.a)(this,t);for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=Object(i.a)(this,(e=Object(a.a)(t)).call.apply(e,[this].concat(l))),Object(u.a)(Object(s.a)(n),"state",{isFullscreen:!1,showButton:!1}),Object(u.a)(Object(s.a)(n),"_mapboxFullscreenControl",null),Object(u.a)(Object(s.a)(n),"_onFullscreenChange",function(){var e=!n._mapboxFullscreenControl._fullscreen;n._mapboxFullscreenControl._fullscreen=e,n.setState({isFullscreen:e})}),Object(u.a)(Object(s.a)(n),"_onClickFullscreen",function(){n._mapboxFullscreenControl._onClickFullscreen()}),n}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.container||this._context.mapContainer;this._mapboxFullscreenControl=new m.a.FullscreenControl({container:e}),this.setState({showButton:this._mapboxFullscreenControl._checkFullscreenSupport()}),c.a.addEventListener(this._mapboxFullscreenControl._fullscreenchange,this._onFullscreenChange)}},{key:"componentWillUnmount",value:function(){c.a.removeEventListener(this._mapboxFullscreenControl._fullscreenchange,this._onFullscreenChange)}},{key:"_renderButton",value:function(e,t,n){return Object(d.createElement)("button",{key:e,className:"mapboxgl-ctrl-icon mapboxgl-ctrl-".concat(e),type:"button",title:t,onClick:n})}},{key:"_render",value:function(){if(!this.state.showButton)return null;var e=this.props.className,t=this.state.isFullscreen,n=t?"shrink":"fullscreen";return Object(d.createElement)("div",{className:"mapboxgl-ctrl mapboxgl-ctrl-group ".concat(e),ref:this._containerRef},[this._renderButton(n,"Toggle fullscreen",this._onClickFullscreen)])}}]),t}(h.a);Object(u.a)(v,"propTypes",y),Object(u.a)(v,"defaultProps",g)},function(e,t,n){"use strict";var r=n(2),o=n(3),i=n(7),a=n(6),s=n(10),l=n(8),u=n(5),c=n(0),p=(n.n(c),n(11)),f=n.n(p),h=n(25),d=n(84),m=n(17),y=n(117),g=n(26),v=n(47),_=n(233),b=Object.assign({},v.b.defaultProps,{transitionDuration:500}),x=function(){},w=Object.assign({}
1,m.a.propTypes,{className:f.a.string,style:f.a.object,positionOptions:f.a.object,fitBoundsOptions:f.a.object,trackUserLocation:f.a.bool,showUserLocation:f.a.bool,onViewStateChange:f.a.func,onViewportChange:f.a.func}),E=Object.assign({},m.a.defaultProps,{className:"",style:{},positionOptions:null,fitBoundsOptions:null,trackUserLocation:!1,showUserLocation:!0}),T=function(e){function t(){var e,n;Object(r.a)(this,t);for(var o=arguments.length,l=new Array(o),p=0;p<o;p++)l[p]=arguments[p];return n=Object(i.a)(this,(e=Object(a.a)(t)).call.apply(e,[this].concat(l))),Object(u.a)(Object(s.a)(n),"state",{supportsGeolocation:!1,markerPosition:null}),Object(u.a)(Object(s.a)(n),"_mapboxGeolocateControl",null),Object(u.a)(Object(s.a)(n),"_geolocateButtonRef",Object(c.createRef)()),Object(u.a)(Object(s.a)(n),"_markerRef",Object(c.createRef)()),Object(u.a)(Object(s.a)(n),"_setupMapboxGeolocateControl",function(e){if(!e)return void console.warn("Geolocation support is not available, the GeolocateControl will not be visible.");var t={};["positionOptions","fitBoundsOptions","trackUserLocation","showUserLocation"].forEach(function(e){e in n.props&&null!==n.props[e]&&(t[e]=n.props[e])}),n._mapboxGeolocateControl=new d.a.GeolocateControl(t),n._mapboxGeolocateControl._watchState="OFF",n._mapboxGeolocateControl._geolocateButton=n._geolocateButtonRef.current,n._mapboxGeolocateControl._updateMarker=n._updateMarker,n._mapboxGeolocateControl._updateCamera=n._updateCamera,n._mapboxGeolocateControl._setup=!0}),Object(u.a)(Object(s.a)(n),"_onClickGeolocate",function(){return n._mapboxGeolocateControl.trigger()}),Object(u.a)(Object(s.a)(n),"_updateMarker",function(e){e&&n.setState({markerPosition:e.coords})}),Object(u.a)(Object(s.a)(n),"_getBounds",function(e){var t=new d.a.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,r=t.toBounds(n);return[[r._ne.lng,r._ne.lat],[r._sw.lng,r._sw.lat]]}),Object(u.a)(Object(s.a)(n),"_updateCamera",function(e){var t=n._context.viewport,r=n._getBounds(e),o=new h.a(t).fitBounds(r),i=o.longitude,a=o.latitude,s=o.zoom,l=Object.assign({},t,{longitude:i,latitude:a,zoom:s}),u=new g.b(l),c=Object.assign({},u.getViewportProps(),b),p=n.props.onViewportChange||n._context.onViewportChange||x;(n.props.onViewStateChange||n._context.onViewStateChange||x)({viewState:c}),p(c)}),Object(u.a)(Object(s.a)(n),"_renderButton",function(e,t,r){return Object(c.createElement)("button",{key:e,className:"mapboxgl-ctrl-icon mapboxgl-ctrl-".concat(e),ref:n._geolocateButtonRef,type:"button",title:t,onClick:r})}),Object(u.a)(Object(s.a)(n),"_renderMarker",function(){var e=n.props.showUserLocation,t=n.state.markerPosition;return e&&t?Object(c.createElement)(y.a,{key:"location-maker",ref:n._markerRef,className:"mapboxgl-user-location-dot",longitude:t.longitude,latitude:t.latitude,onContextMenu:function(e){return e.preventDefault()},captureDrag:!1,captureDoubleClick:!1}):null}),n}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;Object(_.a)().then(function(t){e.setState({supportsGeolocation:t}),e._setupMapboxGeolocateControl(t)})}},{key:"componentDidUpdate",value:function(){var e=this._markerRef.current;this._mapboxGeolocateControl&&e&&(this._mapboxGeolocateControl._dotElement=e._containerRef.current)}},{key:"componentWillUnmount",value:function(){var e=this._mapboxGeolocateControl._geolocationWatchID;void 0!==e&&(window.navigator.geolocation.clearWatch(e),this._mapboxGeolocateControl._geolocationWatchID=void 0)}},{key:"_render",value:function(){if(!this.state.supportsGeolocation)return null;var e=this.props,t=e.className,n=e.style;return Object(c.createElement)("div",null,[this._renderMarker(),Object(c.createElement)("div",{key:"geolocate-control",className:"mapboxgl-ctrl mapboxgl-ctrl-group ".concat(t),ref:this._containerRef,style:n,onContextMenu:function(e){return e.preventDefault()}},this._renderButton("geolocate","Geolocate",this._onClickGeolocate))])}}]),t}(m.a);Object(u.a)(T,"propTypes",w),Object(u.a)(T,"defaultProps",E)},function(e,t,n){"use strict";function r(){return void 0!==o?Promise.resolve(o):void 0!==window.navigator.permissions?window.navigator.permissions.query({name:"geolocation"}).then(function(e){return o="denied"!==e.state}):(o=Boolean(window.navigator.geolocation),Promise.resolve(o))}t.a=r;var o},function(e,t,n){"use strict";n.d(t,"a",function(){return b});var r=n(2),o=n(3),i=n(7),a=n(6),s=n(10),l=n(8),u=n(5),c=n(0),p=(n.n(c),n(11)),f=n.n(p),h=n(17),d=n(26),m=n(86),y=n(116),g=function(){},v=Object.assign({}
1,h.a.propTypes,{className:f.a.string,onViewStateChange:f.a.func,onViewportChange:f.a.func,showCompass:f.a.bool,showZoom:f.a.bool}),_=Object.assign({},h.a.defaultProps,{className:"",showCompass:!0,showZoom:!0}),b=function(e){function t(e){var n;return Object(r.a)(this,t),n=Object(i.a)(this,Object(a.a)(t).call(this,e)),Object(u.a)(Object(s.a)(n),"_onZoomIn",function(){n._updateViewport({zoom:n._context.viewport.zoom+1})}),Object(u.a)(Object(s.a)(n),"_onZoomOut",function(){n._updateViewport({zoom:n._context.viewport.zoom-1})}),Object(u.a)(Object(s.a)(n),"_onResetNorth",function(){n._updateViewport({bearing:0,pitch:0})}),Object(y.a)(e),n}return Object(l.a)(t,e),Object(o.a)(t,[{key:"_updateViewport",value:function(e){var t=this._context.viewport,n=new d.b(Object.assign({},t,e)),r=Object.assign({},n.getViewportProps(),m.a),o=this.props.onViewportChange||this._context.onViewportChange||g;(this.props.onViewStateChange||this._context.onViewStateChange||g)({viewState:r}),o(r)}},{key:"_renderCompass",value:function(){var e=this._context.viewport.bearing;return Object(c.createElement)("span",{className:"mapboxgl-ctrl-compass-arrow",style:{transform:"rotate(".concat(-e,"deg)")}})}},{key:"_renderButton",value:function(e,t,n,r){return Object(c.createElement)("button",{key:e,className:"mapboxgl-ctrl-icon mapboxgl-ctrl-".concat(e),type:"button",title:t,onClick:n,children:r})}},{key:"_render",value:function(){var e=this.props,t=e.className,n=e.showCompass,r=e.showZoom;return Object(c.createElement)("div",{className:"mapboxgl-ctrl mapboxgl-ctrl-group ".concat(t),ref:this._containerRef},[r&&this._renderButton("zoom-in","Zoom In",this._onZoomIn),r&&this._renderButton("zoom-out","Zoom Out",this._onZoomOut),n&&this._renderButton("compass","Reset North",this._onResetNorth,this._renderCompass())])}}]),t}(h.a);Object(u.a)(b,"propTypes",v),Object(u.a)(b,"defaultProps",_)},function(e,t,n){"use strict";var r=n(2),o=n(3),i=n(7),a=n(6),s=n(10),l=n(8),u=n(5),c=n(0),p=(n.n(c),n(11)),f=n.n(p),h=n(17),d=n(83),m=Object.assign({},h.a.propTypes,{redraw:f.a.func.isRequired}),y={captureScroll:!1,captureDrag:!1,captureClick:!1,captureDoubleClick:!1},g=function(e){function t(){var e,n;Object(r.a)(this,t);for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=Object(i.a)(this,(e=Object(a.a)(t)).call.apply(e,[this].concat(l))),Object(u.a)(Object(s.a)(n),"_canvas",void 0),Object(u.a)(Object(s.a)(n),"_ctx",void 0),Object(u.a)(Object(s.a)(n),"_redraw",function(){var e=n._ctx;if(e){var t=d.b.devicePixelRatio||1;e.save(),e.scale(t,t);var r=n._context,o=r.viewport,i=r.isDragging;n.props.redraw({width:o.width,height:o.height,ctx:e,isDragging:i,project:o.project.bind(o),unproject:o.unproject.bind(o)}),e.restore()}}),n}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this._containerRef.current;e&&(this._canvas=e,this._ctx=e.getContext("2d")),this._redraw()}},{key:"_render",value:function(){var e=d.b.devicePixelRatio||1,t=this._context.viewport,n=t.width,r=t.height;return this._redraw(),Object(c.createElement)("canvas",{ref:this._containerRef,width:n*e,height:r*e,style:{width:"".concat(n,"px"),height:"".concat(r,"px"),position:"absolute",left:0,top:0}})}}]),t}(h.a);Object(u.a)(g,"propTypes",m),Object(u.a)(g,"defaultProps",y)},function(e,t,n){"use strict";var r=n(2),o=n(3),i=n(7),a=n(6),s=n(8),l=n(5),u=n(0),c=(n.n(u),n(11)),p=n.n(c),f=n(17),h=Object.assign({},f.a.propTypes,{redraw:p.a.func.isRequired,style:p.a.object}),d={captureScroll:!1,captureDrag:!1,captureClick:!1,captureDoubleClick:!1},m=function(e){function t(){return Object(r.a)(this,t),Object(i.a)(this,Object(a.a)(t).apply(this,arguments))}return Object(s.a)(t,e),Object(o.a)(t,[{key:"_render",value:function(){var e=this._context,t=e.viewport,n=e.isDragging,r=Object.assign({position:"absolute",left:0,top:0,width:t.width,height:t.height},this.props.style);return Object(u.createElement)("div",{ref:this._containerRef,style:r},this.props.redraw({width:t.width,height:t.height,isDragging:n,project:t.project.bind(t),unproject:t.unproject.bind(t)}))}}]),t}(f.a);Object(l.a)(m,"propTypes",h),Object(l.a)(m,"defaultProps",d)},function(e,t,n){"use strict";n.d(t,"a",function(){return m});var r=n(2),o=n(3),i=n(7),a=n(6),s=n(8),l=n(5),u=n(0),c=(n.n(u),n(11)),p=n.n(c),f=n(17
1),h=Object.assign({},f.a.propTypes,{redraw:p.a.func.isRequired,style:p.a.object}),d={captureScroll:!1,captureDrag:!1,captureClick:!1,captureDoubleClick:!1},m=function(e){function t(){return Object(r.a)(this,t),Object(i.a)(this,Object(a.a)(t).apply(this,arguments))}return Object(s.a)(t,e),Object(o.a)(t,[{key:"_render",value:function(){var e=this._context,t=e.viewport,n=e.isDragging,r=Object.assign({position:"absolute",left:0,top:0},this.props.style);return Object(u.createElement)("svg",{width:t.width,height:t.height,ref:this._containerRef,style:r},this.props.redraw({width:t.width,height:t.height,isDragging:n,project:t.project.bind(t),unproject:t.unproject.bind(t)}))}}]),t}(f.a);Object(l.a)(m,"propTypes",h),Object(l.a)(m,"defaultProps",d)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),s=n(81),l=function(e){var t=e.item,n=e.offsetTop,r=e.nameSelector;return t?o.a.createElement(s.d,{offsetTop:n,latitude:parseFloat(t.Latitude),longitude:parseFloat(t.Longitude),closeButton:!1},o.a.createElement("div",null,r(t))):null};l.propTypes={item:a.a.object,offsetTop:a.a.number,nameSelector:a.a.func.isRequired},t.a=l},function(e,t){},function(e,t,n){"use strict";var r=n(241);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=n.n(a),l=n(21),u=n(242),c=(n.n(u),n(282)),p=(n.n(c),n(1)),f=n.n(p),h=n(37),d=n(22),m=n(23),y=n(283),g=n.n(y),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),v(t,[{key:"render",value:function(){var e=this,t=[],n=this.props.projects.filter(function(e){return void 0===e.ID?e:t.includes(e.ID)?null:(t.push(e.ID),e)}),r=n.length;return s.a.createElement("div",{style:{paddingTop:50}},s.a.createElement("hr",null),s.a.createElement("div",{className:g.a.container},s.a.createElement("p",null,r," projects"),s.a.createElement(u.BootstrapTable,{data:n,striped:!1,hover:!1,pagination:!0,options:{sizePerPage:5,sizePerPageList:[5,10,15]}},s.a.createElement(u.TableHeaderColumn,{dataField:"Project",isKey:!0,dataSort:!0,width:"35%",dataFormat:function(t,n){return s.a.createElement("a",{style:{cursor:"pointer"},alt:"View details for: "+t,href:"",onClick:function(t){t.preventDefault(),e.props.setActiveProject(n)}},t)}},"Project name"),s.a.createElement(u.TableHeaderColumn,{dataField:"LGA",dataSort:!0,width:"20%"},"LGA"),s.a.createElement(u.TableHeaderColumn,{dataField:"fundName",dataSort:!0,width:"45%"},"Fund"))))}}]),t}(a.Component),b=function(e){return{projects:Object(d.j)(e)}},x={setActiveProject:h.d};_.propTypes={setActiveProject:f.a.func.isRequired,projects:f.a.arrayOf(f.a.shape(m.c))},t.a=Object(l.b)(b,x)(_)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SizePerPageDropDown=t.ButtonGroup=t.SearchField=t.ClearSearchButton=t.ExportCSVButton=t.ShowSelectedOnlyButton=t.DeleteButton=t.InsertButton=t.InsertModalFooter=t.InsertModalBody=t.InsertModalHeader=t.TableHeaderColumn=t.BootstrapTable=void 0;var o=n(243),i=r(o),a=n(123),s=r(a),l=n(130),u=r(l),c=n(132),p=r(c),f=n(131),h=r(f),d=n(133),m=r(d),y=n(134),g=r(y),v=n(135),_=r(v),b=n(136),x=r(b),w=n(138),E=r(w),T=n(137),O=r(T),C=n(281),S=r(C),k=n(126),A=r(k);"undefined"!==typeof window&&(window.BootstrapTable=i.default,window.TableHeaderColumn=s.default,window.InsertModalHeader=u.default,window.InsertModalBody=p.default,window.InsertModalFooter=h.default,window.InsertButton=m.default,window.DeleteButton=g.default,window.ShowSelectedOnlyButton=x.default,window.ExportCSVButton=_.default,window.ClearSearchButton=E.default,window.SearchField=O.default,window.ButtonGroup=S.default,window.SizePerPageDropDown=A.default),t.BootstrapTable=i.default,t.TableHeaderColumn=s.default,t.InsertModalHeader=u.default,t.InsertModalBody=p.default,t.InsertModalFooter=h.default,t.InsertButton=m.default,t.DeleteButton=g.default,t.ShowSelectedOnlyButton=x.default,t.ExportCSVButton=_.default,t.ClearSearchButton=E.default,t.SearchField=O.default,t.ButtonGroup=S.default,t.SizePerPageDropDown=A.default},function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d=n(9),m=r(d),y=n(121),g=r(y),v=n(4),_=r(v),b=n(123),x=r(b),w=n(252),E=r(w),T=n(255),O=r(T),C=n(256),S=r(C),k=n(261),A=r(k),P=n(263),R=r(P),D=n(273),I=r(D),M=n(274),L=n(12),j=r(L),z=n(275),F=r(z),N=n(279),B=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(n.handleSort=function(){return n.__handleSort__REACT_HOT_LOADER__.apply(n,arguments)},n.handleExpandRow=function(){return n.__handleExpandRow__REACT_HOT_LOADER__.apply(n,arguments)},n.handlePaginationData=function(){return n.__handlePaginationData__REACT_HOT_LOADER__.apply(n,arguments)},n.handleMouseLeave=function(){return n.__handleMouseLeave__REACT_HOT_LOADER__.apply(n,arguments)},n.handleMouseEnter=function(){return n.__handleMouseEnter__REACT_HOT_LOADER__.apply(n,arguments)},n.handleRowMouseOut=function(){return n.__handleRowMouseOut__REACT_HOT_LOADER__.apply(n,arguments)},n.handleRowMouseOver=function(){return n.__handleRowMouseOver__REACT_HOT_LOADER__.apply(n,arguments)},n.handleNavigateCell=function(){return n.__handleNavigateCell__REACT_HOT_LOADER__.apply(n,arguments)},n.handleRowClick=function(){return n.__handleRowClick__REACT_HOT_LOADER__.apply(n,arguments)},n.handleRowDoubleClick=function(){return n.__handleRowDoubleClick__REACT_HOT_LOADER__.apply(n,arguments)},n.handleSelectAllRow=function(){return n.__handleSelectAllRow__REACT_HOT_LOADER__.apply(n,arguments)},n.handleShowOnlySelected=function(){return n.__handleShowOnlySelected__REACT_HOT_LOADER__.apply(n,arguments)},n.handleSelectRow=function(){return n.__handleSelectRow__REACT_HOT_LOADER__.apply(n,arguments)},n.handleEditCell=function(){return n.__handleEditCell__REACT_HOT_LOADER__.apply(n,arguments)},n.handleAddRow=function(){return n.__handleAddRow__REACT_HOT_LOADER__.apply(n,arguments)},n.getPageByRowKey=function(){return n.__getPageByRowKey__REACT_HOT_LOADER__.apply(n,arguments)},n.handleDropRow=function(){return n.__handleDropRow__REACT_HOT_LOADER__.apply(n,arguments)},n.handleFilterData=function(){return n.__handleFilterData__REACT_HOT_LOADER__.apply(n,arguments)},n.handleExportCSV=function(){return n.__handleExportCSV__REACT_HOT_LOADER__.apply(n,arguments)},n.handleSearch=function(){return n.__handleSearch__REACT_HOT_LOADER__.apply(n,arguments)},n._scrollTop=function(){return n.___scrollTop__REACT_HOT_LOADER__.apply(n,arguments)},n._scrollHeader=function(){return n.___scrollHeader__REACT_HOT_LOADER__.apply(n,arguments)},n._scrollFooter=function(){return n.___scrollFooter__REACT_HOT_LOADER__.apply(n,arguments)},n.isIE=!1,j.default.canUseDOM()&&(n.isIE=document.documentMode),n.store=new M.TableDataStore(n.props.data?n.props.data.slice():[]),n.isVerticalScroll=!1,n.initTable(n.props),n.props.selectRow&&n.props.selectRow.selected){var r=n.props.selectRow.selected.slice();n.store.setSelectedRowKey(r)}var a=_.default.PAGE_START_INDEX;"undefined"!==typeof n.props.options.page?a=n.props.options.page:"undefined"!==typeof n.props.options.pageStartIndex&&(a=n.props.options.pageStartIndex),n._adjustHeaderWidth=n._adjustHeaderWidth.bind(n),n._adjustHeight=n._adju
1stHeight.bind(n),n._adjustTable=n._adjustTable.bind(n),n.toggleExpandAllChilds=n.toggleExpandAllChilds.bind(n);var s=[];return null!==n.props.options.expandAllChilds&&void 0!==n.props.options.expandAllChilds&&n.props.options.expandAllChilds?s=n.store.getAllRowkey():void 0!==n.props.options.expanding&&null!==n.props.options.expanding&&(s=n.props.options.expanding),n.state={data:n.getTableData(),currPage:a,expanding:s,sizePerPage:n.props.options.sizePerPage||_.default.SIZE_PER_PAGE_LIST[0],selectedRowKeys:n.store.getSelectedRowKeys(),reset:!1,x:n.props.keyBoardNav?0:-1,y:n.props.keyBoardNav?0:-1},n}return a(t,e),u(t,[{key:"___scrollFooter__REACT_HOT_LOADER__",value:function(){return this.___scrollFooter__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"___scrollHeader__REACT_HOT_LOADER__",value:function(){return this.___scrollHeader__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"___scrollTop__REACT_HOT_LOADER__",value:function(){return this.___scrollTop__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleSearch__REACT_HOT_LOADER__",value:function(){return this.__handleSearch__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleExportCSV__REACT_HOT_LOADER__",value:function(){return this.__handleExportCSV__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleFilterData__REACT_HOT_LOADER__",value:function(){return this.__handleFilterData__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleDropRow__REACT_HOT_LOADER__",value:function(){return this.__handleDropRow__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__getPageByRowKey__REACT_HOT_LOADER__",value:function(){return this.__getPageByRowKey__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleAddRow__REACT_HOT_LOADER__",value:function(){return this.__handleAddRow__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleEditCell__REACT_HOT_LOADER__",value:function(){return this.__handleEditCell__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleSelectRow__REACT_HOT_LOADER__",value:function(){return this.__handleSelectRow__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleShowOnlySelected__REACT_HOT_LOADER__",value:function(){return this.__handleShowOnlySelected__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleSelectAllRow__REACT_HOT_LOADER__",value:function(){return this.__handleSelectAllRow__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleRowDoubleClick__REACT_HOT_LOADER__",value:function(){return this.__handleRowDoubleClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleRowClick__REACT_HOT_LOADER__",value:function(){return this.__handleRowClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleNavigateCell__REACT_HOT_LOADER__",value:function(){return this.__handleNavigateCell__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleRowMouseOver__REACT_HOT_LOADER__",value:function(){return this.__handleRowMouseOver__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleRowMouseOut__REACT_HOT_LOADER__",value:function(){return this.__handleRowMouseOut__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleMouseEnter__REACT_HOT_LOADER__",value:function(){return this.__handleMouseEnter__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleMouseLeave__REACT_HOT_LOADER__",value:function(){return this.__handleMouseLeave__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handlePaginationData__REACT_HOT_LOADER__",value:function(){return this.__handlePaginationData__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleExpandRow__REACT_HOT_LOADER__",value:function(){return this.__handleExpandRow__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleSort__REACT_HOT_LOADER__",value:function(){return this.__handleSort__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"initTable",value:function(e){var t=this;if(e.children!==this.props.children&&this.filter){var n=p.default.Children.map(e.children,function(e){return e.props.dataField});p.default.Children.forEach(this.props.children,function(e){var r=e.props,o=r.dataField,i=r.filter;i&&!n.includes(o)&&t.filter.handleFilter(o,"",i.type,i)})}var r=e.keyField,o="string"===typeof r&&r.length;
1if(p.default.Children.forEach(e.children,function(e){if(null!==e&&void 0!==e){if(e.props.isKey){if(r)throw new Error("Error. Multiple key column detected in TableHeaderColumn.");r=e.props.dataField}e.props.filter&&(t.filter||(t.filter=new N.Filter),e.props.filter.emitter=t.filter)}}),this.filter&&(this.filter.removeAllListeners("onFilterChange"),this.filter.on("onFilterChange",function(e){t.handleFilterData(e)})),this.colInfos=this.getColumnsDescription(e).reduce(function(e,t){return e[t.name]=t,e},{}),!o&&!r)throw new Error("Error. No any key column defined in TableHeaderColumn.\n Use 'isKey={true}' to specify a unique column after version 0.5.4.");this.store.setProps({isPagination:e.pagination,keyField:r,colInfos:this.colInfos,multiColumnSearch:e.multiColumnSearch,strictSearch:e.strictSearch,multiColumnSort:e.multiColumnSort,remote:this.props.remote})}},{key:"getTableData",value:function(){var e=[],t=this.props,n=t.options,r=t.pagination,o=n.defaultSortName||n.sortName,i=n.defaultSortOrder||n.sortOrder,a=n.defaultSearch;if(o&&i&&(this.store.setSortInfo(i,o),this.allowRemote(_.default.REMOTE_SORT)||this.store.sort()),a&&this.store.search(a),r){var s=void 0,l=void 0;this.store.isChangedPage()?(l=this.state.sizePerPage,s=this.state.currPage):(l=n.sizePerPage||_.default.SIZE_PER_PAGE_LIST[0],s=n.page||1),e=this.store.page(s,l).get()}else e=this.store.get();return e}},{key:"getColumnsDescription",value:function(e){var t=this,n=e.children,r=0;return p.default.Children.forEach(n,function(e){null!==e&&void 0!==e&&Number(e.props.row)>r&&(r=Number(e.props.row))}),p.default.Children.map(n,function(e,n){if(null===e||void 0===e)return null;var o=e.props.row?Number(e.props.row):0;if((e.props.rowSpan?Number(e.props.rowSpan):1)+o===r+1){var i=t.getColumnDescription(e);return i.index=n,i}})}},{key:"getColumnDescription",value:function(e){var t={name:e.props.dataField,align:e.props.dataAlign,sort:e.props.dataSort,format:e.props.dataFormat,formatExtraData:e.props.formatExtraData,filterFormatted:e.props.filterFormatted,filterValue:e.props.filterValue,editable:e.props.editable,customEditor:e.props.customEditor,hidden:e.props.hidden,hiddenOnInsert:e.props.hiddenOnInsert,searchable:e.props.searchable,className:e.props.columnClassName,editClassName:e.props.editColumnClassName,invali
1dEditColumnClassName:e.props.invalidEditColumnClassName,columnTitle:e.props.columnTitle,width:e.props.width,text:e.props.headerText||e.props.children,sortFunc:e.props.sortFunc,sortFuncExtraData:e.props.sortFuncExtraData,export:e.props.export,expandable:e.props.expandable,attrs:e.props.tdAttr,editAttrs:e.props.editTdAttr,style:e.props.tdStyle};return e.type.name!==x.default.name&&p.default.isValidElement(e.props.children)&&(t=l({},t,this.getColumnDescription(p.default.Children.only(e.props.children)))),t}},{key:"reset",value:function(){var e=this,t=this.props.options.pageStartIndex;this.store.clean(),this.body.setState({currEditCell:null}),this.setState(function(){return{data:e.getTableData(),currPage:j.default.getFirstPage(t),expanding:[],sizePerPage:_.default.SIZE_PER_PAGE_LIST[0],selectedRowKeys:[],reset:!0}})}},{key:"componentWillReceiveProps",value:function(e){this.initTable(e);var t=e.options,n=e.selectRow,r=e.replace;if(r=r||this.props.replace,e.data)if(this.store.setData(e.data.slice()),r)this.reset();else{var o=this.state.currPage;this.props.options.page!==t.page&&(o=t.page);var i=this.state.sizePerPage;if(this.props.options.sizePerPage!==t.sizePerPage&&(i=t.sizePerPage),this.isRemoteDataSource()){var a={sizePerPage:i,reset:!1,currPage:o},s=e.data.slice();if(e.pagination&&!this.allowRemote(_.default.REMOTE_PAGE)&&(s=this.store.page(o,i).get()),this.store.isOnFilter)this.store.searchText&&this.handleSearch(this.store.searchText),this.store.filterObj&&this.handleFilterData(this.store.filterObj),a.currPage=j.default.getFirstPage(e.options.pageStartIndex);else{if(this.allowRemote(_.default.REMOTE_SORT)){var l=this.props.options,u=t.sortName,c=t.sortOrder;l.sortName===u&&l.sortOrder===c||this.store.setSortInfo(c,t.sortName)}else s=this.store.sort().get();a.data=s}this.setState(function(){return a})}else{o>Math.ceil(e.data.length/i)&&(o=1);var p=this.store.getSortInfo(),f=t.sortName,h=t.sortOrder;f&&h?(this.store.setSortInfo(h,f),this.store.sort()):p.length>0&&this.store.sort();var d=this.store.page(o,i).get();this.setState(function(){return{data:d,currPage:o,sizePerPage:i,reset:!1}}),this.store.isSearching&&t.afterSearch&&t.afterSearch(this.store.searchText,this.store.getDataIgnoringPagination()),this.store.isFiltering&&t.afterColumnFilter&&t.afterColumnFilter(this.store.filterObj,this.store.getDataIgnoringPagination())}if(this.props.options.expanding!==t.expanding&&this.setState(function(){return{expanding:t.expanding||[]}}),n&&n.selected){var m=n.selected.slice();this.store.setSelectedRowKey(m),this.setState(function(){return{selectedRowKeys:m,reset:!1}})}}}},{key:"componentDidMount",value:function(){this._adjustTable(),window.addEventListener("resize",this._adjustTable),this.body.container.addEventListener("scroll",this._scrollHeader),this.props.footer&&this.body.container.addEventListener("scroll",this._scrollFooter),this.props.scrollTop&&this._scrollTop()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._adjustTable),this.body&&this.body.container&&(this.body.container.removeEventListener("scroll",this._scrollHeader),this.props.footer&&this.body.container.removeEventListener("scroll",this._scrollFooter)),this.filter&&this.filter.removeAllListeners("onFilterChange")}},{key:"componentDidUpdate",value:function(){this._adjustTable(),this.props.options.afterTableComplete&&this.props.options.afterTableComplete()}},{key:"isRemoteDataSource",value:function(e){var t=e||this.props,n=t.remote;return!0===n||j.default.isFunction(n)}},{key:"allowRemote",value:function(e,t){var n=t||this.props,r=n.remote;if("function"===typeof r){return r(_.default.REMOTE)[e]}return r}},{key:"render",value:function(){var e=this,t={height:this.props.height,maxHeight:this.props.maxHeight},n=this.getColumnsDescription(this.props),r=this.store.getSortInfo(),o=this.renderPagination(),i=this.renderToolBar(),a=this.renderTableFilter(n),s=this.isSelectAll(),u=this.props.expandColumnOptions;"undefined"===typeof u.expandColumnBeforeSelectColumn&&(u.expandColumnBeforeSelectColumn=!0);var c=j.default.renderColGroup(n,this.props.selectRow,u,this.props.version),f=this.renderTableFooter(this.props.footerData,this.state.data,n,c),h=this.props.options.sortIndicator;"undefined"===typeof this.props.options.sortIndicator&&(h=!0);var d=this.props.options.paginationPosition,y=void 0===d?_.default.PAGINATION_POS_BOTTOM:d,v=y!==_.default.PAGINATION_POS_BOTTOM,b=y!==_.default.PAGINATION_POS_TOP,x=l({},this.props.selectRow);this.props.cellEdit&&this.props.cellEdit.mode!==_.default.CELL_EDIT_NONE&&(x.clickToSelect=!1);var w=this.props.options.toolbarPosition,T=void 0===w?_.default.TOOLBAR_POS_TOP:w,O=T!==_.default.TOOLBAR_POS_BOTTOM,C=T!==_.default.TOOLBAR_POS_TOP,k=this.props.options.hideRowOnExpand,A=void 0!==k&&k;return p.default.createElement("div",{className:(0,m.default)("react-bs-table-container",this.props.className,this.props.containerClass),style:this.props.containerStyle},O?i:null,v?o:null,p.default.createElement("div",{ref:function(t){return e.table=t},className:(0,m.default)("react-bs-table",{"react-bs-table-bordered":this.props.bordered},this.props.tableContainerClass),style:l({},t,this.props.tableStyle),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},p.default.createElement(E.default,{ref:function(t){return e.header=t},version:this.props.version,colGroups:c,headerContainerClass:this.props.headerContainerClass,tableHeaderClass:this.props.tableHeaderClass,style:this.props.headerStyle,rowSelectType:this.props.selectRow.mode,customComponent:this.props.selectRow.customComponent,hideSelectColumn:this.props.selectRow.hideSelectColumn,sortList:r,sortIndicator:h,onSort:this.handleSort,onSelectAllRow:this.handleSelectAllRow,bordered:this.props.bordered,condensed:this.props.condensed,isFiltered:!!this.filter,isSelectAll:s,reset:this.state.reset,expandColumnVisible:u.expandColumnVisible,expandColumnComponent:u.expandColumnComponent,expandedColumnHeaderComponent:u.expandedColumnHeaderComponent,noAnyExpand:0===this.state.expanding.length,expandAll:this.props.options.expandAll,toggleExpandAllChilds:this.toggleExpandAllChilds,exp
1andColumnBeforeSelectColumn:u.expandColumnBeforeSelectColumn},this.props.children),p.default.createElement(S.default,{ref:function(t){return e.body=t},bodyContainerClass:this.props.bodyContainerClass,tableBodyClass:this.props.tableBodyClass,style:l({},t,this.props.bodyStyle),data:this.state.data,version:this.props.version,expandComponent:this.props.expandComponent,expandableRow:this.props.expandableRow,expandRowBgColor:this.props.options.expandRowBgColor,expandBy:this.props.options.expandBy||_.default.EXPAND_BY_ROW,expandBodyClass:this.props.options.expandBodyClass,expandParentClass:this.props.options.expandParentClass,columns:n,trClassName:this.props.trClassName,trStyle:this.props.trStyle,striped:this.props.striped,bordered:this.props.bordered,hover:this.props.hover,keyField:this.store.getKeyField(),condensed:this.props.condensed,selectRow:x,expandColumnOptions:this.props.expandColumnOptions,cellEdit:this.props.cellEdit,selectedRowKeys:this.state.selectedRowKeys,onRowClick:this.handleRowClick,onRowDoubleClick:this.handleRowDoubleClick,onRowMouseOver:this.handleRowMouseOver,onRowMouseOut:this.handleRowMouseOut,onSelectRow:this.handleSelectRow,noDataText:this.props.options.noDataText,withoutNoDataText:this.props.options.withoutNoDataText,expanding:this.state.expanding,onExpand:this.handleExpandRow,onlyOneExpanding:this.props.options.onlyOneExpanding,beforeShowError:this.props.options.beforeShowError,keyBoardNav:this.props.keyBoardNav,onNavigateCell:this.handleNavigateCell,x:this.state.x,y:this.state.y,withoutTabIndex:this.props.withoutTabIndex,hideRowOnExpand:A,onEditCell:this.handleEditCell}),f),a,b?o:null,C?i:null,this.props.renderAlert?p.default.createElement(g.default,{stack:{limit:3}}):null)}},{key:"isSelectAll",value:function(){if(this.store.isEmpty())return!1;var e=this.props.selectRow,t=e.unselectable,n=e.onlyUnselectVisible,r=this.store.getKeyField(),o=n?this.store.get().map(function(e){return e[r]}):this.store.getAllRowkey(),i=this.store.getSelectedRowKeys();if(n&&(i=i.filter(function(e){return e!==o})),0===i.length)return!1;var a=0,s=0,l=0;return i.forEach(function(e){-1!==o.indexOf(e)?a++:s++,t&&-1!==t.indexOf(e)&&l++}),s!==i.length&&(a===o.length||!(t&&a<=l&&l===t.length)&&"indeterminate")}},{key:"cleanSelected",value:function(){this.store.setSelectedRowKey([]),this.setState(function(){return{selectedRowKeys:[],reset:!1}})}},{key:"cleanSort",value:function(){this.store.cleanSortInfo(),this.setState(function(){return{reset:!1}})}},{key:"__handleSort__REACT_HOT_LOADER__",value:function(e,t){var n=this.props,r=n.autoCollapse.sort,o=n.options;if(o.onSortChange&&o.onSortChange(t,e,this.props),this.store.setSortInfo(e,t),this.allowRemote(_.default.REMOTE_SORT))return void(r&&this.setState(function(){return{expanding:[]}}));var i=this.store.sort().get();this.setState(function(){var e={data:i,reset:!1};return r&&(e.expanding=[]),e})}},{key:"__handleExpandRow__REACT_HOT_LOADER__",value:function(e,t,n,r){var o=this,i=this.props.options.onExpand;i&&i(t,!n,r),this.setState(function(){return{expanding:e,reset:!1}},function(){o._adjustHeaderWidth()})}},{key:"toggleExpandAllChilds",value:function(){var e=this;this.state.expanding.length>0?this.setState(function(){return{expanding:[],reset:!1}}):this.setState(function(){return{expanding:e.store.getAllRowkey(),reset:!1}})}},{key:"__handlePaginationData__REACT_HOT_LOADER__",value:function(e,t){var n=this.props.options,r=n.onPageChange,o=n.pageStartIndex,i=this.store.isEmpty();r&&r(e,t);var a={sizePerPage:t,reset:!1};if(i||(a.currPage=e),this.setState(function(){return a}),!this.allowRemote(_.default.REMOTE_PAGE)&&!i){var s=this.store.page(j.default.getNormalizedPage(o,e),t).get();this.setState(function(){return{data:s,reset:!1}})}}},{key:"__handleMouseLeave__REACT_HOT_LOADER__",value:function(){this.props.options.onMouseLeave&&this.props.options.onMouseLeave()}},{key:"__handleMouseEnter__REACT_HOT_LOADER__",value:function(){this.props.options.onMouseEnter&&this.props.options.onMouseEnter()}},{key:"__handleRowMouseOut__REACT_HOT_LOADER__",value:function(e,t){this.props.options.onRowMouseOut&&this.props.options.onRowMouseOut(e,t)}},{key:"__handleRowMouseOver__REACT_HOT_LOADER__",value:function(e,t){this.props.options.onRowMouseOver&&this.props.options.onRowMouseOver(e,t)}},{key:"__handleNavigateCell__REACT_HOT_LOADER__",value:function(e){var t=e.x,n=e.y,r=e.lastEditCell,o=this.props.pagination,i=this.state,a=i.x,s=i.y,l=i.currPage;a+=t,s+=n;var u=this.store.getColInfos(),c=this.state.data.length,p=Object.keys(u).filter(function(e){return!u[e].hidden}).length;if(s>=c){l++;var f=o?this.pagination.getLastPage():-1;if(!(l<=f))return;this.handlePaginationData(l,this.state.sizePerPage),s=0}
1else if(s<0){if(!(--l>0))return;this.handlePaginationData(l,this.state.sizePerPage),s=c-1}else if(a>=p){if(s+1===c){l++;var h=o?this.pagination.getLastPage():-1;if(!(l<=h))return;this.handlePaginationData(l,this.state.sizePerPage),s=0}else s++;a=r?1:0}else if(a<0)if(a=p-1,0===s){if(!(--l>0))return;this.handlePaginationData(l,this.state.sizePerPage),s=this.state.sizePerPage-1}else s--;this.setState(function(){return{x:a,y:s,currPage:l,reset:!1}})}},{key:"__handleRowClick__REACT_HOT_LOADER__",value:function(e,t,n,r){var o=this.props,i=o.options,a=o.keyBoardNav;if(i.onRowClick&&i.onRowClick(e,n,t,r),a){var l="object"===("undefined"===typeof a?"undefined":s(a))?a:{},u=l.clickToNav;u=!1!==u||u,u&&this.setState(function(){return{x:n,y:t,reset:!1}})}}},{key:"__handleRowDoubleClick__REACT_HOT_LOADER__",value:function(e,t){this.props.options.onRowDoubleClick&&this.props.options.onRowDoubleClick(e,t)}},{key:"__handleSelectAllRow__REACT_HOT_LOADER__",value:function(e){var t=e.currentTarget.checked,n=this.store.getKeyField(),r=this.props.selectRow,o=r.onSelectAll,i=r.unselectable,a=r.selected,s=r.onlyUnselectVisible,l=s?this.state.selectedRowKeys:[],u=!0,c=this.store.get();if(t||s||(c=this.store.getRowByKey(this.state.selectedRowKeys)),i&&i.length>0&&(c=t?c.filter(function(e){return-1===i.indexOf(e[n])||a&&-1!==a.indexOf(e[n])}):c.filter(function(e){return-1===i.indexOf(e[n])})),o&&(u=this.props.selectRow.onSelectAll(t,c)),"undefined"==typeof u||!1!==u){if(t)if(Array.isArray(u))l=u;else{var p=c.map(function(e){return e[n]});l=s?l.concat(p):p}else if(i&&a)l=a.filter(function(e){return i.indexOf(e)>-1});else if(s){var f=c.map(function(e){return e[n]});l=l.filter(function(e){return-1===f.indexOf(e)})}this.store.setSelectedRowKey(l),this.setState(function(){return{selectedRowKeys:l,reset:!1}})}}},{key:"__handleShowOnlySelected__REACT_HOT_LOADER__",value:function(){this.store.ignoreNonSelected();var e=this.props.options.pageStartIndex,t=void 0;t=this.props.pagination?this.store.page(j.default.getNormalizedPage(e),this.state.sizePerPage).get():this.store.get(),this.setState(function(){return{data:t,reset:!1,currPage:j.default.getFirstPage(e)}})}},{key:"__handleSelectRow__REACT_HOT_LOADER__",value:function(e,t,n,r){var o=!0,i=this.store.getSelectedRowKeys(),a=e[this.store.getKeyField()],s=this.props.selectRow;s.onSelect&&(o=s.onSelect(e,t,n,r)),"undefined"!==typeof o&&!1===o||(s.mode===_.default.ROW_SELECT_SINGLE?i=t?[a]:[]:t?i.push(a):i=i.filter(function(e){return a!==e}),this.store.setSelectedRowKey(i),this.setState(function(){return{selectedRowKeys:i,reset:!1}}))}},{key:"__handleEditCell__REACT_HOT_LOADER__",value:function(e,t,n){var r=this,o=this.props.cellEdit.beforeSaveCell,i=this.getColumnsDescription(this.props),a=i[n].name,s=function(){r.setState(function(){return{data:r.store.get(),reset:!1}})};if(o){var l=function(o){r.body.cancelEditCell(),o||void 0===o?r.editCell(e,t,n):s()},u={rowIndex:t,colIndex:n},c=o(this.state.data[t],a,e,l,u);if(!1===c&&"undefined"!==typeof c)return s();if(c===_.default.AWAIT_BEFORE_CELL_EDIT)return c}this.editCell(e,t,n)}},{key:"editCell",value:function(e,t,n){var r=this.props.options.onCellEdit,o=this.props.cellEdit.afterSaveCell,i=this.getColumnsDescription(this.props),a=i[n].name,s={rowIndex:t,colIndex:n};if(r&&(e=r(this.state.data[t],a,e)),this.allowRemote(_.default.REMOTE_CELL_EDIT))return void(o&&o(this.state.data[t],a,e,s));var l=this.store.edit(e,t,a).get();this.setState(function(){return{data:l,reset:!1}}),o&&o(this.state.data[t],a,e,s)}},{key:"handleAddRowAtBegin",value:function(e){try{this.store.addAtBegin(e)}catch(e){return e}this._handleAfterAddingRow(e,!0)}},{key:"__handleAddRow__REACT_HOT_LOADER__",value:function(e){var t=this,n=!1,r=this.props.options.onAddRow,o=function(e){if(!n)return e;t.toolbar.afterHandleSaveBtnClick(e)},i=function(n){if("undefined"!==typeof n&&""!==n)return o(n);if(t.allowRemote(_.default.REMOTE_INSERT_ROW))return t.props.options.afterInsertRow&&t.props.options.afterInsertRow(e),o();try{t.store.add(e)}catch(e){return o(e.message)}return t._handleAfterAddingRow(e,!1),o()};if(r){var a=this.store.getColInfos(),s=r(e,a,i);
1return""!==s&&!1!==s?s:"undefined"===typeof s?i():!(n=!0)}return i()}},{key:"getSizePerPage",value:function(){return this.state.sizePerPage}},{key:"getCurrentPage",value:function(){return this.state.currPage}},{key:"getTableDataIgnorePaging",value:function(){return this.store.getCurrentDisplayData()}},{key:"__getPageByRowKey__REACT_HOT_LOADER__",value:function(e){var t=this.state.sizePerPage,n=this.store.getCurrentDisplayData(),r=this.store.getKeyField(),o=n.findIndex(function(t){return t[r]===e});return o>-1?parseInt(o/t,10)+1:o}},{key:"__handleDropRow__REACT_HOT_LOADER__",value:function(e){var t=this,n=e||this.store.getSelectedRowKeys();n&&n.length>0&&(this.props.options.handleConfirmDeleteRow?this.props.options.handleConfirmDeleteRow(function(){t.deleteRow(n)},n):confirm("Are you sure you want to delete?")&&this.deleteRow(n))}},{key:"deleteRow",value:function(e){var t=this,n=this.store.getRowByKey(e),r=this.props.options,o=r.onDeleteRow,i=r.afterDeleteRow,a=r.pageStartIndex;if(o&&o(e,n),this.store.setSelectedRowKey([]),this.allowRemote(_.default.REMOTE_DROP_ROW))return void(i&&i(e,n));this.store.remove(e);var s=void 0;if(this.props.pagination){var l=this.state.sizePerPage,u=Math.ceil(this.store.getDataNum()/l),c=this.state.currPage;c>u&&(c=u),s=this.store.page(j.default.getNormalizedPage(a,c),l).get(),this.setState(function(){return{data:s,selectedRowKeys:t.store.getSelectedRowKeys(),currPage:c,reset:!1}})}else s=this.store.get(),this.setState(function(){return{data:s,reset:!1,selectedRowKeys:t.store.getSelectedRowKeys()}});i&&i(e,n)}},{key:"__handleFilterData__REACT_HOT_LOADER__",value:function(e){var t=this.props,n=t.autoCollapse.filter,r=t.options,o=r.onFilterChange,i=r.pageStartIndex;if(o){o(e,this.store.getColInfos())}if(this.setState(function(){var e={currPage:j.default.getFirstPage(i),reset:!1};return n&&(e.expanding=[]),e}),this.allowRemote(_.default.REMOTE_FILTER))return void(this.props.options.afterColumnFilter&&this.props.options.afterColumnFilter(e,this.store.getDataIgnoringPagination()));this.store.filter(e),this.store.getSortInfo().length>0&&this.store.sort();var a=void 0;if(this.props.pagination){var s=this.state.sizePerPage;a=this.store.page(j.default.getNormalizedPage(i),s).get()}else a=this.store.get();this.props.options.afterColumnFilter&&this.props.options.afterColumnFilter(e,this.store.getDataIgnoringPagination()),this.setState(function(){return{data:a,reset:!1}})}},{key:"__handleExportCSV__REACT_HOT_LOADER__",value:function(){var e={},t=this.props.csvFileName,n=this.props.options,r=n.onExportToCSV,o=n.exportCSVSeparator,i=n.noAutoBOM,a=n.excludeCSVHeader;e=r?r():this.store.getDataIgnoringPagination();var s=o||_.default.DEFAULT_CSV_SEPARATOR,l=[];this.props.children.filter(function(e){return null!=e}).map(function(e){(!0===e.props.export||"undefined"===typeof e.props.export&&!1===e.props.hidden)&&l.push({field:e.props.dataField,type:e.props.csvFieldType,format:e.props.csvFormat,extraData:e.props.csvFormatExtraData,header:e.props.csvHeader||e.props.dataField,row:Number(e.props.row)||0,rowSpan:Number(e.props.rowSpan)||1,colSpan:Number(e.props.colSpan)||1})}),j.default.isFunction(t)&&(t=t()),(0,F.default)(e,l,t,s,i,a)}},{key:"__handleSearch__REACT_HOT_LOADER__",value:function(e){this.toolbar&&this.toolbar.setSearchInput(e);var t=this.props.autoCollapse.search,n=this.props.options,r=n.onSearchChange,o=n.pageStartIndex;if(r){r(e,this.store.getColInfos(),this.props.multiColumnSearch)}if(this.setState(function(){var e={currPage:j.default.getFirstPage(o),reset:!1};return t&&(e.expanding=[]),e}),this.allowRemote(_.default.REMOTE_SEARCH))return void(this.props.options.afterSearch&&this.props.options.afterSearch(e,this.store.getDataIgnoringPagination()));this.store.search(e),this.store.getSortInfo().length>0&&this.store.sort();var i=void 0;if(this.props.pagination){var a=this.state.sizePerPage;i=this.store.page(j.default.getNormalizedPage(o),a).get()}else i=this.store.get();this.props.options.afterSearch&&this.props.options.afterSearch(e,this.store.getDataIgnoringPagination()),this.setState(function(){return{data:i,reset:!1}})}},{key:"renderPagination",value:function(){var e=this;if(this.props.pagination){var t=void 0;t=this.allowRemote(_.default.REMOTE_PAGE)?this.props.fetchInfo.dataTotalSize:this.store.getDataNum();var n=this.props.options,r=void 0===n.withFirstAndLast||n.withFirstAndLast;return Math.ceil(t/this.state.sizePerPage)<=1&&this.props.ignoreSinglePage?null:p.default.createElement("div",{className:"react-bs-table-pagination"},p.default.createElement(A.default,{ref:function(t){return e.pagination=t},version:this.props.version,withFirstAndLast:r,alwaysShowAllBtns:n.alwaysShowAllBtns,currPage:this.state.currPage,changePage:this.handlePaginationData,sizePerPage:this.state.sizePerPage,sizePerPageList:n.sizePerPageList||_.default.SIZE_P
1ER_PAGE_LIST,pageStartIndex:n.pageStartIndex,paginationShowsTotal:n.paginationShowsTotal,paginationSize:n.paginationSize||_.default.PAGINATION_SIZE,dataSize:t,onSizePerPageList:n.onSizePerPageList,prePage:n.prePage||_.default.PRE_PAGE,nextPage:n.nextPage||_.default.NEXT_PAGE,firstPage:n.firstPage||_.default.FIRST_PAGE,lastPage:n.lastPage||_.default.LAST_PAGE,prePageTitle:n.prePageTitle||_.default.PRE_PAGE_TITLE,nextPageTitle:n.nextPageTitle||_.default.NEXT_PAGE_TITLE,firstPageTitle:n.firstPageTitle||_.default.FIRST_PAGE_TITLE,lastPageTitle:n.lastPageTitle||_.default.LAST_PAGE_TITLE,hideSizePerPage:n.hideSizePerPage,sizePerPageDropDown:n.sizePerPageDropDown,hidePageListOnlyOnePage:n.hidePageListOnlyOnePage,paginationPanel:n.paginationPanel,keepSizePerPageState:n.keepSizePerPageState,open:!1}))}return null}},{key:"renderToolBar",value:function(){var e=this,t=this.props,n=t.exportCSV,r=t.selectRow,o=t.insertRow,i=t.deleteRow,a=t.search,s=t.children,l=t.keyField,u=r&&r.showOnlySelected,c="undefined"===typeof this.props.options.printToolBar||this.props.options.printToolBar;if(u||o||i||a||n||this.props.options.searchPanel||this.props.options.btnGroup||this.props.options.toolBar){var f=void 0;return f=Array.isArray(s)?s.filter(function(e){return null!=e}).map(function(e,t){if(e){var n=e.props;return{isKey:n.isKey||l===n.dataField,name:n.headerText||n.children,field:n.dataField,hiddenOnInsert:n.hiddenOnInsert,keyValidator:n.keyValidator,customInsertEditor:n.customInsertEditor,autoValue:n.autoValue||!1,editable:n.editable&&j.default.isFunction("function"===n.editable)?n.editable():n.editable,format:!!n.dataFormat&&function(e){return n.dataFormat(e,null,n.formatExtraData,t).replace(/<.*?>/g,"")}}}}):[{name:s.props.headerText||s.props.children,field:s.props.dataField,editable:s.props.editable,customInsertEditor:s.props.customInsertEditor,hiddenOnInsert:s.props.hiddenOnInsert,keyValidator:s.props.keyValidator}],p.default.createElement("div",{className:"react-bs-table-tool-bar "+(c?"":"hidden-print")},p.default.createElement(R.default,{ref:function(t){return e.toolbar=t},version:this.props.version,defaultSearch:this.props.options.defaultSearch,clearSearch:this.props.options.clearSearch,searchPosition:this.props.options.searchPosition,searchDelayTime:this.props.options.searchDelayTime,enableInsert:o,enableDelete:i,enableSearch:a,enableExportCSV:n,enableShowOnlySelected:u,columns:f,searchPlaceholder:this.props.searchPlaceholder,exportCSVText:this.props.options.exportCSVText,insertText:this.props.options.insertText,deleteText:this.props.options.deleteText,saveText:this.props.options.saveText,closeText:this.props.options.closeText,ignoreEditable:this.props.options.ignoreEditable,onAddRow:this.handleAddRow,onDropRow:this.handleDropRow,onSearch:this.handleSearch,onExportCSV:this.handleExportCSV,onShowOnlySelected:this.handleShowOnlySelected,insertModalHeader:this.props.options.insertModalHeader,insertModalFooter:this.props.options.insertModalFooter,insertModalBody:this.props.options.insertModalBody,insertModal:this.props.options.insertModal,insertBtn:this.props.options.insertBtn,deleteBtn:this.props.options.deleteBtn,showSelectedOnlyBtn:this.props.options.showSelectedOnlyBtn,exportCSVBtn:this.props.options.exportCSVBtn,clearSearchBtn:this.props.options.clearSearchBtn,searchField:this.props.options.searchField,searchPanel:this.props.options.searchPanel,btnGroup:this.props.options.btnGroup,toolBar:this.props.options.toolBar,reset:this.state.reset,isValidKey:this.store.isValidKey,insertFailIndicator:this.props.options.insertFailIndicator||_.default.INSERT_FAIL_INDICATOR}))}return null}},{key:"renderTableFilter",value:function(e){return this.props.columnFilter?p.default.createElement(I.default,{columns:e,rowSelectType:this.props.selectRow.mode,onFilter:this.handleFilterData}):null}},{key:"renderTableFooter",value:function(e,t,n,r){var o=this;if(this.props.footer){var i=!0,a=this.props.selectRow.mode;return j.default.isSelectRowDefined(a)&&(i=this.props.selectRow.hideSelectColumn),p.default.createElement(O.default,{ref:function(e){return o.footer=e},columns:n,colGroups:r,footerFormatterReturnData:t,tableFooterClass:this.props.tableFooterClass,style:this.props.headerStyle,hideSelectColumn:i,expandColumnVisible:this.props.expandColumnOptions.expandColumnVisible,bordered:this.props.bordered,condensed:this.props.condensed,isFiltered:!!this.filter,showStickyColumn:this.props.showStickyColumn},e)}return null}},{key:"___scrollTop__REACT_HOT_LOADER__",value:function(){var e=this.props.scrollTop;e===_.default.SCROLL_TOP?this.body.container.scrollTop=0:e===_.default.SCROLL_BOTTOM?this.body.container.scrollTop=this.body.container.scrollHeight:"number"!==typeof e||isNaN(e)||(this.body.container.scrollTop=e)}},{key:"___scrollHeader__REACT_HOT_LOADER__",value:function(e){this.header.container.scrollLeft=e.currentTarget.scrollLeft}},{key:"___scrollFooter__REACT_HOT_LOADER__",value:function(e){this.props.footer&&(this.footer.container.scrollLeft=e.currentTarget.scrollLeft)}},{key:"_adjustTable",value:function(){this._adjustHeight(),this.props.printable||this._adjustHeaderWidth()}},{key:"_adjustHeaderWidth",value:function(){var e=this.header.getHeaderColGrouo
1p(),t=this.body.tbody,n=this.body.getHeaderColGrouop(),r=t.childNodes[0],o=t.parentNode.getBoundingClientRect().height>t.parentNode.parentNode.getBoundingClientRect().height,i=o?j.default.getScrollBarWidth():0;if(r&&this.store.getDataNum()){if(o||this.isVerticalScroll!==o)for(var a=r.childNodes,s=0;s<a.length;s++){var l=a[s],u=window.getComputedStyle(l),c=parseFloat(u.width.replace("px",""));if(this.isIE){var p=parseFloat(u.paddingLeft.replace("px","")),f=parseFloat(u.paddingRight.replace("px","")),h=parseFloat(u.borderRightWidth.replace("px","")),d=parseFloat(u.borderLeftWidth.replace("px",""));c=c+p+f+h+d}var m=a.length-1===s?i:0;c<=0&&(c=120,l.width=c+m+"px");var y=c+m+"px";e[s].style.width=y,e[s].style.minWidth=y,a.length-1===s?(n[s].style.width=c+"px",n[s].style.minWidth=c+"px"):(n[s].style.width=y,n[s].style.minWidth=y)}}else for(var g in n)if(n.hasOwnProperty(g)){var v=n[g];v.style&&(v.style.width&&(e[g].style.width=v.style.width),v.style.minWidth&&(e[g].style.minWidth=v.style.minWidth))}this.isVerticalScroll=o}},{key:"_adjustHeight",value:function(){var e=this.props.height,t=this.props.maxHeight;("number"===typeof e&&!isNaN(e)||-1===e.indexOf("%"))&&(this.body.container.style.height=parseFloat(e,10)-this.header.container.offsetHeight+"px"),t&&(t="number"===typeof t?t:parseInt(t.replace("px",""),10),this.body.container.style.maxHeight=t-this.header.container.offsetHeight+"px")}},{key:"_handleAfterAddingRow",value:function(e,t){var n=void 0;if(this.props.pagination){var r=this.state.sizePerPage;if(t){var o=this.props.options.pageStartIndex;n=this.store.page(j.default.getNormalizedPage(o),r).get(),this.setState(function(){return{data:n,currPage:j.default.getFirstPage(o),reset:!1}})}else{var i=Math.ceil(this.store.getDataNum()/r);n=this.store.page(i,r).get(),this.setState(function(){return{data:n,currPage:i,reset:!1}})}}else n=this.store.get(),this.setState(function(){return{data:n,reset:!1}});this.props.options.afterInsertRow&&this.props.options.afterInsertRow(e)}}]),t}(c.Component);B.propTypes={keyField:h.default.string,height:h.default.oneOfType([h.default.string,h.default.number]),maxHeight:h.default.oneOfType([h.default.string,h.default.number]),data:h.default.oneOfType([h.default.array,h.default.object]),version:h.default.string,remote:h.default.oneOfType([h.default.bool,h.default.func]),replace:h.default.oneOfType([h.default.bool,h.default.func]),scrollTop:h.default.oneOfType([h.default.string,h.default.number]),striped:h.default.bool,bordered:h.default.bool,hover:h.default.bool,condensed:h.default.bool,pagination:h.default.bool,printable:h.default.bool,withoutTabIndex:h.default.bool,keyBoardNav:h.default.oneOfType([h.default.bool,h.default.object]),searchPlaceholder:h.default.string,selectRow:h.default.shape({mode:h.default.oneOf([_.default.ROW_SELECT_NONE,_.default.ROW_SELECT_SINGLE,_.default.ROW_SELECT_MULTI]),customComponent:h.default.func,bgColor:h.default.oneOfType([h.default.string,h.default.func]),selected:h.default.array,onSelect:h.default.func,onSelectAll:h.default.func,clickToSelect:h.default.bool,hideSelectColumn:h.default.bool,clickToSelectAndEditCell:h.default.bool,clickToExpand:h.default.bool,showOnlySelected:h.default.bool,unselectable:h.default.array,columnWidth:h.default.oneOfType([h.default.number,h.default.string]),onlyUnselectVisible:h.default.bool}),cellEdit:h.default.shape({mode:h.default.string,blurToSave:h.default.bool,blurToEscape:h.default.bool,beforeSaveCell:h.default.func,afterSaveCell:h.default.func,nonEditableRows:h.default.func}),insertRow:h.default.bool,deleteRow:h.default.bool,search:h.default.bool,multiColumnSearch:h.default.bool,strictSearch:h.default.bool,columnFilter:h.default.bool,trClassName:h.default.any,trStyle:h.default.any,tableStyle:h.default.object,containerStyle:h.default.object,headerStyle:h.default.object,bodyStyle:h.default.object,containerClass:h.default.string,tableContainerClass:h.default.string,headerContainerClass:h.default.string,bodyContainerClass:h.default.string,tableHeaderClass:h.default.string,tableBodyClass:h.default.string,tableFooterClass:h.default.string,options:h.default.shape({clearSearch:h.default.bool,sortName:h.default.oneOfType([h.default.string,h.default.array]),sortOrder:h.default.oneOfType([h.default.string,h.default.array]),defaultSortName:h.default.oneOfType([h.default.string,h.default.array]),defaultSortOrder:h.default.oneOfType([h.default.string,h.default.array]),sortIndicator:h.default.bool,afterTableComplete:h.default.func,afterDeleteRow:h.default.func,afterInsertRow:h.default.func,afterSearch:h.default.func,afterColumnFilter:h.default.func,onRowClick:h.default.func,onRowDoubleClick:h.default.func,page:h.default.number,pageStartIndex:h.default.number,paginationShowsTotal:h.default.oneOfType([h.default.bool,h.default.func]),sizePerPageList:h.default.array,sizePerPage:h.default.number,paginationSize:h.default.number,paginationPosition:h.default.oneOf([_.default.PAGINATION_POS_TOP,_.default.PAGINATION_POS_BOTTOM,_.default.PAGINATION_POS_BOTH]),toolbarPosition:h.default.oneOf([_.default.TOOLBAR_POS_TOP,_.default.TOOLBAR_POS_BOTTOM,_.default.TOOLBAR_POS_BOTH]),hideSizePerPage:h.default.bool,hidePageListOnlyOnePage:h.default.bool,alwaysShowAllBtns:h.default.bool,withFirstAndLast:h.default.bool,keepSizePerPageState:h.default.bool,onSortChange:h.default.func,onPageChange:h.default.func,onSizePerPageList:h.default.func,onFilterChange:h.default.func,onSearchChange:h.default.func,onAddRow:h.default.func,onExportToCSV:h.default.func,onCellEdit:h.default.func,noDataText:h.default.oneOfType([h.default.string,h.default.object]),withoutNoDataText:h.default.bool,handleConfirmDeleteRow:h.default.func,prePage:h.default.any,nextPage:h.default.any,firstPage:h.default.any,lastPage:h.default.any,prePageTitle:h.default.string,nextPageTitle:h.default.string,firstPageTitle:h.default.string,lastPageTitle:h.default.string,searchDelayTime:h.default.number,excludeCSVHeader:h.default.bool,exportCSVText:h.default.string,exportCSVSeparator:h.default.string,insertText:h.default.string,deleteText:h.default.string,saveText:h.default.string,closeText:h.default.string,ignoreEditable:h.default.bool,defaultSearch:h.default.string,insertModalHeader:h.default.func,insertModalBody:h.default.func,insertModalFooter:h.default.func,insertModal:h.default.func,insertBtn:h.default.func,deleteBtn:h.default.func,showSelectedOnlyBtn:h.default.func,exportCSVBtn:h.default.func,clearSearchBtn:h.default.func,searchField:h.default.func,searchPanel:h.default.func,btnGroup:h.default.func,toolBar:h.default.func,sizePerPageDropDown:h.default.func,paginationPanel:h.default.func,searchPosition:h.default.string,expandRowBgColor:h.default.string,expandBy:h.default.string,expanding:h.default.array,onExpand:h.default.func,onlyOneExpanding:h.default.bool,expandBodyClass:h.default.oneOfType([h.default.string,h.default.func]),expandParentClass:h.default.oneOfType([h.default.string,h.default.func]),beforeShowError:h.default.func,printToolBar:h.default.bool,insertFailIndicator:h.default.string,noAutoBOM:h.default.bool,expandAll:h.default.bool,hideRowOnExpand:h.default.bool}),fetchInfo:h.default.shape({dataTotalSize:h.default.number}),renderAlert:h.default.bool,exportCSV:h.default.bool,csvFileName:h.default.oneOfType([h.default.string,h.default.func]),ignoreSinglePage:h.default.bool,expandableRow:h.default.func,expandComponent:h.default.func,autoCollapse:h.default.shape({sort:h.default.bool,f
1ilter:h.default.bool,search:h.default.bool}),expandColumnOptions:h.default.shape({columnWidth:h.default.oneOfType([h.default.number,h.default.string]),expandColumnVisible:h.default.bool,expandColumnComponent:h.default.func,expandedColumnHeaderComponent:h.default.func,expandColumnBeforeSelectColumn:h.default.bool}),footer:h.default.bool},B.defaultProps={version:"3",replace:!1,scrollTop:void 0,expandComponent:void 0,expandableRow:void 0,expandColumnOptions:{expandColumnVisible:!1,expandColumnComponent:void 0,expandedColumnHeaderComponent:void 0,expandColumnBeforeSelectColumn:!0},height:"100%",maxHeight:void 0,striped:!1,bordered:!0,hover:!1,condensed:!1,pagination:!1,printable:!1,withoutTabIndex:!1,keyBoardNav:!1,searchPlaceholder:void 0,selectRow:{mode:_.default.ROW_SELECT_NONE,bgColor:_.default.ROW_SELECT_BG_COLOR,selected:[],onSelect:void 0,onSelectAll:void 0,clickToSelect:!1,hideSelectColumn:!1,clickToSelectAndEditCell:!1,clickToExpand:!1,showOnlySelected:!1,unselectable:[],customComponent:void 0,onlyUnselectVisible:!1},cellEdit:{mode:_.default.CELL_EDIT_NONE,blurToSave:!1,blurToEscape:!1,beforeSaveCell:void 0,afterSaveCell:void 0,nonEditableRows:void 0},insertRow:!1,deleteRow:!1,search:!1,multiColumnSearch:!1,strictSearch:void 0,multiColumnSort:1,columnFilter:!1,trClassName:"",trStyle:void 0,tableStyle:void 0,containerStyle:void 0,headerStyle:void 0,bodyStyle:void 0,containerClass:null,tableContainerClass:null,headerContainerClass:null,bodyContainerClass:null,tableHeaderClass:null,tableBodyClass:null,tableFooterClass:null,options:{clearSearch:!1,sortName:void 0,sortOrder:void 0,defaultSortName:void 0,defaultSortOrder:void 0,sortIndicator:!0,afterTableComplete:void 0,afterDeleteRow:void 0,afterInsertRow:void 0,afterSearch:void 0,afterColumnFilter:void 0,onRowClick:void 0,onRowDoubleClick:void 0,onMouseLeave:void 0,onMouseEnter:void 0,onRowMouseOut:void 0,onRowMouseOver:void 0,page:void 0,paginationShowsTotal:!1,sizePerPageList:_.default.SIZE_PER_PAGE_LIST,sizePerPage:void 0,paginationSize:_.default.PAGINATION_SIZE,paginationPosition:_.default.PAGINATION_POS_BOTTOM,toolbarPosition:_.default.TOOLBAR_POS_TOP,hideSizePerPage:!1,hidePageListOnlyOnePage:!1,alwaysShowAllBtns:!1,withFirstAndLast:!0,keepSizePerPageState:!1,onSizePerPageList:void 0,noDataText:void 0,withoutNoDataText:!1,handleConfirmDeleteRow:void 0,prePage:_.default.PRE_PAGE,nextPage:_.default.NEXT_PAGE,firstPage:_.default.FIRST_PAGE,lastPage:_.default.LAST_PAGE,prePageTitle:_.default.PRE_PAGE_TITLE,nextPageTitle:_.default.NEXT_PAGE_TITLE,firstPageTitle:_.default.FIRST_PAGE_TITLE,lastPageTitle:_.default.LAST_PAGE_TITLE,pageStartIndex:1,searchDelayTime:void 0,excludeCSVHeader:!1,exportCSVText:_.default.EXPORT_CSV_TEXT,exportCSVSeparator:_.default.DEFAULT_CSV_SEPARATOR,insertText:_.default.INSERT_BTN_TEXT,deleteText:_.default.DELETE_BTN_TEXT,saveText:_.default.SAVE_BTN_TEXT,closeText:_.default.CLOSE_BTN_TEXT,ignoreEditable:!1,defaultSearch:"",insertModalHeader:void 0,insertModalBody:void 0,insertModalFooter:void 0,insertModal:void 0,insertBtn:void 0,deleteBtn:void 0,showSelectedOnlyBtn:void 0,exportCSVBtn:void 0,clearSearchBtn:void 0,searchField:void 0,searchPanel:void 0,btnGroup:void 0,toolBar:void 0,sizePerPageDropDown:void 0,paginationPanel:void 0,searchPosition:"right",expandRowBgColor:void 0,expandBy:_.default.EXPAND_BY_ROW,expanding:[],onExpand:void 0,onlyOneExpanding:!1,expandBodyClass:null,expandParentClass:null,beforeShowError:void 0,printToolBar:!0,insertFailIndicator:_.default.INSERT_FAIL_INDICATOR,noAutoBOM:!0,expandAll:!1,hideRowOnExpand:!1},fetchInfo:{dataTotalSize:0},renderAlert:!0,exportCSV:!1,csvFileName:"spreadsheet.csv",ignoreSinglePage:!1,autoCollapse:{sort:_.default.AUTO_COLLAPSE_WHEN_SORT,filter:_.default.AUTO_COLLAPSE_WHEN_FILTER,search:_.default.AUTO_COLLAPSE_WHEN_SEARCH},footer:!1};var U=B;t.default=U;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(B,"BootstrapTable","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/BootstrapTable.js"),__REACT_HOT_LOADER__.register(U,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/BootstrapTable.js"))}()},function(e,t,n){var r,o,i;!function(a,s){o=[t,n(0),n(122),n(1),n(88),n(87),n(246)],r=s,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e,t,n,r,o,i,a){"use strict";
1function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(e,"__esModule",{value:!0});var p=s(t),f=s(n),h=s(r),d=s(o),m=s(i),y=s(a),g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_=function(e,t,n){var r=m.default.randomId();return d.default.dispatch({type:"INSERT",data:v({},t,{id:r,condition:n,message:e})}),r},b=function(e){function t(e){l(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={dataRight:[],dataLeft:[],dataTop:[],dataBottom:[]},n}return c(t,e),g(t,[{key:"componentDidMount",value:function(){var e=this,t=void 0,n=void 0,r=void 0,o=void 0,i=function(){requestAnimationFrame(function(){return requestAnimationFrame(function(){var t=void 0;if(n=(0,y.default)("right",e)||[],t=n.length,e.props.stack&&e.props.stack.limit&&t>e.props.stack.limit){var r=n[0].id;d.default.dispatch({type:"REMOVE",data:{id:r}}),n=(0,y.default)("right",e)||[]}e.setState({dataRight:n})})})};this.unsubStoreRight=d.default.subscribe(i);var a=function(){requestAnimationFrame(function(){return requestAnimationFrame(function(){var n=void 0;if(t=(0,y.default)("left",e)||[],n=t.length,e.props.stack&&e.props.stack.limit&&n>e.props.stack.limit){var r=t[0].id;d.default.dispatch({type:"REMOVE",data:{id:r}}),t=(0,y.default)("left",e)||[]}e.setState({dataLeft:t})})})};this.unsubStoreLeft=d.default.subscribe(a);var s=function(){requestAnimationFrame(function(){return requestAnimationFrame(function(){var t=void 0;if(r=(0,y.default)("full-top",e)||[],t=r.length,e.props.stack&&e.props.stack.limit&&t>e.props.stack.limit){var n=r[0].id;d.default.dispatch({type:"REMOVE",data:{id:n}}),r=(0,y.default)("full-top",e)||[]}e.setState({dataTop:r})})})};this.unsubStoreTop=d.default.subscribe(s);var l=function(){requestAnimationFrame(function(){return requestAnimationFrame(function(){var t=void 0;if(o=(0,y.default)("full-bottom",e)||[],t=o.length,e.props.stack&&e.props.stack.limit&&t>e.props.stack.limit){var n=o[0].id;d.default.dispatch({type:"REMOVE",data:{id:n}}),o=(0,y.default)("full-bottom",e)||[]}e.setState({dataBottom:o})})})};this.unsubStoreBottom=d.default.subscribe(l);var u={contentTemplate:this.props.contentTemplate,offset:this.props.offset,message:this.props.message,stack:this.props.stack,html:this.props.html,customFields:this.props.customFields,position:this.props.position||"top-right",preserveContext:this.props.preserveContext||!1};m.default.setGlobalConfig(u)}},{key:"componentWillUnmount",value:function(){this.unsubStoreTop(),this.unsubStoreBottom(),this.unsubStoreLeft(),this.unsubStoreRight()}},{key:"render",value:function(){var e=this,t=function(t,n){var r="alert-key-"+t.id+"-"+t.position,o=t.id,i=m.default.returnFirstDefined(t.condition,"info"),a=m.default.returnFirstDefined(t.message,e.props.message,""),s=m.default.returnFirstDefined(t.position,e.props.position,"top-right"),l=(m.default.returnFirstDefined(t.offset,e.props.offset,0),m.default.returnFirstDefined(t.effect,e.props.effect)),u=t.boxPosition,c=m.default.returnFirstDefined(t.beep,e.props.beep,!1),h=m.default.returnFirstDefined(t.timeout,e.props.timeout,5e3),d=m.default.returnFirstDefined(t.html,e.props.html),y=m.default.returnFirstDefined(t.onClose,e.props.onClose),g=m.default.returnFirstDefined(t.onShow,e.props.onShow),v=m.default.returnFirstDefined(t.customFields,e.props.customFields),_=e.props.contentTemplate;return p.default.createElement(f.default,{key:r,id:o,customFields:v,condition:i,message:a,position:s,effect:l,boxPosition:u,beep:c,timeout:h,html:d,onClose:y,onShow:g,contentTemplate:_})},n=this.state.dataRight.map(t),r=this.state.dataLeft.map(t),o=this.state.dataTop.map(t),i=this.state.dataBottom.map(t);return p.default.createElement("div",{className:"s-alert-wrapper"},n,r,o,i)}}],[{key:"info",value:function(e,t){return _(e,t,"info")}},{key:"error",value:function(e,t){return _(e,t,"error")}},{key:"warning",value:function(e,t){return _(e,t,"warning")}},{key:"success",value:function(e,t){return _(e,t,"success")}},{key:"close",value:function(e){d.default.dispatch({type:"REMOVE",data:{id:e}})}},{key:"closeAll",value:function(){d.default.dispatch({type:"REMOVEALL"})}}]),t}(p.default.Component);b.propTypes={message:h.default.string,position:h.default.string,offset:h.default.number,stack:h.default.oneOfType([h.default.bool,h.default.object]),effect:h.default.string,beep:h.default.oneOfType([h.default.string,h.default.object,h.default.bool]),timeout:h.default.oneOfType([h.default.oneOf(["none"]),h.default.number]),html:h.default.bool,preserveContext:h.default.bool,onClose:h.default.func,onShow:h.default.func,customFields:h.default.object,contentTemplate:h.default.func},e.default=b})},function(e,t,n){var r,o,i;!function(a,s){o=[t,n(0),n(1)],r=s,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(e,"__esModule",{value:!0});var s=r(t),l=r(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e){function t(e){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),u(t,[{key:"render",value:function(){return s.default.createElement("div",{className:this.props.classNames,id:this.props.id,style:this.props.styles},s.default.createElement("div",{className:"s-alert-box-inner"},this.props.message),s.default.createElement("span",{className:"s-alert-close",onClick:this.props.handleClose}))}}]),t}(s.default.Component);c.propTypes={id:l.default.string.isRequired,classNames:l.default.string.isRequired,condition:l.default.string.isRequired,styles:l.default.object.isRequired,message:l.default.oneOfType([l.default.string,l.default.object]).isRequired,handleClose:l.default.func.isRequired,customFields:l.default.object},e.default=c})},function(e,t,n){var r,o,i;!function(a,s){o=[t,n(0),n(13),n(122),n(88),n(87)],r=s,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e,t,n,r,o,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0});var s=a(t),l=a(n),u=a(r),c=a(o),p=a(i),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(e,t){var n=0,r=0,o=0,i={},a=void 0,h=void 0,d=void 0,m=void 0,y=void 0,g=function(e,t){var n=P.filter(function(t){return t.position===e||_.position===e});return n&&n[0].id===t},v=function(e,t,n,r,i,s){return o=b.spacing||parseInt(getComputedStyle(l.default.findDOMNode(s))[t]),g(C,n.id)&&w&&(e=0,e+=parseInt(w)),g(C,n.id)&&b.spacing?e=e:e+=parseInt(o),a=t+": "+e+"px;",e+=i},_=p.default.getGlobalConfig(),b=void 0,x=void 0,w=void 0,E=void 0,T=void 0,O=void 0,C=void 0,S=void 0,k={};"left"===e&&(k=function(e){return"top-left"===e.position||"bottom-left"===e.position||!e.position&&("top-left"===_.position||"bottom-left"===_.position)}),"right"===e&&(k=function(e){return"top-right"===e.position||"bottom-right"===e.position||!e.position&&("top-right"===_.position||"bottom-right"===_.position)}),"full-top"===e&&(k=function(e){return"top"===e.position||!e.position&&"top"===_.position}),"full-bottom"===e&&(k=function(e){return"bottom"===e.position||!e.position&&"bottom"===_.position});var A=c.default.getState(),P=A.slice().filter(k);return P.map(function(o){if(b=_.stack,x=_.contentTemplate,w=p.default.returnFirstDefined(o.offset,_.offset),E=p.default.returnFirstDefined(o.message,_.message),T=p.default.returnFirstDefined(o.html,_.html),O=p.default.returnFirstDefined(o.customFields,_.customFields),C=p.default.returnFirstDefined(o.position,_.position),S=p.default.returnFirstDefined(o.preserveContext,_.preserveContext),m=C&&/top/g.test(C),y=C&&/bottom/g.test(C),b){h=document.createElement("div"),h.classList.add("s-alert-box-height");var c=s.default.createElement(u.default,{key:p.default.randomId(),id:p.default.randomId(),condition:o.condition,message:E,position:C,effect:o.effect,boxPosition:o.boxPosition,beep:!1,timeout:"none",html:T,contentTemplate:x,customFields:O}),g=void 0;g=S?l.default.unstable_renderSubtreeIntoContainer(t,c,h):l.default.render(c,h),document.body.appendChild(h),d=parseInt(getComputedStyle(l.default.findDOMNode(g)).height),m&&(n=v(n,"top",o,0,d,g)),y&&(r=v(r,"bottom",o,0,d,g));var k=getComputedStyle(l.default.findDOMNode(g));"left"===e&&(a=a+"left: "+(b.spacing||parseInt(k.left))+"px;"),"right"===e&&(a=a+"right: "+(b.spacing||parseInt(k.right))+"px;"),i=f({},o,{boxPosition:a}),l.default.unmountComponentAtNode(h),h.parentNode.removeChild(h)}else i=w&&m?f({},o,{boxPosition:"top: "+parseInt(w)+"px;"}):w&&y?f({},o,{boxPosition:"bottom: "+parseInt(w)+"px;"}):o;return i})};e.default=h})},function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=r(p),h=n(4),d=r(h),m=["=",">",">=","<","<=","!="],y=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.dateComparators=n.props.dateComparators||m,n.filter=n.filter.bind(n),n.onChangeComparator=n.onChangeComparator.bind(n),n}return a(t,e),l(t,[{key:"setDefaultDate",value:function(){var e="",t=this.props.defaultValue;return t&&t.date&&(e=s(new Date(t.date))),e}},{key:"onChangeComparator",value:function(e){var t=this.inputDate.value,n=e.target.value;""!==t&&(t=new Date(t),this.props.filterHandler({date:t,comparator:n},d.default.FILTER_TYPE.DATE))}},{key:"getComparatorOptions",value:function(){var e=[];e.push(c.default.createElement("option",{key:"-1"}));for(var t=0;t<this.dateComparators.length;t++)e.push(c.default.createElement("option",{key:t,value:this.dateComparators[t]},this.dateComparators[t]));return e}},{key:"filter",value:function(e){var t=this.dateFilterComparator.value,n=e.target.value;n?this.props.filterHandler({date:new Date(n),comparator:t},d.default.FILTER_TYPE.DATE):this.props.filterHandler(null,d.default.FILTER_TYPE.DATE)}},{key:"cleanFiltered",value:function(){var e=this.setDefaultDate(),t=this.props.defaultValue?this.props.defaultValue.comparator:"";this.setState(function(){return{isPlaceholderSelected:""===e}}),this.dateFilterComparator.value=t,this.inputDate.value=e,this.props.filterHandler({date:new Date(e),comparator:t},d.default.FILTER_TYPE.DATE)}},{key:"applyFilter",value:function(e){var t=e.date,n=e.comparator;this.setState(function(){return{isPlaceholderSelected:""===t}}),this.dateFilterComparator.value=n,this.inputDate.value=s(t),this.props.filterHandler({date:t,comparator:n},d.default.FILTER_TYPE.DATE)}},{key:"componentDidMount",value:function(){var e=this.dateFilterComparator.value,t=this.inputDate.value;e&&t&&this.props.filterHandler({date:new Date(t),comparator:e},d.default.FILTER_TYPE.DATE)}},{key:"render",value:function(){var e=this,t=this.props,n=t.defaultValue,r=t.style,o=r.date,i=r.comparator;return c.default.createElement("div",{className:"filter date-filter"},c.default.createElement("select",{ref:function(t){return e.dateFilterComparator=t},style:i,className:"date-filter-comparator form-control",onChange:this.onChangeComparator,defaultValue:n?n.comparator:""},this.getComparatorOptions()),c.default.createElement("input",{ref:function(t){return e.inputDate=t},className:"filter date-filter-input form-control",style:o,type:"date",onChange:this.filter,defaultValue:this.setDefaultDate()}))}}]),t}(u.Component);y.propTypes={filterHandler:f.default.func.isRequired,defaultValue:f.default.shape({date:f.default.object,comparator:f.default.oneOf(m)}),style:f.default.shape({date:f.default.oneOfType([f.default.object]),comparator:f.default.oneOfType([f.default.object])}),dateComparators:function(e,t){if(e[t])for(var n=0;n<e[t].length;n++){for(var r=!1,o=0;o<m.length;o++)if(m[o]===e[t][n]){r=!0;break}if(!r)return new Error("Date comparator provided is not supported.\n Use only "+m)}},columnName:f.default.any},y.defaultProps={style:{date:null,comparator:null}};var g=y;t.default=g;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(m,"legalComparators","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Date.js"),__REACT_HOT_LOADER__.register(s,"dateParser","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Date.js"),__REACT_HOT_LOADER__.register(y,"DateFilter","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Date.js"),__REACT_HOT_LOADER__.register(g,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Date.js"))}()},function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=r(c),f=n(4),h=r(f),d=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.filter=n.filter.bind(n),n.timeout=null,n.state={value:n.props.defaultValue||""},n}return a(t,e),s(t,[{key:"filter",value:function(e){var t=this;this.timeout&&clearTimeout(this.timeout);var n=e.target.value;this.setState(function(){return{value:n}}),this.timeout=setTimeout(function(){t.props.filterHandler(n,h.default.FILTER_TYPE.TEXT)},this.props.delay)}},{key:"cleanFiltered",value:function(){var e=this.props.defaultValue?this.props.defaultValue:"";this.setState(function(){return{value:e}}),this.props.filterHandler(e,h.default.FILTER_TYPE.TEXT)}},{key:"applyFilter",value:function(e){this.setState(function(){return{value:e}}),this.props.filterHandler(e,h.default.FILTER_TYPE.TEXT)}},{key:"componentDidMount",value:function(){var e=this.inputText.value;e&&this.props.filterHandler(e,h.default.FILTER_TYPE.TEXT)}},{key:"componentWillReceiveProps",value:function(e){e.defaultValue!==this.props.defaultValue&&this.applyFilter(e.defaultValue||"")}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this,t=this.props,n=t.placeholder,r=t.columnName,o=t.style;return u.default.createElement("input",{ref:function(t){return e.inputText=t},className:"filter text-filter form-control",type:"text",style:o,onChange:this.filter,placeholder:n||"Enter "+r+"...",value:this.state.value})}}]),t}(l.Component);d.propTypes={filterHandler:p.default.func.isRequired,defaultValue:p.default.string,delay:p.default.number,placeholder:p.default.string,columnName:p.default.any,style:p.default.oneOfType([p.default.object])},d.defaultProps={delay:h.default.FILTER_DELAY};var m=d;t.default=m;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(d,"TextFilter","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Text.js"),__REACT_HOT_LOADER__.register(m,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Text.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=r(c),f=n(4),h=r(f),d=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.filter=n.filter.bind(n),n.timeout=null,n}return a(t,e),s(t,[{key:"filter",value:function(e){var t=this;this.timeout&&clearTimeout(this.timeout);var n=e.target.value;this.timeout=setTimeout(function(){t.props.filterHandler(n,h.default.FILTER_TYPE.REGEX)},this.props.delay)}},{key:"cleanFiltered",value:function(){var e=this.props.defaultValue?this.props.defaultValue:"";this.inputText.value=e,this.props.filterHandler(e,h.default.FILTER_TYPE.TEXT)}},{key:"applyFilter",value:function(e){this.inputText.value=e,this.props.filterHandler(e,h.default.FILTER_TYPE.REGEX)}},{key:"componentDidMount",value:function(){var e=this.inputText.value;e&&this.props.filterHandler(e,h.default.FILTER_TYPE.REGEX)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this,t=this.props,n=t.defaultValue,r=t.placeholder,o=t.columnName,i=t.style;return u.default.createElement("input",{ref:function(t){return e.inputText=t},className:"filter text-filter form-control",type:"text",style:i,onChange:this.filter,placeholder:r||"Enter Regex for "+o+"...",defaultValue:n||""})}}]),t}(l.Component);d.propTypes={filterHandler:p.default.func.isRequired,defaultValue:p.default.string,delay:p.default.number,placeholder:p.default.string,columnName:p.default.any,style:p.default.oneOfType([p.default.object])},d.defaultProps={delay:h.default.FILTER_DELAY};var m=d;t.default=m;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(d,"RegexFilter","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Regex.js"),__REACT_HOT_LOADER__.register(m,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Regex.js"))}()},function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=Object.keys(e);for(var r in n)if(e[r]!==t[r])return!1;return Object.keys(e).length===Object.keys(t).length}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=r(p),h=n(9),d=r(h),m=n(4),y=r(m),g=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.filter=n.filter.bind(n),n.state={isPlaceholderSelected:void 0===n.props.defaultValue||!n.props.options.hasOwnProperty(n.props.defaultValue)},n}return a(t,e),l(t,[{key:"componentWillReceiveProps",value:function(){var e=this.selectInput.value,t=!e||""===e;this.setState(function(){return{isPlaceholderSelected:t}})}},{key:"componentDidUpdate",value:function(e){var t=!1;if(this.props.defaultValue!==e.defaultValue?t=!0:s(this.props.options,e.options)||(t=!0),t){var n=this.selectInput.value;n&&this.props.filterHandler(n,y.default.FILTER_TYPE.SELECT)}}},{key:"filter",value:function(e){var t=e.target.value;this.setState(function(){return{isPlaceholderSelected:""===t}}),this.props.filterHandler(t,y.default.FILTER_TYPE.SELECT)}},{key:"cleanFiltered",value:function(){var e=void 0!==this.props.defaultValue?this.props.defaultValue:"";this.setState(function(){return{isPlaceholderSelected:""===e}}),this.selectInput.value=e,this.props.filterHandler(e,y.default.FILTER_TYPE.SELECT)}},{key:"applyFilter",value:function(e){e+="",this.setState(function(){return{isPlaceholderSelected:""===e}}),this.selectInput.value=e,this.props.filterHandler(e,y.default.FILTER_TYPE.SELECT)}},{key:"getOptions",value:function(){var e=[],t=this.props,n=t.options,r=t.placeholder,o=t.columnName,i=t.selectText,a=t.withoutEmptyOption,s=void 0!==i?i:"Select";return a||e.push(c.default.createElement("option",{key:"-1",value:""},r||s+" "+o+"...")),Object.keys(n).map(function(t){e.push(c.default.createElement("option",{key:t,value:t},n[t]+""))}),e}},{key:"componentDidMount",value:function(){var e=this.selectInput.value;e&&this.props.filterHandler(e,y.default.FILTER_TYPE.SELECT)}},{key:"render",value:function(){var e=this,t=(0,d.default)("filter","select-filter","form-control",{"placeholder-selected":this.state.isPlaceholderSelected});return c.default.createElement("select",{ref:function(t){return e.selectInput=t},style:this.props.style,className:t,onChange:this.filter,defaultValue:void 0!==this.props.defaultValue?this.props.defaultValue:""},this.getOptions())}}]),t}(u.Component);g.propTypes={filterHandler:f.default.func.isRequired,options:f.default.object.isRequired,placeholder:f.default.string,columnName:f.default.any,style:f.default.oneOfType([f.default.object])};var v=g;t.default=v;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(s,"optionsEquals","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Select.js"),__REACT_HOT_LOADER__.register(g,"SelectFilter","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Select.js"),__REACT_HOT_LOADER__.register(v,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Select.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=r(c),f=n(9),h=r(f),d=n(4),m=r(d),y=["=",">",">=","<","<=","!="],g=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.numberComparators=n.props.numberComparators||y,n.timeout=null,n.state={isPlaceholderSelected:void 0===n.props.defaultValue||void 0===n.props.defaultValue.number||n.props.options&&-1===n.props.options.indexOf(n.props.defaultValue.number)},n.onChangeNumber=n.onChangeNumber.bind(n),n.onChangeNumberSet=n.onChangeNumberSet.bind(n),n.onChangeComparator=n.onChangeComparator.bind(n),n}return a(t,e),s(t,[{key:"onChangeNumber",value:function(e){var t=this,n=this.numberFilterComparator.value;if(""!==n){this.timeout&&clearTimeout(this.timeout);var r=e.target.value;this.timeout=setTimeout(function(){t.props.filterHandler({number:r,comparator:n},m.default.FILTER_TYPE.NUMBER)},this.props.delay)}}},{key:"onChangeNumberSet",value:function(e){var t=this.numberFilterComparator.value,n=e.target.value;this.setState(function(){return{isPlaceholderSelected:""===n}}),""!==t&&this.props.filterHandler({number:n,comparator:t},m.default.FILTER_TYPE.NUMBER)}},{key:"onChangeComparator",value:function(e){var t=this.numberFilter.value,n=e.target.value;""!==t&&this.props.filterHandler({number:t,comparator:n},m.default.FILTER_TYPE.NUMBER)}},{key:"cleanFiltered",value:function(){var e=this.props.defaultValue?this.props.defaultValue.number:"",t=this.props.defaultValue?this.props.defaultValue.comparator:"";this.setState(function(){return{isPlaceholderSelected:""===e}}),this.numberFilterComparator.value=t,this.numberFilter.value=e,this.props.filterHandler({number:e,comparator:t},m.default.FILTER_TYPE.NUMBER)}},{key:"applyFilter",value:function(e){var t=e.number,n=e.comparator;this.setState(function(){return{isPlaceholderSelected:""===t}}),this.numberFilterComparator.value=n,this.numberFilter.value=t,this.props.filterHandler({number:t,comparator:n},m.default.FILTER_TYPE.NUMBER)}},{key:"getComparatorOptions",value:function(){var e=[];this.props.withoutEmptyComparatorOption||e.push(u.default.createElement("option",{key:"-1"}));for(var t=0;t<this.numberComparators.length;t++)e.push(u.default.createElement("option",{key:t,value:this.numberComparators[t]},this.numberComparators[t]));return e}},{key:"getNumberOptions",value:function(){var e=[],t=this.props,n=t.options;t.withoutEmptyNumberOption||e.push(u.default.createElement("option",{key:"-1",value:""},this.props.placeholder||"Select "+this.props.columnName+"..."));for(var r=0;r<n.length;r++)e.push(u.default.createElement("option",{key:r,value:n[r]},n[r]));return e}},{key:"componentDidMount",value:function(){var e=this.numberFilterComparator.value,t=this.numberFilter.value;e&&t&&this.props.filterHandler({number:t,comparator:e},m.default.FILTER_TYPE.NUMBER)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this,t=(0,h.default)("select-filter","number-filter-input","form-control",{"placeholder-selected":this.state.isPlaceholderSelected});return u.default.createElement("div",{className:"filter number-filter"},u.default.createElement("select",{ref:function(t){return e.numberFilterComparator=t},style:this.props.style.comparator,className:"number-filter-comparator form-control",onChange:this.onChangeComparator,defaultValue:this.props.defaultValue?this.props.defaultValue.comparator:""},this.getComparatorOptions()),this.props.options?u.default.createElement("select",{ref:function(t){return e.numberFilter=t},className:t,onChange:this.onChangeNumberSet,defaultValue:this.props.defaultValue?this.props.defaultValue.number:""},this.getNumberOptions()):u.default.createElement("input",{ref:function(t){return e.numberFilter=t},type:"number",style:this.props.style.number,className:"number-filter-input form-control",placeholder:this.props.placeholder||"Enter "+this.props.columnName+"...",onChange:this.onChangeNumber,defaultValue:this.props.defaultValue?this.props.defaultValue.number:""}))}}]),t}(l.Component);g.propTypes={filterHandler:p.default.func.isRequired,options:p.default.arrayOf(p.default.number),defaultValue:p.default.shape({number:p.default.number,comparator:p.default.oneOf(y)}),style:p.default.shape({number:p.default.oneOfType([p.default.object]),comparator:p.default.oneOfType([p.default.object])}),delay:p.default.number,numberComparators:function(e,t){if(e[t])for(var n=0;n<e[t].length;n++){for(var r=!1,o=0;o<y.length;o++)if(y[o]===e[t][n]){r=!0;break}if(!r)return new Error("Number comparator provided is not supported.\n Use only "+y)}},placeholder:p.default.string,columnName:p.default.any,withoutEmptyComparatorOption:p.default.bool,withoutEmptyNumberOption:p.default.bool},g.defaultProps={delay:m.default.FILTER_DELAY,withoutEmptyComparatorOption:!1,withoutEmptyNumberOption:!1,style:{number:null,comparator:null}};var v=g;t.default=v;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(y,"legalComparators","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Number.js"),__REACT_HOT_LOADER__.register(g,"NumberFilter","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Number.js"),__REACT_HOT_LOADER__.register(v,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Number.js"))}()},function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){if(n){var r=e.filter(function(e){return e.sortField===t});return r.length>0?r[0].order:void 0}}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d=n(13),m=r(d),y=n(4),g=r(y),v=n(9),_=r(v),b=n(253),x=r(b),w=n(254),E=r(w),T=n(12),O=r(T),C=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"componentDidMount",value:function(){this.update(this.props.checked)}},{key:"componentWillReceiveProps",value:function(e){this.update(e.checked)}},{key:"update",value:function(e){m.default.findDOMNode(this).indeterminate="indeterminate"===e}},{key:"render",value:function(){return p.default.createElement("input",{className:"react-bs-select-all",type:"checkbox",checked:this.props.checked,onChange:this.props.onChange})}}]),t}(c.Component),S=function(e){function t(){var e,n,r,o;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getHeaderColGrouop=function(){var e;return(e=r).__getHeaderColGrouop__REACT_HOT_LOADER__.apply(e,arguments)},o=n,a(r,o)}return s(t,e),u(t,[{key:"__getHeaderColGrouop__REACT_HOT_LOADER__",value:function(){return this.__getHeaderColGrouop__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"render",value:function(){var e=this,t=this.props,n=t.sortIndicator,r=t.sortList,i=t.onSort,a=t.reset,s=t.version,u=t.condensed,c=t.bordered,f=t.expandedColumnHeaderComponent,h=t.noAnyExpand,d=t.toggleExpandAllChilds,m=t.expandAll,y=(0,_.default)("react-bs-container-header","table-header-wrapper",this.props.headerContainerClass),g={"table-bordered":c};u&&(O.default.isBootstrap4(s)?g["table-sm"]=!0:g["table-condensed"]=!0);var v=(0,_.default)("table","table-hover",g,this.props.tableHeaderClass),b=Math.max.apply(Math,o(p.default.Children.map(this.props.children,function(e){return e&&e.props.row?Number(e.props.row):0}))),x=[],w=0;x[0]=[],x[0].push([this.props.expandColumnVisible&&this.props.expandColumnBeforeSelectColumn&&p.default.createElement(E.default,{key:"expandCol",rowCount:b+1,expandedColumnHeaderComponent:f,noAnyExpand:h,expandAll:m,toggleExpandAllChilds:d})],[this.renderSelectRowHeader(b+1,w++)],[this.props.expandColumnVisible&&!this.props.expandColumnBeforeSelectColumn&&p.default.createElement(E.default,{key:"expandCol",rowCount:b+1,expandedColumnHeaderComponent:f,noAnyExpand:h,expandAll:m,toggleExpandAllChilds:d})]),p.default.Children.forEach(this.props.children,function(e){if(null!==e&&void 0!==e){var t=e.props,o=t.dataField,u=t.dataSort,c=l(r,o,u),f=e.props.row?Number(e.props.row):0,h=e.props.rowSpan?Number(e.props.rowSpan):1;void 0===x[f]&&(x[f]=[]),h+f===b+1?x[f].push(p.default.cloneElement(e,{reset:a,key:w++,onSort:i,sort:c,sortIndicator:n,isOnlyHead:!1,version:s})):x[f].push(p.default.cloneElement(e,{key:w++,isOnlyHead:!0,version:s}))}});var T=x.map(function(e,t){return p.default.createElement("tr",{key:t},e)});return p.default.createElement("div",{ref:function(t){return e.container=t},className:y,style:this.props.style},p.default.createElement("table",{className:v},p.default.cloneElement(this.props.colGroups,{ref:function(t){return e.headerGrp=t}}),p.default.createElement("thead",{ref:function(t){return e.header=t}},T)))}}
1,{key:"__getHeaderColGrouop__REACT_HOT_LOADER__",value:function(){return this.headerGrp.childNodes}},{key:"renderSelectRowHeader",value:function(e,t){if(this.props.hideSelectColumn)return null;if(this.props.customComponent){var n=this.props.customComponent;return p.default.createElement(x.default,{key:t,rowCount:e},p.default.createElement(n,{type:"checkbox",checked:this.props.isSelectAll,indeterminate:"indeterminate"===this.props.isSelectAll,disabled:!1,onChange:this.props.onSelectAllRow,rowIndex:"Header"}))}return this.props.rowSelectType===g.default.ROW_SELECT_SINGLE?p.default.createElement(x.default,{key:t,rowCount:e}):this.props.rowSelectType===g.default.ROW_SELECT_MULTI?p.default.createElement(x.default,{key:t,rowCount:e},p.default.createElement(C,{onChange:this.props.onSelectAllRow,checked:this.props.isSelectAll})):null}}]),t}(c.Component);S.propTypes={headerContainerClass:h.default.string,tableHeaderClass:h.default.string,style:h.default.object,rowSelectType:h.default.string,onSort:h.default.func,onSelectAllRow:h.default.func,sortList:h.default.array,hideSelectColumn:h.default.bool,bordered:h.default.bool,condensed:h.default.bool,isFiltered:h.default.bool,isSelectAll:h.default.oneOf([
1!0,"indeterminate",!1]),sortIndicator:h.default.bool,customComponent:h.default.func,colGroups:h.default.element,reset:h.default.bool,expandColumnVisible:h.default.bool,expandColumnComponent:h.default.func,expandedColumnHeaderComponent:h.default.func,expandColumnBeforeSelectColumn:h.default.bool,version:h.default.string,noAnyExpand:h.default.bool,expandAll:h.default.bool,toggleExpandAllChilds:h.default.func};var k=S;t.default=k;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(C,"Checkbox","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeader.js"),__REACT_HOT_LOADER__.register(l,"getSortOrder","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeader.js"),__REACT_HOT_LOADER__.register(S,"TableHeader","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeader.js"),__REACT_HOT_LOADER__.register(k,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeader.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=r(c),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){return u.default.createElement("th",{rowSpan:this.props.rowCount,style:{textAlign:"center"},"data-is-only-head":!1},this.props.children)}}]),t}(l.Component);f.propTypes={children:p.default.node,rowCount:p.default.number};var h=f;t.default=h;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(f,"SelectRowHeaderColumn","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/SelectRowHeaderColumn.js"),__REACT_HOT_LOADER__.register(h,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/SelectRowHeaderColumn.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=r(c),f=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggleExpandAllChilds=n.toggleExpandAllChilds.bind(n),n}return a(t,e),s(t,[{key:"toggleExpandAllChilds",value:function(){this.props.toggleExpandAllChilds()}},{key:"render",value:function(){var e=this.props,t=e.expandedColumnHeaderComponent,n=e.noAnyExpand,r=e.expandAll,o=n?u.default.createElement("span",{className:"fa fa-plus glyphicon glyphicon-plus"}):u.default.createElement("span",{className:"fa fa-minus glyphicon glyphicon-minus"}),i=t;return u.default.createElement("th",{rowSpan:this.props.rowCount,style:{textAlign:"center"},className:"react-bs-table-expand-cell","data-is-only-head":!1},r?u.default.createElement("div",{onClick:this.toggleExpandAllChilds},t?u.default.createElement(i,{anyExpand:!n}):o):null)}}]),t}(l.Component);f.propTypes={expandedColumnHeaderComponent:p.default.func,rowCount:p.default.number,noAnyExpand:p.default.bool,expandAll:p.default.bool,toggleExpandAllChilds:p.default.func};var h=f;t.default=h;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(f,"ExpandRowHeaderColumn","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/ExpandRowHeaderColumn.js"),__REACT_HOT_LOADER__.register(h,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/ExpandRowHeaderColumn.js"))}()},function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=r(c),f=n(9),h=r(f),d=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.hideSelectColumn,r=t.expandColumnVisible,o=(0,h.default)("react-bs-container-footer","table-footer-wrapper"),i=(0,h.default)("table","table-hover",{"table-bordered":this.props.bordered,"table-condensed":this.props.condensed},this.props.tableFooterClass);return u.default.createElement("div",{ref:function(t){return e.container=t},className:o,style:this.props.style},this.props.children.map(function(t,o){return u.default.createElement("span",{key:o},u.default.createElement("table",{className:i},u.default.cloneElement(e.props.colGroups),u.default.createElement("tfoot",null,u.default.createElement("tr",{ref:function(t){return e.footer=t}},n?null:e.renderSelectionOrExpandCol(),r?e.renderSelectionOrExpandCol():null,e.props.columns.map(function(n,r){if(!n.hidden){var o=t.filter(function(e){return e.columnIndex===r}),i=void 0,a="left";return o.length?(a=o[0].align,i=o[0].formatter?o[0].formatter(e.props.footerFormatterReturnData):o[0].label):i="",u.default.createElement("th",{key:r,style:{minWidth:e.props.columns[r].width+"px",textAlign:a}},i)}})))))}))}},{key:"renderSelectionOrExpandCol",value:function(){return u.default.createElement("th",
1null)}}]),t}(l.Component);d.propTypes={tableHeaderClass:p.default.string,style:p.default.object,hideSelectColumn:p.default.bool,expandColumnVisible:p.default.bool,bordered:p.default.bool,condensed:p.default.bool,isFiltered:p.default.bool,sortIndicator:p.default.bool};var m=d;t.default=m;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(d,"TableFooter","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableFooter.js"),__REACT_HOT_LOADER__.register(m,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableFooter.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d=n(12),m=r(d),y=n(4),g=r(y),v=n(257),_=r(v),b=n(258),x=r(b),w=n(259),E=r(w),T=n(9),O=r(T),C=n(260),S=r(C),k=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleCellKeyDown=function(){return n.__handleCellKeyDown__REACT_HOT_LOADER__.apply(n,arguments)},n.handleRowMouseOut=function(){return n.__handleRowMouseOut__REACT_HOT_LOADER__.apply(n,arguments)},n.handleRowMouseOver=function(){return n.__handleRowMouseOver__REACT_HOT_LOADER__.apply(n,arguments)},n.handleRowClick=function(){return n.__handleRowClick__REACT_HOT_LOADER__.apply(n,arguments)},n.handleRowDoubleClick=function(){return n.__handleRowDoubleClick__REACT_HOT_LOADER__.apply(n,arguments)},n.handleSelectRow=function(){return n.__handleSelectRow__REACT_HOT_LOADER__.apply(n,arguments)},n.handleSelectRowColumChange=function(){return n.__handleSelectRowColumChange__REACT_HOT_LOADER__.apply(n,arguments)},n.handleClickCell=function(){return n.__handleClickCell__REACT_HOT_LOADER__.apply(n,arguments)},n.handleEditCell=function(){return n.__handleEditCell__REACT_HOT_LOADER__.apply(n,arguments)},n.nextEditableCell=function(){return n.__nextEditableCell__REACT_HOT_LOADER__.apply(n,arguments)},n.handleCompleteEditCell=function(){return n.__handleCompleteEditCell__REACT_HOT_LOADER__.apply(n,arguments)},n.cancelEditCell=function(){return n.__cancelEditCell__REACT_HOT_LOADER__.apply(n,arguments)},n.handleClickonSelectColumn=function(){return n.__handleClickonSelectColumn__REACT_HOT_LOADER__.apply(n,arguments)},n.getHeaderColGrouop=function(){return n.__getHeaderColGrouop__REACT_HOT_LOADER__.apply(n,arguments)},n.state={currEditCell:null},n}return a(t,e),u(t,[{key:"__getHeaderColGrouop__REACT_HOT_LOADER__",value:function(){return this.__getHeaderColGrouop__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleClickonSelectColumn__REACT_HOT_LOADER__",value:function(){return this.__handleClickonSelectColumn__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__cancelEditCell__REACT_HOT_LOADER__",value:function(){return this.__cancelEditCell__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleCompleteEditCell__REACT_HOT_LOADER__",value:function(){return this.__handleCompleteEditCell__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__nextEditableCell__REACT_HOT_LOADER__",value:function(){return this.__nextEditableCell__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleEditCell__REACT_HOT_LOADER__",value:function(){return this.__handleEditCell__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleClickCell__REACT_HOT_LOADER__",value:function(){return this.__handleClickCell__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleSelectRowColumChange__REACT_HOT_LOADER__",value:function(){return this.__handleSelectRowColumChange__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleSelectRow__REACT_HOT_LOADER__",value:function(){return this.__handleSelectRow__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleRowDoubleClick__REACT_HOT_LOADER__",value:function(){return this.__handleRowDoubleClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleRowClick__REACT_HOT_LOADER__",value:function(){return this.__handleRowClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleRowMouseOver__REACT_HOT_LOADER__",value:function(){return this.__handleRowMouseOver__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleRowMouseOut__REACT_HOT_LOADER__",value:function(){return this.__handleRowMouseOut__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleCellKeyDown__REACT_HOT_LOADER__",value:function(){return this.__handleCellKeyDown__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"render",value:function(){var e=this,t=this.props,n=t.cellEdit,r=t.beforeShowError,o=t.x,i=t.y,a=t.keyBoardNav,s=t.trStyle,u=t.version,c={"table-striped":this.props.striped,"table-bordered":this.props.bordered,"table-hover":this.props.hover};this.props.condensed&&(m.default.isBootstrap4(u)?c["table-sm"]=!0:c["table-condensed"]=!0);var f=(0,O.default)("table",c,this.props.tableBodyClass),h=n.nonEditableRows&&n.nonEditableRows()||[],d=this.props.selectRow.unselectable||[],y=m.default.isSelectRowDefined(this.props.selectRow.mode),v=m.default.renderColGroup(this.props.columns,this.props.selectRow,this.props.expandColumnOptions,u),b=this.props.selectRow.mode===g.default.ROW_SELECT_SINGLE?"radio":"checkbox",w=this.props.selectRow.customComponent,T=!0===a||"object"===("undefined"===typeof a?"undefined":l(a)),C="object"===("undefined"===typeof a?"undefined":l(a))?a.customStyleOnEditCell:null,k="object"===("undefined"===typeof a?"undefined":l(a))?a.customStyle:null,A=this.props.expandColumnOptions.expandColumnComponent,P=this.props.columns.filter(function(e){return e&&!e.hidden}).length;y&&!this.props.selectRow.hideSelectColumn&&(P+=1);var R=1;this.props.expandColumnOptions.expandColumnVisible&&(P+=1);var D=this.props.data.map(function(e,t){var a=this.props.columns.filter(function(e){return null!=e}).map(function(a,s){var l=e[a.name],u=t===i&&s===o;if(a.name!==this.props.keyField&&a.editable&&!0!==a.editable.readOnly&&null!==this.state.currEditCell&&this.state.currEditCell.rid===t&&this.state.currEditCell.cid===s&&-1===h.indexOf(e[this.props.keyField])){var c=a.editable,f=!!a.format&&function(n){return a.format(n,e,a.formatExtraData,t).replace(/<.*?>/g,"")};return m.default.isFunction(a.editable)&&(c=a.editable(l,e,t,s)),p.default.createElement(E.default,{completeEdit:this.handleCompleteEditCell,editable:c,attrs:a.editAttrs,customEditor:a.customEditor,format:!!a.format&&f,key:s,blurToSave:n.blurToSave,blurToEscape:n.blurToEscape,onTab:this.handleEditCell,rowIndex:t,colIndex:s,row:e,fieldValue:l,className:a.edit
1ClassName,invalidColumnClassName:a.invalidEditColumnClassName,beforeShowError:r,isFocus:u,customStyleWithNav:C})}var d=void 0,y=l&&l.toString(),g=null,v=a.className,_=a.style;return m.default.isFunction(a.className)&&(v=a.className(l,e,t,s)),m.default.isFunction(a.style)&&(_=a.style(l,e,t,s)),"undefined"!==typeof a.format&&(d=a.format(l,e,a.formatExtraData,t),y=p.default.isValidElement(d)?d:p.default.createElement("div",{dangerouslySetInnerHTML:{__html:d}})),m.default.isFunction(a.columnTitle)?g=a.columnTitle(l,e,t,s):"string"===typeof a.columnTitle?g=a.columnTitle:a.columnTitle&&(d?g=d.toString():l&&(g=l.toString())),p.default.createElement(x.default,{key:s,cIndex:s,rIndex:t,dataAlign:a.align,className:v,columnTitle:g,cellEdit:n,hidden:a.hidden,onEdit:this.handleEditCell,width:a.width,onClick:this.handleClickCell,attrs:a.attrs,style:_,tabIndex:R+++"",isFocus:u,keyBoardNav:T,onKeyDown:this.handleCellKeyDown,customNavStyle:k,row:e,withoutTabIndex:this.props.withoutTabIndex},y)},this),l=e[this.props.keyField],u=-1!==d.indexOf(l),c=-1!==this.props.selectedRowKeys.indexOf(l),f=y&&!this.props.selectRow.hideSelectColumn?this.renderSelectRowColumn(c,b,u,w,t,e):null,v=this.renderExpandRowColumn(this.props.expandableRow&&this.props.expandableRow(e),this.props.expanding.indexOf(l)>-1,A,t),O=this.props.expandableRow&&this.props.expandableRow(e),D=O&&this.props.expanding.indexOf(l)>-1,I=this.props.hideRowOnExpand,M=this.props.trClassName;m.default.isFunction(this.props.trClassName)&&(M=this.props.trClassName(e,t)),D&&this.props.expandParentClass&&(M+=m.default.isFunction(this.props.expandParentClass)?" "+this.props.expandParentClass(e,t):" "+this.props.expandParentClass);var L=[p.default.createElement(_.default,{isSelected:c,key:l,className:M,index:t,row:e,selectRow:y?this.props.selectRow:void 0,enableCellEdit:n.mode!==g.default.CELL_EDIT_NONE,onRowClick:this.handleRowClick,onRowDoubleClick:this.handleRowDoubleClick,onRowMouseOver:this.handleRowMouseOver,onRowMouseOut:this.handleRowMouseOut,onSelectRow:this.handleSelectRow,onExpandRow:this.handleClickCell,unselectableRow:u,style:s,hidden:D&&I,dbClickToEdit:n.mode===g.default.CELL_EDIT_DBCLICK},this.props.expandColumnOptions.expandColumnVisible&&this.props.expandColumnOptions.expandColumnBeforeSelectColumn&&v,f,this.props.expandColumnOptions.expandColumnVisible&&!this.props.expandColumnOptions.expandColumnBeforeSelectColumn&&v,a)];if(O){var j=m.default.isFunction(this.props.expandBodyClass)?this.props.expandBodyClass(e,t,D):this.props.expandBodyClass;L.push(p.default.createElement(S.default,{key:l+"-expand",row:e,className:j,bgColor:this.props.expandRowBgColor||this.props.selectRow.bgColor||void 0,hidden:!D,colSpan:P,width:"100%"},this.props.expandComponent(e)))}return L},this);if(0===D.length&&!this.props.withoutNoDataText){var I=this.props.columns.filter(function(e){return!e.hidden}).length+(y&&!this.props.selectRow.hideSelectColumn?1:0)+(this.props.expandColumnOptions.expandColumnVisible?1:0);D=[p.default.createElement(_.default,{key:"##table-empty##",style:s},p.default.createElement("td",{"data-toggle":"collapse",colSpan:I,className:"react-bs-table-no-data"},this.props.noDataText||g.default.NO_DATA_TEXT))]}return p.default.createElement("div",{ref:function(t){return e.container=t},className:(0,O.default)("react-bs-container-body",this.props.bodyContainerClass),style:this.props.style},p.default.createElement("table",{className:f},p.default.cloneElement(v,{ref:function(t){return e.header=t}}),p.default.createElement("tbody",{ref:function(t){return e.tbody=t}},D)))}},{key:"__handleCellKeyDown__REACT_HOT_LOADER__",value:function(e,t){e.preventDefault();var n=this.props,r=n.keyBoardNav,o=n.onNavigateCell,i=n.cellEdit,a=n.selectedRowKeys,u=void 0;if(37===e.keyCode)u={x:-1,y:0};else if(38===e.keyCode)u={x:0,y:-1};else if(39===e.keyCode||9===e.keyCode)u={x:1,y:0},9===e.keyCode&&t&&(u=s({},u,{lastEditCell:t}));else if(40===e.keyCode)u={x:0,y:1};else if(13===e.keyCode){var c=e.target.parentElement.rowIndex+1,p="object"===("undefined"===typeof r?"undefined":l(r))&&r.enterToEdit,f="object"===("undefined"===typeof r?"undefined":l(r))&&r.enterToExpand,h="object"===("undefined"===typeof r?"undefined":l(r))&&r.enterToSelect;if(i&&p&&this.handleEditCell(c,e.currentTarget.cellIndex,"",e),f&&this.handleClickCell(e,this.props.y+1,this.props.x),h){var d=-1!==a.indexOf(this.props.data[c-1][this.props.keyField]);this.handleSelectRow(c,!d,e)}}u&&r&&o(u)}},{key:"__handleRowMouseOut__REACT_HOT_LOADER__",value:function(e,t){var n=this.props.data[e];this.props.onRowMouseOut(n,t)}},{key:"__handleRowMouseOver__REACT_HOT_LOADER__",value:function(e,t){var n=this.props.data[e];this.props.onRowMouseOver(n,t)}},{key:"__handleRowClick__REACT_HOT_LOADER__",value:function(e,t,n){var r=this.props,o=r.onRowClick,i=r.selectRow;m.default.isSelectRowDefined(i.mode)&&t--,this._isExpandColumnVisible()&&t--,o(this.props.data[e-1],e-1,t,n)}},{key:"__handleRowDoubleClick__REACT_HOT_LOADER__",value:function(e,t){(0,this.props.onRowDoubleClick)(this.props.data[e],t)}},{key:"__handleSelectRow__REACT_HOT_LOADER__",value:function(e,t,n){var r=void 0,o=this.props,i=o.data,a=o.onSelectRow;
1i.forEach(function(t,n){if(n===e-1)return r=t,!1}),a(r,t,n,e-1)}},{key:"__handleSelectRowColumChange__REACT_HOT_LOADER__",value:function(e,t){this.props.selectRow.clickToSelect&&this.props.selectRow.clickToSelectAndEditCell||this.handleSelectRow(t+1,e.currentTarget.checked,e)}},{key:"__handleClickCell__REACT_HOT_LOADER__",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=this.props,o=r.columns,i=r.keyField,a=r.expandBy,s=r.expandableRow,l=r.selectRow,u=l.mode,c=l.clickToExpand,p=l.hideSelectColumn,f=r.onlyOneExpanding,h=m.default.isSelectRowDefined(u),d=!(h&&!c);if(n=h&&!p?n-1:n,n=this._isExpandColumnVisible()?n-1:n,s&&d&&(a===g.default.EXPAND_BY_ROW||a===g.default.EXPAND_BY_COL&&n<0||a===g.default.EXPAND_BY_COL&&o[n].expandable)){var y=this.props.expanding,v=this.props.data[t-1][i],_=y.indexOf(v)>-1;_?y=y.filter(function(e){return e!==v}):f?y=[v]:y.push(v),this.props.onExpand(y,v,_,e)}}},{key:"__handleEditCell__REACT_HOT_LOADER__",value:function(e,t,n,r){var o=this.props.selectRow,i=m.default.isSelectRowDefined(o.mode),a=this._isExpandColumnVisible();if(i&&(t--,o.hideSelectColumn&&t++),a&&t--,e--,"tab"===n){i&&!o.hideSelectColumn&&t++,a&&t++,this.handleCompleteEditCell(r.target.value,e,t-1),t>=this.props.columns.length?this.handleCellKeyDown(r,!0):this.handleCellKeyDown(r);var s=this.nextEditableCell(e,t),l=s.nextRIndex,u=s.nextCIndex;e=l,t=u}var c={currEditCell:{rid:e,cid:t}};if(this.props.selectRow.clickToSelectAndEditCell&&this.props.cellEdit.mode!==g.default.CELL_EDIT_DBCLICK){var p=-1!==this.props.selectedRowKeys.indexOf(this.props.data[e][this.props.keyField]);this.handleSelectRow(e+1,!p,r)}this.setState(function(){return c})}},{key:"__nextEditableCell__REACT_HOT_LOADER__",value:function(e,t){var n=this.props.keyField,r=e,o=t,i=void 0,a=void 0;do{if(o>=this.props.columns.length&&(r++,o=0),i=this.props.data[r],a=this.props.columns[o],!i)break;var s=a.editable;if(m.default.isFunction(a.editable)&&(s=a.editable(a,i,r,o)),s&&!0!==s.readOnly&&!a.hidden&&n!==a.name)break;o++}while(i);return{nextRIndex:r,nextCIndex:o}}},{key:"__handleCompleteEditCell__REACT_HOT_LOADER__",value:function(e,t,n){if(null!==e){this.props.onEditCell(e,t,n)!==g.default.AWAIT_BEFORE_CELL_EDIT&&this.setState(function(){return{currEditCell:null}})}else this.setState(function(){return{currEditCell:null}})}},{key:"__cancelEditCell__REACT_HOT_LOADER__",value:function(){this.setState(function(){return{currEditCell:null}})}},{key:"__handleClickonSelectColumn__REACT_HOT_LOADER__",value:function(e,t,n,r){if(e.stopPropagation(),"TD"===e.target.tagName&&(this.props.selectRow.clickToSelect||this.props.selectRow.clickToSelectAndEditCell)){-1===(this.props.selectRow.unselectable||[]).indexOf(r[this.props.keyField])&&(this.handleSelectRow(n+1,t,e),this.handleClickCell(e,n+1))}}},{key:"renderSelectRowColumn",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=this,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments[5];return p.default.createElement("td",{onClick:function(t){o.handleClickonSelectColumn(t,!e,i,a)},style:{textAlign:"center"}},r?p.default.createElement(r,{type:t,checked:e,disabled:n,rowIndex:i,onChange:function(e){return o.handleSelectRowColumChange(e,i)}}):p.default.createElement("input",{type:t,checked:e,disabled:n,onChange:function(e){return o.handleSelectRowColumChange(e,i)}}))}},{key:"renderExpandRowColumn",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=null;return i=n?p.default.createElement(n,{isExpandableRow:e,isExpanded:t}):e?t?p.default.createElement("span",{className:"fa fa-minus glyphicon glyphicon-minus"}):p.default.createElement("span",{className:"fa fa-plus glyphicon glyphicon-plus"}):" ",p.default.createElement("td",{className:"react-bs-table-expand-cell",onClick:function(e){return r.handleClickCell(e,o+1)}},i)}},{key:"_isExpandColumnVisible",value:function(){return this.props.expandColumnOptions.expandColumnVisible}},{key:"__getHeaderColGrouop__REACT_HOT_LOADER__",value:function(){return this.header.childNodes}}]),t}(c.Component);k.propTypes={version:h.default.string,data:h.default.array,columns:h.default.array,striped:h.default.bool,bordered:h.default.bool,hover:h.default.bool,condensed:
1h.default.bool,keyField:h.default.string,selectedRowKeys:h.default.array,onRowClick:h.default.func,onRowDoubleClick:h.default.func,onSelectRow:h.default.func,noDataText:h.default.oneOfType([h.default.string,h.default.object]),withoutNoDataText:h.default.bool,style:h.default.object,tableBodyClass:h.default.string,bodyContainerClass:h.default.string,expandableRow:h.default.func,expandComponent:h.default.func,expandRowBgColor:h.default.string,expandBy:h.default.string,expanding:h.default.array,onExpand:h.default.func,expandBodyClass:h.default.oneOfType([h.default.string,h.default.func]),expandParentClass:h.default.oneOfType([h.default.string,h.default.func]),onlyOneExpanding:h.default.bool,beforeShowError:h.default.func,keyBoardNav:h.default.oneOfType([h.default.bool,h.default.object]),x:h.default.number,y:h.default.number,onNavigateCell:h.default.func,withoutTabIndex:h.default.bool,hideRowOnExpand:h.default.bool};var A=k;t.default=A;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(k,"TableBody","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableBody.js"),__REACT_HOT_LOADER__.register(A,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableBody.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(9),c=r(u),p=n(0),f=r(p),h=n(1),d=r(h),m=n(12),y=r(m),g=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.rowClick=function(){return n.__rowClick__REACT_HOT_LOADER__.apply(n,arguments)},n.expandRow=function(){return n.__expandRow__REACT_HOT_LOADER__.apply(n,arguments)},n.rowDoubleClick=function(){return n.__rowDoubleClick__REACT_HOT_LOADER__.apply(n,arguments)},n.rowMouseOut=function(){return n.__rowMouseOut__REACT_HOT_LOADER__.apply(n,arguments)},n.rowMouseOver=function(){return n.__rowMouseOver__REACT_HOT_LOADER__.apply(n,arguments)},n.clickNum=0,n}return a(t,e),l(t,[{key:"__rowMouseOver__REACT_HOT_LOADER__",value:function(){return this.__rowMouseOver__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__rowMouseOut__REACT_HOT_LOADER__",value:function(){return this.__rowMouseOut__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__rowDoubleClick__REACT_HOT_LOADER__",value:function(){return this.__rowDoubleClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__expandRow__REACT_HOT_LOADER__",value:function(){return this.__expandRow__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__rowClick__REACT_HOT_LOADER__",value:function(){return this.__rowClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__rowClick__REACT_HOT_LOADER__",value:function(e){var t=this,n=this.props.index+1,r=e.target.cellIndex;this.props.onRowClick&&this.props.onRowClick(n,r,e);var o=this.props,i=o.selectRow,a=o.unselectableRow,s=o.isSelected,l=o.onSelectRow,u=o.onExpandRow,c=o.dbClickToEdit;
1i&&(i.clickToSelect&&!a?l(n,!s,e):i.clickToSelectAndEditCell&&!a?(this.clickNum++,setTimeout(function(){1===t.clickNum&&(l(n,!s,e),u(e,n,r)),t.clickNum=0},200)):c&&this.expandRow(e,n,r))}},{key:"__expandRow__REACT_HOT_LOADER__",value:function(e,t,n){var r=this;this.clickNum++,setTimeout(function(){1===r.clickNum&&r.props.onExpandRow(e,t,n),r.clickNum=0},200)}},{key:"__rowDoubleClick__REACT_HOT_LOADER__",value:function(e){"INPUT"!==e.target.tagName&&"SELECT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&this.props.onRowDoubleClick&&this.props.onRowDoubleClick(this.props.index,e)}},{key:"__rowMouseOut__REACT_HOT_LOADER__",value:function(e){var t=this.props.index;this.props.onRowMouseOut&&this.props.onRowMouseOut(t,e)}},{key:"__rowMouseOver__REACT_HOT_LOADER__",value:function(e){var t=this.props.index;this.props.onRowMouseOver&&this.props.onRowMouseOver(t,e)}},{key:"render",value:function(){this.clickNum=0;var e=this.props,t=e.selectRow,n=e.row,r=e.isSelected,o=e.className,i=e.index,a=e.hidden,l=this.props.style,u=null,p=null;t&&(u=y.default.isFunction(t.bgColor)?t.bgColor(n,r):r?t.bgColor:null,p=y.default.isFunction(t.className)?t.className(n,r):r?t.className:null),(l=y.default.isFunction(l)?l(n,i):s({},l)||{})&&u&&r&&(l.backgroundColor=u);var h={style:s({},l),className:(0,c.default)(p,o)};return f.default.createElement("tr",s({},h,{onMouseOver:this.rowMouseOver,onMouseOut:this.rowMouseOut,onClick:this.rowClick,hidden:a,onDoubleClick:this.rowDoubleClick}),this.props.children)}}]),t}(p.Component);g.propTypes={index:d.default.number,row:d.default.any,style:d.default.any,isSelected:d.default.bool,enableCellEdit:d.default.bool,onRowClick:d.default.func,onRowDoubleClick:d.default.func,onSelectRow:d.default.func,onExpandRow:d.default.func,onRowMouseOut:d.default.func,onRowMouseOver:d.default.func,unselectableRow:d.default.bool,hidden:d.default.bool},g.defaultProps={onRowClick:void 0,onRowDoubleClick:void 0,hidden:!1};var v=g;t.default=v;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(g,"TableRow","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableRow.js"),__REACT_HOT_LOADER__.register(v,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableRow.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d=n(13),m=r(d),y=n(4),g=r(y),v=n(12),_=r(v),b=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleCellEdit=function(){return n.__handleCellEdit__REACT_HOT_LOADER__.apply(n,arguments)},n.handleCellClick=function(){return n.__handleCellClick__REACT_HOT_LOADER__.apply(n,arguments)},n.handleKeyDown=function(){return n.__handleKeyDown__REACT_HOT_LOADER__.apply(n,arguments)},n}return a(t,e),u(t,[{key:"__handleKeyDown__REACT_HOT_LOADER__",value:function(){return this.__handleKeyDown__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleCellClick__REACT_HOT_LOADER__",value:function(){return this.__handleCellClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleCellEdit__REACT_HOT_LOADER__",value:function(){return this.__handleCellEdit__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props.children,r=this.props.width!==e.width||this.props.className!==e.className||this.props.hidden!==e.hidden||this.props.dataAlign!==e.dataAlign||this.props.isFocus!==e.isFocus||("undefined"===typeof n?"undefined":l(n))!==l(e.children)||(""+this.props.onEdit).toString()!==(""+e.onEdit).toString();return r||((r="object"===("undefined"===typeof n?"undefined":l(n))&&null!==n&&null!==n.props?"checkbox"!==n.props.type&&"radio"!==n.props.type||(r||n.props.type!==e.children.props.type||n.props.checked!==e.children.props.checked||n.props.disabled!==e.children.props.disabled):r||n!==e.children)||!(!this.props.cellEdit||!e.cellEdit)&&(r||this.props.cellEdit.mode!==e.cellEdit.mode))}},{key:"componentDidMount",value:function(){var e=m.default.findDOMNode(this);this.props.isFocus?e.focus():e.blur()}},{key:"componentDidUpdate",value:function(){var e=m.default.findDOMNode(this);this.props.isFocus?e.focus():e.blur()}},{key:"__handleCellEdit__REACT_HOT_LOADER__",value:function(e){try{if(this.props.cellEdit.mode===g.default.CELL_EDIT_DBCLICK)if(document.selection&&document.selection.empty)document.selection.empty();else if(window.getSelection){var t=window.getSelection();t.removeAllRanges()}}catch(e){}this.props.onEdit(this.props.rIndex+1,e.currentTarget.cellIndex,e),this.props.cellEdit.mode!==g.default.CELL_EDIT_DBCLICK&&this.props.onClick(e,this.props.rIndex+1,e.currentTarget.cellIndex)}},{key:"__handleCellClick__REACT_HOT_LOADER__",value:function(e){var t=this.props,n=t.onClick,r=t.rIndex;n&&n(e,r+1,e.currentTarget.cellIndex)}},{key:"__handleKeyDown__REACT_HOT_LOADER__",value:function(e){this.props.keyBoardNav&&this.props.onKeyDown(e)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.columnTitle,r=e.dataAlign,o=e.hidden,i=e.cellEdit,a=e.attrs,l=e.style,u=e.isFocus,c=e.keyBoardNav,f=e.tabIndex,h=e.customNavStyle,d=e.withoutTabIndex,m=e.row,y=this.props.className,v=s({textAlign:r,display:o?"none":null},l),b={};if(i&&(i.mode===g.default.CELL_EDIT_CLICK?b.onClick=this.handleCellEdit:i.mode===g.default.CELL_EDIT_DBCLICK?b.onDoubleClick=this.handleCellEdit:b.onClick=this.handleCellClick),c&&u&&(b.onKeyDown=this.handleKeyDown),u)if(h){var x=_.default.isFunction(h)?h(t,m):h;v=s({},v,x)}else y+=" default-focus-cell";var w={};return d||(w.tabIndex=f),p.default.createElement("td",s({},w,{style:v,title:n,className:y},b,a),"boolean"===typeof t?t.toString():t)}}]),t}(c.Component);b.propTypes={rIndex:h.default.number,dataAlign:h.default.string,hidden:h.default.bool,className:h.default.string,columnTitle:h.default.string,children:h.default.node,onClick:h.default.func,attrs:h.default.object,style:h.default.object,isFocus:h.default.bool,onKeyDown:h.default.func,tabIndex:h.default.string,withoutTabIndex:h.default.bool,keyBoardNav:h.default.oneOfType([h.default.bool,h.default.object]),customNavStyle:h.default.oneOfType([h.default.func,h.default.object]),row:
1h.default.any},b.defaultProps={dataAlign:"left",withoutTabIndex:!1,hidden:!1,className:"",isFocus:!1,keyBoardNav:!1};var x=b;t.default=x;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(b,"TableColumn","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableColumn.js"),__REACT_HOT_LOADER__.register(x,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableColumn.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d=n(13),m=r(d),y=n(124),g=r(y),v=n(125),_=n(9),b=r(_),x=n(12),w=r(x),E=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.handleKeyPress=function(){return n.__handleKeyPress__REACT_HOT_LOADER__.apply(n,arguments)},n.handleBlur=function(){return n.__handleBlur__REACT_HOT_LOADER__.apply(n,arguments)},n.handleCustomUpdate=function(){return n.__handleCustomUpdate__REACT_HOT_LOADER__.apply(n,arguments)},n.notifyToastr=function(){return n.__notifyToastr__REACT_HOT_LOADER__.apply(n,arguments)},n.handleClick=function(){return n.__handleClick__REACT_HOT_LOADER__.apply(n,arguments)},n.getInputRef=function(){return n.__getInputRef__REACT_HOT_LOADER__.apply(n,arguments)},n.getHandleKeyPress=function(){return n.__getHandleKeyPress__REACT_HOT_LOADER__.apply(n,arguments)},n.getHandleBlur=function(){return n.__getHandleBlur__REACT_HOT_LOADER__.apply(n,arguments)},n.timeouteClear=0;var r=n.props,a=r.fieldValue,s=r.row,l=r.className;return n.focusInEditor=n.focusInEditor.bind(n),n.state={shakeEditor:!1,className:w.default.isFunction(l)?l(a,s):l},n}return a(t,e),u(t,[{key:"__getHandleBlur__REACT_HOT_LOADER__",value:function(){return this.__getHandleBlur__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__getHandleKeyPress__REACT_HOT_LOADER__",value:function(){return this.__getHandleKeyPress__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__getInputRef__REACT_HOT_LOADER__",value:function(){return this.__getInputRef__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleClick__REACT_HOT_LOADER__",value:function(){return this.__handleClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__notifyToastr__REACT_HOT_LOADER__",value:function(){return this.__notifyToastr__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleCustomUpdate__REACT_HOT_LOADER__",value:function(){return this.__handleCustomUpdate__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleBlur__REACT_HOT_LOADER__",value:function(){return this.__handleBlur__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleKeyPress__REACT_HOT_LOADER__",value:function(){return this.__handleKeyPress__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"valueShortCircuit",value:function(e){return null===e||"undefined"===typeof e?"":e}},{key:"__handleKeyPress__REACT_HOT_LOADER__",value:function(e){if(13===e.keyCode||9===e.keyCode){var t="checkbox"===e.currentTarget.type?this._getCheckBoxValue(e):e.currentTarget.value;if(9===e.keyCode&&this.props.blurToSave||!this.validator(t))return;13===e.keyCode?this.props.completeEdit(t,this.props.rowIndex,this.props.colIndex):(this.props.onTab(this.props.rowIndex+1,this.props.colIndex+1,"tab",e),e.preventDefault())}
1else if(27===e.keyCode)this.props.completeEdit(null,this.props.rowIndex,this.props.colIndex);else if("click"===e.type&&!this.props.blurToSave){var n=e.target.parentElement.firstChild.value;if(!this.validator(n))return;this.props.completeEdit(n,this.props.rowIndex,this.props.colIndex)}}},{key:"__handleBlur__REACT_HOT_LOADER__",value:function(e){if(e.stopPropagation(),this.props.blurToSave){var t="checkbox"===e.currentTarget.type?this._getCheckBoxValue(e):e.currentTarget.value;if(!this.validator(t))return!1;this.props.completeEdit(t,this.props.rowIndex,this.props.colIndex)}else this.props.blurToEscape&&this.props.completeEdit(null,this.props.rowIndex,this.props.colIndex)}},{key:"__handleCustomUpdate__REACT_HOT_LOADER__",value:function(e){this.validator(e)&&this.props.completeEdit(e,this.props.rowIndex,this.props.colIndex)}},{key:"validator",value:function(e){var t=this,n=!0;if(t.props.editable.validator){var r=t.props.editable.validator(e,this.props.row),o="undefined"===typeof r?"undefined":l(r);if("object"!==o&&!0!==r?(n=!1,this.notifyToastr("error",r,"")):"object"===o&&!0!==r.isValid&&(n=!1,this.notifyToastr(r.notification.type,r.notification.msg,r.notification.title)),!n){t.clearTimeout();var i=this.props,a=i.invalidColumnClassName,s=i.row,u=w.default.isFunction(a)?a(e,s):a;return t.setState({shakeEditor:!0,className:u}),t.timeouteClear=setTimeout(function(){t.setState({shakeEditor:!1})},300),this.focusInEditor(),n}}return n}},{key:"__notifyToastr__REACT_HOT_LOADER__",value:function(e,t,n){var r=!0,o=this.props.beforeShowError;o&&(r=o(e,t,n)),r&&(0,v.notice)(e,t,n)}},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){0!==this.timeouteClear&&(clearTimeout(this.timeouteClear),this.timeouteClear=0)})},{key:"componentDidMount",value:function(){this.focusInEditor();var e=m.default.findDOMNode(this);this.props.isFocus?e.focus():e.blur()}},{key:"componentDidUpdate",value:function(){var e=m.default.findDOMNode(this);this.props.isFocus?e.focus():e.blur()}},{key:"componentWillUnmount",value:function(){this.clearTimeout()}},{key:"focusInEditor",value:function(){this.inputRef&&w.default.isFunction(this.inputRef.focus)&&this.inputRef.focus()}},{key:"__handleClick__REACT_HOT_LOADER__",value:function(e){"TD"!==e.target.tagName&&e.stopPropagation()}},{key:"__getInputRef__REACT_HOT_LOADER__",value:function(e){var t=this;return function(n){if(t.inputRef=n,w.default.isFunction(e))e(n);else if("string"===typeof e)throw new Error("Ref must be a function")}}},{key:"__getHandleKeyPress__REACT_HOT_LOADER__",value:function(e){var t=this;return function(n){t.handleKeyPress(n),w.default.isFunction(e)&&e(n)}}},{key:"__getHandleBlur__REACT_HOT_LOADER__",value:function(e){var t=this;return function(n){t.handleBlur(n),w.default.isFunction(e)&&e(n)}}},{key:"render",value:function(){var e=this.props,t=e.editable,n=e.format,r=e.customEditor,o=e.isFocus,i=e.customStyleWithNav,a=e.row,l=e.attrs,u=this.state.shakeEditor,c=s({},t.attrs,{ref:this.getInputRef(t.attrs&&t.attrs.ref),onKeyDown:this.getHandleKeyPress(t.attrs&&t.attrs.onKeyDown),onBlur:this.getHandleBlur(t.attrs&&t.attrs.onBlur)}),f={position:"relative"},h=this.props.fieldValue,d=this.state.className;t.placeholder&&(c.placeholder=t.placeholder,console.warn("Setting editable.placeholder is deprecated. Use editable.attrs to set input attributes"));var m=(0,b.default)({animated:u,shake:u});h=0===h?"0":h;var y=void 0;if(r){var v=s({row:a},c,{defaultValue:this.valueShortCircuit(h)},r.customEditorParameters);y=r.getElement(this.handleCustomUpdate,v)}else y=(0,g.default)(t,c,n,m,this.valueShortCircuit(h),null,a);if(o)if(i){var _=w.default.isFunction(i)?i(h,a):i;f=s({},f,_)}else d+=" default-focus-cell";return p.default.createElement("td",s({},l,{style:f,className:d,onClick:this.handleClick}),y)}},{key:"_getCheckBoxValue",value:function(e){var t=e.currentTarget.value.split(":");return e.currentTarget.checked?t[0]:t[1]}}]),t}(c.Component);E.propTypes={completeEdit:h.default.func,rowIndex:h.default.number,colIndex:h.default.number,blurToSave:h.default.bool,blurToEscape:h.default.bool,editable:h.default.oneOfType([h.default.bool,h.default.object]),format:h.default.oneOfType([h.default.bool,h.default.func]),row:h.default.any,fieldValue:h.default.oneOfType([h.default.string,h.default.bool,h.default.number,h.default.array,h.default.object]),className:h.default.any,beforeShowError:h.default.func,isFocus:h.default.bool,attrs:h.default.object,customStyleWithNav:h.default.oneOfType([h.default.func,h.default.object])};var T=E;t.default=T;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(E,"TableEditColumn","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableEditColumn.js"),__REACT_HOT_LOADER__.register(T,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableEditColumn.js"))}()},function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(9),f=r(p),h=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.className,t={style:{backgroundColor:this.props.bgColor},className:(0,f.default)(e)};return c.default.createElement("tr",s({hidden:this.props.hidden,width:this.props.width},t),c.default.createElement("td",{colSpan:this.props.colSpan},this.props.children))}}]),t}(u.Component),d=h;t.default=d;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(h,"ExpandComponent","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/ExpandComponent.js"),__REACT_HOT_LOADER__.register(d,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/ExpandComponent.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=r(p),h=n(9),d=r(h),m=n(262),y=r(m),g=n(126),v=r(g),_=n(4),b=r(_),x=n(12),w=r(x),E=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.changePage=function(){return n.__changePage__REACT_HOT_LOADER__.apply(n,arguments)},n.changeSizePerPage=function(){return n.__changeSizePerPage__REACT_HOT_LOADER__.apply(n,arguments)},n.toggleDropDown=function(){return n.__toggleDropDown__REACT_HOT_LOADER__.apply(n,arguments)},n.closeDropDown=function(){return n.__closeDropDown__REACT_HOT_LOADER__.apply(n,arguments)},n.state={open:n.props.open},n}return a(t,e),l(t,[{key:"__closeDropDown__REACT_HOT_LOADER__",value:function(){return this.__closeDropDown__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__toggleDropDown__REACT_HOT_LOADER__",value:function(){return this.__toggleDropDown__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__changeSizePerPage__REACT_HOT_LOADER__",value:function(){return this.__changeSizePerPage__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__changePage__REACT_HOT_LOADER__",value:function(){return this.__changePage__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"componentWillReceiveProps",value:function(){this.props.keepSizePerPageState||this.closeDropDown()}},{key:"__changePage__REACT_HOT_LOADER__",value:function(e){var t=this.props,n=t.pageStartIndex,r=t.prePage,o=t.currPage,i=t.nextPage,a=t.lastPage,s=t.firstPage,l=t.sizePerPage,u=t.keepSizePerPageState;e=e===r?o-1<n?n:o-1:e===i?o+1>this.lastPage?this.lastPage:o+1:e===a?this.lastPage:e===s?n:parseInt(e,10),u&&this.closeDropDown(),e!==o&&this.props.changePage(e,l)}},{key:"__changeSizePerPage__REACT_HOT_LOADER__",value:function(e){var t="string"===typeof e?parseInt(e,10):e,n=this.props.currPage;t!==this.props.sizePerPage&&(this.totalPages=Math.ceil(this.props.dataSize/t),this.lastPage=this.props.pageStartIndex+this.totalPages-1,n>this.lastPage&&(n=this.lastPage),this.props.changePage(n,t),this.props.onSizePerPageList&&this.props.onSizePerPageList(t)),this.closeDropDown()}},{key:"__toggleDropDown__REACT_HOT_LOADER__",value:function(){var e=this;this.setState(function(){return{open:!e.state.open}})}},{key:"__closeDropDown__REACT_HOT_LOADER__",value:function(){this.setState(function(){return{open:!1}})}},{key:"render",value:function(){var e=this.props,t=e.currPage,n=e.dataSize,r=e.sizePerPage,o=e.sizePerPageList,i=e.paginationShowsTotal,a=e.pageStartIndex,s=e.paginationPanel,l=e.hidePageListOnlyOnePage;this.totalPages=Math.ceil(n/r),this.lastPage=this.props.pageStartIndex+this.totalPages-1;var u=this.makePage(w.default.isFunction(s)),p=this.makeDropDown(),f=Math.abs(b.default.PAGE_START_INDEX-a),h=(t-a)*r;h=0===n?0:h+1;var d=Math.min(r*(t+f)-1,n);d>=n&&d--;var m=i?c.default.createElement("span",null,"Showing rows ",h," to\xa0",d+1," of\xa0",n):null;w.default.isFunction(i)&&(m=i(h,d+1,n));var y=s&&s({currPage:t,sizePerPage:r,sizePerPageList:o,pageStartIndex:a,totalPages:this.totalPages,changePage:this.changePage,toggleDropDown:this.toggleDropDown,changeSizePerPage:this.changeSizePerPage,components:{totalText:m,sizePerPageDropdown:p,pageList:u}}),g=l&&1===this.totalPages?"none":"block";return c.default.createElement("div",{className:"row",style:{marginTop:15}},y||[c.default.createElement("div",{key:"paging-left",className:"col-md-6 col-xs-6 col-sm-6 col-lg-6"},m,o.length>1?p:null),c.default.createElement("div",{key:"paging-right",style:{display:g},className:"col-md-6 col-xs-6 col-sm-6 col-lg-6"},u)])}},{key:"makeDropDown",value:function(){var e=this,t=void 0,n=void 0,r="",o=this.props,i=o.sizePerPageDropDown,a=o.hideSizePerPage,l=o.sizePerPage,u=o.sizePerPageList;if(i){if(t=i({open:this.state.open,hideSizePerPage:a,currSizePerPage:String(l),sizePerPageList:u,toggleDropDown:this.toggleDropDown,changeSizePerPage:this.changeSizePerPage,onBlur:this.closeDropDown}
1),t.type.name!==v.default.name)return t;n=t.props}if(n||!t){var p=w.default.isBootstrap4(this.props.version),f=u.map(function(t){var n=t.text||t,o=t.value||t;return l===o&&(r=n),p?c.default.createElement("a",{href:"#",tabIndex:"-1",key:n,className:"dropdown-item",onMouseDown:function(t){t.preventDefault(),e.changeSizePerPage(o)}},n):c.default.createElement("li",{key:n,role:"presentation",className:"dropdown-item"},c.default.createElement("a",{role:"menuitem",tabIndex:"-1",href:"#","data-page":o,onMouseDown:function(t){t.preventDefault(),e.changeSizePerPage(o)}},n))});t=c.default.createElement(v.default,s({open:this.state.open,hidden:a,currSizePerPage:String(r),options:f,onClick:this.toggleDropDown,onBlur:this.closeDropDown,isBootstrap4:p},n))}return t}},{key:"makePage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.getPages(),r=function(e,t){var n=t.currPage,r=t.pageStartIndex,o=t.firstPage,i=t.prePage;return n===r&&(e===o||e===i)},o=function(t,n){var r=n.currPage,o=n.nextPage,i=n.lastPage;return r===e.lastPage&&(t===o||t===i)},i=n.filter(function(e){return!!this.props.alwaysShowAllBtns||!r(e,this.props)&&!o(e,this.props)},this).map(function(e,t){var n=e===this.props.currPage,i=!(!r(e,this.props)&&!o(e,this.props)),a=e+"",s=e;return e===this.props.nextPage?(a=this.props.nextPageTitle,s=this.props.currPage+1):e===this.props.prePage?(a=this.props.prePageTitle,s=this.props.currPage-1):e===this.props.firstPage?(a=this.props.firstPageTitle,s=this.props.pageStartIndex):e===this.props.lastPage&&(a=this.props.lastPageTitle,s=this.getLastPage()),c.default.createElement(y.default,{key:t,title:a,changePage:this.changePage,active:n,disable:i,pageNumber:s},e)},this),a=(0,d.default)(t?null:"react-bootstrap-table-page-btns-ul","pagination");return c.default.createElement("ul",{className:a},i)}},{key:"getLastPage",value:function(){return this.lastPage}},{key:"getPages",value:function(){var e=void 0,t=this.totalPages;if(t<=0)return[];var n=Math.max(this.props.currPage-Math.floor(this.props.paginationSize/2),this.props.pageStartIndex);t=n+this.props.paginationSize-1,t>this.lastPage&&(t=this.lastPage,n=t-this.props.paginationSize+1),e=n!==this.props.pageStartIndex&&this.totalPages>this.props.paginationSize&&this.props.withFirstAndLast?[this.props.firstPage,this.props.prePage]:this.totalPages>1||this.props.alwaysShowAllBtns?[this.props.prePage]:[];for(var r=n;r<=t;r++)r>=this.props.pageStartIndex&&e.push(r);return t<=this.lastPage&&e.length>1&&e.push(this.props.nextPage),t!==this.lastPage&&this.props.withFirstAndLast&&e.push(this.props.lastPage),e}}]),t}(u.Component);E.propTypes={currPage:f.default.number,sizePerPage:f.default.number,dataSize:f.default.number,changePage:f.default.func,sizePerPageList:f.default.array,paginationShowsTotal:f.default.oneOfType([f.default.bool,f.default.func]),paginationSize:f.default.number,onSizePerPageList:f.default.func,prePage:f.default.any,nextPage:f.default.any,firstPage:f.default.any,lastPage:f.default.any,pageStartIndex:f.default.number,hideSizePerPage:f.default.bool,alwaysShowAllBtns:f.default.bool,withFirstAndLast:f.default.bool,sizePerPageDropDown:f.default.func,paginationPanel:f.default.func,prePageTitle:f.default.string,nextPageTitle:f.default.string,firstPageTitle:f.default.string,lastPageTitle:f.default.string,hidePageListOnlyOnePage:f.default.bool,keepSizePerPageState:f.default.bool},E.defaultProps={sizePerPage:b.default.SIZE_PER_PAGE,pageStartIndex:b.default.PAGE_START_INDEX};var T=E;t.default=T;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(E,"PaginationList","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/PaginationList.js"),__REACT_HOT_LOADER__.register(T,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/PaginationList.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=r(c),f=n(9),h=r(f),d=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.pageBtnClick=function(){return n.__pageBtnClick__REACT_HOT_LOADER__.apply(n,arguments)},n}return a(t,e),s(t,[{key:"__pageBtnClick__REACT_HOT_LOADER__",value:function(){return this.__pageBtnClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__pageBtnClick__REACT_HOT_LOADER__",value:function(e){e.preventDefault(),this.props.changePage(this.props.pageNumber)}},{key:"render",value:function(){var e=(0,h.default)({active:this.props.active,disabled:this.props.disable,hidden:this.props.hidden,"page-item":!0});return u.default.createElement("li",{className:e,title:this.props.title},u.default.createElement("a",{href:"#",onClick:this.pageBtnClick,className:"page-link"},this.props.children))}}]),t}(l.Component);d.propTypes={title:p.default.string,changePage:p.default.func,active:p.default.bool,disable:p.default.bool,hidden:p.default.bool,children:p.default.node,pageNumber:p.default.number};var m=d;t.default=m;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(d,"PageButton","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/PageButton.js"),__REACT_HOT_LOADER__.register(m,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/PageButton.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d=n(264),m=r(d),y=n(4),g=r(y),v=n(125),_=n(272),b=r(_),x=n(133),w=r(x),E=n(134),T=r(E),O=n(135),C=r(O),S=n(136),k=r(S),A=n(137),P=r(A),R=n(138),D=r(R),I=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.displayCommonMessage=function(){return n.__displayCommonMessage__REACT_HOT_LOADER__.apply(n,arguments)},n.handleSaveBtnClick=function(){return n.__handleSaveBtnClick__REACT_HOT_LOADER__.apply(n,arguments)},n.afterHandleSaveBtnClick=function(){return n.__afterHandleSaveBtnClick__REACT_HOT_LOADER__.apply(n,arguments)},n.handleModalClose=function(){return n.__handleModalClose__REACT_HOT_LOADER__.apply(n,arguments)},n.handleModalOpen=function(){return n.__handleModalOpen__REACT_HOT_LOADER__.apply(n,arguments)},n.handleShowOnlyToggle=function(){return n.__handleShowOnlyToggle__REACT_HOT_LOADER__.apply(n,arguments)},n.handleDropRowBtnClick=function(){return n.__handleDropRowBtnClick__REACT_HOT_LOADER__.apply(n,arguments)},n.handleDebounce=function(){return n.__handleDebounce__REACT_HOT_LOADER__.apply(n,arguments)},n.handleKeyUp=function(){return n.__handleKeyUp__REACT_HOT_LOADER__.apply(n,arguments)},n.handleExportCSV=function(){return n.__handleExportCSV__REACT_HOT_LOADER__.apply(n,arguments)},n.handleClearBtnClick=function(){return n.__handleClearBtnClick__REACT_HOT_LOADER__.apply(n,arguments)},n.timeouteClear=0,n.modalClassName,n.state={isInsertModalOpen:!1,validateState:null,shakeEditor:!1,showSelected:!1},n}return a(t,e),u(t,[{key:"__handleClearBtnClick__REACT_HOT_LOADER__",value:function(){return this.__handleClearBtnClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleExportCSV__REACT_HOT_LOADER__",value:function(){return this.__handleExportCSV__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleKeyUp__REACT_HOT_LOADER__",value:function(){return this.__handleKeyUp__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleDebounce__REACT_HOT_LOADER__",value:function(e,t,n){var r=this,o=arguments,i=void 0;return function(){var a=function(){i=null,n||e.apply(r,o)},s=n&&!i;clearTimeout(i),i=setTimeout(a,t||0),s&&e.appy(r,o)}}},{key:"__handleDropRowBtnClick__REACT_HOT_LOADER__",value:function(){return this.__handleDropRowBtnClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleShowOnlyToggle__REACT_HOT_LOADER__",value:function(){return this.__handleShowOnlyToggle__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleModalOpen__REACT_HOT_LOADER__",value:function(){return this.__handleModalOpen__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleModalClose__REACT_HOT_LOADER__",value:function(){return this.__handleModalClose__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__afterHandleSaveBtnClick__REACT_HOT_LOADER__",value:function(){return this.__afterHandleSaveBtnClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleSaveBtnClick__REACT_HOT_LOADER__",value:function(){return this.__handleSaveBtnClick__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__displayCommonMessage__REACT_HOT_LOADER__",value:function(){return this.__displayCommonMessage__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"componentWillMount",value:function(){var e=this,t=this.props.searchDelayTime?this.props.searchDelayTime:0;this.debounceCallback=this.handleDebounce(function(){e.seachInput&&e.props.onSearch(e.seachInput.getValue())},t)}},{key:"componentWillReceiveProps",value:function(e){e.reset&&this.setSearchInput("")}},{key:"componentWillUnmount",value:function(){this.clearTimeout()}},{key:"setSearchInput",value:function(e){this.seachInput&&this.seachInput.value!==e&&(this.seachInput.value=e)}},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){this.timeouteClear&&(clearTimeout(this.timeouteClear),this.timeouteClear=0)})},{key:"__displayCommonMessage__REACT_HOT_LOADER__",value:function(){(0,v.notice)("error",this.props.insertFailIndicator,"")}},{key:"validateNewRow",value:function(e){var t=this,n={},r=!0,o=void 0,i=void 0;return this.props.columns.forEach(function(a){a.isKey&&a.keyValidator?(o=t.props.isValidKey(e[a.field]))&&(t.displayCommonMessage(),r=!1,n[a.field]=o):a.editable&&a.editable.validator&&(o=a.editable.validator(e[a.field],e),i="undefined"===typeof o?"undefined":l(o),"object"!==i&&!0!==o?(t.displayCommonMessage(),r=!1,n[a.field]=o):"object"===i&&!0!==o.isValid&&
1((0,v.notice)(o.notification.type,o.notification.msg,o.notification.title),r=!1,n[a.field]=o.notification.msg))}),!!r||(this.clearTimeout(),this.setState(function(){return{validateState:n,shakeEditor:!0}}),this.timeouteClear=setTimeout(function(){t.setState(function(){return{shakeEditor:!1}})},300),null)}},{key:"__handleSaveBtnClick__REACT_HOT_LOADER__",value:function(e){if(this.validateNewRow(e)){var t=this.props.onAddRow(e);!1!==t&&this.afterHandleSaveBtnClick(t)}}},{key:"__afterHandleSaveBtnClick__REACT_HOT_LOADER__",value:function(e){var t=this;e?((0,v.notice)("error",e,""),this.clearTimeout(),this.setState(function(){return{shakeEditor:!0,validateState:"this is hack for prevent bootstrap modal hide"}}),this.timeouteClear=setTimeout(function(){t.setState(function(){return{shakeEditor:!1}})},300)):this.setState(function(){return{validateState:null,shakeEditor:!1,isInsertModalOpen:!1}})}},{key:"__handleModalClose__REACT_HOT_LOADER__",value:function(){this.setState(function(){return{isInsertModalOpen:!1}})}},{key:"__handleModalOpen__REACT_HOT_LOADER__",value:function(){this.setState(function(){return{isInsertModalOpen:!0}})}},{key:"__handleShowOnlyToggle__REACT_HOT_LOADER__",value:function(){var e=this;this.setState(function(){return{showSelected:!e.state.showSelected}}),this.props.onShowOnlySelected()}},{key:"__handleDropRowBtnClick__REACT_HOT_LOADER__",value:function(){this.props.onDropRow()}},{key:"__handleKeyUp__REACT_HOT_LOADER__",value:function(e){e.persist(),this.debounceCallback(e)}},{key:"__handleExportCSV__REACT_HOT_LOADER__",value:function(){this.props.onExportCSV()}},{key:"__handleClearBtnClick__REACT_HOT_LOADER__",value:function(){this.seachInput&&this.seachInput.setValue(""),this.props.onSearch("")}},{key:"render",value:function(){this.modalClassName="bs-table-modal-sm"+t.modalSeq++;var e=null,n=null,r=null,o=null,i=null,a=null;this.props.enableInsert&&(r=this.props.insertBtn?this.renderCustomBtn(this.props.insertBtn,[this.handleModalOpen],w.default.name,"onClick",this.handleModalOpen):p.default.createElement(w.default,{btnText:this.props.insertText,onClick:this.handleModalOpen})),this.props.enableDelete&&(o=this.props.deleteBtn?this.renderCustomBtn(this.props.deleteBtn,[this.handleDropRowBtnClick],T.default.name,"onClick",this.handleDropRowBtnClick):p.default.createElement(T.default,{btnText:this.props.deleteText,onClick:this.handleDropRowBtnClick})),this.props.enableShowOnlySelected&&(a=this.props.showSelectedOnlyBtn?this.renderCustomBtn(this.props.showSelectedOnlyBtn,[this.handleShowOnlyToggle,this.state.showSelected],k.default.name,"onClick",this.handleShowOnlyToggle):p.default.createElement(k.default,{toggle:this.state.showSelected,onClick:this.handleShowOnlyToggle})),this.props.enableExportCSV&&(i=this.props.exportCSVBtn?this.renderCustomBtn(this.props.exportCSVBtn,[this.handleExportCSV],C.default.name,"onClick",this.handleExportCSV):p.default.createElement(C.default,{btnText:this.props.exportCSVText,onClick:this.handleExportCSV})),n=this.props.btnGroup?this.props.btnGroup({exportCSVBtn:i,insertBtn:r,deleteBtn:o,showSelectedOnlyBtn:a}):p.default.createElement("div",{className:"btn-group btn-group-sm",role:"group"},i,r,o,a);var l=this.renderSearchPanel(),u=s(l,3),c=u[0],f=u[1],h=u[2],d=this.props.enableInsert?this.renderInsertRowModal():null;return e=this.props.toolBar?this.props.toolBar({components:{exportCSVBtn:i,insertBtn:r,deleteBtn:o,showSelectedOnlyBtn:a,searchPanel:c,btnGroup:n,searchField:f,clearBtn:h},event:{openInsertModal:this.handleModalOpen,closeInsertModal:this.handleModalClose,dropRow:this.handleDropRowBtnClick,showOnlyToogle:this.handleShowOnlyToggle,exportCSV:this.handleExportCSV,search:this.props.onSearch}}):[p.default.createElement("div",{key:"toolbar-left",className:"col-xs-6 col-sm-6 col-md-6 col-lg-8"},"left"===this.props.searchPosition?c:n),p.default.createElement("div",{key:"toolbar-right",className:"col-xs-6 col-sm-6 col-md-6 col-lg-4"},"left"===this.props.searchPosition?n:c)],p.default.createElement("div",{className:"row"},e,d)}},{key:"renderSearchPanel",value:function(){var e=this;if(this.props.enableSearch){var t="form-group form-group-sm react-bs-table-search-form",n=null,r=null,o=null;return this.props.clearSearch&&(n=this.props.clearSearchBtn?this.renderCustomBtn(this.props.clearSearchBtn,[this.handleClearBtnClick],D.default.name,"onClick",this.handleClearBtnClick):p.default.createElement(D.default,{onClick:this.handleClearBtnClick}),t+=" input-group input-group-sm"),this.props.searchField?(r=this.props.searchField({search:this.handleKeyUp,defaultValue:this.props.defaultSearch,placeholder:this.props.searchPlaceholder}),r=r.type.name===P.default.name?p.default.cloneElement(r,{ref:function(t){return e.seachInput=t},onKeyUp:this.handleKeyUp}):p.default.cloneElement(r,{ref:function(t){return e.seachInput=t}})):r=p.default.createElement(P.default,{ref:function(t){return e.seachInput=t},defaultValue:this.props.defaultSearch,placeholder:this.props.searchPlaceholder,onKeyUp:this.handleKeyUp}),o=this.props.searchPanel?this.props.searchPanel({searchField:r,clearBtn:n,search:this.props.onSearch,defaultValue:this.props.defaultSearch,placeholder:this.props.searchPlaceholder,clearBtnClick:this.handleClearBtnClick}):p.default.createElement("div",{className:t},r,p.default.createElement("span",{className:"input-group-btn"},n)),[o,r,n]}return[]}},{key:"renderInsertRowModal",value:function(){var e=this.state.validateState||{}
1,t=this.props,n=t.version,r=t.columns,o=t.ignoreEditable,i=t.insertModalHeader,a=t.insertModalBody,s=t.insertModalFooter,l=t.insertModal,u=void 0;return u=l&&l(this.handleModalClose,this.handleSaveBtnClick,r,e,o),u||(u=p.default.createElement(b.default,{version:n,columns:r,validateState:e,ignoreEditable:o,onModalClose:this.handleModalClose,onSave:this.handleSaveBtnClick,headerComponent:i,bodyComponent:a,footerComponent:s})),p.default.createElement(m.default,{className:"react-bs-insert-modal modal-dialog",isOpen:this.state.isInsertModalOpen,ariaHideApp:!1,onRequestClose:this.handleModalClose,contentLabel:"Modal"},u)}},{key:"renderCustomBtn",value:function(e,t,n,r,o){var i=e.apply(null,t);if(i.type.name===n&&!i.props[r]){var a={};a[r]=o,i=p.default.cloneElement(i,a)}return i}}]),t}(c.Component);I.modalSeq=0,I.propTypes={version:h.default.string,onAddRow:h.default.func,onDropRow:h.default.func,onShowOnlySelected:h.default.func,enableInsert:h.default.bool,enableDelete:h.default.bool,enableSearch:h.default.bool,enableShowOnlySelected:h.default.bool,columns:h.default.array,searchPlaceholder:h.default.string,exportCSVText:h.default.string,insertText:h.default.string,deleteText:h.default.string,saveText:h.default.string,closeText:h.default.string,clearSearch:h.default.bool,ignoreEditable:h.default.bool,defaultSearch:h.default.string,insertModalHeader:h.default.func,insertModalBody:h.default.func,insertModalFooter:h.default.func,insertModal:h.default.func,insertBtn:h.default.func,deleteBtn:h.default.func,showSelectedOnlyBtn:h.default.func,exportCSVBtn:h.default.func,clearSearchBtn:h.default.func,searchField:h.default.func,searchPanel:h.default.func,btnGroup:h.default.func,toolBar:h.default.func,searchPosition:h.default.string,reset:h.default.bool,isValidKey:h.default.func,insertFailIndicator:h.default.string},I.defaultProps={reset:!1,enableInsert:!1,enableDelete:!1,enableSearch:!1,enableShowOnlySelected:!1,clearSearch:!1,ignoreEditable:!1,exportCSVText:g.default.EXPORT_CSV_TEXT,insertText:g.default.INSERT_BTN_TEXT,deleteText:g.default.DELETE_BTN_TEXT,saveText:g.default.SAVE_BTN_TEXT,closeText:g.default.CLOSE_BTN_TEXT};var M=I;t.default=M;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(I,"ToolBar","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ToolBar.js"),__REACT_HOT_LOADER__.register(M,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ToolBar.js"))}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(265),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=o.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e()}Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(13),h=r(f),d=n(1),m=r(d),y=n(266),g=r(y),v=n(128),_=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(v),b=n(129),x=r(b),w=t.portalClassName="ReactModalPortal",E=t.bodyOpenClassName="ReactModal__Body--open",T=void 0!==h.default.createPortal,O=T?h.default.createPortal:h.default.unstable_renderSubtreeIntoContainer,C=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),r.removePortal=function(){!T&&h.default.unmountComponentAtNode(r.node),s(r.props.parentSelector).removeChild(r.node)},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=O(r,p.default.createElement(g.default,l({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},a=n,i(r,a)}
1return a(t,e),u(t,[{key:"componentDidMount",value:function(){if(b.canUseDOM){T||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName;s(this.props.parentSelector).appendChild(this.node),!T&&this.renderPortal(this.props)}}},{key:"componentWillReceiveProps",value:function(e){if(b.canUseDOM){var t=e.isOpen;if(this.props.isOpen||t){var n=s(this.props.parentSelector),r=s(e.parentSelector);r!==n&&(n.removeChild(this.node),r.appendChild(this.node)),!T&&this.renderPortal(e)}}}},{key:"componentWillUpdate",value:function(e){b.canUseDOM&&e.portalClassName!==this.props.portalClassName&&(this.node.className=e.portalClassName)}},{key:"componentWillUnmount",value:function(){if(b.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return b.canUseDOM&&T?(!this.node&&T&&(this.node=document.createElement("div")),O(p.default.createElement(g.default,l({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){_.setElement(e)}}]),t}(c.Component);C.propTypes={isOpen:m.default.bool.isRequired,style:m.default.shape({content:m.default.object,overlay:m.default.object}),portalClassName:m.default.string,bodyOpenClassName:m.default.string,htmlOpenClassName:m.default.string,className:m.default.oneOfType([m.default.string,m.default.shape({base:m.default.string.isRequired,afterOpen:m.default.string.isRequired,beforeClose:m.default.string.isRequired})]),overlayClassName:m.default.oneOfType([m.default.string,m.default.shape({base:m.default.string.isRequired,afterOpen:m.default.string.isRequired,beforeClose:m.default.string.isRequired})]),appElement:m.default.instanceOf(x.default),onAfterOpen:m.default.func,onRequestClose:m.default.func,closeTimeoutMS:m.default.number,ariaHideApp:m.default.bool,shouldFocusAfterRender:m.default.bool,shouldCloseOnOverlayClick:m.default.bool,shouldReturnFocusAfterClose:m.default.bool,parentSelector:m.default.func,aria:m.default.object,role:m.default.string,contentLabel:m.default.string,shouldCloseOnEsc:m.default.bool,overlayRef:m.default.func,contentRef:m.default.func},C.defaultProps={isOpen:!1,portalClassName:w,bodyOpenClassName:E,ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,parentSelector:function(){return document.body}},C.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},t.default=C},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}
1(),p=n(0),f=o(p),h=n(1),d=o(h),m=n(267),y=r(m),g=n(268),v=o(g),_=n(128),b=r(_),x=n(270),w=r(x),E=n(129),T=o(E),O={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},C=9,S=27,k=0,A=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setFocusAfterRender=function(e){n.focusAfterRender=n.props.shouldFocusAfterRender&&e},n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName;w.remove(document.body,i),o&&w.remove(document.getElementsByTagName("html")[0],o),r&&k>0&&0===(k-=1)&&b.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(y.returnFocus(),y.teardownScopedFocus()):y.popWithoutFocus())},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(y.setupScopedFocus(n.node),y.markForFocusLater()),n.setState({isOpen:!0},function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen()}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus()},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){e.keyCode===C&&(0,v.default)(n.content,e),n.props.shouldCloseOnEsc&&e.keyCode===S&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null,n.moveFromContentToOverlay=null},n.handleOverlayOnMouseUp=function(){null===n.moveFromContentToOverlay&&(n.shouldClose=!1),n.props.shouldCloseOnOverlayClick&&(n.shouldClose=!0)},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault(),n.moveFromContentToOverlay=!1},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1,n.moveFromContentToOverlay=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===("undefined"===typeof t?"undefined":u(t))?t:{base:O[e],afterOpen:O[e]+"--after-open",beforeClose:O[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"===typeof t&&t?o+" "+t:o},n.ariaAttributes=function(e){return Object.keys(e).reduce(function(t,n){return t["aria-"+n]=e[n],t},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}
1return s(t,e),c(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&(this.setFocusAfterRender(!0),this.open())}},{key:"componentWillReceiveProps",value:function(e){!this.props.isOpen&&e.isOpen?(this.setFocusAfterRender(!0),this.open()):this.props.isOpen&&!e.isOpen&&this.close()}},{key:"componentDidUpdate",value:function(){this.focusAfterRender&&(this.focusContent(),this.setFocusAfterRender(!1))}},{key:"componentWillUnmount",value:function(){this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;w.add(document.body,o),r&&w.add(document.getElementsByTagName("html")[0],r),n&&(k+=1,b.hide(t))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.overlayClassName,r=e.defaultStyles,o=t?{}:r.content,i=n?{}:r.overlay;return this.shouldBeClosed()?null:f.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",n),style:l({},i,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown,onMouseUp:this.handleOverlayOnMouseUp,"aria-modal":"true"},f.default.createElement("div",l({ref:this.setContentRef,style:l({},o,this.props.style.content),className:this.buildClassName("content",t),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.ariaAttributes(this.props.aria||{})),this.props.children))}}]),t}(p.Component);A.defaultProps={style:{overlay:{},content:{}}},A.propTypes={isOpen:d.default.bool.isRequired,defaultStyles:d.default.shape({content:d.default.object,overlay:d.default.object}),style:d.default.shape({content:d.default.object,overlay:d.default.object}),className:d.default.oneOfType([d.default.string,d.default.object]),overlayClassName:d.default.oneOfType([d.default.string,d.default.object]),bodyOpenClassName:d.default.string,htmlOpenClassName:d.default.string,ariaHideApp:d.default.bool,appElement:d.default.instanceOf(T.default),onAfterOpen:d.default.func,onRequestClose:d.default.func,closeTimeoutMS:d.default.number,shouldFocusAfterRender:d.default.bool,shouldCloseOnOverlayClick:d.default.bool,shouldReturnFocusAfterClose:d.default.bool,role:d.default.string,contentLabel:d.default.string,aria:d.default.object,children:d.default.node,shouldCloseOnEsc:d.default.bool,overlayRef:d.default.func,contentRef:d.default.func},t.default=A,e.exports=t.default},function(e,t,n){"use strict";function r(){d=!0}function o(){if(d){if(d=!1,!h)return;setTimeout(function(){if(!h.contains(document.activeElement)){((0,p.default)(h)[0]||h).focus()}},0)}}function i(){f.push(document.activeElement)}function a(){var e=null;try{return void(0!==f.length&&(e=f.pop(),e.focus()))}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}}function s(){f.length>0&&f.pop()}function l(e){h=e,window.addEventListener?(window.addEventListener("blur",r,!1),document.addEventListener("focus",o,!0)):(window.attachEvent("onBlur",r),document.attachEvent("onFocus",o))}function u(){h=null,window.addEventListener?(window.removeEventListener("blur",r),document.removeEventListener("focus",o)):(window.detachEvent("onBlur",r),document.detachEvent("onFocus",o))}Object.defineProperty(t,"__esModule",{value:!0}),t.handleBlur=r,t.handleFocus=o,t.markForFocusLater=i,t.returnFocus=a,t.popWithoutFocus=s,t.setupScopedFocus=l,t.teardownScopedFocus=u;var c=n(127),p=function(e){return e&&e.__esModule?e:{default:e}}(c),f=[],h=null,d=!1},function(e,t,n){"use strict";function r(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var r=t.shiftKey,o=n[0],a=n[n.length-1];if(e===document.activeElement){if(!r)return;s=a}var s;if(a!==document.activeElement||r||(s=o),o===document.activeElement&&r&&(s=a),s)return t.preventDefault(),void s.focus();var l=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=l&&"Chrome"!=l[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var u=n.indexOf(document.activeElement);u>-1&&(u+=r?-1:1),t.preventDefault(),n[u].focus()}}
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(127),i=function(e){return e&&e.__esModule?e:{default:e}}(o);e.exports=t.default},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(){}Object.defineProperty(t,"__esModule",{value:!0}),t.dumpClassLists=r;var o={},i={},a=function(e,t){return e[t]||(e[t]=0),e[t]+=1,t},s=function(e,t){return e[t]&&(e[t]-=1),t},l=function(e,t,n){n.forEach(function(n){a(t,n),e.add(n)})},u=function(e,t,n){n.forEach(function(n){s(t,n),0===t[n]&&e.remove(n)})};t.add=function(e,t){return l(e.classList,"html"==e.nodeName.toLowerCase()?o:i,t.split(" "))},t.remove=function(e,t){return u(e.classList,"html"==e.nodeName.toLowerCase()?o:i,t.split(" "))}},function(e,t,n){var r;!function(){"use strict";var o=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0!==(r=function(){return i}.call(t,n,t,e))&&(e.exports=r)}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),p=n(1),f=r(p),h=n(130),d=r(h),m=n(131),y=r(m),g=n(132),v=r(g),_=function(e){function t(){var e,n,r,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.handleSave=function(){var e;return(e=r).__handleSave__REACT_HOT_LOADER__.apply(e,arguments)},a=n,i(r,a)}return a(t,e),l(t,[{key:"__handleSave__REACT_HOT_LOADER__",value:function(){return this.__handleSave__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleSave__REACT_HOT_LOADER__",value:function(){this.body.getFieldValue?this.props.onSave(this.body.getFieldValue()):console.error("Custom InsertModalBody should implement getFieldValue function\n and should return an object presented as the new row that user input.")}},{key:"render",value:function(){var e=this,t=this.props,n=t.headerComponent,r=t.footerComponent,o=t.bodyComponent,i=this.props,a=i.columns,l=i.validateState,u=i.ignoreEditable,p=i.onModalClose,f={columns:a,validateState:l,ignoreEditable:u};if(o=o&&o(a,l,u),n=n&&n(p,this.handleSave),r=r&&r(p,this.handleSave),o&&(o=c.default.cloneElement(o,{ref:function(t){return e.body=t}})),n&&n.type.name===d.default.name){var h={};n.props.onModalClose||(h.onModalClose=p),n.props.onSave||(h.onSave=this.handleSave),Object.keys(h).length>0&&(n=c.default.cloneElement(n,h))}else if(n&&n.type.name!==d.default.name){var m=n.props.className;"undefined"!==typeof m&&-1!==m.indexOf("modal-header")||(n=c.default.createElement("div",{className:"modal-header"},n))}
1if(r&&r.type.name===y.default.name){var g={};r.props.onModalClose||(g.onModalClose=p),r.props.onSave||(g.onSave=this.handleSave),Object.keys(g).length>0&&(r=c.default.cloneElement(r,g))}else if(r&&r.type.name!==y.default.name){var _=r.props.className;"undefined"!==typeof _&&-1!==_.indexOf("modal-footer")||(r=c.default.createElement("div",{className:"modal-footer"},r))}return c.default.createElement("div",{className:"modal-content react-bs-table-insert-modal"},n||c.default.createElement(d.default,{version:this.props.version,className:"react-bs-table-inser-modal-header",onModalClose:p}),o||c.default.createElement(v.default,s({ref:function(t){return e.body=t}},f)),r||c.default.createElement(y.default,{className:"react-bs-table-inser-modal-footer",onModalClose:p,onSave:this.handleSave}))}}]),t}(u.Component),b=_;t.default=b,_.propTypes={version:f.default.string.isRequired,columns:f.default.array.isRequired,validateState:f.default.object.isRequired,ignoreEditable:f.default.bool,headerComponent:f.default.func,bodyComponent:f.default.func,footerComponent:f.default.func,onModalClose:f.default.func,onSave:f.default.func},_.defaultProps={};!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register("react-bs-table-insert-modal","defaultModalClassName","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModal.js"),__REACT_HOT_LOADER__.register(_,"InsertModal","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModal.js"),__REACT_HOT_LOADER__.register(b,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModal.js"))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=r(l),c=n(1),p=r(c),f=n(4),h=r(f),d=n(9),m=r(d),y=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleKeyUp=function(){return n.__handleKeyUp__REACT_HOT_LOADER__.apply(n,arguments)},n.filterObj={},n}return a(t,e),s(t,[{key:"__handleKeyUp__REACT_HOT_LOADER__",value:function(){return this.__handleKeyUp__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"__handleKeyUp__REACT_HOT_LOADER__",value:function(e){var t=e.currentTarget,n=t.value,r=t.name;""===n.trim()?delete this.filterObj[r]:this.filterObj[r]=n,this.props.onFilter(this.filterObj)}},{key:"render",value:function(){var e=this.props,t=e.striped,n=e.condensed,r=e.rowSelectType,o=e.columns,i=(0,m.default)("table",{"table-striped":t,"table-condensed":n}),a=null;if(r===h.default.ROW_SELECT_SINGLE||r===h.default.ROW_SELECT_MULTI){var s={width:35,paddingLeft:0,paddingRight:0};a=u.default.createElement("th",{style:s,key:-1},"Filter")}var l=o.map(function(e){var t=e.hidden,n=e.width,r=e.name,o={display:t?"none":null,width:n};return u.default.createElement("th",{key:r,style:o},u.default.createElement("div",{className:"th-inner table-header-column"},u.default.createElement("input",{size:"10",type:"text",placeholder:r,name:r,onKeyUp:this.handleKeyUp})))},this);return u.default.createElement("table",{className:i,style:{marginTop:5}},u.default.createElement("thead",null,u.default.createElement("tr",{style:{borderBottomStyle:"hidden"}},a,l)))}}]),t}(l.Component);y.propTypes={columns:p.default.array,rowSelectType:p.default.string,onFilter:p.default.func};var g=y;t.default=g;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(y,"TableFilter","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableFilter.js"),__REACT_HOT_LOADER__.register(g,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableFilter.js"))}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1Object.defineProperty(t,"__esModule",{value:!0}),t.TableDataStore=void 0;var o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(4),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=function(){function e(t){var n=this;r(this,e),this.isValidKey=function(){return n.__isValidKey__REACT_HOT_LOADER__.apply(n,arguments)},this.data=t,this.filteredData=null,this.isOnFilter=!1,this.filterObj=null,this.searchText=null,this.sortList=[],this.pageObj={},this.selected=[],this.showOnlySelected=!1}return i(e,[{key:"__isValidKey__REACT_HOT_LOADER__",value:function(){return this.__isValidKey__REACT_HOT_LOADER__.apply(this,arguments)}},{key:"setProps",value:function(e){this.keyField=e.keyField,this.enablePagination=e.isPagination,this.colInfos=e.colInfos,this.remote=e.remote,this.multiColumnSearch=e.multiColumnSearch,this.strictSearch="undefined"===typeof e.strictSearch?!e.multiColumnSearch:e.strictSearch,this.multiColumnSort=e.multiColumnSort}},{key:"clean",value:function(){this.filteredData=null,this.isOnFilter=!1,this.filterObj=null,this.searchText=null,this.sortList=[],this.pageObj={},this.selected=[]}},{key:"isSearching",value:function(){return null!==this.searchText}},{key:"isFiltering",value:function(){return null!==this.filterObj}},{key:"setData",value:function(e){this.data=e,this.remote||this._refresh(!0)}},{key:"getColInfos",value:function(){return this.colInfos}},{key:"getSortInfo",value:function(){return this.sortList}},{key:"setSortInfo",value:function(e,t){if(("undefined"===typeof e?"undefined":o(e))!==("undefined"===typeof t?"undefined":o(t)))throw new Error("The type of sort field and order should be both with String or Array");if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)throw new Error("The length of sort fields and orders should be equivalent");e=e.slice().reverse(),this.sortList=t.slice().reverse().map(function(t,n){return{order:e[n],sortField:t}}),this.sortList=this.sortList.slice(0,this.multiColumnSort)}else{var n={order:e,sortField:t};if(this.multiColumnSort>1){for(var r=this.sortList.length-1,i=!1;r>=0;r--)if(this.sortList[r].sortField===t){i=!0;break}i&&(this.sortList=r>0?this.sortList.slice(0,r):this.sortList.slice(1)),this.sortList.unshift(n),this.sortList=this.sortList.slice(0,this.multiColumnSort)}else this.sortList=[n]}}},{key:"cleanSortInfo",value:function(){this.sortList=[]}},{key:"setSelectedRowKey",value:function(e){this.selected=e}},{key:"getRowByKey",value:function(e){var t=this,n=[];if(!e||0===e.length)return n;for(var r=0;r<this.data.length;r++)!function(r){var o=t.data[r];e.indexOf(o[t.keyField])>-1&&(e=e.filter(function(e){return e!==o[t.keyField]}),n.push(o))}(r);return n}},{key:"getSelectedRowKeys",value:function(){return this.selected}},{key:"getCurrentDisplayData",value:function(){return this.isOnFilter?this.filteredData:this.data}},{key:"_refresh",value:function(e){this.isOnFilter&&(null!==this.filterObj&&this.filter(this.filterObj),null!==this.searchText&&this.search(this.searchText)),!e&&this.sortList.length>0&&this.sort()}},{key:"ignoreNonSelected",value:function(){var e=this;this.showOnlySelected=!this.showOnlySelected,this.showOnlySelected?(this.isOnFilter=!0,this.filteredData=this.data.filter(function(t){return"undefined"!==typeof e.selected.find(function(n){return t[e.keyField]===n})})):this.isOnFilter=!1}},{key:"sort",value:function(){var e=this.getCurrentDisplayData();return e=this._sort(e),this}},{key:"page",value:function(e,t){return this.pageObj.end=e*t-1,this.pageObj.start=this.pageObj.end-(t-1),this}},{key:"edit",value:function(e,t,n){var r=this.getCurrentDisplayData(),o=void 0;return this.enablePagination?(r[this.pageObj.start+t][n]=e,o=r[this.pageObj.start+t][this.keyField]):(r[t][n]=e,o=r[t][this.keyField]),this.isOnFilter&&(this.data.forEach(function(t){t[this.keyField]===o&&(t[n]=e)},this),null!==this.filterObj&&this.filter(this.filterObj),null!==this.searchText&&this.search(this.searchText)),this}},{key:"addAtBegin",value:function(e){if(!e[this.keyField]||""===e[this.keyField].toString())throw new Error(this.keyField+" can't be empty value.");var t=this.getCurrentDisplayData();t.forEach(function(t){if(t[this.keyField].toString()===e[this.keyField].toString())throw new Error(this.keyField+" "+e[this.keyField]+" already exists")},this),t.unshift(e),this.isOnFilter&&this.data.unshift(e),this._refresh(!1)}},{key:"add",value:function(e){var t=this.isValidKey(e[this.keyField]);if(t)throw new Error(t);this.getCurrentDisplayData().push(e),this.isOnFilter&&this.data.push(e),this._refresh(!1)}},{key:"__isValidKey__REACT_HOT_LOADER__",value:function(e){var t=this;return null===e||void 0===e||""===e.toString()?this.keyField+" can't be empty value.":this.getCurrentDisplayData().find(function(n){return n[t.keyField].toString()===e.toString()})?this.keyField+" "+e+" already exists":void 0}},{key:"remove",value:function(e){var t=this,n=this.getCurrentDisplayData(),r=n.filter(function(n){return-1===e.indexOf(n[t.keyField])});this.isOnFilter?(this.data=this.data.filter(function(n){return-1===e.indexOf(n[t.keyField])}),this.filteredData=r):this.data=r}},{key:"filter",value:function(e){if(0===Object.keys(e).length)this.filteredData=null,this.isOnFilter=!1,this.filterObj=null,this.searchText&&this._search(this.data);else{var t=this.data;this.filterObj=e,this.searchText&&(this._search(t),t=this.filteredData),this._filter(t)}}},{key:"filterNumber",value:function(e,t,n){var r=!0;switch(n){case"=":e!=t&&(r=!1);break;case">":e<=t&&(r=!1);break;case">=":e<t&&(r=!1);break;case"<":e>=t&&(r=!1);break;case"<=":e>t&&(r=!1);break;case"!=":e==t&&(r=!1);break;default:console.error("Number comparator provided is not supported")}return r}},{key:"filterDate",value:function(e,t,n){if(!e)return!1;var r=t.getDate(),i=t.getMonth(),a=t.getFullYear();"object"!==("undefined"===typeof e?"undefined":o(e))&&(e=new Date(e));var s=e.getDate(),l=e.getMonth(),u=e.getFullYear(),c=!0;switch(n){case"=":r===s&&i===l&&a===u||(c=!1);break;case">":e<=t&&(c=!1);break;case">=":u<a?c=!1:u===a&&l<i?c=!1:u===a&&l===i&&s<r&&(c=!1);break;case"<":e>=t&&(c=!1);break;case"<=":u>a?c=!1:u===a&&l>i?c=!1:u===a&&l===i&&s>r&&(c=!1);break;case"!=":r===s&&i===l&&a===u&&(c=!1);break;default:console.error("Date comparator provided is not supported")}return c}},{key:"filterRegex",value:function(e,t){try{return new RegExp(t,"i").test(e)}catch(e){return!0}}},{key:"filterCustom",value:function(e,t,n,r){return null!==n&&"object"===("undefined"===typeof n?"undefined":o(n))?n.callback(e,n.callbackParameters):this.filterText(e,t,r)}},{key:"filterText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.FILTER_COND_LIKE;return e=null===e?"":e.toString(),t=t.toString(),n===s.default.FILTER_COND_EQ?e===t:(e=e.toLowerCase(),t=t.toLowerCase(),!(-1===e.indexOf(t)))}},{key:"filterArray",value:function(e,t){return t.indexOf(e)>-1}},{key:"search",value:function(e){if(""===e.trim())this.filteredData=null,this.isOnFilter=!1,this.searchText=null,this.filterObj&&this._filter(this.data);else{var t=this.data;this.searchText=e,this.filterObj&&(this._filter(t),t=this.filteredData),this._search(t)}}},{key:"_filter",value:function(e){var t=this,n=this.filterObj;this.filteredData=e.filter(function(e,r){var i=!0,a=void 0;for(var l in n){var u=e[l];switch(null!==u&&void 0!==u||(u=""),n[l].type){case s.default.FILTER_TYPE.NUMBER:a=n[l].value.number;break;case s.default.FILTER_TYPE.CUSTOM:a="object"===o(n[l].value)?void 0:"string"===typeof n[l].value?n[l].value.toLowerCase():n[l].value;break;case s.default.FILTER_TYPE.DATE:a=n[l].value.date;break;case s.default.FILTER_TYPE.REGEX:a=n[l].value;break;case s.default.FILTER_TYPE.ARRAY:if(a=n[l].value,!Array.isArray(a))throw new Error("Value must be an Array");break;default:a=n[l].value,void 0===a&&(a=n[l])}var c=void 0,p=void 0,f=void 0,h=void 0;switch(t.colInfos[l]&&(c=t.colInfos[l].format,p=t.colInfos[l].filterFormatted,f=t.colInfos[l].formatExtraData,h=t.colInfos[l].filterValue,p&&c?u=c(e[l],e,f,r):h&&(u=h(e[l],e))),n[l].type){case s.default.FILTER_TYPE.NUMBER:i=t.filterNumber(u,a,n[l].value.comparator);break;case s.default.FILTER_TYPE.DATE:i=t.filterDate(u,a,n[l].value.comparator);break;case s.default.FILTER_TYPE.REGEX:i=t.filterRegex(u,a);break;case s.default.FILTER_TYPE.CUSTOM:var d=n[l].props?n[l].props.cond:s.default.FILTER_COND_LIKE;i=t.filterCustom(u,a,n[l].value,d);break;case s.default.FILTER_TYPE.ARRAY:i=t.filterArray(u,a);break;default:n[l].type===s.default.FILTER_TYPE.SELECT&&p&&p&&c&&(a=c(a,e,f,r));var m=n[l].props?n[l].props.cond:s.default.FILTER_COND_LIKE;i=t.filterText(u,a,m)}if(!i)break}return i}),this.isOnFilter=!0}},{key:"_search",value:function(e){var t=this,n=void 0;n=this.multiColumnSearch||!this.strictSearch?this.searchText.trim().toLowerCase().split(/\s+/):[this.searchText.toLowerCase()];var r=n.length,o=r>1,i=o&&!this.strictSearch&&this.multiColumnSearch,a=o&&!this.strictSearch&&!this.multiColumnSearch;this.filteredData=e.filter(function(e,s){for(var l=Object.keys(e),u=o?n.slice():n,c=0,p=l.length;c<p;c++){var f=l[c],h=t.colInfos[f];if(h&&h.searchable){var d=h.format,m=h.filterFormatted,y=h.filterValue,g=h.formatExtraData,v=void 0;if(null!==(v=m&&d?d(e[f],e,g,s):y?y(e[f],e):e[f])&&"undefined"!==typeof v){v=v.toString().toLowerCase(),a&&r>u.length&&(u=n.slice());for(var _=u.length-1;_>-1;_--)if(-1!==v.indexOf(u[_])){if(i||1===u.length)return!0;u.splice(_,1)}else if(!t.multiColumnSearch)break}}}return!1}),this.isOnFilter=!0}},{key:"_sort",value:function(e){var t=this;return 0===this.sortList.length||"undefined"===typeof this.sortList[0]?e:(e.sort(function(e,n){for(var r=0,o=0;o<t.sortList.length;o++){var i=t.sortList[o],a=i.order.toLowerCase()===s.default.SORT_DESC,l=t.colInfos[i.sortField],u=l.sortFunc,c=l.sortFuncExtraData;if(u)r=u(e,n,i.order,i.sortField,c);else{var p=null==e[i.sortField]?"":e[i.sortField],f=null==n[i.sortField]?"":n[i.sortField];r=a?"string"===typeof f?f.localeCompare(p):p>f?-1:p<f?1:0:"string"===typeof p?p.localeCompare(f):p<f?-1:p>f?1:0}if(0!==r)return r}return r}),e)}},{key:"getDataIgnoringPagination",value:function(){return this.getCurrentDisplayData()}},{key:"get",value:function(){var e=this.getCurrentDisplayData();if(0===e.length)return e;if(("function"===typeof this.remote?this.remote(s.default.REMOTE)[s.default.REMOTE_PAGE]:this.remote)||!this.enablePagination)return e;for(var t=[],n=this.pageObj.start;n<=this.pageObj.end&&(t.push(e[n]),n+1!==e.length);n++);return t}},{key:"getKeyField",value:function(){return this.keyField}},{key:"getDataNum",value:function(){return this.getCurrentDisplayData().length}},{key:"isChangedPage",value:function(){return!(!this.pageObj.start||!this.pageObj.end)}},{key:"isEmpty",value:function(){return 0===this.data.length||null===this.data||void 0===this.data}},{key:"getAllRowkey",value:function(){var e=this;return this.data.map(function(t){return t[e.keyField]})}}]),e}();t.TableDataStore=l;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(l,"TableDataStore","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/store/TableDataStore.js")}()},function(e,t,n){"use strict";
1function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){var o="";if(0===e.length)return o;var i=[],a=0;t.forEach(function(e){e.row>a&&(a=e.row);for(var t=0;t<e.colSpan;t++)i.push(e)});for(var s=r?1:0,u=s;u<=a;u++)!function(e){o+=i.map(function(t){return t.row+(t.rowSpan-1)===e?'"'+t.header+'"':t.row===e&&t.rowSpan>1?"":void 0}).filter(function(e){return"undefined"!==typeof e}).join(n)+"\n"}(u);return t=t.filter(function(e){return void 0!==e.field}),e.map(function(e){t.map(function(r,i){var a=r.field,s=r.format,u=r.extraData,c=r.type,p="undefined"!==typeof s?s(e[a],e,u):e[a];p=c===l.default.CSV_NUMBER_TYPE?Number(p):'"'+p+'"',o+="undefined"!==typeof p?p:"",i+1<t.length&&(o+=n)}),o+="\n"}),o}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=r(i),s=n(4),l=r(s);if(a.default.canUseDOM())var u=n(276),c=u.saveAs;var p=function(e,t,n,r,i,a){var s=o(e,t,r,a);"undefined"!==typeof window&&(i=void 0===i||i,c(new Blob(["\ufeff",s],{type:"text/plain;charset=utf-8"}),n,i))},f=p;t.default=f;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(c,"saveAs","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/csv_export_util.js"),__REACT_HOT_LOADER__.register(o,"toString","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/csv_export_util.js"),__REACT_HOT_LOADER__.register(p,"exportCSV","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/csv_export_util.js"),__REACT_HOT_LOADER__.register(f,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/csv_export_util.js"))}()},function(e,t,n){"use strict";var r,o=o||function(e){if(!("undefined"===typeof e||"undefined"!==typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in r,i=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},a=/constructor/i.test(e.HTMLElement)||e.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent),l=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},u=function(e){var t=function(){"string"===typeof e?n().revokeObjectURL(e):e.remove()};setTimeout(t,4e4)},c=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var o=e["on"+t[r]];if("function"===typeof o)try{o.call(e,n||e)}catch(e){l(e)}}},p=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},f=function(t,l,f){f||(t=p(t));var h,d=this,m=t.type,y="application/octet-stream"===m,g=function(){c(d,"writestart progress write writeend".split(" "))};if(d.readyState=d.INIT,o)return h=n().createObjectURL(t),void setTimeout(function(){r.href=h,r.download=l,i(r),g(),u(h),d.readyState=d.DONE});!function(){if((s||y&&a)&&e.FileReader){var r=new FileReader;return r.onloadend=function(){var t=s?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,d.readyState=d.DONE,g()},r.readAsDataURL(t),void(d.readyState=d.INIT)}if(h||(h=n().createObjectURL(t)),y)e.location.href=h;else{e.open(h,"_blank")||(e.location.href=h)}d.readyState=d.DONE,g(),u(h)}()},h=f.prototype,d=function(e,t,n){return new f(e,t||e.name||"download",n)};return"undefined"!==typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=p(e)),navigator.msSaveOrOpenBlob(e,t)}:(h.abort=function(){},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,d)}}("undefined"!==typeof self&&self||"undefined"!==typeof window&&window||(void 0).content);"undefined"!==typeof e&&e.exports?e.exports.saveAs=o:null!==n(277)&&null!==n(278)&&void 0!==(r=function(){return o}.call(t,n,t,e))&&(e.exports=r);!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(o,"saveAs","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filesaver.js")}()},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1Object.defineProperty(t,"__esModule",{value:!0}),t.Filter=void 0;var a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(4),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=n(280),p=t.Filter=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.currentFilter={},n}return i(t,e),s(t,[{key:"handleFilter",value:function(e,t,n,r){var o=n||u.default.FILTER_TYPE.CUSTOM,i={cond:r.condition};if(null!==t&&"object"===("undefined"===typeof t?"undefined":a(t))){var s=!0;for(var l in t)if(!t[l]||""===t[l]){s=!1;break}s?this.currentFilter[e]={value:t,type:o,props:i}:delete this.currentFilter[e]}else t&&""!==t.trim()?this.currentFilter[e]={value:t.trim(),type:o,props:i}:delete this.currentFilter[e];this.emit("onFilterChange",this.currentFilter)}}]),t}(c.EventEmitter);!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(p,"Filter","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Filter.js")}()},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"===typeof e}function o(e){return"number"===typeof e}function i(e){return"object"===typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,o,s,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(n=this._events[e],a(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),u=n.slice(),o=u.length,l=0;l<o;l++)u[l].apply(this,s);return!0},n.prototype.addListener=function(e,t){var o;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(o=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"===typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit
1("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.sizeClass,r=e.children,i=o(e,["className","sizeClass","children"]);return p.default.createElement("div",l({className:"btn-group "+n+" "+t,role:"group"},i),r)}}]),t}(c.Component);d.propTypes={sizeClass:h.default.string,className:h.default.string},d.defaultProps={sizeClass:"btn-group-sm",className:""};var m=d;t.default=m;!function(){"undefined"!==typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(d,"ButtonGroup","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ButtonGroup.js"),__REACT_HOT_LOADER__.register(m,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ButtonGroup.js"))}()},function(e,t){},function(e,t){e.exports={container:"listview-module__container___3WGM-"}},function(e,t,n){"use strict";var r=n(285);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=n.n(a),l=n(1),u=n.n(l),c=n(139),p=n.n(c),f=n(21),h=n(37),d=n(22),m=n(286),y=n(293),g=n(80),v=n(23),_=n(140),b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),x=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={filterBoxOpen:!1,mapTypeBoxOpen:!1},n.handleToggleFilterClick=n.handleToggleFilterClick.bind(n),n}return i(t,e),b(t,[{key:"handleToggleFilterClick",value:function(e){var t=this;return function(n){return t.props.setActiveFilter(e)}}},{key:"isActiveFilter",value:function(e){var t=this.props.activeFilters;return 0===t.length||!t.includes(e)}},{key:"renderFilter",value:function(){var e=this;if(this.props.viewingFund)return null;if(!1===this.state.filterBoxOpen)return s.a.createElement("button",{className:p.a.headerButton+" "+p.a.filterButton,onClick:function(){return e.setState({filterBoxOpen:!0})}},s.a.createElement("span",null,"Filter"));var t=this.props.funds.map(function(t){return s.a.createElement("div",{key:t,className:p.a.filterItem},s.a.createElement("button",{"data-active":e.isActiveFilter(t),className:p.a.filterItemButton,onClick:e.handleToggleFilterClick(t)},s.a.createElement("img",{src:Object(g.a)(t),alt:t})),s.a.createElement("label",null,t))});return s.a.createElement("div",{className:p.a.filters},s.a.createElement("div",{className:p.a.filtersHeader},s.a.createElement("span",null,"Filter"),s.a.createElement("button",{onClick:function(){return e.setState({filterBoxOpen:!1})},className:p.a.filterCloseButton},"\xd7")),t)}},{key:"renderBasemapToggle",value:function(){var e=this.props,t=e.basemap,n=e.setBasemap,r=function(){n("ROADMAP"===t?"HYBRID":"ROADMAP")}
1,o="ROADMAP"===t?"Satellite":"Roads";return s.a.createElement("button",{onClick:r,className:p.a.headerButton},o)}},{key:"renderMapType",value:function(){var e=this;if(this.props.isInternal){if(!1===this.state.mapTypeBoxOpen)return s.a.createElement("button",{className:p.a.headerButton+" "+p.a.filterButton,onClick:function(){return e.setState({mapTypeBoxOpen:!0})}},s.a.createElement("span",null,"Map Type"));var t=Object.keys(_.a).map(function(t){var n=_.a[t].displayName;return s.a.createElement("div",{key:t,className:p.a.filterItem},s.a.createElement("button",{onClick:function(){return e.props.setMapType(t)},"data-active":e.props.mapType===t,disabled:e.props.mapType===t,className:p.a.mapTypeButton},n))});return s.a.createElement("div",{className:p.a.filters},s.a.createElement("div",{className:p.a.filtersHeader},s.a.createElement("span",null,"Map Type"),s.a.createElement("button",{onClick:function(){return e.setState({mapTypeBoxOpen:!1})},className:p.a.filterCloseButton},"\xd7")),t)}}},{key:"renderActiveFeatureName",value:function(){return this.props.activeFeature?s.a.createElement("p",{className:p.a.activeFeatureName},this.props.nameSelector(this.props.activeFeature)):"map"===this.props.activePage?null:"NSW"}},{key:"renderContent",value:function(){var e=this;return this.props.activeProject?null:this.props.searchBarVisible?s.a.createElement("div",{className:p.a.search},s.a.createElement(m.a,null)):s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:p.a.left},s.a.createElement("button",{className:""+p.a.searchButton,onClick:function(){return e.props.setSearchBarVisible(!0)}},s.a.createElement("img",{src:"/img/search-icon-white.svg",alt:"search icon"})),this.renderActiveFeatureName()),s.a.createElement("div",{className:p.a.right},this.renderBasemapToggle(),s.a.createElement("button",{className:p.a.headerButton,onClick:function(){e.props.setActiveFeature
1(null),e.props.setActivePage("map")}},s.a.createElement(y.a,null)),this.renderMapType(),this.renderFilter(),s.a.createElement("button",{onClick:function(){var t="list"===e.props.activePage?"map":"list";e.props.setActivePage(t)},"data-page":this.props.activePage,className:p.a.headerButton+" "+p.a.toggleButton})))}},{key:"render",value:function(){return s.a.createElement("div",{className:p.a.header},this.renderContent())}}]),t}(a.Component);x.propTypes={nameSelector:u.a.func.isRequired,setActiveFilter:u.a.func.isRequired,setActiveFeature:u.a.func.isRequired,setSearchBarVisible:u.a.func.isRequired,setActivePage:u.a.func.isRequired,activePage:u.a.string.isRequired,searchBarVisible:u.a.bool.isRequired,activeFilters:u.a.arrayOf(u.a.string),activeFeature:u.a.object,funds:u.a.arrayOf(u.a.string),activeProject:u.a.shape(v.c),viewingFund:u.a.string,isInternal:u.a.bool.isRequired,mapType:u.a.string.isRequired,basemap:u.a.string.isRequired,setMapType:u.a.func.isRequired,setBasemap:u.a.func.isRequired};var w=function(e){return{searchBarVisible:Object(d.p)(e),activeFilters:Object(d.c)(e),activePage:Object(d.e)(e),activeFeature:Object(d.b)(e),activeProject:Object(d.f)(e),funds:Object(d.g)(e),viewingFund:Object(d.r)(e),isInternal:Object(d.m)(e),mapType:Object(d.o)(e),basemap:Object(d.h)(e)}},E={setActiveFeature:h.a,setSearchBarVisible:h.h,setActiveFilter:h.b,setActivePage:h.c,setMapType:h.g,setBasemap:h.e};t.a=Object(f.b)(w,E)(x)},function(e,t,n){"use strict";var r=n(287);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=n.n(a),l=n(21),u=n(41),c=n(288),p=n(22),f=n(290),h=(n.n(f),n(291)),d=(n.n(h),n(37)),m=n(23),y=n(77),g=n.n(y),v=n(79),_=n.n(v),b=n(292),x=n.n(b),w=n(1),E=n.n(w),T=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),C=[143,-38,154,-28],S="https://api.mapbox.com/geocoding/v5/mapbox.places/{text}.json?country=au&&bbox="+C+"&access_token=pk.eyJ1Ijoic21hbGxtdWx0aXBsZXMiLCJhIjoiY2swZDRqNzF5MDQ4YzNub2M5OThkaXB2dyJ9.ezZI2kiNzsVANAvJVwUEHQ",k=function(e){return S.replace("{text}",e.replace(/\s/g,"+"))},A=function(e,t){return new Promise(function(n,r){n(t.filter(function(t){return t.Project.toLowerCase().includes(e.toLowerCase())}).map(function(e){return{value:e,label:e.Project}}))})},P=function(e){return fetch(k(e)).then(function(e){return e.json()}).then(function(e){return e.features.filter(function(e){return e.context.find(function(e){return"AU-NSW"===e.short_code})}).map(function(e){return{value:{isLocation:!0,place_name:e.place_name,center:e.center},label:e.place_name}})})},R=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.getOptions=e.getOptions.bind(e),e.handleOnChange=e.handleOnChange.bind(e),e.handleKeyDown=e.handleKeyDown.bind(e),e}return i(t,e),O(t,[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"handleOnChange",value:function(e){if(e){var t=e.value.isLocation?e.value.center:[e.value.Longitude,e.value.Latitude],n=this.props.geojson.features.find(function(e){return g()(_()(t),e)});
1this.props.setActiveFeature(n),this.props.setSearchBarVisible(!1),e.value.isLocation?this.props.setSearchedLocation(t):this.props.setActiveProject(e.value)}}},{key:"handleClickOutside",value:function(){this.props.setSearchBarVisible(!1)}},{key:"handleKeyDown",value:function(e){27===e.keyCode&&this.props.setSearchBarVisible(!1)}},{key:"getOptions",value:function(e){if(!e||e.length<2)return Promise.resolve({options:[]});var t=P(e),n=A(e,this.props.projects);return Promise.all([t,n]).then(function(e){var t=T(e,2),n=t[0];return{options:t[1].concat(n)}}).catch(function(e){return console.log(e)})}},{key:"optionsRenderer",value:function(e){return e?e.value.isLocation?e.label:s.a.createElement(s.a.Fragment,null,s.a.createElement("p",{style:{margin:"5px 0"}},e.label),s.a.createElement("strong",null,"Fund: ",e.value.fundName)):null}},{key:"renderInput",value:function(){return s.a.createElement(c.a,{autoFocus:!0,loadOptions:this.getOptions,value:null,onChange:this.handleOnChange,optionRenderer:this.optionsRenderer,filterOptions:function(e){return e},placeholder:"Search location or project"})}},{key:"render",value:function(){return s.a.createElement("div",{onKeyPress:this.handleKeyDown,className:"Search"},this.renderInput(),s.a.createElement("img",{className:"searchIcon",src:"/img/search-icon.svg",alt:"search icon black"}))}}]),t}(a.Component),D=function(e){return{projects:p.i(e),geojson:p.k(e)}},I={setActiveFeature:d.a,setSearchBarVisible:d.h,setSearchedLocation:d.i,setActiveProject:d.d};R.propTypes={setActiveFeature:E.a.func.isRequired,setActiveProject:E.a.func.isRequired,setSearchBarVisible:E.a.func.isRequired,setSearchedLocation:E.a.func.isRequired,projects:E.a.arrayOf(E.a.shape(m.c)),geojson:E.a.object.isRequired};var M=Object(u.d)(Object(l.b)(D,I),x.a);t.a=M(R)},function(e,t,n){"use strict";n.d(t,"a",function(){return q});var r=n(289),o=n.n(r),i=n(9),a=n.n(i),s=n(1),l=n.n(s),u=n(0),c=n.n(u),p=n(13),f=(n.n(p),function(e){var t=e.onMouseDown;return c.a.createElement("span",{className:"Select-arrow",onMouseDown:t})});f.propTypes={onMouseDown:l.a.func};var h=function(){return c.a.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}})},d=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g}
1,{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u
11EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],m=function(e){for(var t=0;t<d.length;t++)e=e.replace(d[t].letters,d[t].base);return e},y=function(e){return e.replace(/^\s+|\s+$/g,"")},g=function(e){return"undefined"!==typeof e&&null!==e&&""!==e},v=function(e,t,n,r){return r.ignoreAccents&&(t=m(t)),r.ignoreCase&&(t=t.toLowerCase()),r.trimFilter&&(t=y(t)),n&&(n=n.map(function(e){return e[r.valueKey]})),e.filter(function(e){if(n&&n.indexOf(e[r.valueKey])>-1)return!1;if(r.filterOption)return r.filterOption.call(void 0,e,t);if(!t)return!0;var o=e[r.valueKey],i=e[r.labelKey],a=g(o),s=g(i);if(!a&&!s)return!1;var l=a?String(o):null,u=s?String(i):null;return r.ignoreAccents&&(l&&"label"!==r.matchProp&&(l=m(l)),u&&"value"!==r.matchProp&&(u=m(u))),r.ignoreCase&&(l&&"label"!==r.matchProp&&(l=l.toLowerCase()),u&&"value"!==r.matchProp&&(u=u.toLowerCase())),"start"===r.matchPos?l&&"label"!==r.matchProp&&l.substr(0,t.length)===t||u&&"value"!==r.matchProp&&u.substr(0,t.length)===t:l&&"label"!==r.matchProp&&l.indexOf(t)>=0||u&&"value"!==r.matchProp&&u.indexOf(t)>=0})},_=function(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,o=e.instancePrefix,i=e.onFocus,s=e.onOptionRef,l=e.onSelect,u=e.optionClassName,p=e.optionComponent,f=e.optionRenderer,h=e.options,d=e.removeValue,m=e.selectValue,y=e.valueArray,g=e.valueKey,v=p;return h.map(function(e,p){var h=y&&y.some(function(t){return t[g]===e[g]}),_=e===t,b=a()(u,{"Select-option":!0,"is-selected":h,"is-focused":_,"is-disabled":e.disabled});return c.a.createElement(v,{className:b,focusOption:n,inputValue:r,instancePrefix:o,isDisabled:e.disabled,isFocused:_,isSelected:h,key:"option-"+p+"-"+e[g],onFocus:i,onSelect:l,option:e,optionIndex:p,ref:function(e){s(e,_)},removeValue:d,selectValue:m},f(e,p,r))})};_.propTypes={focusOption:l.a.func,focusedOption:l.a.object,inputValue:l.a.string,instancePrefix:l.a.string,onFocus:l.a.func,onOptionRef:l.a.func,onSelect:l.a.func,optionClassName:l.a.string,optionComponent:l.a.func,optionRenderer:l.a.func,options:l.a.array,removeValue:l.a.func,selectValue:l.a.func,valueArray:l.a.array,valueKey:l.a.string};var b=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},x="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w=(function(){function e(e){this.value=e}function t(t){function n(e,t){return new Promise(function(n,o){var s={key:e,arg:t,resolve:n,reject:o,next:null};a?a=a.next=s:(i=a=s,r(e,t))})}function r(n,i){try{var a=t[n](i),s=a.value;s instanceof e?Promise.resolve(s.value).then(function(e){r("next",e)},function(e){r("throw",e)}):o(a.done?"return":"normal",a.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":i.resolve({value:t,done:!0});break;case"throw":i.reject(t);break;default:i.resolve({value:t,done:!1})}i=i.next,i?r(i.key,i.arg):a=null}var i,a;this._invoke=n,"function"!==typeof t.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),T=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},S=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},k=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},A=function(e){function t(e){w(this,t);var n=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return C(t,e),E(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,r=e.optionIndex,o=a()(this.props.className,t.className);return t.disabled?c.a.createElement("div",{className:o,onMouseDown:b,onClick:b},this.props.children):c.a.createElement("div",{className:o,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+r,title:t.title},this.props.children)}}]),t}(c.a.Component);A.propTypes={children:l.a.node,className:l.a.string,instancePrefix:l.a.string.isRequired,isDisabled:l.a.bool,isFocused:l.a.bool,isSelected:l.a.bool,onFocus:l.a.func,onSelect:l.a.func,onUnfocus:l.a.func,option:l.a.object.isRequired,optionIndex:l.a.number};var P=function(e){function t(e){w(this,t);var n=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return C(t,e),E(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return c.a.createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"\xd7")}},{key:"renderLabel",value:function(){return this.props.onClick||this.props.value.href?c.a.createElement("a",{className:"Select-value-label",href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):c.a.createElement("span",{className:"Select-value-label",role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return c.a.createElement("div",{className:a()("Select-value",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(c.a.Component);P.propTypes={children:l.a.node,disabled:l.a.bool,id:l.a.string,onClick:l.a.func,onRemove:l.a.func,value:l.a.object.isRequired};var R=function(e){return"string"===typeof e?e:null!==e&&JSON.stringify(e)||""},D=l.a.oneOfType([l.a.string,l.a.node]),I=l.a.oneOfType([l.a.string,l.a.number]),M=1,L=function(e,t){var n=e.inputValue,r=e.isPseudoFocused,o=e.isFocused,i=t.onSelectResetsInput;return!n||!i&&!(!o&&r||o&&!r)},j=function(e,t,n){var r=e.inputValue,o=e.isPseudoFocused,i=e.isFocused,a=t.onSelectResetsInput;return!r||!a&&!n&&!o&&!i},z=function(e,t){var n="undefined"===typeof e?"undefined":x(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var r=t.options,o=t.valueKey;if(r)for(var i=0;i<r.length;i++)if(String(r[i][o])===String(e))return r[i]},F=function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},N=function(e){function t(e){w(this,t);var n=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return["clearValue","focusOption","getOptionLabel","handleInputBlur","handleInputChange","handleInputFocus","handleInputValueChange","handleKeyDown","handleMenuScroll","handleMouseDown","handleMouseDownOnArrow","handleMouseDownOnMenu","handleTouchEnd","handleTouchEndClearValue","handleTouchMove","handleTouchOutside","handleTouchStart","handleValueClick","onOptionRef","removeValue","selectValue"].forEach(function(e){return n[e]=n[e].bind(n)}),n.state={inputValue:"",isFocused:!1,isOpen:!1,isPseudoFocused:!1,required:!1},n}
1return C(t,e),E(t,[{key:"componentWillMount",value:function(){this._instancePrefix="react-select-"+(this.props.instanceId||++M)+"-";var e=this.getValueArray(this.props.value);this.props.required&&this.setState({required:F(e[0],this.props.multi)})}},{key:"componentDidMount",value:function(){"undefined"!==typeof this.props.autofocus&&"undefined"!==typeof console&&console.warn("Warning: The autofocus prop has changed to autoFocus, support will be removed after [email protected]"),(this.props.autoFocus||this.props.autofocus)&&this.focus()}},{key:"componentWillReceiveProps",value:function(e){var t=this.getValueArray(e.value,e);e.required?this.setState({required:F(t[0],e.multi)}):this.props.required&&this.setState({required:!1}),this.state.inputValue&&this.props.value!==e.value&&e.onSelectResetsInput&&this.setState({inputValue:this.handleInputValueChange("")})}},{key:"componentDidUpdate",value:function(e,t){if(this.menu&&this.focused&&this.state.isOpen&&!this.hasScrolledToOption){var n=Object(p.findDOMNode)(this.focused),r=Object(p.findDOMNode)(this.menu),o=r.scrollTop,i=o+r.offsetHeight,a=n.offsetTop,s=a+n.offsetHeight;(o>a||i<s)&&(r.scrollTop=n.offsetTop),this.hasScrolledToOption=!0}else this.state.isOpen||(this.hasScrolledToOption=!1);if(this._scrollToFocusedOptionOnUpdate&&this.focused&&this.menu){this._scrollToFocusedOptionOnUpdate=!1;var l=Object(p.findDOMNode)(this.focused),u=Object(p.findDOMNode)(this.menu),c=l.getBoundingClientRect(),f=u.getBoundingClientRect();c.bottom>f.bottom?u.scrollTop=l.offsetTop+l.clientHeight-u.offsetHeight:c.top<f.top&&(u.scrollTop=l.offsetTop)}if(this.props.scrollMenuIntoView&&this.menuContainer){var h=this.menuContainer.getBoundingClientRect();window.innerHeight<h.bottom+this.props.menuBuffer&&window.scrollBy(0,h.bottom+this.props.menuBuffer-window.innerHeight)}if(e.disabled!==this.props.disabled&&(this.setState({isFocused:!1}),this.closeMenu()),t.isOpen!==this.state.isOpen){this.toggleTouchOutsideEvent(this.state.isOpen);var d=this.state.isOpen?this.props.onOpen:this.props.onClose;d&&d()}}},{key:"componentWillUnmount",value:function(){this.toggleTouchOutsideEvent(!1)}},{key:"toggleTouchOutsideEvent",value:function(e){e?!document.addEventListener&&document.attachEvent?document.attachEvent("ontouchstart",this.handleTouchOutside):document.addEventListener("touchstart",this.handleTouchOutside):!document.removeEventListener&&document.detachEvent?document.detachEvent("ontouchstart",this.handleTouchOutside):document.removeEventListener("touchstart",this.handleTouchOutside)}},{key:"handleTouchOutside",value:function(e){this.wrapper&&!this.wrapper.contains(e.target)&&this.closeMenu()}},{key:"focus",value:function(){this.input&&this.input.focus()}},{key:"blurInput",value:function(){this.input&&this.input.blur()}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchEndClearValue",value:function(e){this.dragging||this.clearValue(e)}},{key:"handleMouseDown",value:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button)){if("INPUT"===e.target.tagName)return void(this.state.isFocused?this.state.isOpen||this.setState({isOpen:!0,isPseudoFocused:!1}):(this._openAfterFocus=this.props.openOnClick,this.focus()));if(e.preventDefault(),!this.props.searchable)return this.focus(),this.setState({isOpen:!this.state.isOpen});if(this.state.isFocused){this.focus();var t=this.input,n=!0;"function"===typeof t.getInput&&(t=t.getInput()),t.value="",this._focusAfterClear&&(n=!1,this._focusAfterClear=!1),this.setState({isOpen:n,isPseudoFocused:!1,focusedOption:null})}else this._openAfterFocus=this.props.openOnClick,this.focus(),this.setState({focusedOption:null})}}},{key:"handleMouseDownOnArrow",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(this.state.isOpen?(e.stopPropagation(),e.preventDefault(),this.closeMenu()):this.setState({isOpen:!0}))}},{key:"handleMouseDownOnMenu",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this._openAfterFocus=!0,this.focus())}},{key:"closeMenu",value:function(){this.props.onCloseResetsInput?this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}),this.hasScrolledToOption=!1}},{key:"handleInputFocus",value:function(e){if(!this.props.disabled){var t=this.state.isOpen||this._openAfterFocus||this.props.openOnFocus;t=!this._focusAfterClear&&t,this.props.onFocus&&this.props.onFocus(e),this.setState({isFocused:!0,isOpen:!!t}),this._focusAfterClear=!1,this._openAfterFocus=!1}}},{key:"handleInputBlur",value:function(e){if(this.menu&&(this.menu===document.activeElement||this.menu.contains(document.activeElement)))return void this.focus();this.props.onBlur&&this.props.onBlur(e);var t={isFocused:!1,isOpen:!1,isPseudoFocused:!1};this.props.onBlurResetsInput&&(t.inputValue=this.handleInputValueChange("")),this.setState(t)}},{key:"handleInputChange",value:function(e){var t=e.target.value;this.state.inputValue!==e.target.value&&(t=this.handleInputValueChange(t)),this.setState({inputValue:t,isOpen:!0,isPseudoFocused:!1})}},{key:"setInputValue",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==("undefined"===typeof t?"undefined":x(t))&&(e=""+t)}this.setState({inputValue:e})}},{key:"handleInputValueChange",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==("undefined"===typeof t?"undefined":x(t))&&(e=""+t)}return e}},{key:"handleKeyDown",value:function(e){if(!this.props.disabled&&("function"!==typeof this.props.onInputKeyDown||(this.props.onInputKeyDown(e),!e.defaultPrevented)))switch(e.keyCode){case 8:!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue());break;case 9:if(e.shiftKey||!this.state.isOpen||!this.props.tabSelectsValue)break;e.preventDefault(),this.selectFocusedOption();break;case 13:e.preventDefault(),e.stopPropagation(),this.state.isOpen?this.selectFocusedOption():this.focusNextOption();break;case 27:e.preventDefault(),this.state.isOpen?(this.closeMenu(),e.stopPropagation()):this.props.clearable&&this.props.escapeClearsValue&&(this.clearValue(e),e.stopPropagation());break;case 32:if(this.props.searchable)break;
1if(e.preventDefault(),!this.state.isOpen){this.focusNextOption();break}e.stopPropagation(),this.selectFocusedOption();break;case 38:e.preventDefault(),this.focusPreviousOption();break;case 40:e.preventDefault(),this.focusNextOption();break;case 33:e.preventDefault(),this.focusPageUpOption();break;case 34:e.preventDefault(),this.focusPageDownOption();break;case 35:if(e.shiftKey)break;e.preventDefault(),this.focusEndOption();break;case 36:if(e.shiftKey)break;e.preventDefault(),this.focusStartOption();break;case 46:!this.state.inputValue&&this.props.deleteRemoves&&(e.preventDefault(),this.popValue())}}},{key:"handleValueClick",value:function(e,t){this.props.onValueClick&&this.props.onValueClick(e,t)}},{key:"handleMenuScroll",value:function(e){if(this.props.onMenuScrollToBottom){var t=e.target;t.scrollHeight>t.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n="object"===("undefined"===typeof t?"undefined":x(t))?t:this.props;if(n.multi){if("string"===typeof e&&(e=e.split(n.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return z(e,n)}).filter(function(e){return e})}var r=z(e,n);return r?[r]:[]}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var n=F(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map(function(e){return e[t.props.valueKey]}).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var n=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect},function(){t.getValueArray(t.props.value).some(function(n){return n[t.props.valueKey]===e[t.props.valueKey]})?t.removeValue(e):t.addValue(e)}):this.setState({inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},function(){t.setValue(e)})}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),n=this._visibleOptions.filter(function(e){return!e.disabled}),r=n.indexOf(e);this.setValue(t.concat(e)),n.length-1===r?this.focusOption(n[r-1]):n.length>r&&this.focusOption(n[r+1])}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter(function(n){return n[t.props.valueKey]!==e[t.props.valueKey]})),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){var n={focu
1sedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};return this.props.onSelectResetsInput&&(n.inputValue=""),void this.setState(n)}if(t.length){for(var r=-1,o=0;o<t.length;o++)if(this._focusedOption===t[o].option){r=o;break}if("next"===e&&-1!==r)r=(r+1)%t.length;else if("previous"===e)r>0?r-=1:r=t.length-1;else if("start"===e)r=0;else if("end"===e)r=t.length-1;else if("page_up"===e){var i=r-this.props.pageSize;r=i<0?0:i}else if("page_down"===e){var a=r+this.props.pageSize;r=a>t.length-1?t.length-1:a}-1===r&&(r=0),this.setState({focusedIndex:t[r].index,focusedOption:t[r].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return c.a.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},c.a.createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!e.length){return j(this.state,this.props,t)?c.a.createElement("div",{className:"Select-placeholder"},this.props.placeholder):null}var i=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return c.a.createElement(o,{disabled:n.props.disabled||!1===e.clearableValue,id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,key:"value-"+t+"-"+e[n.props.valueKey],onClick:i,onRemove:n.removeValue,placeholder:n.props.placeholder,value:e},r(e,t),c.a.createElement("span",{className:"Select-aria-only"},"\xa0"))}):L(this.state,this.props)?(t&&(i=null),c.a.createElement(o,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:i,placeholder:this.props.placeholder,value:e[0]},r(e[0]))):void 0}},{key:"renderInput",value:function(e,t){var n,r=this,i=a()("Select-input",this.props.inputProps.className),s=this.state.isOpen,l=a()((n={},T(n,this._instancePrefix+"-list",s),T(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),u=this.state.inputValue;!u||this.props.onSelectResetsInput||this.state.isFocused||(u="");var p=O({},this.props.inputProps,{"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+s,"aria-haspopup":""+s,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":l,className:i,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:u});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var f=S(this.props.inputProps,[]),h=a()(T({},this._instancePrefix+"-list",s));return c.a.createElement("div",O({},f,{"aria-expanded":s,"aria-owns":h,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:i,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?c.a.createElement(o.a,O({id:this.props.id},p,{minWidth:"5"})):c.a.createElement("div",{className:i,key:"input-wrap",style:{display:"inline-block"}},c.a.createElement("input",O({id:this.props.id},p)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,n=this.props.clearRenderer();return c.a.createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},n)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?c.a.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){return("function"===typeof this.props.filterOptions?this.props.filterOptions:v)(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey})}return n}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?c.a.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return R(e[t.props.valueKey])}).join(this.props.delimiter);return c.a.createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:n})}return e.map(function(e,n){return c.a.createElement("input",{disabled:t.props.disabled,key:"hidden."+n,name:t.props.name,ref:"value"+n,type:"hidden",value:R(e[t.props.valueKey])})})}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,r=this.state.focusedOption||e;if(r&&!r.disabled){var o=-1;if(t.some(function(e,t){var i=e[n]===r[n];return i&&(o=t),i}),-1!==o)return o}for(var i=0;i<t.length;i++)if(!t[i].disabled)return i;return null}},{key:"renderOuter",value:function(e,t,n){var r=this,o=this.renderMenu(e,t,n);return o?c.a.createElement("div",{ref:function(e){return r.menuContainer=e},className:"Select-menu-outer",style:this.props.menuContainerStyle},c.a.createElement("div",{className:"Select-menu",id:this._instancePrefix+"-list",onMouseDown:this.handleMouseDownOnMenu,onScroll:this.handleMenuScroll,ref:function(e){return r.menu=e},role:"listbox",style:this.props.menuStyle,tabIndex:-1},o)):null}},{key:"render",value:function(){var e=this,t=this.getValueArray(this.props.value),n=this._visibleOptions=this.filterOptions(this.props.multi&&this.props.removeSelected?t:null),r=this.state.isOpen;this.props.multi&&!n.length&&t.length&&!this.state.inputValue&&(r=!1);var o=this.getFocusableOptionIndex(t[0]),i=null;i=this._focusedOption=null!==o?n[o]:null;var s=a()("Select",this.props.className,{"has-value":t.length,"is-clearable":this.props.clearable,"is-disabled":this.props.disabled,"is-focused":this.state.isFocused,"is-loading":this.props.isLoading,"is-open":r,"is-pseudo-focused":this.state.isPseudoFocused,"is-searchable":this.props.searchable,"Select--multi":this.props.multi,"Select--rtl":this.props.rtl,"Select--single":!this.props.multi}),l=null;return this.props.multi&&!this.props.disabled&&t.length&&!this.state.inputValue&&this.state.isFocused&&this.props.backspaceRemoves&&(l=c.a.createElement("span",{id:this._instancePrefix+"-backspace-remove-message",className:"Select-aria-only","aria-live":"assertive"},this.props.backspaceToRemoveMessage.replace("{label}",t[t.length-1][this.props.labelKey]))),c.a.createElement("div",{ref:function(t){return e.wrapper=t},className:s,style:this.props.wrapperStyle},this.renderHiddenField(t),c.a.createElement("div",{ref:function(t){return e.control=t},className:"Select-control",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleTouchEnd,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,style:this.props.style},c.a.createElement("span",{className:"Select-multi-value-wrapper",id:this._instancePrefix+"-value"},this.renderValue(t,r),this.renderInput(t,o)),l,this.renderLoading(),this.renderClear(),this.renderArrow()),r?this.renderOuter(n,t,i):null)}}]),t}(c.a.Component);N.propTypes={"aria-describedby":l.a.string,"aria-label":l.a.string,"aria-labelledby":l.a.string,arrowRenderer:l.a.func,autoBlur:l.a.bool,autoFocus:l.a.bool,autofocus:l.a.bool,autosize:l.a.bool,backspaceRemoves:l.a.bool,backspaceToRemoveMessage:l.a.string,className:l.a.string,clearAllText:D,clearRenderer:l.a.func,clearValueText:D,clearable:l.a.bool,closeOnSelect:l.a.bool,deleteRemoves:l.a.bool,delimiter:l.a.string,disabled:l.a.bool,escapeClearsValue:l.a.bool,filterOption:l.a.func,filterOptions:l.a.any,id:l.a.string,ignoreAccents:l.a.bool,ignoreCase:l.a.bool,inputProps:l.a.object,inputRenderer:l.a.func,instanceId:l.a.string,isLoading:l.a.bool,joinValues:l.a.bool,labelKey:l.a.string,matchPos:l.a.string,matchProp:l.a.string,menuBuffer:l.a.number,menuContainerStyle:l.a.object,menuRenderer:l.a.func,menuStyle:l.a.object,multi:l.a.bool,name:l.a.string,noResultsText:D,onBlur:l.a.func,onBlurResetsInput:l.a.bool,onCh
1ange:l.a.func,onClose:l.a.func,onCloseResetsInput:l.a.bool,onFocus:l.a.func,onInputChange:l.a.func,onInputKeyDown:l.a.func,onMenuScrollToBottom:l.a.func,onOpen:l.a.func,onSelectResetsInput:l.a.bool,onValueClick:l.a.func,openOnClick:l.a.bool,openOnFocus:l.a.bool,optionClassName:l.a.string,optionComponent:l.a.func,optionRenderer:l.a.func,options:l.a.array,pageSize:l.a.number,placeholder:D,removeSelected:l.a.bool,required:l.a.bool,resetValue:l.a.any,rtl:l.a.bool,scrollMenuIntoView:l.a.bool,searchable:l.a.bool,simpleValue:l.a.bool,style:l.a.object,tabIndex:I,tabSelectsValue:l.a.bool,trimFilter:l.a.bool,value:l.a.any,valueComponent:l.a.func,valueKey:l.a.string,valueRenderer:l.a.func,wrapperStyle:l.a.object},N.defaultProps={arrowRenderer:f,autosize:!0,backspaceRemoves:!0,backspaceToRemoveMessage:"Press backspace to remove {label}",clearable:!0,clearAllText:"Clear all",clearRenderer:h,clearValueText:"Clear value",closeOnSelect:!0,deleteRemoves:!0,delimiter:",",disabled:!1,escapeClearsValue:!0,filterOptions:v,ignoreAccents:!0,ignoreCase:!0,inputProps:{},isLoading:!1,joinValues:!1,labelKey:"label",matchPos:"any",matchProp:"any",menuBuffer:0,menuRenderer:_,multi:!1,noResultsText:"No results found",onBlurResetsInput:!0,onCloseResetsInput:!0,onSelectResetsInput:!0,openOnClick:!0,optionComponent:A,pageSize:5,placeholder:"Select...",removeSelected:!0,required:!1,rtl:!1,scrollMenuIntoView:!0,searchable:!0,simpleValue:!1,tabSelectsValue:!0,trimFilter:!0,valueComponent:P,valueKey:"value"};var B={autoload:l.a.bool.isRequired,cache:l.a.any,children:l.a.func.isRequired,ignoreAccents:l.a.bool,ignoreCase:l.a.bool,loadOptions:l.a.func.isRequired,loadingPlaceholder:l.a.oneOfType([l.a.string,l.a.node]),multi:l.a.bool,noResultsText:l.a.oneOfType([l.a.string,l.a.node]),onChange:l.a.func,onInputChange:l.a.func,options:l.a.array.isRequired,placeholder:l.a.oneOfType([l.a.string,l.a.node]),searchPromptText:l.a.oneOfType([l.a.string,l.a.node]),value:l.a.any},U={},V=function(e){return c.a.createElement(N,e)},H={autoload:!0,cache:U,children:V,ignoreAccents:!0,ignoreCase:!0,loadingPlaceholder:"Loading...",options:[],searchPromptText:"Type to search"},q=function(e){function t(e,n){w(this,t);var r=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r._cache=e.cache===U?{}:e.cache,r.state={inputValue:"",isLoading:!1,options:e.options},r.onInputChange=r.onInputChange.bind(r),r}return C(t,e),E(t,[{key:"componentDidMount",value:function(){this.props.autoload&&this.loadOptions("")}},{key:"componentWillReceiveProps",value:function(e){e.options!==this.props.options&&this.setState({options:e.options})}},{key:"componentWillUnmount",value:function(){this._callback=null}},{key:"loadOptions",value:function(e){var t=this,n=this.props.loadOptions,r=this._cache;if(r&&Object.prototype.hasOwnProperty.call(r,e))return this._callback=null,void this.setState({isLoading:!1,options:r[e]});var o=function n(o,i){var a=i&&i.options||[];r&&(r[e]=a),n===t._callback&&(t._callback=null,t.setState({isLoading:!1,options:a}))};this._callback=o;var i=n(e,o);i&&i.then(function(e){return o(0,e)},function(e){return o()}),this._callback&&!this.state.isLoading&&this.setState({isLoading:!0})}},{key:"onInputChange",value:function(e){var t=this.props,n=t.ignoreAccents,r=t.ignoreCase,o=t.onInputChange,i=e;if(o){var a=o(i);null!=a&&"object"!==("undefined"===typeof a?"undefined":x(a))&&(i=""+a)}var s=i;return n&&(s=m(s)),r&&(s=s.toLowerCase()),this.setState({inputValue:i}),this.loadOptions(s),i}},{key:"noResultsText",value:function(){var e=this.props,t=e.loadingPlaceholder,n=e.noResultsText,r=e.searchPromptText,o=this.state,i=o.inputValue;return o.isLoading?t:i&&n?n:r}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.loadingPlaceholder,o=t.placeholder,i=this.state,a=i.isLoading,s=i.options,l={noResultsText:this.noResultsText(),placeholder:a?r:o,options:a&&r?[]:s,ref:function(t){return e.select=t}};return n(O({},this.props,l,{isLoading:a,onInputChange:this.onInputChange}))}}]),t}(u.Component);q.propTypes=B,q.defaultProps=H;var G=function(e){function t(e,n){w(this,t);var r=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.filterOptions=r.filterOptions.bind(r),r.menuRenderer=r.menuRenderer.bind(r),r.onInputKeyDown=r.onInputKeyDown.bind(r),r.onInputChange=r.onInputChange.bind(r),r.onOptionSelect=r.onOptionSelect.bind(r),r}return C(t,e),E(t,[{key:"createNewOption",value:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,r=e.onNewOptionClick,o=e.options,i=void 0===o?[]:o;if(t({label:this.inputValue})){var a=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey});this.isOptionUnique({option:a,options:i})&&(r?r(a):(i.unshift(a),this.select.selectValue(a)))}}},{key:"filterOptions",value:function(){var e=this.props,t=e.filterOptions,n=e.isValidNewOption,r=e.promptTextCreator,o=(arguments.length<=2?void 0:arguments[2])||[],i=t.apply(void 0,arguments)||[];if(n({label:this.inputValue})){var a=this.props.newOptionCreator,s=a({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey});if(this.isOptionUnique({option:s,options:o.concat(i)})){var l=r(this.inputValue);this._createPlaceholderOption=a({label:l,labelKey:this.labelKey,valueKey:this.valueKey}),i.unshift(this._createPlaceholderOption)}}return i}},{key:"isOptionUnique",value:function(e){var t=e.option,n=e.options,r=this.props.isOptionUnique;return n=n||this.props.options,r({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})}},{key:"menuRenderer",value:function(e){return(0,this.props.menuRenderer)(O({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))}},{key:"onInputChange",value:function(e){var t=this.props.onInputChange;return this.inputValue=e,t&&(this.inputValue=t(e)),this.inputValue}},{key:"onInputKeyDown",value:function(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,r=t.onInputKeyDown,o=this.select.getFocusedOption();o&&o===this._createPlaceholderOption&&n({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):r&&r(e)}},{key:"onOptionSelect",value:function(e){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.ref,r=S(t,["ref"]),o=this.props.children;return o||(o=W),o(O({},r,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey),n&&n(t)}}))}}]),t}(c.a.Component),W=function(e){return c.a.createElement(N,e)},Z=function(e){var t=e.option,n=e.options,r=e.labelKey,o=e.valueKey;return!n||!n.length||0===n.filter(function(e){return e[r]===t[r]||e[o]===t[o]}).length},K=function(e){return!!e.label},X=function(e){var t=e.label,n=e.labelKey,r=e.valueKey,o={};return o[r]=t,o[n]=t,o.className="Select-create-option-placeholder",o},Y=function(e){return'Create option "'+e+'"'},J=function(e){switch(e.keyCode){case 9:case 13:case 188:return!0;default:return!1}};G.isOptionUnique=Z,G.isValidNewOption=K,G.newOptionCreator=X,G.promptTextCreator=Y,G.shouldKeyDownEventCreateNewOption=J,G.defaultProps={f
1ilterOptions:v,isOptionUnique:Z,isValidNewOption:K,menuRenderer:_,newOptionCreator:X,promptTextCreator:Y,shouldKeyDownEventCreateNewOption:J},G.propTypes={children:l.a.func,filterOptions:l.a.any,isOptionUnique:l.a.func,isValidNewOption:l.a.func,menuRenderer:l.a.any,newOptionCreator:l.a.func,onInputChange:l.a.func,onInputKeyDown:l.a.func,onNewOptionClick:l.a.func,options:l.a.array,promptTextCreator:l.a.func,ref:l.a.func,shouldKeyDownEventCreateNewOption:l.a.func};var $=function(e){function t(){return w(this,t),k(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return C(t,e),E(t,[{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this;return c.a.createElement(q,this.props,function(t){var n=t.ref,r=S(t,["ref"]),o=n;return c.a.createElement(G,r,function(t){var n=t.ref,r=S(t,["ref"]),i=n;return e.props.children(O({},r,{ref:function(t){i(t),o(t),e.select=t}}))})})}}]),t}(c.a.Component),Q=function(e){return c.a.createElement(N,e)};$.propTypes={children:l.a.func.isRequired},$.defaultProps={children:Q},N.Async=q,N.AsyncCreatable=$,N.Creatable=G,N.Value=P,N.Option=A},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=r(c),f=n(1),h=r(f),d={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},m=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],y=function(e){return m.forEach(function(t){return delete e[t]}),e},g=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},v=!("undefined"===typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),_=function(){return v?"_"+Math.random().toString(36).substr(2,12):void 0},b=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"===typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||_()},n}return s(t,e),u(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||_()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"===typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(g(e,this.sizer),this.placeHolderSizer&&g(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&"undefined"!==typeof this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2;e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0,e<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return v&&e?p.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce(function(e,t){return null!==e&&void 0!==e?e:t}),t=l({},this.props.style);t.display||(t.display="inline-block");var n=l({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),r=o(this.props,[]);return y(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,p.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),p.default.createElement("input",l({},r,{ref:this.inputRef})),p.default.createElement("div",{ref:this.sizerRef,style:d},e),this.props.placeholder?p.default.createElement("div",{ref:this.placeHolderSizerRef,style:d},this.props.placeholder):null)}}]),t}(c.Component);b.propTypes={className:h.default.string,defaultValue:h.default.any,extraWidth:h.default.oneOfType([h.default.number,h.default.string]),id:h.default.string,injectStyles:h.default.bool,inputClassName:h.default.string,inputRef:h.default.func,inputStyle:h.default.object,minWidth:h.default.oneOfType([h.default.number,h.default.string]),onAutosize:h.default.func,onChange:h.default.func,placeholder:h.default.string,placeholderIsMinWidth:h.default.bool,style:h.default.object,value:h.default.any},b.defaultProps={minWidth:1,injectStyles:!0},t.default=b},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(101),c=n(0),p=n(13);
1e.exports=function(e){var t=e.displayName||e.name,n=function(t){function n(e){o(this,n);var t=i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.handleClickOutside=t.handleClickOutside.bind(t),t}return a(n,t),l(n,[{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleClickOutside,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleClickOutside,!0)}},{key:"handleClickOutside",value:function(e){var t=this.__domNode;t&&t.contains(e.target)||!this.__wrappedInstance||"function"!==typeof this.__wrappedInstance.handleClickOutside||this.__wrappedInstance.handleClickOutside(e)}},{key:"render",value:function(){var t=this,n=this.props,o=n.wrappedRef,i=r(n,["wrappedRef"]);return c.createElement(e,s({},i,{ref:function(e){t.__wrappedInstance=e,t.__domNode=p.findDOMNode(e),o&&o(e)}}))}}]),n}(c.Component);return n.displayName="clickOutside("+t+")",u(n,e)}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(139),a=n.n(i),s=function(e){return o.a.createElement("svg",{className:a.a.nswSvg,width:35,viewBox:"0 0 35 26",cursor:"pointer"},o.a.createElement("path",{d:"M23.29 19.9l-.032.028-.031.022-.04.024-.022.005-.027.001-.201-.029-.022.004-.017.004-.04.04-.012.03-.012.008-.02.007-.016-.004-.04-.023-.018-.003-.017.003-.015.006-.022.016-.012.016-.044.066-.017.022-.016.016-.014.008-.011.01-.008.01-.003.014.009.016.005.015.004.016-.023.034-.006.014-.001.007.011.034.013.019.006.01.009.032-.003.022-.01.03-.037.08-.007.024.002.015-.014.028-.08.026-.02.023-.011.028.002.057.034.15.014.084-.001.045-.022.078-.003.016.003.032.027.107.002.034-.006.034-.009.033-.005.015-.008.012-.012.01-.027.015-.012.01-.011.01-.008.01-.018.027-.017.04-.008.014-.01.012-.011.009-.016.004h-.018l-.015-.006-.068-.037-.16-.045-.029-.015-.011-.009-.011-.01-.02-.021-.042-.078-.018-.059-.024-.155-.003-.055-.01-.026-.013-.015-.018-.001-.017.004-.012.009-.01.01-.014.028-.01.009-.015.004-.016-.003-.014-.006-.014-.009-.092-.075-.01-.012-.008-.015-.004-.022v-.02l.001-.034-.001-.016-.008-.012-.037-.028-.007-.023.001-.04.02-.083.006-.042.001-.03-.028-.087-.008-.12.003-.036.037-.127.01-.07.007-.022.037-.077.006-.029v-.02l-.005-.014-.004-.015-.003-.016.001-.018.007-.018.014-.024.024-.029.023-.02.314-.179.453-.285.067-.017.146.085.014.01.012.013.008.02.003.017-.003.03v.01l.002.014.004.013.013.014.02.01.039.01.024.002.023.003.015.01.008.02v.016l-.002.016v.016l.013.015.024.015.14.055.027.007.024.003.062.02.136.06.013.007.003.01v.007zm-1.183-3.895l.02-.012.014.002.02.006.031.004.06-.013.095-.055.065-.009-.03.046-.11.054-.032.053.015.05.034.056.014.036-.043-.008-.021-.011-.013-.017-.051-.111-.02-.022-.023.107-.028.039-.027-.01-.01-.071.04-.114zm.323-3.455l.022-.024.08-.06.056-.064.033-.03.04-.022.052-.01.053.006.026.018.02.02.035.013-.008-.068.034-.09.055-.085.052-.043-.042.204.004.063h.02l.045-.039.034.031-.007.054-.082.028-.039.002-.026.007-.022.015-.028.025-.042.012-.031-.03-.026-.043-.025-.024-.076.015.003.068.042.08.04.056.11.075.015.019-.013.027h-.027l-.032-.017-.023-.02-.043.027-.013.03.016.03.04.027.026.006.063.002.024.01.019.03-.003.021-.01.02-.006.017v.189l-.016.054-.03.024-.027-.012-.002-.056.013-.043.013-.07.004-.07-.01-.046-.048-.025-.13-.016-.051-.035.046-.044.006-.053-.03-.028-.059.031-.034-.084-.003-.031h-.02l-.026.03-.027-.017-.015-.041.01-.046zM34.973 1.372l-.101-.1-.023-.052-.037-.236.002-.12.076-.395V.33l-.026-.06-.03-.146-.022-.053-.085.008-.07-.079-.096.072-.248.173-.08.034-.08-.022-.034.003-.222.047-.041-.004-.07.003-.034.048-.012.033-.013.02-.013.015-.01.006-.026.01-.06.087-.042.032-.028.01-.021.001-.02-.003-.028-.013-.017-.006-.026-.003-.156.003-.015-.003-.011-.003-.155-.008-.028-.004-.073-.032-.057-.01-.06-.005-.032.002-.022.006-.012.01-.03.029-.017.011-.074.028-.046.003-.041.01h-.025l-.02-.002-.266-.1-.022-.014L32.206.4l-.015-.001h-.018l-.012.01-.008.01-.007.014-.001.017-.005.018-.012.018-.03.02-.025.005-.028-.002-.033-.014-.014-.008-.01-.01-.01-.01-.006-.014-.002-.015.001-.034-.007-.022-.018-.025-.048-.035-.03-.01-.023-.002-.014.006-.024.017-.084.078-.042.02-.01.01-.04.098-.00
17.012-.01.01-.013.011-.047.028-.083.029-.121.011-.036.008-.024.009-.068.054-.048.048-.027.022-.02.01-.022.007-.018.001L31 .79l-.042.003-.023.006-.315.145-.026.034-.016.016-.068.046-.027.01-.025.007-.031.003-.021.005-.015.009-.01.01-.008.013-.004.012-.003.032.074.069.022.037.005.042.01.031.013.023.012.016.064.052.077.078.017.027.006.02-.002.016-.006.013-.028.034-.008.013-.005.013-.008.03-.006.07v.068l-.005.038-.01.03-.032.069-.004.015v.069l-.004.018-.007.017-.011.018-.011.012-.014.01-.012.005-.01.003-.012.002h-.038l-.019.002-.032.01-.084.038-.015.002-.012.001-.012-.002-.062-.018-.058-.01h-.034l-.015.004-.017.01-.015.015-.019.037-.018.075-.012.017-.016.005-.014-.005-.013-.009-.02-.018-.013-.008-.017-.003-.037-.001-.019-.004-.014-.006-.013-.008-.01-.01-.093-.162-.01-.007-.014.002-.014.004-.041.02-.1.067-.028.014-.03.01-.016.003-.038.002-.02.003-.018.006-.048.03-.015.004-.019.002-.021.004-.024.007-.02.01-.008.002-.014.041-.064.106-.017.053.002.075-.002.02-.017.015-.06.031-.027.02-.042.062-.016.035-.025.016-.06.029-.012.015-.003.02-.008.015-.049.012-.057.027-.023.005-.07-.014-.02-.035.002-.043-.005-.04-.019-.022-.047-.026-.01-.017-.017-.105v-.086l-.006-.017-.011-.017-.003-.02.02-.03-.02-.044-.04-.176-.19-.104-.103-.073-.059-.03-.057-.012-.108-.002-.064-.011-.043-.025-.018-.048-.006-.062.003-.094-.024-.054-.057-.018-.069-.004-.058-.01-.046-.03-.039-.038-.042-.033-.118-.023-.055-.024-.101-.061-.114-.036-.114.003-.245.052-.12.011-.356-.011-.119-.023-.088-.058-.155-.146-.11-.081-.066-.024-.06.02-.05.03-.062.008-.174-.01-.041.006-.15.054-.127.028-.107.044-.046.007-.088-.01-.058.003-.12.025-.102-.012-.309.006-.048.008-.032.011-.071.038-.038-.037-.043-.01-.1.01-.051-.018-.017-.038-.013-.045-.04-.034-.05.02-.258.032-.041.03-.104.183-.044.055-.047.024-.062.006-.282.132-.026.004-.013.026-.031.028-.034.022-.055.02-.02.026-.017.03-.021.028-.05.035-.06.03-.063.021-.062.008-.051.024-.027.058-.028.128-.029.058-.047.05-.06.038-.073.026-.075.062H0v13.908l.066.09.06.03.245.006.069.013.04.022.022.02.024.014.047.001.02-.007.039-.026.018-.006.02.001.03.016.016.003.02.012.025.026.03.025.039.013.028.012.033.06.025.024.042-.003.064-.018.063-.01.048.02.017.014.086.05.036.015.143.008.022.012.015.062.015.027.021.02.025.008.06-.014.038-.032.064-.087.073-.06.097-.061.111-.047.118-.02.06.013.13.052.066.012h.129l.05-.012.059-.026.032.013.031.007.03.001.03-.002.15-.032.072.01.073.058.046.094.03-.005.05-.026.016-.005.059.002.038.011.033.025.04.046.026.013.069-.007.03.005.008.011.029.063.015.06.004.065.01.025.019.013.019.008.033.049.057.053.064.048.045.023.056-.007.048-.013.039.007.028.05-.023.048-.055.082-.017.06-.002.055.04.246.025.038.176.123.026.034.008.022-.002.017-.004.018-.002.027.01.025.064.062.078.15.003.021-.003.064.011.02.028.02.031.017.024.01.06.008.045.001.04.01.046.038.048-.02.003-.026-.032-.048-.01-.048.005-.02.027-.006.054-.003.046.002.03.005.021-.014.016-.05h-.005l-.006-.021-.007-.045.005-.021.012-.016.013-.014.009-.014.024-.123.026-.05.053-.019.033-.007.06-.026.031-.005.027.008.02.018.03.033.081.03.023.017.013.025.013.063.012.026.027.036.004.013.08-.035.016-.014.019-.01h.034l.084.064.047.026.02-.023.02-.038.047.012.104.053.256.019.04.011.178.084.03.03.053.01.049.017.021.047.018.06.039-.004.047-.023.04.005.075.047.014.014-.006.03-.018.05.004.03.014.036.002.02-.008.026-.02.018-.02.013-.01.01-.002.031.008.026.009.02.003.018-.007.028-.025.055-.005.022.006.045.025.077.021.164.038.114.056.107.064.091.03.026.055.032.061.028.242.045.048.02.047.045.021.05.006.053v.052l-.008.025-.02.018-.013.023.007.037.02.029.026.021.155.08.228.034.12.046.021.02.012.018.017.014.058.01.028.014.027.016.063.054.112.058.171.058.056.03.049.088.06.023.124.015.097.048.141.177.082.08.026.01.032.01.027.01.011.018.01.012.054.045.042.02.04.048.024.018.033.007.067.002.033.008.08.065.062.102.13.276.036.05.047.042.111.034.305.296.048.025.118.008.053.015.046.04.021.023v.01h.031l.02.004.01.014.003.031.033.02.072.004.122-.014.056-.034.113-.098.05-.02.058.014.126.05.053-.006.029-.046-.023-.057-.048-.056-.042-.041-.031-.054.015-.05.064-.095.024-.163.015-.02.046-.037.042-.017.312-.046h.269l.09.016.114.035.118.017.115-.008.208-.093.12-.029h.118l.1.04.477.337.117.042.119.009.183-.045.062-.008.06.007.054.028.019.025.008.029.012.027.027.022.025.006.107-.006-.038-.017-.021-.03-.007-.037.013-.033.044-.015.085.001.04.02.018.047.015.025h.038l.08-.017.081.016.065.04.053.055.046.06h.001l.019-.045.018-.004.039-.007h.064l.095.03.19.018.043-.014.13-.176.029-.015.03.006.03.012.026.007.03-.006.034-.027.021-.005.029.008.058.037.027.01h.219l.038.018.09.087.052.03.06.004.07-.001.056.008.041.057.04.005.075.002.023.011.023.018.05.048.088-.027.075.033.07.045.068.006.017-.018.013-.023.02-.023.045-.013h.042l.03.008.08.04.134-.22-.09-.119-.008-.03.023-.025.
1026.002.077.06.024.014.022.003h.03l.063.015.058.066.05.015.062.003.053.01.05.017.055.027-.156.035-.087.007.087-.007.142-.031.014-.004h.041l.054.008.05.027.044.04.022-.038.035-.15.023-.038.036-.041.04-.036.034-.02.03-.006.075.006.03-.005.05-.026.023-.007.05.008.051.026.037.04.015.05.05.016.32-.102.015-.007.047-.036.024-.012h.028l.05.014.026.003.362.146.075.008.03.01.018.025.014.032.022.027.032.02.024.008.06.01.072.028.012.03-.016.047-.012.075.023.046.1.059.028.057-.032.113-.006.066.028.03.003.03.062.16.025.044.01.026.003.035-.008.017-.037.048-.009.029.022.06.048.042.099.06.028.033.009.022.009.059.013.019.013.014.006.013-.005.115.002.024.007.022.012.02.02.02.026.007.039.006.035.01.046.088.007.03-.009.065-.021.059-.03.051-.201.258.001.012.031.012.072.015.157.01.071.028.601.243.601.242 1.203.486.6.243 1.203.485.584.236.037-.04-.05-.117-.03-.106.002-.104.04-.112-.056-.104v-.043l.036-.043.058-.027h.06l.064.02.065.027v-.02l-.095-.133-.014-.043-.008-.089-.015-.04-.024-.023-.106-.072-.036-.014h-.02l-.024.01-.047.004-.046-.014-.04-.032-.017-.033.026-.015.014-.019.042-.035.047-.026.02.013.007.013.013-.006.012-.018.006-.025-.002-.031-.008-.023-.014-.02-.023-.023-.017-.044.007-.053.025-.05.032-.033-.047-.026-.042-.016-.021-.028.016-.063.07-.096.014-.05-.027-.062.047-.04.05-.06.04-.068.016-.07.002-.06.008-.05.018-.05.093-.173.077-.103.025-.057-.006-.064-.028-.118.008-.033.04-.052.01-.019-.005-.029-.015-.066.01-.063.023-.056.036-.05.045-.047.055-.035.028-.023.01-.028-.004-.029-.022-.064v-.011l.038-.025-.004-.057-.057-.16-.009-.06.006-.059.056-.105-.022-.047-.046-.035-.046-.023-.014.013-.013.004h-.013l-.018.003.024-.024.003-.013-.01-.021.053-.04.064.03.053.01.021-.104.02-.19-.008-.047-.029-.076-.001-.039.007-.013.102-.095.004-.006.076-.02.04-.017.017-.03.006-.065-.006-.028-.028-.039-.007-.018-.022-.077-.076-.067.087-.025.027-.013.06.037.056.012.05-.022.042-.062.071-.169.11-.168.048-.058.047-.026.008-.028-.007-.142.008-.057.026-.033.038-.039.034-.042.016-.048.013-.012.082-.054.02-.032-.001-.01-.01-.013-.01-.04v-.072l.012-.051.029-.044.065-.07.032-.027.014-.02.011-.027.013-.046.016-.021.088-.049.075-.024.067-.022.132-.01.055.065.02-.008.026-.012.02-.015.01-.012.01-.004.02.004.024.002.022-.012.016-.035.012-.047.003-.045-.01-.024-.04.001-.042.02-.045.01-.046-.031-.002-.01-.008-.031.002-.046-.014-.036-.053-.01.026-.103.024-.036.1-.024.048-.02.051-.008.056.021-.017.038.031.06-.025.044-.016.034.023.03.036.028.022.032.072-.055.032-.038-.003-.064.032-.09-.01-.019-.066-.006-.087-.024-.056-.047.032-.076-.022-.019.022-.02-.032-.027-.06-.022-.024-.027.05-.002.037-.02.004-.024-.042-.011-.026-.012-.043-.027-.031-.026.004-.013.068-.031.072-.142.086-.033.065-.035.04-.085.062-.347.036-.054.093-.01-.055-.007-.041-.024-.076-.062-.036-.023-.06.001-.023-.002-.017-.011-.015-.025.095-.096.018-.008h.019l.035.007.017.025-.033.053.05.011.04-.042.039-.056.053-.027-.01-.025.003-.227.05-.219.022-.04.19-.218.02-.042.028-.034.172-.097.021-.018.054-.027.028-.022.058-.073.052-.039.022-.027v-.03l-.018-.01h-.065l-.03-.01.036-.011.016-.02.01-.024.015-.021.023-.02.009-.003.011.003.129-.002.015-.019.002-.045-.03.002-.169-.02-.03.04-.016.003-.03-.025-.02-.01-.085-.017.032-.037.05-.001.057.009.052-.008.033-.037.006-.038.012-.028.054-.012.031.02.08.089.021.014.03-.03.02-.031.038-.082-.021-.04.052-.128.006-.058-.019-.04-.009.011-.012.029-.029.017-.041-.007-.02-.02-.002-.03.016-.038.038-.039.035-.002.035.006.036-.012.011-.123.024-.065v-.03l-.015-.03-.02-.027.003-.016.063-.042-.01-.057.05-.138-.023-.072-.018.059-.025.049-.034.039-.055.025.01-.058.07-.156-.011-.03-.057.011-.116.054-.066.007v-.018l.024-.007.021-.011.017-.016.013-.02-.052-.027-.02-.05.01-.056.043-.039.026.072.032.04.045.002.071-.04.032.01.064-.008.035.018.021-.013.045-.037.019-.008.056.002.02-.004.028-.015.014-.016.002-.02.007-.015.053-.013.015-.019v-.025l-.015-.026.027-.02.008-.022-.01-.02-.025-.013.019-.039.075-.075.023-.035.035-.072.02-.025-.031-.014-.028.008-.057.044-.033-.013-.024-.015-.015-.024-.005-.036.013-.005.03-.007.033-.011.02-.021-.025-.004-.016-.007-.034-.03.143-.088.08-.03.08.022-.061.087-.022.041-.012.044.03-.04.093-.084.014-.041.004-.054.01-.047.065-.041.034-.05.026-.06.01-.048.014-.044.033-.039.032-.03.015-.02.01-.147.009-.034.03-.03.087-.039.036-.024.024-.035.018-.062.015-.035.021-.033.03-.034.037-.029.044-.02-.017-.017.044-.035.04-.113.057-.024.044-.007.128-.039.12-.078.112-.04.212-.045h.134l.036-.012.014-.01.01-.016.025-.029.027-.012.069.01.029-.008.012-.022.004-.061.01-.013.009-.006-.021-.013-.034-.013-.03-.006h-.208l-.015-.007-.071-.05.134-.037.02-.012.052-.037.003-.008.024.007.07.05.013.002.03-.004.014.002.008.007.022.025.01.005.038-.001-.003-.024-.015-.043v-.064l.028-.05.049-.033.11-.05.049-.03.148-.165.047-.034.102-.057.399-.167-.025-.042-.014-.045-.005-.05.002-.054.008-.042.011-.035.01-.017.011-.01.01-.011.007-.02-.004-.017-.025-.038-.009-.02-.002-.022v-.051l.002-.022.016-.037.028-.04.036-.035.035-.022v-.017l-.047-.023-.027-.03-.04-.063-.064-.048-.008-.026.014-.058.023-.051.072-.12.031-.083.018-.03.256-.304.079-.05.185-.09.059-.07-.055-.048.033-.075.109-.126.05-.035.015-.02.004-.023-.008-.011-.011-.012-.004-.019.01-.044.026-.042.037-.035.042-.02-.027-.105.023-.1.051-.088.066-.07.08-.067.026-.042.008-.064-.008-.024-.025-.05-.005-.03.002-.03.005-.022.098-.205.01-.063-.007-.181.007-.058.033-.098.118-.186.054-.051.02-.025.027-.06-.015-.032-.031-.026-.017-.043.01-.067.025-.056.058-.097.01-.023.006-.024.005-.058-.01-.03-.02-.025-.018-.011-.01.01-.011.022h-.028l-.032-.015-.023-.015-.02-.02-.005-.01-.001-.015-.037-.125.005-.444-.008-.016-.008-.01.028-.051.009-.022.06-.365.021-.056.069-.097.02-.089.019-.048.118-.18.04-.105-.026-.078.145-.23.04-.127.004-.154-.015-.075-.002-.03.01-.03.038-.048.01-.017.012-.04.099-.12.02-.054.01-.062.008-.123.008-.018.038-.043.012-.024-.02-.114.002-.04.008-.05.014-.05.07-.104.004-.042-.014-.044-.007-.067.006-.02.026-.03.006-.017-.004-.017-.012-.026-.003-.014.006-.06.009-.03.045-.082.022-.126.033-.054-.008-.025-.01-.05-.002-.054.01-.033.027-.043-.009-.038-.047-.06-.026-.107.029-.115.055-.11.123-.181.01-.03.011-.012.052-.015.012-.01-.002-.033-.026-.128.001-.024.009-.033.04-.104.06-.098.127-.158.17-.131.065-.08.012-.114-.028-.118.003-.061.05-.088v-.033l-.005-.033-.002-.028.008-.025.026-.054.004-.016-.027-.047z",f
vendor: 7,664 bytes, line 1
1illRule:"evenodd"}))};t.a=s},function(e,t,n){function r(e,t,n){var r=null==e?void 0:o(e,t);return void 0===r?n:r}var o=n(295);e.exports=r},function(e,t,n){function r(e,t){t=o(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[i(t[n++])];return n&&n==r?e:void 0}var o=n(296),i=n(335);e.exports=r},function(e,t,n){function r(e,t){return o(e)?e:i(e,t)?[e]:a(s(e))}var o=n(89),i=n(297),a=n(302),s=n(332);e.exports=r},function(e,t,n){function r(e,t){if(o(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(s.test(e)||!a.test(e)||null!=t&&e in Object(t))}var o=n(89),i=n(90),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=r},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(15))},function(e,t,n){function r(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[l]=n:delete e[l]),o}var o=n(91),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,l=o?o.toStringTag:void 0;e.exports=r},function(e,t){function n(e){return o.call(e)}var r=Object.prototype,o=r.toString;e.exports=n},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){var r=n(303),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},function(e,t,n){function r(e){var t=o(e,function(e){return n.size===i&&n.clear(),e}),n=t.cache;return t}var o=n(304),i=500;e.exports=r},function(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(r.Cache||o),n}var o=n(305),i="Expected a function";r.Cache=o,e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(306),i=n(327),a=n(329),s=n(330),l=n(331);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=l,e.exports=r},function(e,t,n){function r(){this.size=0,this.__data__={hash:new o,map:new(a||i),string:new o}}var o=n(307),i=n(319),a=n(326);e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(308),i=n(315),a=n(316),s=n(317),l=n(318);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=l,e.exports=r},function(e,t,n){function r(){this.__data__=o?o(null):{},this.size=0}var o=n(49);e.exports=r},function(e,t,n){function r(e){return!(!a(e)||i(e))&&(o(e)?d:u).test(s(e))}var o=n(310),i=n(311),a=n(143),s=n(313),l=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,p=Object.prototype,f=c.toString,h=p.hasOwnProperty,d=RegExp("^"+f.call(h).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){function r(e){if(!i(e))return!1;var t=o(e);return t==s||t==l||t==a||t==u}var o=n(141),i=n(143),a="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",u="[object Proxy]";e.exports=r},function(e,t,n){function r(e){return!!i&&i in e}var o=n(312),i=function(){var e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t,n){var r=n(92),o=r["__core-js_shared__"];e.exports=o},function(e,t){function n(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,o=r.toString;e.exports=n},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function r(e){var t=this.__data__;if(o){var n=t[e];return n===i?void 0:n}return s.call(t,e)?t[e]:void 0}var o=n(49),i="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){var t=this.__data__;return o?void 0!==t[e]:a.call(t,e)}var o=n(49),i=Object.prototype,a=i.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?i:t,this}var o=n(49),i="__lodash_hash_undefined__";e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(320),i=n(321),a=n(323),s=n(324),l=n(325);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=l,e.exports=r},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}var o=n(50),i=Array.prototype,a=i.splice;e.exports=r},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}var o=n(50);e.exports=r},function(e,t,n){function r(e){return o(this.__data__,e)>-1}var o=n(50);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var o=n(50);e.exports=r},function(e,t,n){var r=n(142),o=n(92),i=r(o,"Map");e.exports=i},function(e,t,n){function r(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}var o=n(51);e.exports=r},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function r(e){return o(this,e).get(e)}var o=n(51);e.exports=r},function(e,t,n){function r(e){return o(this,e).has(e)}var o=n(51);e.exports=r},function(e,t,n){function r(e,t){var n=o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var o=n(51);e.exports=r},function(e,t,n){function r(e){return null==e?"":o(e)}var o=n(333);e.exports=r},function(e,t,n){function r(e){if("string"==typeof e)return e;if(a(e))return i(e,r)+"";if(s(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}var o=n(91),i=n(334),a=n(89),s=n(90),l=1/0,u=o?o.prototype:void 0,c=u?u.toString:void 0;e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}e.exports=n},function(e,t,n){function r(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}var o=n(90),i=1/0;e.exports=r},function(e,t,n){"use strict";var r=n(337);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=n.n(a),l=n(338),u=n.n(l),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}
1return i(t,e),c(t,[{key:"render",value:function(){return s.a.createElement("footer",{className:u.a.footer},s.a.createElement("img",{src:"/img-multiple/img/pins/multiple-pin.svg",alt:"Icon for multiple locations",width:24,className:u.a.legendImage}),s.a.createElement("span",{className:u.a.legend},"Projects in multiple locations and/or multiple LGAs."),s.a.createElement("span",{className:u.a.warning},"Project locations are indicative of general area only."))}}]),t}(a.Component);t.a=p},function(e,t){e.exports={footer:"footer-module__footer___3QjQW",legendImage:"footer-module__legendImage___VEXqs",legend:"footer-module__legend___1zPUk",warning:"footer-module__warning___1Y570"}},function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return p});var r=n(340),o=n(24),i=n.n(o),a=function(e){return function(t){return e?Object(r.a)(t,t.objects[e]):t}},s=function(e){return e.json()},l=function(e){return fetch(e).then(s)},u=function(e,t){return function(n){return n({type:"GEOJSON:REQUEST"}),l(e).then(a(t)).then(function(e){return n({type:"GEOJSON:SUCCESS",payload:e})}).catch(function(e){return n({type:"GEOJSON:FAILURE",payload:e})})}},c=function(){var e=i.a.parse(window.location.search),t="true"===Object({NODE_ENV:"production",PUBLIC_URL:"",URL:"https://dpc-regional-growth.netlify.app",REACT_APP_MAPBOX_API_TOKEN:"pk.eyJ1Ijoic21hbGxtdWx0aXBsZXMiLCJhIjoiY2swZDRqNzF5MDQ4YzNub2M5OThkaXB2dyJ9.ezZI2kiNzsVANAvJVwUEHQ"}).REACT_APP_STAGING;switch(e.sheetName){case"regional-recovery-map-bushfire-local-economic-recovery-fund-stage-2":return t?"19zRcQ7CEf79X6CH0EhUEsOZnAEwdL6j5RsWd2k7sIRM":"1HW-dmn1MePyosqHG4pZRrh__7u6GsqfdgIKDOUSUd1s";case"regional-recovery-map":return t?"1croudmcu0w-QTI7-fdLqKbqjG-iUW1ZjGqSPl4QmIuA":"1j0oOM0guWm5uma73R169qWksRiMs98NVf-wpBqvy7Ds";case"regional-growth-fund":default:return t?"1TsAH0yaakAwn9XiB5bXtOMj9-wuA56Vufofnk3BdnZI":"1Xo6hH4tegx_YmDiP3SZRJuKDTiHNZ4hObOqT5aKYHKo"}},p=function(){return function(e){var t=c();return e({type:"PROJECT:ALL:REQUEST"}),l("https://holy-sheet.visualise.today/sheet/"+t+"?range='Fund Names'").then(function(e){var n=e.map(function(e){var n=e.Fund;return l("https://holy-sheet.visualise.today/sheet/"+t+"?range='"+encodeURIComponent(n)+"'!A1:Q10000").then(function(e){return{fundName:n,data:e}})});return Promise.all(n)}).then(function(t){e({type:"PROJECT:ALL:SUCCESS",payload:t})}).catch(function(t){console.log(t),e({type:"PROJECT:ALL:ERROR",payload:t})})}}},function(e,t,n){"use strict";var r=(n(144),n(94));n.d(t,"a",function(){return r.a});n(342),n(343),n(344),n(346),n(93),n(147)},function(e,t,n){"use strict";t.a=function(e,t){for(var n,r=e.length,o=r-t;o<--r;)n=e[o],e[o++]=e[r],e[r]=n}},function(e,t,n){"use strict";n(94),n(146)},function(e,t,n){"use strict";n(94),n(146)},function(e,t,n){"use strict";n(345)},function(e,t,n){"use strict";t.a=function(e,t){for(var n=0,r=e.length;n<r;){var o=n+r>>>1;e[o]<t?n=o+1:r=o}return n}},function(e,t,n){"use strict";n(144),n(147)},function(e,t){e.exports={container:"root-module__container___q7OCb"}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=n.n(a),l=n(1),u=n.n(l),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={hasError:!1},n}
1return i(t,e),c(t,[{key:"componentDidCatch",value:function(e,t){console.log(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?s.a.createElement("h1",null,"Something went wrong."):this.props.children}}]),t}(s.a.Component);p.propTypes={children:u.a.node.isRequired},t.a=p},function(e,t,n){"use strict";var r=n(350);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=n.n(a),l=n(351),u=n.n(l),c=n(1),p=n.n(c),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),f(t,[{key:"render",value:function(){var e=this.props.children||"Loading";return s.a.createElement("div",{className:u.a.loading},e," ",s.a.createElement("span",{className:u.a.loadingCircle})," ")}}]),t}(a.Component);h.propTypes={children:p.a.node},t.a=h},function(e,t){e.exports={loading:"loading-module__loading___nInj1",rotate:"loading-module__rotate___2B1wq"}},function(e,t,n){"use strict";var r=n(353);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=n.n(a),l=n(21),u=n(22),c=n(1),p=n.n(c),f=n(80),h=n(23),d=n(37),m=n(354),y=n.n(m),g=n(81),v=n(119),_=n.n(v),b=n(120),x=n.n(b),w=n(24),E=n.n(w),T=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),O={width:24,height:32,transform:"translate(-50%, -100%)"},C={width:32,height:48,transform:"translate(-50%, -100%)"},S=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),T(t,[{key:"render",value:function(){var e=this.props,t=e.activeProject,n=e.setActiveProject,r=e.setIsMultiple,o=e.basemap;if(!t)return null;var i=E.a.parse(window.location.search),a=i.sheetName&&i.sheetName.includes("regional-recovery-map")?"Total funding:":"Total NSW funding:";return s.a.createElement("div",{onClick:function(){return n(null)},className:y.a.overlay},s.a.createElement("div",{onClick:function(e){return e.stopPropagation()},className:y.a.projectPopup},s.a.createElement("div",{className:y.a.iconAndName},s.a.createElement("img",{className:y.a.markerIcon,src:Object(f.a)(t.fundName),alt:"Marker icon for: "+t.fundName})," ",s.a.createElement("h3",null,t.fundName)),s.a.createElement("button",{autoFocus:!0,className:y.a.closeButton,onClick:function(){return n(null)}},s.a.createElement("img",{src:"/img/cross.svg",alt:"Cross"})),s.a.createElement("h4",null,t.Project),s.a.createElement("p",null,t.Description," "),t["Total NSW funding"]&&s.a.createElement("p",null,s.a.createElement("label",null,a),s.a.createElement("span",null,t["Total NSW funding"].toLocaleStr
1ing())),t["Funding co-contribution"]&&s.a.createElement("p",null,s.a.createElement("label",null,"Funding co-contribution:"),s.a.createElement("span",null,(isNaN(t["Funding co-contribution"])?"":"$")+t["Funding co-contribution"]," ")),t.Status&&s.a.createElement("p",null,s.a.createElement("label",null,"Status:"),s.a.createElement("span",null,t.Status)),s.a.createElement("p",null,s.a.createElement("label",null,"LGA:"),s.a.createElement("span",null,t.LGA)),t["Event dates"]&&s.a.createElement("p",null,s.a.createElement("label",null,"Event date(s):"),s.a.createElement("span",null,t["Event dates"])),"Y"===t["Multiple locations"]&&s.a.createElement("p",null,s.a.createElement("label",null,"Project is in multiple locations"),s.a.createElement("span",{className:y.a.multipleProjects},"Project locations are a central point within the Local Government Area and not necessarily the actual delivery location of the project.")),"Y"===t["Multiple locations"]&&"Y"===t["Multiple LGAs"]&&s.a.createElement("button",{className:y.a.multipleButton,onClick:function(e){return r(t)}},"View all project locations \u203a"),t.Round&&s.a.createElement("p",null,s.a.createElement("label",null,"Round:"),s.a.createElement("span",null,t.Round)),s.a.createElement(g.f,{mapboxApiAccessToken:"pk.eyJ1Ijoic21hbGxtdWx0aXBsZXMiLCJhIjoiY2swZDRqNzF5MDQ4YzNub2M5OThkaXB2dyJ9.ezZI2kiNzsVANAvJVwUEHQ",width:"100%",height:200,zoom:10,mapStyle:"ROADMAP"===o?_.a:x.a,longitude:parseFloat(t.Longitude),latitude:parseFloat(t.Latitude)},s.a.createElement(g.b,{longitude:parseFloat(t.Longitude),latitude:parseFloat(t.Latitude)},s.a.createElement("img",{style:"Y"===t["Multiple locations"]?C:O,alt:"pin",src:"Y"===t["Multiple locations"]?"img-multiple"+Object(f.b)(t.fundName):Object(f.b)(t.fundName)})))))}}]),t}(a.Component),k=function(e){return{activeProject:Object(u.f)(e),basemap:Object(u.h)(e)}},A={setActiveProject:d.d,setIsMultiple:d.f};S.propTypes={activeProject:p.a.shape(h.c),setIsMultiple:p.a.func.isRequired,setActiveProject:p.a.func.isRequired,basemap:p.a.func.isRequired},t.a=Object(l.b)(k,A)(S)},function(e,t){e.exports={overlay:"project-popup-module__overlay___33v-U",projectPopup:"project-popup-module__projectPopup___3J1cT",multipleProjects:"project-popup-module__multipleProjects___2nrk9",iconAndName:"project-popup-module__iconAndName___Dhbag",markerIcon:"project-popup-module__markerIcon___2ckXD",closeButton:"project-popup-module__closeButton___2BBVq",multipleButton:"project-popup-module__multipleButton___2lok-"}},function(e,t,n){"use strict";var r=n(41),o=n(356),i=n.n(o),a=n(22),s=Object(r.d)(Object(r.a)(i.a),window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():function(e){return e})(r.e);t.a=s(a.a)},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}t.__esModule=!0;var o=r();o.withExtraArgument=r,t.default=o}]); 2//# sourceMappingURL=main.ff4abc4e.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.